Apache_Hadoop_Common_2.8.0.xml 1.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921
  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 Fri Mar 17 06:17:49 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.0"
  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.0.jar:/usr/lib/jvm/java-7-oracle/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.0.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.51/jsch-0.1.51.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.0 -->
  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="addDefaultResource"
  220. abstract="false" native="false" synchronized="true"
  221. static="true" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <param name="name" type="java.lang.String"/>
  224. <doc>
  225. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  226. added.
  227. @param name file name. File should be present in the classpath.]]>
  228. </doc>
  229. </method>
  230. <method name="addResource"
  231. abstract="false" native="false" synchronized="false"
  232. static="false" final="false" visibility="public"
  233. deprecated="not deprecated">
  234. <param name="name" type="java.lang.String"/>
  235. <doc>
  236. <![CDATA[Add a configuration resource.
  237. The properties of this resource will override properties of previously
  238. added resources, unless they were marked <a href="#Final">final</a>.
  239. @param name resource to be added, the classpath is examined for a file
  240. with that name.]]>
  241. </doc>
  242. </method>
  243. <method name="addResource"
  244. abstract="false" native="false" synchronized="false"
  245. static="false" final="false" visibility="public"
  246. deprecated="not deprecated">
  247. <param name="url" type="java.net.URL"/>
  248. <doc>
  249. <![CDATA[Add a configuration resource.
  250. The properties of this resource will override properties of previously
  251. added resources, unless they were marked <a href="#Final">final</a>.
  252. @param url url of the resource to be added, the local filesystem is
  253. examined directly to find the resource, without referring to
  254. the classpath.]]>
  255. </doc>
  256. </method>
  257. <method name="addResource"
  258. abstract="false" native="false" synchronized="false"
  259. static="false" final="false" visibility="public"
  260. deprecated="not deprecated">
  261. <param name="file" type="org.apache.hadoop.fs.Path"/>
  262. <doc>
  263. <![CDATA[Add a configuration resource.
  264. The properties of this resource will override properties of previously
  265. added resources, unless they were marked <a href="#Final">final</a>.
  266. @param file file-path of resource to be added, the local filesystem is
  267. examined directly to find the resource, without referring to
  268. the classpath.]]>
  269. </doc>
  270. </method>
  271. <method name="addResource"
  272. abstract="false" native="false" synchronized="false"
  273. static="false" final="false" visibility="public"
  274. deprecated="not deprecated">
  275. <param name="in" type="java.io.InputStream"/>
  276. <doc>
  277. <![CDATA[Add a configuration resource.
  278. The properties of this resource will override properties of previously
  279. added resources, unless they were marked <a href="#Final">final</a>.
  280. WARNING: The contents of the InputStream will be cached, by this method.
  281. So use this sparingly because it does increase the memory consumption.
  282. @param in InputStream to deserialize the object from. In will be read from
  283. when a get or set is called next. After it is read the stream will be
  284. closed.]]>
  285. </doc>
  286. </method>
  287. <method name="addResource"
  288. abstract="false" native="false" synchronized="false"
  289. static="false" final="false" visibility="public"
  290. deprecated="not deprecated">
  291. <param name="in" type="java.io.InputStream"/>
  292. <param name="name" type="java.lang.String"/>
  293. <doc>
  294. <![CDATA[Add a configuration resource.
  295. The properties of this resource will override properties of previously
  296. added resources, unless they were marked <a href="#Final">final</a>.
  297. @param in InputStream to deserialize the object from.
  298. @param name the name of the resource because InputStream.toString is not
  299. very descriptive some times.]]>
  300. </doc>
  301. </method>
  302. <method name="addResource"
  303. abstract="false" native="false" synchronized="false"
  304. static="false" final="false" visibility="public"
  305. deprecated="not deprecated">
  306. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  307. <doc>
  308. <![CDATA[Add a configuration resource.
  309. The properties of this resource will override properties of previously
  310. added resources, unless they were marked <a href="#Final">final</a>.
  311. @param conf Configuration object from which to load properties]]>
  312. </doc>
  313. </method>
  314. <method name="reloadConfiguration"
  315. abstract="false" native="false" synchronized="true"
  316. static="false" final="false" visibility="public"
  317. deprecated="not deprecated">
  318. <doc>
  319. <![CDATA[Reload configuration from previously added resources.
  320. This method will clear all the configuration read from the added
  321. resources, and final parameters. This will make the resources to
  322. be read again before accessing the values. Values that are added
  323. via set methods will overlay values read from the resources.]]>
  324. </doc>
  325. </method>
  326. <method name="get" return="java.lang.String"
  327. abstract="false" native="false" synchronized="false"
  328. static="false" final="false" visibility="public"
  329. deprecated="not deprecated">
  330. <param name="name" type="java.lang.String"/>
  331. <doc>
  332. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  333. no such property exists. If the key is deprecated, it returns the value of
  334. the first key which replaces the deprecated key and is not null.
  335. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  336. before being returned.
  337. @param name the property name, will be trimmed before get value.
  338. @return the value of the <code>name</code> or its replacing property,
  339. or null if no such property exists.]]>
  340. </doc>
  341. </method>
  342. <method name="setAllowNullValueProperties"
  343. abstract="false" native="false" synchronized="false"
  344. static="false" final="false" visibility="public"
  345. deprecated="not deprecated">
  346. <param name="val" type="boolean"/>
  347. <doc>
  348. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  349. for use during testing.
  350. @param val If true, will allow Configuration to store keys without values]]>
  351. </doc>
  352. </method>
  353. <method name="onlyKeyExists" return="boolean"
  354. abstract="false" native="false" synchronized="false"
  355. static="false" final="false" visibility="public"
  356. deprecated="not deprecated">
  357. <param name="name" type="java.lang.String"/>
  358. <doc>
  359. <![CDATA[Return existence of the <code>name</code> property, but only for
  360. names which have no valid value, usually non-existent or commented
  361. out in XML.
  362. @param name the property name
  363. @return true if the property <code>name</code> exists without value]]>
  364. </doc>
  365. </method>
  366. <method name="getTrimmed" return="java.lang.String"
  367. abstract="false" native="false" synchronized="false"
  368. static="false" final="false" visibility="public"
  369. deprecated="not deprecated">
  370. <param name="name" type="java.lang.String"/>
  371. <doc>
  372. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  373. <code>null</code> if no such property exists.
  374. If the key is deprecated, it returns the value of
  375. the first key which replaces the deprecated key and is not null
  376. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  377. before being returned.
  378. @param name the property name.
  379. @return the value of the <code>name</code> or its replacing property,
  380. or null if no such property exists.]]>
  381. </doc>
  382. </method>
  383. <method name="getTrimmed" return="java.lang.String"
  384. abstract="false" native="false" synchronized="false"
  385. static="false" final="false" visibility="public"
  386. deprecated="not deprecated">
  387. <param name="name" type="java.lang.String"/>
  388. <param name="defaultValue" type="java.lang.String"/>
  389. <doc>
  390. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  391. <code>defaultValue</code> if no such property exists.
  392. See @{Configuration#getTrimmed} for more details.
  393. @param name the property name.
  394. @param defaultValue the property default value.
  395. @return the value of the <code>name</code> or defaultValue
  396. if it is not set.]]>
  397. </doc>
  398. </method>
  399. <method name="getRaw" return="java.lang.String"
  400. abstract="false" native="false" synchronized="false"
  401. static="false" final="false" visibility="public"
  402. deprecated="not deprecated">
  403. <param name="name" type="java.lang.String"/>
  404. <doc>
  405. <![CDATA[Get the value of the <code>name</code> property, without doing
  406. <a href="#VariableExpansion">variable expansion</a>.If the key is
  407. deprecated, it returns the value of the first key which replaces
  408. the deprecated key and is not null.
  409. @param name the property name.
  410. @return the value of the <code>name</code> property or
  411. its replacing property and null if no such property exists.]]>
  412. </doc>
  413. </method>
  414. <method name="set"
  415. abstract="false" native="false" synchronized="false"
  416. static="false" final="false" visibility="public"
  417. deprecated="not deprecated">
  418. <param name="name" type="java.lang.String"/>
  419. <param name="value" type="java.lang.String"/>
  420. <doc>
  421. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  422. <code>name</code> is deprecated or there is a deprecated name associated to it,
  423. it sets the value to both names. Name will be trimmed before put into
  424. configuration.
  425. @param name property name.
  426. @param value property value.]]>
  427. </doc>
  428. </method>
  429. <method name="set"
  430. abstract="false" native="false" synchronized="false"
  431. static="false" final="false" visibility="public"
  432. deprecated="not deprecated">
  433. <param name="name" type="java.lang.String"/>
  434. <param name="value" type="java.lang.String"/>
  435. <param name="source" type="java.lang.String"/>
  436. <doc>
  437. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  438. <code>name</code> is deprecated, it also sets the <code>value</code> to
  439. the keys that replace the deprecated key. Name will be trimmed before put
  440. into configuration.
  441. @param name property name.
  442. @param value property value.
  443. @param source the place that this configuration value came from
  444. (For debugging).
  445. @throws IllegalArgumentException when the value or name is null.]]>
  446. </doc>
  447. </method>
  448. <method name="unset"
  449. abstract="false" native="false" synchronized="true"
  450. static="false" final="false" visibility="public"
  451. deprecated="not deprecated">
  452. <param name="name" type="java.lang.String"/>
  453. <doc>
  454. <![CDATA[Unset a previously set property.]]>
  455. </doc>
  456. </method>
  457. <method name="setIfUnset"
  458. abstract="false" native="false" synchronized="true"
  459. static="false" final="false" visibility="public"
  460. deprecated="not deprecated">
  461. <param name="name" type="java.lang.String"/>
  462. <param name="value" type="java.lang.String"/>
  463. <doc>
  464. <![CDATA[Sets a property if it is currently unset.
  465. @param name the property name
  466. @param value the new value]]>
  467. </doc>
  468. </method>
  469. <method name="get" return="java.lang.String"
  470. abstract="false" native="false" synchronized="false"
  471. static="false" final="false" visibility="public"
  472. deprecated="not deprecated">
  473. <param name="name" type="java.lang.String"/>
  474. <param name="defaultValue" type="java.lang.String"/>
  475. <doc>
  476. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  477. it returns the value of the first key which replaces the deprecated key
  478. and is not null.
  479. If no such property exists,
  480. then <code>defaultValue</code> is returned.
  481. @param name property name, will be trimmed before get value.
  482. @param defaultValue default value.
  483. @return property value, or <code>defaultValue</code> if the property
  484. doesn't exist.]]>
  485. </doc>
  486. </method>
  487. <method name="getInt" return="int"
  488. abstract="false" native="false" synchronized="false"
  489. static="false" final="false" visibility="public"
  490. deprecated="not deprecated">
  491. <param name="name" type="java.lang.String"/>
  492. <param name="defaultValue" type="int"/>
  493. <doc>
  494. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  495. If no such property exists, the provided default value is returned,
  496. or if the specified value is not a valid <code>int</code>,
  497. then an error is thrown.
  498. @param name property name.
  499. @param defaultValue default value.
  500. @throws NumberFormatException when the value is invalid
  501. @return property value as an <code>int</code>,
  502. or <code>defaultValue</code>.]]>
  503. </doc>
  504. </method>
  505. <method name="getInts" return="int[]"
  506. abstract="false" native="false" synchronized="false"
  507. static="false" final="false" visibility="public"
  508. deprecated="not deprecated">
  509. <param name="name" type="java.lang.String"/>
  510. <doc>
  511. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  512. <code>int</code> values.
  513. If no such property exists, an empty array is returned.
  514. @param name property name
  515. @return property value interpreted as an array of comma-delimited
  516. <code>int</code> values]]>
  517. </doc>
  518. </method>
  519. <method name="setInt"
  520. abstract="false" native="false" synchronized="false"
  521. static="false" final="false" visibility="public"
  522. deprecated="not deprecated">
  523. <param name="name" type="java.lang.String"/>
  524. <param name="value" type="int"/>
  525. <doc>
  526. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  527. @param name property name.
  528. @param value <code>int</code> value of the property.]]>
  529. </doc>
  530. </method>
  531. <method name="getLong" return="long"
  532. abstract="false" native="false" synchronized="false"
  533. static="false" final="false" visibility="public"
  534. deprecated="not deprecated">
  535. <param name="name" type="java.lang.String"/>
  536. <param name="defaultValue" type="long"/>
  537. <doc>
  538. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  539. If no such property exists, the provided default value is returned,
  540. or if the specified value is not a valid <code>long</code>,
  541. then an error is thrown.
  542. @param name property name.
  543. @param defaultValue default value.
  544. @throws NumberFormatException when the value is invalid
  545. @return property value as a <code>long</code>,
  546. or <code>defaultValue</code>.]]>
  547. </doc>
  548. </method>
  549. <method name="getLongBytes" return="long"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="name" type="java.lang.String"/>
  554. <param name="defaultValue" type="long"/>
  555. <doc>
  556. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  557. human readable format. If no such property exists, the provided default
  558. value is returned, or if the specified value is not a valid
  559. <code>long</code> or human readable format, then an error is thrown. You
  560. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  561. t(tera), p(peta), e(exa)
  562. @param name property name.
  563. @param defaultValue default value.
  564. @throws NumberFormatException when the value is invalid
  565. @return property value as a <code>long</code>,
  566. or <code>defaultValue</code>.]]>
  567. </doc>
  568. </method>
  569. <method name="setLong"
  570. abstract="false" native="false" synchronized="false"
  571. static="false" final="false" visibility="public"
  572. deprecated="not deprecated">
  573. <param name="name" type="java.lang.String"/>
  574. <param name="value" type="long"/>
  575. <doc>
  576. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  577. @param name property name.
  578. @param value <code>long</code> value of the property.]]>
  579. </doc>
  580. </method>
  581. <method name="getFloat" return="float"
  582. abstract="false" native="false" synchronized="false"
  583. static="false" final="false" visibility="public"
  584. deprecated="not deprecated">
  585. <param name="name" type="java.lang.String"/>
  586. <param name="defaultValue" type="float"/>
  587. <doc>
  588. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  589. If no such property exists, the provided default value is returned,
  590. or if the specified value is not a valid <code>float</code>,
  591. then an error is thrown.
  592. @param name property name.
  593. @param defaultValue default value.
  594. @throws NumberFormatException when the value is invalid
  595. @return property value as a <code>float</code>,
  596. or <code>defaultValue</code>.]]>
  597. </doc>
  598. </method>
  599. <method name="setFloat"
  600. abstract="false" native="false" synchronized="false"
  601. static="false" final="false" visibility="public"
  602. deprecated="not deprecated">
  603. <param name="name" type="java.lang.String"/>
  604. <param name="value" type="float"/>
  605. <doc>
  606. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  607. @param name property name.
  608. @param value property value.]]>
  609. </doc>
  610. </method>
  611. <method name="getDouble" return="double"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="name" type="java.lang.String"/>
  616. <param name="defaultValue" type="double"/>
  617. <doc>
  618. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  619. If no such property exists, the provided default value is returned,
  620. or if the specified value is not a valid <code>double</code>,
  621. then an error is thrown.
  622. @param name property name.
  623. @param defaultValue default value.
  624. @throws NumberFormatException when the value is invalid
  625. @return property value as a <code>double</code>,
  626. or <code>defaultValue</code>.]]>
  627. </doc>
  628. </method>
  629. <method name="setDouble"
  630. abstract="false" native="false" synchronized="false"
  631. static="false" final="false" visibility="public"
  632. deprecated="not deprecated">
  633. <param name="name" type="java.lang.String"/>
  634. <param name="value" type="double"/>
  635. <doc>
  636. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  637. @param name property name.
  638. @param value property value.]]>
  639. </doc>
  640. </method>
  641. <method name="getBoolean" return="boolean"
  642. abstract="false" native="false" synchronized="false"
  643. static="false" final="false" visibility="public"
  644. deprecated="not deprecated">
  645. <param name="name" type="java.lang.String"/>
  646. <param name="defaultValue" type="boolean"/>
  647. <doc>
  648. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  649. If no such property is specified, or if the specified value is not a valid
  650. <code>boolean</code>, then <code>defaultValue</code> is returned.
  651. @param name property name.
  652. @param defaultValue default value.
  653. @return property value as a <code>boolean</code>,
  654. or <code>defaultValue</code>.]]>
  655. </doc>
  656. </method>
  657. <method name="setBoolean"
  658. abstract="false" native="false" synchronized="false"
  659. static="false" final="false" visibility="public"
  660. deprecated="not deprecated">
  661. <param name="name" type="java.lang.String"/>
  662. <param name="value" type="boolean"/>
  663. <doc>
  664. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  665. @param name property name.
  666. @param value <code>boolean</code> value of the property.]]>
  667. </doc>
  668. </method>
  669. <method name="setBooleanIfUnset"
  670. abstract="false" native="false" synchronized="false"
  671. static="false" final="false" visibility="public"
  672. deprecated="not deprecated">
  673. <param name="name" type="java.lang.String"/>
  674. <param name="value" type="boolean"/>
  675. <doc>
  676. <![CDATA[Set the given property, if it is currently unset.
  677. @param name property name
  678. @param value new value]]>
  679. </doc>
  680. </method>
  681. <method name="setEnum"
  682. abstract="false" native="false" synchronized="false"
  683. static="false" final="false" visibility="public"
  684. deprecated="not deprecated">
  685. <param name="name" type="java.lang.String"/>
  686. <param name="value" type="T"/>
  687. <doc>
  688. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  689. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  690. @param name property name
  691. @param value new value]]>
  692. </doc>
  693. </method>
  694. <method name="getEnum" return="T"
  695. abstract="false" native="false" synchronized="false"
  696. static="false" final="false" visibility="public"
  697. deprecated="not deprecated">
  698. <param name="name" type="java.lang.String"/>
  699. <param name="defaultValue" type="T"/>
  700. <doc>
  701. <![CDATA[Return value matching this enumerated type.
  702. Note that the returned value is trimmed by this method.
  703. @param name Property name
  704. @param defaultValue Value returned if no mapping exists
  705. @throws IllegalArgumentException If mapping is illegal for the type
  706. provided]]>
  707. </doc>
  708. </method>
  709. <method name="setTimeDuration"
  710. abstract="false" native="false" synchronized="false"
  711. static="false" final="false" visibility="public"
  712. deprecated="not deprecated">
  713. <param name="name" type="java.lang.String"/>
  714. <param name="value" type="long"/>
  715. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  716. <doc>
  717. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  718. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  719. @param name Property name
  720. @param value Time duration
  721. @param unit Unit of time]]>
  722. </doc>
  723. </method>
  724. <method name="getTimeDuration" return="long"
  725. abstract="false" native="false" synchronized="false"
  726. static="false" final="false" visibility="public"
  727. deprecated="not deprecated">
  728. <param name="name" type="java.lang.String"/>
  729. <param name="defaultValue" type="long"/>
  730. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  731. <doc>
  732. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  733. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  734. (ms), seconds (s), minutes (m), hours (h), and days (d).
  735. @param name Property name
  736. @param defaultValue Value returned if no mapping exists.
  737. @param unit Unit to convert the stored property, if it exists.
  738. @throws NumberFormatException If the property stripped of its unit is not
  739. a number]]>
  740. </doc>
  741. </method>
  742. <method name="getTimeDurations" return="long[]"
  743. abstract="false" native="false" synchronized="false"
  744. static="false" final="false" visibility="public"
  745. deprecated="not deprecated">
  746. <param name="name" type="java.lang.String"/>
  747. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  748. </method>
  749. <method name="getPattern" return="java.util.regex.Pattern"
  750. abstract="false" native="false" synchronized="false"
  751. static="false" final="false" visibility="public"
  752. deprecated="not deprecated">
  753. <param name="name" type="java.lang.String"/>
  754. <param name="defaultValue" type="java.util.regex.Pattern"/>
  755. <doc>
  756. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  757. If no such property is specified, or if the specified value is not a valid
  758. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  759. Note that the returned value is NOT trimmed by this method.
  760. @param name property name
  761. @param defaultValue default value
  762. @return property value as a compiled Pattern, or defaultValue]]>
  763. </doc>
  764. </method>
  765. <method name="setPattern"
  766. abstract="false" native="false" synchronized="false"
  767. static="false" final="false" visibility="public"
  768. deprecated="not deprecated">
  769. <param name="name" type="java.lang.String"/>
  770. <param name="pattern" type="java.util.regex.Pattern"/>
  771. <doc>
  772. <![CDATA[Set the given property to <code>Pattern</code>.
  773. If the pattern is passed as null, sets the empty pattern which results in
  774. further calls to getPattern(...) returning the default value.
  775. @param name property name
  776. @param pattern new value]]>
  777. </doc>
  778. </method>
  779. <method name="getPropertySources" return="java.lang.String[]"
  780. abstract="false" native="false" synchronized="true"
  781. static="false" final="false" visibility="public"
  782. deprecated="not deprecated">
  783. <param name="name" type="java.lang.String"/>
  784. <doc>
  785. <![CDATA[Gets information about why a property was set. Typically this is the
  786. path to the resource objects (file, URL, etc.) the property came from, but
  787. it can also indicate that it was set programatically, or because of the
  788. command line.
  789. @param name - The property name to get the source of.
  790. @return null - If the property or its source wasn't found. Otherwise,
  791. returns a list of the sources of the resource. The older sources are
  792. the first ones in the list. So for example if a configuration is set from
  793. the command line, and then written out to a file that is read back in the
  794. first entry would indicate that it was set from the command line, while
  795. the second one would indicate the file that the new configuration was read
  796. in from.]]>
  797. </doc>
  798. </method>
  799. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  800. abstract="false" native="false" synchronized="false"
  801. static="false" final="false" visibility="public"
  802. deprecated="not deprecated">
  803. <param name="name" type="java.lang.String"/>
  804. <param name="defaultValue" type="java.lang.String"/>
  805. <doc>
  806. <![CDATA[Parse the given attribute as a set of integer ranges
  807. @param name the attribute name
  808. @param defaultValue the default value if it is not set
  809. @return a new set of ranges from the configured value]]>
  810. </doc>
  811. </method>
  812. <method name="getStringCollection" return="java.util.Collection"
  813. abstract="false" native="false" synchronized="false"
  814. static="false" final="false" visibility="public"
  815. deprecated="not deprecated">
  816. <param name="name" type="java.lang.String"/>
  817. <doc>
  818. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  819. a collection of <code>String</code>s.
  820. If no such property is specified then empty collection is returned.
  821. <p>
  822. This is an optimized version of {@link #getStrings(String)}
  823. @param name property name.
  824. @return property value as a collection of <code>String</code>s.]]>
  825. </doc>
  826. </method>
  827. <method name="getStrings" return="java.lang.String[]"
  828. abstract="false" native="false" synchronized="false"
  829. static="false" final="false" visibility="public"
  830. deprecated="not deprecated">
  831. <param name="name" type="java.lang.String"/>
  832. <doc>
  833. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  834. an array of <code>String</code>s.
  835. If no such property is specified then <code>null</code> is returned.
  836. @param name property name.
  837. @return property value as an array of <code>String</code>s,
  838. or <code>null</code>.]]>
  839. </doc>
  840. </method>
  841. <method name="getStrings" return="java.lang.String[]"
  842. abstract="false" native="false" synchronized="false"
  843. static="false" final="false" visibility="public"
  844. deprecated="not deprecated">
  845. <param name="name" type="java.lang.String"/>
  846. <param name="defaultValue" type="java.lang.String[]"/>
  847. <doc>
  848. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  849. an array of <code>String</code>s.
  850. If no such property is specified then default value is returned.
  851. @param name property name.
  852. @param defaultValue The default value
  853. @return property value as an array of <code>String</code>s,
  854. or default value.]]>
  855. </doc>
  856. </method>
  857. <method name="getTrimmedStringCollection" return="java.util.Collection"
  858. abstract="false" native="false" synchronized="false"
  859. static="false" final="false" visibility="public"
  860. deprecated="not deprecated">
  861. <param name="name" type="java.lang.String"/>
  862. <doc>
  863. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  864. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  865. If no such property is specified then empty <code>Collection</code> is returned.
  866. @param name property name.
  867. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  868. </doc>
  869. </method>
  870. <method name="getTrimmedStrings" return="java.lang.String[]"
  871. abstract="false" native="false" synchronized="false"
  872. static="false" final="false" visibility="public"
  873. deprecated="not deprecated">
  874. <param name="name" type="java.lang.String"/>
  875. <doc>
  876. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  877. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  878. If no such property is specified then an empty array is returned.
  879. @param name property name.
  880. @return property value as an array of trimmed <code>String</code>s,
  881. or empty array.]]>
  882. </doc>
  883. </method>
  884. <method name="getTrimmedStrings" return="java.lang.String[]"
  885. abstract="false" native="false" synchronized="false"
  886. static="false" final="false" visibility="public"
  887. deprecated="not deprecated">
  888. <param name="name" type="java.lang.String"/>
  889. <param name="defaultValue" type="java.lang.String[]"/>
  890. <doc>
  891. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  892. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  893. If no such property is specified then default value is returned.
  894. @param name property name.
  895. @param defaultValue The default value
  896. @return property value as an array of trimmed <code>String</code>s,
  897. or default value.]]>
  898. </doc>
  899. </method>
  900. <method name="setStrings"
  901. abstract="false" native="false" synchronized="false"
  902. static="false" final="false" visibility="public"
  903. deprecated="not deprecated">
  904. <param name="name" type="java.lang.String"/>
  905. <param name="values" type="java.lang.String[]"/>
  906. <doc>
  907. <![CDATA[Set the array of string values for the <code>name</code> property as
  908. as comma delimited values.
  909. @param name property name.
  910. @param values The values]]>
  911. </doc>
  912. </method>
  913. <method name="getPassword" return="char[]"
  914. abstract="false" native="false" synchronized="false"
  915. static="false" final="false" visibility="public"
  916. deprecated="not deprecated">
  917. <param name="name" type="java.lang.String"/>
  918. <exception name="IOException" type="java.io.IOException"/>
  919. <doc>
  920. <![CDATA[Get the value for a known password configuration element.
  921. In order to enable the elimination of clear text passwords in config,
  922. this method attempts to resolve the property name as an alias through
  923. the CredentialProvider API and conditionally fallsback to config.
  924. @param name property name
  925. @return password]]>
  926. </doc>
  927. </method>
  928. <method name="getPasswordFromCredentialProviders" return="char[]"
  929. abstract="false" native="false" synchronized="false"
  930. static="false" final="false" visibility="protected"
  931. deprecated="not deprecated">
  932. <param name="name" type="java.lang.String"/>
  933. <exception name="IOException" type="java.io.IOException"/>
  934. <doc>
  935. <![CDATA[Try and resolve the provided element name as a credential provider
  936. alias.
  937. @param name alias of the provisioned credential
  938. @return password or null if not found
  939. @throws IOException]]>
  940. </doc>
  941. </method>
  942. <method name="getPasswordFromConfig" return="char[]"
  943. abstract="false" native="false" synchronized="false"
  944. static="false" final="false" visibility="protected"
  945. deprecated="not deprecated">
  946. <param name="name" type="java.lang.String"/>
  947. <doc>
  948. <![CDATA[Fallback to clear text passwords in configuration.
  949. @param name
  950. @return clear text password or null]]>
  951. </doc>
  952. </method>
  953. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  954. abstract="false" native="false" synchronized="false"
  955. static="false" final="false" visibility="public"
  956. deprecated="not deprecated">
  957. <param name="hostProperty" type="java.lang.String"/>
  958. <param name="addressProperty" type="java.lang.String"/>
  959. <param name="defaultAddressValue" type="java.lang.String"/>
  960. <param name="defaultPort" type="int"/>
  961. <doc>
  962. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  963. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  964. <code>null</code>, <code>addressProperty</code> will be used. This
  965. is useful for cases where we want to differentiate between host
  966. bind address and address clients should use to establish connection.
  967. @param hostProperty bind host property name.
  968. @param addressProperty address property name.
  969. @param defaultAddressValue the default value
  970. @param defaultPort the default port
  971. @return InetSocketAddress]]>
  972. </doc>
  973. </method>
  974. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  975. abstract="false" native="false" synchronized="false"
  976. static="false" final="false" visibility="public"
  977. deprecated="not deprecated">
  978. <param name="name" type="java.lang.String"/>
  979. <param name="defaultAddress" type="java.lang.String"/>
  980. <param name="defaultPort" type="int"/>
  981. <doc>
  982. <![CDATA[Get the socket address for <code>name</code> property as a
  983. <code>InetSocketAddress</code>.
  984. @param name property name.
  985. @param defaultAddress the default value
  986. @param defaultPort the default port
  987. @return InetSocketAddress]]>
  988. </doc>
  989. </method>
  990. <method name="setSocketAddr"
  991. abstract="false" native="false" synchronized="false"
  992. static="false" final="false" visibility="public"
  993. deprecated="not deprecated">
  994. <param name="name" type="java.lang.String"/>
  995. <param name="addr" type="java.net.InetSocketAddress"/>
  996. <doc>
  997. <![CDATA[Set the socket address for the <code>name</code> property as
  998. a <code>host:port</code>.]]>
  999. </doc>
  1000. </method>
  1001. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1002. abstract="false" native="false" synchronized="false"
  1003. static="false" final="false" visibility="public"
  1004. deprecated="not deprecated">
  1005. <param name="hostProperty" type="java.lang.String"/>
  1006. <param name="addressProperty" type="java.lang.String"/>
  1007. <param name="defaultAddressValue" type="java.lang.String"/>
  1008. <param name="addr" type="java.net.InetSocketAddress"/>
  1009. <doc>
  1010. <![CDATA[Set the socket address a client can use to connect for the
  1011. <code>name</code> property as a <code>host:port</code>. The wildcard
  1012. address is replaced with the local host's address. If the host and address
  1013. properties are configured the host component of the address will be combined
  1014. with the port component of the addr to generate the address. This is to allow
  1015. optional control over which host name is used in multi-home bind-host
  1016. cases where a host can have multiple names
  1017. @param hostProperty the bind-host configuration name
  1018. @param addressProperty the service address configuration name
  1019. @param defaultAddressValue the service default address configuration value
  1020. @param addr InetSocketAddress of the service listener
  1021. @return InetSocketAddress for clients to connect]]>
  1022. </doc>
  1023. </method>
  1024. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1025. abstract="false" native="false" synchronized="false"
  1026. static="false" final="false" visibility="public"
  1027. deprecated="not deprecated">
  1028. <param name="name" type="java.lang.String"/>
  1029. <param name="addr" type="java.net.InetSocketAddress"/>
  1030. <doc>
  1031. <![CDATA[Set the socket address a client can use to connect for the
  1032. <code>name</code> property as a <code>host:port</code>. The wildcard
  1033. address is replaced with the local host's address.
  1034. @param name property name.
  1035. @param addr InetSocketAddress of a listener to store in the given property
  1036. @return InetSocketAddress for clients to connect]]>
  1037. </doc>
  1038. </method>
  1039. <method name="getClassByName" return="java.lang.Class"
  1040. abstract="false" native="false" synchronized="false"
  1041. static="false" final="false" visibility="public"
  1042. deprecated="not deprecated">
  1043. <param name="name" type="java.lang.String"/>
  1044. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1045. <doc>
  1046. <![CDATA[Load a class by name.
  1047. @param name the class name.
  1048. @return the class object.
  1049. @throws ClassNotFoundException if the class is not found.]]>
  1050. </doc>
  1051. </method>
  1052. <method name="getClassByNameOrNull" return="java.lang.Class"
  1053. abstract="false" native="false" synchronized="false"
  1054. static="false" final="false" visibility="public"
  1055. deprecated="not deprecated">
  1056. <param name="name" type="java.lang.String"/>
  1057. <doc>
  1058. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1059. if it couldn't be loaded. This is to avoid the overhead of creating
  1060. an exception.
  1061. @param name the class name
  1062. @return the class object, or null if it could not be found.]]>
  1063. </doc>
  1064. </method>
  1065. <method name="getClasses" return="java.lang.Class[]"
  1066. abstract="false" native="false" synchronized="false"
  1067. static="false" final="false" visibility="public"
  1068. deprecated="not deprecated">
  1069. <param name="name" type="java.lang.String"/>
  1070. <param name="defaultValue" type="java.lang.Class[]"/>
  1071. <doc>
  1072. <![CDATA[Get the value of the <code>name</code> property
  1073. as an array of <code>Class</code>.
  1074. The value of the property specifies a list of comma separated class names.
  1075. If no such property is specified, then <code>defaultValue</code> is
  1076. returned.
  1077. @param name the property name.
  1078. @param defaultValue default value.
  1079. @return property value as a <code>Class[]</code>,
  1080. or <code>defaultValue</code>.]]>
  1081. </doc>
  1082. </method>
  1083. <method name="getClass" return="java.lang.Class"
  1084. abstract="false" native="false" synchronized="false"
  1085. static="false" final="false" visibility="public"
  1086. deprecated="not deprecated">
  1087. <param name="name" type="java.lang.String"/>
  1088. <param name="defaultValue" type="java.lang.Class"/>
  1089. <doc>
  1090. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1091. If no such property is specified, then <code>defaultValue</code> is
  1092. returned.
  1093. @param name the class name.
  1094. @param defaultValue default value.
  1095. @return property value as a <code>Class</code>,
  1096. or <code>defaultValue</code>.]]>
  1097. </doc>
  1098. </method>
  1099. <method name="getClass" return="java.lang.Class"
  1100. abstract="false" native="false" synchronized="false"
  1101. static="false" final="false" visibility="public"
  1102. deprecated="not deprecated">
  1103. <param name="name" type="java.lang.String"/>
  1104. <param name="defaultValue" type="java.lang.Class"/>
  1105. <param name="xface" type="java.lang.Class"/>
  1106. <doc>
  1107. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1108. implementing the interface specified by <code>xface</code>.
  1109. If no such property is specified, then <code>defaultValue</code> is
  1110. returned.
  1111. An exception is thrown if the returned class does not implement the named
  1112. interface.
  1113. @param name the class name.
  1114. @param defaultValue default value.
  1115. @param xface the interface implemented by the named class.
  1116. @return property value as a <code>Class</code>,
  1117. or <code>defaultValue</code>.]]>
  1118. </doc>
  1119. </method>
  1120. <method name="getInstances" return="java.util.List"
  1121. abstract="false" native="false" synchronized="false"
  1122. static="false" final="false" visibility="public"
  1123. deprecated="not deprecated">
  1124. <param name="name" type="java.lang.String"/>
  1125. <param name="xface" type="java.lang.Class"/>
  1126. <doc>
  1127. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1128. of objects implementing the interface specified by <code>xface</code>.
  1129. An exception is thrown if any of the classes does not exist, or if it does
  1130. not implement the named interface.
  1131. @param name the property name.
  1132. @param xface the interface implemented by the classes named by
  1133. <code>name</code>.
  1134. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1135. </doc>
  1136. </method>
  1137. <method name="setClass"
  1138. abstract="false" native="false" synchronized="false"
  1139. static="false" final="false" visibility="public"
  1140. deprecated="not deprecated">
  1141. <param name="name" type="java.lang.String"/>
  1142. <param name="theClass" type="java.lang.Class"/>
  1143. <param name="xface" type="java.lang.Class"/>
  1144. <doc>
  1145. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1146. <code>theClass</code> implementing the given interface <code>xface</code>.
  1147. An exception is thrown if <code>theClass</code> does not implement the
  1148. interface <code>xface</code>.
  1149. @param name property name.
  1150. @param theClass property value.
  1151. @param xface the interface implemented by the named class.]]>
  1152. </doc>
  1153. </method>
  1154. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1155. abstract="false" native="false" synchronized="false"
  1156. static="false" final="false" visibility="public"
  1157. deprecated="not deprecated">
  1158. <param name="dirsProp" type="java.lang.String"/>
  1159. <param name="path" type="java.lang.String"/>
  1160. <exception name="IOException" type="java.io.IOException"/>
  1161. <doc>
  1162. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1163. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1164. then one is chosen based on <i>path</i>'s hash code. If the selected
  1165. directory does not exist, an attempt is made to create it.
  1166. @param dirsProp directory in which to locate the file.
  1167. @param path file-path.
  1168. @return local file under the directory with the given path.]]>
  1169. </doc>
  1170. </method>
  1171. <method name="getFile" return="java.io.File"
  1172. abstract="false" native="false" synchronized="false"
  1173. static="false" final="false" visibility="public"
  1174. deprecated="not deprecated">
  1175. <param name="dirsProp" type="java.lang.String"/>
  1176. <param name="path" type="java.lang.String"/>
  1177. <exception name="IOException" type="java.io.IOException"/>
  1178. <doc>
  1179. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1180. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1181. then one is chosen based on <i>path</i>'s hash code. If the selected
  1182. directory does not exist, an attempt is made to create it.
  1183. @param dirsProp directory in which to locate the file.
  1184. @param path file-path.
  1185. @return local file under the directory with the given path.]]>
  1186. </doc>
  1187. </method>
  1188. <method name="getResource" return="java.net.URL"
  1189. abstract="false" native="false" synchronized="false"
  1190. static="false" final="false" visibility="public"
  1191. deprecated="not deprecated">
  1192. <param name="name" type="java.lang.String"/>
  1193. <doc>
  1194. <![CDATA[Get the {@link URL} for the named resource.
  1195. @param name resource name.
  1196. @return the url for the named resource.]]>
  1197. </doc>
  1198. </method>
  1199. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1200. abstract="false" native="false" synchronized="false"
  1201. static="false" final="false" visibility="public"
  1202. deprecated="not deprecated">
  1203. <param name="name" type="java.lang.String"/>
  1204. <doc>
  1205. <![CDATA[Get an input stream attached to the configuration resource with the
  1206. given <code>name</code>.
  1207. @param name configuration resource name.
  1208. @return an input stream attached to the resource.]]>
  1209. </doc>
  1210. </method>
  1211. <method name="getConfResourceAsReader" return="java.io.Reader"
  1212. abstract="false" native="false" synchronized="false"
  1213. static="false" final="false" visibility="public"
  1214. deprecated="not deprecated">
  1215. <param name="name" type="java.lang.String"/>
  1216. <doc>
  1217. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1218. given <code>name</code>.
  1219. @param name configuration resource name.
  1220. @return a reader attached to the resource.]]>
  1221. </doc>
  1222. </method>
  1223. <method name="getFinalParameters" return="java.util.Set"
  1224. abstract="false" native="false" synchronized="false"
  1225. static="false" final="false" visibility="public"
  1226. deprecated="not deprecated">
  1227. <doc>
  1228. <![CDATA[Get the set of parameters marked final.
  1229. @return final parameter set.]]>
  1230. </doc>
  1231. </method>
  1232. <method name="getProps" return="java.util.Properties"
  1233. abstract="false" native="false" synchronized="true"
  1234. static="false" final="false" visibility="protected"
  1235. deprecated="not deprecated">
  1236. </method>
  1237. <method name="size" return="int"
  1238. abstract="false" native="false" synchronized="false"
  1239. static="false" final="false" visibility="public"
  1240. deprecated="not deprecated">
  1241. <doc>
  1242. <![CDATA[Return the number of keys in the configuration.
  1243. @return number of keys in the configuration.]]>
  1244. </doc>
  1245. </method>
  1246. <method name="clear"
  1247. abstract="false" native="false" synchronized="false"
  1248. static="false" final="false" visibility="public"
  1249. deprecated="not deprecated">
  1250. <doc>
  1251. <![CDATA[Clears all keys from the configuration.]]>
  1252. </doc>
  1253. </method>
  1254. <method name="iterator" return="java.util.Iterator"
  1255. abstract="false" native="false" synchronized="false"
  1256. static="false" final="false" visibility="public"
  1257. deprecated="not deprecated">
  1258. <doc>
  1259. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1260. key-value pairs in the configuration.
  1261. @return an iterator over the entries.]]>
  1262. </doc>
  1263. </method>
  1264. <method name="getPropsWithPrefix" return="java.util.Map"
  1265. abstract="false" native="false" synchronized="false"
  1266. static="false" final="false" visibility="public"
  1267. deprecated="not deprecated">
  1268. <param name="confPrefix" type="java.lang.String"/>
  1269. <doc>
  1270. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1271. start with the specified configuration prefix. Property names in the
  1272. mapping are trimmed to remove the configuration prefix.
  1273. @param confPrefix configuration prefix
  1274. @return mapping of configuration properties with prefix stripped]]>
  1275. </doc>
  1276. </method>
  1277. <method name="writeXml"
  1278. abstract="false" native="false" synchronized="false"
  1279. static="false" final="false" visibility="public"
  1280. deprecated="not deprecated">
  1281. <param name="out" type="java.io.OutputStream"/>
  1282. <exception name="IOException" type="java.io.IOException"/>
  1283. <doc>
  1284. <![CDATA[Write out the non-default properties in this configuration to the given
  1285. {@link OutputStream} using UTF-8 encoding.
  1286. @param out the output stream to write to.]]>
  1287. </doc>
  1288. </method>
  1289. <method name="writeXml"
  1290. abstract="false" native="false" synchronized="false"
  1291. static="false" final="false" visibility="public"
  1292. deprecated="not deprecated">
  1293. <param name="out" type="java.io.Writer"/>
  1294. <exception name="IOException" type="java.io.IOException"/>
  1295. <doc>
  1296. <![CDATA[Write out the non-default properties in this configuration to the given
  1297. {@link Writer}.
  1298. @param out the writer to write to.]]>
  1299. </doc>
  1300. </method>
  1301. <method name="dumpConfiguration"
  1302. abstract="false" native="false" synchronized="false"
  1303. static="true" final="false" visibility="public"
  1304. deprecated="not deprecated">
  1305. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1306. <param name="out" type="java.io.Writer"/>
  1307. <exception name="IOException" type="java.io.IOException"/>
  1308. <doc>
  1309. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  1310. the given {@link Writer}
  1311. The format of the output would be
  1312. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  1313. key2.isFinal,key2.resource}... ] }
  1314. It does not output the parameters of the configuration object which is
  1315. loaded from an input stream.
  1316. @param out the Writer to write to
  1317. @throws IOException]]>
  1318. </doc>
  1319. </method>
  1320. <method name="getClassLoader" return="java.lang.ClassLoader"
  1321. abstract="false" native="false" synchronized="false"
  1322. static="false" final="false" visibility="public"
  1323. deprecated="not deprecated">
  1324. <doc>
  1325. <![CDATA[Get the {@link ClassLoader} for this job.
  1326. @return the correct class loader.]]>
  1327. </doc>
  1328. </method>
  1329. <method name="setClassLoader"
  1330. abstract="false" native="false" synchronized="false"
  1331. static="false" final="false" visibility="public"
  1332. deprecated="not deprecated">
  1333. <param name="classLoader" type="java.lang.ClassLoader"/>
  1334. <doc>
  1335. <![CDATA[Set the class loader that will be used to load the various objects.
  1336. @param classLoader the new class loader.]]>
  1337. </doc>
  1338. </method>
  1339. <method name="toString" return="java.lang.String"
  1340. abstract="false" native="false" synchronized="false"
  1341. static="false" final="false" visibility="public"
  1342. deprecated="not deprecated">
  1343. </method>
  1344. <method name="setQuietMode"
  1345. abstract="false" native="false" synchronized="true"
  1346. static="false" final="false" visibility="public"
  1347. deprecated="not deprecated">
  1348. <param name="quietmode" type="boolean"/>
  1349. <doc>
  1350. <![CDATA[Set the quietness-mode.
  1351. In the quiet-mode, error and informational messages might not be logged.
  1352. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1353. to turn it off.]]>
  1354. </doc>
  1355. </method>
  1356. <method name="main"
  1357. abstract="false" native="false" synchronized="false"
  1358. static="true" final="false" visibility="public"
  1359. deprecated="not deprecated">
  1360. <param name="args" type="java.lang.String[]"/>
  1361. <exception name="Exception" type="java.lang.Exception"/>
  1362. <doc>
  1363. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1364. </doc>
  1365. </method>
  1366. <method name="readFields"
  1367. abstract="false" native="false" synchronized="false"
  1368. static="false" final="false" visibility="public"
  1369. deprecated="not deprecated">
  1370. <param name="in" type="java.io.DataInput"/>
  1371. <exception name="IOException" type="java.io.IOException"/>
  1372. </method>
  1373. <method name="write"
  1374. abstract="false" native="false" synchronized="false"
  1375. static="false" final="false" visibility="public"
  1376. deprecated="not deprecated">
  1377. <param name="out" type="java.io.DataOutput"/>
  1378. <exception name="IOException" type="java.io.IOException"/>
  1379. </method>
  1380. <method name="getValByRegex" return="java.util.Map"
  1381. abstract="false" native="false" synchronized="false"
  1382. static="false" final="false" visibility="public"
  1383. deprecated="not deprecated">
  1384. <param name="regex" type="java.lang.String"/>
  1385. <doc>
  1386. <![CDATA[get keys matching the the regex
  1387. @param regex
  1388. @return Map<String,String> with matching keys]]>
  1389. </doc>
  1390. </method>
  1391. <method name="dumpDeprecatedKeys"
  1392. abstract="false" native="false" synchronized="false"
  1393. static="true" final="false" visibility="public"
  1394. deprecated="not deprecated">
  1395. </method>
  1396. <method name="hasWarnedDeprecation" return="boolean"
  1397. abstract="false" native="false" synchronized="false"
  1398. static="true" final="false" visibility="public"
  1399. deprecated="not deprecated">
  1400. <param name="name" type="java.lang.String"/>
  1401. <doc>
  1402. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1403. deprecated then always return false]]>
  1404. </doc>
  1405. </method>
  1406. <doc>
  1407. <![CDATA[Provides access to configuration parameters.
  1408. <h4 id="Resources">Resources</h4>
  1409. <p>Configurations are specified by resources. A resource contains a set of
  1410. name/value pairs as XML data. Each resource is named by either a
  1411. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1412. then the classpath is examined for a file with that name. If named by a
  1413. <code>Path</code>, then the local filesystem is examined directly, without
  1414. referring to the classpath.
  1415. <p>Unless explicitly turned off, Hadoop by default specifies two
  1416. resources, loaded in-order from the classpath: <ol>
  1417. <li><tt>
  1418. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1419. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1420. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1421. installation.</li>
  1422. </ol>
  1423. Applications may add additional resources, which are loaded
  1424. subsequent to these resources in the order they are added.
  1425. <h4 id="FinalParams">Final Parameters</h4>
  1426. <p>Configuration parameters may be declared <i>final</i>.
  1427. Once a resource declares a value final, no subsequently-loaded
  1428. resource can alter that value.
  1429. For example, one might define a final parameter with:
  1430. <tt><pre>
  1431. &lt;property&gt;
  1432. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1433. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1434. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1435. &lt;/property&gt;</pre></tt>
  1436. Administrators typically define parameters as final in
  1437. <tt>core-site.xml</tt> for values that user applications may not alter.
  1438. <h4 id="VariableExpansion">Variable Expansion</h4>
  1439. <p>Value strings are first processed for <i>variable expansion</i>. The
  1440. available properties are:<ol>
  1441. <li>Other properties defined in this Configuration; and, if a name is
  1442. undefined here,</li>
  1443. <li>Properties in {@link System#getProperties()}.</li>
  1444. </ol>
  1445. <p>For example, if a configuration resource contains the following property
  1446. definitions:
  1447. <tt><pre>
  1448. &lt;property&gt;
  1449. &lt;name&gt;basedir&lt;/name&gt;
  1450. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1451. &lt;/property&gt;
  1452. &lt;property&gt;
  1453. &lt;name&gt;tempdir&lt;/name&gt;
  1454. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1455. &lt;/property&gt;</pre></tt>
  1456. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1457. will be resolved to another property in this Configuration, while
  1458. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1459. of the System property with that name.
  1460. <p>When <tt>conf.get("otherdir")</tt> is called, then <tt>${<i>env.BASE_DIR</i>}</tt>
  1461. will be resolved to the value of the <tt>${<i>BASE_DIR</i>}</tt> environment variable.
  1462. It supports <tt>${<i>env.NAME:-default</i>}</tt> and <tt>${<i>env.NAME-default</i>}</tt> notations.
  1463. The former is resolved to "default" if <tt>${<i>NAME</i>}</tt> environment variable is undefined
  1464. or its value is empty.
  1465. The latter behaves the same way only if <tt>${<i>NAME</i>}</tt> is undefined.
  1466. <p>By default, warnings will be given to any deprecated configuration
  1467. parameters and these are suppressible by configuring
  1468. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1469. log4j.properties file.]]>
  1470. </doc>
  1471. </class>
  1472. <!-- end class org.apache.hadoop.conf.Configuration -->
  1473. <!-- start class org.apache.hadoop.conf.Configured -->
  1474. <class name="Configured" extends="java.lang.Object"
  1475. abstract="false"
  1476. static="false" final="false" visibility="public"
  1477. deprecated="not deprecated">
  1478. <implements name="org.apache.hadoop.conf.Configurable"/>
  1479. <constructor name="Configured"
  1480. static="false" final="false" visibility="public"
  1481. deprecated="not deprecated">
  1482. <doc>
  1483. <![CDATA[Construct a Configured.]]>
  1484. </doc>
  1485. </constructor>
  1486. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1487. static="false" final="false" visibility="public"
  1488. deprecated="not deprecated">
  1489. <doc>
  1490. <![CDATA[Construct a Configured.]]>
  1491. </doc>
  1492. </constructor>
  1493. <method name="setConf"
  1494. abstract="false" native="false" synchronized="false"
  1495. static="false" final="false" visibility="public"
  1496. deprecated="not deprecated">
  1497. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1498. </method>
  1499. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1500. abstract="false" native="false" synchronized="false"
  1501. static="false" final="false" visibility="public"
  1502. deprecated="not deprecated">
  1503. </method>
  1504. <doc>
  1505. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1506. </doc>
  1507. </class>
  1508. <!-- end class org.apache.hadoop.conf.Configured -->
  1509. <!-- start class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1510. <class name="ReconfigurationTaskStatus" extends="java.lang.Object"
  1511. abstract="false"
  1512. static="false" final="false" visibility="public"
  1513. deprecated="not deprecated">
  1514. <constructor name="ReconfigurationTaskStatus" type="long, long, java.util.Map"
  1515. static="false" final="false" visibility="public"
  1516. deprecated="not deprecated">
  1517. </constructor>
  1518. <method name="hasTask" return="boolean"
  1519. abstract="false" native="false" synchronized="false"
  1520. static="false" final="false" visibility="public"
  1521. deprecated="not deprecated">
  1522. <doc>
  1523. <![CDATA[Return true if
  1524. - A reconfiguration task has finished or
  1525. - an active reconfiguration task is running]]>
  1526. </doc>
  1527. </method>
  1528. <method name="stopped" return="boolean"
  1529. abstract="false" native="false" synchronized="false"
  1530. static="false" final="false" visibility="public"
  1531. deprecated="not deprecated">
  1532. <doc>
  1533. <![CDATA[Return true if the latest reconfiguration task has finished and there is
  1534. no another active task running.]]>
  1535. </doc>
  1536. </method>
  1537. <method name="getStartTime" return="long"
  1538. abstract="false" native="false" synchronized="false"
  1539. static="false" final="false" visibility="public"
  1540. deprecated="not deprecated">
  1541. </method>
  1542. <method name="getEndTime" return="long"
  1543. abstract="false" native="false" synchronized="false"
  1544. static="false" final="false" visibility="public"
  1545. deprecated="not deprecated">
  1546. </method>
  1547. <method name="getStatus" return="java.util.Map"
  1548. abstract="false" native="false" synchronized="false"
  1549. static="false" final="true" visibility="public"
  1550. deprecated="not deprecated">
  1551. </method>
  1552. </class>
  1553. <!-- end class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1554. <doc>
  1555. <![CDATA[Configuration of system parameters.]]>
  1556. </doc>
  1557. </package>
  1558. <package name="org.apache.hadoop.crypto">
  1559. </package>
  1560. <package name="org.apache.hadoop.crypto.key">
  1561. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1562. <class name="KeyProvider" extends="java.lang.Object"
  1563. abstract="true"
  1564. static="false" final="false" visibility="public"
  1565. deprecated="not deprecated">
  1566. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1567. static="false" final="false" visibility="public"
  1568. deprecated="not deprecated">
  1569. <doc>
  1570. <![CDATA[Constructor.
  1571. @param conf configuration for the provider]]>
  1572. </doc>
  1573. </constructor>
  1574. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1575. abstract="false" native="false" synchronized="false"
  1576. static="false" final="false" visibility="public"
  1577. deprecated="not deprecated">
  1578. <doc>
  1579. <![CDATA[Return the provider configuration.
  1580. @return the provider configuration]]>
  1581. </doc>
  1582. </method>
  1583. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1584. abstract="false" native="false" synchronized="false"
  1585. static="true" final="false" visibility="public"
  1586. deprecated="not deprecated">
  1587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1588. <doc>
  1589. <![CDATA[A helper function to create an options object.
  1590. @param conf the configuration to use
  1591. @return a new options object]]>
  1592. </doc>
  1593. </method>
  1594. <method name="isTransient" return="boolean"
  1595. abstract="false" native="false" synchronized="false"
  1596. static="false" final="false" visibility="public"
  1597. deprecated="not deprecated">
  1598. <doc>
  1599. <![CDATA[Indicates whether this provider represents a store
  1600. that is intended for transient use - such as the UserProvider
  1601. is. These providers are generally used to provide access to
  1602. keying material rather than for long term storage.
  1603. @return true if transient, false otherwise]]>
  1604. </doc>
  1605. </method>
  1606. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1607. abstract="true" native="false" synchronized="false"
  1608. static="false" final="false" visibility="public"
  1609. deprecated="not deprecated">
  1610. <param name="versionName" type="java.lang.String"/>
  1611. <exception name="IOException" type="java.io.IOException"/>
  1612. <doc>
  1613. <![CDATA[Get the key material for a specific version of the key. This method is used
  1614. when decrypting data.
  1615. @param versionName the name of a specific version of the key
  1616. @return the key material
  1617. @throws IOException]]>
  1618. </doc>
  1619. </method>
  1620. <method name="getKeys" return="java.util.List"
  1621. abstract="true" native="false" synchronized="false"
  1622. static="false" final="false" visibility="public"
  1623. deprecated="not deprecated">
  1624. <exception name="IOException" type="java.io.IOException"/>
  1625. <doc>
  1626. <![CDATA[Get the key names for all keys.
  1627. @return the list of key names
  1628. @throws IOException]]>
  1629. </doc>
  1630. </method>
  1631. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1632. abstract="false" native="false" synchronized="false"
  1633. static="false" final="false" visibility="public"
  1634. deprecated="not deprecated">
  1635. <param name="names" type="java.lang.String[]"/>
  1636. <exception name="IOException" type="java.io.IOException"/>
  1637. <doc>
  1638. <![CDATA[Get key metadata in bulk.
  1639. @param names the names of the keys to get
  1640. @throws IOException]]>
  1641. </doc>
  1642. </method>
  1643. <method name="getKeyVersions" return="java.util.List"
  1644. abstract="true" native="false" synchronized="false"
  1645. static="false" final="false" visibility="public"
  1646. deprecated="not deprecated">
  1647. <param name="name" type="java.lang.String"/>
  1648. <exception name="IOException" type="java.io.IOException"/>
  1649. <doc>
  1650. <![CDATA[Get the key material for all versions of a specific key name.
  1651. @return the list of key material
  1652. @throws IOException]]>
  1653. </doc>
  1654. </method>
  1655. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1656. abstract="false" native="false" synchronized="false"
  1657. static="false" final="false" visibility="public"
  1658. deprecated="not deprecated">
  1659. <param name="name" type="java.lang.String"/>
  1660. <exception name="IOException" type="java.io.IOException"/>
  1661. <doc>
  1662. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1663. data.
  1664. @param name the base name of the key
  1665. @return the version name of the current version of the key or null if the
  1666. key version doesn't exist
  1667. @throws IOException]]>
  1668. </doc>
  1669. </method>
  1670. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1671. abstract="true" native="false" synchronized="false"
  1672. static="false" final="false" visibility="public"
  1673. deprecated="not deprecated">
  1674. <param name="name" type="java.lang.String"/>
  1675. <exception name="IOException" type="java.io.IOException"/>
  1676. <doc>
  1677. <![CDATA[Get metadata about the key.
  1678. @param name the basename of the key
  1679. @return the key's metadata or null if the key doesn't exist
  1680. @throws IOException]]>
  1681. </doc>
  1682. </method>
  1683. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1684. abstract="true" native="false" synchronized="false"
  1685. static="false" final="false" visibility="public"
  1686. deprecated="not deprecated">
  1687. <param name="name" type="java.lang.String"/>
  1688. <param name="material" type="byte[]"/>
  1689. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1690. <exception name="IOException" type="java.io.IOException"/>
  1691. <doc>
  1692. <![CDATA[Create a new key. The given key must not already exist.
  1693. @param name the base name of the key
  1694. @param material the key material for the first version of the key.
  1695. @param options the options for the new key.
  1696. @return the version name of the first version of the key.
  1697. @throws IOException]]>
  1698. </doc>
  1699. </method>
  1700. <method name="generateKey" return="byte[]"
  1701. abstract="false" native="false" synchronized="false"
  1702. static="false" final="false" visibility="protected"
  1703. deprecated="not deprecated">
  1704. <param name="size" type="int"/>
  1705. <param name="algorithm" type="java.lang.String"/>
  1706. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1707. <doc>
  1708. <![CDATA[Generates a key material.
  1709. @param size length of the key.
  1710. @param algorithm algorithm to use for generating the key.
  1711. @return the generated key.
  1712. @throws NoSuchAlgorithmException]]>
  1713. </doc>
  1714. </method>
  1715. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1716. abstract="false" native="false" synchronized="false"
  1717. static="false" final="false" visibility="public"
  1718. deprecated="not deprecated">
  1719. <param name="name" type="java.lang.String"/>
  1720. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1721. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1722. <exception name="IOException" type="java.io.IOException"/>
  1723. <doc>
  1724. <![CDATA[Create a new key generating the material for it.
  1725. The given key must not already exist.
  1726. <p/>
  1727. This implementation generates the key material and calls the
  1728. {@link #createKey(String, byte[], Options)} method.
  1729. @param name the base name of the key
  1730. @param options the options for the new key.
  1731. @return the version name of the first version of the key.
  1732. @throws IOException
  1733. @throws NoSuchAlgorithmException]]>
  1734. </doc>
  1735. </method>
  1736. <method name="deleteKey"
  1737. abstract="true" native="false" synchronized="false"
  1738. static="false" final="false" visibility="public"
  1739. deprecated="not deprecated">
  1740. <param name="name" type="java.lang.String"/>
  1741. <exception name="IOException" type="java.io.IOException"/>
  1742. <doc>
  1743. <![CDATA[Delete the given key.
  1744. @param name the name of the key to delete
  1745. @throws IOException]]>
  1746. </doc>
  1747. </method>
  1748. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1749. abstract="true" native="false" synchronized="false"
  1750. static="false" final="false" visibility="public"
  1751. deprecated="not deprecated">
  1752. <param name="name" type="java.lang.String"/>
  1753. <param name="material" type="byte[]"/>
  1754. <exception name="IOException" type="java.io.IOException"/>
  1755. <doc>
  1756. <![CDATA[Roll a new version of the given key.
  1757. @param name the basename of the key
  1758. @param material the new key material
  1759. @return the name of the new version of the key
  1760. @throws IOException]]>
  1761. </doc>
  1762. </method>
  1763. <method name="close"
  1764. abstract="false" native="false" synchronized="false"
  1765. static="false" final="false" visibility="public"
  1766. deprecated="not deprecated">
  1767. <exception name="IOException" type="java.io.IOException"/>
  1768. <doc>
  1769. <![CDATA[Can be used by implementing classes to close any resources
  1770. that require closing]]>
  1771. </doc>
  1772. </method>
  1773. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1774. abstract="false" native="false" synchronized="false"
  1775. static="false" final="false" visibility="public"
  1776. deprecated="not deprecated">
  1777. <param name="name" type="java.lang.String"/>
  1778. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1779. <exception name="IOException" type="java.io.IOException"/>
  1780. <doc>
  1781. <![CDATA[Roll a new version of the given key generating the material for it.
  1782. <p/>
  1783. This implementation generates the key material and calls the
  1784. {@link #rollNewVersion(String, byte[])} method.
  1785. @param name the basename of the key
  1786. @return the name of the new version of the key
  1787. @throws IOException]]>
  1788. </doc>
  1789. </method>
  1790. <method name="flush"
  1791. abstract="true" native="false" synchronized="false"
  1792. static="false" final="false" visibility="public"
  1793. deprecated="not deprecated">
  1794. <exception name="IOException" type="java.io.IOException"/>
  1795. <doc>
  1796. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  1797. @throws IOException]]>
  1798. </doc>
  1799. </method>
  1800. <method name="getBaseName" return="java.lang.String"
  1801. abstract="false" native="false" synchronized="false"
  1802. static="true" final="false" visibility="public"
  1803. deprecated="not deprecated">
  1804. <param name="versionName" type="java.lang.String"/>
  1805. <exception name="IOException" type="java.io.IOException"/>
  1806. <doc>
  1807. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  1808. "/aaa/bbb".
  1809. @param versionName the version name to split
  1810. @return the base name of the key
  1811. @throws IOException]]>
  1812. </doc>
  1813. </method>
  1814. <method name="buildVersionName" return="java.lang.String"
  1815. abstract="false" native="false" synchronized="false"
  1816. static="true" final="false" visibility="protected"
  1817. deprecated="not deprecated">
  1818. <param name="name" type="java.lang.String"/>
  1819. <param name="version" type="int"/>
  1820. <doc>
  1821. <![CDATA[Build a version string from a basename and version number. Converts
  1822. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  1823. @param name the basename of the key
  1824. @param version the version of the key
  1825. @return the versionName of the key.]]>
  1826. </doc>
  1827. </method>
  1828. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1829. abstract="false" native="false" synchronized="false"
  1830. static="true" final="false" visibility="public"
  1831. deprecated="not deprecated">
  1832. <param name="providerList" type="java.util.List"/>
  1833. <param name="keyName" type="java.lang.String"/>
  1834. <exception name="IOException" type="java.io.IOException"/>
  1835. <doc>
  1836. <![CDATA[Find the provider with the given key.
  1837. @param providerList the list of providers
  1838. @param keyName the key name we are looking for
  1839. @return the KeyProvider that has the key]]>
  1840. </doc>
  1841. </method>
  1842. <method name="needsPassword" return="boolean"
  1843. abstract="false" native="false" synchronized="false"
  1844. static="false" final="false" visibility="public"
  1845. deprecated="not deprecated">
  1846. <exception name="IOException" type="java.io.IOException"/>
  1847. <doc>
  1848. <![CDATA[Does this provider require a password? This means that a password is
  1849. required for normal operation, and it has not been found through normal
  1850. means. If true, the password should be provided by the caller using
  1851. setPassword().
  1852. @return Whether or not the provider requires a password
  1853. @throws IOException]]>
  1854. </doc>
  1855. </method>
  1856. <method name="noPasswordWarning" return="java.lang.String"
  1857. abstract="false" native="false" synchronized="false"
  1858. static="false" final="false" visibility="public"
  1859. deprecated="not deprecated">
  1860. <doc>
  1861. <![CDATA[If a password for the provider is needed, but is not provided, this will
  1862. return a warning and instructions for supplying said password to the
  1863. provider.
  1864. @return A warning and instructions for supplying the password]]>
  1865. </doc>
  1866. </method>
  1867. <method name="noPasswordError" return="java.lang.String"
  1868. abstract="false" native="false" synchronized="false"
  1869. static="false" final="false" visibility="public"
  1870. deprecated="not deprecated">
  1871. <doc>
  1872. <![CDATA[If a password for the provider is needed, but is not provided, this will
  1873. return an error message and instructions for supplying said password to
  1874. the provider.
  1875. @return An error message and instructions for supplying the password]]>
  1876. </doc>
  1877. </method>
  1878. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  1879. transient="false" volatile="false"
  1880. static="true" final="true" visibility="public"
  1881. deprecated="not deprecated">
  1882. </field>
  1883. <field name="DEFAULT_CIPHER" type="java.lang.String"
  1884. transient="false" volatile="false"
  1885. static="true" final="true" visibility="public"
  1886. deprecated="not deprecated">
  1887. </field>
  1888. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  1889. transient="false" volatile="false"
  1890. static="true" final="true" visibility="public"
  1891. deprecated="not deprecated">
  1892. </field>
  1893. <field name="DEFAULT_BITLENGTH" type="int"
  1894. transient="false" volatile="false"
  1895. static="true" final="true" visibility="public"
  1896. deprecated="not deprecated">
  1897. </field>
  1898. <doc>
  1899. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  1900. abstraction to separate key storage from users of encryption. It
  1901. is intended to support getting or storing keys in a variety of ways,
  1902. including third party bindings.
  1903. <P/>
  1904. <code>KeyProvider</code> implementations must be thread safe.]]>
  1905. </doc>
  1906. </class>
  1907. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  1908. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  1909. <class name="KeyProviderFactory" extends="java.lang.Object"
  1910. abstract="true"
  1911. static="false" final="false" visibility="public"
  1912. deprecated="not deprecated">
  1913. <constructor name="KeyProviderFactory"
  1914. static="false" final="false" visibility="public"
  1915. deprecated="not deprecated">
  1916. </constructor>
  1917. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1918. abstract="true" native="false" synchronized="false"
  1919. static="false" final="false" visibility="public"
  1920. deprecated="not deprecated">
  1921. <param name="providerName" type="java.net.URI"/>
  1922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1923. <exception name="IOException" type="java.io.IOException"/>
  1924. </method>
  1925. <method name="getProviders" return="java.util.List"
  1926. abstract="false" native="false" synchronized="false"
  1927. static="true" final="false" visibility="public"
  1928. deprecated="not deprecated">
  1929. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1930. <exception name="IOException" type="java.io.IOException"/>
  1931. </method>
  1932. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  1933. abstract="false" native="false" synchronized="false"
  1934. static="true" final="false" visibility="public"
  1935. deprecated="not deprecated">
  1936. <param name="uri" type="java.net.URI"/>
  1937. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1938. <exception name="IOException" type="java.io.IOException"/>
  1939. <doc>
  1940. <![CDATA[Create a KeyProvider based on a provided URI.
  1941. @param uri key provider URI
  1942. @param conf configuration to initialize the key provider
  1943. @return the key provider for the specified URI, or <code>NULL</code> if
  1944. a provider for the specified URI scheme could not be found.
  1945. @throws IOException thrown if the provider failed to initialize.]]>
  1946. </doc>
  1947. </method>
  1948. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  1949. transient="false" volatile="false"
  1950. static="true" final="true" visibility="public"
  1951. deprecated="not deprecated">
  1952. </field>
  1953. <doc>
  1954. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  1955. Configuration. It uses a service loader interface to find the available
  1956. KeyProviders and create them based on the list of URIs.]]>
  1957. </doc>
  1958. </class>
  1959. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  1960. </package>
  1961. <package name="org.apache.hadoop.crypto.key.kms">
  1962. </package>
  1963. <package name="org.apache.hadoop.crypto.random">
  1964. </package>
  1965. <package name="org.apache.hadoop.fs">
  1966. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  1967. <class name="AbstractFileSystem" extends="java.lang.Object"
  1968. abstract="true"
  1969. static="false" final="false" visibility="public"
  1970. deprecated="not deprecated">
  1971. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  1972. static="false" final="false" visibility="public"
  1973. deprecated="not deprecated">
  1974. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  1975. <doc>
  1976. <![CDATA[Constructor to be called by subclasses.
  1977. @param uri for this file system.
  1978. @param supportedScheme the scheme supported by the implementor
  1979. @param authorityNeeded if true then theURI must have authority, if false
  1980. then the URI must have null authority.
  1981. @throws URISyntaxException <code>uri</code> has syntax error]]>
  1982. </doc>
  1983. </constructor>
  1984. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1985. abstract="false" native="false" synchronized="false"
  1986. static="false" final="false" visibility="public"
  1987. deprecated="not deprecated">
  1988. </method>
  1989. <method name="isValidName" return="boolean"
  1990. abstract="false" native="false" synchronized="false"
  1991. static="false" final="false" visibility="public"
  1992. deprecated="not deprecated">
  1993. <param name="src" type="java.lang.String"/>
  1994. <doc>
  1995. <![CDATA[Returns true if the specified string is considered valid in the path part
  1996. of a URI by this file system. The default implementation enforces the rules
  1997. of HDFS, but subclasses may override this method to implement specific
  1998. validation rules for specific file systems.
  1999. @param src String source filename to check, path part of the URI
  2000. @return boolean true if the specified string is considered valid]]>
  2001. </doc>
  2002. </method>
  2003. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2004. abstract="false" native="false" synchronized="false"
  2005. static="true" final="false" visibility="public"
  2006. deprecated="not deprecated">
  2007. <param name="uri" type="java.net.URI"/>
  2008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2009. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2010. <doc>
  2011. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2012. conf is used to find the class name that implements the file system. The
  2013. conf is also passed to the file system for its configuration.
  2014. @param uri URI of the file system
  2015. @param conf Configuration for the file system
  2016. @return Returns the file system for the given URI
  2017. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2018. not found]]>
  2019. </doc>
  2020. </method>
  2021. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2022. abstract="false" native="false" synchronized="true"
  2023. static="true" final="false" visibility="protected"
  2024. deprecated="not deprecated">
  2025. <param name="uri" type="java.net.URI"/>
  2026. <doc>
  2027. <![CDATA[Get the statistics for a particular file system.
  2028. @param uri
  2029. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2030. part of the uri are used.
  2031. @return a statistics object]]>
  2032. </doc>
  2033. </method>
  2034. <method name="clearStatistics"
  2035. abstract="false" native="false" synchronized="true"
  2036. static="true" final="false" visibility="public"
  2037. deprecated="not deprecated">
  2038. </method>
  2039. <method name="printStatistics"
  2040. abstract="false" native="false" synchronized="true"
  2041. static="true" final="false" visibility="public"
  2042. deprecated="not deprecated">
  2043. <doc>
  2044. <![CDATA[Prints statistics for all file systems.]]>
  2045. </doc>
  2046. </method>
  2047. <method name="getAllStatistics" return="java.util.Map"
  2048. abstract="false" native="false" synchronized="true"
  2049. static="true" final="false" visibility="protected"
  2050. deprecated="not deprecated">
  2051. </method>
  2052. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2053. abstract="false" native="false" synchronized="false"
  2054. static="true" final="false" visibility="public"
  2055. deprecated="not deprecated">
  2056. <param name="uri" type="java.net.URI"/>
  2057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2058. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2059. <doc>
  2060. <![CDATA[The main factory method for creating a file system. Get a file system for
  2061. the URI's scheme and authority. The scheme of the <code>uri</code>
  2062. determines a configuration property name,
  2063. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2064. AbstractFileSystem class.
  2065. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2066. @param uri for the file system to be created.
  2067. @param conf which is passed to the file system impl.
  2068. @return file system for the given URI.
  2069. @throws UnsupportedFileSystemException if the file system for
  2070. <code>uri</code> is not supported.]]>
  2071. </doc>
  2072. </method>
  2073. <method name="checkScheme"
  2074. abstract="false" native="false" synchronized="false"
  2075. static="false" final="false" visibility="public"
  2076. deprecated="not deprecated">
  2077. <param name="uri" type="java.net.URI"/>
  2078. <param name="supportedScheme" type="java.lang.String"/>
  2079. <doc>
  2080. <![CDATA[Check that the Uri's scheme matches
  2081. @param uri
  2082. @param supportedScheme]]>
  2083. </doc>
  2084. </method>
  2085. <method name="getUriDefaultPort" return="int"
  2086. abstract="true" native="false" synchronized="false"
  2087. static="false" final="false" visibility="public"
  2088. deprecated="not deprecated">
  2089. <doc>
  2090. <![CDATA[The default port of this file system.
  2091. @return default port of this file system's Uri scheme
  2092. A uri with a port of -1 => default port;]]>
  2093. </doc>
  2094. </method>
  2095. <method name="getUri" return="java.net.URI"
  2096. abstract="false" native="false" synchronized="false"
  2097. static="false" final="false" visibility="public"
  2098. deprecated="not deprecated">
  2099. <doc>
  2100. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2101. @return the uri of this file system.]]>
  2102. </doc>
  2103. </method>
  2104. <method name="checkPath"
  2105. abstract="false" native="false" synchronized="false"
  2106. static="false" final="false" visibility="public"
  2107. deprecated="not deprecated">
  2108. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2109. <doc>
  2110. <![CDATA[Check that a Path belongs to this FileSystem.
  2111. If the path is fully qualified URI, then its scheme and authority
  2112. matches that of this file system. Otherwise the path must be
  2113. slash-relative name.
  2114. @throws InvalidPathException if the path is invalid]]>
  2115. </doc>
  2116. </method>
  2117. <method name="getUriPath" return="java.lang.String"
  2118. abstract="false" native="false" synchronized="false"
  2119. static="false" final="false" visibility="public"
  2120. deprecated="not deprecated">
  2121. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2122. <doc>
  2123. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2124. and that the path-part is a valid name.
  2125. @param p path
  2126. @return path-part of the Path p]]>
  2127. </doc>
  2128. </method>
  2129. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2130. abstract="false" native="false" synchronized="false"
  2131. static="false" final="false" visibility="public"
  2132. deprecated="not deprecated">
  2133. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2134. <doc>
  2135. <![CDATA[Make the path fully qualified to this file system
  2136. @param path
  2137. @return the qualified path]]>
  2138. </doc>
  2139. </method>
  2140. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2141. abstract="false" native="false" synchronized="false"
  2142. static="false" final="false" visibility="public"
  2143. deprecated="not deprecated">
  2144. <doc>
  2145. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2146. that is used as the starting workingDir. For other file systems
  2147. like HDFS there is no built in notion of an initial workingDir.
  2148. @return the initial workingDir if the file system has such a notion
  2149. otherwise return a null.]]>
  2150. </doc>
  2151. </method>
  2152. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2153. abstract="false" native="false" synchronized="false"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <doc>
  2157. <![CDATA[Return the current user's home directory in this file system.
  2158. The default implementation returns "/user/$USER/".
  2159. @return current user's home directory.]]>
  2160. </doc>
  2161. </method>
  2162. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2163. abstract="true" native="false" synchronized="false"
  2164. static="false" final="false" visibility="public"
  2165. deprecated="not deprecated">
  2166. <exception name="IOException" type="java.io.IOException"/>
  2167. <doc>
  2168. <![CDATA[Return a set of server default configuration values.
  2169. @return server default configuration values
  2170. @throws IOException an I/O error occurred]]>
  2171. </doc>
  2172. </method>
  2173. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2174. abstract="false" native="false" synchronized="false"
  2175. static="false" final="false" visibility="public"
  2176. deprecated="not deprecated">
  2177. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2178. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2179. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2180. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2181. <exception name="IOException" type="java.io.IOException"/>
  2182. <doc>
  2183. <![CDATA[Return the fully-qualified path of path f resolving the path
  2184. through any internal symlinks or mount point
  2185. @param p path to be resolved
  2186. @return fully qualified path
  2187. @throws FileNotFoundException, AccessControlException, IOException
  2188. UnresolvedLinkException if symbolic link on path cannot be resolved
  2189. internally]]>
  2190. </doc>
  2191. </method>
  2192. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2193. abstract="false" native="false" synchronized="false"
  2194. static="false" final="true" visibility="public"
  2195. deprecated="not deprecated">
  2196. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2197. <param name="createFlag" type="java.util.EnumSet"/>
  2198. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2199. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2200. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2201. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2202. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2203. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2204. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2205. <exception name="IOException" type="java.io.IOException"/>
  2206. <doc>
  2207. <![CDATA[The specification of this method matches that of
  2208. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2209. that the Path f must be fully qualified and the permission is absolute
  2210. (i.e. umask has been applied).]]>
  2211. </doc>
  2212. </method>
  2213. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2214. abstract="true" native="false" synchronized="false"
  2215. static="false" final="false" visibility="public"
  2216. deprecated="not deprecated">
  2217. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2218. <param name="flag" type="java.util.EnumSet"/>
  2219. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2220. <param name="bufferSize" type="int"/>
  2221. <param name="replication" type="short"/>
  2222. <param name="blockSize" type="long"/>
  2223. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2224. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2225. <param name="createParent" type="boolean"/>
  2226. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2227. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2228. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2229. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2230. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2231. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2232. <exception name="IOException" type="java.io.IOException"/>
  2233. <doc>
  2234. <![CDATA[The specification of this method matches that of
  2235. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2236. have been declared explicitly.]]>
  2237. </doc>
  2238. </method>
  2239. <method name="mkdir"
  2240. abstract="true" native="false" synchronized="false"
  2241. static="false" final="false" visibility="public"
  2242. deprecated="not deprecated">
  2243. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2244. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2245. <param name="createParent" type="boolean"/>
  2246. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2247. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2248. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2249. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2250. <exception name="IOException" type="java.io.IOException"/>
  2251. <doc>
  2252. <![CDATA[The specification of this method matches that of
  2253. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2254. f must be fully qualified and the permission is absolute (i.e.
  2255. umask has been applied).]]>
  2256. </doc>
  2257. </method>
  2258. <method name="delete" return="boolean"
  2259. abstract="true" native="false" synchronized="false"
  2260. static="false" final="false" visibility="public"
  2261. deprecated="not deprecated">
  2262. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2263. <param name="recursive" type="boolean"/>
  2264. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2265. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2266. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2267. <exception name="IOException" type="java.io.IOException"/>
  2268. <doc>
  2269. <![CDATA[The specification of this method matches that of
  2270. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2271. this file system.]]>
  2272. </doc>
  2273. </method>
  2274. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2275. abstract="false" native="false" synchronized="false"
  2276. static="false" final="false" visibility="public"
  2277. deprecated="not deprecated">
  2278. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2279. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2280. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2281. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2282. <exception name="IOException" type="java.io.IOException"/>
  2283. <doc>
  2284. <![CDATA[The specification of this method matches that of
  2285. {@link FileContext#open(Path)} except that Path f must be for this
  2286. file system.]]>
  2287. </doc>
  2288. </method>
  2289. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2290. abstract="true" native="false" synchronized="false"
  2291. static="false" final="false" visibility="public"
  2292. deprecated="not deprecated">
  2293. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2294. <param name="bufferSize" type="int"/>
  2295. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2296. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2297. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2298. <exception name="IOException" type="java.io.IOException"/>
  2299. <doc>
  2300. <![CDATA[The specification of this method matches that of
  2301. {@link FileContext#open(Path, int)} except that Path f must be for this
  2302. file system.]]>
  2303. </doc>
  2304. </method>
  2305. <method name="truncate" return="boolean"
  2306. abstract="false" native="false" synchronized="false"
  2307. static="false" final="false" visibility="public"
  2308. deprecated="not deprecated">
  2309. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2310. <param name="newLength" type="long"/>
  2311. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2312. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2313. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2314. <exception name="IOException" type="java.io.IOException"/>
  2315. <doc>
  2316. <![CDATA[The specification of this method matches that of
  2317. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2318. this file system.]]>
  2319. </doc>
  2320. </method>
  2321. <method name="setReplication" return="boolean"
  2322. abstract="true" native="false" synchronized="false"
  2323. static="false" final="false" visibility="public"
  2324. deprecated="not deprecated">
  2325. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2326. <param name="replication" type="short"/>
  2327. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2328. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2329. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2330. <exception name="IOException" type="java.io.IOException"/>
  2331. <doc>
  2332. <![CDATA[The specification of this method matches that of
  2333. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2334. for this file system.]]>
  2335. </doc>
  2336. </method>
  2337. <method name="rename"
  2338. abstract="false" native="false" synchronized="false"
  2339. static="false" final="true" visibility="public"
  2340. deprecated="not deprecated">
  2341. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2342. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2343. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2344. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2345. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2346. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2347. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2348. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2349. <exception name="IOException" type="java.io.IOException"/>
  2350. <doc>
  2351. <![CDATA[The specification of this method matches that of
  2352. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2353. f must be for this file system.]]>
  2354. </doc>
  2355. </method>
  2356. <method name="renameInternal"
  2357. abstract="true" native="false" synchronized="false"
  2358. static="false" final="false" visibility="public"
  2359. deprecated="not deprecated">
  2360. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2361. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2362. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2363. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2364. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2365. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2366. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2367. <exception name="IOException" type="java.io.IOException"/>
  2368. <doc>
  2369. <![CDATA[The specification of this method matches that of
  2370. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2371. f must be for this file system and NO OVERWRITE is performed.
  2372. File systems that do not have a built in overwrite need implement only this
  2373. method and can take advantage of the default impl of the other
  2374. {@link #renameInternal(Path, Path, boolean)}]]>
  2375. </doc>
  2376. </method>
  2377. <method name="renameInternal"
  2378. abstract="false" native="false" synchronized="false"
  2379. static="false" final="false" visibility="public"
  2380. deprecated="not deprecated">
  2381. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2382. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2383. <param name="overwrite" type="boolean"/>
  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.]]>
  2394. </doc>
  2395. </method>
  2396. <method name="supportsSymlinks" return="boolean"
  2397. abstract="false" native="false" synchronized="false"
  2398. static="false" final="false" visibility="public"
  2399. deprecated="not deprecated">
  2400. <doc>
  2401. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2402. @return true if filesystem supports symlinks]]>
  2403. </doc>
  2404. </method>
  2405. <method name="createSymlink"
  2406. abstract="false" native="false" synchronized="false"
  2407. static="false" final="false" visibility="public"
  2408. deprecated="not deprecated">
  2409. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2410. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2411. <param name="createParent" type="boolean"/>
  2412. <exception name="IOException" type="java.io.IOException"/>
  2413. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2414. <doc>
  2415. <![CDATA[The specification of this method matches that of
  2416. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2417. </doc>
  2418. </method>
  2419. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2420. abstract="false" native="false" synchronized="false"
  2421. static="false" final="false" visibility="public"
  2422. deprecated="not deprecated">
  2423. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2424. <exception name="IOException" type="java.io.IOException"/>
  2425. <doc>
  2426. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2427. {@link FSLinkResolver}, and differs from the similarly named method
  2428. {@link FileContext#getLinkTarget(Path)}.
  2429. @throws IOException subclass implementations may throw IOException]]>
  2430. </doc>
  2431. </method>
  2432. <method name="setPermission"
  2433. abstract="true" native="false" synchronized="false"
  2434. static="false" final="false" visibility="public"
  2435. deprecated="not deprecated">
  2436. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2437. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2438. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2439. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2440. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2441. <exception name="IOException" type="java.io.IOException"/>
  2442. <doc>
  2443. <![CDATA[The specification of this method matches that of
  2444. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2445. must be for this file system.]]>
  2446. </doc>
  2447. </method>
  2448. <method name="setOwner"
  2449. abstract="true" native="false" synchronized="false"
  2450. static="false" final="false" visibility="public"
  2451. deprecated="not deprecated">
  2452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2453. <param name="username" type="java.lang.String"/>
  2454. <param name="groupname" type="java.lang.String"/>
  2455. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2456. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2457. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2458. <exception name="IOException" type="java.io.IOException"/>
  2459. <doc>
  2460. <![CDATA[The specification of this method matches that of
  2461. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2462. be for this file system.]]>
  2463. </doc>
  2464. </method>
  2465. <method name="setTimes"
  2466. abstract="true" native="false" synchronized="false"
  2467. static="false" final="false" visibility="public"
  2468. deprecated="not deprecated">
  2469. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2470. <param name="mtime" type="long"/>
  2471. <param name="atime" type="long"/>
  2472. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2473. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2474. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2475. <exception name="IOException" type="java.io.IOException"/>
  2476. <doc>
  2477. <![CDATA[The specification of this method matches that of
  2478. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2479. for this file system.]]>
  2480. </doc>
  2481. </method>
  2482. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2483. abstract="true" native="false" synchronized="false"
  2484. static="false" final="false" visibility="public"
  2485. deprecated="not deprecated">
  2486. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2487. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2488. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2489. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2490. <exception name="IOException" type="java.io.IOException"/>
  2491. <doc>
  2492. <![CDATA[The specification of this method matches that of
  2493. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2494. this file system.]]>
  2495. </doc>
  2496. </method>
  2497. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2498. abstract="true" native="false" synchronized="false"
  2499. static="false" final="false" visibility="public"
  2500. deprecated="not deprecated">
  2501. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2502. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2503. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2504. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2505. <exception name="IOException" type="java.io.IOException"/>
  2506. <doc>
  2507. <![CDATA[The specification of this method matches that of
  2508. {@link FileContext#getFileStatus(Path)}
  2509. except that an UnresolvedLinkException may be thrown if a symlink is
  2510. encountered in the path.]]>
  2511. </doc>
  2512. </method>
  2513. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2514. abstract="false" native="false" synchronized="false"
  2515. static="false" final="false" visibility="public"
  2516. deprecated="not deprecated">
  2517. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2518. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2519. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2520. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2521. <exception name="IOException" type="java.io.IOException"/>
  2522. <doc>
  2523. <![CDATA[The specification of this method matches that of
  2524. {@link FileContext#getFileLinkStatus(Path)}
  2525. except that an UnresolvedLinkException may be thrown if a symlink is
  2526. encountered in the path leading up to the final path component.
  2527. If the file system does not support symlinks then the behavior is
  2528. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2529. </doc>
  2530. </method>
  2531. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2532. abstract="true" native="false" synchronized="false"
  2533. static="false" final="false" visibility="public"
  2534. deprecated="not deprecated">
  2535. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2536. <param name="start" type="long"/>
  2537. <param name="len" type="long"/>
  2538. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2539. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2540. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2541. <exception name="IOException" type="java.io.IOException"/>
  2542. <doc>
  2543. <![CDATA[The specification of this method matches that of
  2544. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2545. Path f must be for this file system.]]>
  2546. </doc>
  2547. </method>
  2548. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2549. abstract="false" native="false" synchronized="false"
  2550. static="false" final="false" visibility="public"
  2551. deprecated="not deprecated">
  2552. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2553. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2554. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2555. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2556. <exception name="IOException" type="java.io.IOException"/>
  2557. <doc>
  2558. <![CDATA[The specification of this method matches that of
  2559. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2560. file system.]]>
  2561. </doc>
  2562. </method>
  2563. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2564. abstract="true" native="false" synchronized="false"
  2565. static="false" final="false" visibility="public"
  2566. deprecated="not deprecated">
  2567. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2568. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2569. <exception name="IOException" type="java.io.IOException"/>
  2570. <doc>
  2571. <![CDATA[The specification of this method matches that of
  2572. {@link FileContext#getFsStatus(Path)}.]]>
  2573. </doc>
  2574. </method>
  2575. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2576. abstract="false" native="false" synchronized="false"
  2577. static="false" final="false" visibility="public"
  2578. deprecated="not deprecated">
  2579. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2580. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2581. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2582. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2583. <exception name="IOException" type="java.io.IOException"/>
  2584. <doc>
  2585. <![CDATA[The specification of this method matches that of
  2586. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2587. file system.]]>
  2588. </doc>
  2589. </method>
  2590. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2591. abstract="false" native="false" synchronized="false"
  2592. static="false" final="false" visibility="public"
  2593. deprecated="not deprecated">
  2594. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2595. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2596. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2597. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2598. <exception name="IOException" type="java.io.IOException"/>
  2599. <doc>
  2600. <![CDATA[The specification of this method matches that of
  2601. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2602. must be for this file system.]]>
  2603. </doc>
  2604. </method>
  2605. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2606. abstract="true" native="false" synchronized="false"
  2607. static="false" final="false" visibility="public"
  2608. deprecated="not deprecated">
  2609. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2610. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2611. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2612. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2613. <exception name="IOException" type="java.io.IOException"/>
  2614. <doc>
  2615. <![CDATA[The specification of this method matches that of
  2616. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2617. for this file system.]]>
  2618. </doc>
  2619. </method>
  2620. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  2621. abstract="false" native="false" synchronized="false"
  2622. static="false" final="false" visibility="public"
  2623. deprecated="not deprecated">
  2624. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2625. <exception name="IOException" type="java.io.IOException"/>
  2626. <doc>
  2627. <![CDATA[@return an iterator over the corrupt files under the given path
  2628. (may contain duplicates if a file has more than one corrupt block)
  2629. @throws IOException]]>
  2630. </doc>
  2631. </method>
  2632. <method name="setVerifyChecksum"
  2633. abstract="true" native="false" synchronized="false"
  2634. static="false" final="false" visibility="public"
  2635. deprecated="not deprecated">
  2636. <param name="verifyChecksum" type="boolean"/>
  2637. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2638. <exception name="IOException" type="java.io.IOException"/>
  2639. <doc>
  2640. <![CDATA[The specification of this method matches that of
  2641. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  2642. must be for this file system.]]>
  2643. </doc>
  2644. </method>
  2645. <method name="getCanonicalServiceName" return="java.lang.String"
  2646. abstract="false" native="false" synchronized="false"
  2647. static="false" final="false" visibility="public"
  2648. deprecated="not deprecated">
  2649. <doc>
  2650. <![CDATA[Get a canonical name for this file system.
  2651. @return a URI string that uniquely identifies this file system]]>
  2652. </doc>
  2653. </method>
  2654. <method name="modifyAclEntries"
  2655. abstract="false" native="false" synchronized="false"
  2656. static="false" final="false" visibility="public"
  2657. deprecated="not deprecated">
  2658. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2659. <param name="aclSpec" type="java.util.List"/>
  2660. <exception name="IOException" type="java.io.IOException"/>
  2661. <doc>
  2662. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  2663. entries or modify the permissions on existing ACL entries. All existing
  2664. ACL entries that are not specified in this call are retained without
  2665. changes. (Modifications are merged into the current ACL.)
  2666. @param path Path to modify
  2667. @param aclSpec List<AclEntry> describing modifications
  2668. @throws IOException if an ACL could not be modified]]>
  2669. </doc>
  2670. </method>
  2671. <method name="removeAclEntries"
  2672. abstract="false" native="false" synchronized="false"
  2673. static="false" final="false" visibility="public"
  2674. deprecated="not deprecated">
  2675. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2676. <param name="aclSpec" type="java.util.List"/>
  2677. <exception name="IOException" type="java.io.IOException"/>
  2678. <doc>
  2679. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  2680. retained.
  2681. @param path Path to modify
  2682. @param aclSpec List<AclEntry> describing entries to remove
  2683. @throws IOException if an ACL could not be modified]]>
  2684. </doc>
  2685. </method>
  2686. <method name="removeDefaultAcl"
  2687. abstract="false" native="false" synchronized="false"
  2688. static="false" final="false" visibility="public"
  2689. deprecated="not deprecated">
  2690. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2691. <exception name="IOException" type="java.io.IOException"/>
  2692. <doc>
  2693. <![CDATA[Removes all default ACL entries from files and directories.
  2694. @param path Path to modify
  2695. @throws IOException if an ACL could not be modified]]>
  2696. </doc>
  2697. </method>
  2698. <method name="removeAcl"
  2699. abstract="false" native="false" synchronized="false"
  2700. static="false" final="false" visibility="public"
  2701. deprecated="not deprecated">
  2702. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2703. <exception name="IOException" type="java.io.IOException"/>
  2704. <doc>
  2705. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  2706. for user, group, and others are retained for compatibility with permission
  2707. bits.
  2708. @param path Path to modify
  2709. @throws IOException if an ACL could not be removed]]>
  2710. </doc>
  2711. </method>
  2712. <method name="setAcl"
  2713. abstract="false" native="false" synchronized="false"
  2714. static="false" final="false" visibility="public"
  2715. deprecated="not deprecated">
  2716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2717. <param name="aclSpec" type="java.util.List"/>
  2718. <exception name="IOException" type="java.io.IOException"/>
  2719. <doc>
  2720. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  2721. entries.
  2722. @param path Path to modify
  2723. @param aclSpec List<AclEntry> describing modifications, must include entries
  2724. for user, group, and others for compatibility with permission bits.
  2725. @throws IOException if an ACL could not be modified]]>
  2726. </doc>
  2727. </method>
  2728. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  2729. abstract="false" native="false" synchronized="false"
  2730. static="false" final="false" visibility="public"
  2731. deprecated="not deprecated">
  2732. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2733. <exception name="IOException" type="java.io.IOException"/>
  2734. <doc>
  2735. <![CDATA[Gets the ACLs of files and directories.
  2736. @param path Path to get
  2737. @return RemoteIterator<AclStatus> which returns each AclStatus
  2738. @throws IOException if an ACL could not be read]]>
  2739. </doc>
  2740. </method>
  2741. <method name="setXAttr"
  2742. abstract="false" native="false" synchronized="false"
  2743. static="false" final="false" visibility="public"
  2744. deprecated="not deprecated">
  2745. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2746. <param name="name" type="java.lang.String"/>
  2747. <param name="value" type="byte[]"/>
  2748. <exception name="IOException" type="java.io.IOException"/>
  2749. <doc>
  2750. <![CDATA[Set an xattr of a file or directory.
  2751. The name must be prefixed with the namespace followed by ".". For example,
  2752. "user.attr".
  2753. <p/>
  2754. Refer to the HDFS extended attributes user documentation for details.
  2755. @param path Path to modify
  2756. @param name xattr name.
  2757. @param value xattr value.
  2758. @throws IOException]]>
  2759. </doc>
  2760. </method>
  2761. <method name="setXAttr"
  2762. abstract="false" native="false" synchronized="false"
  2763. static="false" final="false" visibility="public"
  2764. deprecated="not deprecated">
  2765. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2766. <param name="name" type="java.lang.String"/>
  2767. <param name="value" type="byte[]"/>
  2768. <param name="flag" type="java.util.EnumSet"/>
  2769. <exception name="IOException" type="java.io.IOException"/>
  2770. <doc>
  2771. <![CDATA[Set an xattr of a file or directory.
  2772. The name must be prefixed with the namespace followed by ".". For example,
  2773. "user.attr".
  2774. <p/>
  2775. Refer to the HDFS extended attributes user documentation for details.
  2776. @param path Path to modify
  2777. @param name xattr name.
  2778. @param value xattr value.
  2779. @param flag xattr set flag
  2780. @throws IOException]]>
  2781. </doc>
  2782. </method>
  2783. <method name="getXAttr" return="byte[]"
  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. <exception name="IOException" type="java.io.IOException"/>
  2790. <doc>
  2791. <![CDATA[Get an xattr for a file or directory.
  2792. The name must be prefixed with the namespace followed by ".". For example,
  2793. "user.attr".
  2794. <p/>
  2795. Refer to the HDFS extended attributes user documentation for details.
  2796. @param path Path to get extended attribute
  2797. @param name xattr name.
  2798. @return byte[] xattr value.
  2799. @throws IOException]]>
  2800. </doc>
  2801. </method>
  2802. <method name="getXAttrs" return="java.util.Map"
  2803. abstract="false" native="false" synchronized="false"
  2804. static="false" final="false" visibility="public"
  2805. deprecated="not deprecated">
  2806. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2807. <exception name="IOException" type="java.io.IOException"/>
  2808. <doc>
  2809. <![CDATA[Get all of the xattrs for a file or directory.
  2810. Only those xattrs for which the logged-in user has permissions to view
  2811. are returned.
  2812. <p/>
  2813. Refer to the HDFS extended attributes user documentation for details.
  2814. @param path Path to get extended attributes
  2815. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2816. @throws IOException]]>
  2817. </doc>
  2818. </method>
  2819. <method name="getXAttrs" return="java.util.Map"
  2820. abstract="false" native="false" synchronized="false"
  2821. static="false" final="false" visibility="public"
  2822. deprecated="not deprecated">
  2823. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2824. <param name="names" type="java.util.List"/>
  2825. <exception name="IOException" type="java.io.IOException"/>
  2826. <doc>
  2827. <![CDATA[Get all of the xattrs for a file or directory.
  2828. Only those xattrs for which the logged-in user has permissions to view
  2829. are returned.
  2830. <p/>
  2831. Refer to the HDFS extended attributes user documentation for details.
  2832. @param path Path to get extended attributes
  2833. @param names XAttr names.
  2834. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2835. @throws IOException]]>
  2836. </doc>
  2837. </method>
  2838. <method name="listXAttrs" return="java.util.List"
  2839. abstract="false" native="false" synchronized="false"
  2840. static="false" final="false" visibility="public"
  2841. deprecated="not deprecated">
  2842. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2843. <exception name="IOException" type="java.io.IOException"/>
  2844. <doc>
  2845. <![CDATA[Get all of the xattr names for a file or directory.
  2846. Only the xattr names for which the logged-in user has permissions to view
  2847. are returned.
  2848. <p/>
  2849. Refer to the HDFS extended attributes user documentation for details.
  2850. @param path Path to get extended attributes
  2851. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2852. @throws IOException]]>
  2853. </doc>
  2854. </method>
  2855. <method name="removeXAttr"
  2856. abstract="false" native="false" synchronized="false"
  2857. static="false" final="false" visibility="public"
  2858. deprecated="not deprecated">
  2859. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2860. <param name="name" type="java.lang.String"/>
  2861. <exception name="IOException" type="java.io.IOException"/>
  2862. <doc>
  2863. <![CDATA[Remove an xattr of a file or directory.
  2864. The name must be prefixed with the namespace followed by ".". For example,
  2865. "user.attr".
  2866. <p/>
  2867. Refer to the HDFS extended attributes user documentation for details.
  2868. @param path Path to remove extended attribute
  2869. @param name xattr name
  2870. @throws IOException]]>
  2871. </doc>
  2872. </method>
  2873. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  2874. abstract="false" native="false" synchronized="false"
  2875. static="false" final="false" visibility="public"
  2876. deprecated="not deprecated">
  2877. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2878. <param name="snapshotName" type="java.lang.String"/>
  2879. <exception name="IOException" type="java.io.IOException"/>
  2880. <doc>
  2881. <![CDATA[The specification of this method matches that of
  2882. {@link FileContext#createSnapshot(Path, String)}.]]>
  2883. </doc>
  2884. </method>
  2885. <method name="renameSnapshot"
  2886. abstract="false" native="false" synchronized="false"
  2887. static="false" final="false" visibility="public"
  2888. deprecated="not deprecated">
  2889. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2890. <param name="snapshotOldName" type="java.lang.String"/>
  2891. <param name="snapshotNewName" type="java.lang.String"/>
  2892. <exception name="IOException" type="java.io.IOException"/>
  2893. <doc>
  2894. <![CDATA[The specification of this method matches that of
  2895. {@link FileContext#renameSnapshot(Path, String, String)}.]]>
  2896. </doc>
  2897. </method>
  2898. <method name="deleteSnapshot"
  2899. abstract="false" native="false" synchronized="false"
  2900. static="false" final="false" visibility="public"
  2901. deprecated="not deprecated">
  2902. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  2903. <param name="snapshotName" type="java.lang.String"/>
  2904. <exception name="IOException" type="java.io.IOException"/>
  2905. <doc>
  2906. <![CDATA[The specification of this method matches that of
  2907. {@link FileContext#deleteSnapshot(Path, String)}.]]>
  2908. </doc>
  2909. </method>
  2910. <method name="setStoragePolicy"
  2911. abstract="false" native="false" synchronized="false"
  2912. static="false" final="false" visibility="public"
  2913. deprecated="not deprecated">
  2914. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2915. <param name="policyName" type="java.lang.String"/>
  2916. <exception name="IOException" type="java.io.IOException"/>
  2917. <doc>
  2918. <![CDATA[Set the storage policy for a given file or directory.
  2919. @param path file or directory path.
  2920. @param policyName the name of the target storage policy. The list
  2921. of supported Storage policies can be retrieved
  2922. via {@link #getAllStoragePolicies}.]]>
  2923. </doc>
  2924. </method>
  2925. <method name="unsetStoragePolicy"
  2926. abstract="false" native="false" synchronized="false"
  2927. static="false" final="false" visibility="public"
  2928. deprecated="not deprecated">
  2929. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2930. <exception name="IOException" type="java.io.IOException"/>
  2931. <doc>
  2932. <![CDATA[Unset the storage policy set for a given file or directory.
  2933. @param src file or directory path.
  2934. @throws IOException]]>
  2935. </doc>
  2936. </method>
  2937. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  2938. abstract="false" native="false" synchronized="false"
  2939. static="false" final="false" visibility="public"
  2940. deprecated="not deprecated">
  2941. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2942. <exception name="IOException" type="java.io.IOException"/>
  2943. <doc>
  2944. <![CDATA[Retrieve the storage policy for a given file or directory.
  2945. @param src file or directory path.
  2946. @return storage policy for give file.
  2947. @throws IOException]]>
  2948. </doc>
  2949. </method>
  2950. <method name="getAllStoragePolicies" return="java.util.Collection"
  2951. abstract="false" native="false" synchronized="false"
  2952. static="false" final="false" visibility="public"
  2953. deprecated="not deprecated">
  2954. <exception name="IOException" type="java.io.IOException"/>
  2955. <doc>
  2956. <![CDATA[Retrieve all the storage policies supported by this file system.
  2957. @return all storage policies supported by this filesystem.
  2958. @throws IOException]]>
  2959. </doc>
  2960. </method>
  2961. <method name="hashCode" return="int"
  2962. abstract="false" native="false" synchronized="false"
  2963. static="false" final="false" visibility="public"
  2964. deprecated="not deprecated">
  2965. </method>
  2966. <method name="equals" return="boolean"
  2967. abstract="false" native="false" synchronized="false"
  2968. static="false" final="false" visibility="public"
  2969. deprecated="not deprecated">
  2970. <param name="other" type="java.lang.Object"/>
  2971. </method>
  2972. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  2973. transient="false" volatile="false"
  2974. static="false" final="false" visibility="protected"
  2975. deprecated="not deprecated">
  2976. <doc>
  2977. <![CDATA[The statistics for this file system.]]>
  2978. </doc>
  2979. </field>
  2980. <doc>
  2981. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  2982. (analogous to the VFS of Unix). Applications do not access this class;
  2983. instead they access files across all file systems using {@link FileContext}.
  2984. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  2985. matches the "this" file system (ie same scheme and authority)
  2986. or a Slash-relative name that is assumed to be relative
  2987. to the root of the "this" file system .]]>
  2988. </doc>
  2989. </class>
  2990. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  2991. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  2992. <class name="AvroFSInput" extends="java.lang.Object"
  2993. abstract="false"
  2994. static="false" final="false" visibility="public"
  2995. deprecated="not deprecated">
  2996. <implements name="java.io.Closeable"/>
  2997. <implements name="org.apache.avro.file.SeekableInput"/>
  2998. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  2999. static="false" final="false" visibility="public"
  3000. deprecated="not deprecated">
  3001. <doc>
  3002. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  3003. </doc>
  3004. </constructor>
  3005. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3006. static="false" final="false" visibility="public"
  3007. deprecated="not deprecated">
  3008. <exception name="IOException" type="java.io.IOException"/>
  3009. <doc>
  3010. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  3011. </doc>
  3012. </constructor>
  3013. <method name="length" return="long"
  3014. abstract="false" native="false" synchronized="false"
  3015. static="false" final="false" visibility="public"
  3016. deprecated="not deprecated">
  3017. </method>
  3018. <method name="read" return="int"
  3019. abstract="false" native="false" synchronized="false"
  3020. static="false" final="false" visibility="public"
  3021. deprecated="not deprecated">
  3022. <param name="b" type="byte[]"/>
  3023. <param name="off" type="int"/>
  3024. <param name="len" type="int"/>
  3025. <exception name="IOException" type="java.io.IOException"/>
  3026. </method>
  3027. <method name="seek"
  3028. abstract="false" native="false" synchronized="false"
  3029. static="false" final="false" visibility="public"
  3030. deprecated="not deprecated">
  3031. <param name="p" type="long"/>
  3032. <exception name="IOException" type="java.io.IOException"/>
  3033. </method>
  3034. <method name="tell" return="long"
  3035. abstract="false" native="false" synchronized="false"
  3036. static="false" final="false" visibility="public"
  3037. deprecated="not deprecated">
  3038. <exception name="IOException" type="java.io.IOException"/>
  3039. </method>
  3040. <method name="close"
  3041. abstract="false" native="false" synchronized="false"
  3042. static="false" final="false" visibility="public"
  3043. deprecated="not deprecated">
  3044. <exception name="IOException" type="java.io.IOException"/>
  3045. </method>
  3046. <doc>
  3047. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3048. </doc>
  3049. </class>
  3050. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3051. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3052. <class name="BlockLocation" extends="java.lang.Object"
  3053. abstract="false"
  3054. static="false" final="false" visibility="public"
  3055. deprecated="not deprecated">
  3056. <constructor name="BlockLocation"
  3057. static="false" final="false" visibility="public"
  3058. deprecated="not deprecated">
  3059. <doc>
  3060. <![CDATA[Default Constructor]]>
  3061. </doc>
  3062. </constructor>
  3063. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3064. static="false" final="false" visibility="public"
  3065. deprecated="not deprecated">
  3066. <doc>
  3067. <![CDATA[Copy constructor]]>
  3068. </doc>
  3069. </constructor>
  3070. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3071. static="false" final="false" visibility="public"
  3072. deprecated="not deprecated">
  3073. <doc>
  3074. <![CDATA[Constructor with host, name, offset and length]]>
  3075. </doc>
  3076. </constructor>
  3077. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3078. static="false" final="false" visibility="public"
  3079. deprecated="not deprecated">
  3080. <doc>
  3081. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  3082. </doc>
  3083. </constructor>
  3084. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3085. static="false" final="false" visibility="public"
  3086. deprecated="not deprecated">
  3087. <doc>
  3088. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  3089. </doc>
  3090. </constructor>
  3091. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3092. static="false" final="false" visibility="public"
  3093. deprecated="not deprecated">
  3094. <doc>
  3095. <![CDATA[Constructor with host, name, network topology, offset, length
  3096. and corrupt flag]]>
  3097. </doc>
  3098. </constructor>
  3099. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3100. static="false" final="false" visibility="public"
  3101. deprecated="not deprecated">
  3102. </constructor>
  3103. <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"
  3104. static="false" final="false" visibility="public"
  3105. deprecated="not deprecated">
  3106. </constructor>
  3107. <method name="getHosts" return="java.lang.String[]"
  3108. abstract="false" native="false" synchronized="false"
  3109. static="false" final="false" visibility="public"
  3110. deprecated="not deprecated">
  3111. <exception name="IOException" type="java.io.IOException"/>
  3112. <doc>
  3113. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  3114. </doc>
  3115. </method>
  3116. <method name="getCachedHosts" return="java.lang.String[]"
  3117. abstract="false" native="false" synchronized="false"
  3118. static="false" final="false" visibility="public"
  3119. deprecated="not deprecated">
  3120. <doc>
  3121. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  3122. </doc>
  3123. </method>
  3124. <method name="getNames" return="java.lang.String[]"
  3125. abstract="false" native="false" synchronized="false"
  3126. static="false" final="false" visibility="public"
  3127. deprecated="not deprecated">
  3128. <exception name="IOException" type="java.io.IOException"/>
  3129. <doc>
  3130. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  3131. </doc>
  3132. </method>
  3133. <method name="getTopologyPaths" return="java.lang.String[]"
  3134. abstract="false" native="false" synchronized="false"
  3135. static="false" final="false" visibility="public"
  3136. deprecated="not deprecated">
  3137. <exception name="IOException" type="java.io.IOException"/>
  3138. <doc>
  3139. <![CDATA[Get the list of network topology paths for each of the hosts.
  3140. The last component of the path is the "name" (IP:xferPort).]]>
  3141. </doc>
  3142. </method>
  3143. <method name="getStorageIds" return="java.lang.String[]"
  3144. abstract="false" native="false" synchronized="false"
  3145. static="false" final="false" visibility="public"
  3146. deprecated="not deprecated">
  3147. <doc>
  3148. <![CDATA[Get the storageID of each replica of the block.]]>
  3149. </doc>
  3150. </method>
  3151. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3152. abstract="false" native="false" synchronized="false"
  3153. static="false" final="false" visibility="public"
  3154. deprecated="not deprecated">
  3155. <doc>
  3156. <![CDATA[Get the storage type of each replica of the block.]]>
  3157. </doc>
  3158. </method>
  3159. <method name="getOffset" return="long"
  3160. abstract="false" native="false" synchronized="false"
  3161. static="false" final="false" visibility="public"
  3162. deprecated="not deprecated">
  3163. <doc>
  3164. <![CDATA[Get the start offset of file associated with this block]]>
  3165. </doc>
  3166. </method>
  3167. <method name="getLength" return="long"
  3168. abstract="false" native="false" synchronized="false"
  3169. static="false" final="false" visibility="public"
  3170. deprecated="not deprecated">
  3171. <doc>
  3172. <![CDATA[Get the length of the block]]>
  3173. </doc>
  3174. </method>
  3175. <method name="isCorrupt" return="boolean"
  3176. abstract="false" native="false" synchronized="false"
  3177. static="false" final="false" visibility="public"
  3178. deprecated="not deprecated">
  3179. <doc>
  3180. <![CDATA[Get the corrupt flag.]]>
  3181. </doc>
  3182. </method>
  3183. <method name="setOffset"
  3184. abstract="false" native="false" synchronized="false"
  3185. static="false" final="false" visibility="public"
  3186. deprecated="not deprecated">
  3187. <param name="offset" type="long"/>
  3188. <doc>
  3189. <![CDATA[Set the start offset of file associated with this block]]>
  3190. </doc>
  3191. </method>
  3192. <method name="setLength"
  3193. abstract="false" native="false" synchronized="false"
  3194. static="false" final="false" visibility="public"
  3195. deprecated="not deprecated">
  3196. <param name="length" type="long"/>
  3197. <doc>
  3198. <![CDATA[Set the length of block]]>
  3199. </doc>
  3200. </method>
  3201. <method name="setCorrupt"
  3202. abstract="false" native="false" synchronized="false"
  3203. static="false" final="false" visibility="public"
  3204. deprecated="not deprecated">
  3205. <param name="corrupt" type="boolean"/>
  3206. <doc>
  3207. <![CDATA[Set the corrupt flag.]]>
  3208. </doc>
  3209. </method>
  3210. <method name="setHosts"
  3211. abstract="false" native="false" synchronized="false"
  3212. static="false" final="false" visibility="public"
  3213. deprecated="not deprecated">
  3214. <param name="hosts" type="java.lang.String[]"/>
  3215. <exception name="IOException" type="java.io.IOException"/>
  3216. <doc>
  3217. <![CDATA[Set the hosts hosting this block]]>
  3218. </doc>
  3219. </method>
  3220. <method name="setCachedHosts"
  3221. abstract="false" native="false" synchronized="false"
  3222. static="false" final="false" visibility="public"
  3223. deprecated="not deprecated">
  3224. <param name="cachedHosts" type="java.lang.String[]"/>
  3225. <doc>
  3226. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  3227. </doc>
  3228. </method>
  3229. <method name="setNames"
  3230. abstract="false" native="false" synchronized="false"
  3231. static="false" final="false" visibility="public"
  3232. deprecated="not deprecated">
  3233. <param name="names" type="java.lang.String[]"/>
  3234. <exception name="IOException" type="java.io.IOException"/>
  3235. <doc>
  3236. <![CDATA[Set the names (host:port) hosting this block]]>
  3237. </doc>
  3238. </method>
  3239. <method name="setTopologyPaths"
  3240. abstract="false" native="false" synchronized="false"
  3241. static="false" final="false" visibility="public"
  3242. deprecated="not deprecated">
  3243. <param name="topologyPaths" type="java.lang.String[]"/>
  3244. <exception name="IOException" type="java.io.IOException"/>
  3245. <doc>
  3246. <![CDATA[Set the network topology paths of the hosts]]>
  3247. </doc>
  3248. </method>
  3249. <method name="setStorageIds"
  3250. abstract="false" native="false" synchronized="false"
  3251. static="false" final="false" visibility="public"
  3252. deprecated="not deprecated">
  3253. <param name="storageIds" type="java.lang.String[]"/>
  3254. </method>
  3255. <method name="setStorageTypes"
  3256. abstract="false" native="false" synchronized="false"
  3257. static="false" final="false" visibility="public"
  3258. deprecated="not deprecated">
  3259. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  3260. </method>
  3261. <method name="toString" return="java.lang.String"
  3262. abstract="false" native="false" synchronized="false"
  3263. static="false" final="false" visibility="public"
  3264. deprecated="not deprecated">
  3265. </method>
  3266. <doc>
  3267. <![CDATA[Represents the network location of a block, information about the hosts
  3268. that contain block replicas, and other block metadata (E.g. the file
  3269. offset associated with the block, length, whether it is corrupt, etc).]]>
  3270. </doc>
  3271. </class>
  3272. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3273. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3274. <interface name="BlockStoragePolicySpi" abstract="true"
  3275. static="false" final="false" visibility="public"
  3276. deprecated="not deprecated">
  3277. <method name="getName" return="java.lang.String"
  3278. abstract="false" native="false" synchronized="false"
  3279. static="false" final="false" visibility="public"
  3280. deprecated="not deprecated">
  3281. <doc>
  3282. <![CDATA[Return the name of the storage policy. Policies are uniquely
  3283. identified by name.
  3284. @return the name of the storage policy.]]>
  3285. </doc>
  3286. </method>
  3287. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3288. abstract="false" native="false" synchronized="false"
  3289. static="false" final="false" visibility="public"
  3290. deprecated="not deprecated">
  3291. <doc>
  3292. <![CDATA[Return the preferred storage types associated with this policy. These
  3293. storage types are used sequentially for successive block replicas.
  3294. @return preferred storage types used for placing block replicas.]]>
  3295. </doc>
  3296. </method>
  3297. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3298. abstract="false" native="false" synchronized="false"
  3299. static="false" final="false" visibility="public"
  3300. deprecated="not deprecated">
  3301. <doc>
  3302. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  3303. storage types are used if the preferred storage types are not available.
  3304. @return fallback storage types for new block replicas..]]>
  3305. </doc>
  3306. </method>
  3307. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3308. abstract="false" native="false" synchronized="false"
  3309. static="false" final="false" visibility="public"
  3310. deprecated="not deprecated">
  3311. <doc>
  3312. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  3313. Fallback storage types are used if the preferred storage types are not
  3314. available.
  3315. @return fallback storage types for replicating existing block replicas.]]>
  3316. </doc>
  3317. </method>
  3318. <method name="isCopyOnCreateFile" return="boolean"
  3319. abstract="false" native="false" synchronized="false"
  3320. static="false" final="false" visibility="public"
  3321. deprecated="not deprecated">
  3322. <doc>
  3323. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  3324. an existing file.
  3325. @return true if the policy is inherit-only.]]>
  3326. </doc>
  3327. </method>
  3328. <doc>
  3329. <![CDATA[A storage policy specifies the placement of block replicas on specific
  3330. storage types.]]>
  3331. </doc>
  3332. </interface>
  3333. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3334. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  3335. <interface name="ByteBufferReadable" abstract="true"
  3336. static="false" final="false" visibility="public"
  3337. deprecated="not deprecated">
  3338. <method name="read" return="int"
  3339. abstract="false" native="false" synchronized="false"
  3340. static="false" final="false" visibility="public"
  3341. deprecated="not deprecated">
  3342. <param name="buf" type="java.nio.ByteBuffer"/>
  3343. <exception name="IOException" type="java.io.IOException"/>
  3344. <doc>
  3345. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  3346. buf.limit(..) to control the size of the desired read.
  3347. <p/>
  3348. After a successful call, buf.position() will be advanced by the number
  3349. of bytes read and buf.limit() should be unchanged.
  3350. <p/>
  3351. In the case of an exception, the values of buf.position() and buf.limit()
  3352. are undefined, and callers should be prepared to recover from this
  3353. eventuality.
  3354. <p/>
  3355. Many implementations will throw {@link UnsupportedOperationException}, so
  3356. callers that are not confident in support for this method from the
  3357. underlying filesystem should be prepared to handle that exception.
  3358. <p/>
  3359. Implementations should treat 0-length requests as legitimate, and must not
  3360. signal an error upon their receipt.
  3361. @param buf
  3362. the ByteBuffer to receive the results of the read operation.
  3363. @return the number of bytes read, possibly zero, or -1 if
  3364. reach end-of-stream
  3365. @throws IOException
  3366. if there is some error performing the read]]>
  3367. </doc>
  3368. </method>
  3369. <doc>
  3370. <![CDATA[Implementers of this interface provide a read API that writes to a
  3371. ByteBuffer, not a byte[].]]>
  3372. </doc>
  3373. </interface>
  3374. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  3375. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3376. <interface name="CanSetDropBehind" abstract="true"
  3377. static="false" final="false" visibility="public"
  3378. deprecated="not deprecated">
  3379. <method name="setDropBehind"
  3380. abstract="false" native="false" synchronized="false"
  3381. static="false" final="false" visibility="public"
  3382. deprecated="not deprecated">
  3383. <param name="dropCache" type="java.lang.Boolean"/>
  3384. <exception name="IOException" type="java.io.IOException"/>
  3385. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3386. <doc>
  3387. <![CDATA[Configure whether the stream should drop the cache.
  3388. @param dropCache Whether to drop the cache. null means to use the
  3389. default value.
  3390. @throws IOException If there was an error changing the dropBehind
  3391. setting.
  3392. UnsupportedOperationException If this stream doesn't support
  3393. setting the drop-behind.]]>
  3394. </doc>
  3395. </method>
  3396. </interface>
  3397. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3398. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  3399. <interface name="CanSetReadahead" abstract="true"
  3400. static="false" final="false" visibility="public"
  3401. deprecated="not deprecated">
  3402. <method name="setReadahead"
  3403. abstract="false" native="false" synchronized="false"
  3404. static="false" final="false" visibility="public"
  3405. deprecated="not deprecated">
  3406. <param name="readahead" type="java.lang.Long"/>
  3407. <exception name="IOException" type="java.io.IOException"/>
  3408. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3409. <doc>
  3410. <![CDATA[Set the readahead on this stream.
  3411. @param readahead The readahead to use. null means to use the default.
  3412. @throws IOException If there was an error changing the dropBehind
  3413. setting.
  3414. UnsupportedOperationException If this stream doesn't support
  3415. setting readahead.]]>
  3416. </doc>
  3417. </method>
  3418. </interface>
  3419. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  3420. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  3421. <interface name="CanUnbuffer" abstract="true"
  3422. static="false" final="false" visibility="public"
  3423. deprecated="not deprecated">
  3424. <method name="unbuffer"
  3425. abstract="false" native="false" synchronized="false"
  3426. static="false" final="false" visibility="public"
  3427. deprecated="not deprecated">
  3428. <doc>
  3429. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  3430. held by the stream, if possible.]]>
  3431. </doc>
  3432. </method>
  3433. <doc>
  3434. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  3435. their buffers on request.]]>
  3436. </doc>
  3437. </interface>
  3438. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  3439. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  3440. <class name="ChecksumException" extends="java.io.IOException"
  3441. abstract="false"
  3442. static="false" final="false" visibility="public"
  3443. deprecated="not deprecated">
  3444. <constructor name="ChecksumException" type="java.lang.String, long"
  3445. static="false" final="false" visibility="public"
  3446. deprecated="not deprecated">
  3447. </constructor>
  3448. <method name="getPos" return="long"
  3449. abstract="false" native="false" synchronized="false"
  3450. static="false" final="false" visibility="public"
  3451. deprecated="not deprecated">
  3452. </method>
  3453. <doc>
  3454. <![CDATA[Thrown for checksum errors.]]>
  3455. </doc>
  3456. </class>
  3457. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  3458. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  3459. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  3460. abstract="true"
  3461. static="false" final="false" visibility="public"
  3462. deprecated="not deprecated">
  3463. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3464. static="false" final="false" visibility="public"
  3465. deprecated="not deprecated">
  3466. </constructor>
  3467. <method name="getApproxChkSumLength" return="double"
  3468. abstract="false" native="false" synchronized="false"
  3469. static="true" final="false" visibility="public"
  3470. deprecated="not deprecated">
  3471. <param name="size" type="long"/>
  3472. </method>
  3473. <method name="setConf"
  3474. abstract="false" native="false" synchronized="false"
  3475. static="false" final="false" visibility="public"
  3476. deprecated="not deprecated">
  3477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3478. </method>
  3479. <method name="setVerifyChecksum"
  3480. abstract="false" native="false" synchronized="false"
  3481. static="false" final="false" visibility="public"
  3482. deprecated="not deprecated">
  3483. <param name="verifyChecksum" type="boolean"/>
  3484. <doc>
  3485. <![CDATA[Set whether to verify checksum.]]>
  3486. </doc>
  3487. </method>
  3488. <method name="setWriteChecksum"
  3489. abstract="false" native="false" synchronized="false"
  3490. static="false" final="false" visibility="public"
  3491. deprecated="not deprecated">
  3492. <param name="writeChecksum" type="boolean"/>
  3493. </method>
  3494. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  3495. abstract="false" native="false" synchronized="false"
  3496. static="false" final="false" visibility="public"
  3497. deprecated="not deprecated">
  3498. <doc>
  3499. <![CDATA[get the raw file system]]>
  3500. </doc>
  3501. </method>
  3502. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  3503. abstract="false" native="false" synchronized="false"
  3504. static="false" final="false" visibility="public"
  3505. deprecated="not deprecated">
  3506. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3507. <doc>
  3508. <![CDATA[Return the name of the checksum file associated with a file.]]>
  3509. </doc>
  3510. </method>
  3511. <method name="isChecksumFile" return="boolean"
  3512. abstract="false" native="false" synchronized="false"
  3513. static="true" final="false" visibility="public"
  3514. deprecated="not deprecated">
  3515. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3516. <doc>
  3517. <![CDATA[Return true iff file is a checksum file name.]]>
  3518. </doc>
  3519. </method>
  3520. <method name="getChecksumFileLength" return="long"
  3521. abstract="false" native="false" synchronized="false"
  3522. static="false" final="false" visibility="public"
  3523. deprecated="not deprecated">
  3524. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3525. <param name="fileSize" type="long"/>
  3526. <doc>
  3527. <![CDATA[Return the length of the checksum file given the size of the
  3528. actual file.]]>
  3529. </doc>
  3530. </method>
  3531. <method name="getBytesPerSum" return="int"
  3532. abstract="false" native="false" synchronized="false"
  3533. static="false" final="false" visibility="public"
  3534. deprecated="not deprecated">
  3535. <doc>
  3536. <![CDATA[Return the bytes Per Checksum]]>
  3537. </doc>
  3538. </method>
  3539. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3540. abstract="false" native="false" synchronized="false"
  3541. static="false" final="false" visibility="public"
  3542. deprecated="not deprecated">
  3543. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3544. <param name="bufferSize" type="int"/>
  3545. <exception name="IOException" type="java.io.IOException"/>
  3546. <doc>
  3547. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3548. @param f the file name to open
  3549. @param bufferSize the size of the buffer to be used.]]>
  3550. </doc>
  3551. </method>
  3552. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3553. abstract="false" native="false" synchronized="false"
  3554. static="false" final="false" visibility="public"
  3555. deprecated="not deprecated">
  3556. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3557. <param name="bufferSize" type="int"/>
  3558. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3559. <exception name="IOException" type="java.io.IOException"/>
  3560. </method>
  3561. <method name="truncate" return="boolean"
  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="newLength" type="long"/>
  3567. <exception name="IOException" type="java.io.IOException"/>
  3568. </method>
  3569. <method name="getChecksumLength" return="long"
  3570. abstract="false" native="false" synchronized="false"
  3571. static="true" final="false" visibility="public"
  3572. deprecated="not deprecated">
  3573. <param name="size" type="long"/>
  3574. <param name="bytesPerSum" type="int"/>
  3575. <doc>
  3576. <![CDATA[Calculated the length of the checksum file in bytes.
  3577. @param size the length of the data file in bytes
  3578. @param bytesPerSum the number of bytes in a checksum block
  3579. @return the number of bytes in the checksum file]]>
  3580. </doc>
  3581. </method>
  3582. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3583. abstract="false" native="false" synchronized="false"
  3584. static="false" final="false" visibility="public"
  3585. deprecated="not deprecated">
  3586. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3587. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3588. <param name="overwrite" type="boolean"/>
  3589. <param name="bufferSize" type="int"/>
  3590. <param name="replication" type="short"/>
  3591. <param name="blockSize" type="long"/>
  3592. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3593. <exception name="IOException" type="java.io.IOException"/>
  3594. </method>
  3595. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  3596. abstract="false" native="false" synchronized="false"
  3597. static="false" final="false" visibility="public"
  3598. deprecated="not deprecated">
  3599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3600. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3601. <param name="overwrite" type="boolean"/>
  3602. <param name="bufferSize" type="int"/>
  3603. <param name="replication" type="short"/>
  3604. <param name="blockSize" type="long"/>
  3605. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3606. <exception name="IOException" type="java.io.IOException"/>
  3607. </method>
  3608. <method name="setPermission"
  3609. abstract="false" native="false" synchronized="false"
  3610. static="false" final="false" visibility="public"
  3611. deprecated="not deprecated">
  3612. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3613. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3614. <exception name="IOException" type="java.io.IOException"/>
  3615. </method>
  3616. <method name="setOwner"
  3617. abstract="false" native="false" synchronized="false"
  3618. static="false" final="false" visibility="public"
  3619. deprecated="not deprecated">
  3620. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3621. <param name="username" type="java.lang.String"/>
  3622. <param name="groupname" type="java.lang.String"/>
  3623. <exception name="IOException" type="java.io.IOException"/>
  3624. </method>
  3625. <method name="setAcl"
  3626. abstract="false" native="false" synchronized="false"
  3627. static="false" final="false" visibility="public"
  3628. deprecated="not deprecated">
  3629. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3630. <param name="aclSpec" type="java.util.List"/>
  3631. <exception name="IOException" type="java.io.IOException"/>
  3632. </method>
  3633. <method name="modifyAclEntries"
  3634. abstract="false" native="false" synchronized="false"
  3635. static="false" final="false" visibility="public"
  3636. deprecated="not deprecated">
  3637. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3638. <param name="aclSpec" type="java.util.List"/>
  3639. <exception name="IOException" type="java.io.IOException"/>
  3640. </method>
  3641. <method name="removeAcl"
  3642. abstract="false" native="false" synchronized="false"
  3643. static="false" final="false" visibility="public"
  3644. deprecated="not deprecated">
  3645. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3646. <exception name="IOException" type="java.io.IOException"/>
  3647. </method>
  3648. <method name="removeAclEntries"
  3649. abstract="false" native="false" synchronized="false"
  3650. static="false" final="false" visibility="public"
  3651. deprecated="not deprecated">
  3652. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3653. <param name="aclSpec" type="java.util.List"/>
  3654. <exception name="IOException" type="java.io.IOException"/>
  3655. </method>
  3656. <method name="removeDefaultAcl"
  3657. abstract="false" native="false" synchronized="false"
  3658. static="false" final="false" visibility="public"
  3659. deprecated="not deprecated">
  3660. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3661. <exception name="IOException" type="java.io.IOException"/>
  3662. </method>
  3663. <method name="setReplication" return="boolean"
  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. <param name="replication" type="short"/>
  3669. <exception name="IOException" type="java.io.IOException"/>
  3670. <doc>
  3671. <![CDATA[Set replication for an existing file.
  3672. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  3673. @param src file name
  3674. @param replication new replication
  3675. @throws IOException
  3676. @return true if successful;
  3677. false if file does not exist or is a directory]]>
  3678. </doc>
  3679. </method>
  3680. <method name="rename" return="boolean"
  3681. abstract="false" native="false" synchronized="false"
  3682. static="false" final="false" visibility="public"
  3683. deprecated="not deprecated">
  3684. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3685. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3686. <exception name="IOException" type="java.io.IOException"/>
  3687. <doc>
  3688. <![CDATA[Rename files/dirs]]>
  3689. </doc>
  3690. </method>
  3691. <method name="delete" return="boolean"
  3692. abstract="false" native="false" synchronized="false"
  3693. static="false" final="false" visibility="public"
  3694. deprecated="not deprecated">
  3695. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3696. <param name="recursive" type="boolean"/>
  3697. <exception name="IOException" type="java.io.IOException"/>
  3698. <doc>
  3699. <![CDATA[Implement the delete(Path, boolean) in checksum
  3700. file system.]]>
  3701. </doc>
  3702. </method>
  3703. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3704. abstract="false" native="false" synchronized="false"
  3705. static="false" final="false" visibility="public"
  3706. deprecated="not deprecated">
  3707. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3708. <exception name="IOException" type="java.io.IOException"/>
  3709. <doc>
  3710. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3711. a directory.
  3712. @param f
  3713. given path
  3714. @return the statuses of the files/directories in the given path
  3715. @throws IOException]]>
  3716. </doc>
  3717. </method>
  3718. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3719. abstract="false" native="false" synchronized="false"
  3720. static="false" final="false" visibility="public"
  3721. deprecated="not deprecated">
  3722. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3723. <exception name="IOException" type="java.io.IOException"/>
  3724. <doc>
  3725. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3726. a directory.
  3727. @param f
  3728. given path
  3729. @return the statuses of the files/directories in the given patch
  3730. @throws IOException]]>
  3731. </doc>
  3732. </method>
  3733. <method name="mkdirs" return="boolean"
  3734. abstract="false" native="false" synchronized="false"
  3735. static="false" final="false" visibility="public"
  3736. deprecated="not deprecated">
  3737. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3738. <exception name="IOException" type="java.io.IOException"/>
  3739. </method>
  3740. <method name="copyFromLocalFile"
  3741. abstract="false" native="false" synchronized="false"
  3742. static="false" final="false" visibility="public"
  3743. deprecated="not deprecated">
  3744. <param name="delSrc" type="boolean"/>
  3745. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3746. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3747. <exception name="IOException" type="java.io.IOException"/>
  3748. </method>
  3749. <method name="copyToLocalFile"
  3750. abstract="false" native="false" synchronized="false"
  3751. static="false" final="false" visibility="public"
  3752. deprecated="not deprecated">
  3753. <param name="delSrc" type="boolean"/>
  3754. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3755. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3756. <exception name="IOException" type="java.io.IOException"/>
  3757. <doc>
  3758. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3759. Copy it from FS control to the local dst name.]]>
  3760. </doc>
  3761. </method>
  3762. <method name="copyToLocalFile"
  3763. abstract="false" native="false" synchronized="false"
  3764. static="false" final="false" visibility="public"
  3765. deprecated="not deprecated">
  3766. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3767. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3768. <param name="copyCrc" type="boolean"/>
  3769. <exception name="IOException" type="java.io.IOException"/>
  3770. <doc>
  3771. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3772. Copy it from FS control to the local dst name.
  3773. If src and dst are directories, the copyCrc parameter
  3774. determines whether to copy CRC files.]]>
  3775. </doc>
  3776. </method>
  3777. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3778. abstract="false" native="false" synchronized="false"
  3779. static="false" final="false" visibility="public"
  3780. deprecated="not deprecated">
  3781. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3782. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3783. <exception name="IOException" type="java.io.IOException"/>
  3784. </method>
  3785. <method name="completeLocalOutput"
  3786. abstract="false" native="false" synchronized="false"
  3787. static="false" final="false" visibility="public"
  3788. deprecated="not deprecated">
  3789. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3790. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3791. <exception name="IOException" type="java.io.IOException"/>
  3792. </method>
  3793. <method name="reportChecksumFailure" return="boolean"
  3794. abstract="false" native="false" synchronized="false"
  3795. static="false" final="false" visibility="public"
  3796. deprecated="not deprecated">
  3797. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3798. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  3799. <param name="inPos" type="long"/>
  3800. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  3801. <param name="sumsPos" type="long"/>
  3802. <doc>
  3803. <![CDATA[Report a checksum error to the file system.
  3804. @param f the file name containing the error
  3805. @param in the stream open on the file
  3806. @param inPos the position of the beginning of the bad data in the file
  3807. @param sums the stream open on the checksum file
  3808. @param sumsPos the position of the beginning of the bad data in the checksum file
  3809. @return if retry is neccessary]]>
  3810. </doc>
  3811. </method>
  3812. <doc>
  3813. <![CDATA[Abstract Checksumed FileSystem.
  3814. It provide a basic implementation of a Checksumed FileSystem,
  3815. which creates a checksum file for each raw file.
  3816. It generates & verifies checksums at the client side.]]>
  3817. </doc>
  3818. </class>
  3819. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  3820. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  3821. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  3822. abstract="false"
  3823. static="false" final="false" visibility="public"
  3824. deprecated="not deprecated">
  3825. <constructor name="CommonConfigurationKeysPublic"
  3826. static="false" final="false" visibility="public"
  3827. deprecated="not deprecated">
  3828. </constructor>
  3829. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  3830. transient="false" volatile="false"
  3831. static="true" final="true" visibility="public"
  3832. deprecated="not deprecated">
  3833. <doc>
  3834. <![CDATA[@see
  3835. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3836. core-default.xml</a>]]>
  3837. </doc>
  3838. </field>
  3839. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  3840. transient="false" volatile="false"
  3841. static="true" final="true" visibility="public"
  3842. deprecated="not deprecated">
  3843. <doc>
  3844. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  3845. </doc>
  3846. </field>
  3847. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  3848. transient="false" volatile="false"
  3849. static="true" final="true" visibility="public"
  3850. deprecated="not deprecated">
  3851. <doc>
  3852. <![CDATA[@see
  3853. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3854. core-default.xml</a>]]>
  3855. </doc>
  3856. </field>
  3857. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  3858. transient="false" volatile="false"
  3859. static="true" final="true" visibility="public"
  3860. deprecated="not deprecated">
  3861. <doc>
  3862. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  3863. </doc>
  3864. </field>
  3865. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3866. transient="false" volatile="false"
  3867. static="true" final="true" visibility="public"
  3868. deprecated="not deprecated">
  3869. <doc>
  3870. <![CDATA[@see
  3871. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3872. core-default.xml</a>]]>
  3873. </doc>
  3874. </field>
  3875. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  3876. transient="false" volatile="false"
  3877. static="true" final="true" visibility="public"
  3878. deprecated="not deprecated">
  3879. <doc>
  3880. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  3881. </doc>
  3882. </field>
  3883. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  3884. transient="false" volatile="false"
  3885. static="true" final="true" visibility="public"
  3886. deprecated="not deprecated">
  3887. <doc>
  3888. <![CDATA[@see
  3889. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3890. core-default.xml</a>]]>
  3891. </doc>
  3892. </field>
  3893. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  3894. transient="false" volatile="false"
  3895. static="true" final="true" visibility="public"
  3896. deprecated="not deprecated">
  3897. <doc>
  3898. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  3899. </doc>
  3900. </field>
  3901. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  3902. transient="false" volatile="false"
  3903. static="true" final="true" visibility="public"
  3904. deprecated="not deprecated">
  3905. <doc>
  3906. <![CDATA[@see
  3907. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3908. core-default.xml</a>]]>
  3909. </doc>
  3910. </field>
  3911. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  3912. transient="false" volatile="false"
  3913. static="true" final="true" visibility="public"
  3914. deprecated="not deprecated">
  3915. <doc>
  3916. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  3917. </doc>
  3918. </field>
  3919. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  3920. transient="false" volatile="false"
  3921. static="true" final="true" visibility="public"
  3922. deprecated="not deprecated">
  3923. <doc>
  3924. <![CDATA[@see
  3925. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3926. core-default.xml</a>]]>
  3927. </doc>
  3928. </field>
  3929. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  3930. transient="false" volatile="false"
  3931. static="true" final="true" visibility="public"
  3932. deprecated="not deprecated">
  3933. <doc>
  3934. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  3935. </doc>
  3936. </field>
  3937. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  3938. transient="false" volatile="false"
  3939. static="true" final="true" visibility="public"
  3940. deprecated="not deprecated">
  3941. <doc>
  3942. <![CDATA[@see
  3943. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3944. core-default.xml</a>]]>
  3945. </doc>
  3946. </field>
  3947. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  3948. transient="false" volatile="false"
  3949. static="true" final="true" visibility="public"
  3950. deprecated="not deprecated">
  3951. <doc>
  3952. <![CDATA[@see
  3953. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3954. core-default.xml</a>]]>
  3955. </doc>
  3956. </field>
  3957. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  3958. transient="false" volatile="false"
  3959. static="true" final="true" visibility="public"
  3960. deprecated="not deprecated">
  3961. <doc>
  3962. <![CDATA[@see
  3963. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3964. core-default.xml</a>]]>
  3965. </doc>
  3966. </field>
  3967. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  3968. transient="false" volatile="false"
  3969. static="true" final="true" visibility="public"
  3970. deprecated="not deprecated">
  3971. <doc>
  3972. <![CDATA[@see
  3973. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3974. core-default.xml</a>]]>
  3975. </doc>
  3976. </field>
  3977. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  3978. transient="false" volatile="false"
  3979. static="true" final="true" visibility="public"
  3980. deprecated="not deprecated">
  3981. </field>
  3982. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  3983. transient="false" volatile="false"
  3984. static="true" final="true" visibility="public"
  3985. deprecated="not deprecated">
  3986. <doc>
  3987. <![CDATA[@see
  3988. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  3989. core-default.xml</a>]]>
  3990. </doc>
  3991. </field>
  3992. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  3993. transient="false" volatile="false"
  3994. static="true" final="true" visibility="public"
  3995. deprecated="not deprecated">
  3996. <doc>
  3997. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  3998. </doc>
  3999. </field>
  4000. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4001. transient="false" volatile="false"
  4002. static="true" final="true" visibility="public"
  4003. deprecated="not deprecated">
  4004. <doc>
  4005. <![CDATA[Directories that cannot be removed unless empty, even by an
  4006. administrator.]]>
  4007. </doc>
  4008. </field>
  4009. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  4010. transient="false" volatile="false"
  4011. static="true" final="true" visibility="public"
  4012. deprecated="not deprecated">
  4013. <doc>
  4014. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  4015. </doc>
  4016. </field>
  4017. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  4018. transient="false" volatile="false"
  4019. static="true" final="true" visibility="public"
  4020. deprecated="not deprecated">
  4021. <doc>
  4022. <![CDATA[@see
  4023. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4024. core-default.xml</a>]]>
  4025. </doc>
  4026. </field>
  4027. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  4028. transient="false" volatile="false"
  4029. static="true" final="true" visibility="public"
  4030. deprecated="not deprecated">
  4031. <doc>
  4032. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  4033. </doc>
  4034. </field>
  4035. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  4036. transient="false" volatile="false"
  4037. static="true" final="true" visibility="public"
  4038. deprecated="not deprecated">
  4039. <doc>
  4040. <![CDATA[@see
  4041. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4042. core-default.xml</a>]]>
  4043. </doc>
  4044. </field>
  4045. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  4046. transient="false" volatile="false"
  4047. static="true" final="true" visibility="public"
  4048. deprecated="not deprecated">
  4049. <doc>
  4050. <![CDATA[@see
  4051. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4052. core-default.xml</a>]]>
  4053. </doc>
  4054. </field>
  4055. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  4056. transient="false" volatile="false"
  4057. static="true" final="true" visibility="public"
  4058. deprecated="not deprecated">
  4059. <doc>
  4060. <![CDATA[@see
  4061. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4062. core-default.xml</a>]]>
  4063. </doc>
  4064. </field>
  4065. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  4066. transient="false" volatile="false"
  4067. static="true" final="true" visibility="public"
  4068. deprecated="not deprecated">
  4069. <doc>
  4070. <![CDATA[@see
  4071. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4072. core-default.xml</a>]]>
  4073. </doc>
  4074. </field>
  4075. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  4076. transient="false" volatile="false"
  4077. static="true" final="true" visibility="public"
  4078. deprecated="not deprecated">
  4079. <doc>
  4080. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  4081. </doc>
  4082. </field>
  4083. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  4084. transient="false" volatile="false"
  4085. static="true" final="true" visibility="public"
  4086. deprecated="not deprecated">
  4087. <doc>
  4088. <![CDATA[@see
  4089. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4090. core-default.xml</a>]]>
  4091. </doc>
  4092. </field>
  4093. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  4094. transient="false" volatile="false"
  4095. static="true" final="true" visibility="public"
  4096. deprecated="not deprecated">
  4097. <doc>
  4098. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  4099. </doc>
  4100. </field>
  4101. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  4102. transient="false" volatile="false"
  4103. static="true" final="true" visibility="public"
  4104. deprecated="not deprecated">
  4105. <doc>
  4106. <![CDATA[@see
  4107. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4108. core-default.xml</a>]]>
  4109. </doc>
  4110. </field>
  4111. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  4112. transient="false" volatile="false"
  4113. static="true" final="true" visibility="public"
  4114. deprecated="not deprecated">
  4115. <doc>
  4116. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  4117. </doc>
  4118. </field>
  4119. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  4120. transient="false" volatile="false"
  4121. static="true" final="true" visibility="public"
  4122. deprecated="not deprecated">
  4123. <doc>
  4124. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  4125. </doc>
  4126. </field>
  4127. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  4128. transient="false" volatile="false"
  4129. static="true" final="true" visibility="public"
  4130. deprecated="not deprecated">
  4131. <doc>
  4132. <![CDATA[@see
  4133. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4134. core-default.xml</a>]]>
  4135. </doc>
  4136. </field>
  4137. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  4138. transient="false" volatile="false"
  4139. static="true" final="true" visibility="public"
  4140. deprecated="not deprecated">
  4141. <doc>
  4142. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  4143. </doc>
  4144. </field>
  4145. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  4146. transient="false" volatile="false"
  4147. static="true" final="true" visibility="public"
  4148. deprecated="not deprecated">
  4149. <doc>
  4150. <![CDATA[@see
  4151. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4152. core-default.xml</a>]]>
  4153. </doc>
  4154. </field>
  4155. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  4156. transient="false" volatile="false"
  4157. static="true" final="true" visibility="public"
  4158. deprecated="not deprecated">
  4159. <doc>
  4160. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  4161. </doc>
  4162. </field>
  4163. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  4164. transient="false" volatile="false"
  4165. static="true" final="true" visibility="public"
  4166. deprecated="not deprecated">
  4167. <doc>
  4168. <![CDATA[@see
  4169. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4170. core-default.xml</a>]]>
  4171. </doc>
  4172. </field>
  4173. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  4174. transient="false" volatile="false"
  4175. static="true" final="true" visibility="public"
  4176. deprecated="not deprecated">
  4177. <doc>
  4178. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  4179. </doc>
  4180. </field>
  4181. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  4182. transient="false" volatile="false"
  4183. static="true" final="true" visibility="public"
  4184. deprecated="not deprecated">
  4185. <doc>
  4186. <![CDATA[@see
  4187. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4188. core-default.xml</a>]]>
  4189. </doc>
  4190. </field>
  4191. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  4192. transient="false" volatile="false"
  4193. static="true" final="true" visibility="public"
  4194. deprecated="not deprecated">
  4195. <doc>
  4196. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  4197. </doc>
  4198. </field>
  4199. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  4200. transient="false" volatile="false"
  4201. static="true" final="true" visibility="public"
  4202. deprecated="not deprecated">
  4203. <doc>
  4204. <![CDATA[@see
  4205. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4206. core-default.xml</a>]]>
  4207. </doc>
  4208. </field>
  4209. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  4210. transient="false" volatile="false"
  4211. static="true" final="true" visibility="public"
  4212. deprecated="not deprecated">
  4213. <doc>
  4214. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  4215. </doc>
  4216. </field>
  4217. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  4218. transient="false" volatile="false"
  4219. static="true" final="true" visibility="public"
  4220. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  4221. in mapred-default.xml
  4222. See https://issues.apache.org/jira/browse/HADOOP-6801">
  4223. <doc>
  4224. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  4225. in mapred-default.xml
  4226. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  4227. </doc>
  4228. </field>
  4229. <field name="IO_SORT_MB_DEFAULT" type="int"
  4230. transient="false" volatile="false"
  4231. static="true" final="true" visibility="public"
  4232. deprecated="not deprecated">
  4233. <doc>
  4234. <![CDATA[Default value for IO_SORT_MB_DEFAULT]]>
  4235. </doc>
  4236. </field>
  4237. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  4238. transient="false" volatile="false"
  4239. static="true" final="true" visibility="public"
  4240. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  4241. in mapred-default.xml
  4242. See https://issues.apache.org/jira/browse/HADOOP-6801">
  4243. <doc>
  4244. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  4245. in mapred-default.xml
  4246. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  4247. </doc>
  4248. </field>
  4249. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  4250. transient="false" volatile="false"
  4251. static="true" final="true" visibility="public"
  4252. deprecated="not deprecated">
  4253. <doc>
  4254. <![CDATA[Default value for IO_SORT_FACTOR_DEFAULT]]>
  4255. </doc>
  4256. </field>
  4257. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  4258. transient="false" volatile="false"
  4259. static="true" final="true" visibility="public"
  4260. deprecated="not deprecated">
  4261. <doc>
  4262. <![CDATA[@see
  4263. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4264. core-default.xml</a>]]>
  4265. </doc>
  4266. </field>
  4267. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  4268. transient="false" volatile="false"
  4269. static="true" final="true" visibility="public"
  4270. deprecated="not deprecated">
  4271. <doc>
  4272. <![CDATA[@see
  4273. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4274. core-default.xml</a>]]>
  4275. </doc>
  4276. </field>
  4277. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  4278. transient="false" volatile="false"
  4279. static="true" final="true" visibility="public"
  4280. deprecated="not deprecated">
  4281. <doc>
  4282. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  4283. </doc>
  4284. </field>
  4285. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4286. transient="false" volatile="false"
  4287. static="true" final="true" visibility="public"
  4288. deprecated="not deprecated">
  4289. <doc>
  4290. <![CDATA[@see
  4291. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4292. core-default.xml</a>]]>
  4293. </doc>
  4294. </field>
  4295. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  4296. transient="false" volatile="false"
  4297. static="true" final="true" visibility="public"
  4298. deprecated="not deprecated">
  4299. <doc>
  4300. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  4301. </doc>
  4302. </field>
  4303. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4304. transient="false" volatile="false"
  4305. static="true" final="true" visibility="public"
  4306. deprecated="not deprecated">
  4307. <doc>
  4308. <![CDATA[@see
  4309. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4310. core-default.xml</a>]]>
  4311. </doc>
  4312. </field>
  4313. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  4314. transient="false" volatile="false"
  4315. static="true" final="true" visibility="public"
  4316. deprecated="not deprecated">
  4317. <doc>
  4318. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  4319. </doc>
  4320. </field>
  4321. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  4322. transient="false" volatile="false"
  4323. static="true" final="true" visibility="public"
  4324. deprecated="not deprecated">
  4325. </field>
  4326. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  4327. transient="false" volatile="false"
  4328. static="true" final="true" visibility="public"
  4329. deprecated="not deprecated">
  4330. </field>
  4331. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  4332. transient="false" volatile="false"
  4333. static="true" final="true" visibility="public"
  4334. deprecated="not deprecated">
  4335. </field>
  4336. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  4337. transient="false" volatile="false"
  4338. static="true" final="true" visibility="public"
  4339. deprecated="not deprecated">
  4340. </field>
  4341. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  4342. transient="false" volatile="false"
  4343. static="true" final="true" visibility="public"
  4344. deprecated="not deprecated">
  4345. </field>
  4346. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  4347. transient="false" volatile="false"
  4348. static="true" final="true" visibility="public"
  4349. deprecated="not deprecated">
  4350. </field>
  4351. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  4352. transient="false" volatile="false"
  4353. static="true" final="true" visibility="public"
  4354. deprecated="not deprecated">
  4355. <doc>
  4356. <![CDATA[@see
  4357. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4358. core-default.xml</a>]]>
  4359. </doc>
  4360. </field>
  4361. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  4362. transient="false" volatile="false"
  4363. static="true" final="true" visibility="public"
  4364. deprecated="not deprecated">
  4365. <doc>
  4366. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  4367. </doc>
  4368. </field>
  4369. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  4370. transient="false" volatile="false"
  4371. static="true" final="true" visibility="public"
  4372. deprecated="not deprecated">
  4373. <doc>
  4374. <![CDATA[@see
  4375. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4376. core-default.xml</a>]]>
  4377. </doc>
  4378. </field>
  4379. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  4380. transient="false" volatile="false"
  4381. static="true" final="true" visibility="public"
  4382. deprecated="not deprecated">
  4383. <doc>
  4384. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  4385. </doc>
  4386. </field>
  4387. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  4388. transient="false" volatile="false"
  4389. static="true" final="true" visibility="public"
  4390. deprecated="not deprecated">
  4391. <doc>
  4392. <![CDATA[@see
  4393. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4394. core-default.xml</a>]]>
  4395. </doc>
  4396. </field>
  4397. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  4398. transient="false" volatile="false"
  4399. static="true" final="true" visibility="public"
  4400. deprecated="not deprecated">
  4401. <doc>
  4402. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  4403. </doc>
  4404. </field>
  4405. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  4406. transient="false" volatile="false"
  4407. static="true" final="true" visibility="public"
  4408. deprecated="not deprecated">
  4409. <doc>
  4410. <![CDATA[@see
  4411. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4412. core-default.xml</a>]]>
  4413. </doc>
  4414. </field>
  4415. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  4416. transient="false" volatile="false"
  4417. static="true" final="true" visibility="public"
  4418. deprecated="not deprecated">
  4419. <doc>
  4420. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  4421. </doc>
  4422. </field>
  4423. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  4424. transient="false" volatile="false"
  4425. static="true" final="true" visibility="public"
  4426. deprecated="not deprecated">
  4427. <doc>
  4428. <![CDATA[@see
  4429. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4430. core-default.xml</a>]]>
  4431. </doc>
  4432. </field>
  4433. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  4434. transient="false" volatile="false"
  4435. static="true" final="true" visibility="public"
  4436. deprecated="not deprecated">
  4437. <doc>
  4438. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  4439. </doc>
  4440. </field>
  4441. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  4442. transient="false" volatile="false"
  4443. static="true" final="true" visibility="public"
  4444. deprecated="not deprecated">
  4445. <doc>
  4446. <![CDATA[@see
  4447. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4448. core-default.xml</a>]]>
  4449. </doc>
  4450. </field>
  4451. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  4452. transient="false" volatile="false"
  4453. static="true" final="true" visibility="public"
  4454. deprecated="not deprecated">
  4455. <doc>
  4456. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  4457. </doc>
  4458. </field>
  4459. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  4460. transient="false" volatile="false"
  4461. static="true" final="true" visibility="public"
  4462. deprecated="not deprecated">
  4463. <doc>
  4464. <![CDATA[Enable low-latency connections from the client]]>
  4465. </doc>
  4466. </field>
  4467. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  4468. transient="false" volatile="false"
  4469. static="true" final="true" visibility="public"
  4470. deprecated="not deprecated">
  4471. <doc>
  4472. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  4473. </doc>
  4474. </field>
  4475. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  4476. transient="false" volatile="false"
  4477. static="true" final="true" visibility="public"
  4478. deprecated="not deprecated">
  4479. <doc>
  4480. <![CDATA[@see
  4481. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4482. core-default.xml</a>]]>
  4483. </doc>
  4484. </field>
  4485. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  4486. transient="false" volatile="false"
  4487. static="true" final="true" visibility="public"
  4488. deprecated="not deprecated">
  4489. <doc>
  4490. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  4491. </doc>
  4492. </field>
  4493. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  4494. transient="false" volatile="false"
  4495. static="true" final="true" visibility="public"
  4496. deprecated="not deprecated">
  4497. <doc>
  4498. <![CDATA[@see
  4499. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4500. core-default.xml</a>]]>
  4501. </doc>
  4502. </field>
  4503. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  4504. transient="false" volatile="false"
  4505. static="true" final="true" visibility="public"
  4506. deprecated="not deprecated">
  4507. <doc>
  4508. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  4509. </doc>
  4510. </field>
  4511. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  4512. transient="false" volatile="false"
  4513. static="true" final="true" visibility="public"
  4514. deprecated="not deprecated">
  4515. <doc>
  4516. <![CDATA[@see
  4517. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4518. core-default.xml</a>]]>
  4519. </doc>
  4520. </field>
  4521. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  4522. transient="false" volatile="false"
  4523. static="true" final="true" visibility="public"
  4524. deprecated="not deprecated">
  4525. <doc>
  4526. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  4527. </doc>
  4528. </field>
  4529. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  4530. transient="false" volatile="false"
  4531. static="true" final="true" visibility="public"
  4532. deprecated="not deprecated">
  4533. <doc>
  4534. <![CDATA[@see
  4535. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4536. core-default.xml</a>]]>
  4537. </doc>
  4538. </field>
  4539. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  4540. transient="false" volatile="false"
  4541. static="true" final="true" visibility="public"
  4542. deprecated="not deprecated">
  4543. <doc>
  4544. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  4545. </doc>
  4546. </field>
  4547. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  4548. transient="false" volatile="false"
  4549. static="true" final="true" visibility="public"
  4550. deprecated="not deprecated">
  4551. <doc>
  4552. <![CDATA[@see
  4553. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4554. core-default.xml</a>]]>
  4555. </doc>
  4556. </field>
  4557. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  4558. transient="false" volatile="false"
  4559. static="true" final="true" visibility="public"
  4560. deprecated="not deprecated">
  4561. <doc>
  4562. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  4563. </doc>
  4564. </field>
  4565. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  4566. transient="false" volatile="false"
  4567. static="true" final="true" visibility="public"
  4568. deprecated="not deprecated">
  4569. <doc>
  4570. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  4571. </doc>
  4572. </field>
  4573. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  4574. transient="false" volatile="false"
  4575. static="true" final="true" visibility="public"
  4576. deprecated="not deprecated">
  4577. </field>
  4578. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  4579. transient="false" volatile="false"
  4580. static="true" final="true" visibility="public"
  4581. deprecated="not deprecated">
  4582. <doc>
  4583. <![CDATA[@see
  4584. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4585. core-default.xml</a>]]>
  4586. </doc>
  4587. </field>
  4588. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  4589. transient="false" volatile="false"
  4590. static="true" final="true" visibility="public"
  4591. deprecated="not deprecated">
  4592. </field>
  4593. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  4594. transient="false" volatile="false"
  4595. static="true" final="true" visibility="public"
  4596. deprecated="not deprecated">
  4597. <doc>
  4598. <![CDATA[@see
  4599. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4600. core-default.xml</a>]]>
  4601. </doc>
  4602. </field>
  4603. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  4604. transient="false" volatile="false"
  4605. static="true" final="true" visibility="public"
  4606. deprecated="not deprecated">
  4607. <doc>
  4608. <![CDATA[@see
  4609. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4610. core-default.xml</a>]]>
  4611. </doc>
  4612. </field>
  4613. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  4614. transient="false" volatile="false"
  4615. static="true" final="true" visibility="public"
  4616. deprecated="not deprecated">
  4617. <doc>
  4618. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  4619. </doc>
  4620. </field>
  4621. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  4622. transient="false" volatile="false"
  4623. static="true" final="true" visibility="public"
  4624. deprecated="not deprecated">
  4625. <doc>
  4626. <![CDATA[@see
  4627. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4628. core-default.xml</a>]]>
  4629. </doc>
  4630. </field>
  4631. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  4632. transient="false" volatile="false"
  4633. static="true" final="true" visibility="public"
  4634. deprecated="not deprecated">
  4635. <doc>
  4636. <![CDATA[@see
  4637. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4638. core-default.xml</a>]]>
  4639. </doc>
  4640. </field>
  4641. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  4642. transient="false" volatile="false"
  4643. static="true" final="true" visibility="public"
  4644. deprecated="not deprecated">
  4645. <doc>
  4646. <![CDATA[@see
  4647. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4648. core-default.xml</a>]]>
  4649. </doc>
  4650. </field>
  4651. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  4652. transient="false" volatile="false"
  4653. static="true" final="true" visibility="public"
  4654. deprecated="not deprecated">
  4655. <doc>
  4656. <![CDATA[@see
  4657. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4658. core-default.xml</a>]]>
  4659. </doc>
  4660. </field>
  4661. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  4662. transient="false" volatile="false"
  4663. static="true" final="true" visibility="public"
  4664. deprecated="not deprecated">
  4665. <doc>
  4666. <![CDATA[@see
  4667. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4668. core-default.xml</a>]]>
  4669. </doc>
  4670. </field>
  4671. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  4672. transient="false" volatile="false"
  4673. static="true" final="true" visibility="public"
  4674. deprecated="not deprecated">
  4675. <doc>
  4676. <![CDATA[@see
  4677. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4678. core-default.xml</a>]]>
  4679. </doc>
  4680. </field>
  4681. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  4682. transient="false" volatile="false"
  4683. static="true" final="true" visibility="public"
  4684. deprecated="not deprecated">
  4685. </field>
  4686. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  4687. transient="false" volatile="false"
  4688. static="true" final="true" visibility="public"
  4689. deprecated="not deprecated">
  4690. <doc>
  4691. <![CDATA[@see
  4692. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4693. core-default.xml</a>]]>
  4694. </doc>
  4695. </field>
  4696. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  4697. transient="false" volatile="false"
  4698. static="true" final="true" visibility="public"
  4699. deprecated="not deprecated">
  4700. <doc>
  4701. <![CDATA[@see
  4702. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4703. core-default.xml</a>]]>
  4704. </doc>
  4705. </field>
  4706. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  4707. transient="false" volatile="false"
  4708. static="true" final="true" visibility="public"
  4709. deprecated="not deprecated">
  4710. <doc>
  4711. <![CDATA[@see
  4712. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4713. core-default.xml</a>]]>
  4714. </doc>
  4715. </field>
  4716. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  4717. transient="false" volatile="false"
  4718. static="true" final="true" visibility="public"
  4719. deprecated="not deprecated">
  4720. <doc>
  4721. <![CDATA[@see
  4722. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4723. core-default.xml</a>]]>
  4724. </doc>
  4725. </field>
  4726. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  4727. transient="false" volatile="false"
  4728. static="true" final="true" visibility="public"
  4729. deprecated="not deprecated">
  4730. <doc>
  4731. <![CDATA[@see
  4732. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4733. core-default.xml</a>]]>
  4734. </doc>
  4735. </field>
  4736. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  4737. transient="false" volatile="false"
  4738. static="true" final="true" visibility="public"
  4739. deprecated="not deprecated">
  4740. <doc>
  4741. <![CDATA[@see
  4742. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4743. core-default.xml</a>]]>
  4744. </doc>
  4745. </field>
  4746. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  4747. transient="false" volatile="false"
  4748. static="true" final="true" visibility="public"
  4749. deprecated="not deprecated">
  4750. <doc>
  4751. <![CDATA[@see
  4752. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4753. core-default.xml</a>]]>
  4754. </doc>
  4755. </field>
  4756. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  4757. transient="false" volatile="false"
  4758. static="true" final="true" visibility="public"
  4759. deprecated="not deprecated">
  4760. <doc>
  4761. <![CDATA[@see
  4762. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4763. core-default.xml</a>]]>
  4764. </doc>
  4765. </field>
  4766. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  4767. transient="false" volatile="false"
  4768. static="true" final="true" visibility="public"
  4769. deprecated="not deprecated">
  4770. <doc>
  4771. <![CDATA[@see
  4772. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4773. core-default.xml</a>]]>
  4774. </doc>
  4775. </field>
  4776. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  4777. transient="false" volatile="false"
  4778. static="true" final="true" visibility="public"
  4779. deprecated="not deprecated">
  4780. <doc>
  4781. <![CDATA[@see
  4782. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4783. core-default.xml</a>]]>
  4784. </doc>
  4785. </field>
  4786. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  4787. transient="false" volatile="false"
  4788. static="true" final="true" visibility="public"
  4789. deprecated="not deprecated">
  4790. <doc>
  4791. <![CDATA[@see
  4792. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4793. core-default.xml</a>]]>
  4794. </doc>
  4795. </field>
  4796. <field name="HADOOP_SSL_ENABLED_KEY" type="java.lang.String"
  4797. transient="false" volatile="false"
  4798. static="true" final="true" visibility="public"
  4799. deprecated="not deprecated">
  4800. </field>
  4801. <field name="HADOOP_SSL_ENABLED_DEFAULT" type="boolean"
  4802. transient="false" volatile="false"
  4803. static="true" final="true" visibility="public"
  4804. deprecated="not deprecated">
  4805. </field>
  4806. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  4807. transient="false" volatile="false"
  4808. static="true" final="true" visibility="public"
  4809. deprecated="not deprecated">
  4810. <doc>
  4811. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4812. </doc>
  4813. </field>
  4814. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  4815. transient="false" volatile="false"
  4816. static="true" final="true" visibility="public"
  4817. deprecated="not deprecated">
  4818. <doc>
  4819. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  4820. </doc>
  4821. </field>
  4822. <field name="HTTP_POLICY_HTTP_ONLY" type="java.lang.String"
  4823. transient="false" volatile="false"
  4824. static="true" final="true" visibility="public"
  4825. deprecated="not deprecated">
  4826. </field>
  4827. <field name="HTTP_POLICY_HTTPS_ONLY" type="java.lang.String"
  4828. transient="false" volatile="false"
  4829. static="true" final="true" visibility="public"
  4830. deprecated="not deprecated">
  4831. </field>
  4832. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  4833. transient="false" volatile="false"
  4834. static="true" final="true" visibility="public"
  4835. deprecated="not deprecated">
  4836. <doc>
  4837. <![CDATA[@see
  4838. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4839. core-default.xml</a>]]>
  4840. </doc>
  4841. </field>
  4842. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  4843. transient="false" volatile="false"
  4844. static="true" final="true" visibility="public"
  4845. deprecated="not deprecated">
  4846. <doc>
  4847. <![CDATA[Class to override Sasl Properties for a connection]]>
  4848. </doc>
  4849. </field>
  4850. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  4851. transient="false" volatile="false"
  4852. static="true" final="true" visibility="public"
  4853. deprecated="not deprecated">
  4854. </field>
  4855. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  4856. transient="false" volatile="false"
  4857. static="true" final="true" visibility="public"
  4858. deprecated="not deprecated">
  4859. </field>
  4860. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  4861. transient="false" volatile="false"
  4862. static="true" final="true" visibility="public"
  4863. deprecated="not deprecated">
  4864. </field>
  4865. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  4866. transient="false" volatile="false"
  4867. static="true" final="true" visibility="public"
  4868. deprecated="not deprecated">
  4869. <doc>
  4870. <![CDATA[@see
  4871. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4872. core-default.xml</a>]]>
  4873. </doc>
  4874. </field>
  4875. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  4876. transient="false" volatile="false"
  4877. static="true" final="true" visibility="public"
  4878. deprecated="not deprecated">
  4879. </field>
  4880. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  4881. transient="false" volatile="false"
  4882. static="true" final="true" visibility="public"
  4883. deprecated="not deprecated">
  4884. <doc>
  4885. <![CDATA[@see
  4886. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4887. core-default.xml</a>]]>
  4888. </doc>
  4889. </field>
  4890. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  4891. transient="false" volatile="false"
  4892. static="true" final="true" visibility="public"
  4893. deprecated="not deprecated">
  4894. <doc>
  4895. <![CDATA[@see
  4896. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4897. core-default.xml</a>]]>
  4898. </doc>
  4899. </field>
  4900. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  4901. transient="false" volatile="false"
  4902. static="true" final="true" visibility="public"
  4903. deprecated="not deprecated">
  4904. <doc>
  4905. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  4906. </doc>
  4907. </field>
  4908. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  4909. transient="false" volatile="false"
  4910. static="true" final="true" visibility="public"
  4911. deprecated="not deprecated">
  4912. <doc>
  4913. <![CDATA[Class to override Impersonation provider]]>
  4914. </doc>
  4915. </field>
  4916. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  4917. transient="false" volatile="false"
  4918. static="true" final="true" visibility="public"
  4919. deprecated="not deprecated">
  4920. <doc>
  4921. <![CDATA[@see
  4922. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4923. core-default.xml</a>]]>
  4924. </doc>
  4925. </field>
  4926. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  4927. transient="false" volatile="false"
  4928. static="true" final="true" visibility="public"
  4929. deprecated="not deprecated">
  4930. <doc>
  4931. <![CDATA[@see
  4932. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4933. core-default.xml</a>]]>
  4934. </doc>
  4935. </field>
  4936. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  4937. transient="false" volatile="false"
  4938. static="true" final="true" visibility="public"
  4939. deprecated="not deprecated">
  4940. <doc>
  4941. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  4942. </doc>
  4943. </field>
  4944. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  4945. transient="false" volatile="false"
  4946. static="true" final="true" visibility="public"
  4947. deprecated="not deprecated">
  4948. <doc>
  4949. <![CDATA[@see
  4950. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4951. core-default.xml</a>]]>
  4952. </doc>
  4953. </field>
  4954. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  4955. transient="false" volatile="false"
  4956. static="true" final="true" visibility="public"
  4957. deprecated="not deprecated">
  4958. <doc>
  4959. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  4960. </doc>
  4961. </field>
  4962. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  4963. transient="false" volatile="false"
  4964. static="true" final="true" visibility="public"
  4965. deprecated="not deprecated">
  4966. <doc>
  4967. <![CDATA[@see
  4968. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4969. core-default.xml</a>]]>
  4970. </doc>
  4971. </field>
  4972. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  4973. transient="false" volatile="false"
  4974. static="true" final="true" visibility="public"
  4975. deprecated="not deprecated">
  4976. <doc>
  4977. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  4978. </doc>
  4979. </field>
  4980. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  4981. transient="false" volatile="false"
  4982. static="true" final="true" visibility="public"
  4983. deprecated="not deprecated">
  4984. <doc>
  4985. <![CDATA[@see
  4986. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4987. core-default.xml</a>]]>
  4988. </doc>
  4989. </field>
  4990. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  4991. transient="false" volatile="false"
  4992. static="true" final="true" visibility="public"
  4993. deprecated="not deprecated">
  4994. <doc>
  4995. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  4996. </doc>
  4997. </field>
  4998. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  4999. transient="false" volatile="false"
  5000. static="true" final="true" visibility="public"
  5001. deprecated="not deprecated">
  5002. <doc>
  5003. <![CDATA[@see
  5004. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5005. core-default.xml</a>]]>
  5006. </doc>
  5007. </field>
  5008. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5009. transient="false" volatile="false"
  5010. static="true" final="true" visibility="public"
  5011. deprecated="not deprecated">
  5012. <doc>
  5013. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5014. </doc>
  5015. </field>
  5016. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5017. transient="false" volatile="false"
  5018. static="true" final="true" visibility="public"
  5019. deprecated="not deprecated">
  5020. <doc>
  5021. <![CDATA[@see
  5022. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5023. core-default.xml</a>]]>
  5024. </doc>
  5025. </field>
  5026. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  5027. transient="false" volatile="false"
  5028. static="true" final="true" visibility="public"
  5029. deprecated="not deprecated">
  5030. <doc>
  5031. <![CDATA[@see
  5032. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5033. core-default.xml</a>]]>
  5034. </doc>
  5035. </field>
  5036. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  5037. transient="false" volatile="false"
  5038. static="true" final="true" visibility="public"
  5039. deprecated="not deprecated">
  5040. </field>
  5041. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  5042. transient="false" volatile="false"
  5043. static="true" final="true" visibility="public"
  5044. deprecated="not deprecated">
  5045. <doc>
  5046. <![CDATA[@see
  5047. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5048. core-default.xml</a>]]>
  5049. </doc>
  5050. </field>
  5051. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  5052. transient="false" volatile="false"
  5053. static="true" final="true" visibility="public"
  5054. deprecated="not deprecated">
  5055. </field>
  5056. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  5057. transient="false" volatile="false"
  5058. static="true" final="true" visibility="public"
  5059. deprecated="not deprecated">
  5060. <doc>
  5061. <![CDATA[@see
  5062. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5063. core-default.xml</a>]]>
  5064. </doc>
  5065. </field>
  5066. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  5067. transient="false" volatile="false"
  5068. static="true" final="true" visibility="public"
  5069. deprecated="not deprecated">
  5070. </field>
  5071. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  5072. transient="false" volatile="false"
  5073. static="true" final="true" visibility="public"
  5074. deprecated="not deprecated">
  5075. <doc>
  5076. <![CDATA[@see
  5077. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5078. core-default.xml</a>]]>
  5079. </doc>
  5080. </field>
  5081. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  5082. transient="false" volatile="false"
  5083. static="true" final="true" visibility="public"
  5084. deprecated="not deprecated">
  5085. </field>
  5086. <doc>
  5087. <![CDATA[This class contains constants for configuration keys used
  5088. in the common code.
  5089. It includes all publicly documented configuration keys. In general
  5090. this class should not be used directly (use CommonConfigurationKeys
  5091. instead)]]>
  5092. </doc>
  5093. </class>
  5094. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5095. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5096. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  5097. abstract="false"
  5098. static="false" final="false" visibility="public"
  5099. deprecated="not deprecated">
  5100. <implements name="org.apache.hadoop.io.Writable"/>
  5101. <constructor name="ContentSummary"
  5102. static="false" final="false" visibility="public"
  5103. deprecated="not deprecated">
  5104. <doc>
  5105. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  5106. </doc>
  5107. </constructor>
  5108. <constructor name="ContentSummary" type="long, long, long"
  5109. static="false" final="false" visibility="public"
  5110. deprecated="not deprecated">
  5111. <doc>
  5112. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  5113. This constructor implicitly set spaceConsumed the same as length.
  5114. spaceConsumed and length must be set explicitly with
  5115. ContentSummary.Builder]]>
  5116. </doc>
  5117. </constructor>
  5118. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5119. static="false" final="false" visibility="public"
  5120. deprecated="not deprecated">
  5121. <doc>
  5122. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  5123. </doc>
  5124. </constructor>
  5125. <method name="getLength" return="long"
  5126. abstract="false" native="false" synchronized="false"
  5127. static="false" final="false" visibility="public"
  5128. deprecated="not deprecated">
  5129. <doc>
  5130. <![CDATA[@return the length]]>
  5131. </doc>
  5132. </method>
  5133. <method name="getSnapshotLength" return="long"
  5134. abstract="false" native="false" synchronized="false"
  5135. static="false" final="false" visibility="public"
  5136. deprecated="not deprecated">
  5137. </method>
  5138. <method name="getDirectoryCount" return="long"
  5139. abstract="false" native="false" synchronized="false"
  5140. static="false" final="false" visibility="public"
  5141. deprecated="not deprecated">
  5142. <doc>
  5143. <![CDATA[@return the directory count]]>
  5144. </doc>
  5145. </method>
  5146. <method name="getSnapshotDirectoryCount" return="long"
  5147. abstract="false" native="false" synchronized="false"
  5148. static="false" final="false" visibility="public"
  5149. deprecated="not deprecated">
  5150. </method>
  5151. <method name="getFileCount" return="long"
  5152. abstract="false" native="false" synchronized="false"
  5153. static="false" final="false" visibility="public"
  5154. deprecated="not deprecated">
  5155. <doc>
  5156. <![CDATA[@return the file count]]>
  5157. </doc>
  5158. </method>
  5159. <method name="getSnapshotFileCount" return="long"
  5160. abstract="false" native="false" synchronized="false"
  5161. static="false" final="false" visibility="public"
  5162. deprecated="not deprecated">
  5163. </method>
  5164. <method name="getSnapshotSpaceConsumed" return="long"
  5165. abstract="false" native="false" synchronized="false"
  5166. static="false" final="false" visibility="public"
  5167. deprecated="not deprecated">
  5168. </method>
  5169. <method name="equals" return="boolean"
  5170. abstract="false" native="false" synchronized="false"
  5171. static="false" final="false" visibility="public"
  5172. deprecated="not deprecated">
  5173. <param name="to" type="java.lang.Object"/>
  5174. </method>
  5175. <method name="hashCode" return="int"
  5176. abstract="false" native="false" synchronized="false"
  5177. static="false" final="false" visibility="public"
  5178. deprecated="not deprecated">
  5179. </method>
  5180. <method name="getHeader" return="java.lang.String"
  5181. abstract="false" native="false" synchronized="false"
  5182. static="true" final="false" visibility="public"
  5183. deprecated="not deprecated">
  5184. <param name="qOption" type="boolean"/>
  5185. <doc>
  5186. <![CDATA[Return the header of the output.
  5187. if qOption is false, output directory count, file count, and content size;
  5188. if qOption is true, output quota and remaining quota as well.
  5189. @param qOption a flag indicating if quota needs to be printed or not
  5190. @return the header of the output]]>
  5191. </doc>
  5192. </method>
  5193. <method name="getHeaderFields" return="java.lang.String[]"
  5194. abstract="false" native="false" synchronized="false"
  5195. static="true" final="false" visibility="public"
  5196. deprecated="not deprecated">
  5197. <doc>
  5198. <![CDATA[Returns the names of the fields from the summary header.
  5199. @return names of fields as displayed in the header]]>
  5200. </doc>
  5201. </method>
  5202. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  5203. abstract="false" native="false" synchronized="false"
  5204. static="true" final="false" visibility="public"
  5205. deprecated="not deprecated">
  5206. <doc>
  5207. <![CDATA[Returns the names of the fields used in the quota summary.
  5208. @return names of quota fields as displayed in the header]]>
  5209. </doc>
  5210. </method>
  5211. <method name="toString" return="java.lang.String"
  5212. abstract="false" native="false" synchronized="false"
  5213. static="false" final="false" visibility="public"
  5214. deprecated="not deprecated">
  5215. </method>
  5216. <method name="toString" return="java.lang.String"
  5217. abstract="false" native="false" synchronized="false"
  5218. static="false" final="false" visibility="public"
  5219. deprecated="not deprecated">
  5220. <param name="qOption" type="boolean"/>
  5221. <doc>
  5222. <![CDATA[Return the string representation of the object in the output format.
  5223. if qOption is false, output directory count, file count, and content size;
  5224. if qOption is true, output quota and remaining quota as well.
  5225. @param qOption a flag indicating if quota needs to be printed or not
  5226. @return the string representation of the object]]>
  5227. </doc>
  5228. </method>
  5229. <method name="toString" return="java.lang.String"
  5230. abstract="false" native="false" synchronized="false"
  5231. static="false" final="false" visibility="public"
  5232. deprecated="not deprecated">
  5233. <param name="qOption" type="boolean"/>
  5234. <param name="hOption" type="boolean"/>
  5235. <doc>
  5236. <![CDATA[Return the string representation of the object in the output format.
  5237. For description of the options,
  5238. @see #toString(boolean, boolean, boolean, boolean, List)
  5239. @param qOption a flag indicating if quota needs to be printed or not
  5240. @param hOption a flag indicating if human readable output if to be used
  5241. @return the string representation of the object]]>
  5242. </doc>
  5243. </method>
  5244. <method name="toString" return="java.lang.String"
  5245. abstract="false" native="false" synchronized="false"
  5246. static="false" final="false" visibility="public"
  5247. deprecated="not deprecated">
  5248. <param name="qOption" type="boolean"/>
  5249. <param name="hOption" type="boolean"/>
  5250. <param name="xOption" type="boolean"/>
  5251. <doc>
  5252. <![CDATA[Return the string representation of the object in the output format.
  5253. For description of the options,
  5254. @see #toString(boolean, boolean, boolean, boolean, List)
  5255. @param qOption a flag indicating if quota needs to be printed or not
  5256. @param hOption a flag indicating if human readable output is to be used
  5257. @param xOption a flag indicating if calculation from snapshots is to be
  5258. included in the output
  5259. @return the string representation of the object]]>
  5260. </doc>
  5261. </method>
  5262. <method name="toString" return="java.lang.String"
  5263. abstract="false" native="false" synchronized="false"
  5264. static="false" final="false" visibility="public"
  5265. deprecated="not deprecated">
  5266. <param name="qOption" type="boolean"/>
  5267. <param name="hOption" type="boolean"/>
  5268. <param name="tOption" type="boolean"/>
  5269. <param name="types" type="java.util.List"/>
  5270. <doc>
  5271. <![CDATA[Return the string representation of the object in the output format.
  5272. For description of the options,
  5273. @see #toString(boolean, boolean, boolean, boolean, List)
  5274. @param qOption a flag indicating if quota needs to be printed or not
  5275. @param hOption a flag indicating if human readable output if to be used
  5276. @param tOption a flag indicating if display quota by storage types
  5277. @param types Storage types to display
  5278. @return the string representation of the object]]>
  5279. </doc>
  5280. </method>
  5281. <method name="toString" return="java.lang.String"
  5282. abstract="false" native="false" synchronized="false"
  5283. static="false" final="false" visibility="public"
  5284. deprecated="not deprecated">
  5285. <param name="qOption" type="boolean"/>
  5286. <param name="hOption" type="boolean"/>
  5287. <param name="tOption" type="boolean"/>
  5288. <param name="xOption" type="boolean"/>
  5289. <param name="types" type="java.util.List"/>
  5290. <doc>
  5291. <![CDATA[Return the string representation of the object in the output format.
  5292. if qOption is false, output directory count, file count, and content size;
  5293. if qOption is true, output quota and remaining quota as well.
  5294. if hOption is false, file sizes are returned in bytes
  5295. if hOption is true, file sizes are returned in human readable
  5296. if tOption is true, display the quota by storage types
  5297. if tOption is false, same logic with #toString(boolean,boolean)
  5298. if xOption is false, output includes the calculation from snapshots
  5299. if xOption is true, output excludes the calculation from snapshots
  5300. @param qOption a flag indicating if quota needs to be printed or not
  5301. @param hOption a flag indicating if human readable output is to be used
  5302. @param tOption a flag indicating if display quota by storage types
  5303. @param xOption a flag indicating if calculation from snapshots is to be
  5304. included in the output
  5305. @param types Storage types to display
  5306. @return the string representation of the object]]>
  5307. </doc>
  5308. </method>
  5309. <doc>
  5310. <![CDATA[Store the summary of a content (a directory or a file).]]>
  5311. </doc>
  5312. </class>
  5313. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  5314. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  5315. <class name="CreateFlag" extends="java.lang.Enum"
  5316. abstract="false"
  5317. static="false" final="true" visibility="public"
  5318. deprecated="not deprecated">
  5319. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  5320. abstract="false" native="false" synchronized="false"
  5321. static="true" final="false" visibility="public"
  5322. deprecated="not deprecated">
  5323. </method>
  5324. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  5325. abstract="false" native="false" synchronized="false"
  5326. static="true" final="false" visibility="public"
  5327. deprecated="not deprecated">
  5328. <param name="name" type="java.lang.String"/>
  5329. </method>
  5330. <method name="validate"
  5331. abstract="false" native="false" synchronized="false"
  5332. static="true" final="false" visibility="public"
  5333. deprecated="not deprecated">
  5334. <param name="flag" type="java.util.EnumSet"/>
  5335. <doc>
  5336. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  5337. @param flag set of CreateFlag
  5338. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5339. </doc>
  5340. </method>
  5341. <method name="validate"
  5342. abstract="false" native="false" synchronized="false"
  5343. static="true" final="false" visibility="public"
  5344. deprecated="not deprecated">
  5345. <param name="path" type="java.lang.Object"/>
  5346. <param name="pathExists" type="boolean"/>
  5347. <param name="flag" type="java.util.EnumSet"/>
  5348. <exception name="IOException" type="java.io.IOException"/>
  5349. <doc>
  5350. <![CDATA[Validate the CreateFlag for create operation
  5351. @param path Object representing the path; usually String or {@link Path}
  5352. @param pathExists pass true if the path exists in the file system
  5353. @param flag set of CreateFlag
  5354. @throws IOException on error
  5355. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5356. </doc>
  5357. </method>
  5358. <method name="validateForAppend"
  5359. abstract="false" native="false" synchronized="false"
  5360. static="true" final="false" visibility="public"
  5361. deprecated="not deprecated">
  5362. <param name="flag" type="java.util.EnumSet"/>
  5363. <doc>
  5364. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  5365. APPEND, and cannot contain OVERWRITE.]]>
  5366. </doc>
  5367. </method>
  5368. <doc>
  5369. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  5370. <code>
  5371. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  5372. <code>
  5373. <p>
  5374. Use the CreateFlag as follows:
  5375. <ol>
  5376. <li> CREATE - to create a file if it does not exist,
  5377. else throw FileAlreadyExists.</li>
  5378. <li> APPEND - to append to a file if it exists,
  5379. else throw FileNotFoundException.</li>
  5380. <li> OVERWRITE - to truncate a file if it exists,
  5381. else throw FileNotFoundException.</li>
  5382. <li> CREATE|APPEND - to create a file if it does not exist,
  5383. else append to an existing file.</li>
  5384. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  5385. else overwrite an existing file.</li>
  5386. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  5387. In addition {@link Syncable#hsync()} should be called after each write,
  5388. if true synchronous behavior is required.</li>
  5389. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  5390. available.</li>
  5391. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  5392. partial block.</li>
  5393. </ol>
  5394. Following combinations are not valid and will result in
  5395. {@link HadoopIllegalArgumentException}:
  5396. <ol>
  5397. <li> APPEND|OVERWRITE</li>
  5398. <li> CREATE|APPEND|OVERWRITE</li>
  5399. </ol>]]>
  5400. </doc>
  5401. </class>
  5402. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  5403. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5404. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  5405. abstract="false"
  5406. static="false" final="false" visibility="public"
  5407. deprecated="not deprecated">
  5408. <constructor name="FileAlreadyExistsException"
  5409. static="false" final="false" visibility="public"
  5410. deprecated="not deprecated">
  5411. </constructor>
  5412. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  5413. static="false" final="false" visibility="public"
  5414. deprecated="not deprecated">
  5415. </constructor>
  5416. <doc>
  5417. <![CDATA[Used when target file already exists for any operation and
  5418. is not configured to be overwritten.]]>
  5419. </doc>
  5420. </class>
  5421. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5422. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  5423. <class name="FileChecksum" extends="java.lang.Object"
  5424. abstract="true"
  5425. static="false" final="false" visibility="public"
  5426. deprecated="not deprecated">
  5427. <implements name="org.apache.hadoop.io.Writable"/>
  5428. <constructor name="FileChecksum"
  5429. static="false" final="false" visibility="public"
  5430. deprecated="not deprecated">
  5431. </constructor>
  5432. <method name="getAlgorithmName" return="java.lang.String"
  5433. abstract="true" native="false" synchronized="false"
  5434. static="false" final="false" visibility="public"
  5435. deprecated="not deprecated">
  5436. <doc>
  5437. <![CDATA[The checksum algorithm name]]>
  5438. </doc>
  5439. </method>
  5440. <method name="getLength" return="int"
  5441. abstract="true" native="false" synchronized="false"
  5442. static="false" final="false" visibility="public"
  5443. deprecated="not deprecated">
  5444. <doc>
  5445. <![CDATA[The length of the checksum in bytes]]>
  5446. </doc>
  5447. </method>
  5448. <method name="getBytes" return="byte[]"
  5449. abstract="true" native="false" synchronized="false"
  5450. static="false" final="false" visibility="public"
  5451. deprecated="not deprecated">
  5452. <doc>
  5453. <![CDATA[The value of the checksum in bytes]]>
  5454. </doc>
  5455. </method>
  5456. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  5457. abstract="false" native="false" synchronized="false"
  5458. static="false" final="false" visibility="public"
  5459. deprecated="not deprecated">
  5460. </method>
  5461. <method name="equals" return="boolean"
  5462. abstract="false" native="false" synchronized="false"
  5463. static="false" final="false" visibility="public"
  5464. deprecated="not deprecated">
  5465. <param name="other" type="java.lang.Object"/>
  5466. <doc>
  5467. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  5468. </doc>
  5469. </method>
  5470. <method name="hashCode" return="int"
  5471. abstract="false" native="false" synchronized="false"
  5472. static="false" final="false" visibility="public"
  5473. deprecated="not deprecated">
  5474. </method>
  5475. <doc>
  5476. <![CDATA[An abstract class representing file checksums for files.]]>
  5477. </doc>
  5478. </class>
  5479. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  5480. <!-- start class org.apache.hadoop.fs.FileContext -->
  5481. <class name="FileContext" extends="java.lang.Object"
  5482. abstract="false"
  5483. static="false" final="false" visibility="public"
  5484. deprecated="not deprecated">
  5485. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  5486. abstract="false" native="false" synchronized="false"
  5487. static="false" final="false" visibility="protected"
  5488. deprecated="not deprecated">
  5489. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  5490. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5491. <exception name="IOException" type="java.io.IOException"/>
  5492. <doc>
  5493. <![CDATA[Get the file system of supplied path.
  5494. @param absOrFqPath - absolute or fully qualified path
  5495. @return the file system of the path
  5496. @throws UnsupportedFileSystemException If the file system for
  5497. <code>absOrFqPath</code> is not supported.
  5498. @throws IOException If the file system for <code>absOrFqPath</code> could
  5499. not be instantiated.]]>
  5500. </doc>
  5501. </method>
  5502. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5503. abstract="false" native="false" synchronized="false"
  5504. static="true" final="false" visibility="public"
  5505. deprecated="not deprecated">
  5506. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  5507. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5508. <doc>
  5509. <![CDATA[Create a FileContext with specified FS as default using the specified
  5510. config.
  5511. @param defFS
  5512. @param aConf
  5513. @return new FileContext with specifed FS as default.]]>
  5514. </doc>
  5515. </method>
  5516. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5517. abstract="false" native="false" synchronized="false"
  5518. static="true" final="false" visibility="protected"
  5519. deprecated="not deprecated">
  5520. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  5521. <doc>
  5522. <![CDATA[Create a FileContext for specified file system using the default config.
  5523. @param defaultFS
  5524. @return a FileContext with the specified AbstractFileSystem
  5525. as the default FS.]]>
  5526. </doc>
  5527. </method>
  5528. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5529. abstract="false" native="false" synchronized="false"
  5530. static="true" final="false" visibility="public"
  5531. deprecated="not deprecated">
  5532. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5533. <doc>
  5534. <![CDATA[Create a FileContext using the default config read from the
  5535. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  5536. from core-defaults.xml in the release jar.
  5537. @throws UnsupportedFileSystemException If the file system from the default
  5538. configuration is not supported]]>
  5539. </doc>
  5540. </method>
  5541. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  5542. abstract="false" native="false" synchronized="false"
  5543. static="true" final="false" visibility="public"
  5544. deprecated="not deprecated">
  5545. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5546. <doc>
  5547. <![CDATA[@return a FileContext for the local file system using the default config.
  5548. @throws UnsupportedFileSystemException If the file system for
  5549. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  5550. </doc>
  5551. </method>
  5552. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5553. abstract="false" native="false" synchronized="false"
  5554. static="true" final="false" visibility="public"
  5555. deprecated="not deprecated">
  5556. <param name="defaultFsUri" type="java.net.URI"/>
  5557. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5558. <doc>
  5559. <![CDATA[Create a FileContext for specified URI using the default config.
  5560. @param defaultFsUri
  5561. @return a FileContext with the specified URI as the default FS.
  5562. @throws UnsupportedFileSystemException If the file system for
  5563. <code>defaultFsUri</code> is not supported]]>
  5564. </doc>
  5565. </method>
  5566. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5567. abstract="false" native="false" synchronized="false"
  5568. static="true" final="false" visibility="public"
  5569. deprecated="not deprecated">
  5570. <param name="defaultFsUri" type="java.net.URI"/>
  5571. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5572. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5573. <doc>
  5574. <![CDATA[Create a FileContext for specified default URI using the specified config.
  5575. @param defaultFsUri
  5576. @param aConf
  5577. @return new FileContext for specified uri
  5578. @throws UnsupportedFileSystemException If the file system with specified is
  5579. not supported
  5580. @throws RuntimeException If the file system specified is supported but
  5581. could not be instantiated, or if login fails.]]>
  5582. </doc>
  5583. </method>
  5584. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  5585. abstract="false" native="false" synchronized="false"
  5586. static="true" final="false" visibility="public"
  5587. deprecated="not deprecated">
  5588. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5589. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5590. <doc>
  5591. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  5592. {@link #getFileContext(URI, Configuration)} instead of this one.
  5593. @param aConf
  5594. @return new FileContext
  5595. @throws UnsupportedFileSystemException If file system in the config
  5596. is not supported]]>
  5597. </doc>
  5598. </method>
  5599. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  5600. abstract="false" native="false" synchronized="false"
  5601. static="true" final="false" visibility="public"
  5602. deprecated="not deprecated">
  5603. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  5604. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5605. <doc>
  5606. <![CDATA[@param aConf - from which the FileContext is configured
  5607. @return a FileContext for the local file system using the specified config.
  5608. @throws UnsupportedFileSystemException If default file system in the config
  5609. is not supported]]>
  5610. </doc>
  5611. </method>
  5612. <method name="setWorkingDirectory"
  5613. abstract="false" native="false" synchronized="false"
  5614. static="false" final="false" visibility="public"
  5615. deprecated="not deprecated">
  5616. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  5617. <exception name="IOException" type="java.io.IOException"/>
  5618. <doc>
  5619. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  5620. directory feature is provided by simply prefixing relative names with the
  5621. working dir. Note this is different from Unix where the wd is actually set
  5622. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  5623. better in a distributed environment that has multiple independent roots.
  5624. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  5625. @param newWDir new working directory
  5626. @throws IOException
  5627. <br>
  5628. NewWdir can be one of:
  5629. <ul>
  5630. <li>relative path: "foo/bar";</li>
  5631. <li>absolute without scheme: "/foo/bar"</li>
  5632. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  5633. </ul>
  5634. <br>
  5635. Illegal WDs:
  5636. <ul>
  5637. <li>relative with scheme: "xx:foo/bar"</li>
  5638. <li>non existent directory</li>
  5639. </ul>]]>
  5640. </doc>
  5641. </method>
  5642. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5643. abstract="false" native="false" synchronized="false"
  5644. static="false" final="false" visibility="public"
  5645. deprecated="not deprecated">
  5646. <doc>
  5647. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  5648. </doc>
  5649. </method>
  5650. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  5651. abstract="false" native="false" synchronized="false"
  5652. static="false" final="false" visibility="public"
  5653. deprecated="not deprecated">
  5654. <doc>
  5655. <![CDATA[Gets the ugi in the file-context
  5656. @return UserGroupInformation]]>
  5657. </doc>
  5658. </method>
  5659. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5660. abstract="false" native="false" synchronized="false"
  5661. static="false" final="false" visibility="public"
  5662. deprecated="not deprecated">
  5663. <doc>
  5664. <![CDATA[Return the current user's home directory in this file system.
  5665. The default implementation returns "/user/$USER/".
  5666. @return the home directory]]>
  5667. </doc>
  5668. </method>
  5669. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  5670. abstract="false" native="false" synchronized="false"
  5671. static="false" final="false" visibility="public"
  5672. deprecated="not deprecated">
  5673. <doc>
  5674. <![CDATA[@return the umask of this FileContext]]>
  5675. </doc>
  5676. </method>
  5677. <method name="setUMask"
  5678. abstract="false" native="false" synchronized="false"
  5679. static="false" final="false" visibility="public"
  5680. deprecated="not deprecated">
  5681. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5682. <doc>
  5683. <![CDATA[Set umask to the supplied parameter.
  5684. @param newUmask the new umask]]>
  5685. </doc>
  5686. </method>
  5687. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  5688. abstract="false" native="false" synchronized="false"
  5689. static="false" final="false" visibility="public"
  5690. deprecated="not deprecated">
  5691. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5692. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5693. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  5694. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5695. <exception name="IOException" type="java.io.IOException"/>
  5696. <doc>
  5697. <![CDATA[Resolve the path following any symlinks or mount points
  5698. @param f to be resolved
  5699. @return fully qualified resolved path
  5700. @throws FileNotFoundException If <code>f</code> does not exist
  5701. @throws AccessControlException if access denied
  5702. @throws IOException If an IO Error occurred
  5703. Exceptions applicable to file systems accessed over RPC:
  5704. @throws RpcClientException If an exception occurred in the RPC client
  5705. @throws RpcServerException If an exception occurred in the RPC server
  5706. @throws UnexpectedServerException If server implementation throws
  5707. undeclared exception to RPC server
  5708. RuntimeExceptions:
  5709. @throws InvalidPathException If path <code>f</code> is not valid]]>
  5710. </doc>
  5711. </method>
  5712. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5713. abstract="false" native="false" synchronized="false"
  5714. static="false" final="false" visibility="public"
  5715. deprecated="not deprecated">
  5716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5717. <doc>
  5718. <![CDATA[Make the path fully qualified if it is isn't.
  5719. A Fully-qualified path has scheme and authority specified and an absolute
  5720. path.
  5721. Use the default file system and working dir in this FileContext to qualify.
  5722. @param path
  5723. @return qualified path]]>
  5724. </doc>
  5725. </method>
  5726. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5727. abstract="false" native="false" synchronized="false"
  5728. static="false" final="false" visibility="public"
  5729. deprecated="not deprecated">
  5730. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5731. <param name="createFlag" type="java.util.EnumSet"/>
  5732. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  5733. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5734. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5735. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5736. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5737. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5738. <exception name="IOException" type="java.io.IOException"/>
  5739. <doc>
  5740. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  5741. writing into the file.
  5742. @param f the file name to open
  5743. @param createFlag gives the semantics of create; see {@link CreateFlag}
  5744. @param opts file creation options; see {@link Options.CreateOpts}.
  5745. <ul>
  5746. <li>Progress - to report progress on the operation - default null
  5747. <li>Permission - umask is applied against permisssion: default is
  5748. FsPermissions:getDefault()
  5749. <li>CreateParent - create missing parent path; default is to not
  5750. to create parents
  5751. <li>The defaults for the following are SS defaults of the file
  5752. server implementing the target path. Not all parameters make sense
  5753. for all kinds of file system - eg. localFS ignores Blocksize,
  5754. replication, checksum
  5755. <ul>
  5756. <li>BufferSize - buffersize used in FSDataOutputStream
  5757. <li>Blocksize - block size for file blocks
  5758. <li>ReplicationFactor - replication for blocks
  5759. <li>ChecksumParam - Checksum parameters. server default is used
  5760. if not specified.
  5761. </ul>
  5762. </ul>
  5763. @return {@link FSDataOutputStream} for created file
  5764. @throws AccessControlException If access is denied
  5765. @throws FileAlreadyExistsException If file <code>f</code> already exists
  5766. @throws FileNotFoundException If parent of <code>f</code> does not exist
  5767. and <code>createParent</code> is false
  5768. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  5769. directory.
  5770. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5771. not supported
  5772. @throws IOException If an I/O error occurred
  5773. Exceptions applicable to file systems accessed over RPC:
  5774. @throws RpcClientException If an exception occurred in the RPC client
  5775. @throws RpcServerException If an exception occurred in the RPC server
  5776. @throws UnexpectedServerException If server implementation throws
  5777. undeclared exception to RPC server
  5778. RuntimeExceptions:
  5779. @throws InvalidPathException If path <code>f</code> is not valid]]>
  5780. </doc>
  5781. </method>
  5782. <method name="mkdir"
  5783. abstract="false" native="false" synchronized="false"
  5784. static="false" final="false" visibility="public"
  5785. deprecated="not deprecated">
  5786. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  5787. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5788. <param name="createParent" type="boolean"/>
  5789. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5790. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5791. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5792. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5793. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5794. <exception name="IOException" type="java.io.IOException"/>
  5795. <doc>
  5796. <![CDATA[Make(create) a directory and all the non-existent parents.
  5797. @param dir - the dir to make
  5798. @param permission - permissions is set permission&~umask
  5799. @param createParent - if true then missing parent dirs are created if false
  5800. then parent must exist
  5801. @throws AccessControlException If access is denied
  5802. @throws FileAlreadyExistsException If directory <code>dir</code> already
  5803. exists
  5804. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  5805. and <code>createParent</code> is false
  5806. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  5807. directory
  5808. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  5809. is not supported
  5810. @throws IOException If an I/O error occurred
  5811. Exceptions applicable to file systems accessed over RPC:
  5812. @throws RpcClientException If an exception occurred in the RPC client
  5813. @throws UnexpectedServerException If server implementation throws
  5814. undeclared exception to RPC server
  5815. RuntimeExceptions:
  5816. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  5817. </doc>
  5818. </method>
  5819. <method name="delete" return="boolean"
  5820. abstract="false" native="false" synchronized="false"
  5821. static="false" final="false" visibility="public"
  5822. deprecated="not deprecated">
  5823. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5824. <param name="recursive" type="boolean"/>
  5825. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5826. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5827. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5828. <exception name="IOException" type="java.io.IOException"/>
  5829. <doc>
  5830. <![CDATA[Delete a file.
  5831. @param f the path to delete.
  5832. @param recursive if path is a directory and set to
  5833. true, the directory is deleted else throws an exception. In
  5834. case of a file the recursive can be set to either true or false.
  5835. @throws AccessControlException If access is denied
  5836. @throws FileNotFoundException If <code>f</code> does not exist
  5837. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5838. not supported
  5839. @throws IOException If an I/O error occurred
  5840. Exceptions applicable to file systems accessed over RPC:
  5841. @throws RpcClientException If an exception occurred in the RPC client
  5842. @throws RpcServerException If an exception occurred in the RPC server
  5843. @throws UnexpectedServerException If server implementation throws
  5844. undeclared exception to RPC server
  5845. RuntimeExceptions:
  5846. @throws InvalidPathException If path <code>f</code> is invalid]]>
  5847. </doc>
  5848. </method>
  5849. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5850. abstract="false" native="false" synchronized="false"
  5851. static="false" final="false" visibility="public"
  5852. deprecated="not deprecated">
  5853. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5854. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5855. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5856. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5857. <exception name="IOException" type="java.io.IOException"/>
  5858. <doc>
  5859. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  5860. default buffersize.
  5861. @param f the file name to open
  5862. @throws AccessControlException If access is denied
  5863. @throws FileNotFoundException If file <code>f</code> does not exist
  5864. @throws UnsupportedFileSystemException If file system for <code>f</code>
  5865. is 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. </doc>
  5873. </method>
  5874. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5875. abstract="false" native="false" synchronized="false"
  5876. static="false" final="false" visibility="public"
  5877. deprecated="not deprecated">
  5878. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5879. <param name="bufferSize" type="int"/>
  5880. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5881. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5882. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5883. <exception name="IOException" type="java.io.IOException"/>
  5884. <doc>
  5885. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  5886. @param f the file name to open
  5887. @param bufferSize the size of the buffer to be used.
  5888. @throws AccessControlException If access is denied
  5889. @throws FileNotFoundException If file <code>f</code> does not exist
  5890. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5891. not supported
  5892. @throws IOException If an I/O error occurred
  5893. Exceptions applicable to file systems accessed over RPC:
  5894. @throws RpcClientException If an exception occurred in the RPC client
  5895. @throws RpcServerException If an exception occurred in the RPC server
  5896. @throws UnexpectedServerException If server implementation throws
  5897. undeclared exception to RPC server]]>
  5898. </doc>
  5899. </method>
  5900. <method name="truncate" return="boolean"
  5901. abstract="false" native="false" synchronized="false"
  5902. static="false" final="false" visibility="public"
  5903. deprecated="not deprecated">
  5904. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5905. <param name="newLength" type="long"/>
  5906. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5907. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5908. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5909. <exception name="IOException" type="java.io.IOException"/>
  5910. <doc>
  5911. <![CDATA[Truncate the file in the indicated path to the indicated size.
  5912. <ul>
  5913. <li>Fails if path is a directory.
  5914. <li>Fails if path does not exist.
  5915. <li>Fails if path is not closed.
  5916. <li>Fails if new size is greater than current size.
  5917. </ul>
  5918. @param f The path to the file to be truncated
  5919. @param newLength The size the file is to be truncated to
  5920. @return <code>true</code> if the file has been truncated to the desired
  5921. <code>newLength</code> and is immediately available to be reused for
  5922. write operations such as <code>append</code>, or
  5923. <code>false</code> if a background process of adjusting the length of
  5924. the last block has been started, and clients should wait for it to
  5925. complete before proceeding with further file updates.
  5926. @throws AccessControlException If access is denied
  5927. @throws FileNotFoundException If file <code>f</code> does not exist
  5928. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5929. not supported
  5930. @throws IOException If an I/O error occurred
  5931. Exceptions applicable to file systems accessed over RPC:
  5932. @throws RpcClientException If an exception occurred in the RPC client
  5933. @throws RpcServerException If an exception occurred in the RPC server
  5934. @throws UnexpectedServerException If server implementation throws
  5935. undeclared exception to RPC server]]>
  5936. </doc>
  5937. </method>
  5938. <method name="setReplication" return="boolean"
  5939. abstract="false" native="false" synchronized="false"
  5940. static="false" final="false" visibility="public"
  5941. deprecated="not deprecated">
  5942. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5943. <param name="replication" type="short"/>
  5944. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5945. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5946. <exception name="IOException" type="java.io.IOException"/>
  5947. <doc>
  5948. <![CDATA[Set replication for an existing file.
  5949. @param f file name
  5950. @param replication new replication
  5951. @return true if successful
  5952. @throws AccessControlException If access is denied
  5953. @throws FileNotFoundException If file <code>f</code> does not exist
  5954. @throws IOException If an I/O error occurred
  5955. Exceptions applicable to file systems accessed over RPC:
  5956. @throws RpcClientException If an exception occurred in the RPC client
  5957. @throws RpcServerException If an exception occurred in the RPC server
  5958. @throws UnexpectedServerException If server implementation throws
  5959. undeclared exception to RPC server]]>
  5960. </doc>
  5961. </method>
  5962. <method name="rename"
  5963. abstract="false" native="false" synchronized="false"
  5964. static="false" final="false" visibility="public"
  5965. deprecated="not deprecated">
  5966. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5967. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5968. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  5969. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5970. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5971. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5972. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5973. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5974. <exception name="IOException" type="java.io.IOException"/>
  5975. <doc>
  5976. <![CDATA[Renames Path src to Path dst
  5977. <ul>
  5978. <li
  5979. <li>Fails if src is a file and dst is a directory.
  5980. <li>Fails if src is a directory and dst is a file.
  5981. <li>Fails if the parent of dst does not exist or is a file.
  5982. </ul>
  5983. <p>
  5984. If OVERWRITE option is not passed as an argument, rename fails if the dst
  5985. already exists.
  5986. <p>
  5987. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  5988. it is a file or an empty directory. Rename fails if dst is a non-empty
  5989. directory.
  5990. <p>
  5991. Note that atomicity of rename is dependent on the file system
  5992. implementation. Please refer to the file system documentation for details
  5993. <p>
  5994. @param src path to be renamed
  5995. @param dst new path after rename
  5996. @throws AccessControlException If access is denied
  5997. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  5998. <code>options</options> has {@link Options.Rename#OVERWRITE}
  5999. option false.
  6000. @throws FileNotFoundException If <code>src</code> does not exist
  6001. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6002. directory
  6003. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6004. and <code>dst</code> is not supported
  6005. @throws IOException If an I/O error occurred
  6006. Exceptions applicable to file systems accessed over RPC:
  6007. @throws RpcClientException If an exception occurred in the RPC client
  6008. @throws RpcServerException If an exception occurred in the RPC server
  6009. @throws UnexpectedServerException If server implementation throws
  6010. undeclared exception to RPC server]]>
  6011. </doc>
  6012. </method>
  6013. <method name="setPermission"
  6014. abstract="false" native="false" synchronized="false"
  6015. static="false" final="false" visibility="public"
  6016. deprecated="not deprecated">
  6017. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6018. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6019. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6020. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6021. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6022. <exception name="IOException" type="java.io.IOException"/>
  6023. <doc>
  6024. <![CDATA[Set permission of a path.
  6025. @param f
  6026. @param permission - the new absolute permission (umask is not applied)
  6027. @throws AccessControlException If access is denied
  6028. @throws FileNotFoundException If <code>f</code> does not exist
  6029. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6030. is not supported
  6031. @throws IOException If an I/O error occurred
  6032. Exceptions applicable to file systems accessed over RPC:
  6033. @throws RpcClientException If an exception occurred in the RPC client
  6034. @throws RpcServerException If an exception occurred in the RPC server
  6035. @throws UnexpectedServerException If server implementation throws
  6036. undeclared exception to RPC server]]>
  6037. </doc>
  6038. </method>
  6039. <method name="setOwner"
  6040. abstract="false" native="false" synchronized="false"
  6041. static="false" final="false" visibility="public"
  6042. deprecated="not deprecated">
  6043. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6044. <param name="username" type="java.lang.String"/>
  6045. <param name="groupname" type="java.lang.String"/>
  6046. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6047. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6048. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6049. <exception name="IOException" type="java.io.IOException"/>
  6050. <doc>
  6051. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6052. and groupname cannot both be null.
  6053. @param f The path
  6054. @param username If it is null, the original username remains unchanged.
  6055. @param groupname If it is null, the original groupname remains unchanged.
  6056. @throws AccessControlException If access is denied
  6057. @throws FileNotFoundException If <code>f</code> does not exist
  6058. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6059. not supported
  6060. @throws IOException If an I/O error occurred
  6061. Exceptions applicable to file systems accessed over RPC:
  6062. @throws RpcClientException If an exception occurred in the RPC client
  6063. @throws RpcServerException If an exception occurred in the RPC server
  6064. @throws UnexpectedServerException If server implementation throws
  6065. undeclared exception to RPC server
  6066. RuntimeExceptions:
  6067. @throws HadoopIllegalArgumentException If <code>username</code> or
  6068. <code>groupname</code> is invalid.]]>
  6069. </doc>
  6070. </method>
  6071. <method name="setTimes"
  6072. abstract="false" native="false" synchronized="false"
  6073. static="false" final="false" visibility="public"
  6074. deprecated="not deprecated">
  6075. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6076. <param name="mtime" type="long"/>
  6077. <param name="atime" type="long"/>
  6078. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6079. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6080. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6081. <exception name="IOException" type="java.io.IOException"/>
  6082. <doc>
  6083. <![CDATA[Set access time of a file.
  6084. @param f The path
  6085. @param mtime Set the modification time of this file.
  6086. The number of milliseconds since epoch (Jan 1, 1970).
  6087. A value of -1 means that this call should not set modification time.
  6088. @param atime Set the access time of this file.
  6089. The number of milliseconds since Jan 1, 1970.
  6090. A value of -1 means that this call should not set access time.
  6091. @throws AccessControlException If access is denied
  6092. @throws FileNotFoundException If <code>f</code> does not exist
  6093. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6094. not supported
  6095. @throws IOException If an I/O error occurred
  6096. Exceptions applicable to file systems accessed over RPC:
  6097. @throws RpcClientException If an exception occurred in the RPC client
  6098. @throws RpcServerException If an exception occurred in the RPC server
  6099. @throws UnexpectedServerException If server implementation throws
  6100. undeclared exception to RPC server]]>
  6101. </doc>
  6102. </method>
  6103. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6104. abstract="false" native="false" synchronized="false"
  6105. static="false" final="false" visibility="public"
  6106. deprecated="not deprecated">
  6107. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6108. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6109. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6110. <exception name="IOException" type="java.io.IOException"/>
  6111. <doc>
  6112. <![CDATA[Get the checksum of a file.
  6113. @param f file path
  6114. @return The file checksum. The default return value is null,
  6115. which indicates that no checksum algorithm is implemented
  6116. in the corresponding FileSystem.
  6117. @throws AccessControlException If access is denied
  6118. @throws FileNotFoundException If <code>f</code> does not exist
  6119. @throws IOException If an I/O error occurred
  6120. Exceptions applicable to file systems accessed over RPC:
  6121. @throws RpcClientException If an exception occurred in the RPC client
  6122. @throws RpcServerException If an exception occurred in the RPC server
  6123. @throws UnexpectedServerException If server implementation throws
  6124. undeclared exception to RPC server]]>
  6125. </doc>
  6126. </method>
  6127. <method name="setVerifyChecksum"
  6128. abstract="false" native="false" synchronized="false"
  6129. static="false" final="false" visibility="public"
  6130. deprecated="not deprecated">
  6131. <param name="verifyChecksum" type="boolean"/>
  6132. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6133. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6134. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6135. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6136. <exception name="IOException" type="java.io.IOException"/>
  6137. <doc>
  6138. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6139. This is only applicable if the
  6140. corresponding FileSystem supports checksum. By default doesn't do anything.
  6141. @param verifyChecksum
  6142. @param f set the verifyChecksum for the Filesystem containing this path
  6143. @throws AccessControlException If access is denied
  6144. @throws FileNotFoundException If <code>f</code> does not exist
  6145. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6146. not supported
  6147. @throws IOException If an I/O error occurred
  6148. Exceptions applicable to file systems accessed over RPC:
  6149. @throws RpcClientException If an exception occurred in the RPC client
  6150. @throws RpcServerException If an exception occurred in the RPC server
  6151. @throws UnexpectedServerException If server implementation throws
  6152. undeclared exception to RPC server]]>
  6153. </doc>
  6154. </method>
  6155. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6156. abstract="false" native="false" synchronized="false"
  6157. static="false" final="false" visibility="public"
  6158. deprecated="not deprecated">
  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[Return a file status object that represents the path.
  6166. @param f The path we want information from
  6167. @return a FileStatus object
  6168. @throws AccessControlException If access is denied
  6169. @throws FileNotFoundException If <code>f</code> does not exist
  6170. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6171. not supported
  6172. @throws IOException If an I/O error occurred
  6173. Exceptions applicable to file systems accessed over RPC:
  6174. @throws RpcClientException If an exception occurred in the RPC client
  6175. @throws RpcServerException If an exception occurred in the RPC server
  6176. @throws UnexpectedServerException If server implementation throws
  6177. undeclared exception to RPC server]]>
  6178. </doc>
  6179. </method>
  6180. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6181. abstract="false" native="false" synchronized="false"
  6182. static="false" final="false" visibility="public"
  6183. deprecated="not deprecated">
  6184. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6185. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6186. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6187. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6188. <exception name="IOException" type="java.io.IOException"/>
  6189. <doc>
  6190. <![CDATA[Return a file status object that represents the path. If the path
  6191. refers to a symlink then the FileStatus of the symlink is returned.
  6192. The behavior is equivalent to #getFileStatus() if the underlying
  6193. file system does not support symbolic links.
  6194. @param f The path we want information from.
  6195. @return A FileStatus object
  6196. @throws AccessControlException If access is denied
  6197. @throws FileNotFoundException If <code>f</code> does not exist
  6198. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6199. not supported
  6200. @throws IOException If an I/O error occurred]]>
  6201. </doc>
  6202. </method>
  6203. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  6204. abstract="false" native="false" synchronized="false"
  6205. static="false" final="false" visibility="public"
  6206. deprecated="not deprecated">
  6207. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6208. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6209. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6210. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6211. <exception name="IOException" type="java.io.IOException"/>
  6212. <doc>
  6213. <![CDATA[Returns the target of the given symbolic link as it was specified
  6214. when the link was created. Links in the path leading up to the
  6215. final path component are resolved transparently.
  6216. @param f the path to return the target of
  6217. @return The un-interpreted target of the symbolic link.
  6218. @throws AccessControlException If access is denied
  6219. @throws FileNotFoundException If path <code>f</code> does not exist
  6220. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6221. not supported
  6222. @throws IOException If the given path does not refer to a symlink
  6223. or an I/O error occurred]]>
  6224. </doc>
  6225. </method>
  6226. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  6227. abstract="false" native="false" synchronized="false"
  6228. static="false" final="false" visibility="public"
  6229. deprecated="not deprecated">
  6230. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6231. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6232. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6233. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6234. <exception name="IOException" type="java.io.IOException"/>
  6235. <doc>
  6236. <![CDATA[Returns a status object describing the use and capacity of the
  6237. file system denoted by the Parh argument p.
  6238. If the file system has multiple partitions, the
  6239. use and capacity of the partition pointed to by the specified
  6240. path is reflected.
  6241. @param f Path for which status should be obtained. null means the
  6242. root partition of the default file system.
  6243. @return a FsStatus object
  6244. @throws AccessControlException If access is denied
  6245. @throws FileNotFoundException If <code>f</code> does not exist
  6246. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6247. not supported
  6248. @throws IOException If an I/O error occurred
  6249. Exceptions applicable to file systems accessed over RPC:
  6250. @throws RpcClientException If an exception occurred in the RPC client
  6251. @throws RpcServerException If an exception occurred in the RPC server
  6252. @throws UnexpectedServerException If server implementation throws
  6253. undeclared exception to RPC server]]>
  6254. </doc>
  6255. </method>
  6256. <method name="createSymlink"
  6257. abstract="false" native="false" synchronized="false"
  6258. static="false" final="false" visibility="public"
  6259. deprecated="not deprecated">
  6260. <param name="target" type="org.apache.hadoop.fs.Path"/>
  6261. <param name="link" type="org.apache.hadoop.fs.Path"/>
  6262. <param name="createParent" type="boolean"/>
  6263. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6264. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6265. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6266. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6267. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6268. <exception name="IOException" type="java.io.IOException"/>
  6269. <doc>
  6270. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  6271. the symlink exits, the user does not have permission to create symlink,
  6272. or the underlying file system does not support symlinks.
  6273. Symlink permissions are ignored, access to a symlink is determined by
  6274. the permissions of the symlink target.
  6275. Symlinks in paths leading up to the final path component are resolved
  6276. transparently. If the final path component refers to a symlink some
  6277. functions operate on the symlink itself, these are:
  6278. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  6279. - rename(src, dst) - If src refers to a symlink, the symlink is
  6280. renamed. If dst refers to a symlink, the symlink is over-written.
  6281. - getLinkTarget(f) - Returns the target of the symlink.
  6282. - getFileLinkStatus(f) - Returns a FileStatus object describing
  6283. the symlink.
  6284. Some functions, create() and mkdir(), expect the final path component
  6285. does not exist. If they are given a path that refers to a symlink that
  6286. does exist they behave as if the path referred to an existing file or
  6287. directory. All other functions fully resolve, ie follow, the symlink.
  6288. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  6289. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  6290. getFsStatus, getFileStatus, exists, and listStatus.
  6291. Symlink targets are stored as given to createSymlink, assuming the
  6292. underlying file system is capable of storing a fully qualified URI.
  6293. Dangling symlinks are permitted. FileContext supports four types of
  6294. symlink targets, and resolves them as follows
  6295. <pre>
  6296. Given a path referring to a symlink of form:
  6297. <---X--->
  6298. fs://host/A/B/link
  6299. <-----Y----->
  6300. In this path X is the scheme and authority that identify the file system,
  6301. and Y is the path leading up to the final path component "link". If Y is
  6302. a symlink itself then let Y' be the target of Y and X' be the scheme and
  6303. authority of Y'. Symlink targets may:
  6304. 1. Fully qualified URIs
  6305. fs://hostX/A/B/file Resolved according to the target file system.
  6306. 2. Partially qualified URIs (eg scheme but no host)
  6307. fs:///A/B/file Resolved according to the target file system. Eg resolving
  6308. a symlink to hdfs:///A results in an exception because
  6309. HDFS URIs must be fully qualified, while a symlink to
  6310. file:///A will not since Hadoop's local file systems
  6311. require partially qualified URIs.
  6312. 3. Relative paths
  6313. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  6314. is "../B/file" then [Y'][path] is hdfs://host/B/file
  6315. 4. Absolute paths
  6316. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  6317. is "/file" then [X][path] is hdfs://host/file
  6318. </pre>
  6319. @param target the target of the symbolic link
  6320. @param link the path to be created that points to target
  6321. @param createParent if true then missing parent dirs are created if
  6322. false then parent must exist
  6323. @throws AccessControlException If access is denied
  6324. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  6325. @throws FileNotFoundException If <code>target</code> does not exist
  6326. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  6327. directory.
  6328. @throws UnsupportedFileSystemException If file system for
  6329. <code>target</code> or <code>link</code> is not supported
  6330. @throws IOException If an I/O error occurred]]>
  6331. </doc>
  6332. </method>
  6333. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6334. abstract="false" native="false" synchronized="false"
  6335. static="false" final="false" visibility="public"
  6336. deprecated="not deprecated">
  6337. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6338. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6339. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6340. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6341. <exception name="IOException" type="java.io.IOException"/>
  6342. <doc>
  6343. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6344. a directory.
  6345. @param f is the path
  6346. @return an iterator that traverses statuses of the files/directories
  6347. in the given path
  6348. @throws AccessControlException If access is denied
  6349. @throws FileNotFoundException If <code>f</code> does not exist
  6350. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6351. not supported
  6352. @throws IOException If an I/O error occurred
  6353. Exceptions applicable to file systems accessed over RPC:
  6354. @throws RpcClientException If an exception occurred in the RPC client
  6355. @throws RpcServerException If an exception occurred in the RPC server
  6356. @throws UnexpectedServerException If server implementation throws
  6357. undeclared exception to RPC server]]>
  6358. </doc>
  6359. </method>
  6360. <method name="listCorruptFileBlocks" 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="path" type="org.apache.hadoop.fs.Path"/>
  6365. <exception name="IOException" type="java.io.IOException"/>
  6366. <doc>
  6367. <![CDATA[@return an iterator over the corrupt files under the given path
  6368. (may contain duplicates if a file has more than one corrupt block)
  6369. @throws IOException]]>
  6370. </doc>
  6371. </method>
  6372. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6373. abstract="false" native="false" synchronized="false"
  6374. static="false" final="false" visibility="public"
  6375. deprecated="not deprecated">
  6376. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6377. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6378. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6379. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6380. <exception name="IOException" type="java.io.IOException"/>
  6381. <doc>
  6382. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6383. a directory.
  6384. Return the file's status and block locations If the path is a file.
  6385. If a returned status is a file, it contains the file's block locations.
  6386. @param f is the path
  6387. @return an iterator that traverses statuses of the files/directories
  6388. in the given path
  6389. If any IO exception (for example the input directory gets deleted while
  6390. listing is being executed), next() or hasNext() of the returned iterator
  6391. may throw a RuntimeException with the io exception as the cause.
  6392. @throws AccessControlException If access is denied
  6393. @throws FileNotFoundException If <code>f</code> does not exist
  6394. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6395. not supported
  6396. @throws IOException If an I/O error occurred
  6397. Exceptions applicable to file systems accessed over RPC:
  6398. @throws RpcClientException If an exception occurred in the RPC client
  6399. @throws RpcServerException If an exception occurred in the RPC server
  6400. @throws UnexpectedServerException If server implementation throws
  6401. undeclared exception to RPC server]]>
  6402. </doc>
  6403. </method>
  6404. <method name="deleteOnExit" return="boolean"
  6405. abstract="false" native="false" synchronized="false"
  6406. static="false" final="false" visibility="public"
  6407. deprecated="not deprecated">
  6408. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6409. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6410. <exception name="IOException" type="java.io.IOException"/>
  6411. <doc>
  6412. <![CDATA[Mark a path to be deleted on JVM shutdown.
  6413. @param f the existing path to delete.
  6414. @return true if deleteOnExit is successful, otherwise false.
  6415. @throws AccessControlException If access is denied
  6416. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6417. not supported
  6418. @throws IOException If an I/O error occurred
  6419. Exceptions applicable to file systems accessed over RPC:
  6420. @throws RpcClientException If an exception occurred in the RPC client
  6421. @throws RpcServerException If an exception occurred in the RPC server
  6422. @throws UnexpectedServerException If server implementation throws
  6423. undeclared exception to RPC server]]>
  6424. </doc>
  6425. </method>
  6426. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  6427. abstract="false" native="false" synchronized="false"
  6428. static="false" final="false" visibility="public"
  6429. deprecated="not deprecated">
  6430. </method>
  6431. <method name="resolve" return="org.apache.hadoop.fs.Path"
  6432. abstract="false" native="false" synchronized="false"
  6433. static="false" final="false" visibility="protected"
  6434. deprecated="not deprecated">
  6435. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6436. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6437. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6438. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6439. <exception name="IOException" type="java.io.IOException"/>
  6440. <doc>
  6441. <![CDATA[Resolves all symbolic links in the specified path.
  6442. Returns the new path object.]]>
  6443. </doc>
  6444. </method>
  6445. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  6446. abstract="false" native="false" synchronized="false"
  6447. static="false" final="false" visibility="protected"
  6448. deprecated="not deprecated">
  6449. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6450. <exception name="IOException" type="java.io.IOException"/>
  6451. <doc>
  6452. <![CDATA[Resolves all symbolic links in the specified path leading up
  6453. to, but not including the final path component.
  6454. @param f path to resolve
  6455. @return the new path object.]]>
  6456. </doc>
  6457. </method>
  6458. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  6459. abstract="false" native="false" synchronized="false"
  6460. static="true" final="false" visibility="public"
  6461. deprecated="not deprecated">
  6462. <param name="uri" type="java.net.URI"/>
  6463. <doc>
  6464. <![CDATA[Get the statistics for a particular file system
  6465. @param uri
  6466. the uri to lookup the statistics. Only scheme and authority part
  6467. of the uri are used as the key to store and lookup.
  6468. @return a statistics object]]>
  6469. </doc>
  6470. </method>
  6471. <method name="clearStatistics"
  6472. abstract="false" native="false" synchronized="false"
  6473. static="true" final="false" visibility="public"
  6474. deprecated="not deprecated">
  6475. <doc>
  6476. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  6477. systems.]]>
  6478. </doc>
  6479. </method>
  6480. <method name="printStatistics"
  6481. abstract="false" native="false" synchronized="false"
  6482. static="true" final="false" visibility="public"
  6483. deprecated="not deprecated">
  6484. <doc>
  6485. <![CDATA[Prints the statistics to standard output. File System is identified by the
  6486. scheme and authority.]]>
  6487. </doc>
  6488. </method>
  6489. <method name="getAllStatistics" return="java.util.Map"
  6490. abstract="false" native="false" synchronized="false"
  6491. static="true" final="false" visibility="public"
  6492. deprecated="not deprecated">
  6493. <doc>
  6494. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  6495. consists of scheme and authority for the filesystem.]]>
  6496. </doc>
  6497. </method>
  6498. <method name="modifyAclEntries"
  6499. abstract="false" native="false" synchronized="false"
  6500. static="false" final="false" visibility="public"
  6501. deprecated="not deprecated">
  6502. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6503. <param name="aclSpec" type="java.util.List"/>
  6504. <exception name="IOException" type="java.io.IOException"/>
  6505. <doc>
  6506. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  6507. entries or modify the permissions on existing ACL entries. All existing
  6508. ACL entries that are not specified in this call are retained without
  6509. changes. (Modifications are merged into the current ACL.)
  6510. @param path Path to modify
  6511. @param aclSpec List<AclEntry> describing modifications
  6512. @throws IOException if an ACL could not be modified]]>
  6513. </doc>
  6514. </method>
  6515. <method name="removeAclEntries"
  6516. abstract="false" native="false" synchronized="false"
  6517. static="false" final="false" visibility="public"
  6518. deprecated="not deprecated">
  6519. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6520. <param name="aclSpec" type="java.util.List"/>
  6521. <exception name="IOException" type="java.io.IOException"/>
  6522. <doc>
  6523. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  6524. retained.
  6525. @param path Path to modify
  6526. @param aclSpec List<AclEntry> describing entries to remove
  6527. @throws IOException if an ACL could not be modified]]>
  6528. </doc>
  6529. </method>
  6530. <method name="removeDefaultAcl"
  6531. abstract="false" native="false" synchronized="false"
  6532. static="false" final="false" visibility="public"
  6533. deprecated="not deprecated">
  6534. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6535. <exception name="IOException" type="java.io.IOException"/>
  6536. <doc>
  6537. <![CDATA[Removes all default ACL entries from files and directories.
  6538. @param path Path to modify
  6539. @throws IOException if an ACL could not be modified]]>
  6540. </doc>
  6541. </method>
  6542. <method name="removeAcl"
  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. <exception name="IOException" type="java.io.IOException"/>
  6548. <doc>
  6549. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  6550. for user, group, and others are retained for compatibility with permission
  6551. bits.
  6552. @param path Path to modify
  6553. @throws IOException if an ACL could not be removed]]>
  6554. </doc>
  6555. </method>
  6556. <method name="setAcl"
  6557. abstract="false" native="false" synchronized="false"
  6558. static="false" final="false" visibility="public"
  6559. deprecated="not deprecated">
  6560. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6561. <param name="aclSpec" type="java.util.List"/>
  6562. <exception name="IOException" type="java.io.IOException"/>
  6563. <doc>
  6564. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  6565. entries.
  6566. @param path Path to modify
  6567. @param aclSpec List<AclEntry> describing modifications, must include entries
  6568. for user, group, and others for compatibility with permission bits.
  6569. @throws IOException if an ACL could not be modified]]>
  6570. </doc>
  6571. </method>
  6572. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  6573. abstract="false" native="false" synchronized="false"
  6574. static="false" final="false" visibility="public"
  6575. deprecated="not deprecated">
  6576. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6577. <exception name="IOException" type="java.io.IOException"/>
  6578. <doc>
  6579. <![CDATA[Gets the ACLs of files and directories.
  6580. @param path Path to get
  6581. @return RemoteIterator<AclStatus> which returns each AclStatus
  6582. @throws IOException if an ACL could not be read]]>
  6583. </doc>
  6584. </method>
  6585. <method name="setXAttr"
  6586. abstract="false" native="false" synchronized="false"
  6587. static="false" final="false" visibility="public"
  6588. deprecated="not deprecated">
  6589. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6590. <param name="name" type="java.lang.String"/>
  6591. <param name="value" type="byte[]"/>
  6592. <exception name="IOException" type="java.io.IOException"/>
  6593. <doc>
  6594. <![CDATA[Set an xattr of a file or directory.
  6595. The name must be prefixed with the namespace followed by ".". For example,
  6596. "user.attr".
  6597. <p/>
  6598. Refer to the HDFS extended attributes user documentation for details.
  6599. @param path Path to modify
  6600. @param name xattr name.
  6601. @param value xattr value.
  6602. @throws IOException]]>
  6603. </doc>
  6604. </method>
  6605. <method name="setXAttr"
  6606. abstract="false" native="false" synchronized="false"
  6607. static="false" final="false" visibility="public"
  6608. deprecated="not deprecated">
  6609. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6610. <param name="name" type="java.lang.String"/>
  6611. <param name="value" type="byte[]"/>
  6612. <param name="flag" type="java.util.EnumSet"/>
  6613. <exception name="IOException" type="java.io.IOException"/>
  6614. <doc>
  6615. <![CDATA[Set an xattr of a file or directory.
  6616. The name must be prefixed with the namespace followed by ".". For example,
  6617. "user.attr".
  6618. <p/>
  6619. Refer to the HDFS extended attributes user documentation for details.
  6620. @param path Path to modify
  6621. @param name xattr name.
  6622. @param value xattr value.
  6623. @param flag xattr set flag
  6624. @throws IOException]]>
  6625. </doc>
  6626. </method>
  6627. <method name="getXAttr" return="byte[]"
  6628. abstract="false" native="false" synchronized="false"
  6629. static="false" final="false" visibility="public"
  6630. deprecated="not deprecated">
  6631. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6632. <param name="name" type="java.lang.String"/>
  6633. <exception name="IOException" type="java.io.IOException"/>
  6634. <doc>
  6635. <![CDATA[Get an xattr for a file or directory.
  6636. The name must be prefixed with the namespace followed by ".". For example,
  6637. "user.attr".
  6638. <p/>
  6639. Refer to the HDFS extended attributes user documentation for details.
  6640. @param path Path to get extended attribute
  6641. @param name xattr name.
  6642. @return byte[] xattr value.
  6643. @throws IOException]]>
  6644. </doc>
  6645. </method>
  6646. <method name="getXAttrs" return="java.util.Map"
  6647. abstract="false" native="false" synchronized="false"
  6648. static="false" final="false" visibility="public"
  6649. deprecated="not deprecated">
  6650. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6651. <exception name="IOException" type="java.io.IOException"/>
  6652. <doc>
  6653. <![CDATA[Get all of the xattrs for a file or directory.
  6654. Only those xattrs for which the logged-in user has permissions to view
  6655. are returned.
  6656. <p/>
  6657. Refer to the HDFS extended attributes user documentation for details.
  6658. @param path Path to get extended attributes
  6659. @return Map<String, byte[]> describing the XAttrs of the file or directory
  6660. @throws IOException]]>
  6661. </doc>
  6662. </method>
  6663. <method name="getXAttrs" return="java.util.Map"
  6664. abstract="false" native="false" synchronized="false"
  6665. static="false" final="false" visibility="public"
  6666. deprecated="not deprecated">
  6667. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6668. <param name="names" type="java.util.List"/>
  6669. <exception name="IOException" type="java.io.IOException"/>
  6670. <doc>
  6671. <![CDATA[Get all of the xattrs for a file or directory.
  6672. Only those xattrs for which the logged-in user has permissions to view
  6673. are returned.
  6674. <p/>
  6675. Refer to the HDFS extended attributes user documentation for details.
  6676. @param path Path to get extended attributes
  6677. @param names XAttr names.
  6678. @return Map<String, byte[]> describing the XAttrs of the file or directory
  6679. @throws IOException]]>
  6680. </doc>
  6681. </method>
  6682. <method name="removeXAttr"
  6683. abstract="false" native="false" synchronized="false"
  6684. static="false" final="false" visibility="public"
  6685. deprecated="not deprecated">
  6686. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6687. <param name="name" type="java.lang.String"/>
  6688. <exception name="IOException" type="java.io.IOException"/>
  6689. <doc>
  6690. <![CDATA[Remove an xattr of a file or directory.
  6691. The name must be prefixed with the namespace followed by ".". For example,
  6692. "user.attr".
  6693. <p/>
  6694. Refer to the HDFS extended attributes user documentation for details.
  6695. @param path Path to remove extended attribute
  6696. @param name xattr name
  6697. @throws IOException]]>
  6698. </doc>
  6699. </method>
  6700. <method name="listXAttrs" return="java.util.List"
  6701. abstract="false" native="false" synchronized="false"
  6702. static="false" final="false" visibility="public"
  6703. deprecated="not deprecated">
  6704. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6705. <exception name="IOException" type="java.io.IOException"/>
  6706. <doc>
  6707. <![CDATA[Get all of the xattr names for a file or directory.
  6708. Only those xattr names which the logged-in user has permissions to view
  6709. are returned.
  6710. <p/>
  6711. Refer to the HDFS extended attributes user documentation for details.
  6712. @param path Path to get extended attributes
  6713. @return List<String> of the XAttr names of the file or directory
  6714. @throws IOException]]>
  6715. </doc>
  6716. </method>
  6717. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  6718. abstract="false" native="false" synchronized="false"
  6719. static="false" final="true" visibility="public"
  6720. deprecated="not deprecated">
  6721. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6722. <exception name="IOException" type="java.io.IOException"/>
  6723. <doc>
  6724. <![CDATA[Create a snapshot with a default name.
  6725. @param path The directory where snapshots will be taken.
  6726. @return the snapshot path.
  6727. @throws IOException If an I/O error occurred
  6728. <p>Exceptions applicable to file systems accessed over RPC:
  6729. @throws RpcClientException If an exception occurred in the RPC client
  6730. @throws RpcServerException If an exception occurred in the RPC server
  6731. @throws UnexpectedServerException If server implementation throws
  6732. undeclared exception to RPC server]]>
  6733. </doc>
  6734. </method>
  6735. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  6736. abstract="false" native="false" synchronized="false"
  6737. static="false" final="false" visibility="public"
  6738. deprecated="not deprecated">
  6739. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6740. <param name="snapshotName" type="java.lang.String"/>
  6741. <exception name="IOException" type="java.io.IOException"/>
  6742. <doc>
  6743. <![CDATA[Create a snapshot.
  6744. @param path The directory where snapshots will be taken.
  6745. @param snapshotName The name of the snapshot
  6746. @return the snapshot path.
  6747. @throws IOException If an I/O error occurred
  6748. <p>Exceptions applicable to file systems accessed over RPC:
  6749. @throws RpcClientException If an exception occurred in the RPC client
  6750. @throws RpcServerException If an exception occurred in the RPC server
  6751. @throws UnexpectedServerException If server implementation throws
  6752. undeclared exception to RPC server]]>
  6753. </doc>
  6754. </method>
  6755. <method name="renameSnapshot"
  6756. abstract="false" native="false" synchronized="false"
  6757. static="false" final="false" visibility="public"
  6758. deprecated="not deprecated">
  6759. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6760. <param name="snapshotOldName" type="java.lang.String"/>
  6761. <param name="snapshotNewName" type="java.lang.String"/>
  6762. <exception name="IOException" type="java.io.IOException"/>
  6763. <doc>
  6764. <![CDATA[Rename a snapshot.
  6765. @param path The directory path where the snapshot was taken
  6766. @param snapshotOldName Old name of the snapshot
  6767. @param snapshotNewName New name of the snapshot
  6768. @throws IOException If an I/O error occurred
  6769. <p>Exceptions applicable to file systems accessed over RPC:
  6770. @throws RpcClientException If an exception occurred in the RPC client
  6771. @throws RpcServerException If an exception occurred in the RPC server
  6772. @throws UnexpectedServerException If server implementation throws
  6773. undeclared exception to RPC server]]>
  6774. </doc>
  6775. </method>
  6776. <method name="deleteSnapshot"
  6777. abstract="false" native="false" synchronized="false"
  6778. static="false" final="false" visibility="public"
  6779. deprecated="not deprecated">
  6780. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6781. <param name="snapshotName" type="java.lang.String"/>
  6782. <exception name="IOException" type="java.io.IOException"/>
  6783. <doc>
  6784. <![CDATA[Delete a snapshot of a directory.
  6785. @param path The directory that the to-be-deleted snapshot belongs to
  6786. @param snapshotName The name of the snapshot
  6787. @throws IOException If an I/O error occurred
  6788. <p>Exceptions applicable to file systems accessed over RPC:
  6789. @throws RpcClientException If an exception occurred in the RPC client
  6790. @throws RpcServerException If an exception occurred in the RPC server
  6791. @throws UnexpectedServerException If server implementation throws
  6792. undeclared exception to RPC server]]>
  6793. </doc>
  6794. </method>
  6795. <method name="setStoragePolicy"
  6796. abstract="false" native="false" synchronized="false"
  6797. static="false" final="false" visibility="public"
  6798. deprecated="not deprecated">
  6799. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6800. <param name="policyName" type="java.lang.String"/>
  6801. <exception name="IOException" type="java.io.IOException"/>
  6802. <doc>
  6803. <![CDATA[Set the storage policy for a given file or directory.
  6804. @param path file or directory path.
  6805. @param policyName the name of the target storage policy. The list
  6806. of supported Storage policies can be retrieved
  6807. via {@link #getAllStoragePolicies}.]]>
  6808. </doc>
  6809. </method>
  6810. <method name="unsetStoragePolicy"
  6811. abstract="false" native="false" synchronized="false"
  6812. static="false" final="false" visibility="public"
  6813. deprecated="not deprecated">
  6814. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6815. <exception name="IOException" type="java.io.IOException"/>
  6816. <doc>
  6817. <![CDATA[Unset the storage policy set for a given file or directory.
  6818. @param src file or directory path.
  6819. @throws IOException]]>
  6820. </doc>
  6821. </method>
  6822. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  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. <exception name="IOException" type="java.io.IOException"/>
  6828. <doc>
  6829. <![CDATA[Query the effective storage policy ID for the given file or directory.
  6830. @param path file or directory path.
  6831. @return storage policy for give file.
  6832. @throws IOException]]>
  6833. </doc>
  6834. </method>
  6835. <method name="getAllStoragePolicies" return="java.util.Collection"
  6836. abstract="false" native="false" synchronized="false"
  6837. static="false" final="false" visibility="public"
  6838. deprecated="not deprecated">
  6839. <exception name="IOException" type="java.io.IOException"/>
  6840. <doc>
  6841. <![CDATA[Retrieve all the storage policies supported by this file system.
  6842. @return all storage policies supported by this filesystem.
  6843. @throws IOException]]>
  6844. </doc>
  6845. </method>
  6846. <field name="LOG" type="org.apache.commons.logging.Log"
  6847. transient="false" volatile="false"
  6848. static="true" final="true" visibility="public"
  6849. deprecated="not deprecated">
  6850. </field>
  6851. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  6852. transient="false" volatile="false"
  6853. static="true" final="true" visibility="public"
  6854. deprecated="not deprecated">
  6855. <doc>
  6856. <![CDATA[Default permission for directory and symlink
  6857. In previous versions, this default permission was also used to
  6858. create files, so files created end up with ugo+x permission.
  6859. See HADOOP-9155 for detail.
  6860. Two new constants are added to solve this, please use
  6861. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  6862. {@link FileContext#FILE_DEFAULT_PERM} for file.
  6863. This constant is kept for compatibility.]]>
  6864. </doc>
  6865. </field>
  6866. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  6867. transient="false" volatile="false"
  6868. static="true" final="true" visibility="public"
  6869. deprecated="not deprecated">
  6870. <doc>
  6871. <![CDATA[Default permission for directory]]>
  6872. </doc>
  6873. </field>
  6874. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  6875. transient="false" volatile="false"
  6876. static="true" final="true" visibility="public"
  6877. deprecated="not deprecated">
  6878. <doc>
  6879. <![CDATA[Default permission for file]]>
  6880. </doc>
  6881. </field>
  6882. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  6883. transient="false" volatile="false"
  6884. static="true" final="true" visibility="public"
  6885. deprecated="not deprecated">
  6886. <doc>
  6887. <![CDATA[Priority of the FileContext shutdown hook.]]>
  6888. </doc>
  6889. </field>
  6890. <doc>
  6891. <![CDATA[The FileContext class provides an interface to the application writer for
  6892. using the Hadoop file system.
  6893. It provides a set of methods for the usual operation: create, open,
  6894. list, etc
  6895. <p>
  6896. <b> *** Path Names *** </b>
  6897. <p>
  6898. The Hadoop file system supports a URI name space and URI names.
  6899. It offers a forest of file systems that can be referenced using fully
  6900. qualified URIs.
  6901. Two common Hadoop file systems implementations are
  6902. <ul>
  6903. <li> the local file system: file:///path
  6904. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  6905. </ul>
  6906. While URI names are very flexible, it requires knowing the name or address
  6907. of the server. For convenience one often wants to access the default system
  6908. in one's environment without knowing its name/address. This has an
  6909. additional benefit that it allows one to change one's default fs
  6910. (e.g. admin moves application from cluster1 to cluster2).
  6911. <p>
  6912. To facilitate this, Hadoop supports a notion of a default file system.
  6913. The user can set his default file system, although this is
  6914. typically set up for you in your environment via your default config.
  6915. A default file system implies a default scheme and authority; slash-relative
  6916. names (such as /for/bar) are resolved relative to that default FS.
  6917. Similarly a user can also have working-directory-relative names (i.e. names
  6918. not starting with a slash). While the working directory is generally in the
  6919. same default FS, the wd can be in a different FS.
  6920. <p>
  6921. Hence Hadoop path names can be one of:
  6922. <ul>
  6923. <li> fully qualified URI: scheme://authority/path
  6924. <li> slash relative names: /path relative to the default file system
  6925. <li> wd-relative names: path relative to the working dir
  6926. </ul>
  6927. Relative paths with scheme (scheme:foo/bar) are illegal.
  6928. <p>
  6929. <b>****The Role of the FileContext and configuration defaults****</b>
  6930. <p>
  6931. The FileContext provides file namespace context for resolving file names;
  6932. it also contains the umask for permissions, In that sense it is like the
  6933. per-process file-related state in Unix system.
  6934. These two properties
  6935. <ul>
  6936. <li> default file system i.e your slash)
  6937. <li> umask
  6938. </ul>
  6939. in general, are obtained from the default configuration file
  6940. in your environment, (@see {@link Configuration}).
  6941. No other configuration parameters are obtained from the default config as
  6942. far as the file context layer is concerned. All file system instances
  6943. (i.e. deployments of file systems) have default properties; we call these
  6944. server side (SS) defaults. Operation like create allow one to select many
  6945. properties: either pass them in as explicit parameters or use
  6946. the SS properties.
  6947. <p>
  6948. The file system related SS defaults are
  6949. <ul>
  6950. <li> the home directory (default is "/user/userName")
  6951. <li> the initial wd (only for local fs)
  6952. <li> replication factor
  6953. <li> block size
  6954. <li> buffer size
  6955. <li> encryptDataTransfer
  6956. <li> checksum option. (checksumType and bytesPerChecksum)
  6957. </ul>
  6958. <p>
  6959. <b> *** Usage Model for the FileContext class *** </b>
  6960. <p>
  6961. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  6962. Unspecified values come from core-defaults.xml in the release jar.
  6963. <ul>
  6964. <li> myFContext = FileContext.getFileContext(); // uses the default config
  6965. // which has your default FS
  6966. <li> myFContext.create(path, ...);
  6967. <li> myFContext.setWorkingDir(path)
  6968. <li> myFContext.open (path, ...);
  6969. </ul>
  6970. Example 2: Get a FileContext with a specific URI as the default FS
  6971. <ul>
  6972. <li> myFContext = FileContext.getFileContext(URI)
  6973. <li> myFContext.create(path, ...);
  6974. ...
  6975. </ul>
  6976. Example 3: FileContext with local file system as the default
  6977. <ul>
  6978. <li> myFContext = FileContext.getLocalFSFileContext()
  6979. <li> myFContext.create(path, ...);
  6980. <li> ...
  6981. </ul>
  6982. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  6983. Generally you should not need use a config unless you are doing
  6984. <ul>
  6985. <li> configX = someConfigSomeOnePassedToYou.
  6986. <li> myFContext = getFileContext(configX); // configX is not changed,
  6987. // is passed down
  6988. <li> myFContext.create(path, ...);
  6989. <li>...
  6990. </ul>]]>
  6991. </doc>
  6992. </class>
  6993. <!-- end class org.apache.hadoop.fs.FileContext -->
  6994. <!-- start class org.apache.hadoop.fs.FileStatus -->
  6995. <class name="FileStatus" extends="java.lang.Object"
  6996. abstract="false"
  6997. static="false" final="false" visibility="public"
  6998. deprecated="not deprecated">
  6999. <implements name="org.apache.hadoop.io.Writable"/>
  7000. <implements name="java.lang.Comparable"/>
  7001. <constructor name="FileStatus"
  7002. static="false" final="false" visibility="public"
  7003. deprecated="not deprecated">
  7004. </constructor>
  7005. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7006. static="false" final="false" visibility="public"
  7007. deprecated="not deprecated">
  7008. </constructor>
  7009. <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"
  7010. static="false" final="false" visibility="public"
  7011. deprecated="not deprecated">
  7012. <doc>
  7013. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7014. </doc>
  7015. </constructor>
  7016. <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"
  7017. static="false" final="false" visibility="public"
  7018. deprecated="not deprecated">
  7019. </constructor>
  7020. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  7021. static="false" final="false" visibility="public"
  7022. deprecated="not deprecated">
  7023. <exception name="IOException" type="java.io.IOException"/>
  7024. <doc>
  7025. <![CDATA[Copy constructor.
  7026. @param other FileStatus to copy]]>
  7027. </doc>
  7028. </constructor>
  7029. <method name="getLen" return="long"
  7030. abstract="false" native="false" synchronized="false"
  7031. static="false" final="false" visibility="public"
  7032. deprecated="not deprecated">
  7033. <doc>
  7034. <![CDATA[Get the length of this file, in bytes.
  7035. @return the length of this file, in bytes.]]>
  7036. </doc>
  7037. </method>
  7038. <method name="isFile" return="boolean"
  7039. abstract="false" native="false" synchronized="false"
  7040. static="false" final="false" visibility="public"
  7041. deprecated="not deprecated">
  7042. <doc>
  7043. <![CDATA[Is this a file?
  7044. @return true if this is a file]]>
  7045. </doc>
  7046. </method>
  7047. <method name="isDirectory" return="boolean"
  7048. abstract="false" native="false" synchronized="false"
  7049. static="false" final="false" visibility="public"
  7050. deprecated="not deprecated">
  7051. <doc>
  7052. <![CDATA[Is this a directory?
  7053. @return true if this is a directory]]>
  7054. </doc>
  7055. </method>
  7056. <method name="isDir" return="boolean"
  7057. abstract="false" native="false" synchronized="false"
  7058. static="false" final="false" visibility="public"
  7059. deprecated="Use {@link FileStatus#isFile()},
  7060. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7061. instead.">
  7062. <doc>
  7063. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  7064. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7065. @return true if this is a directory.
  7066. @deprecated Use {@link FileStatus#isFile()},
  7067. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7068. instead.]]>
  7069. </doc>
  7070. </method>
  7071. <method name="isSymlink" return="boolean"
  7072. abstract="false" native="false" synchronized="false"
  7073. static="false" final="false" visibility="public"
  7074. deprecated="not deprecated">
  7075. <doc>
  7076. <![CDATA[Is this a symbolic link?
  7077. @return true if this is a symbolic link]]>
  7078. </doc>
  7079. </method>
  7080. <method name="getBlockSize" return="long"
  7081. abstract="false" native="false" synchronized="false"
  7082. static="false" final="false" visibility="public"
  7083. deprecated="not deprecated">
  7084. <doc>
  7085. <![CDATA[Get the block size of the file.
  7086. @return the number of bytes]]>
  7087. </doc>
  7088. </method>
  7089. <method name="getReplication" return="short"
  7090. abstract="false" native="false" synchronized="false"
  7091. static="false" final="false" visibility="public"
  7092. deprecated="not deprecated">
  7093. <doc>
  7094. <![CDATA[Get the replication factor of a file.
  7095. @return the replication factor of a file.]]>
  7096. </doc>
  7097. </method>
  7098. <method name="getModificationTime" return="long"
  7099. abstract="false" native="false" synchronized="false"
  7100. static="false" final="false" visibility="public"
  7101. deprecated="not deprecated">
  7102. <doc>
  7103. <![CDATA[Get the modification time of the file.
  7104. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7105. </doc>
  7106. </method>
  7107. <method name="getAccessTime" 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 access time of the file.
  7113. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  7114. </doc>
  7115. </method>
  7116. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7117. abstract="false" native="false" synchronized="false"
  7118. static="false" final="false" visibility="public"
  7119. deprecated="not deprecated">
  7120. <doc>
  7121. <![CDATA[Get FsPermission associated with the file.
  7122. @return permssion. If a filesystem does not have a notion of permissions
  7123. or if permissions could not be determined, then default
  7124. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7125. </doc>
  7126. </method>
  7127. <method name="isEncrypted" return="boolean"
  7128. abstract="false" native="false" synchronized="false"
  7129. static="false" final="false" visibility="public"
  7130. deprecated="not deprecated">
  7131. <doc>
  7132. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  7133. @return true if the underlying file is encrypted.]]>
  7134. </doc>
  7135. </method>
  7136. <method name="getOwner" return="java.lang.String"
  7137. abstract="false" native="false" synchronized="false"
  7138. static="false" final="false" visibility="public"
  7139. deprecated="not deprecated">
  7140. <doc>
  7141. <![CDATA[Get the owner of the file.
  7142. @return owner of the file. The string could be empty if there is no
  7143. notion of owner of a file in a filesystem or if it could not
  7144. be determined (rare).]]>
  7145. </doc>
  7146. </method>
  7147. <method name="getGroup" return="java.lang.String"
  7148. abstract="false" native="false" synchronized="false"
  7149. static="false" final="false" visibility="public"
  7150. deprecated="not deprecated">
  7151. <doc>
  7152. <![CDATA[Get the group associated with the file.
  7153. @return group for the file. The string could be empty if there is no
  7154. notion of group of a file in a filesystem or if it could not
  7155. be determined (rare).]]>
  7156. </doc>
  7157. </method>
  7158. <method name="getPath" return="org.apache.hadoop.fs.Path"
  7159. abstract="false" native="false" synchronized="false"
  7160. static="false" final="false" visibility="public"
  7161. deprecated="not deprecated">
  7162. </method>
  7163. <method name="setPath"
  7164. abstract="false" native="false" synchronized="false"
  7165. static="false" final="false" visibility="public"
  7166. deprecated="not deprecated">
  7167. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7168. </method>
  7169. <method name="setPermission"
  7170. abstract="false" native="false" synchronized="false"
  7171. static="false" final="false" visibility="protected"
  7172. deprecated="not deprecated">
  7173. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7174. <doc>
  7175. <![CDATA[Sets permission.
  7176. @param permission if permission is null, default value is set]]>
  7177. </doc>
  7178. </method>
  7179. <method name="setOwner"
  7180. abstract="false" native="false" synchronized="false"
  7181. static="false" final="false" visibility="protected"
  7182. deprecated="not deprecated">
  7183. <param name="owner" type="java.lang.String"/>
  7184. <doc>
  7185. <![CDATA[Sets owner.
  7186. @param owner if it is null, default value is set]]>
  7187. </doc>
  7188. </method>
  7189. <method name="setGroup"
  7190. abstract="false" native="false" synchronized="false"
  7191. static="false" final="false" visibility="protected"
  7192. deprecated="not deprecated">
  7193. <param name="group" type="java.lang.String"/>
  7194. <doc>
  7195. <![CDATA[Sets group.
  7196. @param group if it is null, default value is set]]>
  7197. </doc>
  7198. </method>
  7199. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  7200. abstract="false" native="false" synchronized="false"
  7201. static="false" final="false" visibility="public"
  7202. deprecated="not deprecated">
  7203. <exception name="IOException" type="java.io.IOException"/>
  7204. <doc>
  7205. <![CDATA[@return The contents of the symbolic link.]]>
  7206. </doc>
  7207. </method>
  7208. <method name="setSymlink"
  7209. abstract="false" native="false" synchronized="false"
  7210. static="false" final="false" visibility="public"
  7211. deprecated="not deprecated">
  7212. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7213. </method>
  7214. <method name="write"
  7215. abstract="false" native="false" synchronized="false"
  7216. static="false" final="false" visibility="public"
  7217. deprecated="not deprecated">
  7218. <param name="out" type="java.io.DataOutput"/>
  7219. <exception name="IOException" type="java.io.IOException"/>
  7220. </method>
  7221. <method name="readFields"
  7222. abstract="false" native="false" synchronized="false"
  7223. static="false" final="false" visibility="public"
  7224. deprecated="not deprecated">
  7225. <param name="in" type="java.io.DataInput"/>
  7226. <exception name="IOException" type="java.io.IOException"/>
  7227. </method>
  7228. <method name="compareTo" return="int"
  7229. abstract="false" native="false" synchronized="false"
  7230. static="false" final="false" visibility="public"
  7231. deprecated="not deprecated">
  7232. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  7233. <doc>
  7234. <![CDATA[Compare this FileStatus to another FileStatus
  7235. @param o the FileStatus to be compared.
  7236. @return a negative integer, zero, or a positive integer as this object
  7237. is less than, equal to, or greater than the specified object.]]>
  7238. </doc>
  7239. </method>
  7240. <method name="equals" return="boolean"
  7241. abstract="false" native="false" synchronized="false"
  7242. static="false" final="false" visibility="public"
  7243. deprecated="not deprecated">
  7244. <param name="o" type="java.lang.Object"/>
  7245. <doc>
  7246. <![CDATA[Compare if this object is equal to another object
  7247. @param o the object to be compared.
  7248. @return true if two file status has the same path name; false if not.]]>
  7249. </doc>
  7250. </method>
  7251. <method name="hashCode" return="int"
  7252. abstract="false" native="false" synchronized="false"
  7253. static="false" final="false" visibility="public"
  7254. deprecated="not deprecated">
  7255. <doc>
  7256. <![CDATA[Returns a hash code value for the object, which is defined as
  7257. the hash code of the path name.
  7258. @return a hash code value for the path name.]]>
  7259. </doc>
  7260. </method>
  7261. <method name="toString" return="java.lang.String"
  7262. abstract="false" native="false" synchronized="false"
  7263. static="false" final="false" visibility="public"
  7264. deprecated="not deprecated">
  7265. </method>
  7266. <doc>
  7267. <![CDATA[Interface that represents the client side information for a file.]]>
  7268. </doc>
  7269. </class>
  7270. <!-- end class org.apache.hadoop.fs.FileStatus -->
  7271. <!-- start class org.apache.hadoop.fs.FileSystem -->
  7272. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  7273. abstract="true"
  7274. static="false" final="false" visibility="public"
  7275. deprecated="not deprecated">
  7276. <implements name="java.io.Closeable"/>
  7277. <constructor name="FileSystem"
  7278. static="false" final="false" visibility="protected"
  7279. deprecated="not deprecated">
  7280. </constructor>
  7281. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7282. abstract="false" native="false" synchronized="false"
  7283. static="true" final="false" visibility="public"
  7284. deprecated="not deprecated">
  7285. <param name="uri" type="java.net.URI"/>
  7286. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7287. <param name="user" type="java.lang.String"/>
  7288. <exception name="IOException" type="java.io.IOException"/>
  7289. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  7290. <doc>
  7291. <![CDATA[Get a filesystem instance based on the uri, the passed
  7292. configuration and the user
  7293. @param uri of the filesystem
  7294. @param conf the configuration to use
  7295. @param user to perform the get as
  7296. @return the filesystem instance
  7297. @throws IOException
  7298. @throws InterruptedException]]>
  7299. </doc>
  7300. </method>
  7301. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7302. abstract="false" native="false" synchronized="false"
  7303. static="true" final="false" visibility="public"
  7304. deprecated="not deprecated">
  7305. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7306. <exception name="IOException" type="java.io.IOException"/>
  7307. <doc>
  7308. <![CDATA[Returns the configured filesystem implementation.
  7309. @param conf the configuration to use]]>
  7310. </doc>
  7311. </method>
  7312. <method name="getDefaultUri" return="java.net.URI"
  7313. abstract="false" native="false" synchronized="false"
  7314. static="true" final="false" visibility="public"
  7315. deprecated="not deprecated">
  7316. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7317. <doc>
  7318. <![CDATA[Get the default filesystem URI from a configuration.
  7319. @param conf the configuration to use
  7320. @return the uri of the default filesystem]]>
  7321. </doc>
  7322. </method>
  7323. <method name="setDefaultUri"
  7324. abstract="false" native="false" synchronized="false"
  7325. static="true" final="false" visibility="public"
  7326. deprecated="not deprecated">
  7327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7328. <param name="uri" type="java.net.URI"/>
  7329. <doc>
  7330. <![CDATA[Set the default filesystem URI in a configuration.
  7331. @param conf the configuration to alter
  7332. @param uri the new default filesystem uri]]>
  7333. </doc>
  7334. </method>
  7335. <method name="setDefaultUri"
  7336. abstract="false" native="false" synchronized="false"
  7337. static="true" final="false" visibility="public"
  7338. deprecated="not deprecated">
  7339. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7340. <param name="uri" type="java.lang.String"/>
  7341. <doc>
  7342. <![CDATA[Set the default filesystem URI in a configuration.
  7343. @param conf the configuration to alter
  7344. @param uri the new default filesystem uri]]>
  7345. </doc>
  7346. </method>
  7347. <method name="initialize"
  7348. abstract="false" native="false" synchronized="false"
  7349. static="false" final="false" visibility="public"
  7350. deprecated="not deprecated">
  7351. <param name="name" type="java.net.URI"/>
  7352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7353. <exception name="IOException" type="java.io.IOException"/>
  7354. <doc>
  7355. <![CDATA[Called after a new FileSystem instance is constructed.
  7356. @param name a uri whose authority section names the host, port, etc.
  7357. for this FileSystem
  7358. @param conf the configuration]]>
  7359. </doc>
  7360. </method>
  7361. <method name="getScheme" return="java.lang.String"
  7362. abstract="false" native="false" synchronized="false"
  7363. static="false" final="false" visibility="public"
  7364. deprecated="not deprecated">
  7365. <doc>
  7366. <![CDATA[Return the protocol scheme for the FileSystem.
  7367. <p/>
  7368. This implementation throws an <code>UnsupportedOperationException</code>.
  7369. @return the protocol scheme for the FileSystem.]]>
  7370. </doc>
  7371. </method>
  7372. <method name="getUri" return="java.net.URI"
  7373. abstract="true" native="false" synchronized="false"
  7374. static="false" final="false" visibility="public"
  7375. deprecated="not deprecated">
  7376. <doc>
  7377. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  7378. </doc>
  7379. </method>
  7380. <method name="getCanonicalUri" return="java.net.URI"
  7381. abstract="false" native="false" synchronized="false"
  7382. static="false" final="false" visibility="protected"
  7383. deprecated="not deprecated">
  7384. <doc>
  7385. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  7386. The default implementation simply calls {@link #canonicalizeUri(URI)}
  7387. on the filesystem's own URI, so subclasses typically only need to
  7388. implement that method.
  7389. @see #canonicalizeUri(URI)]]>
  7390. </doc>
  7391. </method>
  7392. <method name="canonicalizeUri" return="java.net.URI"
  7393. abstract="false" native="false" synchronized="false"
  7394. static="false" final="false" visibility="protected"
  7395. deprecated="not deprecated">
  7396. <param name="uri" type="java.net.URI"/>
  7397. <doc>
  7398. <![CDATA[Canonicalize the given URI.
  7399. This is filesystem-dependent, but may for example consist of
  7400. canonicalizing the hostname using DNS and adding the default
  7401. port if not specified.
  7402. The default implementation simply fills in the default port if
  7403. not specified and if the filesystem has a default port.
  7404. @return URI
  7405. @see NetUtils#getCanonicalUri(URI, int)]]>
  7406. </doc>
  7407. </method>
  7408. <method name="getDefaultPort" return="int"
  7409. abstract="false" native="false" synchronized="false"
  7410. static="false" final="false" visibility="protected"
  7411. deprecated="not deprecated">
  7412. <doc>
  7413. <![CDATA[Get the default port for this file system.
  7414. @return the default port or 0 if there isn't one]]>
  7415. </doc>
  7416. </method>
  7417. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  7418. abstract="false" native="false" synchronized="false"
  7419. static="true" final="false" visibility="protected"
  7420. deprecated="not deprecated">
  7421. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  7422. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7423. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7424. <exception name="IOException" type="java.io.IOException"/>
  7425. </method>
  7426. <method name="getCanonicalServiceName" return="java.lang.String"
  7427. abstract="false" native="false" synchronized="false"
  7428. static="false" final="false" visibility="public"
  7429. deprecated="not deprecated">
  7430. <doc>
  7431. <![CDATA[Get a canonical service name for this file system. The token cache is
  7432. the only user of the canonical service name, and uses it to lookup this
  7433. filesystem's service tokens.
  7434. If file system provides a token of its own then it must have a canonical
  7435. name, otherwise canonical name can be null.
  7436. Default Impl: If the file system has child file systems
  7437. (such as an embedded file system) then it is assumed that the fs has no
  7438. tokens of its own and hence returns a null name; otherwise a service
  7439. name is built using Uri and port.
  7440. @return a service string that uniquely identifies this file system, null
  7441. if the filesystem does not implement tokens
  7442. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  7443. </doc>
  7444. </method>
  7445. <method name="getName" return="java.lang.String"
  7446. abstract="false" native="false" synchronized="false"
  7447. static="false" final="false" visibility="public"
  7448. deprecated="call #getUri() instead.">
  7449. <doc>
  7450. <![CDATA[@deprecated call #getUri() instead.]]>
  7451. </doc>
  7452. </method>
  7453. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  7454. abstract="false" native="false" synchronized="false"
  7455. static="true" final="false" visibility="public"
  7456. deprecated="call #get(URI,Configuration) instead.">
  7457. <param name="name" type="java.lang.String"/>
  7458. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7459. <exception name="IOException" type="java.io.IOException"/>
  7460. <doc>
  7461. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  7462. </doc>
  7463. </method>
  7464. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  7465. abstract="false" native="false" synchronized="false"
  7466. static="true" final="false" visibility="public"
  7467. deprecated="not deprecated">
  7468. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7469. <exception name="IOException" type="java.io.IOException"/>
  7470. <doc>
  7471. <![CDATA[Get the local file system.
  7472. @param conf the configuration to configure the file system with
  7473. @return a LocalFileSystem]]>
  7474. </doc>
  7475. </method>
  7476. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7477. abstract="false" native="false" synchronized="false"
  7478. static="true" final="false" visibility="public"
  7479. deprecated="not deprecated">
  7480. <param name="uri" type="java.net.URI"/>
  7481. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7482. <exception name="IOException" type="java.io.IOException"/>
  7483. <doc>
  7484. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  7485. of the URI determines a configuration property name,
  7486. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  7487. The entire URI is passed to the FileSystem instance's initialize method.]]>
  7488. </doc>
  7489. </method>
  7490. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  7491. abstract="false" native="false" synchronized="false"
  7492. static="true" final="false" visibility="public"
  7493. deprecated="not deprecated">
  7494. <param name="uri" type="java.net.URI"/>
  7495. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7496. <param name="user" type="java.lang.String"/>
  7497. <exception name="IOException" type="java.io.IOException"/>
  7498. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  7499. <doc>
  7500. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  7501. passed user. Internally invokes {@link #newInstance(URI, Configuration)}
  7502. @param uri of the filesystem
  7503. @param conf the configuration to use
  7504. @param user to perform the get as
  7505. @return filesystem instance
  7506. @throws IOException
  7507. @throws InterruptedException]]>
  7508. </doc>
  7509. </method>
  7510. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  7511. abstract="false" native="false" synchronized="false"
  7512. static="true" final="false" visibility="public"
  7513. deprecated="not deprecated">
  7514. <param name="uri" type="java.net.URI"/>
  7515. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7516. <exception name="IOException" type="java.io.IOException"/>
  7517. <doc>
  7518. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  7519. of the URI determines a configuration property name,
  7520. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  7521. The entire URI is passed to the FileSystem instance's initialize method.
  7522. This always returns a new FileSystem object.]]>
  7523. </doc>
  7524. </method>
  7525. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  7526. abstract="false" native="false" synchronized="false"
  7527. static="true" final="false" visibility="public"
  7528. deprecated="not deprecated">
  7529. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7530. <exception name="IOException" type="java.io.IOException"/>
  7531. <doc>
  7532. <![CDATA[Returns a unique configured filesystem implementation.
  7533. This always returns a new FileSystem object.
  7534. @param conf the configuration to use]]>
  7535. </doc>
  7536. </method>
  7537. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  7538. abstract="false" native="false" synchronized="false"
  7539. static="true" final="false" visibility="public"
  7540. deprecated="not deprecated">
  7541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7542. <exception name="IOException" type="java.io.IOException"/>
  7543. <doc>
  7544. <![CDATA[Get a unique local file system object
  7545. @param conf the configuration to configure the file system with
  7546. @return a LocalFileSystem
  7547. This always returns a new FileSystem object.]]>
  7548. </doc>
  7549. </method>
  7550. <method name="closeAll"
  7551. abstract="false" native="false" synchronized="false"
  7552. static="true" final="false" visibility="public"
  7553. deprecated="not deprecated">
  7554. <exception name="IOException" type="java.io.IOException"/>
  7555. <doc>
  7556. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  7557. used anymore.
  7558. @throws IOException]]>
  7559. </doc>
  7560. </method>
  7561. <method name="closeAllForUGI"
  7562. abstract="false" native="false" synchronized="false"
  7563. static="true" final="false" visibility="public"
  7564. deprecated="not deprecated">
  7565. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  7566. <exception name="IOException" type="java.io.IOException"/>
  7567. <doc>
  7568. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  7569. are not used anymore.
  7570. @param ugi user group info to close
  7571. @throws IOException]]>
  7572. </doc>
  7573. </method>
  7574. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  7575. abstract="false" native="false" synchronized="false"
  7576. static="false" final="false" visibility="public"
  7577. deprecated="not deprecated">
  7578. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7579. <doc>
  7580. <![CDATA[Make sure that a path specifies a FileSystem.
  7581. @param path to use]]>
  7582. </doc>
  7583. </method>
  7584. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  7585. abstract="false" native="false" synchronized="false"
  7586. static="false" final="false" visibility="public"
  7587. deprecated="not deprecated">
  7588. <param name="renewer" type="java.lang.String"/>
  7589. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  7590. <exception name="IOException" type="java.io.IOException"/>
  7591. <doc>
  7592. <![CDATA[Obtain all delegation tokens used by this FileSystem that are not
  7593. already present in the given Credentials. Existing tokens will neither
  7594. be verified as valid nor having the given renewer. Missing tokens will
  7595. be acquired and added to the given Credentials.
  7596. Default Impl: works for simple fs with its own token
  7597. and also for an embedded fs whose tokens are those of its
  7598. children file system (i.e. the embedded fs has not tokens of its
  7599. own).
  7600. @param renewer the user allowed to renew the delegation tokens
  7601. @param credentials cache in which to add new delegation tokens
  7602. @return list of new delegation tokens
  7603. @throws IOException]]>
  7604. </doc>
  7605. </method>
  7606. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7607. abstract="false" native="false" synchronized="false"
  7608. static="true" final="false" visibility="public"
  7609. deprecated="not deprecated">
  7610. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  7611. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7612. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7613. <exception name="IOException" type="java.io.IOException"/>
  7614. <doc>
  7615. <![CDATA[create a file with the provided permission
  7616. The permission of the file is set to be the provided permission as in
  7617. setPermission, not permission&~umask
  7618. It is implemented using two RPCs. It is understood that it is inefficient,
  7619. but the implementation is thread-safe. The other option is to change the
  7620. value of umask in configuration to be 0, but it is not thread-safe.
  7621. @param fs file system handle
  7622. @param file the name of the file to be created
  7623. @param permission the permission of the file
  7624. @return an output stream
  7625. @throws IOException]]>
  7626. </doc>
  7627. </method>
  7628. <method name="mkdirs" return="boolean"
  7629. abstract="false" native="false" synchronized="false"
  7630. static="true" final="false" visibility="public"
  7631. deprecated="not deprecated">
  7632. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  7633. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7634. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7635. <exception name="IOException" type="java.io.IOException"/>
  7636. <doc>
  7637. <![CDATA[create a directory with the provided permission
  7638. The permission of the directory is set to be the provided permission as in
  7639. setPermission, not permission&~umask
  7640. @see #create(FileSystem, Path, FsPermission)
  7641. @param fs file system handle
  7642. @param dir the name of the directory to be created
  7643. @param permission the permission of the directory
  7644. @return true if the directory creation succeeds; false otherwise
  7645. @throws IOException]]>
  7646. </doc>
  7647. </method>
  7648. <method name="checkPath"
  7649. abstract="false" native="false" synchronized="false"
  7650. static="false" final="false" visibility="protected"
  7651. deprecated="not deprecated">
  7652. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7653. <doc>
  7654. <![CDATA[Check that a Path belongs to this FileSystem.
  7655. @param path to check]]>
  7656. </doc>
  7657. </method>
  7658. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7659. abstract="false" native="false" synchronized="false"
  7660. static="false" final="false" visibility="public"
  7661. deprecated="not deprecated">
  7662. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7663. <param name="start" type="long"/>
  7664. <param name="len" type="long"/>
  7665. <exception name="IOException" type="java.io.IOException"/>
  7666. <doc>
  7667. <![CDATA[Return an array containing hostnames, offset and size of
  7668. portions of the given file. For a nonexistent
  7669. file or regions, null will be returned.
  7670. This call is most helpful with DFS, where it returns
  7671. hostnames of machines that contain the given file.
  7672. The FileSystem will simply return an elt containing 'localhost'.
  7673. @param file FilesStatus to get data from
  7674. @param start offset into the given file
  7675. @param len length for which to get locations for]]>
  7676. </doc>
  7677. </method>
  7678. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7679. abstract="false" native="false" synchronized="false"
  7680. static="false" final="false" visibility="public"
  7681. deprecated="not deprecated">
  7682. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7683. <param name="start" type="long"/>
  7684. <param name="len" type="long"/>
  7685. <exception name="IOException" type="java.io.IOException"/>
  7686. <doc>
  7687. <![CDATA[Return an array containing hostnames, offset and size of
  7688. portions of the given file. For a nonexistent
  7689. file or regions, null will be returned.
  7690. This call is most helpful with DFS, where it returns
  7691. hostnames of machines that contain the given file.
  7692. The FileSystem will simply return an elt containing 'localhost'.
  7693. @param p path is used to identify an FS since an FS could have
  7694. another FS that it could be delegating the call to
  7695. @param start offset into the given file
  7696. @param len length for which to get locations for]]>
  7697. </doc>
  7698. </method>
  7699. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  7700. abstract="false" native="false" synchronized="false"
  7701. static="false" final="false" visibility="public"
  7702. deprecated="use {@link #getServerDefaults(Path)} instead">
  7703. <exception name="IOException" type="java.io.IOException"/>
  7704. <doc>
  7705. <![CDATA[Return a set of server default configuration values
  7706. @return server default configuration values
  7707. @throws IOException
  7708. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  7709. </doc>
  7710. </method>
  7711. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  7712. abstract="false" native="false" synchronized="false"
  7713. static="false" final="false" visibility="public"
  7714. deprecated="not deprecated">
  7715. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7716. <exception name="IOException" type="java.io.IOException"/>
  7717. <doc>
  7718. <![CDATA[Return a set of server default configuration values
  7719. @param p path is used to identify an FS since an FS could have
  7720. another FS that it could be delegating the call to
  7721. @return server default configuration values
  7722. @throws IOException]]>
  7723. </doc>
  7724. </method>
  7725. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  7726. abstract="false" native="false" synchronized="false"
  7727. static="false" final="false" visibility="public"
  7728. deprecated="not deprecated">
  7729. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7730. <exception name="IOException" type="java.io.IOException"/>
  7731. <doc>
  7732. <![CDATA[Return the fully-qualified path of path f resolving the path
  7733. through any symlinks or mount point
  7734. @param p path to be resolved
  7735. @return fully qualified path
  7736. @throws FileNotFoundException]]>
  7737. </doc>
  7738. </method>
  7739. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7740. abstract="true" native="false" synchronized="false"
  7741. static="false" final="false" visibility="public"
  7742. deprecated="not deprecated">
  7743. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7744. <param name="bufferSize" type="int"/>
  7745. <exception name="IOException" type="java.io.IOException"/>
  7746. <doc>
  7747. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7748. @param f the file name to open
  7749. @param bufferSize the size of the buffer to be used.]]>
  7750. </doc>
  7751. </method>
  7752. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7753. abstract="false" native="false" synchronized="false"
  7754. static="false" final="false" visibility="public"
  7755. deprecated="not deprecated">
  7756. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7757. <exception name="IOException" type="java.io.IOException"/>
  7758. <doc>
  7759. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7760. @param f the file to open]]>
  7761. </doc>
  7762. </method>
  7763. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7764. abstract="false" native="false" synchronized="false"
  7765. static="false" final="false" visibility="public"
  7766. deprecated="not deprecated">
  7767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7768. <exception name="IOException" type="java.io.IOException"/>
  7769. <doc>
  7770. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7771. Files are overwritten by default.
  7772. @param f the file to create]]>
  7773. </doc>
  7774. </method>
  7775. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7776. abstract="false" native="false" synchronized="false"
  7777. static="false" final="false" visibility="public"
  7778. deprecated="not deprecated">
  7779. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7780. <param name="overwrite" type="boolean"/>
  7781. <exception name="IOException" type="java.io.IOException"/>
  7782. <doc>
  7783. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7784. @param f the file to create
  7785. @param overwrite if a file with this name already exists, then if true,
  7786. the file will be overwritten, and if false an exception will be thrown.]]>
  7787. </doc>
  7788. </method>
  7789. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7790. abstract="false" native="false" synchronized="false"
  7791. static="false" final="false" visibility="public"
  7792. deprecated="not deprecated">
  7793. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7794. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7795. <exception name="IOException" type="java.io.IOException"/>
  7796. <doc>
  7797. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7798. reporting.
  7799. Files are overwritten by default.
  7800. @param f the file to create
  7801. @param progress to report progress]]>
  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. <param name="replication" type="short"/>
  7810. <exception name="IOException" type="java.io.IOException"/>
  7811. <doc>
  7812. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7813. Files are overwritten by default.
  7814. @param f the file to create
  7815. @param replication the replication factor]]>
  7816. </doc>
  7817. </method>
  7818. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7819. abstract="false" native="false" synchronized="false"
  7820. static="false" final="false" visibility="public"
  7821. deprecated="not deprecated">
  7822. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7823. <param name="replication" type="short"/>
  7824. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7825. <exception name="IOException" type="java.io.IOException"/>
  7826. <doc>
  7827. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7828. reporting.
  7829. Files are overwritten by default.
  7830. @param f the file to create
  7831. @param replication the replication factor
  7832. @param progress to report progress]]>
  7833. </doc>
  7834. </method>
  7835. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7836. abstract="false" native="false" synchronized="false"
  7837. static="false" final="false" visibility="public"
  7838. deprecated="not deprecated">
  7839. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7840. <param name="overwrite" type="boolean"/>
  7841. <param name="bufferSize" type="int"/>
  7842. <exception name="IOException" type="java.io.IOException"/>
  7843. <doc>
  7844. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7845. @param f the file name to create
  7846. @param overwrite if a file with this name already exists, then if true,
  7847. the file will be overwritten, and if false an error will be thrown.
  7848. @param bufferSize the size of the buffer to be used.]]>
  7849. </doc>
  7850. </method>
  7851. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7852. abstract="false" native="false" synchronized="false"
  7853. static="false" final="false" visibility="public"
  7854. deprecated="not deprecated">
  7855. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7856. <param name="overwrite" type="boolean"/>
  7857. <param name="bufferSize" type="int"/>
  7858. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7859. <exception name="IOException" type="java.io.IOException"/>
  7860. <doc>
  7861. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7862. reporting.
  7863. @param f the path of the file to open
  7864. @param overwrite if a file with this name already exists, then if true,
  7865. the file will be overwritten, and if false an error will be thrown.
  7866. @param bufferSize the size of the buffer to be used.]]>
  7867. </doc>
  7868. </method>
  7869. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7870. abstract="false" native="false" synchronized="false"
  7871. static="false" final="false" visibility="public"
  7872. deprecated="not deprecated">
  7873. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7874. <param name="overwrite" type="boolean"/>
  7875. <param name="bufferSize" type="int"/>
  7876. <param name="replication" type="short"/>
  7877. <param name="blockSize" type="long"/>
  7878. <exception name="IOException" type="java.io.IOException"/>
  7879. <doc>
  7880. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  7881. @param f the file name to open
  7882. @param overwrite if a file with this name already exists, then if true,
  7883. the file will be overwritten, and if false an error will be thrown.
  7884. @param bufferSize the size of the buffer to be used.
  7885. @param replication required block replication for the file.]]>
  7886. </doc>
  7887. </method>
  7888. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7889. abstract="false" native="false" synchronized="false"
  7890. static="false" final="false" visibility="public"
  7891. deprecated="not deprecated">
  7892. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7893. <param name="overwrite" type="boolean"/>
  7894. <param name="bufferSize" type="int"/>
  7895. <param name="replication" type="short"/>
  7896. <param name="blockSize" type="long"/>
  7897. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7898. <exception name="IOException" type="java.io.IOException"/>
  7899. <doc>
  7900. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7901. reporting.
  7902. @param f the file name to open
  7903. @param overwrite if a file with this name already exists, then if true,
  7904. the file will be overwritten, and if false an error will be thrown.
  7905. @param bufferSize the size of the buffer to be used.
  7906. @param replication required block replication for the file.]]>
  7907. </doc>
  7908. </method>
  7909. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7910. abstract="true" native="false" synchronized="false"
  7911. static="false" final="false" visibility="public"
  7912. deprecated="not deprecated">
  7913. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7914. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  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. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7920. <exception name="IOException" type="java.io.IOException"/>
  7921. <doc>
  7922. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7923. reporting.
  7924. @param f the file name to open
  7925. @param permission
  7926. @param overwrite if a file with this name already exists, then if true,
  7927. the file will be overwritten, and if false an error will be thrown.
  7928. @param bufferSize the size of the buffer to be used.
  7929. @param replication required block replication for the file.
  7930. @param blockSize
  7931. @param progress
  7932. @throws IOException
  7933. @see #setPermission(Path, FsPermission)]]>
  7934. </doc>
  7935. </method>
  7936. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7937. abstract="false" native="false" synchronized="false"
  7938. static="false" final="false" visibility="public"
  7939. deprecated="not deprecated">
  7940. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7941. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7942. <param name="flags" type="java.util.EnumSet"/>
  7943. <param name="bufferSize" type="int"/>
  7944. <param name="replication" type="short"/>
  7945. <param name="blockSize" type="long"/>
  7946. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7947. <exception name="IOException" type="java.io.IOException"/>
  7948. <doc>
  7949. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7950. reporting.
  7951. @param f the file name to open
  7952. @param permission
  7953. @param flags {@link CreateFlag}s to use for this stream.
  7954. @param bufferSize the size of the buffer to be used.
  7955. @param replication required block replication for the file.
  7956. @param blockSize
  7957. @param progress
  7958. @throws IOException
  7959. @see #setPermission(Path, FsPermission)]]>
  7960. </doc>
  7961. </method>
  7962. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7963. abstract="false" native="false" synchronized="false"
  7964. static="false" final="false" visibility="public"
  7965. deprecated="not deprecated">
  7966. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7967. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7968. <param name="flags" type="java.util.EnumSet"/>
  7969. <param name="bufferSize" type="int"/>
  7970. <param name="replication" type="short"/>
  7971. <param name="blockSize" type="long"/>
  7972. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7973. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  7974. <exception name="IOException" type="java.io.IOException"/>
  7975. <doc>
  7976. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  7977. checksum option
  7978. @param f the file name to open
  7979. @param permission
  7980. @param flags {@link CreateFlag}s to use for this stream.
  7981. @param bufferSize the size of the buffer to be used.
  7982. @param replication required block replication for the file.
  7983. @param blockSize
  7984. @param progress
  7985. @param checksumOpt checksum parameter. If null, the values
  7986. found in conf will be used.
  7987. @throws IOException
  7988. @see #setPermission(Path, FsPermission)]]>
  7989. </doc>
  7990. </method>
  7991. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  7992. abstract="false" native="false" synchronized="false"
  7993. static="false" final="false" visibility="protected"
  7994. deprecated="not deprecated">
  7995. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7996. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7997. <param name="flag" type="java.util.EnumSet"/>
  7998. <param name="bufferSize" type="int"/>
  7999. <param name="replication" type="short"/>
  8000. <param name="blockSize" type="long"/>
  8001. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8002. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8003. <exception name="IOException" type="java.io.IOException"/>
  8004. </method>
  8005. <method name="primitiveMkdir" return="boolean"
  8006. abstract="false" native="false" synchronized="false"
  8007. static="false" final="false" visibility="protected"
  8008. deprecated="not deprecated">
  8009. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8010. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8011. <exception name="IOException" type="java.io.IOException"/>
  8012. <doc>
  8013. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8014. It has been added to support the FileContext that processes the permission
  8015. with umask before calling this method.
  8016. This a temporary method added to support the transition from FileSystem
  8017. to FileContext for user applications.]]>
  8018. </doc>
  8019. </method>
  8020. <method name="primitiveMkdir"
  8021. abstract="false" native="false" synchronized="false"
  8022. static="false" final="false" visibility="protected"
  8023. deprecated="not deprecated">
  8024. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8025. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8026. <param name="createParent" type="boolean"/>
  8027. <exception name="IOException" type="java.io.IOException"/>
  8028. <doc>
  8029. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8030. It has been added to support the FileContext that processes the permission
  8031. with umask before calling this method.
  8032. This a temporary method added to support the transition from FileSystem
  8033. to FileContext for user applications.]]>
  8034. </doc>
  8035. </method>
  8036. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8037. abstract="false" native="false" synchronized="false"
  8038. static="false" final="false" visibility="public"
  8039. deprecated="not deprecated">
  8040. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8041. <param name="overwrite" type="boolean"/>
  8042. <param name="bufferSize" type="int"/>
  8043. <param name="replication" type="short"/>
  8044. <param name="blockSize" type="long"/>
  8045. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8046. <exception name="IOException" type="java.io.IOException"/>
  8047. <doc>
  8048. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8049. reporting. Same as create(), except fails if parent directory doesn't
  8050. already exist.
  8051. @param f the file name to open
  8052. @param overwrite if a file with this name already exists, then if true,
  8053. the file will be overwritten, and if false an error will be thrown.
  8054. @param bufferSize the size of the buffer to be used.
  8055. @param replication required block replication for the file.
  8056. @param blockSize
  8057. @param progress
  8058. @throws IOException
  8059. @see #setPermission(Path, FsPermission)]]>
  8060. </doc>
  8061. </method>
  8062. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8063. abstract="false" native="false" synchronized="false"
  8064. static="false" final="false" visibility="public"
  8065. deprecated="not deprecated">
  8066. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8067. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8068. <param name="overwrite" type="boolean"/>
  8069. <param name="bufferSize" type="int"/>
  8070. <param name="replication" type="short"/>
  8071. <param name="blockSize" type="long"/>
  8072. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8073. <exception name="IOException" type="java.io.IOException"/>
  8074. <doc>
  8075. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8076. reporting. Same as create(), except fails if parent directory doesn't
  8077. already exist.
  8078. @param f the file name to open
  8079. @param permission
  8080. @param overwrite if a file with this name already exists, then if true,
  8081. the file will be overwritten, and if false an error will be thrown.
  8082. @param bufferSize the size of the buffer to be used.
  8083. @param replication required block replication for the file.
  8084. @param blockSize
  8085. @param progress
  8086. @throws IOException
  8087. @see #setPermission(Path, FsPermission)]]>
  8088. </doc>
  8089. </method>
  8090. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8091. abstract="false" native="false" synchronized="false"
  8092. static="false" final="false" visibility="public"
  8093. deprecated="not deprecated">
  8094. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8095. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8096. <param name="flags" type="java.util.EnumSet"/>
  8097. <param name="bufferSize" type="int"/>
  8098. <param name="replication" type="short"/>
  8099. <param name="blockSize" type="long"/>
  8100. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8101. <exception name="IOException" type="java.io.IOException"/>
  8102. <doc>
  8103. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8104. reporting. Same as create(), except fails if parent directory doesn't
  8105. already exist.
  8106. @param f the file name to open
  8107. @param permission
  8108. @param flags {@link CreateFlag}s to use for this stream.
  8109. @param bufferSize the size of the buffer to be used.
  8110. @param replication required block replication for the file.
  8111. @param blockSize
  8112. @param progress
  8113. @throws IOException
  8114. @see #setPermission(Path, FsPermission)]]>
  8115. </doc>
  8116. </method>
  8117. <method name="createNewFile" return="boolean"
  8118. abstract="false" native="false" synchronized="false"
  8119. static="false" final="false" visibility="public"
  8120. deprecated="not deprecated">
  8121. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8122. <exception name="IOException" type="java.io.IOException"/>
  8123. <doc>
  8124. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  8125. create fails, or if it already existed, return false.
  8126. @param f path to use for create]]>
  8127. </doc>
  8128. </method>
  8129. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8130. abstract="false" native="false" synchronized="false"
  8131. static="false" final="false" visibility="public"
  8132. deprecated="not deprecated">
  8133. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8134. <exception name="IOException" type="java.io.IOException"/>
  8135. <doc>
  8136. <![CDATA[Append to an existing file (optional operation).
  8137. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  8138. @param f the existing file to be appended.
  8139. @throws IOException]]>
  8140. </doc>
  8141. </method>
  8142. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8143. abstract="false" native="false" synchronized="false"
  8144. static="false" final="false" visibility="public"
  8145. deprecated="not deprecated">
  8146. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8147. <param name="bufferSize" type="int"/>
  8148. <exception name="IOException" type="java.io.IOException"/>
  8149. <doc>
  8150. <![CDATA[Append to an existing file (optional operation).
  8151. Same as append(f, bufferSize, null).
  8152. @param f the existing file to be appended.
  8153. @param bufferSize the size of the buffer to be used.
  8154. @throws IOException]]>
  8155. </doc>
  8156. </method>
  8157. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8158. abstract="true" native="false" synchronized="false"
  8159. static="false" final="false" visibility="public"
  8160. deprecated="not deprecated">
  8161. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8162. <param name="bufferSize" type="int"/>
  8163. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8164. <exception name="IOException" type="java.io.IOException"/>
  8165. <doc>
  8166. <![CDATA[Append to an existing file (optional operation).
  8167. @param f the existing file to be appended.
  8168. @param bufferSize the size of the buffer to be used.
  8169. @param progress for reporting progress if it is not null.
  8170. @throws IOException]]>
  8171. </doc>
  8172. </method>
  8173. <method name="concat"
  8174. abstract="false" native="false" synchronized="false"
  8175. static="false" final="false" visibility="public"
  8176. deprecated="not deprecated">
  8177. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  8178. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  8179. <exception name="IOException" type="java.io.IOException"/>
  8180. <doc>
  8181. <![CDATA[Concat existing files together.
  8182. @param trg the path to the target destination.
  8183. @param psrcs the paths to the sources to use for the concatenation.
  8184. @throws IOException]]>
  8185. </doc>
  8186. </method>
  8187. <method name="getReplication" return="short"
  8188. abstract="false" native="false" synchronized="false"
  8189. static="false" final="false" visibility="public"
  8190. deprecated="Use getFileStatus() instead">
  8191. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8192. <exception name="IOException" type="java.io.IOException"/>
  8193. <doc>
  8194. <![CDATA[Get replication.
  8195. @deprecated Use getFileStatus() instead
  8196. @param src file name
  8197. @return file replication
  8198. @throws IOException]]>
  8199. </doc>
  8200. </method>
  8201. <method name="setReplication" return="boolean"
  8202. abstract="false" native="false" synchronized="false"
  8203. static="false" final="false" visibility="public"
  8204. deprecated="not deprecated">
  8205. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8206. <param name="replication" type="short"/>
  8207. <exception name="IOException" type="java.io.IOException"/>
  8208. <doc>
  8209. <![CDATA[Set replication for an existing file.
  8210. @param src file name
  8211. @param replication new replication
  8212. @throws IOException
  8213. @return true if successful;
  8214. false if file does not exist or is a directory]]>
  8215. </doc>
  8216. </method>
  8217. <method name="rename" return="boolean"
  8218. abstract="true" native="false" synchronized="false"
  8219. static="false" final="false" visibility="public"
  8220. deprecated="not deprecated">
  8221. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8222. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8223. <exception name="IOException" type="java.io.IOException"/>
  8224. <doc>
  8225. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  8226. or remote DFS.
  8227. @param src path to be renamed
  8228. @param dst new path after rename
  8229. @throws IOException on failure
  8230. @return true if rename is successful]]>
  8231. </doc>
  8232. </method>
  8233. <method name="rename"
  8234. abstract="false" native="false" synchronized="false"
  8235. static="false" final="false" visibility="protected"
  8236. deprecated="not deprecated">
  8237. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8238. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8239. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  8240. <exception name="IOException" type="java.io.IOException"/>
  8241. <doc>
  8242. <![CDATA[Renames Path src to Path dst
  8243. <ul>
  8244. <li>Fails if src is a file and dst is a directory.
  8245. <li>Fails if src is a directory and dst is a file.
  8246. <li>Fails if the parent of dst does not exist or is a file.
  8247. </ul>
  8248. <p>
  8249. If OVERWRITE option is not passed as an argument, rename fails
  8250. if the dst already exists.
  8251. <p>
  8252. If OVERWRITE option is passed as an argument, rename overwrites
  8253. the dst if it is a file or an empty directory. Rename fails if dst is
  8254. a non-empty directory.
  8255. <p>
  8256. Note that atomicity of rename is dependent on the file system
  8257. implementation. Please refer to the file system documentation for
  8258. details. This default implementation is non atomic.
  8259. <p>
  8260. This method is deprecated since it is a temporary method added to
  8261. support the transition from FileSystem to FileContext for user
  8262. applications.
  8263. @param src path to be renamed
  8264. @param dst new path after rename
  8265. @throws IOException on failure]]>
  8266. </doc>
  8267. </method>
  8268. <method name="truncate" return="boolean"
  8269. abstract="false" native="false" synchronized="false"
  8270. static="false" final="false" visibility="public"
  8271. deprecated="not deprecated">
  8272. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8273. <param name="newLength" type="long"/>
  8274. <exception name="IOException" type="java.io.IOException"/>
  8275. <doc>
  8276. <![CDATA[Truncate the file in the indicated path to the indicated size.
  8277. <ul>
  8278. <li>Fails if path is a directory.
  8279. <li>Fails if path does not exist.
  8280. <li>Fails if path is not closed.
  8281. <li>Fails if new size is greater than current size.
  8282. </ul>
  8283. @param f The path to the file to be truncated
  8284. @param newLength The size the file is to be truncated to
  8285. @return <code>true</code> if the file has been truncated to the desired
  8286. <code>newLength</code> and is immediately available to be reused for
  8287. write operations such as <code>append</code>, or
  8288. <code>false</code> if a background process of adjusting the length of
  8289. the last block has been started, and clients should wait for it to
  8290. complete before proceeding with further file updates.]]>
  8291. </doc>
  8292. </method>
  8293. <method name="delete" return="boolean"
  8294. abstract="false" native="false" synchronized="false"
  8295. static="false" final="false" visibility="public"
  8296. deprecated="Use {@link #delete(Path, boolean)} instead.">
  8297. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8298. <exception name="IOException" type="java.io.IOException"/>
  8299. <doc>
  8300. <![CDATA[Delete a file
  8301. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  8302. </doc>
  8303. </method>
  8304. <method name="delete" return="boolean"
  8305. abstract="true" native="false" synchronized="false"
  8306. static="false" final="false" visibility="public"
  8307. deprecated="not deprecated">
  8308. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8309. <param name="recursive" type="boolean"/>
  8310. <exception name="IOException" type="java.io.IOException"/>
  8311. <doc>
  8312. <![CDATA[Delete a file.
  8313. @param f the path to delete.
  8314. @param recursive if path is a directory and set to
  8315. true, the directory is deleted else throws an exception. In
  8316. case of a file the recursive can be set to either true or false.
  8317. @return true if delete is successful else false.
  8318. @throws IOException]]>
  8319. </doc>
  8320. </method>
  8321. <method name="deleteOnExit" return="boolean"
  8322. abstract="false" native="false" synchronized="false"
  8323. static="false" final="false" visibility="public"
  8324. deprecated="not deprecated">
  8325. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8326. <exception name="IOException" type="java.io.IOException"/>
  8327. <doc>
  8328. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  8329. When the JVM shuts down,
  8330. all FileSystem objects will be closed automatically.
  8331. Then,
  8332. the marked path will be deleted as a result of closing the FileSystem.
  8333. The path has to exist in the file system.
  8334. @param f the path to delete.
  8335. @return true if deleteOnExit is successful, otherwise false.
  8336. @throws IOException]]>
  8337. </doc>
  8338. </method>
  8339. <method name="cancelDeleteOnExit" return="boolean"
  8340. abstract="false" native="false" synchronized="false"
  8341. static="false" final="false" visibility="public"
  8342. deprecated="not deprecated">
  8343. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8344. <doc>
  8345. <![CDATA[Cancel the deletion of the path when the FileSystem is closed
  8346. @param f the path to cancel deletion]]>
  8347. </doc>
  8348. </method>
  8349. <method name="processDeleteOnExit"
  8350. abstract="false" native="false" synchronized="false"
  8351. static="false" final="false" visibility="protected"
  8352. deprecated="not deprecated">
  8353. <doc>
  8354. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  8355. deletes all files in the specified paths.]]>
  8356. </doc>
  8357. </method>
  8358. <method name="exists" return="boolean"
  8359. abstract="false" native="false" synchronized="false"
  8360. static="false" final="false" visibility="public"
  8361. deprecated="not deprecated">
  8362. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8363. <exception name="IOException" type="java.io.IOException"/>
  8364. <doc>
  8365. <![CDATA[Check if exists.
  8366. @param f source file]]>
  8367. </doc>
  8368. </method>
  8369. <method name="isDirectory" return="boolean"
  8370. abstract="false" native="false" synchronized="false"
  8371. static="false" final="false" visibility="public"
  8372. deprecated="not deprecated">
  8373. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8374. <exception name="IOException" type="java.io.IOException"/>
  8375. <doc>
  8376. <![CDATA[True iff the named path is a directory.
  8377. Note: Avoid using this method. Instead reuse the FileStatus
  8378. returned by getFileStatus() or listStatus() methods.
  8379. @param f path to check]]>
  8380. </doc>
  8381. </method>
  8382. <method name="isFile" return="boolean"
  8383. abstract="false" native="false" synchronized="false"
  8384. static="false" final="false" visibility="public"
  8385. deprecated="not deprecated">
  8386. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8387. <exception name="IOException" type="java.io.IOException"/>
  8388. <doc>
  8389. <![CDATA[True iff the named path is a regular file.
  8390. Note: Avoid using this method. Instead reuse the FileStatus
  8391. returned by getFileStatus() or listStatus() methods.
  8392. @param f path to check]]>
  8393. </doc>
  8394. </method>
  8395. <method name="getLength" return="long"
  8396. abstract="false" native="false" synchronized="false"
  8397. static="false" final="false" visibility="public"
  8398. deprecated="Use getFileStatus() instead">
  8399. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8400. <exception name="IOException" type="java.io.IOException"/>
  8401. <doc>
  8402. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8403. </doc>
  8404. </method>
  8405. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  8406. abstract="false" native="false" synchronized="false"
  8407. static="false" final="false" visibility="public"
  8408. deprecated="not deprecated">
  8409. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8410. <exception name="IOException" type="java.io.IOException"/>
  8411. <doc>
  8412. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  8413. @param f path to use]]>
  8414. </doc>
  8415. </method>
  8416. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  8417. abstract="false" native="false" synchronized="false"
  8418. static="false" final="false" visibility="public"
  8419. deprecated="not deprecated">
  8420. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8421. <exception name="IOException" type="java.io.IOException"/>
  8422. <doc>
  8423. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  8424. @param f path to use]]>
  8425. </doc>
  8426. </method>
  8427. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8428. abstract="true" native="false" synchronized="false"
  8429. static="false" final="false" visibility="public"
  8430. deprecated="not deprecated">
  8431. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8432. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8433. <exception name="IOException" type="java.io.IOException"/>
  8434. <doc>
  8435. <![CDATA[List the statuses of the files/directories in the given path if the path is
  8436. a directory.
  8437. <p>
  8438. Does not guarantee to return the List of files/directories status in a
  8439. sorted order.
  8440. @param f given path
  8441. @return the statuses of the files/directories in the given patch
  8442. @throws FileNotFoundException when the path does not exist;
  8443. IOException see specific implementation]]>
  8444. </doc>
  8445. </method>
  8446. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  8447. abstract="false" native="false" synchronized="false"
  8448. static="false" final="false" visibility="public"
  8449. deprecated="not deprecated">
  8450. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8451. <exception name="IOException" type="java.io.IOException"/>
  8452. <doc>
  8453. <![CDATA[@return an iterator over the corrupt files under the given path
  8454. (may contain duplicates if a file has more than one corrupt block)
  8455. @throws IOException]]>
  8456. </doc>
  8457. </method>
  8458. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8459. abstract="false" native="false" synchronized="false"
  8460. static="false" final="false" visibility="public"
  8461. deprecated="not deprecated">
  8462. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8463. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8464. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8465. <exception name="IOException" type="java.io.IOException"/>
  8466. <doc>
  8467. <![CDATA[Filter files/directories in the given path using the user-supplied path
  8468. filter.
  8469. <p>
  8470. Does not guarantee to return the List of files/directories status in a
  8471. sorted order.
  8472. @param f
  8473. a path name
  8474. @param filter
  8475. the user-supplied path filter
  8476. @return an array of FileStatus objects for the files under the given path
  8477. after applying the filter
  8478. @throws FileNotFoundException when the path does not exist;
  8479. IOException see specific implementation]]>
  8480. </doc>
  8481. </method>
  8482. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8483. abstract="false" native="false" synchronized="false"
  8484. static="false" final="false" visibility="public"
  8485. deprecated="not deprecated">
  8486. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8487. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8488. <exception name="IOException" type="java.io.IOException"/>
  8489. <doc>
  8490. <![CDATA[Filter files/directories in the given list of paths using default
  8491. path filter.
  8492. <p>
  8493. Does not guarantee to return the List of files/directories status in a
  8494. sorted order.
  8495. @param files
  8496. a list of paths
  8497. @return a list of statuses for the files under the given paths after
  8498. applying the filter default Path filter
  8499. @throws FileNotFoundException when the path does not exist;
  8500. IOException see specific implementation]]>
  8501. </doc>
  8502. </method>
  8503. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8504. abstract="false" native="false" synchronized="false"
  8505. static="false" final="false" visibility="public"
  8506. deprecated="not deprecated">
  8507. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8508. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8509. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8510. <exception name="IOException" type="java.io.IOException"/>
  8511. <doc>
  8512. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  8513. path filter.
  8514. <p>
  8515. Does not guarantee to return the List of files/directories status in a
  8516. sorted order.
  8517. @param files
  8518. a list of paths
  8519. @param filter
  8520. the user-supplied path filter
  8521. @return a list of statuses for the files under the given paths after
  8522. applying the filter
  8523. @throws FileNotFoundException when the path does not exist;
  8524. IOException see specific implementation]]>
  8525. </doc>
  8526. </method>
  8527. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8528. abstract="false" native="false" synchronized="false"
  8529. static="false" final="false" visibility="public"
  8530. deprecated="not deprecated">
  8531. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8532. <exception name="IOException" type="java.io.IOException"/>
  8533. <doc>
  8534. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  8535. files. Results are sorted by their names.
  8536. <p>
  8537. A filename pattern is composed of <i>regular</i> characters and
  8538. <i>special pattern matching</i> characters, which are:
  8539. <dl>
  8540. <dd>
  8541. <dl>
  8542. <p>
  8543. <dt> <tt> ? </tt>
  8544. <dd> Matches any single character.
  8545. <p>
  8546. <dt> <tt> * </tt>
  8547. <dd> Matches zero or more characters.
  8548. <p>
  8549. <dt> <tt> [<i>abc</i>] </tt>
  8550. <dd> Matches a single character from character set
  8551. <tt>{<i>a,b,c</i>}</tt>.
  8552. <p>
  8553. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  8554. <dd> Matches a single character from the character range
  8555. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  8556. lexicographically less than or equal to character <tt><i>b</i></tt>.
  8557. <p>
  8558. <dt> <tt> [^<i>a</i>] </tt>
  8559. <dd> Matches a single character that is not from character set or range
  8560. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  8561. immediately to the right of the opening bracket.
  8562. <p>
  8563. <dt> <tt> \<i>c</i> </tt>
  8564. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  8565. <p>
  8566. <dt> <tt> {ab,cd} </tt>
  8567. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  8568. <p>
  8569. <dt> <tt> {ab,c{de,fh}} </tt>
  8570. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  8571. </dl>
  8572. </dd>
  8573. </dl>
  8574. @param pathPattern a regular expression specifying a pth pattern
  8575. @return an array of paths that match the path pattern
  8576. @throws IOException]]>
  8577. </doc>
  8578. </method>
  8579. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8580. abstract="false" native="false" synchronized="false"
  8581. static="false" final="false" visibility="public"
  8582. deprecated="not deprecated">
  8583. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8584. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8585. <exception name="IOException" type="java.io.IOException"/>
  8586. <doc>
  8587. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  8588. and is accepted by the user-supplied path filter. Results are sorted by
  8589. their path names.
  8590. Return null if pathPattern has no glob and the path does not exist.
  8591. Return an empty array if pathPattern has a glob and no path matches it.
  8592. @param pathPattern
  8593. a regular expression specifying the path pattern
  8594. @param filter
  8595. a user-supplied path filter
  8596. @return an array of FileStatus objects
  8597. @throws IOException if any I/O error occurs when fetching file status]]>
  8598. </doc>
  8599. </method>
  8600. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  8601. abstract="false" native="false" synchronized="false"
  8602. static="false" final="false" visibility="public"
  8603. deprecated="not deprecated">
  8604. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8605. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8606. <exception name="IOException" type="java.io.IOException"/>
  8607. <doc>
  8608. <![CDATA[List the statuses of the files/directories in the given path if the path is
  8609. a directory.
  8610. Return the file's status and block locations If the path is a file.
  8611. If a returned status is a file, it contains the file's block locations.
  8612. @param f is the path
  8613. @return an iterator that traverses statuses of the files/directories
  8614. in the given path
  8615. @throws FileNotFoundException If <code>f</code> does not exist
  8616. @throws IOException If an I/O error occurred]]>
  8617. </doc>
  8618. </method>
  8619. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  8620. abstract="false" native="false" synchronized="false"
  8621. static="false" final="false" visibility="protected"
  8622. deprecated="not deprecated">
  8623. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8624. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8625. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8626. <exception name="IOException" type="java.io.IOException"/>
  8627. <doc>
  8628. <![CDATA[Listing a directory
  8629. The returned results include its block location if it is a file
  8630. The results are filtered by the given path filter
  8631. @param f a path
  8632. @param filter a path filter
  8633. @return an iterator that traverses statuses of the files/directories
  8634. in the given path
  8635. @throws FileNotFoundException if <code>f</code> does not exist
  8636. @throws IOException if any I/O error occurred]]>
  8637. </doc>
  8638. </method>
  8639. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  8640. abstract="false" native="false" synchronized="false"
  8641. static="false" final="false" visibility="public"
  8642. deprecated="not deprecated">
  8643. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8644. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8645. <exception name="IOException" type="java.io.IOException"/>
  8646. <doc>
  8647. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  8648. while consuming the entries. Each file system implementation should
  8649. override this method and provide a more efficient implementation, if
  8650. possible.
  8651. Does not guarantee to return the iterator that traverses statuses
  8652. of the files in a sorted order.
  8653. @param p target path
  8654. @return remote iterator]]>
  8655. </doc>
  8656. </method>
  8657. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  8658. abstract="false" native="false" synchronized="false"
  8659. static="false" final="false" visibility="public"
  8660. deprecated="not deprecated">
  8661. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8662. <param name="recursive" type="boolean"/>
  8663. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8664. <exception name="IOException" type="java.io.IOException"/>
  8665. <doc>
  8666. <![CDATA[List the statuses and block locations of the files in the given path.
  8667. Does not guarantee to return the iterator that traverses statuses
  8668. of the files in a sorted order.
  8669. If the path is a directory,
  8670. if recursive is false, returns files in the directory;
  8671. if recursive is true, return files in the subtree rooted at the path.
  8672. If the path is a file, return the file's status and block locations.
  8673. @param f is the path
  8674. @param recursive if the subdirectories need to be traversed recursively
  8675. @return an iterator that traverses statuses of the files
  8676. @throws FileNotFoundException when the path does not exist;
  8677. IOException see specific implementation]]>
  8678. </doc>
  8679. </method>
  8680. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  8681. abstract="false" native="false" synchronized="false"
  8682. static="false" final="false" visibility="public"
  8683. deprecated="not deprecated">
  8684. <doc>
  8685. <![CDATA[Return the current user's home directory in this filesystem.
  8686. The default implementation returns "/user/$USER/".]]>
  8687. </doc>
  8688. </method>
  8689. <method name="setWorkingDirectory"
  8690. abstract="true" native="false" synchronized="false"
  8691. static="false" final="false" visibility="public"
  8692. deprecated="not deprecated">
  8693. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  8694. <doc>
  8695. <![CDATA[Set the current working directory for the given file system. All relative
  8696. paths will be resolved relative to it.
  8697. @param new_dir]]>
  8698. </doc>
  8699. </method>
  8700. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8701. abstract="true" native="false" synchronized="false"
  8702. static="false" final="false" visibility="public"
  8703. deprecated="not deprecated">
  8704. <doc>
  8705. <![CDATA[Get the current working directory for the given file system
  8706. @return the directory pathname]]>
  8707. </doc>
  8708. </method>
  8709. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8710. abstract="false" native="false" synchronized="false"
  8711. static="false" final="false" visibility="protected"
  8712. deprecated="not deprecated">
  8713. <doc>
  8714. <![CDATA[Note: with the new FilesContext class, getWorkingDirectory()
  8715. will be removed.
  8716. The working directory is implemented in FilesContext.
  8717. Some file systems like LocalFileSystem have an initial workingDir
  8718. that we use as the starting workingDir. For other file systems
  8719. like HDFS there is no built in notion of an initial workingDir.
  8720. @return if there is built in notion of workingDir then it
  8721. is returned; else a null is returned.]]>
  8722. </doc>
  8723. </method>
  8724. <method name="mkdirs" return="boolean"
  8725. abstract="false" native="false" synchronized="false"
  8726. static="false" final="false" visibility="public"
  8727. deprecated="not deprecated">
  8728. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8729. <exception name="IOException" type="java.io.IOException"/>
  8730. <doc>
  8731. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  8732. </doc>
  8733. </method>
  8734. <method name="mkdirs" return="boolean"
  8735. abstract="true" native="false" synchronized="false"
  8736. static="false" final="false" visibility="public"
  8737. deprecated="not deprecated">
  8738. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8739. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8740. <exception name="IOException" type="java.io.IOException"/>
  8741. <doc>
  8742. <![CDATA[Make the given file and all non-existent parents into
  8743. directories. Has the semantics of Unix 'mkdir -p'.
  8744. Existence of the directory hierarchy is not an error.
  8745. @param f path to create
  8746. @param permission to apply to f]]>
  8747. </doc>
  8748. </method>
  8749. <method name="copyFromLocalFile"
  8750. abstract="false" native="false" synchronized="false"
  8751. static="false" final="false" visibility="public"
  8752. deprecated="not deprecated">
  8753. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8754. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8755. <exception name="IOException" type="java.io.IOException"/>
  8756. <doc>
  8757. <![CDATA[The src file is on the local disk. Add it to FS at
  8758. the given dst name and the source is kept intact afterwards
  8759. @param src path
  8760. @param dst path]]>
  8761. </doc>
  8762. </method>
  8763. <method name="moveFromLocalFile"
  8764. abstract="false" native="false" synchronized="false"
  8765. static="false" final="false" visibility="public"
  8766. deprecated="not deprecated">
  8767. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8768. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8769. <exception name="IOException" type="java.io.IOException"/>
  8770. <doc>
  8771. <![CDATA[The src files is on the local disk. Add it to FS at
  8772. the given dst name, removing the source afterwards.
  8773. @param srcs path
  8774. @param dst path]]>
  8775. </doc>
  8776. </method>
  8777. <method name="moveFromLocalFile"
  8778. abstract="false" native="false" synchronized="false"
  8779. static="false" final="false" visibility="public"
  8780. deprecated="not deprecated">
  8781. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8782. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8783. <exception name="IOException" type="java.io.IOException"/>
  8784. <doc>
  8785. <![CDATA[The src file is on the local disk. Add it to FS at
  8786. the given dst name, removing the source afterwards.
  8787. @param src path
  8788. @param dst path]]>
  8789. </doc>
  8790. </method>
  8791. <method name="copyFromLocalFile"
  8792. abstract="false" native="false" synchronized="false"
  8793. static="false" final="false" visibility="public"
  8794. deprecated="not deprecated">
  8795. <param name="delSrc" type="boolean"/>
  8796. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8797. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8798. <exception name="IOException" type="java.io.IOException"/>
  8799. <doc>
  8800. <![CDATA[The src file is on the local disk. Add it to FS at
  8801. the given dst name.
  8802. delSrc indicates if the source should be removed
  8803. @param delSrc whether to delete the src
  8804. @param src path
  8805. @param dst path]]>
  8806. </doc>
  8807. </method>
  8808. <method name="copyFromLocalFile"
  8809. abstract="false" native="false" synchronized="false"
  8810. static="false" final="false" visibility="public"
  8811. deprecated="not deprecated">
  8812. <param name="delSrc" type="boolean"/>
  8813. <param name="overwrite" type="boolean"/>
  8814. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8815. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8816. <exception name="IOException" type="java.io.IOException"/>
  8817. <doc>
  8818. <![CDATA[The src files are on the local disk. Add it to FS at
  8819. the given dst name.
  8820. delSrc indicates if the source should be removed
  8821. @param delSrc whether to delete the src
  8822. @param overwrite whether to overwrite an existing file
  8823. @param srcs array of paths which are source
  8824. @param dst path]]>
  8825. </doc>
  8826. </method>
  8827. <method name="copyFromLocalFile"
  8828. abstract="false" native="false" synchronized="false"
  8829. static="false" final="false" visibility="public"
  8830. deprecated="not deprecated">
  8831. <param name="delSrc" type="boolean"/>
  8832. <param name="overwrite" type="boolean"/>
  8833. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8834. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8835. <exception name="IOException" type="java.io.IOException"/>
  8836. <doc>
  8837. <![CDATA[The src file is on the local disk. Add it to FS at
  8838. the given dst name.
  8839. delSrc indicates if the source should be removed
  8840. @param delSrc whether to delete the src
  8841. @param overwrite whether to overwrite an existing file
  8842. @param src path
  8843. @param dst path]]>
  8844. </doc>
  8845. </method>
  8846. <method name="copyToLocalFile"
  8847. abstract="false" native="false" synchronized="false"
  8848. static="false" final="false" visibility="public"
  8849. deprecated="not deprecated">
  8850. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8851. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8852. <exception name="IOException" type="java.io.IOException"/>
  8853. <doc>
  8854. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8855. Copy it from FS control to the local dst name.
  8856. @param src path
  8857. @param dst path]]>
  8858. </doc>
  8859. </method>
  8860. <method name="moveToLocalFile"
  8861. abstract="false" native="false" synchronized="false"
  8862. static="false" final="false" visibility="public"
  8863. deprecated="not deprecated">
  8864. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8865. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8866. <exception name="IOException" type="java.io.IOException"/>
  8867. <doc>
  8868. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8869. Copy it from FS control to the local dst name.
  8870. Remove the source afterwards
  8871. @param src path
  8872. @param dst path]]>
  8873. </doc>
  8874. </method>
  8875. <method name="copyToLocalFile"
  8876. abstract="false" native="false" synchronized="false"
  8877. static="false" final="false" visibility="public"
  8878. deprecated="not deprecated">
  8879. <param name="delSrc" type="boolean"/>
  8880. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8881. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8882. <exception name="IOException" type="java.io.IOException"/>
  8883. <doc>
  8884. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8885. Copy it from FS control to the local dst name.
  8886. delSrc indicates if the src will be removed or not.
  8887. @param delSrc whether to delete the src
  8888. @param src path
  8889. @param dst path]]>
  8890. </doc>
  8891. </method>
  8892. <method name="copyToLocalFile"
  8893. abstract="false" native="false" synchronized="false"
  8894. static="false" final="false" visibility="public"
  8895. deprecated="not deprecated">
  8896. <param name="delSrc" type="boolean"/>
  8897. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8898. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8899. <param name="useRawLocalFileSystem" type="boolean"/>
  8900. <exception name="IOException" type="java.io.IOException"/>
  8901. <doc>
  8902. <![CDATA[The src file is under FS, and the dst is on the local disk. Copy it from FS
  8903. control to the local dst name. delSrc indicates if the src will be removed
  8904. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  8905. as local file system or not. RawLocalFileSystem is non crc file system.So,
  8906. It will not create any crc files at local.
  8907. @param delSrc
  8908. whether to delete the src
  8909. @param src
  8910. path
  8911. @param dst
  8912. path
  8913. @param useRawLocalFileSystem
  8914. whether to use RawLocalFileSystem as local file system or not.
  8915. @throws IOException
  8916. - if any IO error]]>
  8917. </doc>
  8918. </method>
  8919. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  8920. abstract="false" native="false" synchronized="false"
  8921. static="false" final="false" visibility="public"
  8922. deprecated="not deprecated">
  8923. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8924. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8925. <exception name="IOException" type="java.io.IOException"/>
  8926. <doc>
  8927. <![CDATA[Returns a local File that the user can write output to. The caller
  8928. provides both the eventual FS target name and the local working
  8929. file. If the FS is local, we write directly into the target. If
  8930. the FS is remote, we write into the tmp local area.
  8931. @param fsOutputFile path of output file
  8932. @param tmpLocalFile path of local tmp file]]>
  8933. </doc>
  8934. </method>
  8935. <method name="completeLocalOutput"
  8936. abstract="false" native="false" synchronized="false"
  8937. static="false" final="false" visibility="public"
  8938. deprecated="not deprecated">
  8939. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8940. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8941. <exception name="IOException" type="java.io.IOException"/>
  8942. <doc>
  8943. <![CDATA[Called when we're all done writing to the target. A local FS will
  8944. do nothing, because we've written to exactly the right place. A remote
  8945. FS will copy the contents of tmpLocalFile to the correct target at
  8946. fsOutputFile.
  8947. @param fsOutputFile path of output file
  8948. @param tmpLocalFile path to local tmp file]]>
  8949. </doc>
  8950. </method>
  8951. <method name="close"
  8952. abstract="false" native="false" synchronized="false"
  8953. static="false" final="false" visibility="public"
  8954. deprecated="not deprecated">
  8955. <exception name="IOException" type="java.io.IOException"/>
  8956. <doc>
  8957. <![CDATA[No more filesystem operations are needed. Will
  8958. release any held locks.]]>
  8959. </doc>
  8960. </method>
  8961. <method name="getUsed" return="long"
  8962. abstract="false" native="false" synchronized="false"
  8963. static="false" final="false" visibility="public"
  8964. deprecated="not deprecated">
  8965. <exception name="IOException" type="java.io.IOException"/>
  8966. <doc>
  8967. <![CDATA[Return the total size of all files in the filesystem.]]>
  8968. </doc>
  8969. </method>
  8970. <method name="getUsed" return="long"
  8971. abstract="false" native="false" synchronized="false"
  8972. static="false" final="false" visibility="public"
  8973. deprecated="not deprecated">
  8974. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8975. <exception name="IOException" type="java.io.IOException"/>
  8976. <doc>
  8977. <![CDATA[Return the total size of all files from a specified path.]]>
  8978. </doc>
  8979. </method>
  8980. <method name="getBlockSize" return="long"
  8981. abstract="false" native="false" synchronized="false"
  8982. static="false" final="false" visibility="public"
  8983. deprecated="Use getFileStatus() instead">
  8984. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8985. <exception name="IOException" type="java.io.IOException"/>
  8986. <doc>
  8987. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8988. </doc>
  8989. </method>
  8990. <method name="getDefaultBlockSize" return="long"
  8991. abstract="false" native="false" synchronized="false"
  8992. static="false" final="false" visibility="public"
  8993. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  8994. <doc>
  8995. <![CDATA[Return the number of bytes that large input files should be optimally
  8996. be split into to minimize i/o time.
  8997. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  8998. </doc>
  8999. </method>
  9000. <method name="getDefaultBlockSize" return="long"
  9001. abstract="false" native="false" synchronized="false"
  9002. static="false" final="false" visibility="public"
  9003. deprecated="not deprecated">
  9004. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9005. <doc>
  9006. <![CDATA[Return the number of bytes that large input files should be optimally
  9007. be split into to minimize i/o time. The given path will be used to
  9008. locate the actual filesystem. The full path does not have to exist.
  9009. @param f path of file
  9010. @return the default block size for the path's filesystem]]>
  9011. </doc>
  9012. </method>
  9013. <method name="getDefaultReplication" return="short"
  9014. abstract="false" native="false" synchronized="false"
  9015. static="false" final="false" visibility="public"
  9016. deprecated="use {@link #getDefaultReplication(Path)} instead">
  9017. <doc>
  9018. <![CDATA[Get the default replication.
  9019. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  9020. </doc>
  9021. </method>
  9022. <method name="getDefaultReplication" return="short"
  9023. abstract="false" native="false" synchronized="false"
  9024. static="false" final="false" visibility="public"
  9025. deprecated="not deprecated">
  9026. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9027. <doc>
  9028. <![CDATA[Get the default replication for a path. The given path will be used to
  9029. locate the actual filesystem. The full path does not have to exist.
  9030. @param path of the file
  9031. @return default replication for the path's filesystem]]>
  9032. </doc>
  9033. </method>
  9034. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9035. abstract="true" native="false" synchronized="false"
  9036. static="false" final="false" visibility="public"
  9037. deprecated="not deprecated">
  9038. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9039. <exception name="IOException" type="java.io.IOException"/>
  9040. <doc>
  9041. <![CDATA[Return a file status object that represents the path.
  9042. @param f The path we want information from
  9043. @return a FileStatus object
  9044. @throws FileNotFoundException when the path does not exist;
  9045. IOException see specific implementation]]>
  9046. </doc>
  9047. </method>
  9048. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  9049. abstract="false" native="false" synchronized="false"
  9050. static="false" final="false" visibility="protected"
  9051. deprecated="not deprecated">
  9052. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9053. <doc>
  9054. <![CDATA[See {@link FileContext#fixRelativePart}]]>
  9055. </doc>
  9056. </method>
  9057. <method name="createSymlink"
  9058. abstract="false" native="false" synchronized="false"
  9059. static="false" final="false" visibility="public"
  9060. deprecated="not deprecated">
  9061. <param name="target" type="org.apache.hadoop.fs.Path"/>
  9062. <param name="link" type="org.apache.hadoop.fs.Path"/>
  9063. <param name="createParent" type="boolean"/>
  9064. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9065. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  9066. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9067. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  9068. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9069. <exception name="IOException" type="java.io.IOException"/>
  9070. <doc>
  9071. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}]]>
  9072. </doc>
  9073. </method>
  9074. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  9075. abstract="false" native="false" synchronized="false"
  9076. static="false" final="false" visibility="public"
  9077. deprecated="not deprecated">
  9078. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9079. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9080. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9081. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9082. <exception name="IOException" type="java.io.IOException"/>
  9083. <doc>
  9084. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}]]>
  9085. </doc>
  9086. </method>
  9087. <method name="supportsSymlinks" return="boolean"
  9088. abstract="false" native="false" synchronized="false"
  9089. static="false" final="false" visibility="public"
  9090. deprecated="not deprecated">
  9091. <doc>
  9092. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}]]>
  9093. </doc>
  9094. </method>
  9095. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  9096. abstract="false" native="false" synchronized="false"
  9097. static="false" final="false" visibility="public"
  9098. deprecated="not deprecated">
  9099. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9100. <exception name="IOException" type="java.io.IOException"/>
  9101. <doc>
  9102. <![CDATA[See {@link FileContext#getLinkTarget(Path)}]]>
  9103. </doc>
  9104. </method>
  9105. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  9106. abstract="false" native="false" synchronized="false"
  9107. static="false" final="false" visibility="protected"
  9108. deprecated="not deprecated">
  9109. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9110. <exception name="IOException" type="java.io.IOException"/>
  9111. <doc>
  9112. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}]]>
  9113. </doc>
  9114. </method>
  9115. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  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="IOException" type="java.io.IOException"/>
  9121. <doc>
  9122. <![CDATA[Get the checksum of a file.
  9123. @param f The file path
  9124. @return The file checksum. The default return value is null,
  9125. which indicates that no checksum algorithm is implemented
  9126. in the corresponding FileSystem.]]>
  9127. </doc>
  9128. </method>
  9129. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9130. abstract="false" native="false" synchronized="false"
  9131. static="false" final="false" visibility="public"
  9132. deprecated="not deprecated">
  9133. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9134. <param name="length" type="long"/>
  9135. <exception name="IOException" type="java.io.IOException"/>
  9136. <doc>
  9137. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  9138. specific length.
  9139. @param f The file path
  9140. @param length The length of the file range for checksum calculation
  9141. @return The file checksum.]]>
  9142. </doc>
  9143. </method>
  9144. <method name="setVerifyChecksum"
  9145. abstract="false" native="false" synchronized="false"
  9146. static="false" final="false" visibility="public"
  9147. deprecated="not deprecated">
  9148. <param name="verifyChecksum" type="boolean"/>
  9149. <doc>
  9150. <![CDATA[Set the verify checksum flag. This is only applicable if the
  9151. corresponding FileSystem supports checksum. By default doesn't do anything.
  9152. @param verifyChecksum]]>
  9153. </doc>
  9154. </method>
  9155. <method name="setWriteChecksum"
  9156. abstract="false" native="false" synchronized="false"
  9157. static="false" final="false" visibility="public"
  9158. deprecated="not deprecated">
  9159. <param name="writeChecksum" type="boolean"/>
  9160. <doc>
  9161. <![CDATA[Set the write checksum flag. This is only applicable if the
  9162. corresponding FileSystem supports checksum. By default doesn't do anything.
  9163. @param writeChecksum]]>
  9164. </doc>
  9165. </method>
  9166. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9167. abstract="false" native="false" synchronized="false"
  9168. static="false" final="false" visibility="public"
  9169. deprecated="not deprecated">
  9170. <exception name="IOException" type="java.io.IOException"/>
  9171. <doc>
  9172. <![CDATA[Returns a status object describing the use and capacity of the
  9173. file system. If the file system has multiple partitions, the
  9174. use and capacity of the root partition is reflected.
  9175. @return a FsStatus object
  9176. @throws IOException
  9177. see specific implementation]]>
  9178. </doc>
  9179. </method>
  9180. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9181. abstract="false" native="false" synchronized="false"
  9182. static="false" final="false" visibility="public"
  9183. deprecated="not deprecated">
  9184. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9185. <exception name="IOException" type="java.io.IOException"/>
  9186. <doc>
  9187. <![CDATA[Returns a status object describing the use and capacity of the
  9188. file system. If the file system has multiple partitions, the
  9189. use and capacity of the partition pointed to by the specified
  9190. path is reflected.
  9191. @param p Path for which status should be obtained. null means
  9192. the default partition.
  9193. @return a FsStatus object
  9194. @throws IOException
  9195. see specific implementation]]>
  9196. </doc>
  9197. </method>
  9198. <method name="setPermission"
  9199. abstract="false" native="false" synchronized="false"
  9200. static="false" final="false" visibility="public"
  9201. deprecated="not deprecated">
  9202. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9203. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9204. <exception name="IOException" type="java.io.IOException"/>
  9205. <doc>
  9206. <![CDATA[Set permission of a path.
  9207. @param p
  9208. @param permission]]>
  9209. </doc>
  9210. </method>
  9211. <method name="setOwner"
  9212. abstract="false" native="false" synchronized="false"
  9213. static="false" final="false" visibility="public"
  9214. deprecated="not deprecated">
  9215. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9216. <param name="username" type="java.lang.String"/>
  9217. <param name="groupname" type="java.lang.String"/>
  9218. <exception name="IOException" type="java.io.IOException"/>
  9219. <doc>
  9220. <![CDATA[Set owner of a path (i.e. a file or a directory).
  9221. The parameters username and groupname cannot both be null.
  9222. @param p The path
  9223. @param username If it is null, the original username remains unchanged.
  9224. @param groupname If it is null, the original groupname remains unchanged.]]>
  9225. </doc>
  9226. </method>
  9227. <method name="setTimes"
  9228. abstract="false" native="false" synchronized="false"
  9229. static="false" final="false" visibility="public"
  9230. deprecated="not deprecated">
  9231. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9232. <param name="mtime" type="long"/>
  9233. <param name="atime" type="long"/>
  9234. <exception name="IOException" type="java.io.IOException"/>
  9235. <doc>
  9236. <![CDATA[Set access time of a file
  9237. @param p The path
  9238. @param mtime Set the modification time of this file.
  9239. The number of milliseconds since Jan 1, 1970.
  9240. A value of -1 means that this call should not set modification time.
  9241. @param atime Set the access time of this file.
  9242. The number of milliseconds since Jan 1, 1970.
  9243. A value of -1 means that this call should not set access time.]]>
  9244. </doc>
  9245. </method>
  9246. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  9247. abstract="false" native="false" synchronized="false"
  9248. static="false" final="true" visibility="public"
  9249. deprecated="not deprecated">
  9250. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9251. <exception name="IOException" type="java.io.IOException"/>
  9252. <doc>
  9253. <![CDATA[Create a snapshot with a default name.
  9254. @param path The directory where snapshots will be taken.
  9255. @return the snapshot path.]]>
  9256. </doc>
  9257. </method>
  9258. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  9259. abstract="false" native="false" synchronized="false"
  9260. static="false" final="false" visibility="public"
  9261. deprecated="not deprecated">
  9262. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9263. <param name="snapshotName" type="java.lang.String"/>
  9264. <exception name="IOException" type="java.io.IOException"/>
  9265. <doc>
  9266. <![CDATA[Create a snapshot
  9267. @param path The directory where snapshots will be taken.
  9268. @param snapshotName The name of the snapshot
  9269. @return the snapshot path.]]>
  9270. </doc>
  9271. </method>
  9272. <method name="renameSnapshot"
  9273. abstract="false" native="false" synchronized="false"
  9274. static="false" final="false" visibility="public"
  9275. deprecated="not deprecated">
  9276. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9277. <param name="snapshotOldName" type="java.lang.String"/>
  9278. <param name="snapshotNewName" type="java.lang.String"/>
  9279. <exception name="IOException" type="java.io.IOException"/>
  9280. <doc>
  9281. <![CDATA[Rename a snapshot
  9282. @param path The directory path where the snapshot was taken
  9283. @param snapshotOldName Old name of the snapshot
  9284. @param snapshotNewName New name of the snapshot
  9285. @throws IOException]]>
  9286. </doc>
  9287. </method>
  9288. <method name="deleteSnapshot"
  9289. abstract="false" native="false" synchronized="false"
  9290. static="false" final="false" visibility="public"
  9291. deprecated="not deprecated">
  9292. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9293. <param name="snapshotName" type="java.lang.String"/>
  9294. <exception name="IOException" type="java.io.IOException"/>
  9295. <doc>
  9296. <![CDATA[Delete a snapshot of a directory
  9297. @param path The directory that the to-be-deleted snapshot belongs to
  9298. @param snapshotName The name of the snapshot]]>
  9299. </doc>
  9300. </method>
  9301. <method name="modifyAclEntries"
  9302. abstract="false" native="false" synchronized="false"
  9303. static="false" final="false" visibility="public"
  9304. deprecated="not deprecated">
  9305. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9306. <param name="aclSpec" type="java.util.List"/>
  9307. <exception name="IOException" type="java.io.IOException"/>
  9308. <doc>
  9309. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  9310. entries or modify the permissions on existing ACL entries. All existing
  9311. ACL entries that are not specified in this call are retained without
  9312. changes. (Modifications are merged into the current ACL.)
  9313. @param path Path to modify
  9314. @param aclSpec List<AclEntry> describing modifications
  9315. @throws IOException if an ACL could not be modified]]>
  9316. </doc>
  9317. </method>
  9318. <method name="removeAclEntries"
  9319. abstract="false" native="false" synchronized="false"
  9320. static="false" final="false" visibility="public"
  9321. deprecated="not deprecated">
  9322. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9323. <param name="aclSpec" type="java.util.List"/>
  9324. <exception name="IOException" type="java.io.IOException"/>
  9325. <doc>
  9326. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  9327. retained.
  9328. @param path Path to modify
  9329. @param aclSpec List<AclEntry> describing entries to remove
  9330. @throws IOException if an ACL could not be modified]]>
  9331. </doc>
  9332. </method>
  9333. <method name="removeDefaultAcl"
  9334. abstract="false" native="false" synchronized="false"
  9335. static="false" final="false" visibility="public"
  9336. deprecated="not deprecated">
  9337. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9338. <exception name="IOException" type="java.io.IOException"/>
  9339. <doc>
  9340. <![CDATA[Removes all default ACL entries from files and directories.
  9341. @param path Path to modify
  9342. @throws IOException if an ACL could not be modified]]>
  9343. </doc>
  9344. </method>
  9345. <method name="removeAcl"
  9346. abstract="false" native="false" synchronized="false"
  9347. static="false" final="false" visibility="public"
  9348. deprecated="not deprecated">
  9349. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9350. <exception name="IOException" type="java.io.IOException"/>
  9351. <doc>
  9352. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  9353. for user, group, and others are retained for compatibility with permission
  9354. bits.
  9355. @param path Path to modify
  9356. @throws IOException if an ACL could not be removed]]>
  9357. </doc>
  9358. </method>
  9359. <method name="setAcl"
  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[Fully replaces ACL of files and directories, discarding all existing
  9368. entries.
  9369. @param path Path to modify
  9370. @param aclSpec List<AclEntry> describing modifications, must include entries
  9371. for user, group, and others for compatibility with permission bits.
  9372. @throws IOException if an ACL could not be modified]]>
  9373. </doc>
  9374. </method>
  9375. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  9376. abstract="false" native="false" synchronized="false"
  9377. static="false" final="false" visibility="public"
  9378. deprecated="not deprecated">
  9379. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9380. <exception name="IOException" type="java.io.IOException"/>
  9381. <doc>
  9382. <![CDATA[Gets the ACL of a file or directory.
  9383. @param path Path to get
  9384. @return AclStatus describing the ACL of the file or directory
  9385. @throws IOException if an ACL could not be read]]>
  9386. </doc>
  9387. </method>
  9388. <method name="setXAttr"
  9389. abstract="false" native="false" synchronized="false"
  9390. static="false" final="false" visibility="public"
  9391. deprecated="not deprecated">
  9392. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9393. <param name="name" type="java.lang.String"/>
  9394. <param name="value" type="byte[]"/>
  9395. <exception name="IOException" type="java.io.IOException"/>
  9396. <doc>
  9397. <![CDATA[Set an xattr of a file or directory.
  9398. The name must be prefixed with the namespace followed by ".". For example,
  9399. "user.attr".
  9400. <p/>
  9401. Refer to the HDFS extended attributes user documentation for details.
  9402. @param path Path to modify
  9403. @param name xattr name.
  9404. @param value xattr value.
  9405. @throws IOException]]>
  9406. </doc>
  9407. </method>
  9408. <method name="setXAttr"
  9409. abstract="false" native="false" synchronized="false"
  9410. static="false" final="false" visibility="public"
  9411. deprecated="not deprecated">
  9412. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9413. <param name="name" type="java.lang.String"/>
  9414. <param name="value" type="byte[]"/>
  9415. <param name="flag" type="java.util.EnumSet"/>
  9416. <exception name="IOException" type="java.io.IOException"/>
  9417. <doc>
  9418. <![CDATA[Set an xattr of a file or directory.
  9419. The name must be prefixed with the namespace followed by ".". For example,
  9420. "user.attr".
  9421. <p/>
  9422. Refer to the HDFS extended attributes user documentation for details.
  9423. @param path Path to modify
  9424. @param name xattr name.
  9425. @param value xattr value.
  9426. @param flag xattr set flag
  9427. @throws IOException]]>
  9428. </doc>
  9429. </method>
  9430. <method name="getXAttr" return="byte[]"
  9431. abstract="false" native="false" synchronized="false"
  9432. static="false" final="false" visibility="public"
  9433. deprecated="not deprecated">
  9434. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9435. <param name="name" type="java.lang.String"/>
  9436. <exception name="IOException" type="java.io.IOException"/>
  9437. <doc>
  9438. <![CDATA[Get an xattr name and value for 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 get extended attribute
  9444. @param name xattr name.
  9445. @return byte[] xattr value.
  9446. @throws IOException]]>
  9447. </doc>
  9448. </method>
  9449. <method name="getXAttrs" return="java.util.Map"
  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. <exception name="IOException" type="java.io.IOException"/>
  9455. <doc>
  9456. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  9457. Only those xattrs which the logged-in user has permissions to view
  9458. are returned.
  9459. <p/>
  9460. Refer to the HDFS extended attributes user documentation for details.
  9461. @param path Path to get extended attributes
  9462. @return Map<String, byte[]> describing the XAttrs of the file or directory
  9463. @throws IOException]]>
  9464. </doc>
  9465. </method>
  9466. <method name="getXAttrs" return="java.util.Map"
  9467. abstract="false" native="false" synchronized="false"
  9468. static="false" final="false" visibility="public"
  9469. deprecated="not deprecated">
  9470. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9471. <param name="names" type="java.util.List"/>
  9472. <exception name="IOException" type="java.io.IOException"/>
  9473. <doc>
  9474. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  9475. Only those xattrs which the logged-in user has permissions to view
  9476. are returned.
  9477. <p/>
  9478. Refer to the HDFS extended attributes user documentation for details.
  9479. @param path Path to get extended attributes
  9480. @param names XAttr names.
  9481. @return Map<String, byte[]> describing the XAttrs of the file or directory
  9482. @throws IOException]]>
  9483. </doc>
  9484. </method>
  9485. <method name="listXAttrs" return="java.util.List"
  9486. abstract="false" native="false" synchronized="false"
  9487. static="false" final="false" visibility="public"
  9488. deprecated="not deprecated">
  9489. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9490. <exception name="IOException" type="java.io.IOException"/>
  9491. <doc>
  9492. <![CDATA[Get all of the xattr names for a file or directory.
  9493. Only those xattr names which the logged-in user has permissions to view
  9494. are returned.
  9495. <p/>
  9496. Refer to the HDFS extended attributes user documentation for details.
  9497. @param path Path to get extended attributes
  9498. @return List<String> of the XAttr names of the file or directory
  9499. @throws IOException]]>
  9500. </doc>
  9501. </method>
  9502. <method name="removeXAttr"
  9503. abstract="false" native="false" synchronized="false"
  9504. static="false" final="false" visibility="public"
  9505. deprecated="not deprecated">
  9506. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9507. <param name="name" type="java.lang.String"/>
  9508. <exception name="IOException" type="java.io.IOException"/>
  9509. <doc>
  9510. <![CDATA[Remove an xattr of a file or directory.
  9511. The name must be prefixed with the namespace followed by ".". For example,
  9512. "user.attr".
  9513. <p/>
  9514. Refer to the HDFS extended attributes user documentation for details.
  9515. @param path Path to remove extended attribute
  9516. @param name xattr name
  9517. @throws IOException]]>
  9518. </doc>
  9519. </method>
  9520. <method name="setStoragePolicy"
  9521. abstract="false" native="false" synchronized="false"
  9522. static="false" final="false" visibility="public"
  9523. deprecated="not deprecated">
  9524. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9525. <param name="policyName" type="java.lang.String"/>
  9526. <exception name="IOException" type="java.io.IOException"/>
  9527. <doc>
  9528. <![CDATA[Set the storage policy for a given file or directory.
  9529. @param src file or directory path.
  9530. @param policyName the name of the target storage policy. The list
  9531. of supported Storage policies can be retrieved
  9532. via {@link #getAllStoragePolicies}.
  9533. @throws IOException]]>
  9534. </doc>
  9535. </method>
  9536. <method name="unsetStoragePolicy"
  9537. abstract="false" native="false" synchronized="false"
  9538. static="false" final="false" visibility="public"
  9539. deprecated="not deprecated">
  9540. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9541. <exception name="IOException" type="java.io.IOException"/>
  9542. <doc>
  9543. <![CDATA[Unset the storage policy set for a given file or directory.
  9544. @param src file or directory path.
  9545. @throws IOException]]>
  9546. </doc>
  9547. </method>
  9548. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  9549. abstract="false" native="false" synchronized="false"
  9550. static="false" final="false" visibility="public"
  9551. deprecated="not deprecated">
  9552. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9553. <exception name="IOException" type="java.io.IOException"/>
  9554. <doc>
  9555. <![CDATA[Query the effective storage policy ID for the given file or directory.
  9556. @param src file or directory path.
  9557. @return storage policy for give file.
  9558. @throws IOException]]>
  9559. </doc>
  9560. </method>
  9561. <method name="getAllStoragePolicies" return="java.util.Collection"
  9562. abstract="false" native="false" synchronized="false"
  9563. static="false" final="false" visibility="public"
  9564. deprecated="not deprecated">
  9565. <exception name="IOException" type="java.io.IOException"/>
  9566. <doc>
  9567. <![CDATA[Retrieve all the storage policies supported by this file system.
  9568. @return all storage policies supported by this filesystem.
  9569. @throws IOException]]>
  9570. </doc>
  9571. </method>
  9572. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  9573. abstract="false" native="false" synchronized="false"
  9574. static="false" final="false" visibility="public"
  9575. deprecated="not deprecated">
  9576. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9577. <doc>
  9578. <![CDATA[Get the root directory of Trash for current user when the path specified
  9579. is deleted.
  9580. @param path the trash root of the path to be determined.
  9581. @return the default implementation returns "/user/$USER/.Trash".]]>
  9582. </doc>
  9583. </method>
  9584. <method name="getTrashRoots" return="java.util.Collection"
  9585. abstract="false" native="false" synchronized="false"
  9586. static="false" final="false" visibility="public"
  9587. deprecated="not deprecated">
  9588. <param name="allUsers" type="boolean"/>
  9589. <doc>
  9590. <![CDATA[Get all the trash roots for current user or all users.
  9591. @param allUsers return trash roots for all users if true.
  9592. @return all the trash root directories.
  9593. Default FileSystem returns .Trash under users' home directories if
  9594. /user/$USER/.Trash exists.]]>
  9595. </doc>
  9596. </method>
  9597. <method name="getFileSystemClass" return="java.lang.Class"
  9598. abstract="false" native="false" synchronized="false"
  9599. static="true" final="false" visibility="public"
  9600. deprecated="not deprecated">
  9601. <param name="scheme" type="java.lang.String"/>
  9602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9603. <exception name="IOException" type="java.io.IOException"/>
  9604. </method>
  9605. <method name="getStatistics" return="java.util.Map"
  9606. abstract="false" native="false" synchronized="true"
  9607. static="true" final="false" visibility="public"
  9608. deprecated="use {@link #getGlobalStorageStatistics()}">
  9609. <doc>
  9610. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  9611. @return a Map having a key as URI scheme and value as Statistics object
  9612. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  9613. </doc>
  9614. </method>
  9615. <method name="getAllStatistics" return="java.util.List"
  9616. abstract="false" native="false" synchronized="true"
  9617. static="true" final="false" visibility="public"
  9618. deprecated="use {@link #getGlobalStorageStatistics()}">
  9619. <doc>
  9620. <![CDATA[Return the FileSystem classes that have Statistics.
  9621. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  9622. </doc>
  9623. </method>
  9624. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  9625. abstract="false" native="false" synchronized="true"
  9626. static="true" final="false" visibility="public"
  9627. deprecated="use {@link #getGlobalStorageStatistics()}">
  9628. <param name="scheme" type="java.lang.String"/>
  9629. <param name="cls" type="java.lang.Class"/>
  9630. <doc>
  9631. <![CDATA[Get the statistics for a particular file system
  9632. @param cls the class to lookup
  9633. @return a statistics object
  9634. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  9635. </doc>
  9636. </method>
  9637. <method name="clearStatistics"
  9638. abstract="false" native="false" synchronized="true"
  9639. static="true" final="false" visibility="public"
  9640. deprecated="not deprecated">
  9641. <doc>
  9642. <![CDATA[Reset all statistics for all file systems]]>
  9643. </doc>
  9644. </method>
  9645. <method name="printStatistics"
  9646. abstract="false" native="false" synchronized="true"
  9647. static="true" final="false" visibility="public"
  9648. deprecated="not deprecated">
  9649. <exception name="IOException" type="java.io.IOException"/>
  9650. <doc>
  9651. <![CDATA[Print all statistics for all file systems]]>
  9652. </doc>
  9653. </method>
  9654. <method name="areSymlinksEnabled" return="boolean"
  9655. abstract="false" native="false" synchronized="false"
  9656. static="true" final="false" visibility="public"
  9657. deprecated="not deprecated">
  9658. </method>
  9659. <method name="enableSymlinks"
  9660. abstract="false" native="false" synchronized="false"
  9661. static="true" final="false" visibility="public"
  9662. deprecated="not deprecated">
  9663. </method>
  9664. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  9665. abstract="false" native="false" synchronized="false"
  9666. static="false" final="false" visibility="public"
  9667. deprecated="not deprecated">
  9668. <doc>
  9669. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  9670. per-instance. They are not shared with any other FileSystem object.
  9671. <p>This is a default method which is intended to be overridden by
  9672. subclasses. The default implementation returns an empty storage statistics
  9673. object.</p>
  9674. @return The StorageStatistics for this FileSystem instance.
  9675. Will never be null.]]>
  9676. </doc>
  9677. </method>
  9678. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  9679. abstract="false" native="false" synchronized="false"
  9680. static="true" final="false" visibility="public"
  9681. deprecated="not deprecated">
  9682. <doc>
  9683. <![CDATA[Get the global storage statistics.]]>
  9684. </doc>
  9685. </method>
  9686. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  9687. transient="false" volatile="false"
  9688. static="true" final="true" visibility="public"
  9689. deprecated="not deprecated">
  9690. </field>
  9691. <field name="DEFAULT_FS" type="java.lang.String"
  9692. transient="false" volatile="false"
  9693. static="true" final="true" visibility="public"
  9694. deprecated="not deprecated">
  9695. </field>
  9696. <field name="LOG" type="org.apache.commons.logging.Log"
  9697. transient="false" volatile="false"
  9698. static="true" final="true" visibility="public"
  9699. deprecated="not deprecated">
  9700. </field>
  9701. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  9702. transient="false" volatile="false"
  9703. static="true" final="true" visibility="public"
  9704. deprecated="not deprecated">
  9705. <doc>
  9706. <![CDATA[Priority of the FileSystem shutdown hook.]]>
  9707. </doc>
  9708. </field>
  9709. <field name="TRASH_PREFIX" type="java.lang.String"
  9710. transient="false" volatile="false"
  9711. static="true" final="true" visibility="public"
  9712. deprecated="not deprecated">
  9713. </field>
  9714. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  9715. transient="false" volatile="false"
  9716. static="false" final="false" visibility="protected"
  9717. deprecated="not deprecated">
  9718. <doc>
  9719. <![CDATA[The statistics for this file system.]]>
  9720. </doc>
  9721. </field>
  9722. <doc>
  9723. <![CDATA[An abstract base class for a fairly generic filesystem. It
  9724. may be implemented as a distributed filesystem, or as a "local"
  9725. one that reflects the locally-connected disk. The local version
  9726. exists for small Hadoop instances and for testing.
  9727. <p>
  9728. All user code that may potentially use the Hadoop Distributed
  9729. File System should be written to use a FileSystem object. The
  9730. Hadoop DFS is a multi-machine system that appears as a single
  9731. disk. It's useful because of its fault tolerance and potentially
  9732. very large capacity.
  9733. <p>
  9734. The local implementation is {@link LocalFileSystem} and distributed
  9735. implementation is DistributedFileSystem.]]>
  9736. </doc>
  9737. </class>
  9738. <!-- end class org.apache.hadoop.fs.FileSystem -->
  9739. <!-- start class org.apache.hadoop.fs.FileUtil -->
  9740. <class name="FileUtil" extends="java.lang.Object"
  9741. abstract="false"
  9742. static="false" final="false" visibility="public"
  9743. deprecated="not deprecated">
  9744. <constructor name="FileUtil"
  9745. static="false" final="false" visibility="public"
  9746. deprecated="not deprecated">
  9747. </constructor>
  9748. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  9749. abstract="false" native="false" synchronized="false"
  9750. static="true" final="false" visibility="public"
  9751. deprecated="not deprecated">
  9752. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  9753. <doc>
  9754. <![CDATA[convert an array of FileStatus to an array of Path
  9755. @param stats
  9756. an array of FileStatus objects
  9757. @return an array of paths corresponding to the input]]>
  9758. </doc>
  9759. </method>
  9760. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  9761. abstract="false" native="false" synchronized="false"
  9762. static="true" final="false" visibility="public"
  9763. deprecated="not deprecated">
  9764. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  9765. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9766. <doc>
  9767. <![CDATA[convert an array of FileStatus to an array of Path.
  9768. If stats if null, return path
  9769. @param stats
  9770. an array of FileStatus objects
  9771. @param path
  9772. default path to return in stats is null
  9773. @return an array of paths corresponding to the input]]>
  9774. </doc>
  9775. </method>
  9776. <method name="fullyDelete" return="boolean"
  9777. abstract="false" native="false" synchronized="false"
  9778. static="true" final="false" visibility="public"
  9779. deprecated="not deprecated">
  9780. <param name="dir" type="java.io.File"/>
  9781. <doc>
  9782. <![CDATA[Delete a directory and all its contents. If
  9783. we return false, the directory may be partially-deleted.
  9784. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  9785. to by the symlink is not deleted.
  9786. (2) If dir is symlink to a directory, symlink is deleted. The directory
  9787. pointed to by symlink is not deleted.
  9788. (3) If dir is a normal file, it is deleted.
  9789. (4) If dir is a normal directory, then dir and all its contents recursively
  9790. are deleted.]]>
  9791. </doc>
  9792. </method>
  9793. <method name="fullyDelete" return="boolean"
  9794. abstract="false" native="false" synchronized="false"
  9795. static="true" final="false" visibility="public"
  9796. deprecated="not deprecated">
  9797. <param name="dir" type="java.io.File"/>
  9798. <param name="tryGrantPermissions" type="boolean"/>
  9799. <doc>
  9800. <![CDATA[Delete a directory and all its contents. If
  9801. we return false, the directory may be partially-deleted.
  9802. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  9803. to by the symlink is not deleted.
  9804. (2) If dir is symlink to a directory, symlink is deleted. The directory
  9805. pointed to by symlink is not deleted.
  9806. (3) If dir is a normal file, it is deleted.
  9807. (4) If dir is a normal directory, then dir and all its contents recursively
  9808. are deleted.
  9809. @param dir the file or directory to be deleted
  9810. @param tryGrantPermissions true if permissions should be modified to delete a file.
  9811. @return true on success false on failure.]]>
  9812. </doc>
  9813. </method>
  9814. <method name="readLink" return="java.lang.String"
  9815. abstract="false" native="false" synchronized="false"
  9816. static="true" final="false" visibility="public"
  9817. deprecated="not deprecated">
  9818. <param name="f" type="java.io.File"/>
  9819. <doc>
  9820. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  9821. the given path does not refer to a symlink or there is an error
  9822. accessing the symlink.
  9823. @param f File representing the symbolic link.
  9824. @return The target of the symbolic link, empty string on error or if not
  9825. a symlink.]]>
  9826. </doc>
  9827. </method>
  9828. <method name="fullyDeleteContents" return="boolean"
  9829. abstract="false" native="false" synchronized="false"
  9830. static="true" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. <param name="dir" type="java.io.File"/>
  9833. <doc>
  9834. <![CDATA[Delete the contents of a directory, not the directory itself. If
  9835. we return false, the directory may be partially-deleted.
  9836. If dir is a symlink to a directory, all the contents of the actual
  9837. directory pointed to by dir will be deleted.]]>
  9838. </doc>
  9839. </method>
  9840. <method name="fullyDeleteContents" return="boolean"
  9841. abstract="false" native="false" synchronized="false"
  9842. static="true" final="false" visibility="public"
  9843. deprecated="not deprecated">
  9844. <param name="dir" type="java.io.File"/>
  9845. <param name="tryGrantPermissions" type="boolean"/>
  9846. <doc>
  9847. <![CDATA[Delete the contents of a directory, not the directory itself. If
  9848. we return false, the directory may be partially-deleted.
  9849. If dir is a symlink to a directory, all the contents of the actual
  9850. directory pointed to by dir will be deleted.
  9851. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  9852. and all the underlying directories before trying to delete their contents.]]>
  9853. </doc>
  9854. </method>
  9855. <method name="fullyDelete"
  9856. abstract="false" native="false" synchronized="false"
  9857. static="true" final="false" visibility="public"
  9858. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  9859. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9860. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  9861. <exception name="IOException" type="java.io.IOException"/>
  9862. <doc>
  9863. <![CDATA[Recursively delete a directory.
  9864. @param fs {@link FileSystem} on which the path is present
  9865. @param dir directory to recursively delete
  9866. @throws IOException
  9867. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  9868. </doc>
  9869. </method>
  9870. <method name="copy" return="boolean"
  9871. abstract="false" native="false" synchronized="false"
  9872. static="true" final="false" visibility="public"
  9873. deprecated="not deprecated">
  9874. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9875. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9876. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9877. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9878. <param name="deleteSource" type="boolean"/>
  9879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9880. <exception name="IOException" type="java.io.IOException"/>
  9881. <doc>
  9882. <![CDATA[Copy files between FileSystems.]]>
  9883. </doc>
  9884. </method>
  9885. <method name="copy" return="boolean"
  9886. abstract="false" native="false" synchronized="false"
  9887. static="true" final="false" visibility="public"
  9888. deprecated="not deprecated">
  9889. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9890. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9891. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9892. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9893. <param name="deleteSource" type="boolean"/>
  9894. <param name="overwrite" type="boolean"/>
  9895. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9896. <exception name="IOException" type="java.io.IOException"/>
  9897. </method>
  9898. <method name="copy" return="boolean"
  9899. abstract="false" native="false" synchronized="false"
  9900. static="true" final="false" visibility="public"
  9901. deprecated="not deprecated">
  9902. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9903. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9904. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9905. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9906. <param name="deleteSource" type="boolean"/>
  9907. <param name="overwrite" type="boolean"/>
  9908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9909. <exception name="IOException" type="java.io.IOException"/>
  9910. <doc>
  9911. <![CDATA[Copy files between FileSystems.]]>
  9912. </doc>
  9913. </method>
  9914. <method name="copy" return="boolean"
  9915. abstract="false" native="false" synchronized="false"
  9916. static="true" final="false" visibility="public"
  9917. deprecated="not deprecated">
  9918. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9919. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  9920. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9921. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9922. <param name="deleteSource" type="boolean"/>
  9923. <param name="overwrite" type="boolean"/>
  9924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9925. <exception name="IOException" type="java.io.IOException"/>
  9926. <doc>
  9927. <![CDATA[Copy files between FileSystems.]]>
  9928. </doc>
  9929. </method>
  9930. <method name="copyMerge" return="boolean"
  9931. abstract="false" native="false" synchronized="false"
  9932. static="true" final="false" visibility="public"
  9933. deprecated="not deprecated">
  9934. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9935. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  9936. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9937. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  9938. <param name="deleteSource" type="boolean"/>
  9939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9940. <param name="addString" type="java.lang.String"/>
  9941. <exception name="IOException" type="java.io.IOException"/>
  9942. </method>
  9943. <method name="copy" return="boolean"
  9944. abstract="false" native="false" synchronized="false"
  9945. static="true" final="false" visibility="public"
  9946. deprecated="not deprecated">
  9947. <param name="src" type="java.io.File"/>
  9948. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9949. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9950. <param name="deleteSource" type="boolean"/>
  9951. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9952. <exception name="IOException" type="java.io.IOException"/>
  9953. <doc>
  9954. <![CDATA[Copy local files to a FileSystem.]]>
  9955. </doc>
  9956. </method>
  9957. <method name="copy" return="boolean"
  9958. abstract="false" native="false" synchronized="false"
  9959. static="true" final="false" visibility="public"
  9960. deprecated="not deprecated">
  9961. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9962. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9963. <param name="dst" type="java.io.File"/>
  9964. <param name="deleteSource" 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 FileSystem files to local files.]]>
  9969. </doc>
  9970. </method>
  9971. <method name="makeShellPath" return="java.lang.String"
  9972. abstract="false" native="false" synchronized="false"
  9973. static="true" final="false" visibility="public"
  9974. deprecated="not deprecated">
  9975. <param name="filename" type="java.lang.String"/>
  9976. <exception name="IOException" type="java.io.IOException"/>
  9977. <doc>
  9978. <![CDATA[Convert a os-native filename to a path that works for the shell.
  9979. @param filename The filename to convert
  9980. @return The unix pathname
  9981. @throws IOException on windows, there can be problems with the subprocess]]>
  9982. </doc>
  9983. </method>
  9984. <method name="makeShellPath" return="java.lang.String"
  9985. abstract="false" native="false" synchronized="false"
  9986. static="true" final="false" visibility="public"
  9987. deprecated="not deprecated">
  9988. <param name="file" type="java.io.File"/>
  9989. <exception name="IOException" type="java.io.IOException"/>
  9990. <doc>
  9991. <![CDATA[Convert a os-native filename to a path that works for the shell.
  9992. @param file The filename to convert
  9993. @return The unix pathname
  9994. @throws IOException on windows, there can be problems with the subprocess]]>
  9995. </doc>
  9996. </method>
  9997. <method name="makeShellPath" return="java.lang.String"
  9998. abstract="false" native="false" synchronized="false"
  9999. static="true" final="false" visibility="public"
  10000. deprecated="not deprecated">
  10001. <param name="file" type="java.io.File"/>
  10002. <param name="makeCanonicalPath" type="boolean"/>
  10003. <exception name="IOException" type="java.io.IOException"/>
  10004. <doc>
  10005. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10006. @param file The filename to convert
  10007. @param makeCanonicalPath
  10008. Whether to make canonical path for the file passed
  10009. @return The unix pathname
  10010. @throws IOException on windows, there can be problems with the subprocess]]>
  10011. </doc>
  10012. </method>
  10013. <method name="getDU" return="long"
  10014. abstract="false" native="false" synchronized="false"
  10015. static="true" final="false" visibility="public"
  10016. deprecated="not deprecated">
  10017. <param name="dir" type="java.io.File"/>
  10018. <doc>
  10019. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  10020. implementation.
  10021. @param dir
  10022. The input dir to get the disk space of this local dir
  10023. @return The total disk space of the input local directory]]>
  10024. </doc>
  10025. </method>
  10026. <method name="unZip"
  10027. abstract="false" native="false" synchronized="false"
  10028. static="true" final="false" visibility="public"
  10029. deprecated="not deprecated">
  10030. <param name="inFile" type="java.io.File"/>
  10031. <param name="unzipDir" type="java.io.File"/>
  10032. <exception name="IOException" type="java.io.IOException"/>
  10033. <doc>
  10034. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  10035. passed as the second parameter
  10036. @param inFile The zip file as input
  10037. @param unzipDir The unzip directory where to unzip the zip file.
  10038. @throws IOException]]>
  10039. </doc>
  10040. </method>
  10041. <method name="unTar"
  10042. abstract="false" native="false" synchronized="false"
  10043. static="true" final="false" visibility="public"
  10044. deprecated="not deprecated">
  10045. <param name="inFile" type="java.io.File"/>
  10046. <param name="untarDir" type="java.io.File"/>
  10047. <exception name="IOException" type="java.io.IOException"/>
  10048. <doc>
  10049. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  10050. passed as the second parameter
  10051. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  10052. @param inFile The tar file as input.
  10053. @param untarDir The untar directory where to untar the tar file.
  10054. @throws IOException]]>
  10055. </doc>
  10056. </method>
  10057. <method name="symLink" return="int"
  10058. abstract="false" native="false" synchronized="false"
  10059. static="true" final="false" visibility="public"
  10060. deprecated="not deprecated">
  10061. <param name="target" type="java.lang.String"/>
  10062. <param name="linkname" type="java.lang.String"/>
  10063. <exception name="IOException" type="java.io.IOException"/>
  10064. <doc>
  10065. <![CDATA[Create a soft link between a src and destination
  10066. only on a local disk. HDFS does not support this.
  10067. On Windows, when symlink creation fails due to security
  10068. setting, we will log a warning. The return code in this
  10069. case is 2.
  10070. @param target the target for symlink
  10071. @param linkname the symlink
  10072. @return 0 on success]]>
  10073. </doc>
  10074. </method>
  10075. <method name="chmod" return="int"
  10076. abstract="false" native="false" synchronized="false"
  10077. static="true" final="false" visibility="public"
  10078. deprecated="not deprecated">
  10079. <param name="filename" type="java.lang.String"/>
  10080. <param name="perm" type="java.lang.String"/>
  10081. <exception name="IOException" type="java.io.IOException"/>
  10082. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  10083. <doc>
  10084. <![CDATA[Change the permissions on a filename.
  10085. @param filename the name of the file to change
  10086. @param perm the permission string
  10087. @return the exit code from the command
  10088. @throws IOException
  10089. @throws InterruptedException]]>
  10090. </doc>
  10091. </method>
  10092. <method name="chmod" return="int"
  10093. abstract="false" native="false" synchronized="false"
  10094. static="true" final="false" visibility="public"
  10095. deprecated="not deprecated">
  10096. <param name="filename" type="java.lang.String"/>
  10097. <param name="perm" type="java.lang.String"/>
  10098. <param name="recursive" type="boolean"/>
  10099. <exception name="IOException" type="java.io.IOException"/>
  10100. <doc>
  10101. <![CDATA[Change the permissions on a file / directory, recursively, if
  10102. needed.
  10103. @param filename name of the file whose permissions are to change
  10104. @param perm permission string
  10105. @param recursive true, if permissions should be changed recursively
  10106. @return the exit code from the command.
  10107. @throws IOException]]>
  10108. </doc>
  10109. </method>
  10110. <method name="setOwner"
  10111. abstract="false" native="false" synchronized="false"
  10112. static="true" final="false" visibility="public"
  10113. deprecated="not deprecated">
  10114. <param name="file" type="java.io.File"/>
  10115. <param name="username" type="java.lang.String"/>
  10116. <param name="groupname" type="java.lang.String"/>
  10117. <exception name="IOException" type="java.io.IOException"/>
  10118. <doc>
  10119. <![CDATA[Set the ownership on a file / directory. User name and group name
  10120. cannot both be null.
  10121. @param file the file to change
  10122. @param username the new user owner name
  10123. @param groupname the new group owner name
  10124. @throws IOException]]>
  10125. </doc>
  10126. </method>
  10127. <method name="setReadable" return="boolean"
  10128. abstract="false" native="false" synchronized="false"
  10129. static="true" final="false" visibility="public"
  10130. deprecated="not deprecated">
  10131. <param name="f" type="java.io.File"/>
  10132. <param name="readable" type="boolean"/>
  10133. <doc>
  10134. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  10135. File#setReadable does not work as expected on Windows.
  10136. @param f input file
  10137. @param readable
  10138. @return true on success, false otherwise]]>
  10139. </doc>
  10140. </method>
  10141. <method name="setWritable" return="boolean"
  10142. abstract="false" native="false" synchronized="false"
  10143. static="true" final="false" visibility="public"
  10144. deprecated="not deprecated">
  10145. <param name="f" type="java.io.File"/>
  10146. <param name="writable" type="boolean"/>
  10147. <doc>
  10148. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  10149. File#setWritable does not work as expected on Windows.
  10150. @param f input file
  10151. @param writable
  10152. @return true on success, false otherwise]]>
  10153. </doc>
  10154. </method>
  10155. <method name="setExecutable" return="boolean"
  10156. abstract="false" native="false" synchronized="false"
  10157. static="true" final="false" visibility="public"
  10158. deprecated="not deprecated">
  10159. <param name="f" type="java.io.File"/>
  10160. <param name="executable" type="boolean"/>
  10161. <doc>
  10162. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  10163. File#setExecutable does not work as expected on Windows.
  10164. Note: revoking execute permission on folders does not have the same
  10165. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  10166. a file within that folder will still succeed on Windows.
  10167. @param f input file
  10168. @param executable
  10169. @return true on success, false otherwise]]>
  10170. </doc>
  10171. </method>
  10172. <method name="canRead" return="boolean"
  10173. abstract="false" native="false" synchronized="false"
  10174. static="true" final="false" visibility="public"
  10175. deprecated="not deprecated">
  10176. <param name="f" type="java.io.File"/>
  10177. <doc>
  10178. <![CDATA[Platform independent implementation for {@link File#canRead()}
  10179. @param f input file
  10180. @return On Unix, same as {@link File#canRead()}
  10181. On Windows, true if process has read access on the path]]>
  10182. </doc>
  10183. </method>
  10184. <method name="canWrite" return="boolean"
  10185. abstract="false" native="false" synchronized="false"
  10186. static="true" final="false" visibility="public"
  10187. deprecated="not deprecated">
  10188. <param name="f" type="java.io.File"/>
  10189. <doc>
  10190. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  10191. @param f input file
  10192. @return On Unix, same as {@link File#canWrite()}
  10193. On Windows, true if process has write access on the path]]>
  10194. </doc>
  10195. </method>
  10196. <method name="canExecute" 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. <doc>
  10202. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  10203. @param f input file
  10204. @return On Unix, same as {@link File#canExecute()}
  10205. On Windows, true if process has execute access on the path]]>
  10206. </doc>
  10207. </method>
  10208. <method name="setPermission"
  10209. abstract="false" native="false" synchronized="false"
  10210. static="true" final="false" visibility="public"
  10211. deprecated="not deprecated">
  10212. <param name="f" type="java.io.File"/>
  10213. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10214. <exception name="IOException" type="java.io.IOException"/>
  10215. <doc>
  10216. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  10217. of forking if group == other.
  10218. @param f the file to change
  10219. @param permission the new permissions
  10220. @throws IOException]]>
  10221. </doc>
  10222. </method>
  10223. <method name="createLocalTempFile" return="java.io.File"
  10224. abstract="false" native="false" synchronized="false"
  10225. static="true" final="true" visibility="public"
  10226. deprecated="not deprecated">
  10227. <param name="basefile" type="java.io.File"/>
  10228. <param name="prefix" type="java.lang.String"/>
  10229. <param name="isDeleteOnExit" type="boolean"/>
  10230. <exception name="IOException" type="java.io.IOException"/>
  10231. <doc>
  10232. <![CDATA[Create a tmp file for a base file.
  10233. @param basefile the base file of the tmp
  10234. @param prefix file name prefix of tmp
  10235. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  10236. @return a newly created tmp file
  10237. @exception IOException If a tmp file cannot created
  10238. @see java.io.File#createTempFile(String, String, File)
  10239. @see java.io.File#deleteOnExit()]]>
  10240. </doc>
  10241. </method>
  10242. <method name="replaceFile"
  10243. abstract="false" native="false" synchronized="false"
  10244. static="true" final="false" visibility="public"
  10245. deprecated="not deprecated">
  10246. <param name="src" type="java.io.File"/>
  10247. <param name="target" type="java.io.File"/>
  10248. <exception name="IOException" type="java.io.IOException"/>
  10249. <doc>
  10250. <![CDATA[Move the src file to the name specified by target.
  10251. @param src the source file
  10252. @param target the target file
  10253. @exception IOException If this operation fails]]>
  10254. </doc>
  10255. </method>
  10256. <method name="listFiles" return="java.io.File[]"
  10257. abstract="false" native="false" synchronized="false"
  10258. static="true" final="false" visibility="public"
  10259. deprecated="not deprecated">
  10260. <param name="dir" type="java.io.File"/>
  10261. <exception name="IOException" type="java.io.IOException"/>
  10262. <doc>
  10263. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  10264. when a dir is not a directory or for any I/O error. Instead of having
  10265. null check everywhere File#listFiles() is used, we will add utility API
  10266. to get around this problem. For the majority of cases where we prefer
  10267. an IOException to be thrown.
  10268. @param dir directory for which listing should be performed
  10269. @return list of files or empty list
  10270. @exception IOException for invalid directory or for a bad disk.]]>
  10271. </doc>
  10272. </method>
  10273. <method name="list" return="java.lang.String[]"
  10274. abstract="false" native="false" synchronized="false"
  10275. static="true" final="false" visibility="public"
  10276. deprecated="not deprecated">
  10277. <param name="dir" type="java.io.File"/>
  10278. <exception name="IOException" type="java.io.IOException"/>
  10279. <doc>
  10280. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  10281. when a dir is not a directory or for any I/O error. Instead of having
  10282. null check everywhere File#list() is used, we will add utility API
  10283. to get around this problem. For the majority of cases where we prefer
  10284. an IOException to be thrown.
  10285. @param dir directory for which listing should be performed
  10286. @return list of file names or empty string list
  10287. @exception IOException for invalid directory or for a bad disk.]]>
  10288. </doc>
  10289. </method>
  10290. <method name="createJarWithClassPath" return="java.lang.String[]"
  10291. abstract="false" native="false" synchronized="false"
  10292. static="true" final="false" visibility="public"
  10293. deprecated="not deprecated">
  10294. <param name="inputClassPath" type="java.lang.String"/>
  10295. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  10296. <param name="callerEnv" type="java.util.Map"/>
  10297. <exception name="IOException" type="java.io.IOException"/>
  10298. </method>
  10299. <method name="createJarWithClassPath" return="java.lang.String[]"
  10300. abstract="false" native="false" synchronized="false"
  10301. static="true" final="false" visibility="public"
  10302. deprecated="not deprecated">
  10303. <param name="inputClassPath" type="java.lang.String"/>
  10304. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  10305. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  10306. <param name="callerEnv" type="java.util.Map"/>
  10307. <exception name="IOException" type="java.io.IOException"/>
  10308. <doc>
  10309. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  10310. that references all specified entries.
  10311. Some platforms may have an upper limit on command line length. For example,
  10312. the maximum command line length on Windows is 8191 characters, but the
  10313. length of the classpath may exceed this. To work around this limitation,
  10314. use this method to create a small intermediate jar with a manifest that
  10315. contains the full classpath. It returns the absolute path to the new jar,
  10316. which the caller may set as the classpath for a new process.
  10317. Environment variable evaluation is not supported within a jar manifest, so
  10318. this method expands environment variables before inserting classpath entries
  10319. to the manifest. The method parses environment variables according to
  10320. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  10321. environment variables are case-insensitive. For example, %VAR% and %var%
  10322. evaluate to the same value.
  10323. Specifying the classpath in a jar manifest does not support wildcards, so
  10324. this method expands wildcards internally. Any classpath entry that ends
  10325. with * is translated to all files at that path with extension .jar or .JAR.
  10326. @param inputClassPath String input classpath to bundle into the jar manifest
  10327. @param pwd Path to working directory to save jar
  10328. @param targetDir path to where the jar execution will have its working dir
  10329. @param callerEnv Map<String, String> caller's environment variables to use
  10330. for expansion
  10331. @return String[] with absolute path to new jar in position 0 and
  10332. unexpanded wild card entry path in position 1
  10333. @throws IOException if there is an I/O error while writing the jar file]]>
  10334. </doc>
  10335. </method>
  10336. <method name="compareFs" return="boolean"
  10337. abstract="false" native="false" synchronized="false"
  10338. static="true" final="false" visibility="public"
  10339. deprecated="not deprecated">
  10340. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  10341. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  10342. </method>
  10343. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  10344. transient="false" volatile="false"
  10345. static="true" final="true" visibility="public"
  10346. deprecated="not deprecated">
  10347. </field>
  10348. <doc>
  10349. <![CDATA[A collection of file-processing util methods]]>
  10350. </doc>
  10351. </class>
  10352. <!-- end class org.apache.hadoop.fs.FileUtil -->
  10353. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  10354. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  10355. abstract="false"
  10356. static="false" final="false" visibility="public"
  10357. deprecated="not deprecated">
  10358. <constructor name="FilterFileSystem"
  10359. static="false" final="false" visibility="public"
  10360. deprecated="not deprecated">
  10361. </constructor>
  10362. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  10363. static="false" final="false" visibility="public"
  10364. deprecated="not deprecated">
  10365. </constructor>
  10366. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  10367. abstract="false" native="false" synchronized="false"
  10368. static="false" final="false" visibility="public"
  10369. deprecated="not deprecated">
  10370. <doc>
  10371. <![CDATA[Get the raw file system
  10372. @return FileSystem being filtered]]>
  10373. </doc>
  10374. </method>
  10375. <method name="initialize"
  10376. abstract="false" native="false" synchronized="false"
  10377. static="false" final="false" visibility="public"
  10378. deprecated="not deprecated">
  10379. <param name="name" type="java.net.URI"/>
  10380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10381. <exception name="IOException" type="java.io.IOException"/>
  10382. <doc>
  10383. <![CDATA[Called after a new FileSystem instance is constructed.
  10384. @param name a uri whose authority section names the host, port, etc.
  10385. for this FileSystem
  10386. @param conf the configuration]]>
  10387. </doc>
  10388. </method>
  10389. <method name="getUri" return="java.net.URI"
  10390. abstract="false" native="false" synchronized="false"
  10391. static="false" final="false" visibility="public"
  10392. deprecated="not deprecated">
  10393. <doc>
  10394. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  10395. </doc>
  10396. </method>
  10397. <method name="getCanonicalUri" return="java.net.URI"
  10398. abstract="false" native="false" synchronized="false"
  10399. static="false" final="false" visibility="protected"
  10400. deprecated="not deprecated">
  10401. </method>
  10402. <method name="canonicalizeUri" return="java.net.URI"
  10403. abstract="false" native="false" synchronized="false"
  10404. static="false" final="false" visibility="protected"
  10405. deprecated="not deprecated">
  10406. <param name="uri" type="java.net.URI"/>
  10407. </method>
  10408. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  10409. abstract="false" native="false" synchronized="false"
  10410. static="false" final="false" visibility="public"
  10411. deprecated="not deprecated">
  10412. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10413. <doc>
  10414. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  10415. </doc>
  10416. </method>
  10417. <method name="checkPath"
  10418. abstract="false" native="false" synchronized="false"
  10419. static="false" final="false" visibility="protected"
  10420. deprecated="not deprecated">
  10421. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10422. <doc>
  10423. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  10424. </doc>
  10425. </method>
  10426. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  10427. abstract="false" native="false" synchronized="false"
  10428. static="false" final="false" visibility="public"
  10429. deprecated="not deprecated">
  10430. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  10431. <param name="start" type="long"/>
  10432. <param name="len" type="long"/>
  10433. <exception name="IOException" type="java.io.IOException"/>
  10434. </method>
  10435. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  10436. abstract="false" native="false" synchronized="false"
  10437. static="false" final="false" visibility="public"
  10438. deprecated="not deprecated">
  10439. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10440. <exception name="IOException" type="java.io.IOException"/>
  10441. </method>
  10442. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  10443. abstract="false" native="false" synchronized="false"
  10444. static="false" final="false" visibility="public"
  10445. deprecated="not deprecated">
  10446. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10447. <param name="bufferSize" type="int"/>
  10448. <exception name="IOException" type="java.io.IOException"/>
  10449. <doc>
  10450. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  10451. @param f the file name to open
  10452. @param bufferSize the size of the buffer to be used.]]>
  10453. </doc>
  10454. </method>
  10455. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  10456. abstract="false" native="false" synchronized="false"
  10457. static="false" final="false" visibility="public"
  10458. deprecated="not deprecated">
  10459. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10460. <param name="bufferSize" type="int"/>
  10461. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10462. <exception name="IOException" type="java.io.IOException"/>
  10463. </method>
  10464. <method name="concat"
  10465. abstract="false" native="false" synchronized="false"
  10466. static="false" final="false" visibility="public"
  10467. deprecated="not deprecated">
  10468. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10469. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  10470. <exception name="IOException" type="java.io.IOException"/>
  10471. </method>
  10472. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10473. abstract="false" native="false" synchronized="false"
  10474. static="false" final="false" visibility="public"
  10475. deprecated="not deprecated">
  10476. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10477. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10478. <param name="overwrite" type="boolean"/>
  10479. <param name="bufferSize" type="int"/>
  10480. <param name="replication" type="short"/>
  10481. <param name="blockSize" type="long"/>
  10482. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10483. <exception name="IOException" type="java.io.IOException"/>
  10484. </method>
  10485. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10486. abstract="false" native="false" synchronized="false"
  10487. static="false" final="false" visibility="public"
  10488. deprecated="not deprecated">
  10489. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10490. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10491. <param name="flags" type="java.util.EnumSet"/>
  10492. <param name="bufferSize" type="int"/>
  10493. <param name="replication" type="short"/>
  10494. <param name="blockSize" type="long"/>
  10495. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10496. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  10497. <exception name="IOException" type="java.io.IOException"/>
  10498. </method>
  10499. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10500. abstract="false" native="false" synchronized="false"
  10501. static="false" final="false" visibility="protected"
  10502. deprecated="not deprecated">
  10503. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10504. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10505. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10506. <exception name="IOException" type="java.io.IOException"/>
  10507. </method>
  10508. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  10509. abstract="false" native="false" synchronized="false"
  10510. static="false" final="false" visibility="public"
  10511. deprecated="not deprecated">
  10512. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10513. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10514. <param name="flags" type="java.util.EnumSet"/>
  10515. <param name="bufferSize" type="int"/>
  10516. <param name="replication" type="short"/>
  10517. <param name="blockSize" type="long"/>
  10518. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10519. <exception name="IOException" type="java.io.IOException"/>
  10520. </method>
  10521. <method name="setReplication" return="boolean"
  10522. abstract="false" native="false" synchronized="false"
  10523. static="false" final="false" visibility="public"
  10524. deprecated="not deprecated">
  10525. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10526. <param name="replication" type="short"/>
  10527. <exception name="IOException" type="java.io.IOException"/>
  10528. <doc>
  10529. <![CDATA[Set replication for an existing file.
  10530. @param src file name
  10531. @param replication new replication
  10532. @throws IOException
  10533. @return true if successful;
  10534. false if file does not exist or is a directory]]>
  10535. </doc>
  10536. </method>
  10537. <method name="rename" return="boolean"
  10538. abstract="false" native="false" synchronized="false"
  10539. static="false" final="false" visibility="public"
  10540. deprecated="not deprecated">
  10541. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10542. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10543. <exception name="IOException" type="java.io.IOException"/>
  10544. <doc>
  10545. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  10546. or remote DFS.]]>
  10547. </doc>
  10548. </method>
  10549. <method name="truncate" return="boolean"
  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="newLength" type="long"/>
  10555. <exception name="IOException" type="java.io.IOException"/>
  10556. </method>
  10557. <method name="delete" return="boolean"
  10558. abstract="false" native="false" synchronized="false"
  10559. static="false" final="false" visibility="public"
  10560. deprecated="not deprecated">
  10561. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10562. <param name="recursive" type="boolean"/>
  10563. <exception name="IOException" type="java.io.IOException"/>
  10564. <doc>
  10565. <![CDATA[Delete a file]]>
  10566. </doc>
  10567. </method>
  10568. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10569. abstract="false" native="false" synchronized="false"
  10570. static="false" final="false" visibility="public"
  10571. deprecated="not deprecated">
  10572. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10573. <exception name="IOException" type="java.io.IOException"/>
  10574. <doc>
  10575. <![CDATA[List files in a directory.]]>
  10576. </doc>
  10577. </method>
  10578. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  10579. abstract="false" native="false" synchronized="false"
  10580. static="false" final="false" visibility="public"
  10581. deprecated="not deprecated">
  10582. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10583. <exception name="IOException" type="java.io.IOException"/>
  10584. </method>
  10585. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  10586. abstract="false" native="false" synchronized="false"
  10587. static="false" final="false" visibility="public"
  10588. deprecated="not deprecated">
  10589. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10590. <exception name="IOException" type="java.io.IOException"/>
  10591. <doc>
  10592. <![CDATA[List files and its block locations in a directory.]]>
  10593. </doc>
  10594. </method>
  10595. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  10596. abstract="false" native="false" synchronized="false"
  10597. static="false" final="false" visibility="public"
  10598. deprecated="not deprecated">
  10599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10600. <exception name="IOException" type="java.io.IOException"/>
  10601. <doc>
  10602. <![CDATA[Return a remote iterator for listing in a directory]]>
  10603. </doc>
  10604. </method>
  10605. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  10606. abstract="false" native="false" synchronized="false"
  10607. static="false" final="false" visibility="public"
  10608. deprecated="not deprecated">
  10609. </method>
  10610. <method name="setWorkingDirectory"
  10611. abstract="false" native="false" synchronized="false"
  10612. static="false" final="false" visibility="public"
  10613. deprecated="not deprecated">
  10614. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  10615. <doc>
  10616. <![CDATA[Set the current working directory for the given file system. All relative
  10617. paths will be resolved relative to it.
  10618. @param newDir]]>
  10619. </doc>
  10620. </method>
  10621. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10622. abstract="false" native="false" synchronized="false"
  10623. static="false" final="false" visibility="public"
  10624. deprecated="not deprecated">
  10625. <doc>
  10626. <![CDATA[Get the current working directory for the given file system
  10627. @return the directory pathname]]>
  10628. </doc>
  10629. </method>
  10630. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10631. abstract="false" native="false" synchronized="false"
  10632. static="false" final="false" visibility="protected"
  10633. deprecated="not deprecated">
  10634. </method>
  10635. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10636. abstract="false" native="false" synchronized="false"
  10637. static="false" final="false" visibility="public"
  10638. deprecated="not deprecated">
  10639. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10640. <exception name="IOException" type="java.io.IOException"/>
  10641. </method>
  10642. <method name="mkdirs" return="boolean"
  10643. abstract="false" native="false" synchronized="false"
  10644. static="false" final="false" visibility="public"
  10645. deprecated="not deprecated">
  10646. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10647. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10648. <exception name="IOException" type="java.io.IOException"/>
  10649. </method>
  10650. <method name="copyFromLocalFile"
  10651. abstract="false" native="false" synchronized="false"
  10652. static="false" final="false" visibility="public"
  10653. deprecated="not deprecated">
  10654. <param name="delSrc" type="boolean"/>
  10655. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10656. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10657. <exception name="IOException" type="java.io.IOException"/>
  10658. <doc>
  10659. <![CDATA[The src file is on the local disk. Add it to FS at
  10660. the given dst name.
  10661. delSrc indicates if the source should be removed]]>
  10662. </doc>
  10663. </method>
  10664. <method name="copyFromLocalFile"
  10665. abstract="false" native="false" synchronized="false"
  10666. static="false" final="false" visibility="public"
  10667. deprecated="not deprecated">
  10668. <param name="delSrc" type="boolean"/>
  10669. <param name="overwrite" type="boolean"/>
  10670. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10671. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10672. <exception name="IOException" type="java.io.IOException"/>
  10673. <doc>
  10674. <![CDATA[The src files are on the local disk. Add it to FS at
  10675. the given dst name.
  10676. delSrc indicates if the source should be removed]]>
  10677. </doc>
  10678. </method>
  10679. <method name="copyFromLocalFile"
  10680. abstract="false" native="false" synchronized="false"
  10681. static="false" final="false" visibility="public"
  10682. deprecated="not deprecated">
  10683. <param name="delSrc" type="boolean"/>
  10684. <param name="overwrite" type="boolean"/>
  10685. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10686. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10687. <exception name="IOException" type="java.io.IOException"/>
  10688. <doc>
  10689. <![CDATA[The src file is on the local disk. Add it to FS at
  10690. the given dst name.
  10691. delSrc indicates if the source should be removed]]>
  10692. </doc>
  10693. </method>
  10694. <method name="copyToLocalFile"
  10695. abstract="false" native="false" synchronized="false"
  10696. static="false" final="false" visibility="public"
  10697. deprecated="not deprecated">
  10698. <param name="delSrc" type="boolean"/>
  10699. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10700. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10701. <exception name="IOException" type="java.io.IOException"/>
  10702. <doc>
  10703. <![CDATA[The src file is under FS, and the dst is on the local disk.
  10704. Copy it from FS control to the local dst name.
  10705. delSrc indicates if the src will be removed or not.]]>
  10706. </doc>
  10707. </method>
  10708. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10709. abstract="false" native="false" synchronized="false"
  10710. static="false" final="false" visibility="public"
  10711. deprecated="not deprecated">
  10712. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10713. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10714. <exception name="IOException" type="java.io.IOException"/>
  10715. <doc>
  10716. <![CDATA[Returns a local File that the user can write output to. The caller
  10717. provides both the eventual FS target name and the local working
  10718. file. If the FS is local, we write directly into the target. If
  10719. the FS is remote, we write into the tmp local area.]]>
  10720. </doc>
  10721. </method>
  10722. <method name="completeLocalOutput"
  10723. abstract="false" native="false" synchronized="false"
  10724. static="false" final="false" visibility="public"
  10725. deprecated="not deprecated">
  10726. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10727. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10728. <exception name="IOException" type="java.io.IOException"/>
  10729. <doc>
  10730. <![CDATA[Called when we're all done writing to the target. A local FS will
  10731. do nothing, because we've written to exactly the right place. A remote
  10732. FS will copy the contents of tmpLocalFile to the correct target at
  10733. fsOutputFile.]]>
  10734. </doc>
  10735. </method>
  10736. <method name="getUsed" return="long"
  10737. abstract="false" native="false" synchronized="false"
  10738. static="false" final="false" visibility="public"
  10739. deprecated="not deprecated">
  10740. <exception name="IOException" type="java.io.IOException"/>
  10741. <doc>
  10742. <![CDATA[Return the total size of all files in the filesystem.]]>
  10743. </doc>
  10744. </method>
  10745. <method name="getUsed" return="long"
  10746. abstract="false" native="false" synchronized="false"
  10747. static="false" final="false" visibility="public"
  10748. deprecated="not deprecated">
  10749. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10750. <exception name="IOException" type="java.io.IOException"/>
  10751. <doc>
  10752. <![CDATA[Return the total size of all files from a specified path.]]>
  10753. </doc>
  10754. </method>
  10755. <method name="getDefaultBlockSize" return="long"
  10756. abstract="false" native="false" synchronized="false"
  10757. static="false" final="false" visibility="public"
  10758. deprecated="not deprecated">
  10759. </method>
  10760. <method name="getDefaultReplication" return="short"
  10761. abstract="false" native="false" synchronized="false"
  10762. static="false" final="false" visibility="public"
  10763. deprecated="not deprecated">
  10764. </method>
  10765. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  10766. abstract="false" native="false" synchronized="false"
  10767. static="false" final="false" visibility="public"
  10768. deprecated="not deprecated">
  10769. <exception name="IOException" type="java.io.IOException"/>
  10770. </method>
  10771. <method name="getDefaultBlockSize" return="long"
  10772. abstract="false" native="false" synchronized="false"
  10773. static="false" final="false" visibility="public"
  10774. deprecated="not deprecated">
  10775. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10776. </method>
  10777. <method name="getDefaultReplication" return="short"
  10778. abstract="false" native="false" synchronized="false"
  10779. static="false" final="false" visibility="public"
  10780. deprecated="not deprecated">
  10781. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10782. </method>
  10783. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  10784. abstract="false" native="false" synchronized="false"
  10785. static="false" final="false" visibility="public"
  10786. deprecated="not deprecated">
  10787. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10788. <exception name="IOException" type="java.io.IOException"/>
  10789. </method>
  10790. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10791. abstract="false" native="false" synchronized="false"
  10792. static="false" final="false" visibility="public"
  10793. deprecated="not deprecated">
  10794. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10795. <exception name="IOException" type="java.io.IOException"/>
  10796. <doc>
  10797. <![CDATA[Get file status.]]>
  10798. </doc>
  10799. </method>
  10800. <method name="access"
  10801. abstract="false" native="false" synchronized="false"
  10802. static="false" final="false" visibility="public"
  10803. deprecated="not deprecated">
  10804. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10805. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  10806. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10807. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10808. <exception name="IOException" type="java.io.IOException"/>
  10809. </method>
  10810. <method name="createSymlink"
  10811. abstract="false" native="false" synchronized="false"
  10812. static="false" final="false" visibility="public"
  10813. deprecated="not deprecated">
  10814. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10815. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10816. <param name="createParent" type="boolean"/>
  10817. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10818. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10819. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10820. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10821. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10822. <exception name="IOException" type="java.io.IOException"/>
  10823. </method>
  10824. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10825. abstract="false" native="false" synchronized="false"
  10826. static="false" final="false" visibility="public"
  10827. deprecated="not deprecated">
  10828. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10829. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10830. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10831. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10832. <exception name="IOException" type="java.io.IOException"/>
  10833. </method>
  10834. <method name="supportsSymlinks" return="boolean"
  10835. abstract="false" native="false" synchronized="false"
  10836. static="false" final="false" visibility="public"
  10837. deprecated="not deprecated">
  10838. </method>
  10839. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10840. abstract="false" native="false" synchronized="false"
  10841. static="false" final="false" visibility="public"
  10842. deprecated="not deprecated">
  10843. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10844. <exception name="IOException" type="java.io.IOException"/>
  10845. </method>
  10846. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10847. abstract="false" native="false" synchronized="false"
  10848. static="false" final="false" visibility="protected"
  10849. deprecated="not deprecated">
  10850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10851. <exception name="IOException" type="java.io.IOException"/>
  10852. </method>
  10853. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10854. abstract="false" native="false" synchronized="false"
  10855. static="false" final="false" visibility="public"
  10856. deprecated="not deprecated">
  10857. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10858. <exception name="IOException" type="java.io.IOException"/>
  10859. </method>
  10860. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10861. abstract="false" native="false" synchronized="false"
  10862. static="false" final="false" visibility="public"
  10863. deprecated="not deprecated">
  10864. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10865. <param name="length" type="long"/>
  10866. <exception name="IOException" type="java.io.IOException"/>
  10867. </method>
  10868. <method name="setVerifyChecksum"
  10869. abstract="false" native="false" synchronized="false"
  10870. static="false" final="false" visibility="public"
  10871. deprecated="not deprecated">
  10872. <param name="verifyChecksum" type="boolean"/>
  10873. </method>
  10874. <method name="setWriteChecksum"
  10875. abstract="false" native="false" synchronized="false"
  10876. static="false" final="false" visibility="public"
  10877. deprecated="not deprecated">
  10878. <param name="writeChecksum" type="boolean"/>
  10879. </method>
  10880. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10881. abstract="false" native="false" synchronized="false"
  10882. static="false" final="false" visibility="public"
  10883. deprecated="not deprecated">
  10884. </method>
  10885. <method name="close"
  10886. abstract="false" native="false" synchronized="false"
  10887. static="false" final="false" visibility="public"
  10888. deprecated="not deprecated">
  10889. <exception name="IOException" type="java.io.IOException"/>
  10890. </method>
  10891. <method name="setOwner"
  10892. abstract="false" native="false" synchronized="false"
  10893. static="false" final="false" visibility="public"
  10894. deprecated="not deprecated">
  10895. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10896. <param name="username" type="java.lang.String"/>
  10897. <param name="groupname" type="java.lang.String"/>
  10898. <exception name="IOException" type="java.io.IOException"/>
  10899. </method>
  10900. <method name="setTimes"
  10901. abstract="false" native="false" synchronized="false"
  10902. static="false" final="false" visibility="public"
  10903. deprecated="not deprecated">
  10904. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10905. <param name="mtime" type="long"/>
  10906. <param name="atime" type="long"/>
  10907. <exception name="IOException" type="java.io.IOException"/>
  10908. </method>
  10909. <method name="setPermission"
  10910. abstract="false" native="false" synchronized="false"
  10911. static="false" final="false" visibility="public"
  10912. deprecated="not deprecated">
  10913. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10914. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10915. <exception name="IOException" type="java.io.IOException"/>
  10916. </method>
  10917. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  10918. abstract="false" native="false" synchronized="false"
  10919. static="false" final="false" visibility="protected"
  10920. deprecated="not deprecated">
  10921. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10922. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10923. <param name="flag" type="java.util.EnumSet"/>
  10924. <param name="bufferSize" type="int"/>
  10925. <param name="replication" type="short"/>
  10926. <param name="blockSize" type="long"/>
  10927. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10928. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  10929. <exception name="IOException" type="java.io.IOException"/>
  10930. </method>
  10931. <method name="primitiveMkdir" return="boolean"
  10932. abstract="false" native="false" synchronized="false"
  10933. static="false" final="false" visibility="protected"
  10934. deprecated="not deprecated">
  10935. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10936. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10937. <exception name="IOException" type="java.io.IOException"/>
  10938. </method>
  10939. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  10940. abstract="false" native="false" synchronized="false"
  10941. static="false" final="false" visibility="public"
  10942. deprecated="not deprecated">
  10943. </method>
  10944. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10945. abstract="false" native="false" synchronized="false"
  10946. static="false" final="false" visibility="public"
  10947. deprecated="not deprecated">
  10948. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10949. <param name="snapshotName" type="java.lang.String"/>
  10950. <exception name="IOException" type="java.io.IOException"/>
  10951. </method>
  10952. <method name="renameSnapshot"
  10953. abstract="false" native="false" synchronized="false"
  10954. static="false" final="false" visibility="public"
  10955. deprecated="not deprecated">
  10956. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10957. <param name="snapshotOldName" type="java.lang.String"/>
  10958. <param name="snapshotNewName" type="java.lang.String"/>
  10959. <exception name="IOException" type="java.io.IOException"/>
  10960. </method>
  10961. <method name="deleteSnapshot"
  10962. abstract="false" native="false" synchronized="false"
  10963. static="false" final="false" visibility="public"
  10964. deprecated="not deprecated">
  10965. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10966. <param name="snapshotName" type="java.lang.String"/>
  10967. <exception name="IOException" type="java.io.IOException"/>
  10968. </method>
  10969. <method name="modifyAclEntries"
  10970. abstract="false" native="false" synchronized="false"
  10971. static="false" final="false" visibility="public"
  10972. deprecated="not deprecated">
  10973. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10974. <param name="aclSpec" type="java.util.List"/>
  10975. <exception name="IOException" type="java.io.IOException"/>
  10976. </method>
  10977. <method name="removeAclEntries"
  10978. abstract="false" native="false" synchronized="false"
  10979. static="false" final="false" visibility="public"
  10980. deprecated="not deprecated">
  10981. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10982. <param name="aclSpec" type="java.util.List"/>
  10983. <exception name="IOException" type="java.io.IOException"/>
  10984. </method>
  10985. <method name="removeDefaultAcl"
  10986. abstract="false" native="false" synchronized="false"
  10987. static="false" final="false" visibility="public"
  10988. deprecated="not deprecated">
  10989. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10990. <exception name="IOException" type="java.io.IOException"/>
  10991. </method>
  10992. <method name="removeAcl"
  10993. abstract="false" native="false" synchronized="false"
  10994. static="false" final="false" visibility="public"
  10995. deprecated="not deprecated">
  10996. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10997. <exception name="IOException" type="java.io.IOException"/>
  10998. </method>
  10999. <method name="setAcl"
  11000. abstract="false" native="false" synchronized="false"
  11001. static="false" final="false" visibility="public"
  11002. deprecated="not deprecated">
  11003. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11004. <param name="aclSpec" type="java.util.List"/>
  11005. <exception name="IOException" type="java.io.IOException"/>
  11006. </method>
  11007. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  11008. abstract="false" native="false" synchronized="false"
  11009. static="false" final="false" visibility="public"
  11010. deprecated="not deprecated">
  11011. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11012. <exception name="IOException" type="java.io.IOException"/>
  11013. </method>
  11014. <method name="setXAttr"
  11015. abstract="false" native="false" synchronized="false"
  11016. static="false" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11019. <param name="name" type="java.lang.String"/>
  11020. <param name="value" type="byte[]"/>
  11021. <exception name="IOException" type="java.io.IOException"/>
  11022. </method>
  11023. <method name="setXAttr"
  11024. abstract="false" native="false" synchronized="false"
  11025. static="false" final="false" visibility="public"
  11026. deprecated="not deprecated">
  11027. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11028. <param name="name" type="java.lang.String"/>
  11029. <param name="value" type="byte[]"/>
  11030. <param name="flag" type="java.util.EnumSet"/>
  11031. <exception name="IOException" type="java.io.IOException"/>
  11032. </method>
  11033. <method name="getXAttr" return="byte[]"
  11034. abstract="false" native="false" synchronized="false"
  11035. static="false" final="false" visibility="public"
  11036. deprecated="not deprecated">
  11037. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11038. <param name="name" type="java.lang.String"/>
  11039. <exception name="IOException" type="java.io.IOException"/>
  11040. </method>
  11041. <method name="getXAttrs" return="java.util.Map"
  11042. abstract="false" native="false" synchronized="false"
  11043. static="false" final="false" visibility="public"
  11044. deprecated="not deprecated">
  11045. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11046. <exception name="IOException" type="java.io.IOException"/>
  11047. </method>
  11048. <method name="getXAttrs" return="java.util.Map"
  11049. abstract="false" native="false" synchronized="false"
  11050. static="false" final="false" visibility="public"
  11051. deprecated="not deprecated">
  11052. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11053. <param name="names" type="java.util.List"/>
  11054. <exception name="IOException" type="java.io.IOException"/>
  11055. </method>
  11056. <method name="listXAttrs" return="java.util.List"
  11057. abstract="false" native="false" synchronized="false"
  11058. static="false" final="false" visibility="public"
  11059. deprecated="not deprecated">
  11060. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11061. <exception name="IOException" type="java.io.IOException"/>
  11062. </method>
  11063. <method name="removeXAttr"
  11064. abstract="false" native="false" synchronized="false"
  11065. static="false" final="false" visibility="public"
  11066. deprecated="not deprecated">
  11067. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11068. <param name="name" type="java.lang.String"/>
  11069. <exception name="IOException" type="java.io.IOException"/>
  11070. </method>
  11071. <method name="setStoragePolicy"
  11072. abstract="false" native="false" synchronized="false"
  11073. static="false" final="false" visibility="public"
  11074. deprecated="not deprecated">
  11075. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11076. <param name="policyName" type="java.lang.String"/>
  11077. <exception name="IOException" type="java.io.IOException"/>
  11078. </method>
  11079. <method name="unsetStoragePolicy"
  11080. abstract="false" native="false" synchronized="false"
  11081. static="false" final="false" visibility="public"
  11082. deprecated="not deprecated">
  11083. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11084. <exception name="IOException" type="java.io.IOException"/>
  11085. </method>
  11086. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  11087. abstract="false" native="false" synchronized="false"
  11088. static="false" final="false" visibility="public"
  11089. deprecated="not deprecated">
  11090. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11091. <exception name="IOException" type="java.io.IOException"/>
  11092. </method>
  11093. <method name="getAllStoragePolicies" return="java.util.Collection"
  11094. abstract="false" native="false" synchronized="false"
  11095. static="false" final="false" visibility="public"
  11096. deprecated="not deprecated">
  11097. <exception name="IOException" type="java.io.IOException"/>
  11098. </method>
  11099. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  11100. abstract="false" native="false" synchronized="false"
  11101. static="false" final="false" visibility="public"
  11102. deprecated="not deprecated">
  11103. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11104. </method>
  11105. <method name="getTrashRoots" return="java.util.Collection"
  11106. abstract="false" native="false" synchronized="false"
  11107. static="false" final="false" visibility="public"
  11108. deprecated="not deprecated">
  11109. <param name="allUsers" type="boolean"/>
  11110. </method>
  11111. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  11112. transient="false" volatile="false"
  11113. static="false" final="false" visibility="protected"
  11114. deprecated="not deprecated">
  11115. </field>
  11116. <field name="swapScheme" type="java.lang.String"
  11117. transient="false" volatile="false"
  11118. static="false" final="false" visibility="protected"
  11119. deprecated="not deprecated">
  11120. </field>
  11121. <doc>
  11122. <![CDATA[A <code>FilterFileSystem</code> contains
  11123. some other file system, which it uses as
  11124. its basic file system, possibly transforming
  11125. the data along the way or providing additional
  11126. functionality. The class <code>FilterFileSystem</code>
  11127. itself simply overrides all methods of
  11128. <code>FileSystem</code> with versions that
  11129. pass all requests to the contained file
  11130. system. Subclasses of <code>FilterFileSystem</code>
  11131. may further override some of these methods
  11132. and may also provide additional methods
  11133. and fields.]]>
  11134. </doc>
  11135. </class>
  11136. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  11137. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  11138. <interface name="FsConstants" abstract="true"
  11139. static="false" final="false" visibility="public"
  11140. deprecated="not deprecated">
  11141. <field name="LOCAL_FS_URI" type="java.net.URI"
  11142. transient="false" volatile="false"
  11143. static="true" final="true" visibility="public"
  11144. deprecated="not deprecated">
  11145. </field>
  11146. <field name="FTP_SCHEME" type="java.lang.String"
  11147. transient="false" volatile="false"
  11148. static="true" final="true" visibility="public"
  11149. deprecated="not deprecated">
  11150. </field>
  11151. <field name="MAX_PATH_LINKS" type="int"
  11152. transient="false" volatile="false"
  11153. static="true" final="true" visibility="public"
  11154. deprecated="not deprecated">
  11155. </field>
  11156. <field name="VIEWFS_URI" type="java.net.URI"
  11157. transient="false" volatile="false"
  11158. static="true" final="true" visibility="public"
  11159. deprecated="not deprecated">
  11160. <doc>
  11161. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  11162. </doc>
  11163. </field>
  11164. <field name="VIEWFS_SCHEME" type="java.lang.String"
  11165. transient="false" volatile="false"
  11166. static="true" final="true" visibility="public"
  11167. deprecated="not deprecated">
  11168. </field>
  11169. <doc>
  11170. <![CDATA[FileSystem related constants.]]>
  11171. </doc>
  11172. </interface>
  11173. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  11174. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  11175. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  11176. abstract="false"
  11177. static="false" final="false" visibility="public"
  11178. deprecated="not deprecated">
  11179. <implements name="org.apache.hadoop.fs.Seekable"/>
  11180. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  11181. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  11182. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  11183. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  11184. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  11185. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  11186. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  11187. <constructor name="FSDataInputStream" type="java.io.InputStream"
  11188. static="false" final="false" visibility="public"
  11189. deprecated="not deprecated">
  11190. </constructor>
  11191. <method name="seek"
  11192. abstract="false" native="false" synchronized="false"
  11193. static="false" final="false" visibility="public"
  11194. deprecated="not deprecated">
  11195. <param name="desired" type="long"/>
  11196. <exception name="IOException" type="java.io.IOException"/>
  11197. <doc>
  11198. <![CDATA[Seek to the given offset.
  11199. @param desired offset to seek to]]>
  11200. </doc>
  11201. </method>
  11202. <method name="getPos" return="long"
  11203. abstract="false" native="false" synchronized="false"
  11204. static="false" final="false" visibility="public"
  11205. deprecated="not deprecated">
  11206. <exception name="IOException" type="java.io.IOException"/>
  11207. <doc>
  11208. <![CDATA[Get the current position in the input stream.
  11209. @return current position in the input stream]]>
  11210. </doc>
  11211. </method>
  11212. <method name="read" return="int"
  11213. abstract="false" native="false" synchronized="false"
  11214. static="false" final="false" visibility="public"
  11215. deprecated="not deprecated">
  11216. <param name="position" type="long"/>
  11217. <param name="buffer" type="byte[]"/>
  11218. <param name="offset" type="int"/>
  11219. <param name="length" type="int"/>
  11220. <exception name="IOException" type="java.io.IOException"/>
  11221. <doc>
  11222. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  11223. @param position position in the input stream to seek
  11224. @param buffer buffer into which data is read
  11225. @param offset offset into the buffer in which data is written
  11226. @param length maximum number of bytes to read
  11227. @return total number of bytes read into the buffer, or <code>-1</code>
  11228. if there is no more data because the end of the stream has been
  11229. reached]]>
  11230. </doc>
  11231. </method>
  11232. <method name="readFully"
  11233. abstract="false" native="false" synchronized="false"
  11234. static="false" final="false" visibility="public"
  11235. deprecated="not deprecated">
  11236. <param name="position" type="long"/>
  11237. <param name="buffer" type="byte[]"/>
  11238. <param name="offset" type="int"/>
  11239. <param name="length" type="int"/>
  11240. <exception name="IOException" type="java.io.IOException"/>
  11241. <doc>
  11242. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  11243. Continues to read until <code>length</code> bytes have been read.
  11244. @param position position in the input stream to seek
  11245. @param buffer buffer into which data is read
  11246. @param offset offset into the buffer in which data is written
  11247. @param length the number of bytes to read
  11248. @throws IOException IO problems
  11249. @throws EOFException If the end of stream is reached while reading.
  11250. If an exception is thrown an undetermined number
  11251. of bytes in the buffer may have been written.]]>
  11252. </doc>
  11253. </method>
  11254. <method name="readFully"
  11255. abstract="false" native="false" synchronized="false"
  11256. static="false" final="false" visibility="public"
  11257. deprecated="not deprecated">
  11258. <param name="position" type="long"/>
  11259. <param name="buffer" type="byte[]"/>
  11260. <exception name="IOException" type="java.io.IOException"/>
  11261. <doc>
  11262. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  11263. </doc>
  11264. </method>
  11265. <method name="seekToNewSource" return="boolean"
  11266. abstract="false" native="false" synchronized="false"
  11267. static="false" final="false" visibility="public"
  11268. deprecated="not deprecated">
  11269. <param name="targetPos" type="long"/>
  11270. <exception name="IOException" type="java.io.IOException"/>
  11271. <doc>
  11272. <![CDATA[Seek to the given position on an alternate copy of the data.
  11273. @param targetPos position to seek to
  11274. @return true if a new source is found, false otherwise]]>
  11275. </doc>
  11276. </method>
  11277. <method name="read" return="int"
  11278. abstract="false" native="false" synchronized="false"
  11279. static="false" final="false" visibility="public"
  11280. deprecated="not deprecated">
  11281. <param name="buf" type="java.nio.ByteBuffer"/>
  11282. <exception name="IOException" type="java.io.IOException"/>
  11283. </method>
  11284. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  11285. abstract="false" native="false" synchronized="false"
  11286. static="false" final="false" visibility="public"
  11287. deprecated="not deprecated">
  11288. <exception name="IOException" type="java.io.IOException"/>
  11289. </method>
  11290. <method name="setReadahead"
  11291. abstract="false" native="false" synchronized="false"
  11292. static="false" final="false" visibility="public"
  11293. deprecated="not deprecated">
  11294. <param name="readahead" type="java.lang.Long"/>
  11295. <exception name="IOException" type="java.io.IOException"/>
  11296. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11297. </method>
  11298. <method name="setDropBehind"
  11299. abstract="false" native="false" synchronized="false"
  11300. static="false" final="false" visibility="public"
  11301. deprecated="not deprecated">
  11302. <param name="dropBehind" type="java.lang.Boolean"/>
  11303. <exception name="IOException" type="java.io.IOException"/>
  11304. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11305. </method>
  11306. <method name="read" return="java.nio.ByteBuffer"
  11307. abstract="false" native="false" synchronized="false"
  11308. static="false" final="false" visibility="public"
  11309. deprecated="not deprecated">
  11310. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  11311. <param name="maxLength" type="int"/>
  11312. <param name="opts" type="java.util.EnumSet"/>
  11313. <exception name="IOException" type="java.io.IOException"/>
  11314. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11315. </method>
  11316. <method name="read" return="java.nio.ByteBuffer"
  11317. abstract="false" native="false" synchronized="false"
  11318. static="false" final="true" visibility="public"
  11319. deprecated="not deprecated">
  11320. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  11321. <param name="maxLength" type="int"/>
  11322. <exception name="IOException" type="java.io.IOException"/>
  11323. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11324. </method>
  11325. <method name="releaseBuffer"
  11326. abstract="false" native="false" synchronized="false"
  11327. static="false" final="false" visibility="public"
  11328. deprecated="not deprecated">
  11329. <param name="buffer" type="java.nio.ByteBuffer"/>
  11330. </method>
  11331. <method name="unbuffer"
  11332. abstract="false" native="false" synchronized="false"
  11333. static="false" final="false" visibility="public"
  11334. deprecated="not deprecated">
  11335. </method>
  11336. <method name="toString" return="java.lang.String"
  11337. abstract="false" native="false" synchronized="false"
  11338. static="false" final="false" visibility="public"
  11339. deprecated="not deprecated">
  11340. <doc>
  11341. <![CDATA[String value. Includes the string value of the inner stream
  11342. @return the stream]]>
  11343. </doc>
  11344. </method>
  11345. <doc>
  11346. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  11347. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  11348. </doc>
  11349. </class>
  11350. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  11351. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  11352. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  11353. abstract="false"
  11354. static="false" final="false" visibility="public"
  11355. deprecated="not deprecated">
  11356. <implements name="org.apache.hadoop.fs.Syncable"/>
  11357. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  11358. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  11359. static="false" final="false" visibility="public"
  11360. deprecated="not deprecated">
  11361. <exception name="IOException" type="java.io.IOException"/>
  11362. </constructor>
  11363. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  11364. static="false" final="false" visibility="public"
  11365. deprecated="not deprecated">
  11366. <exception name="IOException" type="java.io.IOException"/>
  11367. </constructor>
  11368. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  11369. static="false" final="false" visibility="public"
  11370. deprecated="not deprecated">
  11371. <exception name="IOException" type="java.io.IOException"/>
  11372. </constructor>
  11373. <method name="getPos" return="long"
  11374. abstract="false" native="false" synchronized="false"
  11375. static="false" final="false" visibility="public"
  11376. deprecated="not deprecated">
  11377. <exception name="IOException" type="java.io.IOException"/>
  11378. <doc>
  11379. <![CDATA[Get the current position in the output stream.
  11380. @return the current position in the output stream]]>
  11381. </doc>
  11382. </method>
  11383. <method name="close"
  11384. abstract="false" native="false" synchronized="false"
  11385. static="false" final="false" visibility="public"
  11386. deprecated="not deprecated">
  11387. <exception name="IOException" type="java.io.IOException"/>
  11388. <doc>
  11389. <![CDATA[Close the underlying output stream.]]>
  11390. </doc>
  11391. </method>
  11392. <method name="sync"
  11393. abstract="false" native="false" synchronized="false"
  11394. static="false" final="false" visibility="public"
  11395. deprecated="not deprecated">
  11396. <exception name="IOException" type="java.io.IOException"/>
  11397. </method>
  11398. <method name="hflush"
  11399. abstract="false" native="false" synchronized="false"
  11400. static="false" final="false" visibility="public"
  11401. deprecated="not deprecated">
  11402. <exception name="IOException" type="java.io.IOException"/>
  11403. </method>
  11404. <method name="hsync"
  11405. abstract="false" native="false" synchronized="false"
  11406. static="false" final="false" visibility="public"
  11407. deprecated="not deprecated">
  11408. <exception name="IOException" type="java.io.IOException"/>
  11409. </method>
  11410. <method name="setDropBehind"
  11411. abstract="false" native="false" synchronized="false"
  11412. static="false" final="false" visibility="public"
  11413. deprecated="not deprecated">
  11414. <param name="dropBehind" type="java.lang.Boolean"/>
  11415. <exception name="IOException" type="java.io.IOException"/>
  11416. </method>
  11417. <doc>
  11418. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  11419. </doc>
  11420. </class>
  11421. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  11422. <!-- start class org.apache.hadoop.fs.FSError -->
  11423. <class name="FSError" extends="java.lang.Error"
  11424. abstract="false"
  11425. static="false" final="false" visibility="public"
  11426. deprecated="not deprecated">
  11427. <doc>
  11428. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  11429. in the native filesystem.]]>
  11430. </doc>
  11431. </class>
  11432. <!-- end class org.apache.hadoop.fs.FSError -->
  11433. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  11434. <class name="FSInputStream" extends="java.io.InputStream"
  11435. abstract="true"
  11436. static="false" final="false" visibility="public"
  11437. deprecated="not deprecated">
  11438. <implements name="org.apache.hadoop.fs.Seekable"/>
  11439. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  11440. <constructor name="FSInputStream"
  11441. static="false" final="false" visibility="public"
  11442. deprecated="not deprecated">
  11443. </constructor>
  11444. <method name="seek"
  11445. abstract="true" native="false" synchronized="false"
  11446. static="false" final="false" visibility="public"
  11447. deprecated="not deprecated">
  11448. <param name="pos" type="long"/>
  11449. <exception name="IOException" type="java.io.IOException"/>
  11450. <doc>
  11451. <![CDATA[Seek to the given offset from the start of the file.
  11452. The next read() will be from that location. Can't
  11453. seek past the end of the file.]]>
  11454. </doc>
  11455. </method>
  11456. <method name="getPos" return="long"
  11457. abstract="true" native="false" synchronized="false"
  11458. static="false" final="false" visibility="public"
  11459. deprecated="not deprecated">
  11460. <exception name="IOException" type="java.io.IOException"/>
  11461. <doc>
  11462. <![CDATA[Return the current offset from the start of the file]]>
  11463. </doc>
  11464. </method>
  11465. <method name="seekToNewSource" return="boolean"
  11466. abstract="true" native="false" synchronized="false"
  11467. static="false" final="false" visibility="public"
  11468. deprecated="not deprecated">
  11469. <param name="targetPos" type="long"/>
  11470. <exception name="IOException" type="java.io.IOException"/>
  11471. <doc>
  11472. <![CDATA[Seeks a different copy of the data. Returns true if
  11473. found a new source, false otherwise.]]>
  11474. </doc>
  11475. </method>
  11476. <method name="read" return="int"
  11477. abstract="false" native="false" synchronized="false"
  11478. static="false" final="false" visibility="public"
  11479. deprecated="not deprecated">
  11480. <param name="position" type="long"/>
  11481. <param name="buffer" type="byte[]"/>
  11482. <param name="offset" type="int"/>
  11483. <param name="length" type="int"/>
  11484. <exception name="IOException" type="java.io.IOException"/>
  11485. </method>
  11486. <method name="validatePositionedReadArgs"
  11487. abstract="false" native="false" synchronized="false"
  11488. static="false" final="false" visibility="protected"
  11489. deprecated="not deprecated">
  11490. <param name="position" type="long"/>
  11491. <param name="buffer" type="byte[]"/>
  11492. <param name="offset" type="int"/>
  11493. <param name="length" type="int"/>
  11494. <exception name="EOFException" type="java.io.EOFException"/>
  11495. <doc>
  11496. <![CDATA[Validation code, available for use in subclasses.
  11497. @param position position: if negative an EOF exception is raised
  11498. @param buffer destination buffer
  11499. @param offset offset within the buffer
  11500. @param length length of bytes to read
  11501. @throws EOFException if the position is negative
  11502. @throws IndexOutOfBoundsException if there isn't space for the amount of
  11503. data requested.
  11504. @throws IllegalArgumentException other arguments are invalid.]]>
  11505. </doc>
  11506. </method>
  11507. <method name="readFully"
  11508. abstract="false" native="false" synchronized="false"
  11509. static="false" final="false" visibility="public"
  11510. deprecated="not deprecated">
  11511. <param name="position" type="long"/>
  11512. <param name="buffer" type="byte[]"/>
  11513. <param name="offset" type="int"/>
  11514. <param name="length" type="int"/>
  11515. <exception name="IOException" type="java.io.IOException"/>
  11516. </method>
  11517. <method name="readFully"
  11518. abstract="false" native="false" synchronized="false"
  11519. static="false" final="false" visibility="public"
  11520. deprecated="not deprecated">
  11521. <param name="position" type="long"/>
  11522. <param name="buffer" type="byte[]"/>
  11523. <exception name="IOException" type="java.io.IOException"/>
  11524. </method>
  11525. <doc>
  11526. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  11527. of RAF-style seek ability.]]>
  11528. </doc>
  11529. </class>
  11530. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  11531. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  11532. <class name="FsServerDefaults" extends="java.lang.Object"
  11533. abstract="false"
  11534. static="false" final="false" visibility="public"
  11535. deprecated="not deprecated">
  11536. <implements name="org.apache.hadoop.io.Writable"/>
  11537. <constructor name="FsServerDefaults"
  11538. static="false" final="false" visibility="public"
  11539. deprecated="not deprecated">
  11540. </constructor>
  11541. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  11542. static="false" final="false" visibility="public"
  11543. deprecated="not deprecated">
  11544. </constructor>
  11545. <method name="getBlockSize" return="long"
  11546. abstract="false" native="false" synchronized="false"
  11547. static="false" final="false" visibility="public"
  11548. deprecated="not deprecated">
  11549. </method>
  11550. <method name="getBytesPerChecksum" return="int"
  11551. abstract="false" native="false" synchronized="false"
  11552. static="false" final="false" visibility="public"
  11553. deprecated="not deprecated">
  11554. </method>
  11555. <method name="getWritePacketSize" return="int"
  11556. abstract="false" native="false" synchronized="false"
  11557. static="false" final="false" visibility="public"
  11558. deprecated="not deprecated">
  11559. </method>
  11560. <method name="getReplication" return="short"
  11561. abstract="false" native="false" synchronized="false"
  11562. static="false" final="false" visibility="public"
  11563. deprecated="not deprecated">
  11564. </method>
  11565. <method name="getFileBufferSize" return="int"
  11566. abstract="false" native="false" synchronized="false"
  11567. static="false" final="false" visibility="public"
  11568. deprecated="not deprecated">
  11569. </method>
  11570. <method name="getEncryptDataTransfer" return="boolean"
  11571. abstract="false" native="false" synchronized="false"
  11572. static="false" final="false" visibility="public"
  11573. deprecated="not deprecated">
  11574. </method>
  11575. <method name="getTrashInterval" return="long"
  11576. abstract="false" native="false" synchronized="false"
  11577. static="false" final="false" visibility="public"
  11578. deprecated="not deprecated">
  11579. </method>
  11580. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  11581. abstract="false" native="false" synchronized="false"
  11582. static="false" final="false" visibility="public"
  11583. deprecated="not deprecated">
  11584. </method>
  11585. <doc>
  11586. <![CDATA[Provides server default configuration values to clients.]]>
  11587. </doc>
  11588. </class>
  11589. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  11590. <!-- start class org.apache.hadoop.fs.FsStatus -->
  11591. <class name="FsStatus" extends="java.lang.Object"
  11592. abstract="false"
  11593. static="false" final="false" visibility="public"
  11594. deprecated="not deprecated">
  11595. <implements name="org.apache.hadoop.io.Writable"/>
  11596. <constructor name="FsStatus" type="long, long, long"
  11597. static="false" final="false" visibility="public"
  11598. deprecated="not deprecated">
  11599. <doc>
  11600. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  11601. </doc>
  11602. </constructor>
  11603. <method name="getCapacity" return="long"
  11604. abstract="false" native="false" synchronized="false"
  11605. static="false" final="false" visibility="public"
  11606. deprecated="not deprecated">
  11607. <doc>
  11608. <![CDATA[Return the capacity in bytes of the file system]]>
  11609. </doc>
  11610. </method>
  11611. <method name="getUsed" return="long"
  11612. abstract="false" native="false" synchronized="false"
  11613. static="false" final="false" visibility="public"
  11614. deprecated="not deprecated">
  11615. <doc>
  11616. <![CDATA[Return the number of bytes used on the file system]]>
  11617. </doc>
  11618. </method>
  11619. <method name="getRemaining" return="long"
  11620. abstract="false" native="false" synchronized="false"
  11621. static="false" final="false" visibility="public"
  11622. deprecated="not deprecated">
  11623. <doc>
  11624. <![CDATA[Return the number of remaining bytes on the file system]]>
  11625. </doc>
  11626. </method>
  11627. <method name="write"
  11628. abstract="false" native="false" synchronized="false"
  11629. static="false" final="false" visibility="public"
  11630. deprecated="not deprecated">
  11631. <param name="out" type="java.io.DataOutput"/>
  11632. <exception name="IOException" type="java.io.IOException"/>
  11633. </method>
  11634. <method name="readFields"
  11635. abstract="false" native="false" synchronized="false"
  11636. static="false" final="false" visibility="public"
  11637. deprecated="not deprecated">
  11638. <param name="in" type="java.io.DataInput"/>
  11639. <exception name="IOException" type="java.io.IOException"/>
  11640. </method>
  11641. <doc>
  11642. <![CDATA[This class is used to represent the capacity, free and used space on a
  11643. {@link FileSystem}.]]>
  11644. </doc>
  11645. </class>
  11646. <!-- end class org.apache.hadoop.fs.FsStatus -->
  11647. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  11648. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  11649. abstract="false"
  11650. static="false" final="true" visibility="public"
  11651. deprecated="not deprecated">
  11652. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  11653. abstract="false" native="false" synchronized="false"
  11654. static="true" final="false" visibility="public"
  11655. deprecated="not deprecated">
  11656. </method>
  11657. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  11658. abstract="false" native="false" synchronized="false"
  11659. static="true" final="false" visibility="public"
  11660. deprecated="not deprecated">
  11661. <param name="name" type="java.lang.String"/>
  11662. </method>
  11663. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  11664. abstract="false" native="false" synchronized="true"
  11665. static="false" final="false" visibility="public"
  11666. deprecated="not deprecated">
  11667. <param name="name" type="java.lang.String"/>
  11668. <doc>
  11669. <![CDATA[Get the StorageStatistics object with the given name.
  11670. @param name The storage statistics object name.
  11671. @return The StorageStatistics object with the given name, or
  11672. null if there is none.]]>
  11673. </doc>
  11674. </method>
  11675. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  11676. abstract="false" native="false" synchronized="true"
  11677. static="false" final="false" visibility="public"
  11678. deprecated="not deprecated">
  11679. <param name="name" type="java.lang.String"/>
  11680. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  11681. <doc>
  11682. <![CDATA[Create or return the StorageStatistics object with the given name.
  11683. @param name The storage statistics object name.
  11684. @param provider An object which can create a new StorageStatistics
  11685. object if needed.
  11686. @return The StorageStatistics object with the given name.
  11687. @throws RuntimeException If the StorageStatisticsProvider provides a null
  11688. object or a new StorageStatistics object with the
  11689. wrong name.]]>
  11690. </doc>
  11691. </method>
  11692. <method name="reset"
  11693. abstract="false" native="false" synchronized="true"
  11694. static="false" final="false" visibility="public"
  11695. deprecated="not deprecated">
  11696. <doc>
  11697. <![CDATA[Reset all global storage statistics.]]>
  11698. </doc>
  11699. </method>
  11700. <method name="iterator" return="java.util.Iterator"
  11701. abstract="false" native="false" synchronized="true"
  11702. static="false" final="false" visibility="public"
  11703. deprecated="not deprecated">
  11704. <doc>
  11705. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  11706. statistics objects.]]>
  11707. </doc>
  11708. </method>
  11709. <doc>
  11710. <![CDATA[Stores global storage statistics objects.]]>
  11711. </doc>
  11712. </class>
  11713. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  11714. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  11715. <class name="GlobFilter" extends="java.lang.Object"
  11716. abstract="false"
  11717. static="false" final="false" visibility="public"
  11718. deprecated="not deprecated">
  11719. <implements name="org.apache.hadoop.fs.PathFilter"/>
  11720. <constructor name="GlobFilter" type="java.lang.String"
  11721. static="false" final="false" visibility="public"
  11722. deprecated="not deprecated">
  11723. <exception name="IOException" type="java.io.IOException"/>
  11724. <doc>
  11725. <![CDATA[Creates a glob filter with the specified file pattern.
  11726. @param filePattern the file pattern.
  11727. @throws IOException thrown if the file pattern is incorrect.]]>
  11728. </doc>
  11729. </constructor>
  11730. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  11731. static="false" final="false" visibility="public"
  11732. deprecated="not deprecated">
  11733. <exception name="IOException" type="java.io.IOException"/>
  11734. <doc>
  11735. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  11736. @param filePattern the file pattern.
  11737. @param filter user filter in addition to the glob pattern.
  11738. @throws IOException thrown if the file pattern is incorrect.]]>
  11739. </doc>
  11740. </constructor>
  11741. <method name="hasPattern" return="boolean"
  11742. abstract="false" native="false" synchronized="false"
  11743. static="false" final="false" visibility="public"
  11744. deprecated="not deprecated">
  11745. </method>
  11746. <method name="accept" return="boolean"
  11747. abstract="false" native="false" synchronized="false"
  11748. static="false" final="false" visibility="public"
  11749. deprecated="not deprecated">
  11750. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11751. </method>
  11752. <doc>
  11753. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  11754. </doc>
  11755. </class>
  11756. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  11757. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  11758. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  11759. abstract="false"
  11760. static="false" final="false" visibility="public"
  11761. deprecated="not deprecated">
  11762. <constructor name="InvalidPathException" type="java.lang.String"
  11763. static="false" final="false" visibility="public"
  11764. deprecated="not deprecated">
  11765. <doc>
  11766. <![CDATA[Constructs exception with the specified detail message.
  11767. @param path invalid path.]]>
  11768. </doc>
  11769. </constructor>
  11770. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  11771. static="false" final="false" visibility="public"
  11772. deprecated="not deprecated">
  11773. <doc>
  11774. <![CDATA[Constructs exception with the specified detail message.
  11775. @param path invalid path.
  11776. @param reason Reason <code>path</code> is invalid]]>
  11777. </doc>
  11778. </constructor>
  11779. <doc>
  11780. <![CDATA[Path string is invalid either because it has invalid characters or due to
  11781. other file system specific reasons.]]>
  11782. </doc>
  11783. </class>
  11784. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  11785. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  11786. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  11787. abstract="false"
  11788. static="false" final="false" visibility="public"
  11789. deprecated="not deprecated">
  11790. <constructor name="LocalFileSystem"
  11791. static="false" final="false" visibility="public"
  11792. deprecated="not deprecated">
  11793. </constructor>
  11794. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11795. static="false" final="false" visibility="public"
  11796. deprecated="not deprecated">
  11797. </constructor>
  11798. <method name="initialize"
  11799. abstract="false" native="false" synchronized="false"
  11800. static="false" final="false" visibility="public"
  11801. deprecated="not deprecated">
  11802. <param name="name" type="java.net.URI"/>
  11803. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11804. <exception name="IOException" type="java.io.IOException"/>
  11805. </method>
  11806. <method name="getScheme" return="java.lang.String"
  11807. abstract="false" native="false" synchronized="false"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <doc>
  11811. <![CDATA[Return the protocol scheme for the FileSystem.
  11812. <p/>
  11813. @return <code>file</code>]]>
  11814. </doc>
  11815. </method>
  11816. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  11817. abstract="false" native="false" synchronized="false"
  11818. static="false" final="false" visibility="public"
  11819. deprecated="not deprecated">
  11820. </method>
  11821. <method name="pathToFile" return="java.io.File"
  11822. abstract="false" native="false" synchronized="false"
  11823. static="false" final="false" visibility="public"
  11824. deprecated="not deprecated">
  11825. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11826. <doc>
  11827. <![CDATA[Convert a path to a File.]]>
  11828. </doc>
  11829. </method>
  11830. <method name="copyFromLocalFile"
  11831. abstract="false" native="false" synchronized="false"
  11832. static="false" final="false" visibility="public"
  11833. deprecated="not deprecated">
  11834. <param name="delSrc" type="boolean"/>
  11835. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11836. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11837. <exception name="IOException" type="java.io.IOException"/>
  11838. </method>
  11839. <method name="copyToLocalFile"
  11840. abstract="false" native="false" synchronized="false"
  11841. static="false" final="false" visibility="public"
  11842. deprecated="not deprecated">
  11843. <param name="delSrc" type="boolean"/>
  11844. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11845. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11846. <exception name="IOException" type="java.io.IOException"/>
  11847. </method>
  11848. <method name="reportChecksumFailure" return="boolean"
  11849. abstract="false" native="false" synchronized="false"
  11850. static="false" final="false" visibility="public"
  11851. deprecated="not deprecated">
  11852. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11853. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  11854. <param name="inPos" type="long"/>
  11855. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  11856. <param name="sumsPos" type="long"/>
  11857. <doc>
  11858. <![CDATA[Moves files to a bad file directory on the same device, so that their
  11859. storage will not be reused.]]>
  11860. </doc>
  11861. </method>
  11862. <method name="supportsSymlinks" return="boolean"
  11863. abstract="false" native="false" synchronized="false"
  11864. static="false" final="false" visibility="public"
  11865. deprecated="not deprecated">
  11866. </method>
  11867. <method name="createSymlink"
  11868. abstract="false" native="false" synchronized="false"
  11869. static="false" final="false" visibility="public"
  11870. deprecated="not deprecated">
  11871. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11872. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11873. <param name="createParent" type="boolean"/>
  11874. <exception name="IOException" type="java.io.IOException"/>
  11875. </method>
  11876. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11877. abstract="false" native="false" synchronized="false"
  11878. static="false" final="false" visibility="public"
  11879. deprecated="not deprecated">
  11880. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11881. <exception name="IOException" type="java.io.IOException"/>
  11882. </method>
  11883. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11884. abstract="false" native="false" synchronized="false"
  11885. static="false" final="false" visibility="public"
  11886. deprecated="not deprecated">
  11887. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11888. <exception name="IOException" type="java.io.IOException"/>
  11889. </method>
  11890. <doc>
  11891. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  11892. </doc>
  11893. </class>
  11894. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  11895. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  11896. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  11897. abstract="false"
  11898. static="false" final="false" visibility="public"
  11899. deprecated="not deprecated">
  11900. <constructor name="LocatedFileStatus"
  11901. static="false" final="false" visibility="public"
  11902. deprecated="not deprecated">
  11903. </constructor>
  11904. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  11905. static="false" final="false" visibility="public"
  11906. deprecated="not deprecated">
  11907. <exception name="IOException" type="java.io.IOException"/>
  11908. <doc>
  11909. <![CDATA[Constructor
  11910. @param stat a file status
  11911. @param locations a file's block locations]]>
  11912. </doc>
  11913. </constructor>
  11914. <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[]"
  11915. static="false" final="false" visibility="public"
  11916. deprecated="not deprecated">
  11917. <doc>
  11918. <![CDATA[Constructor
  11919. @param length a file's length
  11920. @param isdir if the path is a directory
  11921. @param block_replication the file's replication factor
  11922. @param blocksize a file's block size
  11923. @param modification_time a file's modification time
  11924. @param access_time a file's access time
  11925. @param permission a file's permission
  11926. @param owner a file's owner
  11927. @param group a file's group
  11928. @param symlink symlink if the path is a symbolic link
  11929. @param path the path's qualified name
  11930. @param locations a file's block locations]]>
  11931. </doc>
  11932. </constructor>
  11933. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  11934. abstract="false" native="false" synchronized="false"
  11935. static="false" final="false" visibility="public"
  11936. deprecated="not deprecated">
  11937. <doc>
  11938. <![CDATA[Get the file's block locations
  11939. @return the file's block locations]]>
  11940. </doc>
  11941. </method>
  11942. <method name="compareTo" return="int"
  11943. abstract="false" native="false" synchronized="false"
  11944. static="false" final="false" visibility="public"
  11945. deprecated="not deprecated">
  11946. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  11947. <doc>
  11948. <![CDATA[Compare this FileStatus to another FileStatus
  11949. @param o the FileStatus to be compared.
  11950. @return a negative integer, zero, or a positive integer as this object
  11951. is less than, equal to, or greater than the specified object.]]>
  11952. </doc>
  11953. </method>
  11954. <method name="equals" return="boolean"
  11955. abstract="false" native="false" synchronized="false"
  11956. static="false" final="false" visibility="public"
  11957. deprecated="not deprecated">
  11958. <param name="o" type="java.lang.Object"/>
  11959. <doc>
  11960. <![CDATA[Compare if this object is equal to another object
  11961. @param o the object to be compared.
  11962. @return true if two file status has the same path name; false if not.]]>
  11963. </doc>
  11964. </method>
  11965. <method name="hashCode" return="int"
  11966. abstract="false" native="false" synchronized="false"
  11967. static="false" final="false" visibility="public"
  11968. deprecated="not deprecated">
  11969. <doc>
  11970. <![CDATA[Returns a hash code value for the object, which is defined as
  11971. the hash code of the path name.
  11972. @return a hash code value for the path name.]]>
  11973. </doc>
  11974. </method>
  11975. <doc>
  11976. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  11977. </doc>
  11978. </class>
  11979. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  11980. <!-- start class org.apache.hadoop.fs.Options -->
  11981. <class name="Options" extends="java.lang.Object"
  11982. abstract="false"
  11983. static="false" final="true" visibility="public"
  11984. deprecated="not deprecated">
  11985. <constructor name="Options"
  11986. static="false" final="false" visibility="public"
  11987. deprecated="not deprecated">
  11988. </constructor>
  11989. <doc>
  11990. <![CDATA[This class contains options related to file system operations.]]>
  11991. </doc>
  11992. </class>
  11993. <!-- end class org.apache.hadoop.fs.Options -->
  11994. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  11995. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  11996. abstract="false"
  11997. static="false" final="false" visibility="public"
  11998. deprecated="not deprecated">
  11999. <constructor name="ParentNotDirectoryException"
  12000. static="false" final="false" visibility="public"
  12001. deprecated="not deprecated">
  12002. </constructor>
  12003. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  12004. static="false" final="false" visibility="public"
  12005. deprecated="not deprecated">
  12006. </constructor>
  12007. <doc>
  12008. <![CDATA[Indicates that the parent of specified Path is not a directory
  12009. as expected.]]>
  12010. </doc>
  12011. </class>
  12012. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  12013. <!-- start class org.apache.hadoop.fs.Path -->
  12014. <class name="Path" extends="java.lang.Object"
  12015. abstract="false"
  12016. static="false" final="false" visibility="public"
  12017. deprecated="not deprecated">
  12018. <implements name="java.lang.Comparable"/>
  12019. <constructor name="Path" type="java.lang.String, java.lang.String"
  12020. static="false" final="false" visibility="public"
  12021. deprecated="not deprecated">
  12022. <doc>
  12023. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12024. @param parent the parent path
  12025. @param child the child path]]>
  12026. </doc>
  12027. </constructor>
  12028. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  12029. static="false" final="false" visibility="public"
  12030. deprecated="not deprecated">
  12031. <doc>
  12032. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12033. @param parent the parent path
  12034. @param child the child path]]>
  12035. </doc>
  12036. </constructor>
  12037. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  12038. static="false" final="false" visibility="public"
  12039. deprecated="not deprecated">
  12040. <doc>
  12041. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12042. @param parent the parent path
  12043. @param child the child path]]>
  12044. </doc>
  12045. </constructor>
  12046. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  12047. static="false" final="false" visibility="public"
  12048. deprecated="not deprecated">
  12049. <doc>
  12050. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  12051. @param parent the parent path
  12052. @param child the child path]]>
  12053. </doc>
  12054. </constructor>
  12055. <constructor name="Path" type="java.lang.String"
  12056. static="false" final="false" visibility="public"
  12057. deprecated="not deprecated">
  12058. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12059. <doc>
  12060. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  12061. unescaped elements and some additional normalization.
  12062. @param pathString the path string]]>
  12063. </doc>
  12064. </constructor>
  12065. <constructor name="Path" type="java.net.URI"
  12066. static="false" final="false" visibility="public"
  12067. deprecated="not deprecated">
  12068. <doc>
  12069. <![CDATA[Construct a path from a URI
  12070. @param aUri the source URI]]>
  12071. </doc>
  12072. </constructor>
  12073. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  12074. static="false" final="false" visibility="public"
  12075. deprecated="not deprecated">
  12076. <doc>
  12077. <![CDATA[Construct a Path from components.
  12078. @param scheme the scheme
  12079. @param authority the authority
  12080. @param path the path]]>
  12081. </doc>
  12082. </constructor>
  12083. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  12084. abstract="false" native="false" synchronized="false"
  12085. static="true" final="false" visibility="public"
  12086. deprecated="not deprecated">
  12087. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12088. <doc>
  12089. <![CDATA[Return a version of the given Path without the scheme information.
  12090. @param path the source Path
  12091. @return a copy of this Path without the scheme information]]>
  12092. </doc>
  12093. </method>
  12094. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  12095. abstract="false" native="false" synchronized="false"
  12096. static="true" final="false" visibility="public"
  12097. deprecated="not deprecated">
  12098. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  12099. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  12100. <doc>
  12101. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  12102. The returned path has the scheme and authority of the first path. On
  12103. Windows, the drive specification in the second path is discarded.
  12104. @param path1 the first path
  12105. @param path2 the second path, to be appended relative to path1
  12106. @return the merged path]]>
  12107. </doc>
  12108. </method>
  12109. <method name="isWindowsAbsolutePath" return="boolean"
  12110. abstract="false" native="false" synchronized="false"
  12111. static="true" final="false" visibility="public"
  12112. deprecated="not deprecated">
  12113. <param name="pathString" type="java.lang.String"/>
  12114. <param name="slashed" type="boolean"/>
  12115. <doc>
  12116. <![CDATA[Determine whether a given path string represents an absolute path on
  12117. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  12118. @param pathString the path string to evaluate
  12119. @param slashed true if the given path is prefixed with "/"
  12120. @return true if the supplied path looks like an absolute path with a Windows
  12121. drive-specifier]]>
  12122. </doc>
  12123. </method>
  12124. <method name="toUri" return="java.net.URI"
  12125. abstract="false" native="false" synchronized="false"
  12126. static="false" final="false" visibility="public"
  12127. deprecated="not deprecated">
  12128. <doc>
  12129. <![CDATA[Convert this Path to a URI.
  12130. @return this Path as a URI]]>
  12131. </doc>
  12132. </method>
  12133. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  12134. abstract="false" native="false" synchronized="false"
  12135. static="false" final="false" visibility="public"
  12136. deprecated="not deprecated">
  12137. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12138. <exception name="IOException" type="java.io.IOException"/>
  12139. <doc>
  12140. <![CDATA[Return the FileSystem that owns this Path.
  12141. @param conf the configuration to use when resolving the FileSystem
  12142. @return the FileSystem that owns this Path
  12143. @throws java.io.IOException thrown if there's an issue resolving the
  12144. FileSystem]]>
  12145. </doc>
  12146. </method>
  12147. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  12148. abstract="false" native="false" synchronized="false"
  12149. static="false" final="false" visibility="public"
  12150. deprecated="not deprecated">
  12151. <doc>
  12152. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  12153. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  12154. is null.
  12155. @return whether the path is absolute and the URI has no scheme nor
  12156. authority parts]]>
  12157. </doc>
  12158. </method>
  12159. <method name="isUriPathAbsolute" return="boolean"
  12160. abstract="false" native="false" synchronized="false"
  12161. static="false" final="false" visibility="public"
  12162. deprecated="not deprecated">
  12163. <doc>
  12164. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  12165. absolute.
  12166. @return whether this URI's path is absolute]]>
  12167. </doc>
  12168. </method>
  12169. <method name="isAbsolute" return="boolean"
  12170. abstract="false" native="false" synchronized="false"
  12171. static="false" final="false" visibility="public"
  12172. deprecated="not deprecated">
  12173. <doc>
  12174. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  12175. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  12176. @return whether this URI's path is absolute]]>
  12177. </doc>
  12178. </method>
  12179. <method name="isRoot" return="boolean"
  12180. abstract="false" native="false" synchronized="false"
  12181. static="false" final="false" visibility="public"
  12182. deprecated="not deprecated">
  12183. <doc>
  12184. <![CDATA[Returns true if and only if this path represents the root of a file system.
  12185. @return true if and only if this path represents the root of a file system]]>
  12186. </doc>
  12187. </method>
  12188. <method name="getName" return="java.lang.String"
  12189. abstract="false" native="false" synchronized="false"
  12190. static="false" final="false" visibility="public"
  12191. deprecated="not deprecated">
  12192. <doc>
  12193. <![CDATA[Returns the final component of this path.
  12194. @return the final component of this path]]>
  12195. </doc>
  12196. </method>
  12197. <method name="getParent" return="org.apache.hadoop.fs.Path"
  12198. abstract="false" native="false" synchronized="false"
  12199. static="false" final="false" visibility="public"
  12200. deprecated="not deprecated">
  12201. <doc>
  12202. <![CDATA[Returns the parent of a path or null if at root.
  12203. @return the parent of a path or null if at root]]>
  12204. </doc>
  12205. </method>
  12206. <method name="suffix" return="org.apache.hadoop.fs.Path"
  12207. abstract="false" native="false" synchronized="false"
  12208. static="false" final="false" visibility="public"
  12209. deprecated="not deprecated">
  12210. <param name="suffix" type="java.lang.String"/>
  12211. <doc>
  12212. <![CDATA[Adds a suffix to the final name in the path.
  12213. @param suffix the suffix to add
  12214. @return a new path with the suffix added]]>
  12215. </doc>
  12216. </method>
  12217. <method name="toString" return="java.lang.String"
  12218. abstract="false" native="false" synchronized="false"
  12219. static="false" final="false" visibility="public"
  12220. deprecated="not deprecated">
  12221. </method>
  12222. <method name="equals" return="boolean"
  12223. abstract="false" native="false" synchronized="false"
  12224. static="false" final="false" visibility="public"
  12225. deprecated="not deprecated">
  12226. <param name="o" type="java.lang.Object"/>
  12227. </method>
  12228. <method name="hashCode" return="int"
  12229. abstract="false" native="false" synchronized="false"
  12230. static="false" final="false" visibility="public"
  12231. deprecated="not deprecated">
  12232. </method>
  12233. <method name="compareTo" return="int"
  12234. abstract="false" native="false" synchronized="false"
  12235. static="false" final="false" visibility="public"
  12236. deprecated="not deprecated">
  12237. <param name="o" type="java.lang.Object"/>
  12238. </method>
  12239. <method name="depth" return="int"
  12240. abstract="false" native="false" synchronized="false"
  12241. static="false" final="false" visibility="public"
  12242. deprecated="not deprecated">
  12243. <doc>
  12244. <![CDATA[Returns the number of elements in this path.
  12245. @return the number of elements in this path]]>
  12246. </doc>
  12247. </method>
  12248. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  12249. abstract="false" native="false" synchronized="false"
  12250. static="false" final="false" visibility="public"
  12251. deprecated="use {@link #makeQualified(URI, Path)}">
  12252. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12253. <doc>
  12254. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  12255. directory.
  12256. @param fs the target FileSystem
  12257. @return a qualified path object for the FileSystem's working directory
  12258. @deprecated use {@link #makeQualified(URI, Path)}]]>
  12259. </doc>
  12260. </method>
  12261. <field name="SEPARATOR" type="java.lang.String"
  12262. transient="false" volatile="false"
  12263. static="true" final="true" visibility="public"
  12264. deprecated="not deprecated">
  12265. <doc>
  12266. <![CDATA[The directory separator, a slash.]]>
  12267. </doc>
  12268. </field>
  12269. <field name="SEPARATOR_CHAR" type="char"
  12270. transient="false" volatile="false"
  12271. static="true" final="true" visibility="public"
  12272. deprecated="not deprecated">
  12273. <doc>
  12274. <![CDATA[The directory separator, a slash, as a character.]]>
  12275. </doc>
  12276. </field>
  12277. <field name="CUR_DIR" type="java.lang.String"
  12278. transient="false" volatile="false"
  12279. static="true" final="true" visibility="public"
  12280. deprecated="not deprecated">
  12281. <doc>
  12282. <![CDATA[The current directory, ".".]]>
  12283. </doc>
  12284. </field>
  12285. <field name="WINDOWS" type="boolean"
  12286. transient="false" volatile="false"
  12287. static="true" final="true" visibility="public"
  12288. deprecated="not deprecated">
  12289. <doc>
  12290. <![CDATA[Whether the current host is a Windows machine.]]>
  12291. </doc>
  12292. </field>
  12293. <doc>
  12294. <![CDATA[Names a file or directory in a {@link FileSystem}.
  12295. Path strings use slash as the directory separator.]]>
  12296. </doc>
  12297. </class>
  12298. <!-- end class org.apache.hadoop.fs.Path -->
  12299. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  12300. <interface name="PathFilter" abstract="true"
  12301. static="false" final="false" visibility="public"
  12302. deprecated="not deprecated">
  12303. <method name="accept" return="boolean"
  12304. abstract="false" native="false" synchronized="false"
  12305. static="false" final="false" visibility="public"
  12306. deprecated="not deprecated">
  12307. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12308. <doc>
  12309. <![CDATA[Tests whether or not the specified abstract pathname should be
  12310. included in a pathname list.
  12311. @param path The abstract pathname to be tested
  12312. @return <code>true</code> if and only if <code>pathname</code>
  12313. should be included]]>
  12314. </doc>
  12315. </method>
  12316. </interface>
  12317. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  12318. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  12319. <interface name="PositionedReadable" abstract="true"
  12320. static="false" final="false" visibility="public"
  12321. deprecated="not deprecated">
  12322. <method name="read" return="int"
  12323. abstract="false" native="false" synchronized="false"
  12324. static="false" final="false" visibility="public"
  12325. deprecated="not deprecated">
  12326. <param name="position" type="long"/>
  12327. <param name="buffer" type="byte[]"/>
  12328. <param name="offset" type="int"/>
  12329. <param name="length" type="int"/>
  12330. <exception name="IOException" type="java.io.IOException"/>
  12331. <doc>
  12332. <![CDATA[Read up to the specified number of bytes, from a given
  12333. position within a file, and return the number of bytes read. This does not
  12334. change the current offset of a file, and is thread-safe.
  12335. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  12336. @param position position within file
  12337. @param buffer destination buffer
  12338. @param offset offset in the buffer
  12339. @param length number of bytes to read
  12340. @return actual number of bytes read; -1 means "none"
  12341. @throws IOException IO problems.]]>
  12342. </doc>
  12343. </method>
  12344. <method name="readFully"
  12345. abstract="false" native="false" synchronized="false"
  12346. static="false" final="false" visibility="public"
  12347. deprecated="not deprecated">
  12348. <param name="position" type="long"/>
  12349. <param name="buffer" type="byte[]"/>
  12350. <param name="offset" type="int"/>
  12351. <param name="length" type="int"/>
  12352. <exception name="IOException" type="java.io.IOException"/>
  12353. <doc>
  12354. <![CDATA[Read the specified number of bytes, from a given
  12355. position within a file. This does not
  12356. change the current offset of a file, and is thread-safe.
  12357. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  12358. @param position position within file
  12359. @param buffer destination buffer
  12360. @param offset offset in the buffer
  12361. @param length number of bytes to read
  12362. @throws IOException IO problems.
  12363. @throws EOFException the end of the data was reached before
  12364. the read operation completed]]>
  12365. </doc>
  12366. </method>
  12367. <method name="readFully"
  12368. abstract="false" native="false" synchronized="false"
  12369. static="false" final="false" visibility="public"
  12370. deprecated="not deprecated">
  12371. <param name="position" type="long"/>
  12372. <param name="buffer" type="byte[]"/>
  12373. <exception name="IOException" type="java.io.IOException"/>
  12374. <doc>
  12375. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  12376. position within a file. This does not
  12377. change the current offset of a file, and is thread-safe.
  12378. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  12379. @param position position within file
  12380. @param buffer destination buffer
  12381. @throws IOException IO problems.
  12382. @throws EOFException the end of the data was reached before
  12383. the read operation completed]]>
  12384. </doc>
  12385. </method>
  12386. <doc>
  12387. <![CDATA[Stream that permits positional reading.
  12388. Implementations are required to implement thread-safe operations; this may
  12389. be supported by concurrent access to the data, or by using a synchronization
  12390. mechanism to serialize access.
  12391. Not all implementations meet this requirement. Those that do not cannot
  12392. be used as a backing store for some applications, such as Apache HBase.
  12393. Independent of whether or not they are thread safe, some implementations
  12394. may make the intermediate state of the system, specifically the position
  12395. obtained in {@code Seekable.getPos()} visible.]]>
  12396. </doc>
  12397. </interface>
  12398. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  12399. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  12400. <class name="QuotaUsage" extends="java.lang.Object"
  12401. abstract="false"
  12402. static="false" final="false" visibility="public"
  12403. deprecated="not deprecated">
  12404. <constructor name="QuotaUsage"
  12405. static="false" final="false" visibility="protected"
  12406. deprecated="not deprecated">
  12407. </constructor>
  12408. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  12409. static="false" final="false" visibility="protected"
  12410. deprecated="not deprecated">
  12411. <doc>
  12412. <![CDATA[Build the instance based on the builder.]]>
  12413. </doc>
  12414. </constructor>
  12415. <method name="setQuota"
  12416. abstract="false" native="false" synchronized="false"
  12417. static="false" final="false" visibility="protected"
  12418. deprecated="not deprecated">
  12419. <param name="quota" type="long"/>
  12420. </method>
  12421. <method name="setSpaceConsumed"
  12422. abstract="false" native="false" synchronized="false"
  12423. static="false" final="false" visibility="protected"
  12424. deprecated="not deprecated">
  12425. <param name="spaceConsumed" type="long"/>
  12426. </method>
  12427. <method name="setSpaceQuota"
  12428. abstract="false" native="false" synchronized="false"
  12429. static="false" final="false" visibility="protected"
  12430. deprecated="not deprecated">
  12431. <param name="spaceQuota" type="long"/>
  12432. </method>
  12433. <method name="getFileAndDirectoryCount" return="long"
  12434. abstract="false" native="false" synchronized="false"
  12435. static="false" final="false" visibility="public"
  12436. deprecated="not deprecated">
  12437. <doc>
  12438. <![CDATA[Return the directory count.]]>
  12439. </doc>
  12440. </method>
  12441. <method name="getQuota" return="long"
  12442. abstract="false" native="false" synchronized="false"
  12443. static="false" final="false" visibility="public"
  12444. deprecated="not deprecated">
  12445. <doc>
  12446. <![CDATA[Return the directory quota.]]>
  12447. </doc>
  12448. </method>
  12449. <method name="getSpaceConsumed" return="long"
  12450. abstract="false" native="false" synchronized="false"
  12451. static="false" final="false" visibility="public"
  12452. deprecated="not deprecated">
  12453. <doc>
  12454. <![CDATA[Return (disk) space consumed.]]>
  12455. </doc>
  12456. </method>
  12457. <method name="getSpaceQuota" return="long"
  12458. abstract="false" native="false" synchronized="false"
  12459. static="false" final="false" visibility="public"
  12460. deprecated="not deprecated">
  12461. <doc>
  12462. <![CDATA[Return (disk) space quota.]]>
  12463. </doc>
  12464. </method>
  12465. <method name="getTypeQuota" return="long"
  12466. abstract="false" native="false" synchronized="false"
  12467. static="false" final="false" visibility="public"
  12468. deprecated="not deprecated">
  12469. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  12470. <doc>
  12471. <![CDATA[Return storage type quota.]]>
  12472. </doc>
  12473. </method>
  12474. <method name="getTypeConsumed" return="long"
  12475. abstract="false" native="false" synchronized="false"
  12476. static="false" final="false" visibility="public"
  12477. deprecated="not deprecated">
  12478. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  12479. <doc>
  12480. <![CDATA[Return storage type consumed.]]>
  12481. </doc>
  12482. </method>
  12483. <method name="isTypeQuotaSet" return="boolean"
  12484. abstract="false" native="false" synchronized="false"
  12485. static="false" final="false" visibility="public"
  12486. deprecated="not deprecated">
  12487. <doc>
  12488. <![CDATA[Return true if any storage type quota has been set.]]>
  12489. </doc>
  12490. </method>
  12491. <method name="isTypeConsumedAvailable" return="boolean"
  12492. abstract="false" native="false" synchronized="false"
  12493. static="false" final="false" visibility="public"
  12494. deprecated="not deprecated">
  12495. <doc>
  12496. <![CDATA[Return true if any storage type consumption information is available.]]>
  12497. </doc>
  12498. </method>
  12499. <method name="equals" return="boolean"
  12500. abstract="false" native="false" synchronized="false"
  12501. static="false" final="false" visibility="public"
  12502. deprecated="not deprecated">
  12503. <param name="to" type="java.lang.Object"/>
  12504. </method>
  12505. <method name="hashCode" return="int"
  12506. abstract="false" native="false" synchronized="false"
  12507. static="false" final="false" visibility="public"
  12508. deprecated="not deprecated">
  12509. </method>
  12510. <method name="getHeader" return="java.lang.String"
  12511. abstract="false" native="false" synchronized="false"
  12512. static="true" final="false" visibility="public"
  12513. deprecated="not deprecated">
  12514. <doc>
  12515. <![CDATA[Return the header of the output.
  12516. @return the header of the output]]>
  12517. </doc>
  12518. </method>
  12519. <method name="toString" return="java.lang.String"
  12520. abstract="false" native="false" synchronized="false"
  12521. static="false" final="false" visibility="public"
  12522. deprecated="not deprecated">
  12523. </method>
  12524. <method name="toString" return="java.lang.String"
  12525. abstract="false" native="false" synchronized="false"
  12526. static="false" final="false" visibility="public"
  12527. deprecated="not deprecated">
  12528. <param name="hOption" type="boolean"/>
  12529. </method>
  12530. <method name="toString" return="java.lang.String"
  12531. abstract="false" native="false" synchronized="false"
  12532. static="false" final="false" visibility="public"
  12533. deprecated="not deprecated">
  12534. <param name="hOption" type="boolean"/>
  12535. <param name="tOption" type="boolean"/>
  12536. <param name="types" type="java.util.List"/>
  12537. <doc>
  12538. <![CDATA[Return the string representation of the object in the output format.
  12539. if hOption is false file sizes are returned in bytes
  12540. if hOption is true file sizes are returned in human readable
  12541. @param hOption a flag indicating if human readable output if to be used
  12542. @return the string representation of the object]]>
  12543. </doc>
  12544. </method>
  12545. <method name="getQuotaUsage" return="java.lang.String"
  12546. abstract="false" native="false" synchronized="false"
  12547. static="false" final="false" visibility="protected"
  12548. deprecated="not deprecated">
  12549. <param name="hOption" type="boolean"/>
  12550. </method>
  12551. <method name="getTypesQuotaUsage" return="java.lang.String"
  12552. abstract="false" native="false" synchronized="false"
  12553. static="false" final="false" visibility="protected"
  12554. deprecated="not deprecated">
  12555. <param name="hOption" type="boolean"/>
  12556. <param name="types" type="java.util.List"/>
  12557. </method>
  12558. <method name="getStorageTypeHeader" return="java.lang.String"
  12559. abstract="false" native="false" synchronized="false"
  12560. static="true" final="false" visibility="public"
  12561. deprecated="not deprecated">
  12562. <param name="storageTypes" type="java.util.List"/>
  12563. <doc>
  12564. <![CDATA[return the header of with the StorageTypes.
  12565. @param storageTypes
  12566. @return storage header string]]>
  12567. </doc>
  12568. </method>
  12569. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  12570. transient="false" volatile="false"
  12571. static="true" final="true" visibility="protected"
  12572. deprecated="not deprecated">
  12573. <doc>
  12574. <![CDATA[Output format:
  12575. <----12----> <----15----> <----15----> <----15----> <-------18------->
  12576. QUOTA REMAINING_QUATA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  12577. </doc>
  12578. </field>
  12579. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  12580. transient="false" volatile="false"
  12581. static="true" final="true" visibility="protected"
  12582. deprecated="not deprecated">
  12583. </field>
  12584. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  12585. transient="false" volatile="false"
  12586. static="true" final="true" visibility="protected"
  12587. deprecated="not deprecated">
  12588. </field>
  12589. <field name="QUOTA_HEADER" type="java.lang.String"
  12590. transient="false" volatile="false"
  12591. static="true" final="true" visibility="protected"
  12592. deprecated="not deprecated">
  12593. </field>
  12594. <doc>
  12595. <![CDATA[Store the quota usage of a directory.]]>
  12596. </doc>
  12597. </class>
  12598. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  12599. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  12600. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  12601. abstract="false"
  12602. static="false" final="false" visibility="public"
  12603. deprecated="not deprecated">
  12604. <constructor name="RawLocalFileSystem"
  12605. static="false" final="false" visibility="public"
  12606. deprecated="not deprecated">
  12607. </constructor>
  12608. <method name="useStatIfAvailable"
  12609. abstract="false" native="false" synchronized="false"
  12610. static="true" final="false" visibility="public"
  12611. deprecated="not deprecated">
  12612. </method>
  12613. <method name="pathToFile" return="java.io.File"
  12614. abstract="false" native="false" synchronized="false"
  12615. static="false" final="false" visibility="public"
  12616. deprecated="not deprecated">
  12617. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12618. <doc>
  12619. <![CDATA[Convert a path to a File.]]>
  12620. </doc>
  12621. </method>
  12622. <method name="getUri" return="java.net.URI"
  12623. abstract="false" native="false" synchronized="false"
  12624. static="false" final="false" visibility="public"
  12625. deprecated="not deprecated">
  12626. </method>
  12627. <method name="initialize"
  12628. abstract="false" native="false" synchronized="false"
  12629. static="false" final="false" visibility="public"
  12630. deprecated="not deprecated">
  12631. <param name="uri" type="java.net.URI"/>
  12632. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12633. <exception name="IOException" type="java.io.IOException"/>
  12634. </method>
  12635. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12636. abstract="false" native="false" synchronized="false"
  12637. static="false" final="false" visibility="public"
  12638. deprecated="not deprecated">
  12639. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12640. <param name="bufferSize" type="int"/>
  12641. <exception name="IOException" type="java.io.IOException"/>
  12642. </method>
  12643. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  12644. abstract="false" native="false" synchronized="false"
  12645. static="false" final="false" visibility="public"
  12646. deprecated="not deprecated">
  12647. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12648. <param name="bufferSize" type="int"/>
  12649. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12650. <exception name="IOException" type="java.io.IOException"/>
  12651. </method>
  12652. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12653. abstract="false" native="false" synchronized="false"
  12654. static="false" final="false" visibility="public"
  12655. deprecated="not deprecated">
  12656. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12657. <param name="overwrite" type="boolean"/>
  12658. <param name="bufferSize" type="int"/>
  12659. <param name="replication" type="short"/>
  12660. <param name="blockSize" type="long"/>
  12661. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12662. <exception name="IOException" type="java.io.IOException"/>
  12663. </method>
  12664. <method name="createOutputStream" return="java.io.OutputStream"
  12665. abstract="false" native="false" synchronized="false"
  12666. static="false" final="false" visibility="protected"
  12667. deprecated="not deprecated">
  12668. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12669. <param name="append" type="boolean"/>
  12670. <exception name="IOException" type="java.io.IOException"/>
  12671. </method>
  12672. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  12673. abstract="false" native="false" synchronized="false"
  12674. static="false" final="false" visibility="protected"
  12675. deprecated="not deprecated">
  12676. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12677. <param name="append" type="boolean"/>
  12678. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12679. <exception name="IOException" type="java.io.IOException"/>
  12680. </method>
  12681. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12682. abstract="false" native="false" synchronized="false"
  12683. static="false" final="false" visibility="public"
  12684. deprecated="not deprecated">
  12685. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12686. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12687. <param name="flags" type="java.util.EnumSet"/>
  12688. <param name="bufferSize" type="int"/>
  12689. <param name="replication" type="short"/>
  12690. <param name="blockSize" type="long"/>
  12691. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12692. <exception name="IOException" type="java.io.IOException"/>
  12693. </method>
  12694. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12695. abstract="false" native="false" synchronized="false"
  12696. static="false" final="false" visibility="public"
  12697. deprecated="not deprecated">
  12698. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12699. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12700. <param name="overwrite" type="boolean"/>
  12701. <param name="bufferSize" type="int"/>
  12702. <param name="replication" type="short"/>
  12703. <param name="blockSize" type="long"/>
  12704. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12705. <exception name="IOException" type="java.io.IOException"/>
  12706. </method>
  12707. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12708. abstract="false" native="false" synchronized="false"
  12709. static="false" final="false" visibility="public"
  12710. deprecated="not deprecated">
  12711. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12712. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12713. <param name="overwrite" type="boolean"/>
  12714. <param name="bufferSize" type="int"/>
  12715. <param name="replication" type="short"/>
  12716. <param name="blockSize" type="long"/>
  12717. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12718. <exception name="IOException" type="java.io.IOException"/>
  12719. </method>
  12720. <method name="rename" return="boolean"
  12721. abstract="false" native="false" synchronized="false"
  12722. static="false" final="false" visibility="public"
  12723. deprecated="not deprecated">
  12724. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12725. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12726. <exception name="IOException" type="java.io.IOException"/>
  12727. </method>
  12728. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  12729. abstract="false" native="false" synchronized="false"
  12730. static="false" final="true" visibility="public"
  12731. deprecated="not deprecated">
  12732. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12733. <param name="srcFile" type="java.io.File"/>
  12734. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12735. <param name="dstFile" type="java.io.File"/>
  12736. <exception name="IOException" type="java.io.IOException"/>
  12737. </method>
  12738. <method name="truncate" return="boolean"
  12739. abstract="false" native="false" synchronized="false"
  12740. static="false" final="false" visibility="public"
  12741. deprecated="not deprecated">
  12742. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12743. <param name="newLength" type="long"/>
  12744. <exception name="IOException" type="java.io.IOException"/>
  12745. </method>
  12746. <method name="delete" return="boolean"
  12747. abstract="false" native="false" synchronized="false"
  12748. static="false" final="false" visibility="public"
  12749. deprecated="not deprecated">
  12750. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12751. <param name="recursive" type="boolean"/>
  12752. <exception name="IOException" type="java.io.IOException"/>
  12753. <doc>
  12754. <![CDATA[Delete the given path to a file or directory.
  12755. @param p the path to delete
  12756. @param recursive to delete sub-directories
  12757. @return true if the file or directory and all its contents were deleted
  12758. @throws IOException if p is non-empty and recursive is false]]>
  12759. </doc>
  12760. </method>
  12761. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  12762. abstract="false" native="false" synchronized="false"
  12763. static="false" final="false" visibility="public"
  12764. deprecated="not deprecated">
  12765. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12766. <exception name="IOException" type="java.io.IOException"/>
  12767. </method>
  12768. <method name="mkOneDir" return="boolean"
  12769. abstract="false" native="false" synchronized="false"
  12770. static="false" final="false" visibility="protected"
  12771. deprecated="not deprecated">
  12772. <param name="p2f" type="java.io.File"/>
  12773. <exception name="IOException" type="java.io.IOException"/>
  12774. </method>
  12775. <method name="mkOneDirWithMode" return="boolean"
  12776. abstract="false" native="false" synchronized="false"
  12777. static="false" final="false" visibility="protected"
  12778. deprecated="not deprecated">
  12779. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12780. <param name="p2f" type="java.io.File"/>
  12781. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12782. <exception name="IOException" type="java.io.IOException"/>
  12783. </method>
  12784. <method name="mkdirs" return="boolean"
  12785. abstract="false" native="false" synchronized="false"
  12786. static="false" final="false" visibility="public"
  12787. deprecated="not deprecated">
  12788. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12789. <exception name="IOException" type="java.io.IOException"/>
  12790. <doc>
  12791. <![CDATA[Creates the specified directory hierarchy. Does not
  12792. treat existence as an error.]]>
  12793. </doc>
  12794. </method>
  12795. <method name="mkdirs" return="boolean"
  12796. abstract="false" native="false" synchronized="false"
  12797. static="false" final="false" visibility="public"
  12798. deprecated="not deprecated">
  12799. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12800. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12801. <exception name="IOException" type="java.io.IOException"/>
  12802. </method>
  12803. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  12804. abstract="false" native="false" synchronized="false"
  12805. static="false" final="false" visibility="public"
  12806. deprecated="not deprecated">
  12807. </method>
  12808. <method name="setWorkingDirectory"
  12809. abstract="false" native="false" synchronized="false"
  12810. static="false" final="false" visibility="public"
  12811. deprecated="not deprecated">
  12812. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  12813. <doc>
  12814. <![CDATA[Set the working directory to the given directory.]]>
  12815. </doc>
  12816. </method>
  12817. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12818. abstract="false" native="false" synchronized="false"
  12819. static="false" final="false" visibility="public"
  12820. deprecated="not deprecated">
  12821. </method>
  12822. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12823. abstract="false" native="false" synchronized="false"
  12824. static="false" final="false" visibility="protected"
  12825. deprecated="not deprecated">
  12826. </method>
  12827. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  12828. abstract="false" native="false" synchronized="false"
  12829. static="false" final="false" visibility="public"
  12830. deprecated="not deprecated">
  12831. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12832. <exception name="IOException" type="java.io.IOException"/>
  12833. </method>
  12834. <method name="moveFromLocalFile"
  12835. abstract="false" native="false" synchronized="false"
  12836. static="false" final="false" visibility="public"
  12837. deprecated="not deprecated">
  12838. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12839. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12840. <exception name="IOException" type="java.io.IOException"/>
  12841. </method>
  12842. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  12843. abstract="false" native="false" synchronized="false"
  12844. static="false" final="false" visibility="public"
  12845. deprecated="not deprecated">
  12846. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12847. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12848. <exception name="IOException" type="java.io.IOException"/>
  12849. </method>
  12850. <method name="completeLocalOutput"
  12851. abstract="false" native="false" synchronized="false"
  12852. static="false" final="false" visibility="public"
  12853. deprecated="not deprecated">
  12854. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  12855. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12856. <exception name="IOException" type="java.io.IOException"/>
  12857. </method>
  12858. <method name="close"
  12859. abstract="false" native="false" synchronized="false"
  12860. static="false" final="false" visibility="public"
  12861. deprecated="not deprecated">
  12862. <exception name="IOException" type="java.io.IOException"/>
  12863. </method>
  12864. <method name="toString" return="java.lang.String"
  12865. abstract="false" native="false" synchronized="false"
  12866. static="false" final="false" visibility="public"
  12867. deprecated="not deprecated">
  12868. </method>
  12869. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  12870. abstract="false" native="false" synchronized="false"
  12871. static="false" final="false" visibility="public"
  12872. deprecated="not deprecated">
  12873. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12874. <exception name="IOException" type="java.io.IOException"/>
  12875. </method>
  12876. <method name="setOwner"
  12877. abstract="false" native="false" synchronized="false"
  12878. static="false" final="false" visibility="public"
  12879. deprecated="not deprecated">
  12880. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12881. <param name="username" type="java.lang.String"/>
  12882. <param name="groupname" type="java.lang.String"/>
  12883. <exception name="IOException" type="java.io.IOException"/>
  12884. <doc>
  12885. <![CDATA[Use the command chown to set owner.]]>
  12886. </doc>
  12887. </method>
  12888. <method name="setPermission"
  12889. abstract="false" native="false" synchronized="false"
  12890. static="false" final="false" visibility="public"
  12891. deprecated="not deprecated">
  12892. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12893. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12894. <exception name="IOException" type="java.io.IOException"/>
  12895. <doc>
  12896. <![CDATA[Use the command chmod to set permission.]]>
  12897. </doc>
  12898. </method>
  12899. <method name="setTimes"
  12900. abstract="false" native="false" synchronized="false"
  12901. static="false" final="false" visibility="public"
  12902. deprecated="not deprecated">
  12903. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12904. <param name="mtime" type="long"/>
  12905. <param name="atime" type="long"/>
  12906. <exception name="IOException" type="java.io.IOException"/>
  12907. <doc>
  12908. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  12909. the given valid times.
  12910. @param mtime the modification time to set (only if no less than zero).
  12911. @param atime the access time to set (only if no less than zero).
  12912. @throws IOException if setting the times fails.]]>
  12913. </doc>
  12914. </method>
  12915. <method name="supportsSymlinks" return="boolean"
  12916. abstract="false" native="false" synchronized="false"
  12917. static="false" final="false" visibility="public"
  12918. deprecated="not deprecated">
  12919. </method>
  12920. <method name="createSymlink"
  12921. abstract="false" native="false" synchronized="false"
  12922. static="false" final="false" visibility="public"
  12923. deprecated="not deprecated">
  12924. <param name="target" type="org.apache.hadoop.fs.Path"/>
  12925. <param name="link" type="org.apache.hadoop.fs.Path"/>
  12926. <param name="createParent" type="boolean"/>
  12927. <exception name="IOException" type="java.io.IOException"/>
  12928. </method>
  12929. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  12930. abstract="false" native="false" synchronized="false"
  12931. static="false" final="false" visibility="public"
  12932. deprecated="not deprecated">
  12933. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12934. <exception name="IOException" type="java.io.IOException"/>
  12935. <doc>
  12936. <![CDATA[Return a FileStatus representing the given path. If the path refers
  12937. to a symlink return a FileStatus representing the link rather than
  12938. the object the link refers to.]]>
  12939. </doc>
  12940. </method>
  12941. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  12942. abstract="false" native="false" synchronized="false"
  12943. static="false" final="false" visibility="public"
  12944. deprecated="not deprecated">
  12945. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12946. <exception name="IOException" type="java.io.IOException"/>
  12947. </method>
  12948. <doc>
  12949. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  12950. </doc>
  12951. </class>
  12952. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  12953. <!-- start class org.apache.hadoop.fs.ReadOption -->
  12954. <class name="ReadOption" extends="java.lang.Enum"
  12955. abstract="false"
  12956. static="false" final="true" visibility="public"
  12957. deprecated="not deprecated">
  12958. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  12959. abstract="false" native="false" synchronized="false"
  12960. static="true" final="false" visibility="public"
  12961. deprecated="not deprecated">
  12962. </method>
  12963. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  12964. abstract="false" native="false" synchronized="false"
  12965. static="true" final="false" visibility="public"
  12966. deprecated="not deprecated">
  12967. <param name="name" type="java.lang.String"/>
  12968. </method>
  12969. <doc>
  12970. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  12971. </doc>
  12972. </class>
  12973. <!-- end class org.apache.hadoop.fs.ReadOption -->
  12974. <!-- start interface org.apache.hadoop.fs.Seekable -->
  12975. <interface name="Seekable" abstract="true"
  12976. static="false" final="false" visibility="public"
  12977. deprecated="not deprecated">
  12978. <method name="seek"
  12979. abstract="false" native="false" synchronized="false"
  12980. static="false" final="false" visibility="public"
  12981. deprecated="not deprecated">
  12982. <param name="pos" type="long"/>
  12983. <exception name="IOException" type="java.io.IOException"/>
  12984. <doc>
  12985. <![CDATA[Seek to the given offset from the start of the file.
  12986. The next read() will be from that location. Can't
  12987. seek past the end of the file.]]>
  12988. </doc>
  12989. </method>
  12990. <method name="getPos" return="long"
  12991. abstract="false" native="false" synchronized="false"
  12992. static="false" final="false" visibility="public"
  12993. deprecated="not deprecated">
  12994. <exception name="IOException" type="java.io.IOException"/>
  12995. <doc>
  12996. <![CDATA[Return the current offset from the start of the file]]>
  12997. </doc>
  12998. </method>
  12999. <doc>
  13000. <![CDATA[Stream that permits seeking.]]>
  13001. </doc>
  13002. </interface>
  13003. <!-- end interface org.apache.hadoop.fs.Seekable -->
  13004. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  13005. <class name="StorageStatistics" extends="java.lang.Object"
  13006. abstract="true"
  13007. static="false" final="false" visibility="public"
  13008. deprecated="not deprecated">
  13009. <constructor name="StorageStatistics" type="java.lang.String"
  13010. static="false" final="false" visibility="public"
  13011. deprecated="not deprecated">
  13012. </constructor>
  13013. <method name="getName" return="java.lang.String"
  13014. abstract="false" native="false" synchronized="false"
  13015. static="false" final="false" visibility="public"
  13016. deprecated="not deprecated">
  13017. <doc>
  13018. <![CDATA[Get the name of this StorageStatistics object.]]>
  13019. </doc>
  13020. </method>
  13021. <method name="getScheme" return="java.lang.String"
  13022. abstract="false" native="false" synchronized="false"
  13023. static="false" final="false" visibility="public"
  13024. deprecated="not deprecated">
  13025. <doc>
  13026. <![CDATA[@return the associated file system scheme if this is scheme specific,
  13027. else return null.]]>
  13028. </doc>
  13029. </method>
  13030. <method name="getLongStatistics" return="java.util.Iterator"
  13031. abstract="true" native="false" synchronized="false"
  13032. static="false" final="false" visibility="public"
  13033. deprecated="not deprecated">
  13034. <doc>
  13035. <![CDATA[Get an iterator over all the currently tracked long statistics.
  13036. The values returned will depend on the type of FileSystem or FileContext
  13037. object. The values do not necessarily reflect a snapshot in time.]]>
  13038. </doc>
  13039. </method>
  13040. <method name="getLong" return="java.lang.Long"
  13041. abstract="true" native="false" synchronized="false"
  13042. static="false" final="false" visibility="public"
  13043. deprecated="not deprecated">
  13044. <param name="key" type="java.lang.String"/>
  13045. <doc>
  13046. <![CDATA[Get the value of a statistic.
  13047. @return null if the statistic is not being tracked or is not a
  13048. long statistic. The value of the statistic, otherwise.]]>
  13049. </doc>
  13050. </method>
  13051. <method name="isTracked" return="boolean"
  13052. abstract="true" native="false" synchronized="false"
  13053. static="false" final="false" visibility="public"
  13054. deprecated="not deprecated">
  13055. <param name="key" type="java.lang.String"/>
  13056. <doc>
  13057. <![CDATA[Return true if a statistic is being tracked.
  13058. @return True only if the statistic is being tracked.]]>
  13059. </doc>
  13060. </method>
  13061. <method name="reset"
  13062. abstract="true" native="false" synchronized="false"
  13063. static="false" final="false" visibility="public"
  13064. deprecated="not deprecated">
  13065. <doc>
  13066. <![CDATA[Reset all the statistic data.]]>
  13067. </doc>
  13068. </method>
  13069. <doc>
  13070. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  13071. instance.]]>
  13072. </doc>
  13073. </class>
  13074. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  13075. <!-- start class org.apache.hadoop.fs.StorageType -->
  13076. <class name="StorageType" extends="java.lang.Enum"
  13077. abstract="false"
  13078. static="false" final="true" visibility="public"
  13079. deprecated="not deprecated">
  13080. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  13081. abstract="false" native="false" synchronized="false"
  13082. static="true" final="false" visibility="public"
  13083. deprecated="not deprecated">
  13084. </method>
  13085. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  13086. abstract="false" native="false" synchronized="false"
  13087. static="true" final="false" visibility="public"
  13088. deprecated="not deprecated">
  13089. <param name="name" type="java.lang.String"/>
  13090. </method>
  13091. <method name="isTransient" return="boolean"
  13092. abstract="false" native="false" synchronized="false"
  13093. static="false" final="false" visibility="public"
  13094. deprecated="not deprecated">
  13095. </method>
  13096. <method name="supportTypeQuota" return="boolean"
  13097. abstract="false" native="false" synchronized="false"
  13098. static="false" final="false" visibility="public"
  13099. deprecated="not deprecated">
  13100. </method>
  13101. <method name="isMovable" return="boolean"
  13102. abstract="false" native="false" synchronized="false"
  13103. static="false" final="false" visibility="public"
  13104. deprecated="not deprecated">
  13105. </method>
  13106. <method name="asList" return="java.util.List"
  13107. abstract="false" native="false" synchronized="false"
  13108. static="true" final="false" visibility="public"
  13109. deprecated="not deprecated">
  13110. </method>
  13111. <method name="getMovableTypes" return="java.util.List"
  13112. abstract="false" native="false" synchronized="false"
  13113. static="true" final="false" visibility="public"
  13114. deprecated="not deprecated">
  13115. </method>
  13116. <method name="getTypesSupportingQuota" return="java.util.List"
  13117. abstract="false" native="false" synchronized="false"
  13118. static="true" final="false" visibility="public"
  13119. deprecated="not deprecated">
  13120. </method>
  13121. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  13122. abstract="false" native="false" synchronized="false"
  13123. static="true" final="false" visibility="public"
  13124. deprecated="not deprecated">
  13125. <param name="i" type="int"/>
  13126. </method>
  13127. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  13128. abstract="false" native="false" synchronized="false"
  13129. static="true" final="false" visibility="public"
  13130. deprecated="not deprecated">
  13131. <param name="s" type="java.lang.String"/>
  13132. </method>
  13133. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  13134. transient="false" volatile="false"
  13135. static="true" final="true" visibility="public"
  13136. deprecated="not deprecated">
  13137. </field>
  13138. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  13139. transient="false" volatile="false"
  13140. static="true" final="true" visibility="public"
  13141. deprecated="not deprecated">
  13142. </field>
  13143. <doc>
  13144. <![CDATA[Defines the types of supported storage media. The default storage
  13145. medium is assumed to be DISK.]]>
  13146. </doc>
  13147. </class>
  13148. <!-- end class org.apache.hadoop.fs.StorageType -->
  13149. <!-- start interface org.apache.hadoop.fs.Syncable -->
  13150. <interface name="Syncable" abstract="true"
  13151. static="false" final="false" visibility="public"
  13152. deprecated="not deprecated">
  13153. <method name="sync"
  13154. abstract="false" native="false" synchronized="false"
  13155. static="false" final="false" visibility="public"
  13156. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  13157. <exception name="IOException" type="java.io.IOException"/>
  13158. <doc>
  13159. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  13160. @see #hflush()]]>
  13161. </doc>
  13162. </method>
  13163. <method name="hflush"
  13164. abstract="false" native="false" synchronized="false"
  13165. static="false" final="false" visibility="public"
  13166. deprecated="not deprecated">
  13167. <exception name="IOException" type="java.io.IOException"/>
  13168. <doc>
  13169. <![CDATA[Flush out the data in client's user buffer. After the return of
  13170. this call, new readers will see the data.
  13171. @throws IOException if any error occurs]]>
  13172. </doc>
  13173. </method>
  13174. <method name="hsync"
  13175. abstract="false" native="false" synchronized="false"
  13176. static="false" final="false" visibility="public"
  13177. deprecated="not deprecated">
  13178. <exception name="IOException" type="java.io.IOException"/>
  13179. <doc>
  13180. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  13181. all the way to the disk device (but the disk may have it in its cache).
  13182. @throws IOException if error occurs]]>
  13183. </doc>
  13184. </method>
  13185. <doc>
  13186. <![CDATA[This interface for flush/sync operation.]]>
  13187. </doc>
  13188. </interface>
  13189. <!-- end interface org.apache.hadoop.fs.Syncable -->
  13190. <!-- start class org.apache.hadoop.fs.Trash -->
  13191. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  13192. abstract="false"
  13193. static="false" final="false" visibility="public"
  13194. deprecated="not deprecated">
  13195. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  13196. static="false" final="false" visibility="public"
  13197. deprecated="not deprecated">
  13198. <exception name="IOException" type="java.io.IOException"/>
  13199. <doc>
  13200. <![CDATA[Construct a trash can accessor.
  13201. @param conf a Configuration]]>
  13202. </doc>
  13203. </constructor>
  13204. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  13205. static="false" final="false" visibility="public"
  13206. deprecated="not deprecated">
  13207. <exception name="IOException" type="java.io.IOException"/>
  13208. <doc>
  13209. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  13210. @param fs the FileSystem
  13211. @param conf a Configuration]]>
  13212. </doc>
  13213. </constructor>
  13214. <method name="moveToAppropriateTrash" return="boolean"
  13215. abstract="false" native="false" synchronized="false"
  13216. static="true" final="false" visibility="public"
  13217. deprecated="not deprecated">
  13218. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13219. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13220. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13221. <exception name="IOException" type="java.io.IOException"/>
  13222. <doc>
  13223. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  13224. trashbin in the actual volume of the path p being deleted.
  13225. Hence we get the file system of the fully-qualified resolved-path and
  13226. then move the path p to the trashbin in that volume,
  13227. @param fs - the filesystem of path p
  13228. @param p - the path being deleted - to be moved to trasg
  13229. @param conf - configuration
  13230. @return false if the item is already in the trash or trash is disabled
  13231. @throws IOException on error]]>
  13232. </doc>
  13233. </method>
  13234. <method name="isEnabled" return="boolean"
  13235. abstract="false" native="false" synchronized="false"
  13236. static="false" final="false" visibility="public"
  13237. deprecated="not deprecated">
  13238. <doc>
  13239. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  13240. </doc>
  13241. </method>
  13242. <method name="moveToTrash" return="boolean"
  13243. abstract="false" native="false" synchronized="false"
  13244. static="false" final="false" visibility="public"
  13245. deprecated="not deprecated">
  13246. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13247. <exception name="IOException" type="java.io.IOException"/>
  13248. <doc>
  13249. <![CDATA[Move a file or directory to the current trash directory.
  13250. @return false if the item is already in the trash or trash is disabled]]>
  13251. </doc>
  13252. </method>
  13253. <method name="checkpoint"
  13254. abstract="false" native="false" synchronized="false"
  13255. static="false" final="false" visibility="public"
  13256. deprecated="not deprecated">
  13257. <exception name="IOException" type="java.io.IOException"/>
  13258. <doc>
  13259. <![CDATA[Create a trash checkpoint.]]>
  13260. </doc>
  13261. </method>
  13262. <method name="expunge"
  13263. abstract="false" native="false" synchronized="false"
  13264. static="false" final="false" visibility="public"
  13265. deprecated="not deprecated">
  13266. <exception name="IOException" type="java.io.IOException"/>
  13267. <doc>
  13268. <![CDATA[Delete old checkpoint(s).]]>
  13269. </doc>
  13270. </method>
  13271. <method name="getEmptier" return="java.lang.Runnable"
  13272. abstract="false" native="false" synchronized="false"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. <exception name="IOException" type="java.io.IOException"/>
  13276. <doc>
  13277. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  13278. users, intended to be run by the superuser.]]>
  13279. </doc>
  13280. </method>
  13281. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  13282. abstract="false" native="false" synchronized="false"
  13283. static="false" final="false" visibility="public"
  13284. deprecated="not deprecated">
  13285. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13286. <exception name="IOException" type="java.io.IOException"/>
  13287. </method>
  13288. <doc>
  13289. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  13290. See the implementation of the configured TrashPolicy for more
  13291. details.]]>
  13292. </doc>
  13293. </class>
  13294. <!-- end class org.apache.hadoop.fs.Trash -->
  13295. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  13296. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  13297. abstract="true"
  13298. static="false" final="false" visibility="public"
  13299. deprecated="not deprecated">
  13300. <constructor name="TrashPolicy"
  13301. static="false" final="false" visibility="public"
  13302. deprecated="not deprecated">
  13303. </constructor>
  13304. <method name="initialize"
  13305. abstract="true" native="false" synchronized="false"
  13306. static="false" final="false" visibility="public"
  13307. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  13308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13309. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13310. <param name="home" type="org.apache.hadoop.fs.Path"/>
  13311. <doc>
  13312. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  13313. implementations.
  13314. @param conf the configuration to be used
  13315. @param fs the filesystem to be used
  13316. @param home the home directory
  13317. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  13318. </doc>
  13319. </method>
  13320. <method name="initialize"
  13321. abstract="false" native="false" synchronized="false"
  13322. static="false" final="false" visibility="public"
  13323. deprecated="not deprecated">
  13324. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13325. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13326. <doc>
  13327. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  13328. implementations. Different from initialize(conf, fs, home), this one does
  13329. not assume trash always under /user/$USER due to HDFS encryption zone.
  13330. @param conf the configuration to be used
  13331. @param fs the filesystem to be used]]>
  13332. </doc>
  13333. </method>
  13334. <method name="isEnabled" return="boolean"
  13335. abstract="true" native="false" synchronized="false"
  13336. static="false" final="false" visibility="public"
  13337. deprecated="not deprecated">
  13338. <doc>
  13339. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  13340. </doc>
  13341. </method>
  13342. <method name="moveToTrash" return="boolean"
  13343. abstract="true" native="false" synchronized="false"
  13344. static="false" final="false" visibility="public"
  13345. deprecated="not deprecated">
  13346. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13347. <exception name="IOException" type="java.io.IOException"/>
  13348. <doc>
  13349. <![CDATA[Move a file or directory to the current trash directory.
  13350. @return false if the item is already in the trash or trash is disabled]]>
  13351. </doc>
  13352. </method>
  13353. <method name="createCheckpoint"
  13354. abstract="true" native="false" synchronized="false"
  13355. static="false" final="false" visibility="public"
  13356. deprecated="not deprecated">
  13357. <exception name="IOException" type="java.io.IOException"/>
  13358. <doc>
  13359. <![CDATA[Create a trash checkpoint.]]>
  13360. </doc>
  13361. </method>
  13362. <method name="deleteCheckpoint"
  13363. abstract="true" native="false" synchronized="false"
  13364. static="false" final="false" visibility="public"
  13365. deprecated="not deprecated">
  13366. <exception name="IOException" type="java.io.IOException"/>
  13367. <doc>
  13368. <![CDATA[Delete old trash checkpoint(s).]]>
  13369. </doc>
  13370. </method>
  13371. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  13372. abstract="true" native="false" synchronized="false"
  13373. static="false" final="false" visibility="public"
  13374. deprecated="not deprecated">
  13375. <doc>
  13376. <![CDATA[Get the current working directory of the Trash Policy
  13377. This API does not work with files deleted from encryption zone when HDFS
  13378. data encryption at rest feature is enabled as rename file between
  13379. encryption zones or encryption zone and non-encryption zone is not allowed.
  13380. The caller is recommend to use the new API
  13381. TrashPolicy#getCurrentTrashDir(Path path).
  13382. It returns the trash location correctly for the path specified no matter
  13383. the path is in encryption zone or not.]]>
  13384. </doc>
  13385. </method>
  13386. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  13387. abstract="false" native="false" synchronized="false"
  13388. static="false" final="false" visibility="public"
  13389. deprecated="not deprecated">
  13390. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13391. <exception name="IOException" type="java.io.IOException"/>
  13392. <doc>
  13393. <![CDATA[Get the current trash directory for path specified based on the Trash
  13394. Policy
  13395. @param path path to be deleted
  13396. @return current trash directory for the path to be deleted
  13397. @throws IOException]]>
  13398. </doc>
  13399. </method>
  13400. <method name="getEmptier" return="java.lang.Runnable"
  13401. abstract="true" native="false" synchronized="false"
  13402. static="false" final="false" visibility="public"
  13403. deprecated="not deprecated">
  13404. <exception name="IOException" type="java.io.IOException"/>
  13405. <doc>
  13406. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  13407. users, intended to be run by the superuser.]]>
  13408. </doc>
  13409. </method>
  13410. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  13411. abstract="false" native="false" synchronized="false"
  13412. static="true" final="false" visibility="public"
  13413. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  13414. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13415. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13416. <param name="home" type="org.apache.hadoop.fs.Path"/>
  13417. <doc>
  13418. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  13419. of the configuration parameter fs.trash.classname.
  13420. @param conf the configuration to be used
  13421. @param fs the file system to be used
  13422. @param home the home directory
  13423. @return an instance of TrashPolicy
  13424. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  13425. </doc>
  13426. </method>
  13427. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  13428. abstract="false" native="false" synchronized="false"
  13429. static="true" final="false" visibility="public"
  13430. deprecated="not deprecated">
  13431. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13432. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13433. <doc>
  13434. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  13435. of the configuration parameter fs.trash.classname.
  13436. @param conf the configuration to be used
  13437. @param fs the file system to be used
  13438. @return an instance of TrashPolicy]]>
  13439. </doc>
  13440. </method>
  13441. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  13442. transient="false" volatile="false"
  13443. static="false" final="false" visibility="protected"
  13444. deprecated="not deprecated">
  13445. </field>
  13446. <field name="trash" type="org.apache.hadoop.fs.Path"
  13447. transient="false" volatile="false"
  13448. static="false" final="false" visibility="protected"
  13449. deprecated="not deprecated">
  13450. </field>
  13451. <field name="deletionInterval" type="long"
  13452. transient="false" volatile="false"
  13453. static="false" final="false" visibility="protected"
  13454. deprecated="not deprecated">
  13455. </field>
  13456. <doc>
  13457. <![CDATA[This interface is used for implementing different Trash policies.
  13458. Provides factory method to create instances of the configured Trash policy.]]>
  13459. </doc>
  13460. </class>
  13461. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  13462. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  13463. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  13464. abstract="false"
  13465. static="false" final="false" visibility="public"
  13466. deprecated="not deprecated">
  13467. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  13468. static="false" final="false" visibility="public"
  13469. deprecated="not deprecated">
  13470. <doc>
  13471. <![CDATA[Constructs exception with the specified detail message.
  13472. @param message exception message.]]>
  13473. </doc>
  13474. </constructor>
  13475. <doc>
  13476. <![CDATA[File system for a given file system name/scheme is not supported]]>
  13477. </doc>
  13478. </class>
  13479. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  13480. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  13481. <class name="XAttrCodec" extends="java.lang.Enum"
  13482. abstract="false"
  13483. static="false" final="true" visibility="public"
  13484. deprecated="not deprecated">
  13485. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  13486. abstract="false" native="false" synchronized="false"
  13487. static="true" final="false" visibility="public"
  13488. deprecated="not deprecated">
  13489. </method>
  13490. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  13491. abstract="false" native="false" synchronized="false"
  13492. static="true" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. <param name="name" type="java.lang.String"/>
  13495. </method>
  13496. <method name="decodeValue" return="byte[]"
  13497. abstract="false" native="false" synchronized="false"
  13498. static="true" final="false" visibility="public"
  13499. deprecated="not deprecated">
  13500. <param name="value" type="java.lang.String"/>
  13501. <exception name="IOException" type="java.io.IOException"/>
  13502. <doc>
  13503. <![CDATA[Decode string representation of a value and check whether it's
  13504. encoded. If the given string begins with 0x or 0X, it expresses
  13505. a hexadecimal number. If the given string begins with 0s or 0S,
  13506. base64 encoding is expected. If the given string is enclosed in
  13507. double quotes, the inner string is treated as text. Otherwise
  13508. the given string is treated as text.
  13509. @param value string representation of the value.
  13510. @return byte[] the value
  13511. @throws IOException]]>
  13512. </doc>
  13513. </method>
  13514. <method name="encodeValue" return="java.lang.String"
  13515. abstract="false" native="false" synchronized="false"
  13516. static="true" final="false" visibility="public"
  13517. deprecated="not deprecated">
  13518. <param name="value" type="byte[]"/>
  13519. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  13520. <exception name="IOException" type="java.io.IOException"/>
  13521. <doc>
  13522. <![CDATA[Encode byte[] value to string representation with encoding.
  13523. Values encoded as text strings are enclosed in double quotes (\"),
  13524. while strings encoded as hexadecimal and base64 are prefixed with
  13525. 0x and 0s, respectively.
  13526. @param value byte[] value
  13527. @param encoding
  13528. @return String string representation of value
  13529. @throws IOException]]>
  13530. </doc>
  13531. </method>
  13532. <doc>
  13533. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  13534. covert byte[] to some kind of string representation or convert back.
  13535. String representation is convenient for display and input. For example
  13536. display in screen as shell response and json response, input as http
  13537. or shell parameter.]]>
  13538. </doc>
  13539. </class>
  13540. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  13541. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  13542. <class name="XAttrSetFlag" extends="java.lang.Enum"
  13543. abstract="false"
  13544. static="false" final="true" visibility="public"
  13545. deprecated="not deprecated">
  13546. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  13547. abstract="false" native="false" synchronized="false"
  13548. static="true" final="false" visibility="public"
  13549. deprecated="not deprecated">
  13550. </method>
  13551. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  13552. abstract="false" native="false" synchronized="false"
  13553. static="true" final="false" visibility="public"
  13554. deprecated="not deprecated">
  13555. <param name="name" type="java.lang.String"/>
  13556. </method>
  13557. <method name="validate"
  13558. abstract="false" native="false" synchronized="false"
  13559. static="true" final="false" visibility="public"
  13560. deprecated="not deprecated">
  13561. <param name="xAttrName" type="java.lang.String"/>
  13562. <param name="xAttrExists" type="boolean"/>
  13563. <param name="flag" type="java.util.EnumSet"/>
  13564. <exception name="IOException" type="java.io.IOException"/>
  13565. </method>
  13566. </class>
  13567. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  13568. <doc>
  13569. <![CDATA[An abstract file system API.]]>
  13570. </doc>
  13571. </package>
  13572. <package name="org.apache.hadoop.fs.crypto">
  13573. </package>
  13574. <package name="org.apache.hadoop.fs.ftp">
  13575. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  13576. <class name="FTPException" extends="java.lang.RuntimeException"
  13577. abstract="false"
  13578. static="false" final="false" visibility="public"
  13579. deprecated="not deprecated">
  13580. <constructor name="FTPException" type="java.lang.String"
  13581. static="false" final="false" visibility="public"
  13582. deprecated="not deprecated">
  13583. </constructor>
  13584. <constructor name="FTPException" type="java.lang.Throwable"
  13585. static="false" final="false" visibility="public"
  13586. deprecated="not deprecated">
  13587. </constructor>
  13588. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  13589. static="false" final="false" visibility="public"
  13590. deprecated="not deprecated">
  13591. </constructor>
  13592. <doc>
  13593. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  13594. </doc>
  13595. </class>
  13596. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  13597. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  13598. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13599. abstract="false"
  13600. static="false" final="false" visibility="public"
  13601. deprecated="not deprecated">
  13602. <constructor name="FTPFileSystem"
  13603. static="false" final="false" visibility="public"
  13604. deprecated="not deprecated">
  13605. </constructor>
  13606. <method name="getScheme" return="java.lang.String"
  13607. abstract="false" native="false" synchronized="false"
  13608. static="false" final="false" visibility="public"
  13609. deprecated="not deprecated">
  13610. <doc>
  13611. <![CDATA[Return the protocol scheme for the FileSystem.
  13612. <p/>
  13613. @return <code>ftp</code>]]>
  13614. </doc>
  13615. </method>
  13616. <method name="getDefaultPort" return="int"
  13617. abstract="false" native="false" synchronized="false"
  13618. static="false" final="false" visibility="protected"
  13619. deprecated="not deprecated">
  13620. <doc>
  13621. <![CDATA[Get the default port for this FTPFileSystem.
  13622. @return the default port]]>
  13623. </doc>
  13624. </method>
  13625. <method name="initialize"
  13626. abstract="false" native="false" synchronized="false"
  13627. static="false" final="false" visibility="public"
  13628. deprecated="not deprecated">
  13629. <param name="uri" type="java.net.URI"/>
  13630. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13631. <exception name="IOException" type="java.io.IOException"/>
  13632. </method>
  13633. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13634. abstract="false" native="false" synchronized="false"
  13635. static="false" final="false" visibility="public"
  13636. deprecated="not deprecated">
  13637. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13638. <param name="bufferSize" type="int"/>
  13639. <exception name="IOException" type="java.io.IOException"/>
  13640. </method>
  13641. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13642. abstract="false" native="false" synchronized="false"
  13643. static="false" final="false" visibility="public"
  13644. deprecated="not deprecated">
  13645. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13646. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13647. <param name="overwrite" type="boolean"/>
  13648. <param name="bufferSize" type="int"/>
  13649. <param name="replication" type="short"/>
  13650. <param name="blockSize" type="long"/>
  13651. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13652. <exception name="IOException" type="java.io.IOException"/>
  13653. <doc>
  13654. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  13655. this class or else the invocation will block.]]>
  13656. </doc>
  13657. </method>
  13658. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13659. abstract="false" native="false" synchronized="false"
  13660. static="false" final="false" visibility="public"
  13661. deprecated="not deprecated">
  13662. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13663. <param name="bufferSize" type="int"/>
  13664. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13665. <exception name="IOException" type="java.io.IOException"/>
  13666. <doc>
  13667. <![CDATA[This optional operation is not yet supported.]]>
  13668. </doc>
  13669. </method>
  13670. <method name="delete" return="boolean"
  13671. abstract="false" native="false" synchronized="false"
  13672. static="false" final="false" visibility="public"
  13673. deprecated="not deprecated">
  13674. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13675. <param name="recursive" type="boolean"/>
  13676. <exception name="IOException" type="java.io.IOException"/>
  13677. </method>
  13678. <method name="getUri" return="java.net.URI"
  13679. abstract="false" native="false" synchronized="false"
  13680. static="false" final="false" visibility="public"
  13681. deprecated="not deprecated">
  13682. </method>
  13683. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13684. abstract="false" native="false" synchronized="false"
  13685. static="false" final="false" visibility="public"
  13686. deprecated="not deprecated">
  13687. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13688. <exception name="IOException" type="java.io.IOException"/>
  13689. </method>
  13690. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13691. abstract="false" native="false" synchronized="false"
  13692. static="false" final="false" visibility="public"
  13693. deprecated="not deprecated">
  13694. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13695. <exception name="IOException" type="java.io.IOException"/>
  13696. </method>
  13697. <method name="mkdirs" return="boolean"
  13698. abstract="false" native="false" synchronized="false"
  13699. static="false" final="false" visibility="public"
  13700. deprecated="not deprecated">
  13701. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13702. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13703. <exception name="IOException" type="java.io.IOException"/>
  13704. </method>
  13705. <method name="rename" return="boolean"
  13706. abstract="false" native="false" synchronized="false"
  13707. static="false" final="false" visibility="public"
  13708. deprecated="not deprecated">
  13709. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13710. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13711. <exception name="IOException" type="java.io.IOException"/>
  13712. </method>
  13713. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13714. abstract="false" native="false" synchronized="false"
  13715. static="false" final="false" visibility="public"
  13716. deprecated="not deprecated">
  13717. </method>
  13718. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13719. abstract="false" native="false" synchronized="false"
  13720. static="false" final="false" visibility="public"
  13721. deprecated="not deprecated">
  13722. </method>
  13723. <method name="setWorkingDirectory"
  13724. abstract="false" native="false" synchronized="false"
  13725. static="false" final="false" visibility="public"
  13726. deprecated="not deprecated">
  13727. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13728. </method>
  13729. <field name="LOG" type="org.apache.commons.logging.Log"
  13730. transient="false" volatile="false"
  13731. static="true" final="true" visibility="public"
  13732. deprecated="not deprecated">
  13733. </field>
  13734. <field name="DEFAULT_BUFFER_SIZE" type="int"
  13735. transient="false" volatile="false"
  13736. static="true" final="true" visibility="public"
  13737. deprecated="not deprecated">
  13738. </field>
  13739. <field name="DEFAULT_BLOCK_SIZE" type="int"
  13740. transient="false" volatile="false"
  13741. static="true" final="true" visibility="public"
  13742. deprecated="not deprecated">
  13743. </field>
  13744. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  13745. transient="false" volatile="false"
  13746. static="true" final="true" visibility="public"
  13747. deprecated="not deprecated">
  13748. </field>
  13749. <field name="FS_FTP_HOST" type="java.lang.String"
  13750. transient="false" volatile="false"
  13751. static="true" final="true" visibility="public"
  13752. deprecated="not deprecated">
  13753. </field>
  13754. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  13755. transient="false" volatile="false"
  13756. static="true" final="true" visibility="public"
  13757. deprecated="not deprecated">
  13758. </field>
  13759. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  13760. transient="false" volatile="false"
  13761. static="true" final="true" visibility="public"
  13762. deprecated="not deprecated">
  13763. </field>
  13764. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  13765. transient="false" volatile="false"
  13766. static="true" final="true" visibility="public"
  13767. deprecated="not deprecated">
  13768. </field>
  13769. <doc>
  13770. <![CDATA[<p>
  13771. A {@link FileSystem} backed by an FTP client provided by <a
  13772. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  13773. </p>]]>
  13774. </doc>
  13775. </class>
  13776. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  13777. </package>
  13778. <package name="org.apache.hadoop.fs.permission">
  13779. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  13780. <class name="AccessControlException" extends="java.io.IOException"
  13781. abstract="false"
  13782. static="false" final="false" visibility="public"
  13783. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  13784. instead.">
  13785. <constructor name="AccessControlException"
  13786. static="false" final="false" visibility="public"
  13787. deprecated="not deprecated">
  13788. <doc>
  13789. <![CDATA[Default constructor is needed for unwrapping from
  13790. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  13791. </doc>
  13792. </constructor>
  13793. <constructor name="AccessControlException" type="java.lang.String"
  13794. static="false" final="false" visibility="public"
  13795. deprecated="not deprecated">
  13796. <doc>
  13797. <![CDATA[Constructs an {@link AccessControlException}
  13798. with the specified detail message.
  13799. @param s the detail message.]]>
  13800. </doc>
  13801. </constructor>
  13802. <constructor name="AccessControlException" type="java.lang.Throwable"
  13803. static="false" final="false" visibility="public"
  13804. deprecated="not deprecated">
  13805. <doc>
  13806. <![CDATA[Constructs a new exception with the specified cause and a detail
  13807. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  13808. typically contains the class and detail message of <tt>cause</tt>).
  13809. @param cause the cause (which is saved for later retrieval by the
  13810. {@link #getCause()} method). (A <tt>null</tt> value is
  13811. permitted, and indicates that the cause is nonexistent or
  13812. unknown.)]]>
  13813. </doc>
  13814. </constructor>
  13815. <doc>
  13816. <![CDATA[An exception class for access control related issues.
  13817. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  13818. instead.]]>
  13819. </doc>
  13820. </class>
  13821. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  13822. <!-- start class org.apache.hadoop.fs.permission.AclEntry -->
  13823. <class name="AclEntry" extends="java.lang.Object"
  13824. abstract="false"
  13825. static="false" final="false" visibility="public"
  13826. deprecated="not deprecated">
  13827. <method name="getType" return="org.apache.hadoop.fs.permission.AclEntryType"
  13828. abstract="false" native="false" synchronized="false"
  13829. static="false" final="false" visibility="public"
  13830. deprecated="not deprecated">
  13831. <doc>
  13832. <![CDATA[Returns the ACL entry type.
  13833. @return AclEntryType ACL entry type]]>
  13834. </doc>
  13835. </method>
  13836. <method name="getName" return="java.lang.String"
  13837. abstract="false" native="false" synchronized="false"
  13838. static="false" final="false" visibility="public"
  13839. deprecated="not deprecated">
  13840. <doc>
  13841. <![CDATA[Returns the optional ACL entry name.
  13842. @return String ACL entry name, or null if undefined]]>
  13843. </doc>
  13844. </method>
  13845. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsAction"
  13846. abstract="false" native="false" synchronized="false"
  13847. static="false" final="false" visibility="public"
  13848. deprecated="not deprecated">
  13849. <doc>
  13850. <![CDATA[Returns the set of permissions in the ACL entry.
  13851. @return FsAction set of permissions in the ACL entry]]>
  13852. </doc>
  13853. </method>
  13854. <method name="getScope" return="org.apache.hadoop.fs.permission.AclEntryScope"
  13855. abstract="false" native="false" synchronized="false"
  13856. static="false" final="false" visibility="public"
  13857. deprecated="not deprecated">
  13858. <doc>
  13859. <![CDATA[Returns the scope of the ACL entry.
  13860. @return AclEntryScope scope of the ACL entry]]>
  13861. </doc>
  13862. </method>
  13863. <method name="equals" return="boolean"
  13864. abstract="false" native="false" synchronized="false"
  13865. static="false" final="false" visibility="public"
  13866. deprecated="not deprecated">
  13867. <param name="o" type="java.lang.Object"/>
  13868. </method>
  13869. <method name="hashCode" return="int"
  13870. abstract="false" native="false" synchronized="false"
  13871. static="false" final="false" visibility="public"
  13872. deprecated="not deprecated">
  13873. </method>
  13874. <method name="toString" return="java.lang.String"
  13875. abstract="false" native="false" synchronized="false"
  13876. static="false" final="false" visibility="public"
  13877. deprecated="not deprecated">
  13878. </method>
  13879. <method name="toStringStable" return="java.lang.String"
  13880. abstract="false" native="false" synchronized="false"
  13881. static="false" final="false" visibility="public"
  13882. deprecated="not deprecated">
  13883. <doc>
  13884. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  13885. satisfy backward compatibility requirements, such as for shell command
  13886. output or serialization. The format of this string representation matches
  13887. what is expected by the {@link #parseAclSpec(String, boolean)} and
  13888. {@link #parseAclEntry(String, boolean)} methods.
  13889. @return stable, backward compatible string representation]]>
  13890. </doc>
  13891. </method>
  13892. <method name="parseAclSpec" return="java.util.List"
  13893. abstract="false" native="false" synchronized="false"
  13894. static="true" final="false" visibility="public"
  13895. deprecated="not deprecated">
  13896. <param name="aclSpec" type="java.lang.String"/>
  13897. <param name="includePermission" type="boolean"/>
  13898. <doc>
  13899. <![CDATA[Parses a string representation of an ACL spec into a list of AclEntry
  13900. objects. Example: "user::rwx,user:foo:rw-,group::r--,other::---"
  13901. The expected format of ACL entries in the string parameter is the same
  13902. format produced by the {@link #toStringStable()} method.
  13903. @param aclSpec
  13904. String representation of an ACL spec.
  13905. @param includePermission
  13906. for setAcl operations this will be true. i.e. AclSpec should
  13907. include permissions.<br>
  13908. But for removeAcl operation it will be false. i.e. AclSpec should
  13909. not contain permissions.<br>
  13910. Example: "user:foo,group:bar"
  13911. @return Returns list of {@link AclEntry} parsed]]>
  13912. </doc>
  13913. </method>
  13914. <method name="parseAclEntry" return="org.apache.hadoop.fs.permission.AclEntry"
  13915. abstract="false" native="false" synchronized="false"
  13916. static="true" final="false" visibility="public"
  13917. deprecated="not deprecated">
  13918. <param name="aclStr" type="java.lang.String"/>
  13919. <param name="includePermission" type="boolean"/>
  13920. <doc>
  13921. <![CDATA[Parses a string representation of an ACL into a AclEntry object.<br>
  13922. The expected format of ACL entries in the string parameter is the same
  13923. format produced by the {@link #toStringStable()} method.
  13924. @param aclStr
  13925. String representation of an ACL.<br>
  13926. Example: "user:foo:rw-"
  13927. @param includePermission
  13928. for setAcl operations this will be true. i.e. Acl should include
  13929. permissions.<br>
  13930. But for removeAcl operation it will be false. i.e. Acl should not
  13931. contain permissions.<br>
  13932. Example: "user:foo,group:bar,mask::"
  13933. @return Returns an {@link AclEntry} object]]>
  13934. </doc>
  13935. </method>
  13936. <method name="aclSpecToString" return="java.lang.String"
  13937. abstract="false" native="false" synchronized="false"
  13938. static="true" final="false" visibility="public"
  13939. deprecated="not deprecated">
  13940. <param name="aclSpec" type="java.util.List"/>
  13941. <doc>
  13942. <![CDATA[Convert a List of AclEntries into a string - the reverse of parseAclSpec.
  13943. @param aclSpec List of AclEntries to convert
  13944. @return String representation of aclSpec]]>
  13945. </doc>
  13946. </method>
  13947. <doc>
  13948. <![CDATA[Defines a single entry in an ACL. An ACL entry has a type (user, group,
  13949. mask, or other), an optional name (referring to a specific user or group), a
  13950. set of permissions (any combination of read, write and execute), and a scope
  13951. (access or default). AclEntry instances are immutable. Use a {@link Builder}
  13952. to create a new instance.]]>
  13953. </doc>
  13954. </class>
  13955. <!-- end class org.apache.hadoop.fs.permission.AclEntry -->
  13956. <!-- start class org.apache.hadoop.fs.permission.AclEntryScope -->
  13957. <class name="AclEntryScope" extends="java.lang.Enum"
  13958. abstract="false"
  13959. static="false" final="true" visibility="public"
  13960. deprecated="not deprecated">
  13961. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryScope[]"
  13962. abstract="false" native="false" synchronized="false"
  13963. static="true" final="false" visibility="public"
  13964. deprecated="not deprecated">
  13965. </method>
  13966. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryScope"
  13967. abstract="false" native="false" synchronized="false"
  13968. static="true" final="false" visibility="public"
  13969. deprecated="not deprecated">
  13970. <param name="name" type="java.lang.String"/>
  13971. </method>
  13972. <doc>
  13973. <![CDATA[Specifies the scope or intended usage of an ACL entry.]]>
  13974. </doc>
  13975. </class>
  13976. <!-- end class org.apache.hadoop.fs.permission.AclEntryScope -->
  13977. <!-- start class org.apache.hadoop.fs.permission.AclEntryType -->
  13978. <class name="AclEntryType" extends="java.lang.Enum"
  13979. abstract="false"
  13980. static="false" final="true" visibility="public"
  13981. deprecated="not deprecated">
  13982. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryType[]"
  13983. abstract="false" native="false" synchronized="false"
  13984. static="true" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. </method>
  13987. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryType"
  13988. abstract="false" native="false" synchronized="false"
  13989. static="true" final="false" visibility="public"
  13990. deprecated="not deprecated">
  13991. <param name="name" type="java.lang.String"/>
  13992. </method>
  13993. <method name="toString" return="java.lang.String"
  13994. abstract="false" native="false" synchronized="false"
  13995. static="false" final="false" visibility="public"
  13996. deprecated="not deprecated">
  13997. </method>
  13998. <method name="toStringStable" return="java.lang.String"
  13999. abstract="false" native="false" synchronized="false"
  14000. static="false" final="false" visibility="public"
  14001. deprecated="not deprecated">
  14002. <doc>
  14003. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  14004. satisfy backward compatibility requirements, such as for shell command
  14005. output or serialization.
  14006. @return stable, backward compatible string representation]]>
  14007. </doc>
  14008. </method>
  14009. <doc>
  14010. <![CDATA[Specifies the type of an ACL entry.]]>
  14011. </doc>
  14012. </class>
  14013. <!-- end class org.apache.hadoop.fs.permission.AclEntryType -->
  14014. <!-- start class org.apache.hadoop.fs.permission.AclStatus -->
  14015. <class name="AclStatus" extends="java.lang.Object"
  14016. abstract="false"
  14017. static="false" final="false" visibility="public"
  14018. deprecated="not deprecated">
  14019. <method name="getOwner" return="java.lang.String"
  14020. abstract="false" native="false" synchronized="false"
  14021. static="false" final="false" visibility="public"
  14022. deprecated="not deprecated">
  14023. <doc>
  14024. <![CDATA[Returns the file owner.
  14025. @return String file owner]]>
  14026. </doc>
  14027. </method>
  14028. <method name="getGroup" return="java.lang.String"
  14029. abstract="false" native="false" synchronized="false"
  14030. static="false" final="false" visibility="public"
  14031. deprecated="not deprecated">
  14032. <doc>
  14033. <![CDATA[Returns the file group.
  14034. @return String file group]]>
  14035. </doc>
  14036. </method>
  14037. <method name="isStickyBit" return="boolean"
  14038. abstract="false" native="false" synchronized="false"
  14039. static="false" final="false" visibility="public"
  14040. deprecated="not deprecated">
  14041. <doc>
  14042. <![CDATA[Returns the sticky bit.
  14043. @return boolean sticky bit]]>
  14044. </doc>
  14045. </method>
  14046. <method name="getEntries" return="java.util.List"
  14047. abstract="false" native="false" synchronized="false"
  14048. static="false" final="false" visibility="public"
  14049. deprecated="not deprecated">
  14050. <doc>
  14051. <![CDATA[Returns the list of all ACL entries, ordered by their natural ordering.
  14052. @return List<AclEntry> unmodifiable ordered list of all ACL entries]]>
  14053. </doc>
  14054. </method>
  14055. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  14056. abstract="false" native="false" synchronized="false"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <doc>
  14060. <![CDATA[Returns the permission set for the path
  14061. @return {@link FsPermission} for the path]]>
  14062. </doc>
  14063. </method>
  14064. <method name="equals" return="boolean"
  14065. abstract="false" native="false" synchronized="false"
  14066. static="false" final="false" visibility="public"
  14067. deprecated="not deprecated">
  14068. <param name="o" type="java.lang.Object"/>
  14069. </method>
  14070. <method name="hashCode" return="int"
  14071. abstract="false" native="false" synchronized="false"
  14072. static="false" final="false" visibility="public"
  14073. deprecated="not deprecated">
  14074. </method>
  14075. <method name="toString" return="java.lang.String"
  14076. abstract="false" native="false" synchronized="false"
  14077. static="false" final="false" visibility="public"
  14078. deprecated="not deprecated">
  14079. </method>
  14080. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  14081. abstract="false" native="false" synchronized="false"
  14082. static="false" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  14085. <doc>
  14086. <![CDATA[Get the effective permission for the AclEntry
  14087. @param entry AclEntry to get the effective action]]>
  14088. </doc>
  14089. </method>
  14090. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  14091. abstract="false" native="false" synchronized="false"
  14092. static="false" final="false" visibility="public"
  14093. deprecated="not deprecated">
  14094. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  14095. <param name="permArg" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14096. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14097. <doc>
  14098. <![CDATA[Get the effective permission for the AclEntry. <br>
  14099. Recommended to use this API ONLY if client communicates with the old
  14100. NameNode, needs to pass the Permission for the path to get effective
  14101. permission, else use {@link AclStatus#getEffectivePermission(AclEntry)}.
  14102. @param entry AclEntry to get the effective action
  14103. @param permArg Permission for the path. However if the client is NOT
  14104. communicating with old namenode, then this argument will not have
  14105. any preference.
  14106. @return Returns the effective permission for the entry.
  14107. @throws IllegalArgumentException If the client communicating with old
  14108. namenode and permission is not passed as an argument.]]>
  14109. </doc>
  14110. </method>
  14111. <doc>
  14112. <![CDATA[An AclStatus contains the ACL information of a specific file. AclStatus
  14113. instances are immutable. Use a {@link Builder} to create a new instance.]]>
  14114. </doc>
  14115. </class>
  14116. <!-- end class org.apache.hadoop.fs.permission.AclStatus -->
  14117. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  14118. <class name="FsAction" extends="java.lang.Enum"
  14119. abstract="false"
  14120. static="false" final="true" visibility="public"
  14121. deprecated="not deprecated">
  14122. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  14123. abstract="false" native="false" synchronized="false"
  14124. static="true" final="false" visibility="public"
  14125. deprecated="not deprecated">
  14126. </method>
  14127. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  14128. abstract="false" native="false" synchronized="false"
  14129. static="true" final="false" visibility="public"
  14130. deprecated="not deprecated">
  14131. <param name="name" type="java.lang.String"/>
  14132. </method>
  14133. <method name="implies" return="boolean"
  14134. abstract="false" native="false" synchronized="false"
  14135. static="false" final="false" visibility="public"
  14136. deprecated="not deprecated">
  14137. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  14138. <doc>
  14139. <![CDATA[Return true if this action implies that action.
  14140. @param that]]>
  14141. </doc>
  14142. </method>
  14143. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  14144. abstract="false" native="false" synchronized="false"
  14145. static="false" final="false" visibility="public"
  14146. deprecated="not deprecated">
  14147. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  14148. <doc>
  14149. <![CDATA[AND operation.]]>
  14150. </doc>
  14151. </method>
  14152. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  14153. abstract="false" native="false" synchronized="false"
  14154. static="false" final="false" visibility="public"
  14155. deprecated="not deprecated">
  14156. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  14157. <doc>
  14158. <![CDATA[OR operation.]]>
  14159. </doc>
  14160. </method>
  14161. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  14162. abstract="false" native="false" synchronized="false"
  14163. static="false" final="false" visibility="public"
  14164. deprecated="not deprecated">
  14165. <doc>
  14166. <![CDATA[NOT operation.]]>
  14167. </doc>
  14168. </method>
  14169. <method name="getFsAction" return="org.apache.hadoop.fs.permission.FsAction"
  14170. abstract="false" native="false" synchronized="false"
  14171. static="true" final="false" visibility="public"
  14172. deprecated="not deprecated">
  14173. <param name="permission" type="java.lang.String"/>
  14174. <doc>
  14175. <![CDATA[Get the FsAction enum for String representation of permissions
  14176. @param permission
  14177. 3-character string representation of permission. ex: rwx
  14178. @return Returns FsAction enum if the corresponding FsAction exists for permission.
  14179. Otherwise returns null]]>
  14180. </doc>
  14181. </method>
  14182. <field name="SYMBOL" type="java.lang.String"
  14183. transient="false" volatile="false"
  14184. static="false" final="true" visibility="public"
  14185. deprecated="not deprecated">
  14186. <doc>
  14187. <![CDATA[Symbolic representation]]>
  14188. </doc>
  14189. </field>
  14190. <doc>
  14191. <![CDATA[File system actions, e.g. read, write, etc.]]>
  14192. </doc>
  14193. </class>
  14194. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  14195. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  14196. <class name="FsPermission" extends="java.lang.Object"
  14197. abstract="false"
  14198. static="false" final="false" visibility="public"
  14199. deprecated="not deprecated">
  14200. <implements name="org.apache.hadoop.io.Writable"/>
  14201. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  14202. static="false" final="false" visibility="public"
  14203. deprecated="not deprecated">
  14204. <doc>
  14205. <![CDATA[Construct by the given {@link FsAction}.
  14206. @param u user action
  14207. @param g group action
  14208. @param o other action]]>
  14209. </doc>
  14210. </constructor>
  14211. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  14212. static="false" final="false" visibility="public"
  14213. deprecated="not deprecated">
  14214. </constructor>
  14215. <constructor name="FsPermission" type="short"
  14216. static="false" final="false" visibility="public"
  14217. deprecated="not deprecated">
  14218. <doc>
  14219. <![CDATA[Construct by the given mode.
  14220. @param mode
  14221. @see #toShort()]]>
  14222. </doc>
  14223. </constructor>
  14224. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  14225. static="false" final="false" visibility="public"
  14226. deprecated="not deprecated">
  14227. <doc>
  14228. <![CDATA[Copy constructor
  14229. @param other other permission]]>
  14230. </doc>
  14231. </constructor>
  14232. <constructor name="FsPermission" type="java.lang.String"
  14233. static="false" final="false" visibility="public"
  14234. deprecated="not deprecated">
  14235. <doc>
  14236. <![CDATA[Construct by given mode, either in octal or symbolic format.
  14237. @param mode mode as a string, either in octal or symbolic format
  14238. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  14239. </doc>
  14240. </constructor>
  14241. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  14242. abstract="false" native="false" synchronized="false"
  14243. static="true" final="false" visibility="public"
  14244. deprecated="not deprecated">
  14245. <param name="permission" type="short"/>
  14246. <doc>
  14247. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  14248. </doc>
  14249. </method>
  14250. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  14251. abstract="false" native="false" synchronized="false"
  14252. static="false" final="false" visibility="public"
  14253. deprecated="not deprecated">
  14254. <doc>
  14255. <![CDATA[Return user {@link FsAction}.]]>
  14256. </doc>
  14257. </method>
  14258. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  14259. abstract="false" native="false" synchronized="false"
  14260. static="false" final="false" visibility="public"
  14261. deprecated="not deprecated">
  14262. <doc>
  14263. <![CDATA[Return group {@link FsAction}.]]>
  14264. </doc>
  14265. </method>
  14266. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  14267. abstract="false" native="false" synchronized="false"
  14268. static="false" final="false" visibility="public"
  14269. deprecated="not deprecated">
  14270. <doc>
  14271. <![CDATA[Return other {@link FsAction}.]]>
  14272. </doc>
  14273. </method>
  14274. <method name="fromShort"
  14275. abstract="false" native="false" synchronized="false"
  14276. static="false" final="false" visibility="public"
  14277. deprecated="not deprecated">
  14278. <param name="n" type="short"/>
  14279. </method>
  14280. <method name="write"
  14281. abstract="false" native="false" synchronized="false"
  14282. static="false" final="false" visibility="public"
  14283. deprecated="not deprecated">
  14284. <param name="out" type="java.io.DataOutput"/>
  14285. <exception name="IOException" type="java.io.IOException"/>
  14286. </method>
  14287. <method name="readFields"
  14288. abstract="false" native="false" synchronized="false"
  14289. static="false" final="false" visibility="public"
  14290. deprecated="not deprecated">
  14291. <param name="in" type="java.io.DataInput"/>
  14292. <exception name="IOException" type="java.io.IOException"/>
  14293. </method>
  14294. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  14295. abstract="false" native="false" synchronized="false"
  14296. static="true" final="false" visibility="public"
  14297. deprecated="not deprecated">
  14298. <param name="in" type="java.io.DataInput"/>
  14299. <exception name="IOException" type="java.io.IOException"/>
  14300. <doc>
  14301. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  14302. </doc>
  14303. </method>
  14304. <method name="toShort" return="short"
  14305. abstract="false" native="false" synchronized="false"
  14306. static="false" final="false" visibility="public"
  14307. deprecated="not deprecated">
  14308. <doc>
  14309. <![CDATA[Encode the object to a short.]]>
  14310. </doc>
  14311. </method>
  14312. <method name="toExtendedShort" return="short"
  14313. abstract="false" native="false" synchronized="false"
  14314. static="false" final="false" visibility="public"
  14315. deprecated="not deprecated">
  14316. <doc>
  14317. <![CDATA[Encodes the object to a short. Unlike {@link #toShort()}, this method may
  14318. return values outside the fixed range 00000 - 01777 if extended features
  14319. are encoded into this permission, such as the ACL bit.
  14320. @return short extended short representation of this permission]]>
  14321. </doc>
  14322. </method>
  14323. <method name="equals" return="boolean"
  14324. abstract="false" native="false" synchronized="false"
  14325. static="false" final="false" visibility="public"
  14326. deprecated="not deprecated">
  14327. <param name="obj" type="java.lang.Object"/>
  14328. </method>
  14329. <method name="hashCode" return="int"
  14330. abstract="false" native="false" synchronized="false"
  14331. static="false" final="false" visibility="public"
  14332. deprecated="not deprecated">
  14333. </method>
  14334. <method name="toString" return="java.lang.String"
  14335. abstract="false" native="false" synchronized="false"
  14336. static="false" final="false" visibility="public"
  14337. deprecated="not deprecated">
  14338. </method>
  14339. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  14340. abstract="false" native="false" synchronized="false"
  14341. static="false" final="false" visibility="public"
  14342. deprecated="not deprecated">
  14343. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14344. <doc>
  14345. <![CDATA[Apply a umask to this permission and return a new one.
  14346. The umask is used by create, mkdir, and other Hadoop filesystem operations.
  14347. The mode argument for these operations is modified by removing the bits
  14348. which are set in the umask. Thus, the umask limits the permissions which
  14349. newly created files and directories get.
  14350. @param umask The umask to use
  14351. @return The effective permission]]>
  14352. </doc>
  14353. </method>
  14354. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  14355. abstract="false" native="false" synchronized="false"
  14356. static="true" final="false" visibility="public"
  14357. deprecated="not deprecated">
  14358. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14359. <doc>
  14360. <![CDATA[Get the user file creation mask (umask)
  14361. {@code UMASK_LABEL} config param has umask value that is either symbolic
  14362. or octal.
  14363. Symbolic umask is applied relative to file mode creation mask;
  14364. the permission op characters '+' clears the corresponding bit in the mask,
  14365. '-' sets bits in the mask.
  14366. Octal umask, the specified bits are set in the file mode creation mask.
  14367. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  14368. </doc>
  14369. </method>
  14370. <method name="getStickyBit" return="boolean"
  14371. abstract="false" native="false" synchronized="false"
  14372. static="false" final="false" visibility="public"
  14373. deprecated="not deprecated">
  14374. </method>
  14375. <method name="getAclBit" return="boolean"
  14376. abstract="false" native="false" synchronized="false"
  14377. static="false" final="false" visibility="public"
  14378. deprecated="not deprecated">
  14379. <doc>
  14380. <![CDATA[Returns true if there is also an ACL (access control list).
  14381. @return boolean true if there is also an ACL (access control list).]]>
  14382. </doc>
  14383. </method>
  14384. <method name="getEncryptedBit" return="boolean"
  14385. abstract="false" native="false" synchronized="false"
  14386. static="false" final="false" visibility="public"
  14387. deprecated="not deprecated">
  14388. <doc>
  14389. <![CDATA[Returns true if the file is encrypted or directory is in an encryption zone]]>
  14390. </doc>
  14391. </method>
  14392. <method name="setUMask"
  14393. abstract="false" native="false" synchronized="false"
  14394. static="true" final="false" visibility="public"
  14395. deprecated="not deprecated">
  14396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14397. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14398. <doc>
  14399. <![CDATA[Set the user file creation mask (umask)]]>
  14400. </doc>
  14401. </method>
  14402. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14403. abstract="false" native="false" synchronized="false"
  14404. static="true" final="false" visibility="public"
  14405. deprecated="not deprecated">
  14406. <doc>
  14407. <![CDATA[Get the default permission for directory and symlink.
  14408. In previous versions, this default permission was also used to
  14409. create files, so files created end up with ugo+x permission.
  14410. See HADOOP-9155 for detail.
  14411. Two new methods are added to solve this, please use
  14412. {@link FsPermission#getDirDefault()} for directory, and use
  14413. {@link FsPermission#getFileDefault()} for file.
  14414. This method is kept for compatibility.]]>
  14415. </doc>
  14416. </method>
  14417. <method name="getDirDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14418. abstract="false" native="false" synchronized="false"
  14419. static="true" final="false" visibility="public"
  14420. deprecated="not deprecated">
  14421. <doc>
  14422. <![CDATA[Get the default permission for directory.]]>
  14423. </doc>
  14424. </method>
  14425. <method name="getFileDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14426. abstract="false" native="false" synchronized="false"
  14427. static="true" final="false" visibility="public"
  14428. deprecated="not deprecated">
  14429. <doc>
  14430. <![CDATA[Get the default permission for file.]]>
  14431. </doc>
  14432. </method>
  14433. <method name="getCachePoolDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  14434. abstract="false" native="false" synchronized="false"
  14435. static="true" final="false" visibility="public"
  14436. deprecated="not deprecated">
  14437. <doc>
  14438. <![CDATA[Get the default permission for cache pools.]]>
  14439. </doc>
  14440. </method>
  14441. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  14442. abstract="false" native="false" synchronized="false"
  14443. static="true" final="false" visibility="public"
  14444. deprecated="not deprecated">
  14445. <param name="unixSymbolicPermission" type="java.lang.String"/>
  14446. <doc>
  14447. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  14448. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  14449. </doc>
  14450. </method>
  14451. <field name="MAX_PERMISSION_LENGTH" type="int"
  14452. transient="false" volatile="false"
  14453. static="true" final="true" visibility="public"
  14454. deprecated="not deprecated">
  14455. <doc>
  14456. <![CDATA[Maximum acceptable length of a permission string to parse]]>
  14457. </doc>
  14458. </field>
  14459. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  14460. transient="false" volatile="false"
  14461. static="true" final="true" visibility="public"
  14462. deprecated="not deprecated">
  14463. <doc>
  14464. <![CDATA[umask property label deprecated key and code in getUMask method
  14465. to accommodate it may be removed in version .23]]>
  14466. </doc>
  14467. </field>
  14468. <field name="UMASK_LABEL" type="java.lang.String"
  14469. transient="false" volatile="false"
  14470. static="true" final="true" visibility="public"
  14471. deprecated="not deprecated">
  14472. </field>
  14473. <field name="DEFAULT_UMASK" type="int"
  14474. transient="false" volatile="false"
  14475. static="true" final="true" visibility="public"
  14476. deprecated="not deprecated">
  14477. </field>
  14478. <doc>
  14479. <![CDATA[A class for file/directory permissions.]]>
  14480. </doc>
  14481. </class>
  14482. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  14483. </package>
  14484. <package name="org.apache.hadoop.fs.sftp">
  14485. </package>
  14486. <package name="org.apache.hadoop.fs.shell.find">
  14487. </package>
  14488. <package name="org.apache.hadoop.fs.viewfs">
  14489. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  14490. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  14491. abstract="false"
  14492. static="false" final="false" visibility="public"
  14493. deprecated="not deprecated">
  14494. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  14495. static="false" final="false" visibility="public"
  14496. deprecated="not deprecated">
  14497. </constructor>
  14498. <constructor name="NotInMountpointException" type="java.lang.String"
  14499. static="false" final="false" visibility="public"
  14500. deprecated="not deprecated">
  14501. </constructor>
  14502. <method name="getMessage" return="java.lang.String"
  14503. abstract="false" native="false" synchronized="false"
  14504. static="false" final="false" visibility="public"
  14505. deprecated="not deprecated">
  14506. </method>
  14507. <doc>
  14508. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  14509. Exception class used in cases where the given path is not mounted
  14510. through viewfs.]]>
  14511. </doc>
  14512. </class>
  14513. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  14514. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  14515. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14516. abstract="false"
  14517. static="false" final="false" visibility="public"
  14518. deprecated="not deprecated">
  14519. <constructor name="ViewFileSystem"
  14520. static="false" final="false" visibility="public"
  14521. deprecated="not deprecated">
  14522. <exception name="IOException" type="java.io.IOException"/>
  14523. <doc>
  14524. <![CDATA[This is the constructor with the signature needed by
  14525. {@link FileSystem#createFileSystem(URI, Configuration)}
  14526. After this constructor is called initialize() is called.
  14527. @throws IOException]]>
  14528. </doc>
  14529. </constructor>
  14530. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  14531. static="false" final="false" visibility="public"
  14532. deprecated="not deprecated">
  14533. <exception name="IOException" type="java.io.IOException"/>
  14534. <doc>
  14535. <![CDATA[Convenience Constructor for apps to call directly
  14536. @param conf
  14537. @throws IOException]]>
  14538. </doc>
  14539. </constructor>
  14540. <method name="getScheme" return="java.lang.String"
  14541. abstract="false" native="false" synchronized="false"
  14542. static="false" final="false" visibility="public"
  14543. deprecated="not deprecated">
  14544. <doc>
  14545. <![CDATA[Return the protocol scheme for the FileSystem.
  14546. <p/>
  14547. @return <code>viewfs</code>]]>
  14548. </doc>
  14549. </method>
  14550. <method name="initialize"
  14551. abstract="false" native="false" synchronized="false"
  14552. static="false" final="false" visibility="public"
  14553. deprecated="not deprecated">
  14554. <param name="theUri" type="java.net.URI"/>
  14555. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14556. <exception name="IOException" type="java.io.IOException"/>
  14557. <doc>
  14558. <![CDATA[Called after a new FileSystem instance is constructed.
  14559. @param theUri a uri whose authority section names the host, port, etc. for
  14560. this FileSystem
  14561. @param conf the configuration]]>
  14562. </doc>
  14563. </method>
  14564. <method name="getTrashCanLocation" return="org.apache.hadoop.fs.Path"
  14565. abstract="false" native="false" synchronized="false"
  14566. static="false" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14569. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14570. </method>
  14571. <method name="getUri" return="java.net.URI"
  14572. abstract="false" native="false" synchronized="false"
  14573. static="false" final="false" visibility="public"
  14574. deprecated="not deprecated">
  14575. </method>
  14576. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  14577. abstract="false" native="false" synchronized="false"
  14578. static="false" final="false" visibility="public"
  14579. deprecated="not deprecated">
  14580. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14581. <exception name="IOException" type="java.io.IOException"/>
  14582. </method>
  14583. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  14584. abstract="false" native="false" synchronized="false"
  14585. static="false" final="false" visibility="public"
  14586. deprecated="not deprecated">
  14587. </method>
  14588. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14589. abstract="false" native="false" synchronized="false"
  14590. static="false" final="false" visibility="public"
  14591. deprecated="not deprecated">
  14592. </method>
  14593. <method name="setWorkingDirectory"
  14594. abstract="false" native="false" synchronized="false"
  14595. static="false" final="false" visibility="public"
  14596. deprecated="not deprecated">
  14597. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  14598. </method>
  14599. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14600. abstract="false" native="false" synchronized="false"
  14601. static="false" final="false" visibility="public"
  14602. deprecated="not deprecated">
  14603. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14604. <param name="bufferSize" type="int"/>
  14605. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14606. <exception name="IOException" type="java.io.IOException"/>
  14607. </method>
  14608. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14609. abstract="false" native="false" synchronized="false"
  14610. static="false" final="false" visibility="public"
  14611. deprecated="not deprecated">
  14612. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14613. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14614. <param name="flags" type="java.util.EnumSet"/>
  14615. <param name="bufferSize" type="int"/>
  14616. <param name="replication" type="short"/>
  14617. <param name="blockSize" type="long"/>
  14618. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14619. <exception name="IOException" type="java.io.IOException"/>
  14620. </method>
  14621. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14622. abstract="false" native="false" synchronized="false"
  14623. static="false" final="false" visibility="public"
  14624. deprecated="not deprecated">
  14625. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14626. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14627. <param name="overwrite" type="boolean"/>
  14628. <param name="bufferSize" type="int"/>
  14629. <param name="replication" type="short"/>
  14630. <param name="blockSize" type="long"/>
  14631. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14632. <exception name="IOException" type="java.io.IOException"/>
  14633. </method>
  14634. <method name="delete" return="boolean"
  14635. abstract="false" native="false" synchronized="false"
  14636. static="false" final="false" visibility="public"
  14637. deprecated="not deprecated">
  14638. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14639. <param name="recursive" type="boolean"/>
  14640. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14641. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14642. <exception name="IOException" type="java.io.IOException"/>
  14643. </method>
  14644. <method name="delete" return="boolean"
  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="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14650. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14651. <exception name="IOException" type="java.io.IOException"/>
  14652. </method>
  14653. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  14654. abstract="false" native="false" synchronized="false"
  14655. static="false" final="false" visibility="public"
  14656. deprecated="not deprecated">
  14657. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  14658. <param name="start" type="long"/>
  14659. <param name="len" type="long"/>
  14660. <exception name="IOException" type="java.io.IOException"/>
  14661. </method>
  14662. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  14663. abstract="false" native="false" synchronized="false"
  14664. static="false" final="false" visibility="public"
  14665. deprecated="not deprecated">
  14666. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14667. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14668. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14669. <exception name="IOException" type="java.io.IOException"/>
  14670. </method>
  14671. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  14672. abstract="false" native="false" synchronized="false"
  14673. static="false" final="false" visibility="public"
  14674. deprecated="not deprecated">
  14675. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14676. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14677. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14678. <exception name="IOException" type="java.io.IOException"/>
  14679. </method>
  14680. <method name="access"
  14681. abstract="false" native="false" synchronized="false"
  14682. static="false" final="false" visibility="public"
  14683. deprecated="not deprecated">
  14684. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14685. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  14686. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14687. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14688. <exception name="IOException" type="java.io.IOException"/>
  14689. </method>
  14690. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  14691. abstract="false" native="false" synchronized="false"
  14692. static="false" final="false" visibility="public"
  14693. deprecated="not deprecated">
  14694. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14695. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14696. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14697. <exception name="IOException" type="java.io.IOException"/>
  14698. </method>
  14699. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  14700. abstract="false" native="false" synchronized="false"
  14701. static="false" final="false" visibility="public"
  14702. deprecated="not deprecated">
  14703. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14704. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  14705. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14706. <exception name="IOException" type="java.io.IOException"/>
  14707. </method>
  14708. <method name="mkdirs" return="boolean"
  14709. abstract="false" native="false" synchronized="false"
  14710. static="false" final="false" visibility="public"
  14711. deprecated="not deprecated">
  14712. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  14713. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14714. <exception name="IOException" type="java.io.IOException"/>
  14715. </method>
  14716. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14717. abstract="false" native="false" synchronized="false"
  14718. static="false" final="false" visibility="public"
  14719. deprecated="not deprecated">
  14720. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14721. <param name="bufferSize" type="int"/>
  14722. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14723. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14724. <exception name="IOException" type="java.io.IOException"/>
  14725. </method>
  14726. <method name="rename" return="boolean"
  14727. abstract="false" native="false" synchronized="false"
  14728. static="false" final="false" visibility="public"
  14729. deprecated="not deprecated">
  14730. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14731. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14732. <exception name="IOException" type="java.io.IOException"/>
  14733. </method>
  14734. <method name="truncate" return="boolean"
  14735. abstract="false" native="false" synchronized="false"
  14736. static="false" final="false" visibility="public"
  14737. deprecated="not deprecated">
  14738. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14739. <param name="newLength" type="long"/>
  14740. <exception name="IOException" type="java.io.IOException"/>
  14741. </method>
  14742. <method name="setOwner"
  14743. abstract="false" native="false" synchronized="false"
  14744. static="false" final="false" visibility="public"
  14745. deprecated="not deprecated">
  14746. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14747. <param name="username" type="java.lang.String"/>
  14748. <param name="groupname" type="java.lang.String"/>
  14749. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14750. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14751. <exception name="IOException" type="java.io.IOException"/>
  14752. </method>
  14753. <method name="setPermission"
  14754. abstract="false" native="false" synchronized="false"
  14755. static="false" final="false" visibility="public"
  14756. deprecated="not deprecated">
  14757. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14758. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14759. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14760. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14761. <exception name="IOException" type="java.io.IOException"/>
  14762. </method>
  14763. <method name="setReplication" return="boolean"
  14764. abstract="false" native="false" synchronized="false"
  14765. static="false" final="false" visibility="public"
  14766. deprecated="not deprecated">
  14767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14768. <param name="replication" type="short"/>
  14769. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14770. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14771. <exception name="IOException" type="java.io.IOException"/>
  14772. </method>
  14773. <method name="setTimes"
  14774. abstract="false" native="false" synchronized="false"
  14775. static="false" final="false" visibility="public"
  14776. deprecated="not deprecated">
  14777. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14778. <param name="mtime" type="long"/>
  14779. <param name="atime" type="long"/>
  14780. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  14781. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  14782. <exception name="IOException" type="java.io.IOException"/>
  14783. </method>
  14784. <method name="modifyAclEntries"
  14785. abstract="false" native="false" synchronized="false"
  14786. static="false" final="false" visibility="public"
  14787. deprecated="not deprecated">
  14788. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14789. <param name="aclSpec" type="java.util.List"/>
  14790. <exception name="IOException" type="java.io.IOException"/>
  14791. </method>
  14792. <method name="removeAclEntries"
  14793. abstract="false" native="false" synchronized="false"
  14794. static="false" final="false" visibility="public"
  14795. deprecated="not deprecated">
  14796. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14797. <param name="aclSpec" type="java.util.List"/>
  14798. <exception name="IOException" type="java.io.IOException"/>
  14799. </method>
  14800. <method name="removeDefaultAcl"
  14801. abstract="false" native="false" synchronized="false"
  14802. static="false" final="false" visibility="public"
  14803. deprecated="not deprecated">
  14804. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14805. <exception name="IOException" type="java.io.IOException"/>
  14806. </method>
  14807. <method name="removeAcl"
  14808. abstract="false" native="false" synchronized="false"
  14809. static="false" final="false" visibility="public"
  14810. deprecated="not deprecated">
  14811. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14812. <exception name="IOException" type="java.io.IOException"/>
  14813. </method>
  14814. <method name="setAcl"
  14815. abstract="false" native="false" synchronized="false"
  14816. static="false" final="false" visibility="public"
  14817. deprecated="not deprecated">
  14818. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14819. <param name="aclSpec" type="java.util.List"/>
  14820. <exception name="IOException" type="java.io.IOException"/>
  14821. </method>
  14822. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  14823. abstract="false" native="false" synchronized="false"
  14824. static="false" final="false" visibility="public"
  14825. deprecated="not deprecated">
  14826. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14827. <exception name="IOException" type="java.io.IOException"/>
  14828. </method>
  14829. <method name="setXAttr"
  14830. abstract="false" native="false" synchronized="false"
  14831. static="false" final="false" visibility="public"
  14832. deprecated="not deprecated">
  14833. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14834. <param name="name" type="java.lang.String"/>
  14835. <param name="value" type="byte[]"/>
  14836. <param name="flag" type="java.util.EnumSet"/>
  14837. <exception name="IOException" type="java.io.IOException"/>
  14838. </method>
  14839. <method name="getXAttr" return="byte[]"
  14840. abstract="false" native="false" synchronized="false"
  14841. static="false" final="false" visibility="public"
  14842. deprecated="not deprecated">
  14843. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14844. <param name="name" type="java.lang.String"/>
  14845. <exception name="IOException" type="java.io.IOException"/>
  14846. </method>
  14847. <method name="getXAttrs" return="java.util.Map"
  14848. abstract="false" native="false" synchronized="false"
  14849. static="false" final="false" visibility="public"
  14850. deprecated="not deprecated">
  14851. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14852. <exception name="IOException" type="java.io.IOException"/>
  14853. </method>
  14854. <method name="getXAttrs" return="java.util.Map"
  14855. abstract="false" native="false" synchronized="false"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14859. <param name="names" type="java.util.List"/>
  14860. <exception name="IOException" type="java.io.IOException"/>
  14861. </method>
  14862. <method name="listXAttrs" return="java.util.List"
  14863. abstract="false" native="false" synchronized="false"
  14864. static="false" final="false" visibility="public"
  14865. deprecated="not deprecated">
  14866. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14867. <exception name="IOException" type="java.io.IOException"/>
  14868. </method>
  14869. <method name="removeXAttr"
  14870. abstract="false" native="false" synchronized="false"
  14871. static="false" final="false" visibility="public"
  14872. deprecated="not deprecated">
  14873. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14874. <param name="name" type="java.lang.String"/>
  14875. <exception name="IOException" type="java.io.IOException"/>
  14876. </method>
  14877. <method name="setVerifyChecksum"
  14878. abstract="false" native="false" synchronized="false"
  14879. static="false" final="false" visibility="public"
  14880. deprecated="not deprecated">
  14881. <param name="verifyChecksum" type="boolean"/>
  14882. </method>
  14883. <method name="getDefaultBlockSize" return="long"
  14884. abstract="false" native="false" synchronized="false"
  14885. static="false" final="false" visibility="public"
  14886. deprecated="not deprecated">
  14887. </method>
  14888. <method name="getDefaultReplication" return="short"
  14889. abstract="false" native="false" synchronized="false"
  14890. static="false" final="false" visibility="public"
  14891. deprecated="not deprecated">
  14892. </method>
  14893. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  14894. abstract="false" native="false" synchronized="false"
  14895. static="false" final="false" visibility="public"
  14896. deprecated="not deprecated">
  14897. <exception name="IOException" type="java.io.IOException"/>
  14898. </method>
  14899. <method name="getDefaultBlockSize" return="long"
  14900. abstract="false" native="false" synchronized="false"
  14901. static="false" final="false" visibility="public"
  14902. deprecated="not deprecated">
  14903. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14904. </method>
  14905. <method name="getDefaultReplication" return="short"
  14906. abstract="false" native="false" synchronized="false"
  14907. static="false" final="false" visibility="public"
  14908. deprecated="not deprecated">
  14909. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14910. </method>
  14911. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  14912. abstract="false" native="false" synchronized="false"
  14913. static="false" final="false" visibility="public"
  14914. deprecated="not deprecated">
  14915. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14916. <exception name="IOException" type="java.io.IOException"/>
  14917. </method>
  14918. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  14919. abstract="false" native="false" synchronized="false"
  14920. static="false" final="false" visibility="public"
  14921. deprecated="not deprecated">
  14922. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14923. <exception name="IOException" type="java.io.IOException"/>
  14924. </method>
  14925. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  14926. abstract="false" native="false" synchronized="false"
  14927. static="false" final="false" visibility="public"
  14928. deprecated="not deprecated">
  14929. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14930. <exception name="IOException" type="java.io.IOException"/>
  14931. </method>
  14932. <method name="setWriteChecksum"
  14933. abstract="false" native="false" synchronized="false"
  14934. static="false" final="false" visibility="public"
  14935. deprecated="not deprecated">
  14936. <param name="writeChecksum" type="boolean"/>
  14937. </method>
  14938. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  14939. abstract="false" native="false" synchronized="false"
  14940. static="false" final="false" visibility="public"
  14941. deprecated="not deprecated">
  14942. </method>
  14943. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  14944. abstract="false" native="false" synchronized="false"
  14945. static="false" final="false" visibility="public"
  14946. deprecated="not deprecated">
  14947. </method>
  14948. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  14949. abstract="false" native="false" synchronized="false"
  14950. static="false" final="false" visibility="public"
  14951. deprecated="not deprecated">
  14952. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14953. <param name="snapshotName" type="java.lang.String"/>
  14954. <exception name="IOException" type="java.io.IOException"/>
  14955. </method>
  14956. <method name="renameSnapshot"
  14957. abstract="false" native="false" synchronized="false"
  14958. static="false" final="false" visibility="public"
  14959. deprecated="not deprecated">
  14960. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14961. <param name="snapshotOldName" type="java.lang.String"/>
  14962. <param name="snapshotNewName" type="java.lang.String"/>
  14963. <exception name="IOException" type="java.io.IOException"/>
  14964. </method>
  14965. <method name="deleteSnapshot"
  14966. abstract="false" native="false" synchronized="false"
  14967. static="false" final="false" visibility="public"
  14968. deprecated="not deprecated">
  14969. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14970. <param name="snapshotName" type="java.lang.String"/>
  14971. <exception name="IOException" type="java.io.IOException"/>
  14972. </method>
  14973. <doc>
  14974. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  14975. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  14976. </doc>
  14977. </class>
  14978. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  14979. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  14980. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  14981. abstract="false"
  14982. static="false" final="false" visibility="public"
  14983. deprecated="not deprecated">
  14984. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  14985. static="false" final="false" visibility="public"
  14986. deprecated="not deprecated">
  14987. <exception name="IOException" type="java.io.IOException"/>
  14988. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  14989. </constructor>
  14990. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  14991. abstract="false" native="false" synchronized="false"
  14992. static="false" final="false" visibility="public"
  14993. deprecated="not deprecated">
  14994. <exception name="IOException" type="java.io.IOException"/>
  14995. </method>
  14996. <method name="getUriDefaultPort" return="int"
  14997. abstract="false" native="false" synchronized="false"
  14998. static="false" final="false" visibility="public"
  14999. deprecated="not deprecated">
  15000. </method>
  15001. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15002. abstract="false" native="false" synchronized="false"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. </method>
  15006. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  15007. abstract="false" native="false" synchronized="false"
  15008. static="false" final="false" visibility="public"
  15009. deprecated="not deprecated">
  15010. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15011. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15012. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15013. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15014. <exception name="IOException" type="java.io.IOException"/>
  15015. </method>
  15016. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  15017. abstract="false" native="false" synchronized="false"
  15018. static="false" final="false" visibility="public"
  15019. deprecated="not deprecated">
  15020. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15021. <param name="flag" type="java.util.EnumSet"/>
  15022. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15023. <param name="bufferSize" type="int"/>
  15024. <param name="replication" type="short"/>
  15025. <param name="blockSize" type="long"/>
  15026. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15027. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  15028. <param name="createParent" type="boolean"/>
  15029. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15030. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  15031. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15032. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  15033. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  15034. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15035. <exception name="IOException" type="java.io.IOException"/>
  15036. </method>
  15037. <method name="delete" return="boolean"
  15038. abstract="false" native="false" synchronized="false"
  15039. static="false" final="false" visibility="public"
  15040. deprecated="not deprecated">
  15041. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15042. <param name="recursive" type="boolean"/>
  15043. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15044. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15045. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15046. <exception name="IOException" type="java.io.IOException"/>
  15047. </method>
  15048. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  15049. abstract="false" native="false" synchronized="false"
  15050. static="false" final="false" visibility="public"
  15051. deprecated="not deprecated">
  15052. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15053. <param name="start" type="long"/>
  15054. <param name="len" type="long"/>
  15055. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15056. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15057. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15058. <exception name="IOException" type="java.io.IOException"/>
  15059. </method>
  15060. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15065. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15066. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15067. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15068. <exception name="IOException" type="java.io.IOException"/>
  15069. </method>
  15070. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15071. abstract="false" native="false" synchronized="false"
  15072. static="false" final="false" visibility="public"
  15073. deprecated="not deprecated">
  15074. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15075. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15076. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15077. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15078. <exception name="IOException" type="java.io.IOException"/>
  15079. </method>
  15080. <method name="access"
  15081. abstract="false" native="false" synchronized="false"
  15082. static="false" final="false" visibility="public"
  15083. deprecated="not deprecated">
  15084. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15085. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  15086. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15087. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15088. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15089. <exception name="IOException" type="java.io.IOException"/>
  15090. </method>
  15091. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  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. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15097. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15098. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  15099. <exception name="IOException" type="java.io.IOException"/>
  15100. </method>
  15101. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  15102. abstract="false" native="false" synchronized="false"
  15103. static="false" final="false" visibility="public"
  15104. deprecated="not deprecated">
  15105. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15106. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15107. <exception name="IOException" type="java.io.IOException"/>
  15108. </method>
  15109. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  15110. abstract="false" native="false" synchronized="false"
  15111. static="false" final="false" visibility="public"
  15112. deprecated="not deprecated">
  15113. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15114. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15115. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15116. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15117. <exception name="IOException" type="java.io.IOException"/>
  15118. </method>
  15119. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15120. abstract="false" native="false" synchronized="false"
  15121. static="false" final="false" visibility="public"
  15122. deprecated="not deprecated">
  15123. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15124. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15125. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15126. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15127. <exception name="IOException" type="java.io.IOException"/>
  15128. </method>
  15129. <method name="mkdir"
  15130. abstract="false" native="false" synchronized="false"
  15131. static="false" final="false" visibility="public"
  15132. deprecated="not deprecated">
  15133. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  15134. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15135. <param name="createParent" type="boolean"/>
  15136. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15137. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  15138. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15139. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15140. <exception name="IOException" type="java.io.IOException"/>
  15141. </method>
  15142. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15143. abstract="false" native="false" synchronized="false"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15147. <param name="bufferSize" type="int"/>
  15148. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15149. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15150. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15151. <exception name="IOException" type="java.io.IOException"/>
  15152. </method>
  15153. <method name="truncate" return="boolean"
  15154. abstract="false" native="false" synchronized="false"
  15155. static="false" final="false" visibility="public"
  15156. deprecated="not deprecated">
  15157. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15158. <param name="newLength" type="long"/>
  15159. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15160. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15161. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15162. <exception name="IOException" type="java.io.IOException"/>
  15163. </method>
  15164. <method name="renameInternal"
  15165. abstract="false" native="false" synchronized="false"
  15166. static="false" final="false" visibility="public"
  15167. deprecated="not deprecated">
  15168. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15169. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15170. <param name="overwrite" type="boolean"/>
  15171. <exception name="IOException" type="java.io.IOException"/>
  15172. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15173. </method>
  15174. <method name="renameInternal"
  15175. abstract="false" native="false" synchronized="false"
  15176. static="false" final="false" visibility="public"
  15177. deprecated="not deprecated">
  15178. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15179. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15180. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15181. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  15182. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15183. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  15184. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15185. <exception name="IOException" type="java.io.IOException"/>
  15186. </method>
  15187. <method name="supportsSymlinks" return="boolean"
  15188. abstract="false" native="false" synchronized="false"
  15189. static="false" final="false" visibility="public"
  15190. deprecated="not deprecated">
  15191. </method>
  15192. <method name="createSymlink"
  15193. abstract="false" native="false" synchronized="false"
  15194. static="false" final="false" visibility="public"
  15195. deprecated="not deprecated">
  15196. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15197. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15198. <param name="createParent" type="boolean"/>
  15199. <exception name="IOException" type="java.io.IOException"/>
  15200. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15201. </method>
  15202. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15203. abstract="false" native="false" synchronized="false"
  15204. static="false" final="false" visibility="public"
  15205. deprecated="not deprecated">
  15206. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15207. <exception name="IOException" type="java.io.IOException"/>
  15208. </method>
  15209. <method name="setOwner"
  15210. abstract="false" native="false" synchronized="false"
  15211. static="false" final="false" visibility="public"
  15212. deprecated="not deprecated">
  15213. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15214. <param name="username" type="java.lang.String"/>
  15215. <param name="groupname" type="java.lang.String"/>
  15216. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15217. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15218. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15219. <exception name="IOException" type="java.io.IOException"/>
  15220. </method>
  15221. <method name="setPermission"
  15222. abstract="false" native="false" synchronized="false"
  15223. static="false" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15226. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15227. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15228. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15229. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15230. <exception name="IOException" type="java.io.IOException"/>
  15231. </method>
  15232. <method name="setReplication" return="boolean"
  15233. abstract="false" native="false" synchronized="false"
  15234. static="false" final="false" visibility="public"
  15235. deprecated="not deprecated">
  15236. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15237. <param name="replication" type="short"/>
  15238. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15239. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15240. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15241. <exception name="IOException" type="java.io.IOException"/>
  15242. </method>
  15243. <method name="setTimes"
  15244. abstract="false" native="false" synchronized="false"
  15245. static="false" final="false" visibility="public"
  15246. deprecated="not deprecated">
  15247. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15248. <param name="mtime" type="long"/>
  15249. <param name="atime" type="long"/>
  15250. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15251. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15252. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  15253. <exception name="IOException" type="java.io.IOException"/>
  15254. </method>
  15255. <method name="setVerifyChecksum"
  15256. abstract="false" native="false" synchronized="false"
  15257. static="false" final="false" visibility="public"
  15258. deprecated="not deprecated">
  15259. <param name="verifyChecksum" type="boolean"/>
  15260. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15261. <exception name="IOException" type="java.io.IOException"/>
  15262. </method>
  15263. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  15264. abstract="false" native="false" synchronized="false"
  15265. static="false" final="false" visibility="public"
  15266. deprecated="not deprecated">
  15267. </method>
  15268. <method name="getDelegationTokens" return="java.util.List"
  15269. abstract="false" native="false" synchronized="false"
  15270. static="false" final="false" visibility="public"
  15271. deprecated="not deprecated">
  15272. <param name="renewer" type="java.lang.String"/>
  15273. <exception name="IOException" type="java.io.IOException"/>
  15274. </method>
  15275. <method name="isValidName" return="boolean"
  15276. abstract="false" native="false" synchronized="false"
  15277. static="false" final="false" visibility="public"
  15278. deprecated="not deprecated">
  15279. <param name="src" type="java.lang.String"/>
  15280. </method>
  15281. <method name="modifyAclEntries"
  15282. abstract="false" native="false" synchronized="false"
  15283. static="false" final="false" visibility="public"
  15284. deprecated="not deprecated">
  15285. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15286. <param name="aclSpec" type="java.util.List"/>
  15287. <exception name="IOException" type="java.io.IOException"/>
  15288. </method>
  15289. <method name="removeAclEntries"
  15290. abstract="false" native="false" synchronized="false"
  15291. static="false" final="false" visibility="public"
  15292. deprecated="not deprecated">
  15293. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15294. <param name="aclSpec" type="java.util.List"/>
  15295. <exception name="IOException" type="java.io.IOException"/>
  15296. </method>
  15297. <method name="removeDefaultAcl"
  15298. abstract="false" native="false" synchronized="false"
  15299. static="false" final="false" visibility="public"
  15300. deprecated="not deprecated">
  15301. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15302. <exception name="IOException" type="java.io.IOException"/>
  15303. </method>
  15304. <method name="removeAcl"
  15305. abstract="false" native="false" synchronized="false"
  15306. static="false" final="false" visibility="public"
  15307. deprecated="not deprecated">
  15308. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15309. <exception name="IOException" type="java.io.IOException"/>
  15310. </method>
  15311. <method name="setAcl"
  15312. abstract="false" native="false" synchronized="false"
  15313. static="false" final="false" visibility="public"
  15314. deprecated="not deprecated">
  15315. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15316. <param name="aclSpec" type="java.util.List"/>
  15317. <exception name="IOException" type="java.io.IOException"/>
  15318. </method>
  15319. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  15320. abstract="false" native="false" synchronized="false"
  15321. static="false" final="false" visibility="public"
  15322. deprecated="not deprecated">
  15323. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15324. <exception name="IOException" type="java.io.IOException"/>
  15325. </method>
  15326. <method name="setXAttr"
  15327. abstract="false" native="false" synchronized="false"
  15328. static="false" final="false" visibility="public"
  15329. deprecated="not deprecated">
  15330. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15331. <param name="name" type="java.lang.String"/>
  15332. <param name="value" type="byte[]"/>
  15333. <param name="flag" type="java.util.EnumSet"/>
  15334. <exception name="IOException" type="java.io.IOException"/>
  15335. </method>
  15336. <method name="getXAttr" return="byte[]"
  15337. abstract="false" native="false" synchronized="false"
  15338. static="false" final="false" visibility="public"
  15339. deprecated="not deprecated">
  15340. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15341. <param name="name" type="java.lang.String"/>
  15342. <exception name="IOException" type="java.io.IOException"/>
  15343. </method>
  15344. <method name="getXAttrs" return="java.util.Map"
  15345. abstract="false" native="false" synchronized="false"
  15346. static="false" final="false" visibility="public"
  15347. deprecated="not deprecated">
  15348. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15349. <exception name="IOException" type="java.io.IOException"/>
  15350. </method>
  15351. <method name="getXAttrs" return="java.util.Map"
  15352. abstract="false" native="false" synchronized="false"
  15353. static="false" final="false" visibility="public"
  15354. deprecated="not deprecated">
  15355. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15356. <param name="names" type="java.util.List"/>
  15357. <exception name="IOException" type="java.io.IOException"/>
  15358. </method>
  15359. <method name="listXAttrs" return="java.util.List"
  15360. abstract="false" native="false" synchronized="false"
  15361. static="false" final="false" visibility="public"
  15362. deprecated="not deprecated">
  15363. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15364. <exception name="IOException" type="java.io.IOException"/>
  15365. </method>
  15366. <method name="removeXAttr"
  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="name" type="java.lang.String"/>
  15372. <exception name="IOException" type="java.io.IOException"/>
  15373. </method>
  15374. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  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="snapshotName" type="java.lang.String"/>
  15380. <exception name="IOException" type="java.io.IOException"/>
  15381. </method>
  15382. <method name="renameSnapshot"
  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. <param name="snapshotOldName" type="java.lang.String"/>
  15388. <param name="snapshotNewName" type="java.lang.String"/>
  15389. <exception name="IOException" type="java.io.IOException"/>
  15390. </method>
  15391. <method name="deleteSnapshot"
  15392. abstract="false" native="false" synchronized="false"
  15393. static="false" final="false" visibility="public"
  15394. deprecated="not deprecated">
  15395. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15396. <param name="snapshotName" type="java.lang.String"/>
  15397. <exception name="IOException" type="java.io.IOException"/>
  15398. </method>
  15399. <method name="setStoragePolicy"
  15400. abstract="false" native="false" synchronized="false"
  15401. static="false" final="false" visibility="public"
  15402. deprecated="not deprecated">
  15403. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15404. <param name="policyName" type="java.lang.String"/>
  15405. <exception name="IOException" type="java.io.IOException"/>
  15406. </method>
  15407. <method name="unsetStoragePolicy"
  15408. abstract="false" native="false" synchronized="false"
  15409. static="false" final="false" visibility="public"
  15410. deprecated="not deprecated">
  15411. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15412. <exception name="IOException" type="java.io.IOException"/>
  15413. </method>
  15414. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  15415. abstract="false" native="false" synchronized="false"
  15416. static="false" final="false" visibility="public"
  15417. deprecated="not deprecated">
  15418. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15419. <exception name="IOException" type="java.io.IOException"/>
  15420. <doc>
  15421. <![CDATA[Retrieve the storage policy for a given file or directory.
  15422. @param src file or directory path.
  15423. @return storage policy for give file.
  15424. @throws IOException]]>
  15425. </doc>
  15426. </method>
  15427. <doc>
  15428. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  15429. mount table. The viewFs file system is implemented completely in memory on
  15430. the client side. The client-side mount table allows a client to provide a
  15431. customized view of a file system namespace that is composed from
  15432. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  15433. For example one could have a mount table that provides links such as
  15434. <ul>
  15435. <li> /user -> hdfs://nnContainingUserDir/user
  15436. <li> /project/foo -> hdfs://nnProject1/projects/foo
  15437. <li> /project/bar -> hdfs://nnProject2/projects/bar
  15438. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  15439. </ul>
  15440. ViewFs is specified with the following URI: <b>viewfs:///</b>
  15441. <p>
  15442. To use viewfs one would typically set the default file system in the
  15443. config (i.e. fs.defaultFS < = viewfs:///) along with the
  15444. mount table config variables as described below.
  15445. <p>
  15446. <b> ** Config variables to specify the mount table entries ** </b>
  15447. <p>
  15448. The file system is initialized from the standard Hadoop config through
  15449. config variables.
  15450. See {@link FsConstants} for URI and Scheme constants;
  15451. See {@link Constants} for config var constants;
  15452. see {@link ConfigUtil} for convenient lib.
  15453. <p>
  15454. All the mount table config entries for view fs are prefixed by
  15455. <b>fs.viewfs.mounttable.</b>
  15456. For example the above example can be specified with the following
  15457. config variables:
  15458. <ul>
  15459. <li> fs.viewfs.mounttable.default.link./user=
  15460. hdfs://nnContainingUserDir/user
  15461. <li> fs.viewfs.mounttable.default.link./project/foo=
  15462. hdfs://nnProject1/projects/foo
  15463. <li> fs.viewfs.mounttable.default.link./project/bar=
  15464. hdfs://nnProject2/projects/bar
  15465. <li> fs.viewfs.mounttable.default.link./tmp=
  15466. hdfs://nnTmp/privateTmpForUserXXX
  15467. </ul>
  15468. The default mount table (when no authority is specified) is
  15469. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  15470. The authority component of a URI can be used to specify a different mount
  15471. table. For example,
  15472. <ul>
  15473. <li> viewfs://sanjayMountable/
  15474. </ul>
  15475. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  15476. <p>
  15477. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  15478. <p>
  15479. One can also use "MergeMounts" to merge several directories (this is
  15480. sometimes called union-mounts or junction-mounts in the literature.
  15481. For example of the home directories are stored on say two file systems
  15482. (because they do not fit on one) then one could specify a mount
  15483. entry such as following merges two dirs:
  15484. <ul>
  15485. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  15486. </ul>
  15487. Such a mergeLink can be specified with the following config var where ","
  15488. is used as the separator for each of links to be merged:
  15489. <ul>
  15490. <li> fs.viewfs.mounttable.default.linkMerge./user=
  15491. hdfs://nnUser1/user,hdfs://nnUser1/user
  15492. </ul>
  15493. A special case of the merge mount is where mount table's root is merged
  15494. with the root (slash) of another file system:
  15495. <ul>
  15496. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  15497. </ul>
  15498. In this cases the root of the mount table is merged with the root of
  15499. <b>hdfs://nn99/ </b>]]>
  15500. </doc>
  15501. </class>
  15502. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  15503. </package>
  15504. <package name="org.apache.hadoop.ha">
  15505. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  15506. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  15507. abstract="false"
  15508. static="false" final="false" visibility="public"
  15509. deprecated="not deprecated">
  15510. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  15511. static="false" final="false" visibility="public"
  15512. deprecated="not deprecated">
  15513. </constructor>
  15514. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  15515. static="false" final="false" visibility="public"
  15516. deprecated="not deprecated">
  15517. </constructor>
  15518. <doc>
  15519. <![CDATA[Indicates that the operator has specified an invalid configuration
  15520. for fencing methods.]]>
  15521. </doc>
  15522. </class>
  15523. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  15524. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  15525. <class name="FailoverFailedException" extends="java.lang.Exception"
  15526. abstract="false"
  15527. static="false" final="false" visibility="public"
  15528. deprecated="not deprecated">
  15529. <constructor name="FailoverFailedException" type="java.lang.String"
  15530. static="false" final="false" visibility="public"
  15531. deprecated="not deprecated">
  15532. </constructor>
  15533. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  15534. static="false" final="false" visibility="public"
  15535. deprecated="not deprecated">
  15536. </constructor>
  15537. <doc>
  15538. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  15539. </doc>
  15540. </class>
  15541. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  15542. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  15543. <interface name="FenceMethod" abstract="true"
  15544. static="false" final="false" visibility="public"
  15545. deprecated="not deprecated">
  15546. <method name="checkArgs"
  15547. abstract="false" native="false" synchronized="false"
  15548. static="false" final="false" visibility="public"
  15549. deprecated="not deprecated">
  15550. <param name="args" type="java.lang.String"/>
  15551. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  15552. <doc>
  15553. <![CDATA[Verify that the given fencing method's arguments are valid.
  15554. @param args the arguments provided in the configuration. This may
  15555. be null if the operator did not configure any arguments.
  15556. @throws BadFencingConfigurationException if the arguments are invalid]]>
  15557. </doc>
  15558. </method>
  15559. <method name="tryFence" return="boolean"
  15560. abstract="false" native="false" synchronized="false"
  15561. static="false" final="false" visibility="public"
  15562. deprecated="not deprecated">
  15563. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  15564. <param name="args" type="java.lang.String"/>
  15565. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  15566. <doc>
  15567. <![CDATA[Attempt to fence the target node.
  15568. @param target the address (host:ipcport) of the service to fence
  15569. @param args the configured arguments, which were checked at startup by
  15570. {@link #checkArgs(String)}
  15571. @return true if fencing was successful, false if unsuccessful or
  15572. indeterminate
  15573. @throws BadFencingConfigurationException if the configuration was
  15574. determined to be invalid only at runtime]]>
  15575. </doc>
  15576. </method>
  15577. <doc>
  15578. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  15579. another node from making continued progress. This might be implemented
  15580. by killing a process on the other node, by denying the other node's
  15581. access to shared storage, or by accessing a PDU to cut the other node's
  15582. power.
  15583. <p>
  15584. Since these methods are often vendor- or device-specific, operators
  15585. may implement this interface in order to achieve fencing.
  15586. <p>
  15587. Fencing is configured by the operator as an ordered list of methods to
  15588. attempt. Each method will be tried in turn, and the next in the list
  15589. will only be attempted if the previous one fails. See {@link NodeFencer}
  15590. for more information.
  15591. <p>
  15592. If an implementation also implements {@link Configurable} then its
  15593. <code>setConf</code> method will be called upon instantiation.]]>
  15594. </doc>
  15595. </interface>
  15596. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  15597. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  15598. <interface name="HAServiceProtocol" abstract="true"
  15599. static="false" final="false" visibility="public"
  15600. deprecated="not deprecated">
  15601. <method name="monitorHealth"
  15602. abstract="false" native="false" synchronized="false"
  15603. static="false" final="false" visibility="public"
  15604. deprecated="not deprecated">
  15605. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  15606. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15607. <exception name="IOException" type="java.io.IOException"/>
  15608. <doc>
  15609. <![CDATA[Monitor the health of service. This periodically called by the HA
  15610. frameworks to monitor the health of the service.
  15611. Service is expected to perform checks to ensure it is functional.
  15612. If the service is not healthy due to failure or partial failure,
  15613. it is expected to throw {@link HealthCheckFailedException}.
  15614. The definition of service not healthy is left to the service.
  15615. Note that when health check of an Active service fails,
  15616. failover to standby may be done.
  15617. @throws HealthCheckFailedException
  15618. if the health check of a service fails.
  15619. @throws AccessControlException
  15620. if access is denied.
  15621. @throws IOException
  15622. if other errors happen]]>
  15623. </doc>
  15624. </method>
  15625. <method name="transitionToActive"
  15626. abstract="false" native="false" synchronized="false"
  15627. static="false" final="false" visibility="public"
  15628. deprecated="not deprecated">
  15629. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15630. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  15631. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15632. <exception name="IOException" type="java.io.IOException"/>
  15633. <doc>
  15634. <![CDATA[Request service to transition to active state. No operation, if the
  15635. service is already in active state.
  15636. @throws ServiceFailedException
  15637. if transition from standby to active fails.
  15638. @throws AccessControlException
  15639. if access is denied.
  15640. @throws IOException
  15641. if other errors happen]]>
  15642. </doc>
  15643. </method>
  15644. <method name="transitionToStandby"
  15645. abstract="false" native="false" synchronized="false"
  15646. static="false" final="false" visibility="public"
  15647. deprecated="not deprecated">
  15648. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15649. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  15650. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15651. <exception name="IOException" type="java.io.IOException"/>
  15652. <doc>
  15653. <![CDATA[Request service to transition to standby state. No operation, if the
  15654. service is already in standby state.
  15655. @throws ServiceFailedException
  15656. if transition from active to standby fails.
  15657. @throws AccessControlException
  15658. if access is denied.
  15659. @throws IOException
  15660. if other errors happen]]>
  15661. </doc>
  15662. </method>
  15663. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  15664. abstract="false" native="false" synchronized="false"
  15665. static="false" final="false" visibility="public"
  15666. deprecated="not deprecated">
  15667. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15668. <exception name="IOException" type="java.io.IOException"/>
  15669. <doc>
  15670. <![CDATA[Return the current status of the service. The status indicates
  15671. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  15672. some additional information.
  15673. @throws AccessControlException
  15674. if access is denied.
  15675. @throws IOException
  15676. if other errors happen
  15677. @see HAServiceStatus]]>
  15678. </doc>
  15679. </method>
  15680. <field name="versionID" type="long"
  15681. transient="false" volatile="false"
  15682. static="true" final="true" visibility="public"
  15683. deprecated="not deprecated">
  15684. <doc>
  15685. <![CDATA[Initial version of the protocol]]>
  15686. </doc>
  15687. </field>
  15688. <doc>
  15689. <![CDATA[Protocol interface that provides High Availability related primitives to
  15690. monitor and fail-over the service.
  15691. This interface could be used by HA frameworks to manage the service.]]>
  15692. </doc>
  15693. </interface>
  15694. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  15695. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  15696. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  15697. abstract="false"
  15698. static="false" final="false" visibility="public"
  15699. deprecated="not deprecated">
  15700. <constructor name="HAServiceProtocolHelper"
  15701. static="false" final="false" visibility="public"
  15702. deprecated="not deprecated">
  15703. </constructor>
  15704. <method name="monitorHealth"
  15705. abstract="false" native="false" synchronized="false"
  15706. static="true" final="false" visibility="public"
  15707. deprecated="not deprecated">
  15708. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  15709. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15710. <exception name="IOException" type="java.io.IOException"/>
  15711. </method>
  15712. <method name="transitionToActive"
  15713. abstract="false" native="false" synchronized="false"
  15714. static="true" final="false" visibility="public"
  15715. deprecated="not deprecated">
  15716. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  15717. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15718. <exception name="IOException" type="java.io.IOException"/>
  15719. </method>
  15720. <method name="transitionToStandby"
  15721. abstract="false" native="false" synchronized="false"
  15722. static="true" final="false" visibility="public"
  15723. deprecated="not deprecated">
  15724. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  15725. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  15726. <exception name="IOException" type="java.io.IOException"/>
  15727. </method>
  15728. <doc>
  15729. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  15730. unwraps the {@link RemoteException} to specific exceptions.]]>
  15731. </doc>
  15732. </class>
  15733. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  15734. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  15735. <class name="HAServiceTarget" extends="java.lang.Object"
  15736. abstract="true"
  15737. static="false" final="false" visibility="public"
  15738. deprecated="not deprecated">
  15739. <constructor name="HAServiceTarget"
  15740. static="false" final="false" visibility="public"
  15741. deprecated="not deprecated">
  15742. </constructor>
  15743. <method name="getAddress" return="java.net.InetSocketAddress"
  15744. abstract="true" native="false" synchronized="false"
  15745. static="false" final="false" visibility="public"
  15746. deprecated="not deprecated">
  15747. <doc>
  15748. <![CDATA[@return the IPC address of the target node.]]>
  15749. </doc>
  15750. </method>
  15751. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  15752. abstract="false" native="false" synchronized="false"
  15753. static="false" final="false" visibility="public"
  15754. deprecated="not deprecated">
  15755. <doc>
  15756. <![CDATA[Returns an optional separate RPC server address for health checks at the
  15757. target node. If defined, then this address is used by the health monitor
  15758. for the {@link HAServiceProtocol#monitorHealth()} and
  15759. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  15760. separating out these calls onto separate RPC handlers to protect against
  15761. resource exhaustion in the main RPC handler pool. If null (which is the
  15762. default implementation), then all RPC calls go to the address defined by
  15763. {@link #getAddress()}.
  15764. @return IPC address of the lifeline RPC server on the target node, or null
  15765. if no lifeline RPC server is used]]>
  15766. </doc>
  15767. </method>
  15768. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  15769. abstract="true" native="false" synchronized="false"
  15770. static="false" final="false" visibility="public"
  15771. deprecated="not deprecated">
  15772. <doc>
  15773. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  15774. </doc>
  15775. </method>
  15776. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  15777. abstract="true" native="false" synchronized="false"
  15778. static="false" final="false" visibility="public"
  15779. deprecated="not deprecated">
  15780. <doc>
  15781. <![CDATA[@return a Fencer implementation configured for this target node]]>
  15782. </doc>
  15783. </method>
  15784. <method name="checkFencingConfigured"
  15785. abstract="true" native="false" synchronized="false"
  15786. static="false" final="false" visibility="public"
  15787. deprecated="not deprecated">
  15788. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  15789. <doc>
  15790. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  15791. appears to be invalid. This is divorced from the above
  15792. {@link #getFencer()} method so that the configuration can be checked
  15793. during the pre-flight phase of failover.]]>
  15794. </doc>
  15795. </method>
  15796. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  15797. abstract="false" native="false" synchronized="false"
  15798. static="false" final="false" visibility="public"
  15799. deprecated="not deprecated">
  15800. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15801. <param name="timeoutMs" type="int"/>
  15802. <exception name="IOException" type="java.io.IOException"/>
  15803. <doc>
  15804. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  15805. </doc>
  15806. </method>
  15807. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  15808. abstract="false" native="false" synchronized="false"
  15809. static="false" final="false" visibility="public"
  15810. deprecated="not deprecated">
  15811. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15812. <param name="timeoutMs" type="int"/>
  15813. <exception name="IOException" type="java.io.IOException"/>
  15814. <doc>
  15815. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  15816. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  15817. address, then this proxy will connect to that address. Otherwise, the
  15818. returned proxy defaults to using {@link #getAddress()}, which means this
  15819. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  15820. @param conf Configuration
  15821. @param timeoutMs timeout in milliseconds
  15822. @return a proxy to connect to the target HA service for health monitoring
  15823. @throws IOException if there is an error]]>
  15824. </doc>
  15825. </method>
  15826. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  15827. abstract="false" native="false" synchronized="false"
  15828. static="false" final="false" visibility="public"
  15829. deprecated="not deprecated">
  15830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15831. <param name="timeoutMs" type="int"/>
  15832. <exception name="IOException" type="java.io.IOException"/>
  15833. <doc>
  15834. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  15835. </doc>
  15836. </method>
  15837. <method name="getFencingParameters" return="java.util.Map"
  15838. abstract="false" native="false" synchronized="false"
  15839. static="false" final="true" visibility="public"
  15840. deprecated="not deprecated">
  15841. </method>
  15842. <method name="addFencingParameters"
  15843. abstract="false" native="false" synchronized="false"
  15844. static="false" final="false" visibility="protected"
  15845. deprecated="not deprecated">
  15846. <param name="ret" type="java.util.Map"/>
  15847. <doc>
  15848. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  15849. expose to fencing implementations/scripts. Fencing methods are free
  15850. to use this map as they see fit -- notably, the shell script
  15851. implementation takes each entry, prepends 'target_', substitutes
  15852. '_' for '.', and adds it to the environment of the script.
  15853. Subclass implementations should be sure to delegate to the superclass
  15854. implementation as well as adding their own keys.
  15855. @param ret map which can be mutated to pass parameters to the fencer]]>
  15856. </doc>
  15857. </method>
  15858. <method name="isAutoFailoverEnabled" return="boolean"
  15859. abstract="false" native="false" synchronized="false"
  15860. static="false" final="false" visibility="public"
  15861. deprecated="not deprecated">
  15862. <doc>
  15863. <![CDATA[@return true if auto failover should be considered enabled]]>
  15864. </doc>
  15865. </method>
  15866. <doc>
  15867. <![CDATA[Represents a target of the client side HA administration commands.]]>
  15868. </doc>
  15869. </class>
  15870. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  15871. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  15872. <class name="HealthCheckFailedException" extends="java.io.IOException"
  15873. abstract="false"
  15874. static="false" final="false" visibility="public"
  15875. deprecated="not deprecated">
  15876. <constructor name="HealthCheckFailedException" type="java.lang.String"
  15877. static="false" final="false" visibility="public"
  15878. deprecated="not deprecated">
  15879. </constructor>
  15880. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  15881. static="false" final="false" visibility="public"
  15882. deprecated="not deprecated">
  15883. </constructor>
  15884. <doc>
  15885. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  15886. </doc>
  15887. </class>
  15888. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  15889. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  15890. <class name="ServiceFailedException" extends="java.io.IOException"
  15891. abstract="false"
  15892. static="false" final="false" visibility="public"
  15893. deprecated="not deprecated">
  15894. <constructor name="ServiceFailedException" type="java.lang.String"
  15895. static="false" final="false" visibility="public"
  15896. deprecated="not deprecated">
  15897. </constructor>
  15898. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  15899. static="false" final="false" visibility="public"
  15900. deprecated="not deprecated">
  15901. </constructor>
  15902. <doc>
  15903. <![CDATA[Exception thrown to indicate that an operation performed
  15904. to modify the state of a service or application failed.]]>
  15905. </doc>
  15906. </class>
  15907. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  15908. </package>
  15909. <package name="org.apache.hadoop.ha.protocolPB">
  15910. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  15911. <interface name="HAServiceProtocolPB" abstract="true"
  15912. static="false" final="false" visibility="public"
  15913. deprecated="not deprecated">
  15914. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  15915. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  15916. </interface>
  15917. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  15918. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  15919. <interface name="ZKFCProtocolPB" abstract="true"
  15920. static="false" final="false" visibility="public"
  15921. deprecated="not deprecated">
  15922. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  15923. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  15924. </interface>
  15925. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  15926. </package>
  15927. <package name="org.apache.hadoop.http.lib">
  15928. <doc>
  15929. <![CDATA[This package provides user-selectable (via configuration) classes that add
  15930. functionality to the web UI. They are configured as a list of classes in the
  15931. configuration parameter <b>hadoop.http.filter.initializers</b>.
  15932. <ul>
  15933. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  15934. users a static configured user.
  15935. </ul>]]>
  15936. </doc>
  15937. </package>
  15938. <package name="org.apache.hadoop.io">
  15939. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  15940. <class name="AbstractMapWritable" extends="java.lang.Object"
  15941. abstract="true"
  15942. static="false" final="false" visibility="public"
  15943. deprecated="not deprecated">
  15944. <implements name="org.apache.hadoop.io.Writable"/>
  15945. <implements name="org.apache.hadoop.conf.Configurable"/>
  15946. <constructor name="AbstractMapWritable"
  15947. static="false" final="false" visibility="protected"
  15948. deprecated="not deprecated">
  15949. <doc>
  15950. <![CDATA[constructor.]]>
  15951. </doc>
  15952. </constructor>
  15953. <method name="addToMap"
  15954. abstract="false" native="false" synchronized="true"
  15955. static="false" final="false" visibility="protected"
  15956. deprecated="not deprecated">
  15957. <param name="clazz" type="java.lang.Class"/>
  15958. <doc>
  15959. <![CDATA[Add a Class to the maps if it is not already present.]]>
  15960. </doc>
  15961. </method>
  15962. <method name="getClass" return="java.lang.Class"
  15963. abstract="false" native="false" synchronized="false"
  15964. static="false" final="false" visibility="protected"
  15965. deprecated="not deprecated">
  15966. <param name="id" type="byte"/>
  15967. <doc>
  15968. <![CDATA[@return the Class class for the specified id]]>
  15969. </doc>
  15970. </method>
  15971. <method name="getId" return="byte"
  15972. abstract="false" native="false" synchronized="false"
  15973. static="false" final="false" visibility="protected"
  15974. deprecated="not deprecated">
  15975. <param name="clazz" type="java.lang.Class"/>
  15976. <doc>
  15977. <![CDATA[@return the id for the specified Class]]>
  15978. </doc>
  15979. </method>
  15980. <method name="copy"
  15981. abstract="false" native="false" synchronized="true"
  15982. static="false" final="false" visibility="protected"
  15983. deprecated="not deprecated">
  15984. <param name="other" type="org.apache.hadoop.io.Writable"/>
  15985. <doc>
  15986. <![CDATA[Used by child copy constructors.]]>
  15987. </doc>
  15988. </method>
  15989. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  15990. abstract="false" native="false" synchronized="false"
  15991. static="false" final="false" visibility="public"
  15992. deprecated="not deprecated">
  15993. <doc>
  15994. <![CDATA[@return the conf]]>
  15995. </doc>
  15996. </method>
  15997. <method name="setConf"
  15998. abstract="false" native="false" synchronized="false"
  15999. static="false" final="false" visibility="public"
  16000. deprecated="not deprecated">
  16001. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16002. <doc>
  16003. <![CDATA[@param conf the conf to set]]>
  16004. </doc>
  16005. </method>
  16006. <method name="write"
  16007. abstract="false" native="false" synchronized="false"
  16008. static="false" final="false" visibility="public"
  16009. deprecated="not deprecated">
  16010. <param name="out" type="java.io.DataOutput"/>
  16011. <exception name="IOException" type="java.io.IOException"/>
  16012. </method>
  16013. <method name="readFields"
  16014. abstract="false" native="false" synchronized="false"
  16015. static="false" final="false" visibility="public"
  16016. deprecated="not deprecated">
  16017. <param name="in" type="java.io.DataInput"/>
  16018. <exception name="IOException" type="java.io.IOException"/>
  16019. </method>
  16020. <doc>
  16021. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  16022. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  16023. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  16024. maps travel with the class instead of being static.
  16025. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  16026. in any specific map instance.]]>
  16027. </doc>
  16028. </class>
  16029. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  16030. <!-- start class org.apache.hadoop.io.ArrayFile -->
  16031. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  16032. abstract="false"
  16033. static="false" final="false" visibility="public"
  16034. deprecated="not deprecated">
  16035. <constructor name="ArrayFile"
  16036. static="false" final="false" visibility="protected"
  16037. deprecated="not deprecated">
  16038. </constructor>
  16039. <doc>
  16040. <![CDATA[A dense file-based mapping from integers to values.]]>
  16041. </doc>
  16042. </class>
  16043. <!-- end class org.apache.hadoop.io.ArrayFile -->
  16044. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16045. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  16046. abstract="false"
  16047. static="false" final="false" visibility="public"
  16048. deprecated="not deprecated">
  16049. <implements name="org.apache.hadoop.io.Writable"/>
  16050. <constructor name="ArrayPrimitiveWritable"
  16051. static="false" final="false" visibility="public"
  16052. deprecated="not deprecated">
  16053. <doc>
  16054. <![CDATA[Construct an empty instance, for use during Writable read]]>
  16055. </doc>
  16056. </constructor>
  16057. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  16058. static="false" final="false" visibility="public"
  16059. deprecated="not deprecated">
  16060. <doc>
  16061. <![CDATA[Construct an instance of known type but no value yet
  16062. for use with type-specific wrapper classes]]>
  16063. </doc>
  16064. </constructor>
  16065. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  16066. static="false" final="false" visibility="public"
  16067. deprecated="not deprecated">
  16068. <doc>
  16069. <![CDATA[Wrap an existing array of primitives
  16070. @param value - array of primitives]]>
  16071. </doc>
  16072. </constructor>
  16073. <method name="get" return="java.lang.Object"
  16074. abstract="false" native="false" synchronized="false"
  16075. static="false" final="false" visibility="public"
  16076. deprecated="not deprecated">
  16077. <doc>
  16078. <![CDATA[Get the original array.
  16079. Client must cast it back to type componentType[]
  16080. (or may use type-specific wrapper classes).
  16081. @return - original array as Object]]>
  16082. </doc>
  16083. </method>
  16084. <method name="getComponentType" return="java.lang.Class"
  16085. abstract="false" native="false" synchronized="false"
  16086. static="false" final="false" visibility="public"
  16087. deprecated="not deprecated">
  16088. </method>
  16089. <method name="getDeclaredComponentType" return="java.lang.Class"
  16090. abstract="false" native="false" synchronized="false"
  16091. static="false" final="false" visibility="public"
  16092. deprecated="not deprecated">
  16093. </method>
  16094. <method name="isDeclaredComponentType" return="boolean"
  16095. abstract="false" native="false" synchronized="false"
  16096. static="false" final="false" visibility="public"
  16097. deprecated="not deprecated">
  16098. <param name="componentType" type="java.lang.Class"/>
  16099. </method>
  16100. <method name="set"
  16101. abstract="false" native="false" synchronized="false"
  16102. static="false" final="false" visibility="public"
  16103. deprecated="not deprecated">
  16104. <param name="value" type="java.lang.Object"/>
  16105. </method>
  16106. <method name="write"
  16107. abstract="false" native="false" synchronized="false"
  16108. static="false" final="false" visibility="public"
  16109. deprecated="not deprecated">
  16110. <param name="out" type="java.io.DataOutput"/>
  16111. <exception name="IOException" type="java.io.IOException"/>
  16112. </method>
  16113. <method name="readFields"
  16114. abstract="false" native="false" synchronized="false"
  16115. static="false" final="false" visibility="public"
  16116. deprecated="not deprecated">
  16117. <param name="in" type="java.io.DataInput"/>
  16118. <exception name="IOException" type="java.io.IOException"/>
  16119. </method>
  16120. <doc>
  16121. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  16122. an array of primitives (e.g., int[], long[], etc.), with optimized
  16123. wire format, and without creating new objects per element.
  16124. This is a wrapper class only; it does not make a copy of the
  16125. underlying array.]]>
  16126. </doc>
  16127. </class>
  16128. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  16129. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  16130. <class name="ArrayWritable" 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="ArrayWritable" type="java.lang.Class"
  16136. static="false" final="false" visibility="public"
  16137. deprecated="not deprecated">
  16138. </constructor>
  16139. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  16140. static="false" final="false" visibility="public"
  16141. deprecated="not deprecated">
  16142. </constructor>
  16143. <constructor name="ArrayWritable" type="java.lang.String[]"
  16144. static="false" final="false" visibility="public"
  16145. deprecated="not deprecated">
  16146. </constructor>
  16147. <method name="getValueClass" return="java.lang.Class"
  16148. abstract="false" native="false" synchronized="false"
  16149. static="false" final="false" visibility="public"
  16150. deprecated="not deprecated">
  16151. </method>
  16152. <method name="toStrings" return="java.lang.String[]"
  16153. abstract="false" native="false" synchronized="false"
  16154. static="false" final="false" visibility="public"
  16155. deprecated="not deprecated">
  16156. </method>
  16157. <method name="toArray" return="java.lang.Object"
  16158. abstract="false" native="false" synchronized="false"
  16159. static="false" final="false" visibility="public"
  16160. deprecated="not deprecated">
  16161. </method>
  16162. <method name="set"
  16163. abstract="false" native="false" synchronized="false"
  16164. static="false" final="false" visibility="public"
  16165. deprecated="not deprecated">
  16166. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  16167. </method>
  16168. <method name="get" return="org.apache.hadoop.io.Writable[]"
  16169. abstract="false" native="false" synchronized="false"
  16170. static="false" final="false" visibility="public"
  16171. deprecated="not deprecated">
  16172. </method>
  16173. <method name="readFields"
  16174. abstract="false" native="false" synchronized="false"
  16175. static="false" final="false" visibility="public"
  16176. deprecated="not deprecated">
  16177. <param name="in" type="java.io.DataInput"/>
  16178. <exception name="IOException" type="java.io.IOException"/>
  16179. </method>
  16180. <method name="write"
  16181. abstract="false" native="false" synchronized="false"
  16182. static="false" final="false" visibility="public"
  16183. deprecated="not deprecated">
  16184. <param name="out" type="java.io.DataOutput"/>
  16185. <exception name="IOException" type="java.io.IOException"/>
  16186. </method>
  16187. <doc>
  16188. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  16189. writable must all be instances of the same class. If this writable will be
  16190. the input for a Reducer, you will need to create a subclass that sets the
  16191. value to be of the proper type.
  16192. For example:
  16193. <code>
  16194. public class IntArrayWritable extends ArrayWritable {
  16195. public IntArrayWritable() {
  16196. super(IntWritable.class);
  16197. }
  16198. }
  16199. </code>]]>
  16200. </doc>
  16201. </class>
  16202. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  16203. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  16204. <class name="BinaryComparable" extends="java.lang.Object"
  16205. abstract="true"
  16206. static="false" final="false" visibility="public"
  16207. deprecated="not deprecated">
  16208. <implements name="java.lang.Comparable"/>
  16209. <constructor name="BinaryComparable"
  16210. static="false" final="false" visibility="public"
  16211. deprecated="not deprecated">
  16212. </constructor>
  16213. <method name="getLength" return="int"
  16214. abstract="true" native="false" synchronized="false"
  16215. static="false" final="false" visibility="public"
  16216. deprecated="not deprecated">
  16217. <doc>
  16218. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  16219. </doc>
  16220. </method>
  16221. <method name="getBytes" return="byte[]"
  16222. abstract="true" native="false" synchronized="false"
  16223. static="false" final="false" visibility="public"
  16224. deprecated="not deprecated">
  16225. <doc>
  16226. <![CDATA[Return representative byte array for this instance.]]>
  16227. </doc>
  16228. </method>
  16229. <method name="compareTo" return="int"
  16230. abstract="false" native="false" synchronized="false"
  16231. static="false" final="false" visibility="public"
  16232. deprecated="not deprecated">
  16233. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  16234. <doc>
  16235. <![CDATA[Compare bytes from {#getBytes()}.
  16236. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  16237. </doc>
  16238. </method>
  16239. <method name="compareTo" return="int"
  16240. abstract="false" native="false" synchronized="false"
  16241. static="false" final="false" visibility="public"
  16242. deprecated="not deprecated">
  16243. <param name="other" type="byte[]"/>
  16244. <param name="off" type="int"/>
  16245. <param name="len" type="int"/>
  16246. <doc>
  16247. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  16248. </doc>
  16249. </method>
  16250. <method name="equals" return="boolean"
  16251. abstract="false" native="false" synchronized="false"
  16252. static="false" final="false" visibility="public"
  16253. deprecated="not deprecated">
  16254. <param name="other" type="java.lang.Object"/>
  16255. <doc>
  16256. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  16257. </doc>
  16258. </method>
  16259. <method name="hashCode" return="int"
  16260. abstract="false" native="false" synchronized="false"
  16261. static="false" final="false" visibility="public"
  16262. deprecated="not deprecated">
  16263. <doc>
  16264. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  16265. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  16266. </doc>
  16267. </method>
  16268. <doc>
  16269. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  16270. types supporting ordering/permutation by a representative set of bytes.]]>
  16271. </doc>
  16272. </class>
  16273. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  16274. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  16275. <class name="BloomMapFile" extends="java.lang.Object"
  16276. abstract="false"
  16277. static="false" final="false" visibility="public"
  16278. deprecated="not deprecated">
  16279. <constructor name="BloomMapFile"
  16280. static="false" final="false" visibility="public"
  16281. deprecated="not deprecated">
  16282. </constructor>
  16283. <method name="delete"
  16284. abstract="false" native="false" synchronized="false"
  16285. static="true" final="false" visibility="public"
  16286. deprecated="not deprecated">
  16287. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16288. <param name="name" type="java.lang.String"/>
  16289. <exception name="IOException" type="java.io.IOException"/>
  16290. </method>
  16291. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  16292. transient="false" volatile="false"
  16293. static="true" final="true" visibility="public"
  16294. deprecated="not deprecated">
  16295. </field>
  16296. <field name="HASH_COUNT" type="int"
  16297. transient="false" volatile="false"
  16298. static="true" final="true" visibility="public"
  16299. deprecated="not deprecated">
  16300. </field>
  16301. <doc>
  16302. <![CDATA[This class extends {@link MapFile} and provides very much the same
  16303. functionality. However, it uses dynamic Bloom filters to provide
  16304. quick membership test for keys, and it offers a fast version of
  16305. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  16306. case of sparsely populated MapFile-s.]]>
  16307. </doc>
  16308. </class>
  16309. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  16310. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  16311. <class name="BooleanWritable" extends="java.lang.Object"
  16312. abstract="false"
  16313. static="false" final="false" visibility="public"
  16314. deprecated="not deprecated">
  16315. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16316. <constructor name="BooleanWritable"
  16317. static="false" final="false" visibility="public"
  16318. deprecated="not deprecated">
  16319. </constructor>
  16320. <constructor name="BooleanWritable" type="boolean"
  16321. static="false" final="false" visibility="public"
  16322. deprecated="not deprecated">
  16323. </constructor>
  16324. <method name="set"
  16325. abstract="false" native="false" synchronized="false"
  16326. static="false" final="false" visibility="public"
  16327. deprecated="not deprecated">
  16328. <param name="value" type="boolean"/>
  16329. <doc>
  16330. <![CDATA[Set the value of the BooleanWritable]]>
  16331. </doc>
  16332. </method>
  16333. <method name="get" return="boolean"
  16334. abstract="false" native="false" synchronized="false"
  16335. static="false" final="false" visibility="public"
  16336. deprecated="not deprecated">
  16337. <doc>
  16338. <![CDATA[Returns the value of the BooleanWritable]]>
  16339. </doc>
  16340. </method>
  16341. <method name="readFields"
  16342. abstract="false" native="false" synchronized="false"
  16343. static="false" final="false" visibility="public"
  16344. deprecated="not deprecated">
  16345. <param name="in" type="java.io.DataInput"/>
  16346. <exception name="IOException" type="java.io.IOException"/>
  16347. </method>
  16348. <method name="write"
  16349. abstract="false" native="false" synchronized="false"
  16350. static="false" final="false" visibility="public"
  16351. deprecated="not deprecated">
  16352. <param name="out" type="java.io.DataOutput"/>
  16353. <exception name="IOException" type="java.io.IOException"/>
  16354. </method>
  16355. <method name="equals" return="boolean"
  16356. abstract="false" native="false" synchronized="false"
  16357. static="false" final="false" visibility="public"
  16358. deprecated="not deprecated">
  16359. <param name="o" type="java.lang.Object"/>
  16360. </method>
  16361. <method name="hashCode" return="int"
  16362. abstract="false" native="false" synchronized="false"
  16363. static="false" final="false" visibility="public"
  16364. deprecated="not deprecated">
  16365. </method>
  16366. <method name="compareTo" return="int"
  16367. abstract="false" native="false" synchronized="false"
  16368. static="false" final="false" visibility="public"
  16369. deprecated="not deprecated">
  16370. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  16371. </method>
  16372. <method name="toString" return="java.lang.String"
  16373. abstract="false" native="false" synchronized="false"
  16374. static="false" final="false" visibility="public"
  16375. deprecated="not deprecated">
  16376. </method>
  16377. <doc>
  16378. <![CDATA[A WritableComparable for booleans.]]>
  16379. </doc>
  16380. </class>
  16381. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  16382. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  16383. <interface name="ByteBufferPool" abstract="true"
  16384. static="false" final="false" visibility="public"
  16385. deprecated="not deprecated">
  16386. <method name="getBuffer" return="java.nio.ByteBuffer"
  16387. abstract="false" native="false" synchronized="false"
  16388. static="false" final="false" visibility="public"
  16389. deprecated="not deprecated">
  16390. <param name="direct" type="boolean"/>
  16391. <param name="length" type="int"/>
  16392. <doc>
  16393. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  16394. removing a buffer from its internal cache, or by allocating a
  16395. new buffer.
  16396. @param direct Whether the buffer should be direct.
  16397. @param length The minimum length the buffer will have.
  16398. @return A new ByteBuffer. This ByteBuffer must be direct.
  16399. Its capacity can be less than what was requested, but
  16400. must be at least 1 byte.]]>
  16401. </doc>
  16402. </method>
  16403. <method name="putBuffer"
  16404. abstract="false" native="false" synchronized="false"
  16405. static="false" final="false" visibility="public"
  16406. deprecated="not deprecated">
  16407. <param name="buffer" type="java.nio.ByteBuffer"/>
  16408. <doc>
  16409. <![CDATA[Release a buffer back to the pool.
  16410. The pool may choose to put this buffer into its cache.
  16411. @param buffer a direct bytebuffer]]>
  16412. </doc>
  16413. </method>
  16414. </interface>
  16415. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  16416. <!-- start class org.apache.hadoop.io.BytesWritable -->
  16417. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  16418. abstract="false"
  16419. static="false" final="false" visibility="public"
  16420. deprecated="not deprecated">
  16421. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16422. <constructor name="BytesWritable"
  16423. static="false" final="false" visibility="public"
  16424. deprecated="not deprecated">
  16425. <doc>
  16426. <![CDATA[Create a zero-size sequence.]]>
  16427. </doc>
  16428. </constructor>
  16429. <constructor name="BytesWritable" type="byte[]"
  16430. static="false" final="false" visibility="public"
  16431. deprecated="not deprecated">
  16432. <doc>
  16433. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  16434. @param bytes This array becomes the backing storage for the object.]]>
  16435. </doc>
  16436. </constructor>
  16437. <constructor name="BytesWritable" type="byte[], int"
  16438. static="false" final="false" visibility="public"
  16439. deprecated="not deprecated">
  16440. <doc>
  16441. <![CDATA[Create a BytesWritable using the byte array as the initial value
  16442. and length as the length. Use this constructor if the array is larger
  16443. than the value it represents.
  16444. @param bytes This array becomes the backing storage for the object.
  16445. @param length The number of bytes to use from array.]]>
  16446. </doc>
  16447. </constructor>
  16448. <method name="copyBytes" return="byte[]"
  16449. abstract="false" native="false" synchronized="false"
  16450. static="false" final="false" visibility="public"
  16451. deprecated="not deprecated">
  16452. <doc>
  16453. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  16454. See {@link #getBytes()} for faster access to the underlying array.]]>
  16455. </doc>
  16456. </method>
  16457. <method name="getBytes" return="byte[]"
  16458. abstract="false" native="false" synchronized="false"
  16459. static="false" final="false" visibility="public"
  16460. deprecated="not deprecated">
  16461. <doc>
  16462. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  16463. if you need the returned array to be precisely the length of the data.
  16464. @return The data is only valid between 0 and getLength() - 1.]]>
  16465. </doc>
  16466. </method>
  16467. <method name="get" return="byte[]"
  16468. abstract="false" native="false" synchronized="false"
  16469. static="false" final="false" visibility="public"
  16470. deprecated="Use {@link #getBytes()} instead.">
  16471. <doc>
  16472. <![CDATA[Get the data from the BytesWritable.
  16473. @deprecated Use {@link #getBytes()} instead.]]>
  16474. </doc>
  16475. </method>
  16476. <method name="getLength" return="int"
  16477. abstract="false" native="false" synchronized="false"
  16478. static="false" final="false" visibility="public"
  16479. deprecated="not deprecated">
  16480. <doc>
  16481. <![CDATA[Get the current size of the buffer.]]>
  16482. </doc>
  16483. </method>
  16484. <method name="getSize" return="int"
  16485. abstract="false" native="false" synchronized="false"
  16486. static="false" final="false" visibility="public"
  16487. deprecated="Use {@link #getLength()} instead.">
  16488. <doc>
  16489. <![CDATA[Get the current size of the buffer.
  16490. @deprecated Use {@link #getLength()} instead.]]>
  16491. </doc>
  16492. </method>
  16493. <method name="setSize"
  16494. abstract="false" native="false" synchronized="false"
  16495. static="false" final="false" visibility="public"
  16496. deprecated="not deprecated">
  16497. <param name="size" type="int"/>
  16498. <doc>
  16499. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  16500. and any new values are undefined. The capacity is changed if it is
  16501. necessary.
  16502. @param size The new number of bytes]]>
  16503. </doc>
  16504. </method>
  16505. <method name="getCapacity" return="int"
  16506. abstract="false" native="false" synchronized="false"
  16507. static="false" final="false" visibility="public"
  16508. deprecated="not deprecated">
  16509. <doc>
  16510. <![CDATA[Get the capacity, which is the maximum size that could handled without
  16511. resizing the backing storage.
  16512. @return The number of bytes]]>
  16513. </doc>
  16514. </method>
  16515. <method name="setCapacity"
  16516. abstract="false" native="false" synchronized="false"
  16517. static="false" final="false" visibility="public"
  16518. deprecated="not deprecated">
  16519. <param name="new_cap" type="int"/>
  16520. <doc>
  16521. <![CDATA[Change the capacity of the backing storage.
  16522. The data is preserved.
  16523. @param new_cap The new capacity in bytes.]]>
  16524. </doc>
  16525. </method>
  16526. <method name="set"
  16527. abstract="false" native="false" synchronized="false"
  16528. static="false" final="false" visibility="public"
  16529. deprecated="not deprecated">
  16530. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  16531. <doc>
  16532. <![CDATA[Set the BytesWritable to the contents of the given newData.
  16533. @param newData the value to set this BytesWritable to.]]>
  16534. </doc>
  16535. </method>
  16536. <method name="set"
  16537. abstract="false" native="false" synchronized="false"
  16538. static="false" final="false" visibility="public"
  16539. deprecated="not deprecated">
  16540. <param name="newData" type="byte[]"/>
  16541. <param name="offset" type="int"/>
  16542. <param name="length" type="int"/>
  16543. <doc>
  16544. <![CDATA[Set the value to a copy of the given byte range
  16545. @param newData the new values to copy in
  16546. @param offset the offset in newData to start at
  16547. @param length the number of bytes to copy]]>
  16548. </doc>
  16549. </method>
  16550. <method name="readFields"
  16551. abstract="false" native="false" synchronized="false"
  16552. static="false" final="false" visibility="public"
  16553. deprecated="not deprecated">
  16554. <param name="in" type="java.io.DataInput"/>
  16555. <exception name="IOException" type="java.io.IOException"/>
  16556. </method>
  16557. <method name="write"
  16558. abstract="false" native="false" synchronized="false"
  16559. static="false" final="false" visibility="public"
  16560. deprecated="not deprecated">
  16561. <param name="out" type="java.io.DataOutput"/>
  16562. <exception name="IOException" type="java.io.IOException"/>
  16563. </method>
  16564. <method name="hashCode" return="int"
  16565. abstract="false" native="false" synchronized="false"
  16566. static="false" final="false" visibility="public"
  16567. deprecated="not deprecated">
  16568. </method>
  16569. <method name="equals" return="boolean"
  16570. abstract="false" native="false" synchronized="false"
  16571. static="false" final="false" visibility="public"
  16572. deprecated="not deprecated">
  16573. <param name="right_obj" type="java.lang.Object"/>
  16574. <doc>
  16575. <![CDATA[Are the two byte sequences equal?]]>
  16576. </doc>
  16577. </method>
  16578. <method name="toString" return="java.lang.String"
  16579. abstract="false" native="false" synchronized="false"
  16580. static="false" final="false" visibility="public"
  16581. deprecated="not deprecated">
  16582. <doc>
  16583. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  16584. </doc>
  16585. </method>
  16586. <doc>
  16587. <![CDATA[A byte sequence that is usable as a key or value.
  16588. It is resizable and distinguishes between the size of the sequence and
  16589. the current capacity. The hash function is the front of the md5 of the
  16590. buffer. The sort order is the same as memcmp.]]>
  16591. </doc>
  16592. </class>
  16593. <!-- end class org.apache.hadoop.io.BytesWritable -->
  16594. <!-- start class org.apache.hadoop.io.ByteWritable -->
  16595. <class name="ByteWritable" extends="java.lang.Object"
  16596. abstract="false"
  16597. static="false" final="false" visibility="public"
  16598. deprecated="not deprecated">
  16599. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16600. <constructor name="ByteWritable"
  16601. static="false" final="false" visibility="public"
  16602. deprecated="not deprecated">
  16603. </constructor>
  16604. <constructor name="ByteWritable" type="byte"
  16605. static="false" final="false" visibility="public"
  16606. deprecated="not deprecated">
  16607. </constructor>
  16608. <method name="set"
  16609. abstract="false" native="false" synchronized="false"
  16610. static="false" final="false" visibility="public"
  16611. deprecated="not deprecated">
  16612. <param name="value" type="byte"/>
  16613. <doc>
  16614. <![CDATA[Set the value of this ByteWritable.]]>
  16615. </doc>
  16616. </method>
  16617. <method name="get" return="byte"
  16618. abstract="false" native="false" synchronized="false"
  16619. static="false" final="false" visibility="public"
  16620. deprecated="not deprecated">
  16621. <doc>
  16622. <![CDATA[Return the value of this ByteWritable.]]>
  16623. </doc>
  16624. </method>
  16625. <method name="readFields"
  16626. abstract="false" native="false" synchronized="false"
  16627. static="false" final="false" visibility="public"
  16628. deprecated="not deprecated">
  16629. <param name="in" type="java.io.DataInput"/>
  16630. <exception name="IOException" type="java.io.IOException"/>
  16631. </method>
  16632. <method name="write"
  16633. abstract="false" native="false" synchronized="false"
  16634. static="false" final="false" visibility="public"
  16635. deprecated="not deprecated">
  16636. <param name="out" type="java.io.DataOutput"/>
  16637. <exception name="IOException" type="java.io.IOException"/>
  16638. </method>
  16639. <method name="equals" return="boolean"
  16640. abstract="false" native="false" synchronized="false"
  16641. static="false" final="false" visibility="public"
  16642. deprecated="not deprecated">
  16643. <param name="o" type="java.lang.Object"/>
  16644. <doc>
  16645. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  16646. </doc>
  16647. </method>
  16648. <method name="hashCode" return="int"
  16649. abstract="false" native="false" synchronized="false"
  16650. static="false" final="false" visibility="public"
  16651. deprecated="not deprecated">
  16652. </method>
  16653. <method name="compareTo" return="int"
  16654. abstract="false" native="false" synchronized="false"
  16655. static="false" final="false" visibility="public"
  16656. deprecated="not deprecated">
  16657. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  16658. <doc>
  16659. <![CDATA[Compares two ByteWritables.]]>
  16660. </doc>
  16661. </method>
  16662. <method name="toString" return="java.lang.String"
  16663. abstract="false" native="false" synchronized="false"
  16664. static="false" final="false" visibility="public"
  16665. deprecated="not deprecated">
  16666. </method>
  16667. <doc>
  16668. <![CDATA[A WritableComparable for a single byte.]]>
  16669. </doc>
  16670. </class>
  16671. <!-- end class org.apache.hadoop.io.ByteWritable -->
  16672. <!-- start interface org.apache.hadoop.io.Closeable -->
  16673. <interface name="Closeable" abstract="true"
  16674. static="false" final="false" visibility="public"
  16675. deprecated="use java.io.Closeable">
  16676. <implements name="java.io.Closeable"/>
  16677. <doc>
  16678. <![CDATA[@deprecated use java.io.Closeable]]>
  16679. </doc>
  16680. </interface>
  16681. <!-- end interface org.apache.hadoop.io.Closeable -->
  16682. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  16683. <class name="CompressedWritable" extends="java.lang.Object"
  16684. abstract="true"
  16685. static="false" final="false" visibility="public"
  16686. deprecated="not deprecated">
  16687. <implements name="org.apache.hadoop.io.Writable"/>
  16688. <constructor name="CompressedWritable"
  16689. static="false" final="false" visibility="public"
  16690. deprecated="not deprecated">
  16691. </constructor>
  16692. <method name="readFields"
  16693. abstract="false" native="false" synchronized="false"
  16694. static="false" final="true" visibility="public"
  16695. deprecated="not deprecated">
  16696. <param name="in" type="java.io.DataInput"/>
  16697. <exception name="IOException" type="java.io.IOException"/>
  16698. </method>
  16699. <method name="ensureInflated"
  16700. abstract="false" native="false" synchronized="false"
  16701. static="false" final="false" visibility="protected"
  16702. deprecated="not deprecated">
  16703. <doc>
  16704. <![CDATA[Must be called by all methods which access fields to ensure that the data
  16705. has been uncompressed.]]>
  16706. </doc>
  16707. </method>
  16708. <method name="readFieldsCompressed"
  16709. abstract="true" native="false" synchronized="false"
  16710. static="false" final="false" visibility="protected"
  16711. deprecated="not deprecated">
  16712. <param name="in" type="java.io.DataInput"/>
  16713. <exception name="IOException" type="java.io.IOException"/>
  16714. <doc>
  16715. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  16716. </doc>
  16717. </method>
  16718. <method name="write"
  16719. abstract="false" native="false" synchronized="false"
  16720. static="false" final="true" visibility="public"
  16721. deprecated="not deprecated">
  16722. <param name="out" type="java.io.DataOutput"/>
  16723. <exception name="IOException" type="java.io.IOException"/>
  16724. </method>
  16725. <method name="writeCompressed"
  16726. abstract="true" native="false" synchronized="false"
  16727. static="false" final="false" visibility="protected"
  16728. deprecated="not deprecated">
  16729. <param name="out" type="java.io.DataOutput"/>
  16730. <exception name="IOException" type="java.io.IOException"/>
  16731. <doc>
  16732. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  16733. </doc>
  16734. </method>
  16735. <doc>
  16736. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  16737. inflate on field access. This is useful for large objects whose fields are
  16738. not be altered during a map or reduce operation: leaving the field data
  16739. compressed makes copying the instance from one file to another much
  16740. faster.]]>
  16741. </doc>
  16742. </class>
  16743. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  16744. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  16745. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  16746. abstract="false"
  16747. static="false" final="false" visibility="public"
  16748. deprecated="not deprecated">
  16749. <method name="constructOutputStream" return="java.io.OutputStream"
  16750. abstract="false" native="false" synchronized="false"
  16751. static="true" final="false" visibility="public"
  16752. deprecated="not deprecated">
  16753. <param name="out" type="java.io.DataOutput"/>
  16754. <doc>
  16755. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  16756. is already an OutputStream, simply returns it. Otherwise, wraps
  16757. it in an OutputStream.
  16758. @param out the DataOutput to wrap
  16759. @return an OutputStream instance that outputs to 'out']]>
  16760. </doc>
  16761. </method>
  16762. <method name="write"
  16763. abstract="false" native="false" synchronized="false"
  16764. static="false" final="false" visibility="public"
  16765. deprecated="not deprecated">
  16766. <param name="b" type="int"/>
  16767. <exception name="IOException" type="java.io.IOException"/>
  16768. </method>
  16769. <method name="write"
  16770. abstract="false" native="false" synchronized="false"
  16771. static="false" final="false" visibility="public"
  16772. deprecated="not deprecated">
  16773. <param name="b" type="byte[]"/>
  16774. <param name="off" type="int"/>
  16775. <param name="len" type="int"/>
  16776. <exception name="IOException" type="java.io.IOException"/>
  16777. </method>
  16778. <method name="write"
  16779. abstract="false" native="false" synchronized="false"
  16780. static="false" final="false" visibility="public"
  16781. deprecated="not deprecated">
  16782. <param name="b" type="byte[]"/>
  16783. <exception name="IOException" type="java.io.IOException"/>
  16784. </method>
  16785. <doc>
  16786. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  16787. </doc>
  16788. </class>
  16789. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  16790. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  16791. <class name="DefaultStringifier" extends="java.lang.Object"
  16792. abstract="false"
  16793. static="false" final="false" visibility="public"
  16794. deprecated="not deprecated">
  16795. <implements name="org.apache.hadoop.io.Stringifier"/>
  16796. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  16797. static="false" final="false" visibility="public"
  16798. deprecated="not deprecated">
  16799. </constructor>
  16800. <method name="fromString" return="T"
  16801. abstract="false" native="false" synchronized="false"
  16802. static="false" final="false" visibility="public"
  16803. deprecated="not deprecated">
  16804. <param name="str" type="java.lang.String"/>
  16805. <exception name="IOException" type="java.io.IOException"/>
  16806. </method>
  16807. <method name="toString" return="java.lang.String"
  16808. abstract="false" native="false" synchronized="false"
  16809. static="false" final="false" visibility="public"
  16810. deprecated="not deprecated">
  16811. <param name="obj" type="T"/>
  16812. <exception name="IOException" type="java.io.IOException"/>
  16813. </method>
  16814. <method name="close"
  16815. abstract="false" native="false" synchronized="false"
  16816. static="false" final="false" visibility="public"
  16817. deprecated="not deprecated">
  16818. <exception name="IOException" type="java.io.IOException"/>
  16819. </method>
  16820. <method name="store"
  16821. abstract="false" native="false" synchronized="false"
  16822. static="true" final="false" visibility="public"
  16823. deprecated="not deprecated">
  16824. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16825. <param name="item" type="K"/>
  16826. <param name="keyName" type="java.lang.String"/>
  16827. <exception name="IOException" type="java.io.IOException"/>
  16828. <doc>
  16829. <![CDATA[Stores the item in the configuration with the given keyName.
  16830. @param <K> the class of the item
  16831. @param conf the configuration to store
  16832. @param item the object to be stored
  16833. @param keyName the name of the key to use
  16834. @throws IOException : forwards Exceptions from the underlying
  16835. {@link Serialization} classes.]]>
  16836. </doc>
  16837. </method>
  16838. <method name="load" return="K"
  16839. abstract="false" native="false" synchronized="false"
  16840. static="true" final="false" visibility="public"
  16841. deprecated="not deprecated">
  16842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16843. <param name="keyName" type="java.lang.String"/>
  16844. <param name="itemClass" type="java.lang.Class"/>
  16845. <exception name="IOException" type="java.io.IOException"/>
  16846. <doc>
  16847. <![CDATA[Restores the object from the configuration.
  16848. @param <K> the class of the item
  16849. @param conf the configuration to use
  16850. @param keyName the name of the key to use
  16851. @param itemClass the class of the item
  16852. @return restored object
  16853. @throws IOException : forwards Exceptions from the underlying
  16854. {@link Serialization} classes.]]>
  16855. </doc>
  16856. </method>
  16857. <method name="storeArray"
  16858. abstract="false" native="false" synchronized="false"
  16859. static="true" final="false" visibility="public"
  16860. deprecated="not deprecated">
  16861. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16862. <param name="items" type="K[]"/>
  16863. <param name="keyName" type="java.lang.String"/>
  16864. <exception name="IOException" type="java.io.IOException"/>
  16865. <doc>
  16866. <![CDATA[Stores the array of items in the configuration with the given keyName.
  16867. @param <K> the class of the item
  16868. @param conf the configuration to use
  16869. @param items the objects to be stored
  16870. @param keyName the name of the key to use
  16871. @throws IndexOutOfBoundsException if the items array is empty
  16872. @throws IOException : forwards Exceptions from the underlying
  16873. {@link Serialization} classes.]]>
  16874. </doc>
  16875. </method>
  16876. <method name="loadArray" return="K[]"
  16877. abstract="false" native="false" synchronized="false"
  16878. static="true" final="false" visibility="public"
  16879. deprecated="not deprecated">
  16880. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16881. <param name="keyName" type="java.lang.String"/>
  16882. <param name="itemClass" type="java.lang.Class"/>
  16883. <exception name="IOException" type="java.io.IOException"/>
  16884. <doc>
  16885. <![CDATA[Restores the array of objects from the configuration.
  16886. @param <K> the class of the item
  16887. @param conf the configuration to use
  16888. @param keyName the name of the key to use
  16889. @param itemClass the class of the item
  16890. @return restored object
  16891. @throws IOException : forwards Exceptions from the underlying
  16892. {@link Serialization} classes.]]>
  16893. </doc>
  16894. </method>
  16895. <doc>
  16896. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  16897. interface which stringifies the objects using base64 encoding of the
  16898. serialized version of the objects. The {@link Serializer} and
  16899. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  16900. <br>
  16901. DefaultStringifier offers convenience methods to store/load objects to/from
  16902. the configuration.
  16903. @param <T> the class of the objects to stringify]]>
  16904. </doc>
  16905. </class>
  16906. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  16907. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  16908. <class name="DoubleWritable" extends="java.lang.Object"
  16909. abstract="false"
  16910. static="false" final="false" visibility="public"
  16911. deprecated="not deprecated">
  16912. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16913. <constructor name="DoubleWritable"
  16914. static="false" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. </constructor>
  16917. <constructor name="DoubleWritable" type="double"
  16918. static="false" final="false" visibility="public"
  16919. deprecated="not deprecated">
  16920. </constructor>
  16921. <method name="readFields"
  16922. abstract="false" native="false" synchronized="false"
  16923. static="false" final="false" visibility="public"
  16924. deprecated="not deprecated">
  16925. <param name="in" type="java.io.DataInput"/>
  16926. <exception name="IOException" type="java.io.IOException"/>
  16927. </method>
  16928. <method name="write"
  16929. abstract="false" native="false" synchronized="false"
  16930. static="false" final="false" visibility="public"
  16931. deprecated="not deprecated">
  16932. <param name="out" type="java.io.DataOutput"/>
  16933. <exception name="IOException" type="java.io.IOException"/>
  16934. </method>
  16935. <method name="set"
  16936. abstract="false" native="false" synchronized="false"
  16937. static="false" final="false" visibility="public"
  16938. deprecated="not deprecated">
  16939. <param name="value" type="double"/>
  16940. </method>
  16941. <method name="get" return="double"
  16942. abstract="false" native="false" synchronized="false"
  16943. static="false" final="false" visibility="public"
  16944. deprecated="not deprecated">
  16945. </method>
  16946. <method name="equals" return="boolean"
  16947. abstract="false" native="false" synchronized="false"
  16948. static="false" final="false" visibility="public"
  16949. deprecated="not deprecated">
  16950. <param name="o" type="java.lang.Object"/>
  16951. <doc>
  16952. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  16953. </doc>
  16954. </method>
  16955. <method name="hashCode" return="int"
  16956. abstract="false" native="false" synchronized="false"
  16957. static="false" final="false" visibility="public"
  16958. deprecated="not deprecated">
  16959. </method>
  16960. <method name="compareTo" return="int"
  16961. abstract="false" native="false" synchronized="false"
  16962. static="false" final="false" visibility="public"
  16963. deprecated="not deprecated">
  16964. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  16965. </method>
  16966. <method name="toString" return="java.lang.String"
  16967. abstract="false" native="false" synchronized="false"
  16968. static="false" final="false" visibility="public"
  16969. deprecated="not deprecated">
  16970. </method>
  16971. <doc>
  16972. <![CDATA[Writable for Double values.]]>
  16973. </doc>
  16974. </class>
  16975. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  16976. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  16977. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  16978. abstract="false"
  16979. static="false" final="true" visibility="public"
  16980. deprecated="not deprecated">
  16981. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  16982. <constructor name="ElasticByteBufferPool"
  16983. static="false" final="false" visibility="public"
  16984. deprecated="not deprecated">
  16985. </constructor>
  16986. <method name="getBuffer" return="java.nio.ByteBuffer"
  16987. abstract="false" native="false" synchronized="true"
  16988. static="false" final="false" visibility="public"
  16989. deprecated="not deprecated">
  16990. <param name="direct" type="boolean"/>
  16991. <param name="length" type="int"/>
  16992. </method>
  16993. <method name="putBuffer"
  16994. abstract="false" native="false" synchronized="true"
  16995. static="false" final="false" visibility="public"
  16996. deprecated="not deprecated">
  16997. <param name="buffer" type="java.nio.ByteBuffer"/>
  16998. </method>
  16999. <doc>
  17000. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  17001. It also caches ByteBuffers after they're released. It will always return
  17002. the smallest cached buffer with at least the capacity you request.
  17003. We don't try to do anything clever here like try to limit the maximum cache
  17004. size.]]>
  17005. </doc>
  17006. </class>
  17007. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  17008. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  17009. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  17010. abstract="false"
  17011. static="false" final="false" visibility="public"
  17012. deprecated="not deprecated">
  17013. <implements name="org.apache.hadoop.io.Writable"/>
  17014. <implements name="org.apache.hadoop.conf.Configurable"/>
  17015. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  17016. static="false" final="false" visibility="public"
  17017. deprecated="not deprecated">
  17018. <doc>
  17019. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  17020. its size is zero, the <tt>elementType</tt> argument must not be null. If
  17021. the argument <tt>value</tt>'s size is bigger than zero, the argument
  17022. <tt>elementType</tt> is not be used.
  17023. @param value
  17024. @param elementType]]>
  17025. </doc>
  17026. </constructor>
  17027. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  17028. static="false" final="false" visibility="public"
  17029. deprecated="not deprecated">
  17030. <doc>
  17031. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  17032. or empty.
  17033. @param value]]>
  17034. </doc>
  17035. </constructor>
  17036. <method name="iterator" return="java.util.Iterator"
  17037. abstract="false" native="false" synchronized="false"
  17038. static="false" final="false" visibility="public"
  17039. deprecated="not deprecated">
  17040. </method>
  17041. <method name="size" return="int"
  17042. abstract="false" native="false" synchronized="false"
  17043. static="false" final="false" visibility="public"
  17044. deprecated="not deprecated">
  17045. </method>
  17046. <method name="add" return="boolean"
  17047. abstract="false" native="false" synchronized="false"
  17048. static="false" final="false" visibility="public"
  17049. deprecated="not deprecated">
  17050. <param name="e" type="E"/>
  17051. </method>
  17052. <method name="set"
  17053. abstract="false" native="false" synchronized="false"
  17054. static="false" final="false" visibility="public"
  17055. deprecated="not deprecated">
  17056. <param name="value" type="java.util.EnumSet"/>
  17057. <param name="elementType" type="java.lang.Class"/>
  17058. <doc>
  17059. <![CDATA[reset the EnumSetWritable with specified
  17060. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  17061. is null or its size is zero, the <tt>elementType</tt> argument must not be
  17062. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  17063. argument <tt>elementType</tt> is not be used.
  17064. @param value
  17065. @param elementType]]>
  17066. </doc>
  17067. </method>
  17068. <method name="get" return="java.util.EnumSet"
  17069. abstract="false" native="false" synchronized="false"
  17070. static="false" final="false" visibility="public"
  17071. deprecated="not deprecated">
  17072. <doc>
  17073. <![CDATA[Return the value of this EnumSetWritable.]]>
  17074. </doc>
  17075. </method>
  17076. <method name="readFields"
  17077. abstract="false" native="false" synchronized="false"
  17078. static="false" final="false" visibility="public"
  17079. deprecated="not deprecated">
  17080. <param name="in" type="java.io.DataInput"/>
  17081. <exception name="IOException" type="java.io.IOException"/>
  17082. </method>
  17083. <method name="write"
  17084. abstract="false" native="false" synchronized="false"
  17085. static="false" final="false" visibility="public"
  17086. deprecated="not deprecated">
  17087. <param name="out" type="java.io.DataOutput"/>
  17088. <exception name="IOException" type="java.io.IOException"/>
  17089. </method>
  17090. <method name="equals" return="boolean"
  17091. abstract="false" native="false" synchronized="false"
  17092. static="false" final="false" visibility="public"
  17093. deprecated="not deprecated">
  17094. <param name="o" type="java.lang.Object"/>
  17095. <doc>
  17096. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  17097. or both are null.]]>
  17098. </doc>
  17099. </method>
  17100. <method name="getElementType" return="java.lang.Class"
  17101. abstract="false" native="false" synchronized="false"
  17102. static="false" final="false" visibility="public"
  17103. deprecated="not deprecated">
  17104. <doc>
  17105. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  17106. may return null.
  17107. @return the element class]]>
  17108. </doc>
  17109. </method>
  17110. <method name="hashCode" return="int"
  17111. abstract="false" native="false" synchronized="false"
  17112. static="false" final="false" visibility="public"
  17113. deprecated="not deprecated">
  17114. </method>
  17115. <method name="toString" return="java.lang.String"
  17116. abstract="false" native="false" synchronized="false"
  17117. static="false" final="false" visibility="public"
  17118. deprecated="not deprecated">
  17119. </method>
  17120. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17121. abstract="false" native="false" synchronized="false"
  17122. static="false" final="false" visibility="public"
  17123. deprecated="not deprecated">
  17124. </method>
  17125. <method name="setConf"
  17126. abstract="false" native="false" synchronized="false"
  17127. static="false" final="false" visibility="public"
  17128. deprecated="not deprecated">
  17129. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17130. </method>
  17131. <doc>
  17132. <![CDATA[A Writable wrapper for EnumSet.]]>
  17133. </doc>
  17134. </class>
  17135. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  17136. <!-- start class org.apache.hadoop.io.FloatWritable -->
  17137. <class name="FloatWritable" extends="java.lang.Object"
  17138. abstract="false"
  17139. static="false" final="false" visibility="public"
  17140. deprecated="not deprecated">
  17141. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17142. <constructor name="FloatWritable"
  17143. static="false" final="false" visibility="public"
  17144. deprecated="not deprecated">
  17145. </constructor>
  17146. <constructor name="FloatWritable" type="float"
  17147. static="false" final="false" visibility="public"
  17148. deprecated="not deprecated">
  17149. </constructor>
  17150. <method name="set"
  17151. abstract="false" native="false" synchronized="false"
  17152. static="false" final="false" visibility="public"
  17153. deprecated="not deprecated">
  17154. <param name="value" type="float"/>
  17155. <doc>
  17156. <![CDATA[Set the value of this FloatWritable.]]>
  17157. </doc>
  17158. </method>
  17159. <method name="get" return="float"
  17160. abstract="false" native="false" synchronized="false"
  17161. static="false" final="false" visibility="public"
  17162. deprecated="not deprecated">
  17163. <doc>
  17164. <![CDATA[Return the value of this FloatWritable.]]>
  17165. </doc>
  17166. </method>
  17167. <method name="readFields"
  17168. abstract="false" native="false" synchronized="false"
  17169. static="false" final="false" visibility="public"
  17170. deprecated="not deprecated">
  17171. <param name="in" type="java.io.DataInput"/>
  17172. <exception name="IOException" type="java.io.IOException"/>
  17173. </method>
  17174. <method name="write"
  17175. abstract="false" native="false" synchronized="false"
  17176. static="false" final="false" visibility="public"
  17177. deprecated="not deprecated">
  17178. <param name="out" type="java.io.DataOutput"/>
  17179. <exception name="IOException" type="java.io.IOException"/>
  17180. </method>
  17181. <method name="equals" return="boolean"
  17182. abstract="false" native="false" synchronized="false"
  17183. static="false" final="false" visibility="public"
  17184. deprecated="not deprecated">
  17185. <param name="o" type="java.lang.Object"/>
  17186. <doc>
  17187. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  17188. </doc>
  17189. </method>
  17190. <method name="hashCode" return="int"
  17191. abstract="false" native="false" synchronized="false"
  17192. static="false" final="false" visibility="public"
  17193. deprecated="not deprecated">
  17194. </method>
  17195. <method name="compareTo" return="int"
  17196. abstract="false" native="false" synchronized="false"
  17197. static="false" final="false" visibility="public"
  17198. deprecated="not deprecated">
  17199. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  17200. <doc>
  17201. <![CDATA[Compares two FloatWritables.]]>
  17202. </doc>
  17203. </method>
  17204. <method name="toString" return="java.lang.String"
  17205. abstract="false" native="false" synchronized="false"
  17206. static="false" final="false" visibility="public"
  17207. deprecated="not deprecated">
  17208. </method>
  17209. <doc>
  17210. <![CDATA[A WritableComparable for floats.]]>
  17211. </doc>
  17212. </class>
  17213. <!-- end class org.apache.hadoop.io.FloatWritable -->
  17214. <!-- start class org.apache.hadoop.io.GenericWritable -->
  17215. <class name="GenericWritable" extends="java.lang.Object"
  17216. abstract="true"
  17217. static="false" final="false" visibility="public"
  17218. deprecated="not deprecated">
  17219. <implements name="org.apache.hadoop.io.Writable"/>
  17220. <implements name="org.apache.hadoop.conf.Configurable"/>
  17221. <constructor name="GenericWritable"
  17222. static="false" final="false" visibility="public"
  17223. deprecated="not deprecated">
  17224. </constructor>
  17225. <method name="set"
  17226. abstract="false" native="false" synchronized="false"
  17227. static="false" final="false" visibility="public"
  17228. deprecated="not deprecated">
  17229. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  17230. <doc>
  17231. <![CDATA[Set the instance that is wrapped.
  17232. @param obj]]>
  17233. </doc>
  17234. </method>
  17235. <method name="get" return="org.apache.hadoop.io.Writable"
  17236. abstract="false" native="false" synchronized="false"
  17237. static="false" final="false" visibility="public"
  17238. deprecated="not deprecated">
  17239. <doc>
  17240. <![CDATA[Return the wrapped instance.]]>
  17241. </doc>
  17242. </method>
  17243. <method name="toString" return="java.lang.String"
  17244. abstract="false" native="false" synchronized="false"
  17245. static="false" final="false" visibility="public"
  17246. deprecated="not deprecated">
  17247. </method>
  17248. <method name="readFields"
  17249. abstract="false" native="false" synchronized="false"
  17250. static="false" final="false" visibility="public"
  17251. deprecated="not deprecated">
  17252. <param name="in" type="java.io.DataInput"/>
  17253. <exception name="IOException" type="java.io.IOException"/>
  17254. </method>
  17255. <method name="write"
  17256. abstract="false" native="false" synchronized="false"
  17257. static="false" final="false" visibility="public"
  17258. deprecated="not deprecated">
  17259. <param name="out" type="java.io.DataOutput"/>
  17260. <exception name="IOException" type="java.io.IOException"/>
  17261. </method>
  17262. <method name="getTypes" return="java.lang.Class[]"
  17263. abstract="true" native="false" synchronized="false"
  17264. static="false" final="false" visibility="protected"
  17265. deprecated="not deprecated">
  17266. <doc>
  17267. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  17268. to return a constant array of classes.]]>
  17269. </doc>
  17270. </method>
  17271. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17272. abstract="false" native="false" synchronized="false"
  17273. static="false" final="false" visibility="public"
  17274. deprecated="not deprecated">
  17275. </method>
  17276. <method name="setConf"
  17277. abstract="false" native="false" synchronized="false"
  17278. static="false" final="false" visibility="public"
  17279. deprecated="not deprecated">
  17280. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17281. </method>
  17282. <doc>
  17283. <![CDATA[A wrapper for Writable instances.
  17284. <p>
  17285. When two sequence files, which have same Key type but different Value
  17286. types, are mapped out to reduce, multiple Value types is not allowed.
  17287. In this case, this class can help you wrap instances with different types.
  17288. </p>
  17289. <p>
  17290. Compared with <code>ObjectWritable</code>, this class is much more effective,
  17291. because <code>ObjectWritable</code> will append the class declaration as a String
  17292. into the output file in every Key-Value pair.
  17293. </p>
  17294. <p>
  17295. Generic Writable implements {@link Configurable} interface, so that it will be
  17296. configured by the framework. The configuration is passed to the wrapped objects
  17297. implementing {@link Configurable} interface <i>before deserialization</i>.
  17298. </p>
  17299. how to use it: <br>
  17300. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  17301. 2. Implements the abstract method <code>getTypes()</code>, defines
  17302. the classes which will be wrapped in GenericObject in application.
  17303. Attention: this classes defined in <code>getTypes()</code> method, must
  17304. implement <code>Writable</code> interface.
  17305. <br><br>
  17306. The code looks like this:
  17307. <blockquote><pre>
  17308. public class GenericObject extends GenericWritable {
  17309. private static Class[] CLASSES = {
  17310. ClassType1.class,
  17311. ClassType2.class,
  17312. ClassType3.class,
  17313. };
  17314. protected Class[] getTypes() {
  17315. return CLASSES;
  17316. }
  17317. }
  17318. </pre></blockquote>
  17319. @since Nov 8, 2006]]>
  17320. </doc>
  17321. </class>
  17322. <!-- end class org.apache.hadoop.io.GenericWritable -->
  17323. <!-- start class org.apache.hadoop.io.IntWritable -->
  17324. <class name="IntWritable" extends="java.lang.Object"
  17325. abstract="false"
  17326. static="false" final="false" visibility="public"
  17327. deprecated="not deprecated">
  17328. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17329. <constructor name="IntWritable"
  17330. static="false" final="false" visibility="public"
  17331. deprecated="not deprecated">
  17332. </constructor>
  17333. <constructor name="IntWritable" type="int"
  17334. static="false" final="false" visibility="public"
  17335. deprecated="not deprecated">
  17336. </constructor>
  17337. <method name="set"
  17338. abstract="false" native="false" synchronized="false"
  17339. static="false" final="false" visibility="public"
  17340. deprecated="not deprecated">
  17341. <param name="value" type="int"/>
  17342. <doc>
  17343. <![CDATA[Set the value of this IntWritable.]]>
  17344. </doc>
  17345. </method>
  17346. <method name="get" return="int"
  17347. abstract="false" native="false" synchronized="false"
  17348. static="false" final="false" visibility="public"
  17349. deprecated="not deprecated">
  17350. <doc>
  17351. <![CDATA[Return the value of this IntWritable.]]>
  17352. </doc>
  17353. </method>
  17354. <method name="readFields"
  17355. abstract="false" native="false" synchronized="false"
  17356. static="false" final="false" visibility="public"
  17357. deprecated="not deprecated">
  17358. <param name="in" type="java.io.DataInput"/>
  17359. <exception name="IOException" type="java.io.IOException"/>
  17360. </method>
  17361. <method name="write"
  17362. abstract="false" native="false" synchronized="false"
  17363. static="false" final="false" visibility="public"
  17364. deprecated="not deprecated">
  17365. <param name="out" type="java.io.DataOutput"/>
  17366. <exception name="IOException" type="java.io.IOException"/>
  17367. </method>
  17368. <method name="equals" return="boolean"
  17369. abstract="false" native="false" synchronized="false"
  17370. static="false" final="false" visibility="public"
  17371. deprecated="not deprecated">
  17372. <param name="o" type="java.lang.Object"/>
  17373. <doc>
  17374. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  17375. </doc>
  17376. </method>
  17377. <method name="hashCode" return="int"
  17378. abstract="false" native="false" synchronized="false"
  17379. static="false" final="false" visibility="public"
  17380. deprecated="not deprecated">
  17381. </method>
  17382. <method name="compareTo" return="int"
  17383. abstract="false" native="false" synchronized="false"
  17384. static="false" final="false" visibility="public"
  17385. deprecated="not deprecated">
  17386. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  17387. <doc>
  17388. <![CDATA[Compares two IntWritables.]]>
  17389. </doc>
  17390. </method>
  17391. <method name="toString" return="java.lang.String"
  17392. abstract="false" native="false" synchronized="false"
  17393. static="false" final="false" visibility="public"
  17394. deprecated="not deprecated">
  17395. </method>
  17396. <doc>
  17397. <![CDATA[A WritableComparable for ints.]]>
  17398. </doc>
  17399. </class>
  17400. <!-- end class org.apache.hadoop.io.IntWritable -->
  17401. <!-- start class org.apache.hadoop.io.IOUtils -->
  17402. <class name="IOUtils" extends="java.lang.Object"
  17403. abstract="false"
  17404. static="false" final="false" visibility="public"
  17405. deprecated="not deprecated">
  17406. <constructor name="IOUtils"
  17407. static="false" final="false" visibility="public"
  17408. deprecated="not deprecated">
  17409. </constructor>
  17410. <method name="copyBytes"
  17411. abstract="false" native="false" synchronized="false"
  17412. static="true" final="false" visibility="public"
  17413. deprecated="not deprecated">
  17414. <param name="in" type="java.io.InputStream"/>
  17415. <param name="out" type="java.io.OutputStream"/>
  17416. <param name="buffSize" type="int"/>
  17417. <param name="close" type="boolean"/>
  17418. <exception name="IOException" type="java.io.IOException"/>
  17419. <doc>
  17420. <![CDATA[Copies from one stream to another.
  17421. @param in InputStrem to read from
  17422. @param out OutputStream to write to
  17423. @param buffSize the size of the buffer
  17424. @param close whether or not close the InputStream and
  17425. OutputStream at the end. The streams are closed in the finally clause.]]>
  17426. </doc>
  17427. </method>
  17428. <method name="copyBytes"
  17429. abstract="false" native="false" synchronized="false"
  17430. static="true" final="false" visibility="public"
  17431. deprecated="not deprecated">
  17432. <param name="in" type="java.io.InputStream"/>
  17433. <param name="out" type="java.io.OutputStream"/>
  17434. <param name="buffSize" type="int"/>
  17435. <exception name="IOException" type="java.io.IOException"/>
  17436. <doc>
  17437. <![CDATA[Copies from one stream to another.
  17438. @param in InputStrem to read from
  17439. @param out OutputStream to write to
  17440. @param buffSize the size of the buffer]]>
  17441. </doc>
  17442. </method>
  17443. <method name="copyBytes"
  17444. abstract="false" native="false" synchronized="false"
  17445. static="true" final="false" visibility="public"
  17446. deprecated="not deprecated">
  17447. <param name="in" type="java.io.InputStream"/>
  17448. <param name="out" type="java.io.OutputStream"/>
  17449. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17450. <exception name="IOException" type="java.io.IOException"/>
  17451. <doc>
  17452. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  17453. at the end</strong>.
  17454. @param in InputStrem to read from
  17455. @param out OutputStream to write to
  17456. @param conf the Configuration object]]>
  17457. </doc>
  17458. </method>
  17459. <method name="copyBytes"
  17460. abstract="false" native="false" synchronized="false"
  17461. static="true" final="false" visibility="public"
  17462. deprecated="not deprecated">
  17463. <param name="in" type="java.io.InputStream"/>
  17464. <param name="out" type="java.io.OutputStream"/>
  17465. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17466. <param name="close" type="boolean"/>
  17467. <exception name="IOException" type="java.io.IOException"/>
  17468. <doc>
  17469. <![CDATA[Copies from one stream to another.
  17470. @param in InputStream to read from
  17471. @param out OutputStream to write to
  17472. @param conf the Configuration object
  17473. @param close whether or not close the InputStream and
  17474. OutputStream at the end. The streams are closed in the finally clause.]]>
  17475. </doc>
  17476. </method>
  17477. <method name="copyBytes"
  17478. abstract="false" native="false" synchronized="false"
  17479. static="true" final="false" visibility="public"
  17480. deprecated="not deprecated">
  17481. <param name="in" type="java.io.InputStream"/>
  17482. <param name="out" type="java.io.OutputStream"/>
  17483. <param name="count" type="long"/>
  17484. <param name="close" type="boolean"/>
  17485. <exception name="IOException" type="java.io.IOException"/>
  17486. <doc>
  17487. <![CDATA[Copies count bytes from one stream to another.
  17488. @param in InputStream to read from
  17489. @param out OutputStream to write to
  17490. @param count number of bytes to copy
  17491. @param close whether to close the streams
  17492. @throws IOException if bytes can not be read or written]]>
  17493. </doc>
  17494. </method>
  17495. <method name="wrappedReadForCompressedData" return="int"
  17496. abstract="false" native="false" synchronized="false"
  17497. static="true" final="false" visibility="public"
  17498. deprecated="not deprecated">
  17499. <param name="is" type="java.io.InputStream"/>
  17500. <param name="buf" type="byte[]"/>
  17501. <param name="off" type="int"/>
  17502. <param name="len" type="int"/>
  17503. <exception name="IOException" type="java.io.IOException"/>
  17504. <doc>
  17505. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  17506. thrown by the underlying stream (either IO or decompression-related), and
  17507. re-throws as an IOException.
  17508. @param is - InputStream to be read from
  17509. @param buf - buffer the data is read into
  17510. @param off - offset within buf
  17511. @param len - amount of data to be read
  17512. @return number of bytes read]]>
  17513. </doc>
  17514. </method>
  17515. <method name="readFully"
  17516. abstract="false" native="false" synchronized="false"
  17517. static="true" final="false" visibility="public"
  17518. deprecated="not deprecated">
  17519. <param name="in" type="java.io.InputStream"/>
  17520. <param name="buf" type="byte[]"/>
  17521. <param name="off" type="int"/>
  17522. <param name="len" type="int"/>
  17523. <exception name="IOException" type="java.io.IOException"/>
  17524. <doc>
  17525. <![CDATA[Reads len bytes in a loop.
  17526. @param in InputStream to read from
  17527. @param buf The buffer to fill
  17528. @param off offset from the buffer
  17529. @param len the length of bytes to read
  17530. @throws IOException if it could not read requested number of bytes
  17531. for any reason (including EOF)]]>
  17532. </doc>
  17533. </method>
  17534. <method name="skipFully"
  17535. abstract="false" native="false" synchronized="false"
  17536. static="true" final="false" visibility="public"
  17537. deprecated="not deprecated">
  17538. <param name="in" type="java.io.InputStream"/>
  17539. <param name="len" type="long"/>
  17540. <exception name="IOException" type="java.io.IOException"/>
  17541. <doc>
  17542. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  17543. @param in The InputStream to skip bytes from
  17544. @param len number of bytes to skip.
  17545. @throws IOException if it could not skip requested number of bytes
  17546. for any reason (including EOF)]]>
  17547. </doc>
  17548. </method>
  17549. <method name="cleanup"
  17550. abstract="false" native="false" synchronized="false"
  17551. static="true" final="false" visibility="public"
  17552. deprecated="not deprecated">
  17553. <param name="log" type="org.apache.commons.logging.Log"/>
  17554. <param name="closeables" type="java.io.Closeable[]"/>
  17555. <doc>
  17556. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  17557. null pointers. Must only be used for cleanup in exception handlers.
  17558. @param log the log to record problems to at debug level. Can be null.
  17559. @param closeables the objects to close]]>
  17560. </doc>
  17561. </method>
  17562. <method name="closeStream"
  17563. abstract="false" native="false" synchronized="false"
  17564. static="true" final="false" visibility="public"
  17565. deprecated="not deprecated">
  17566. <param name="stream" type="java.io.Closeable"/>
  17567. <doc>
  17568. <![CDATA[Closes the stream ignoring {@link IOException}.
  17569. Must only be called in cleaning up from exception handlers.
  17570. @param stream the Stream to close]]>
  17571. </doc>
  17572. </method>
  17573. <method name="closeSocket"
  17574. abstract="false" native="false" synchronized="false"
  17575. static="true" final="false" visibility="public"
  17576. deprecated="not deprecated">
  17577. <param name="sock" type="java.net.Socket"/>
  17578. <doc>
  17579. <![CDATA[Closes the socket ignoring {@link IOException}
  17580. @param sock the Socket to close]]>
  17581. </doc>
  17582. </method>
  17583. <method name="writeFully"
  17584. abstract="false" native="false" synchronized="false"
  17585. static="true" final="false" visibility="public"
  17586. deprecated="not deprecated">
  17587. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  17588. <param name="buf" type="java.nio.ByteBuffer"/>
  17589. <exception name="IOException" type="java.io.IOException"/>
  17590. <doc>
  17591. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  17592. @param bc The WritableByteChannel to write to
  17593. @param buf The input buffer
  17594. @throws IOException On I/O error]]>
  17595. </doc>
  17596. </method>
  17597. <method name="writeFully"
  17598. abstract="false" native="false" synchronized="false"
  17599. static="true" final="false" visibility="public"
  17600. deprecated="not deprecated">
  17601. <param name="fc" type="java.nio.channels.FileChannel"/>
  17602. <param name="buf" type="java.nio.ByteBuffer"/>
  17603. <param name="offset" type="long"/>
  17604. <exception name="IOException" type="java.io.IOException"/>
  17605. <doc>
  17606. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  17607. handling short writes.
  17608. @param fc The FileChannel to write to
  17609. @param buf The input buffer
  17610. @param offset The offset in the file to start writing at
  17611. @throws IOException On I/O error]]>
  17612. </doc>
  17613. </method>
  17614. <method name="listDirectory" return="java.util.List"
  17615. abstract="false" native="false" synchronized="false"
  17616. static="true" final="false" visibility="public"
  17617. deprecated="not deprecated">
  17618. <param name="dir" type="java.io.File"/>
  17619. <param name="filter" type="java.io.FilenameFilter"/>
  17620. <exception name="IOException" type="java.io.IOException"/>
  17621. <doc>
  17622. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  17623. This is better than File#listDir because it does not ignore IOExceptions.
  17624. @param dir The directory to list.
  17625. @param filter If non-null, the filter to use when listing
  17626. this directory.
  17627. @return The list of files in the directory.
  17628. @throws IOException On I/O error]]>
  17629. </doc>
  17630. </method>
  17631. <doc>
  17632. <![CDATA[An utility class for I/O related functionality.]]>
  17633. </doc>
  17634. </class>
  17635. <!-- end class org.apache.hadoop.io.IOUtils -->
  17636. <!-- start class org.apache.hadoop.io.LongWritable -->
  17637. <class name="LongWritable" extends="java.lang.Object"
  17638. abstract="false"
  17639. static="false" final="false" visibility="public"
  17640. deprecated="not deprecated">
  17641. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17642. <constructor name="LongWritable"
  17643. static="false" final="false" visibility="public"
  17644. deprecated="not deprecated">
  17645. </constructor>
  17646. <constructor name="LongWritable" type="long"
  17647. static="false" final="false" visibility="public"
  17648. deprecated="not deprecated">
  17649. </constructor>
  17650. <method name="set"
  17651. abstract="false" native="false" synchronized="false"
  17652. static="false" final="false" visibility="public"
  17653. deprecated="not deprecated">
  17654. <param name="value" type="long"/>
  17655. <doc>
  17656. <![CDATA[Set the value of this LongWritable.]]>
  17657. </doc>
  17658. </method>
  17659. <method name="get" return="long"
  17660. abstract="false" native="false" synchronized="false"
  17661. static="false" final="false" visibility="public"
  17662. deprecated="not deprecated">
  17663. <doc>
  17664. <![CDATA[Return the value of this LongWritable.]]>
  17665. </doc>
  17666. </method>
  17667. <method name="readFields"
  17668. abstract="false" native="false" synchronized="false"
  17669. static="false" final="false" visibility="public"
  17670. deprecated="not deprecated">
  17671. <param name="in" type="java.io.DataInput"/>
  17672. <exception name="IOException" type="java.io.IOException"/>
  17673. </method>
  17674. <method name="write"
  17675. abstract="false" native="false" synchronized="false"
  17676. static="false" final="false" visibility="public"
  17677. deprecated="not deprecated">
  17678. <param name="out" type="java.io.DataOutput"/>
  17679. <exception name="IOException" type="java.io.IOException"/>
  17680. </method>
  17681. <method name="equals" return="boolean"
  17682. abstract="false" native="false" synchronized="false"
  17683. static="false" final="false" visibility="public"
  17684. deprecated="not deprecated">
  17685. <param name="o" type="java.lang.Object"/>
  17686. <doc>
  17687. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  17688. </doc>
  17689. </method>
  17690. <method name="hashCode" return="int"
  17691. abstract="false" native="false" synchronized="false"
  17692. static="false" final="false" visibility="public"
  17693. deprecated="not deprecated">
  17694. </method>
  17695. <method name="compareTo" return="int"
  17696. abstract="false" native="false" synchronized="false"
  17697. static="false" final="false" visibility="public"
  17698. deprecated="not deprecated">
  17699. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  17700. <doc>
  17701. <![CDATA[Compares two LongWritables.]]>
  17702. </doc>
  17703. </method>
  17704. <method name="toString" return="java.lang.String"
  17705. abstract="false" native="false" synchronized="false"
  17706. static="false" final="false" visibility="public"
  17707. deprecated="not deprecated">
  17708. </method>
  17709. <doc>
  17710. <![CDATA[A WritableComparable for longs.]]>
  17711. </doc>
  17712. </class>
  17713. <!-- end class org.apache.hadoop.io.LongWritable -->
  17714. <!-- start class org.apache.hadoop.io.MapFile -->
  17715. <class name="MapFile" extends="java.lang.Object"
  17716. abstract="false"
  17717. static="false" final="false" visibility="public"
  17718. deprecated="not deprecated">
  17719. <constructor name="MapFile"
  17720. static="false" final="false" visibility="protected"
  17721. deprecated="not deprecated">
  17722. </constructor>
  17723. <method name="rename"
  17724. abstract="false" native="false" synchronized="false"
  17725. static="true" final="false" visibility="public"
  17726. deprecated="not deprecated">
  17727. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17728. <param name="oldName" type="java.lang.String"/>
  17729. <param name="newName" type="java.lang.String"/>
  17730. <exception name="IOException" type="java.io.IOException"/>
  17731. <doc>
  17732. <![CDATA[Renames an existing map directory.]]>
  17733. </doc>
  17734. </method>
  17735. <method name="delete"
  17736. abstract="false" native="false" synchronized="false"
  17737. static="true" final="false" visibility="public"
  17738. deprecated="not deprecated">
  17739. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17740. <param name="name" type="java.lang.String"/>
  17741. <exception name="IOException" type="java.io.IOException"/>
  17742. <doc>
  17743. <![CDATA[Deletes the named map file.]]>
  17744. </doc>
  17745. </method>
  17746. <method name="fix" return="long"
  17747. abstract="false" native="false" synchronized="false"
  17748. static="true" final="false" visibility="public"
  17749. deprecated="not deprecated">
  17750. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17751. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  17752. <param name="keyClass" type="java.lang.Class"/>
  17753. <param name="valueClass" type="java.lang.Class"/>
  17754. <param name="dryrun" type="boolean"/>
  17755. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17756. <exception name="Exception" type="java.lang.Exception"/>
  17757. <doc>
  17758. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  17759. @param fs filesystem
  17760. @param dir directory containing the MapFile data and index
  17761. @param keyClass key class (has to be a subclass of Writable)
  17762. @param valueClass value class (has to be a subclass of Writable)
  17763. @param dryrun do not perform any changes, just report what needs to be done
  17764. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  17765. @throws Exception]]>
  17766. </doc>
  17767. </method>
  17768. <method name="main"
  17769. abstract="false" native="false" synchronized="false"
  17770. static="true" final="false" visibility="public"
  17771. deprecated="not deprecated">
  17772. <param name="args" type="java.lang.String[]"/>
  17773. <exception name="Exception" type="java.lang.Exception"/>
  17774. </method>
  17775. <field name="INDEX_FILE_NAME" type="java.lang.String"
  17776. transient="false" volatile="false"
  17777. static="true" final="true" visibility="public"
  17778. deprecated="not deprecated">
  17779. <doc>
  17780. <![CDATA[The name of the index file.]]>
  17781. </doc>
  17782. </field>
  17783. <field name="DATA_FILE_NAME" type="java.lang.String"
  17784. transient="false" volatile="false"
  17785. static="true" final="true" visibility="public"
  17786. deprecated="not deprecated">
  17787. <doc>
  17788. <![CDATA[The name of the data file.]]>
  17789. </doc>
  17790. </field>
  17791. <doc>
  17792. <![CDATA[A file-based map from keys to values.
  17793. <p>A map is a directory containing two files, the <code>data</code> file,
  17794. containing all keys and values in the map, and a smaller <code>index</code>
  17795. file, containing a fraction of the keys. The fraction is determined by
  17796. {@link Writer#getIndexInterval()}.
  17797. <p>The index file is read entirely into memory. Thus key implementations
  17798. should try to keep themselves small.
  17799. <p>Map files are created by adding entries in-order. To maintain a large
  17800. database, perform updates by copying the previous version of a database and
  17801. merging in a sorted change list, to create a new version of the database in
  17802. a new file. Sorting large change lists can be done with {@link
  17803. SequenceFile.Sorter}.]]>
  17804. </doc>
  17805. </class>
  17806. <!-- end class org.apache.hadoop.io.MapFile -->
  17807. <!-- start class org.apache.hadoop.io.MapWritable -->
  17808. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  17809. abstract="false"
  17810. static="false" final="false" visibility="public"
  17811. deprecated="not deprecated">
  17812. <implements name="java.util.Map"/>
  17813. <constructor name="MapWritable"
  17814. static="false" final="false" visibility="public"
  17815. deprecated="not deprecated">
  17816. <doc>
  17817. <![CDATA[Default constructor.]]>
  17818. </doc>
  17819. </constructor>
  17820. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  17821. static="false" final="false" visibility="public"
  17822. deprecated="not deprecated">
  17823. <doc>
  17824. <![CDATA[Copy constructor.
  17825. @param other the map to copy from]]>
  17826. </doc>
  17827. </constructor>
  17828. <method name="clear"
  17829. abstract="false" native="false" synchronized="false"
  17830. static="false" final="false" visibility="public"
  17831. deprecated="not deprecated">
  17832. </method>
  17833. <method name="containsKey" return="boolean"
  17834. abstract="false" native="false" synchronized="false"
  17835. static="false" final="false" visibility="public"
  17836. deprecated="not deprecated">
  17837. <param name="key" type="java.lang.Object"/>
  17838. </method>
  17839. <method name="containsValue" return="boolean"
  17840. abstract="false" native="false" synchronized="false"
  17841. static="false" final="false" visibility="public"
  17842. deprecated="not deprecated">
  17843. <param name="value" type="java.lang.Object"/>
  17844. </method>
  17845. <method name="entrySet" return="java.util.Set"
  17846. abstract="false" native="false" synchronized="false"
  17847. static="false" final="false" visibility="public"
  17848. deprecated="not deprecated">
  17849. </method>
  17850. <method name="equals" return="boolean"
  17851. abstract="false" native="false" synchronized="false"
  17852. static="false" final="false" visibility="public"
  17853. deprecated="not deprecated">
  17854. <param name="obj" type="java.lang.Object"/>
  17855. </method>
  17856. <method name="get" return="org.apache.hadoop.io.Writable"
  17857. abstract="false" native="false" synchronized="false"
  17858. static="false" final="false" visibility="public"
  17859. deprecated="not deprecated">
  17860. <param name="key" type="java.lang.Object"/>
  17861. </method>
  17862. <method name="hashCode" return="int"
  17863. abstract="false" native="false" synchronized="false"
  17864. static="false" final="false" visibility="public"
  17865. deprecated="not deprecated">
  17866. </method>
  17867. <method name="isEmpty" return="boolean"
  17868. abstract="false" native="false" synchronized="false"
  17869. static="false" final="false" visibility="public"
  17870. deprecated="not deprecated">
  17871. </method>
  17872. <method name="keySet" return="java.util.Set"
  17873. abstract="false" native="false" synchronized="false"
  17874. static="false" final="false" visibility="public"
  17875. deprecated="not deprecated">
  17876. </method>
  17877. <method name="put" return="org.apache.hadoop.io.Writable"
  17878. abstract="false" native="false" synchronized="false"
  17879. static="false" final="false" visibility="public"
  17880. deprecated="not deprecated">
  17881. <param name="key" type="org.apache.hadoop.io.Writable"/>
  17882. <param name="value" type="org.apache.hadoop.io.Writable"/>
  17883. </method>
  17884. <method name="putAll"
  17885. abstract="false" native="false" synchronized="false"
  17886. static="false" final="false" visibility="public"
  17887. deprecated="not deprecated">
  17888. <param name="t" type="java.util.Map"/>
  17889. </method>
  17890. <method name="remove" return="org.apache.hadoop.io.Writable"
  17891. abstract="false" native="false" synchronized="false"
  17892. static="false" final="false" visibility="public"
  17893. deprecated="not deprecated">
  17894. <param name="key" type="java.lang.Object"/>
  17895. </method>
  17896. <method name="size" return="int"
  17897. abstract="false" native="false" synchronized="false"
  17898. static="false" final="false" visibility="public"
  17899. deprecated="not deprecated">
  17900. </method>
  17901. <method name="values" return="java.util.Collection"
  17902. abstract="false" native="false" synchronized="false"
  17903. static="false" final="false" visibility="public"
  17904. deprecated="not deprecated">
  17905. </method>
  17906. <method name="write"
  17907. abstract="false" native="false" synchronized="false"
  17908. static="false" final="false" visibility="public"
  17909. deprecated="not deprecated">
  17910. <param name="out" type="java.io.DataOutput"/>
  17911. <exception name="IOException" type="java.io.IOException"/>
  17912. </method>
  17913. <method name="readFields"
  17914. abstract="false" native="false" synchronized="false"
  17915. static="false" final="false" visibility="public"
  17916. deprecated="not deprecated">
  17917. <param name="in" type="java.io.DataInput"/>
  17918. <exception name="IOException" type="java.io.IOException"/>
  17919. </method>
  17920. <method name="toString" return="java.lang.String"
  17921. abstract="false" native="false" synchronized="false"
  17922. static="false" final="false" visibility="public"
  17923. deprecated="not deprecated">
  17924. </method>
  17925. <doc>
  17926. <![CDATA[A Writable Map.]]>
  17927. </doc>
  17928. </class>
  17929. <!-- end class org.apache.hadoop.io.MapWritable -->
  17930. <!-- start class org.apache.hadoop.io.MD5Hash -->
  17931. <class name="MD5Hash" extends="java.lang.Object"
  17932. abstract="false"
  17933. static="false" final="false" visibility="public"
  17934. deprecated="not deprecated">
  17935. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17936. <constructor name="MD5Hash"
  17937. static="false" final="false" visibility="public"
  17938. deprecated="not deprecated">
  17939. <doc>
  17940. <![CDATA[Constructs an MD5Hash.]]>
  17941. </doc>
  17942. </constructor>
  17943. <constructor name="MD5Hash" type="java.lang.String"
  17944. static="false" final="false" visibility="public"
  17945. deprecated="not deprecated">
  17946. <doc>
  17947. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  17948. </doc>
  17949. </constructor>
  17950. <constructor name="MD5Hash" type="byte[]"
  17951. static="false" final="false" visibility="public"
  17952. deprecated="not deprecated">
  17953. <doc>
  17954. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  17955. </doc>
  17956. </constructor>
  17957. <method name="readFields"
  17958. abstract="false" native="false" synchronized="false"
  17959. static="false" final="false" visibility="public"
  17960. deprecated="not deprecated">
  17961. <param name="in" type="java.io.DataInput"/>
  17962. <exception name="IOException" type="java.io.IOException"/>
  17963. </method>
  17964. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  17965. abstract="false" native="false" synchronized="false"
  17966. static="true" final="false" visibility="public"
  17967. deprecated="not deprecated">
  17968. <param name="in" type="java.io.DataInput"/>
  17969. <exception name="IOException" type="java.io.IOException"/>
  17970. <doc>
  17971. <![CDATA[Constructs, reads and returns an instance.]]>
  17972. </doc>
  17973. </method>
  17974. <method name="write"
  17975. abstract="false" native="false" synchronized="false"
  17976. static="false" final="false" visibility="public"
  17977. deprecated="not deprecated">
  17978. <param name="out" type="java.io.DataOutput"/>
  17979. <exception name="IOException" type="java.io.IOException"/>
  17980. </method>
  17981. <method name="set"
  17982. abstract="false" native="false" synchronized="false"
  17983. static="false" final="false" visibility="public"
  17984. deprecated="not deprecated">
  17985. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  17986. <doc>
  17987. <![CDATA[Copy the contents of another instance into this instance.]]>
  17988. </doc>
  17989. </method>
  17990. <method name="getDigest" return="byte[]"
  17991. abstract="false" native="false" synchronized="false"
  17992. static="false" final="false" visibility="public"
  17993. deprecated="not deprecated">
  17994. <doc>
  17995. <![CDATA[Returns the digest bytes.]]>
  17996. </doc>
  17997. </method>
  17998. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  17999. abstract="false" native="false" synchronized="false"
  18000. static="true" final="false" visibility="public"
  18001. deprecated="not deprecated">
  18002. <param name="data" type="byte[]"/>
  18003. <doc>
  18004. <![CDATA[Construct a hash value for a byte array.]]>
  18005. </doc>
  18006. </method>
  18007. <method name="getDigester" return="java.security.MessageDigest"
  18008. abstract="false" native="false" synchronized="false"
  18009. static="true" final="false" visibility="public"
  18010. deprecated="not deprecated">
  18011. <doc>
  18012. <![CDATA[Create a thread local MD5 digester]]>
  18013. </doc>
  18014. </method>
  18015. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18016. abstract="false" native="false" synchronized="false"
  18017. static="true" final="false" visibility="public"
  18018. deprecated="not deprecated">
  18019. <param name="in" type="java.io.InputStream"/>
  18020. <exception name="IOException" type="java.io.IOException"/>
  18021. <doc>
  18022. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  18023. </doc>
  18024. </method>
  18025. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18026. abstract="false" native="false" synchronized="false"
  18027. static="true" final="false" visibility="public"
  18028. deprecated="not deprecated">
  18029. <param name="data" type="byte[]"/>
  18030. <param name="start" type="int"/>
  18031. <param name="len" type="int"/>
  18032. <doc>
  18033. <![CDATA[Construct a hash value for a byte array.]]>
  18034. </doc>
  18035. </method>
  18036. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18037. abstract="false" native="false" synchronized="false"
  18038. static="true" final="false" visibility="public"
  18039. deprecated="not deprecated">
  18040. <param name="string" type="java.lang.String"/>
  18041. <doc>
  18042. <![CDATA[Construct a hash value for a String.]]>
  18043. </doc>
  18044. </method>
  18045. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  18046. abstract="false" native="false" synchronized="false"
  18047. static="true" final="false" visibility="public"
  18048. deprecated="not deprecated">
  18049. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  18050. <doc>
  18051. <![CDATA[Construct a hash value for a String.]]>
  18052. </doc>
  18053. </method>
  18054. <method name="halfDigest" return="long"
  18055. abstract="false" native="false" synchronized="false"
  18056. static="false" final="false" visibility="public"
  18057. deprecated="not deprecated">
  18058. <doc>
  18059. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  18060. </doc>
  18061. </method>
  18062. <method name="quarterDigest" return="int"
  18063. abstract="false" native="false" synchronized="false"
  18064. static="false" final="false" visibility="public"
  18065. deprecated="not deprecated">
  18066. <doc>
  18067. <![CDATA[Return a 32-bit digest of the MD5.
  18068. @return the first 4 bytes of the md5]]>
  18069. </doc>
  18070. </method>
  18071. <method name="equals" return="boolean"
  18072. abstract="false" native="false" synchronized="false"
  18073. static="false" final="false" visibility="public"
  18074. deprecated="not deprecated">
  18075. <param name="o" type="java.lang.Object"/>
  18076. <doc>
  18077. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  18078. same values.]]>
  18079. </doc>
  18080. </method>
  18081. <method name="hashCode" return="int"
  18082. abstract="false" native="false" synchronized="false"
  18083. static="false" final="false" visibility="public"
  18084. deprecated="not deprecated">
  18085. <doc>
  18086. <![CDATA[Returns a hash code value for this object.
  18087. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  18088. </doc>
  18089. </method>
  18090. <method name="compareTo" return="int"
  18091. abstract="false" native="false" synchronized="false"
  18092. static="false" final="false" visibility="public"
  18093. deprecated="not deprecated">
  18094. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  18095. <doc>
  18096. <![CDATA[Compares this object with the specified object for order.]]>
  18097. </doc>
  18098. </method>
  18099. <method name="toString" return="java.lang.String"
  18100. abstract="false" native="false" synchronized="false"
  18101. static="false" final="false" visibility="public"
  18102. deprecated="not deprecated">
  18103. <doc>
  18104. <![CDATA[Returns a string representation of this object.]]>
  18105. </doc>
  18106. </method>
  18107. <method name="setDigest"
  18108. abstract="false" native="false" synchronized="false"
  18109. static="false" final="false" visibility="public"
  18110. deprecated="not deprecated">
  18111. <param name="hex" type="java.lang.String"/>
  18112. <doc>
  18113. <![CDATA[Sets the digest value from a hex string.]]>
  18114. </doc>
  18115. </method>
  18116. <field name="MD5_LEN" type="int"
  18117. transient="false" volatile="false"
  18118. static="true" final="true" visibility="public"
  18119. deprecated="not deprecated">
  18120. </field>
  18121. <doc>
  18122. <![CDATA[A Writable for MD5 hash values.]]>
  18123. </doc>
  18124. </class>
  18125. <!-- end class org.apache.hadoop.io.MD5Hash -->
  18126. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  18127. <class name="MultipleIOException" extends="java.io.IOException"
  18128. abstract="false"
  18129. static="false" final="false" visibility="public"
  18130. deprecated="not deprecated">
  18131. <method name="getExceptions" return="java.util.List"
  18132. abstract="false" native="false" synchronized="false"
  18133. static="false" final="false" visibility="public"
  18134. deprecated="not deprecated">
  18135. <doc>
  18136. <![CDATA[@return the underlying exceptions]]>
  18137. </doc>
  18138. </method>
  18139. <method name="createIOException" return="java.io.IOException"
  18140. abstract="false" native="false" synchronized="false"
  18141. static="true" final="false" visibility="public"
  18142. deprecated="not deprecated">
  18143. <param name="exceptions" type="java.util.List"/>
  18144. <doc>
  18145. <![CDATA[A convenient method to create an {@link IOException}.]]>
  18146. </doc>
  18147. </method>
  18148. <doc>
  18149. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  18150. </doc>
  18151. </class>
  18152. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  18153. <!-- start class org.apache.hadoop.io.NullWritable -->
  18154. <class name="NullWritable" extends="java.lang.Object"
  18155. abstract="false"
  18156. static="false" final="false" visibility="public"
  18157. deprecated="not deprecated">
  18158. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18159. <method name="get" return="org.apache.hadoop.io.NullWritable"
  18160. abstract="false" native="false" synchronized="false"
  18161. static="true" final="false" visibility="public"
  18162. deprecated="not deprecated">
  18163. <doc>
  18164. <![CDATA[Returns the single instance of this class.]]>
  18165. </doc>
  18166. </method>
  18167. <method name="toString" return="java.lang.String"
  18168. abstract="false" native="false" synchronized="false"
  18169. static="false" final="false" visibility="public"
  18170. deprecated="not deprecated">
  18171. </method>
  18172. <method name="hashCode" return="int"
  18173. abstract="false" native="false" synchronized="false"
  18174. static="false" final="false" visibility="public"
  18175. deprecated="not deprecated">
  18176. </method>
  18177. <method name="compareTo" return="int"
  18178. abstract="false" native="false" synchronized="false"
  18179. static="false" final="false" visibility="public"
  18180. deprecated="not deprecated">
  18181. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  18182. </method>
  18183. <method name="equals" return="boolean"
  18184. abstract="false" native="false" synchronized="false"
  18185. static="false" final="false" visibility="public"
  18186. deprecated="not deprecated">
  18187. <param name="other" type="java.lang.Object"/>
  18188. </method>
  18189. <method name="readFields"
  18190. abstract="false" native="false" synchronized="false"
  18191. static="false" final="false" visibility="public"
  18192. deprecated="not deprecated">
  18193. <param name="in" type="java.io.DataInput"/>
  18194. <exception name="IOException" type="java.io.IOException"/>
  18195. </method>
  18196. <method name="write"
  18197. abstract="false" native="false" synchronized="false"
  18198. static="false" final="false" visibility="public"
  18199. deprecated="not deprecated">
  18200. <param name="out" type="java.io.DataOutput"/>
  18201. <exception name="IOException" type="java.io.IOException"/>
  18202. </method>
  18203. <doc>
  18204. <![CDATA[Singleton Writable with no data.]]>
  18205. </doc>
  18206. </class>
  18207. <!-- end class org.apache.hadoop.io.NullWritable -->
  18208. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  18209. <class name="ObjectWritable" extends="java.lang.Object"
  18210. abstract="false"
  18211. static="false" final="false" visibility="public"
  18212. deprecated="not deprecated">
  18213. <implements name="org.apache.hadoop.io.Writable"/>
  18214. <implements name="org.apache.hadoop.conf.Configurable"/>
  18215. <constructor name="ObjectWritable"
  18216. static="false" final="false" visibility="public"
  18217. deprecated="not deprecated">
  18218. </constructor>
  18219. <constructor name="ObjectWritable" type="java.lang.Object"
  18220. static="false" final="false" visibility="public"
  18221. deprecated="not deprecated">
  18222. </constructor>
  18223. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  18224. static="false" final="false" visibility="public"
  18225. deprecated="not deprecated">
  18226. </constructor>
  18227. <method name="get" return="java.lang.Object"
  18228. abstract="false" native="false" synchronized="false"
  18229. static="false" final="false" visibility="public"
  18230. deprecated="not deprecated">
  18231. <doc>
  18232. <![CDATA[Return the instance, or null if none.]]>
  18233. </doc>
  18234. </method>
  18235. <method name="getDeclaredClass" return="java.lang.Class"
  18236. abstract="false" native="false" synchronized="false"
  18237. static="false" final="false" visibility="public"
  18238. deprecated="not deprecated">
  18239. <doc>
  18240. <![CDATA[Return the class this is meant to be.]]>
  18241. </doc>
  18242. </method>
  18243. <method name="set"
  18244. abstract="false" native="false" synchronized="false"
  18245. static="false" final="false" visibility="public"
  18246. deprecated="not deprecated">
  18247. <param name="instance" type="java.lang.Object"/>
  18248. <doc>
  18249. <![CDATA[Reset the instance.]]>
  18250. </doc>
  18251. </method>
  18252. <method name="toString" return="java.lang.String"
  18253. abstract="false" native="false" synchronized="false"
  18254. static="false" final="false" visibility="public"
  18255. deprecated="not deprecated">
  18256. </method>
  18257. <method name="readFields"
  18258. abstract="false" native="false" synchronized="false"
  18259. static="false" final="false" visibility="public"
  18260. deprecated="not deprecated">
  18261. <param name="in" type="java.io.DataInput"/>
  18262. <exception name="IOException" type="java.io.IOException"/>
  18263. </method>
  18264. <method name="write"
  18265. abstract="false" native="false" synchronized="false"
  18266. static="false" final="false" visibility="public"
  18267. deprecated="not deprecated">
  18268. <param name="out" type="java.io.DataOutput"/>
  18269. <exception name="IOException" type="java.io.IOException"/>
  18270. </method>
  18271. <method name="writeObject"
  18272. abstract="false" native="false" synchronized="false"
  18273. static="true" final="false" visibility="public"
  18274. deprecated="not deprecated">
  18275. <param name="out" type="java.io.DataOutput"/>
  18276. <param name="instance" type="java.lang.Object"/>
  18277. <param name="declaredClass" type="java.lang.Class"/>
  18278. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18279. <exception name="IOException" type="java.io.IOException"/>
  18280. <doc>
  18281. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  18282. the preceding.]]>
  18283. </doc>
  18284. </method>
  18285. <method name="writeObject"
  18286. abstract="false" native="false" synchronized="false"
  18287. static="true" final="false" visibility="public"
  18288. deprecated="not deprecated">
  18289. <param name="out" type="java.io.DataOutput"/>
  18290. <param name="instance" type="java.lang.Object"/>
  18291. <param name="declaredClass" type="java.lang.Class"/>
  18292. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18293. <param name="allowCompactArrays" type="boolean"/>
  18294. <exception name="IOException" type="java.io.IOException"/>
  18295. <doc>
  18296. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  18297. the preceding.
  18298. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  18299. usages. Set false for inter-cluster, File, and other persisted output
  18300. usages, to preserve the ability to interchange files with other clusters
  18301. that may not be running the same version of software. Sometime in ~2013
  18302. we can consider removing this parameter and always using the compact format.]]>
  18303. </doc>
  18304. </method>
  18305. <method name="readObject" return="java.lang.Object"
  18306. abstract="false" native="false" synchronized="false"
  18307. static="true" final="false" visibility="public"
  18308. deprecated="not deprecated">
  18309. <param name="in" type="java.io.DataInput"/>
  18310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18311. <exception name="IOException" type="java.io.IOException"/>
  18312. <doc>
  18313. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  18314. the preceding.]]>
  18315. </doc>
  18316. </method>
  18317. <method name="readObject" return="java.lang.Object"
  18318. abstract="false" native="false" synchronized="false"
  18319. static="true" final="false" visibility="public"
  18320. deprecated="not deprecated">
  18321. <param name="in" type="java.io.DataInput"/>
  18322. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  18323. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18324. <exception name="IOException" type="java.io.IOException"/>
  18325. <doc>
  18326. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  18327. the preceding.]]>
  18328. </doc>
  18329. </method>
  18330. <method name="loadClass" return="java.lang.Class"
  18331. abstract="false" native="false" synchronized="false"
  18332. static="true" final="false" visibility="public"
  18333. deprecated="not deprecated">
  18334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18335. <param name="className" type="java.lang.String"/>
  18336. <doc>
  18337. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  18338. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  18339. try load it directly.]]>
  18340. </doc>
  18341. </method>
  18342. <method name="setConf"
  18343. abstract="false" native="false" synchronized="false"
  18344. static="false" final="false" visibility="public"
  18345. deprecated="not deprecated">
  18346. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18347. </method>
  18348. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18349. abstract="false" native="false" synchronized="false"
  18350. static="false" final="false" visibility="public"
  18351. deprecated="not deprecated">
  18352. </method>
  18353. <doc>
  18354. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  18355. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  18356. </doc>
  18357. </class>
  18358. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  18359. <!-- start interface org.apache.hadoop.io.RawComparator -->
  18360. <interface name="RawComparator" abstract="true"
  18361. static="false" final="false" visibility="public"
  18362. deprecated="not deprecated">
  18363. <implements name="java.util.Comparator"/>
  18364. <method name="compare" return="int"
  18365. abstract="false" native="false" synchronized="false"
  18366. static="false" final="false" visibility="public"
  18367. deprecated="not deprecated">
  18368. <param name="b1" type="byte[]"/>
  18369. <param name="s1" type="int"/>
  18370. <param name="l1" type="int"/>
  18371. <param name="b2" type="byte[]"/>
  18372. <param name="s2" type="int"/>
  18373. <param name="l2" type="int"/>
  18374. <doc>
  18375. <![CDATA[Compare two objects in binary.
  18376. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  18377. @param b1 The first byte array.
  18378. @param s1 The position index in b1. The object under comparison's starting index.
  18379. @param l1 The length of the object in b1.
  18380. @param b2 The second byte array.
  18381. @param s2 The position index in b2. The object under comparison's starting index.
  18382. @param l2 The length of the object under comparison in b2.
  18383. @return An integer result of the comparison.]]>
  18384. </doc>
  18385. </method>
  18386. <doc>
  18387. <![CDATA[<p>
  18388. A {@link Comparator} that operates directly on byte representations of
  18389. objects.
  18390. </p>
  18391. @param <T>
  18392. @see DeserializerComparator]]>
  18393. </doc>
  18394. </interface>
  18395. <!-- end interface org.apache.hadoop.io.RawComparator -->
  18396. <!-- start class org.apache.hadoop.io.SequenceFile -->
  18397. <class name="SequenceFile" extends="java.lang.Object"
  18398. abstract="false"
  18399. static="false" final="false" visibility="public"
  18400. deprecated="not deprecated">
  18401. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  18402. abstract="false" native="false" synchronized="false"
  18403. static="true" final="false" visibility="public"
  18404. deprecated="not deprecated">
  18405. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  18406. <doc>
  18407. <![CDATA[Get the compression type for the reduce outputs
  18408. @param job the job config to look in
  18409. @return the kind of compression to use]]>
  18410. </doc>
  18411. </method>
  18412. <method name="setDefaultCompressionType"
  18413. abstract="false" native="false" synchronized="false"
  18414. static="true" final="false" visibility="public"
  18415. deprecated="not deprecated">
  18416. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  18417. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18418. <doc>
  18419. <![CDATA[Set the default compression type for sequence files.
  18420. @param job the configuration to modify
  18421. @param val the new compression type (none, block, record)]]>
  18422. </doc>
  18423. </method>
  18424. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18425. abstract="false" native="false" synchronized="false"
  18426. static="true" final="false" visibility="public"
  18427. deprecated="not deprecated">
  18428. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18429. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  18430. <exception name="IOException" type="java.io.IOException"/>
  18431. <doc>
  18432. <![CDATA[Create a new Writer with the given options.
  18433. @param conf the configuration to use
  18434. @param opts the options to create the file with
  18435. @return a new Writer
  18436. @throws IOException]]>
  18437. </doc>
  18438. </method>
  18439. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18440. abstract="false" native="false" synchronized="false"
  18441. static="true" final="false" visibility="public"
  18442. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18443. instead.">
  18444. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18445. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18446. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18447. <param name="keyClass" type="java.lang.Class"/>
  18448. <param name="valClass" type="java.lang.Class"/>
  18449. <exception name="IOException" type="java.io.IOException"/>
  18450. <doc>
  18451. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18452. @param fs The configured filesystem.
  18453. @param conf The configuration.
  18454. @param name The name of the file.
  18455. @param keyClass The 'key' type.
  18456. @param valClass The 'value' type.
  18457. @return Returns the handle to the constructed SequenceFile Writer.
  18458. @throws IOException
  18459. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18460. instead.]]>
  18461. </doc>
  18462. </method>
  18463. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18464. abstract="false" native="false" synchronized="false"
  18465. static="true" final="false" visibility="public"
  18466. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18467. instead.">
  18468. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18470. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18471. <param name="keyClass" type="java.lang.Class"/>
  18472. <param name="valClass" type="java.lang.Class"/>
  18473. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18474. <exception name="IOException" type="java.io.IOException"/>
  18475. <doc>
  18476. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18477. @param fs The configured filesystem.
  18478. @param conf The configuration.
  18479. @param name The name of the file.
  18480. @param keyClass The 'key' type.
  18481. @param valClass The 'value' type.
  18482. @param compressionType The compression type.
  18483. @return Returns the handle to the constructed SequenceFile Writer.
  18484. @throws IOException
  18485. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18486. instead.]]>
  18487. </doc>
  18488. </method>
  18489. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18490. abstract="false" native="false" synchronized="false"
  18491. static="true" final="false" visibility="public"
  18492. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18493. instead.">
  18494. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18495. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18496. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18497. <param name="keyClass" type="java.lang.Class"/>
  18498. <param name="valClass" type="java.lang.Class"/>
  18499. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18500. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18501. <exception name="IOException" type="java.io.IOException"/>
  18502. <doc>
  18503. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18504. @param fs The configured filesystem.
  18505. @param conf The configuration.
  18506. @param name The name of the file.
  18507. @param keyClass The 'key' type.
  18508. @param valClass The 'value' type.
  18509. @param compressionType The compression type.
  18510. @param progress The Progressable object to track progress.
  18511. @return Returns the handle to the constructed SequenceFile Writer.
  18512. @throws IOException
  18513. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18514. instead.]]>
  18515. </doc>
  18516. </method>
  18517. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18518. abstract="false" native="false" synchronized="false"
  18519. static="true" final="false" visibility="public"
  18520. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18521. instead.">
  18522. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18523. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18524. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18525. <param name="keyClass" type="java.lang.Class"/>
  18526. <param name="valClass" type="java.lang.Class"/>
  18527. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18528. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18529. <exception name="IOException" type="java.io.IOException"/>
  18530. <doc>
  18531. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18532. @param fs The configured filesystem.
  18533. @param conf The configuration.
  18534. @param name The name of the file.
  18535. @param keyClass The 'key' type.
  18536. @param valClass The 'value' type.
  18537. @param compressionType The compression type.
  18538. @param codec The compression codec.
  18539. @return Returns the handle to the constructed SequenceFile Writer.
  18540. @throws IOException
  18541. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18542. instead.]]>
  18543. </doc>
  18544. </method>
  18545. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18546. abstract="false" native="false" synchronized="false"
  18547. static="true" final="false" visibility="public"
  18548. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18549. instead.">
  18550. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18551. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18552. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18553. <param name="keyClass" type="java.lang.Class"/>
  18554. <param name="valClass" type="java.lang.Class"/>
  18555. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18556. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18557. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18558. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18559. <exception name="IOException" type="java.io.IOException"/>
  18560. <doc>
  18561. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18562. @param fs The configured filesystem.
  18563. @param conf The configuration.
  18564. @param name The name of the file.
  18565. @param keyClass The 'key' type.
  18566. @param valClass The 'value' type.
  18567. @param compressionType The compression type.
  18568. @param codec The compression codec.
  18569. @param progress The Progressable object to track progress.
  18570. @param metadata The metadata of the file.
  18571. @return Returns the handle to the constructed SequenceFile Writer.
  18572. @throws IOException
  18573. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18574. instead.]]>
  18575. </doc>
  18576. </method>
  18577. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18578. abstract="false" native="false" synchronized="false"
  18579. static="true" final="false" visibility="public"
  18580. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18581. instead.">
  18582. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18583. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18584. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18585. <param name="keyClass" type="java.lang.Class"/>
  18586. <param name="valClass" type="java.lang.Class"/>
  18587. <param name="bufferSize" type="int"/>
  18588. <param name="replication" type="short"/>
  18589. <param name="blockSize" type="long"/>
  18590. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18591. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18592. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18593. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18594. <exception name="IOException" type="java.io.IOException"/>
  18595. <doc>
  18596. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18597. @param fs The configured filesystem.
  18598. @param conf The configuration.
  18599. @param name The name of the file.
  18600. @param keyClass The 'key' type.
  18601. @param valClass The 'value' type.
  18602. @param bufferSize buffer size for the underlaying outputstream.
  18603. @param replication replication factor for the file.
  18604. @param blockSize block size for the file.
  18605. @param compressionType The compression type.
  18606. @param codec The compression codec.
  18607. @param progress The Progressable object to track progress.
  18608. @param metadata The metadata of the file.
  18609. @return Returns the handle to the constructed SequenceFile Writer.
  18610. @throws IOException
  18611. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18612. instead.]]>
  18613. </doc>
  18614. </method>
  18615. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18616. abstract="false" native="false" synchronized="false"
  18617. static="true" final="false" visibility="public"
  18618. deprecated="not deprecated">
  18619. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18620. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18621. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18622. <param name="keyClass" type="java.lang.Class"/>
  18623. <param name="valClass" type="java.lang.Class"/>
  18624. <param name="bufferSize" type="int"/>
  18625. <param name="replication" type="short"/>
  18626. <param name="blockSize" type="long"/>
  18627. <param name="createParent" type="boolean"/>
  18628. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18629. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18630. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18631. <exception name="IOException" type="java.io.IOException"/>
  18632. <doc>
  18633. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18634. @param fs The configured filesystem.
  18635. @param conf The configuration.
  18636. @param name The name of the file.
  18637. @param keyClass The 'key' type.
  18638. @param valClass The 'value' type.
  18639. @param bufferSize buffer size for the underlaying outputstream.
  18640. @param replication replication factor for the file.
  18641. @param blockSize block size for the file.
  18642. @param createParent create parent directory if non-existent
  18643. @param compressionType The compression type.
  18644. @param codec The compression codec.
  18645. @param metadata The metadata of the file.
  18646. @return Returns the handle to the constructed SequenceFile Writer.
  18647. @throws IOException]]>
  18648. </doc>
  18649. </method>
  18650. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18651. abstract="false" native="false" synchronized="false"
  18652. static="true" final="false" visibility="public"
  18653. deprecated="not deprecated">
  18654. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  18655. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18656. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18657. <param name="keyClass" type="java.lang.Class"/>
  18658. <param name="valClass" type="java.lang.Class"/>
  18659. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18660. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18661. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18662. <param name="createFlag" type="java.util.EnumSet"/>
  18663. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  18664. <exception name="IOException" type="java.io.IOException"/>
  18665. <doc>
  18666. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18667. @param fc The context for the specified file.
  18668. @param conf The configuration.
  18669. @param name The name of the file.
  18670. @param keyClass The 'key' type.
  18671. @param valClass The 'value' type.
  18672. @param compressionType The compression type.
  18673. @param codec The compression codec.
  18674. @param metadata The metadata of the file.
  18675. @param createFlag gives the semantics of create: overwrite, append etc.
  18676. @param opts file creation options; see {@link CreateOpts}.
  18677. @return Returns the handle to the constructed SequenceFile Writer.
  18678. @throws IOException]]>
  18679. </doc>
  18680. </method>
  18681. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18682. abstract="false" native="false" synchronized="false"
  18683. static="true" final="false" visibility="public"
  18684. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18685. instead.">
  18686. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18687. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18688. <param name="name" type="org.apache.hadoop.fs.Path"/>
  18689. <param name="keyClass" type="java.lang.Class"/>
  18690. <param name="valClass" type="java.lang.Class"/>
  18691. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18692. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18693. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18694. <exception name="IOException" type="java.io.IOException"/>
  18695. <doc>
  18696. <![CDATA[Construct the preferred type of SequenceFile Writer.
  18697. @param fs The configured filesystem.
  18698. @param conf The configuration.
  18699. @param name The name of the file.
  18700. @param keyClass The 'key' type.
  18701. @param valClass The 'value' type.
  18702. @param compressionType The compression type.
  18703. @param codec The compression codec.
  18704. @param progress The Progressable object to track progress.
  18705. @return Returns the handle to the constructed SequenceFile Writer.
  18706. @throws IOException
  18707. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18708. instead.]]>
  18709. </doc>
  18710. </method>
  18711. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18712. abstract="false" native="false" synchronized="false"
  18713. static="true" final="false" visibility="public"
  18714. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18715. instead.">
  18716. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18717. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  18718. <param name="keyClass" type="java.lang.Class"/>
  18719. <param name="valClass" type="java.lang.Class"/>
  18720. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18721. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18722. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  18723. <exception name="IOException" type="java.io.IOException"/>
  18724. <doc>
  18725. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  18726. @param conf The configuration.
  18727. @param out The stream on top which the writer is to be constructed.
  18728. @param keyClass The 'key' type.
  18729. @param valClass The 'value' type.
  18730. @param compressionType The compression type.
  18731. @param codec The compression codec.
  18732. @param metadata The metadata of the file.
  18733. @return Returns the handle to the constructed SequenceFile Writer.
  18734. @throws IOException
  18735. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18736. instead.]]>
  18737. </doc>
  18738. </method>
  18739. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  18740. abstract="false" native="false" synchronized="false"
  18741. static="true" final="false" visibility="public"
  18742. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  18743. instead.">
  18744. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18745. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  18746. <param name="keyClass" type="java.lang.Class"/>
  18747. <param name="valClass" type="java.lang.Class"/>
  18748. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18749. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  18750. <exception name="IOException" type="java.io.IOException"/>
  18751. <doc>
  18752. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  18753. @param conf The configuration.
  18754. @param out The stream on top which the writer is to be constructed.
  18755. @param keyClass The 'key' type.
  18756. @param valClass The 'value' type.
  18757. @param compressionType The compression type.
  18758. @param codec The compression codec.
  18759. @return Returns the handle to the constructed SequenceFile Writer.
  18760. @throws IOException
  18761. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  18762. instead.]]>
  18763. </doc>
  18764. </method>
  18765. <field name="SYNC_INTERVAL" type="int"
  18766. transient="false" volatile="false"
  18767. static="true" final="true" visibility="public"
  18768. deprecated="not deprecated">
  18769. <doc>
  18770. <![CDATA[The number of bytes between sync points.]]>
  18771. </doc>
  18772. </field>
  18773. <doc>
  18774. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  18775. pairs.
  18776. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  18777. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  18778. reading and sorting respectively.</p>
  18779. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  18780. {@link CompressionType} used to compress key/value pairs:
  18781. <ol>
  18782. <li>
  18783. <code>Writer</code> : Uncompressed records.
  18784. </li>
  18785. <li>
  18786. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  18787. values.
  18788. </li>
  18789. <li>
  18790. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  18791. values are collected in 'blocks'
  18792. separately and compressed. The size of
  18793. the 'block' is configurable.
  18794. </ol>
  18795. <p>The actual compression algorithm used to compress key and/or values can be
  18796. specified by using the appropriate {@link CompressionCodec}.</p>
  18797. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  18798. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  18799. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  18800. above <code>SequenceFile</code> formats.</p>
  18801. <h4 id="Formats">SequenceFile Formats</h4>
  18802. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  18803. depending on the <code>CompressionType</code> specified. All of them share a
  18804. <a href="#Header">common header</a> described below.
  18805. <h5 id="Header">SequenceFile Header</h5>
  18806. <ul>
  18807. <li>
  18808. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  18809. version number (e.g. SEQ4 or SEQ6)
  18810. </li>
  18811. <li>
  18812. keyClassName -key class
  18813. </li>
  18814. <li>
  18815. valueClassName - value class
  18816. </li>
  18817. <li>
  18818. compression - A boolean which specifies if compression is turned on for
  18819. keys/values in this file.
  18820. </li>
  18821. <li>
  18822. blockCompression - A boolean which specifies if block-compression is
  18823. turned on for keys/values in this file.
  18824. </li>
  18825. <li>
  18826. compression codec - <code>CompressionCodec</code> class which is used for
  18827. compression of keys and/or values (if compression is
  18828. enabled).
  18829. </li>
  18830. <li>
  18831. metadata - {@link Metadata} for this file.
  18832. </li>
  18833. <li>
  18834. sync - A sync marker to denote end of the header.
  18835. </li>
  18836. </ul>
  18837. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  18838. <ul>
  18839. <li>
  18840. <a href="#Header">Header</a>
  18841. </li>
  18842. <li>
  18843. Record
  18844. <ul>
  18845. <li>Record length</li>
  18846. <li>Key length</li>
  18847. <li>Key</li>
  18848. <li>Value</li>
  18849. </ul>
  18850. </li>
  18851. <li>
  18852. A sync-marker every few <code>100</code> bytes or so.
  18853. </li>
  18854. </ul>
  18855. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  18856. <ul>
  18857. <li>
  18858. <a href="#Header">Header</a>
  18859. </li>
  18860. <li>
  18861. Record
  18862. <ul>
  18863. <li>Record length</li>
  18864. <li>Key length</li>
  18865. <li>Key</li>
  18866. <li><i>Compressed</i> Value</li>
  18867. </ul>
  18868. </li>
  18869. <li>
  18870. A sync-marker every few <code>100</code> bytes or so.
  18871. </li>
  18872. </ul>
  18873. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  18874. <ul>
  18875. <li>
  18876. <a href="#Header">Header</a>
  18877. </li>
  18878. <li>
  18879. Record <i>Block</i>
  18880. <ul>
  18881. <li>Uncompressed number of records in the block</li>
  18882. <li>Compressed key-lengths block-size</li>
  18883. <li>Compressed key-lengths block</li>
  18884. <li>Compressed keys block-size</li>
  18885. <li>Compressed keys block</li>
  18886. <li>Compressed value-lengths block-size</li>
  18887. <li>Compressed value-lengths block</li>
  18888. <li>Compressed values block-size</li>
  18889. <li>Compressed values block</li>
  18890. </ul>
  18891. </li>
  18892. <li>
  18893. A sync-marker every block.
  18894. </li>
  18895. </ul>
  18896. <p>The compressed blocks of key lengths and value lengths consist of the
  18897. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  18898. format.</p>
  18899. @see CompressionCodec]]>
  18900. </doc>
  18901. </class>
  18902. <!-- end class org.apache.hadoop.io.SequenceFile -->
  18903. <!-- start class org.apache.hadoop.io.SetFile -->
  18904. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  18905. abstract="false"
  18906. static="false" final="false" visibility="public"
  18907. deprecated="not deprecated">
  18908. <constructor name="SetFile"
  18909. static="false" final="false" visibility="protected"
  18910. deprecated="not deprecated">
  18911. </constructor>
  18912. <doc>
  18913. <![CDATA[A file-based set of keys.]]>
  18914. </doc>
  18915. </class>
  18916. <!-- end class org.apache.hadoop.io.SetFile -->
  18917. <!-- start class org.apache.hadoop.io.ShortWritable -->
  18918. <class name="ShortWritable" extends="java.lang.Object"
  18919. abstract="false"
  18920. static="false" final="false" visibility="public"
  18921. deprecated="not deprecated">
  18922. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18923. <constructor name="ShortWritable"
  18924. static="false" final="false" visibility="public"
  18925. deprecated="not deprecated">
  18926. </constructor>
  18927. <constructor name="ShortWritable" type="short"
  18928. static="false" final="false" visibility="public"
  18929. deprecated="not deprecated">
  18930. </constructor>
  18931. <method name="set"
  18932. abstract="false" native="false" synchronized="false"
  18933. static="false" final="false" visibility="public"
  18934. deprecated="not deprecated">
  18935. <param name="value" type="short"/>
  18936. <doc>
  18937. <![CDATA[Set the value of this ShortWritable.]]>
  18938. </doc>
  18939. </method>
  18940. <method name="get" return="short"
  18941. abstract="false" native="false" synchronized="false"
  18942. static="false" final="false" visibility="public"
  18943. deprecated="not deprecated">
  18944. <doc>
  18945. <![CDATA[Return the value of this ShortWritable.]]>
  18946. </doc>
  18947. </method>
  18948. <method name="readFields"
  18949. abstract="false" native="false" synchronized="false"
  18950. static="false" final="false" visibility="public"
  18951. deprecated="not deprecated">
  18952. <param name="in" type="java.io.DataInput"/>
  18953. <exception name="IOException" type="java.io.IOException"/>
  18954. <doc>
  18955. <![CDATA[read the short value]]>
  18956. </doc>
  18957. </method>
  18958. <method name="write"
  18959. abstract="false" native="false" synchronized="false"
  18960. static="false" final="false" visibility="public"
  18961. deprecated="not deprecated">
  18962. <param name="out" type="java.io.DataOutput"/>
  18963. <exception name="IOException" type="java.io.IOException"/>
  18964. <doc>
  18965. <![CDATA[write short value]]>
  18966. </doc>
  18967. </method>
  18968. <method name="equals" return="boolean"
  18969. abstract="false" native="false" synchronized="false"
  18970. static="false" final="false" visibility="public"
  18971. deprecated="not deprecated">
  18972. <param name="o" type="java.lang.Object"/>
  18973. <doc>
  18974. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  18975. </doc>
  18976. </method>
  18977. <method name="hashCode" return="int"
  18978. abstract="false" native="false" synchronized="false"
  18979. static="false" final="false" visibility="public"
  18980. deprecated="not deprecated">
  18981. <doc>
  18982. <![CDATA[hash code]]>
  18983. </doc>
  18984. </method>
  18985. <method name="compareTo" return="int"
  18986. abstract="false" native="false" synchronized="false"
  18987. static="false" final="false" visibility="public"
  18988. deprecated="not deprecated">
  18989. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  18990. <doc>
  18991. <![CDATA[Compares two ShortWritable.]]>
  18992. </doc>
  18993. </method>
  18994. <method name="toString" return="java.lang.String"
  18995. abstract="false" native="false" synchronized="false"
  18996. static="false" final="false" visibility="public"
  18997. deprecated="not deprecated">
  18998. <doc>
  18999. <![CDATA[Short values in string format]]>
  19000. </doc>
  19001. </method>
  19002. <doc>
  19003. <![CDATA[A WritableComparable for shorts.]]>
  19004. </doc>
  19005. </class>
  19006. <!-- end class org.apache.hadoop.io.ShortWritable -->
  19007. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  19008. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  19009. abstract="false"
  19010. static="false" final="false" visibility="public"
  19011. deprecated="not deprecated">
  19012. <implements name="java.util.SortedMap"/>
  19013. <constructor name="SortedMapWritable"
  19014. static="false" final="false" visibility="public"
  19015. deprecated="not deprecated">
  19016. <doc>
  19017. <![CDATA[default constructor.]]>
  19018. </doc>
  19019. </constructor>
  19020. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  19021. static="false" final="false" visibility="public"
  19022. deprecated="not deprecated">
  19023. <doc>
  19024. <![CDATA[Copy constructor.
  19025. @param other the map to copy from]]>
  19026. </doc>
  19027. </constructor>
  19028. <method name="comparator" return="java.util.Comparator"
  19029. abstract="false" native="false" synchronized="false"
  19030. static="false" final="false" visibility="public"
  19031. deprecated="not deprecated">
  19032. </method>
  19033. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  19034. abstract="false" native="false" synchronized="false"
  19035. static="false" final="false" visibility="public"
  19036. deprecated="not deprecated">
  19037. </method>
  19038. <method name="headMap" return="java.util.SortedMap"
  19039. abstract="false" native="false" synchronized="false"
  19040. static="false" final="false" visibility="public"
  19041. deprecated="not deprecated">
  19042. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  19043. </method>
  19044. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  19045. abstract="false" native="false" synchronized="false"
  19046. static="false" final="false" visibility="public"
  19047. deprecated="not deprecated">
  19048. </method>
  19049. <method name="subMap" return="java.util.SortedMap"
  19050. abstract="false" native="false" synchronized="false"
  19051. static="false" final="false" visibility="public"
  19052. deprecated="not deprecated">
  19053. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  19054. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  19055. </method>
  19056. <method name="tailMap" return="java.util.SortedMap"
  19057. abstract="false" native="false" synchronized="false"
  19058. static="false" final="false" visibility="public"
  19059. deprecated="not deprecated">
  19060. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  19061. </method>
  19062. <method name="clear"
  19063. abstract="false" native="false" synchronized="false"
  19064. static="false" final="false" visibility="public"
  19065. deprecated="not deprecated">
  19066. </method>
  19067. <method name="containsKey" return="boolean"
  19068. abstract="false" native="false" synchronized="false"
  19069. static="false" final="false" visibility="public"
  19070. deprecated="not deprecated">
  19071. <param name="key" type="java.lang.Object"/>
  19072. </method>
  19073. <method name="containsValue" return="boolean"
  19074. abstract="false" native="false" synchronized="false"
  19075. static="false" final="false" visibility="public"
  19076. deprecated="not deprecated">
  19077. <param name="value" type="java.lang.Object"/>
  19078. </method>
  19079. <method name="entrySet" return="java.util.Set"
  19080. abstract="false" native="false" synchronized="false"
  19081. static="false" final="false" visibility="public"
  19082. deprecated="not deprecated">
  19083. </method>
  19084. <method name="get" return="org.apache.hadoop.io.Writable"
  19085. abstract="false" native="false" synchronized="false"
  19086. static="false" final="false" visibility="public"
  19087. deprecated="not deprecated">
  19088. <param name="key" type="java.lang.Object"/>
  19089. </method>
  19090. <method name="isEmpty" return="boolean"
  19091. abstract="false" native="false" synchronized="false"
  19092. static="false" final="false" visibility="public"
  19093. deprecated="not deprecated">
  19094. </method>
  19095. <method name="keySet" return="java.util.Set"
  19096. abstract="false" native="false" synchronized="false"
  19097. static="false" final="false" visibility="public"
  19098. deprecated="not deprecated">
  19099. </method>
  19100. <method name="put" return="org.apache.hadoop.io.Writable"
  19101. abstract="false" native="false" synchronized="false"
  19102. static="false" final="false" visibility="public"
  19103. deprecated="not deprecated">
  19104. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  19105. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19106. </method>
  19107. <method name="putAll"
  19108. abstract="false" native="false" synchronized="false"
  19109. static="false" final="false" visibility="public"
  19110. deprecated="not deprecated">
  19111. <param name="t" type="java.util.Map"/>
  19112. </method>
  19113. <method name="remove" return="org.apache.hadoop.io.Writable"
  19114. abstract="false" native="false" synchronized="false"
  19115. static="false" final="false" visibility="public"
  19116. deprecated="not deprecated">
  19117. <param name="key" type="java.lang.Object"/>
  19118. </method>
  19119. <method name="size" return="int"
  19120. abstract="false" native="false" synchronized="false"
  19121. static="false" final="false" visibility="public"
  19122. deprecated="not deprecated">
  19123. </method>
  19124. <method name="values" return="java.util.Collection"
  19125. abstract="false" native="false" synchronized="false"
  19126. static="false" final="false" visibility="public"
  19127. deprecated="not deprecated">
  19128. </method>
  19129. <method name="readFields"
  19130. abstract="false" native="false" synchronized="false"
  19131. static="false" final="false" visibility="public"
  19132. deprecated="not deprecated">
  19133. <param name="in" type="java.io.DataInput"/>
  19134. <exception name="IOException" type="java.io.IOException"/>
  19135. </method>
  19136. <method name="write"
  19137. abstract="false" native="false" synchronized="false"
  19138. static="false" final="false" visibility="public"
  19139. deprecated="not deprecated">
  19140. <param name="out" type="java.io.DataOutput"/>
  19141. <exception name="IOException" type="java.io.IOException"/>
  19142. </method>
  19143. <method name="equals" return="boolean"
  19144. abstract="false" native="false" synchronized="false"
  19145. static="false" final="false" visibility="public"
  19146. deprecated="not deprecated">
  19147. <param name="obj" type="java.lang.Object"/>
  19148. </method>
  19149. <method name="hashCode" return="int"
  19150. abstract="false" native="false" synchronized="false"
  19151. static="false" final="false" visibility="public"
  19152. deprecated="not deprecated">
  19153. </method>
  19154. <doc>
  19155. <![CDATA[A Writable SortedMap.]]>
  19156. </doc>
  19157. </class>
  19158. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  19159. <!-- start interface org.apache.hadoop.io.Stringifier -->
  19160. <interface name="Stringifier" abstract="true"
  19161. static="false" final="false" visibility="public"
  19162. deprecated="not deprecated">
  19163. <implements name="java.io.Closeable"/>
  19164. <method name="toString" return="java.lang.String"
  19165. abstract="false" native="false" synchronized="false"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <param name="obj" type="T"/>
  19169. <exception name="IOException" type="java.io.IOException"/>
  19170. <doc>
  19171. <![CDATA[Converts the object to a string representation
  19172. @param obj the object to convert
  19173. @return the string representation of the object
  19174. @throws IOException if the object cannot be converted]]>
  19175. </doc>
  19176. </method>
  19177. <method name="fromString" return="T"
  19178. abstract="false" native="false" synchronized="false"
  19179. static="false" final="false" visibility="public"
  19180. deprecated="not deprecated">
  19181. <param name="str" type="java.lang.String"/>
  19182. <exception name="IOException" type="java.io.IOException"/>
  19183. <doc>
  19184. <![CDATA[Restores the object from its string representation.
  19185. @param str the string representation of the object
  19186. @return restored object
  19187. @throws IOException if the object cannot be restored]]>
  19188. </doc>
  19189. </method>
  19190. <method name="close"
  19191. abstract="false" native="false" synchronized="false"
  19192. static="false" final="false" visibility="public"
  19193. deprecated="not deprecated">
  19194. <exception name="IOException" type="java.io.IOException"/>
  19195. <doc>
  19196. <![CDATA[Closes this object.
  19197. @throws IOException if an I/O error occurs]]>
  19198. </doc>
  19199. </method>
  19200. <doc>
  19201. <![CDATA[Stringifier interface offers two methods to convert an object
  19202. to a string representation and restore the object given its
  19203. string representation.
  19204. @param <T> the class of the objects to stringify]]>
  19205. </doc>
  19206. </interface>
  19207. <!-- end interface org.apache.hadoop.io.Stringifier -->
  19208. <!-- start class org.apache.hadoop.io.Text -->
  19209. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  19210. abstract="false"
  19211. static="false" final="false" visibility="public"
  19212. deprecated="not deprecated">
  19213. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19214. <constructor name="Text"
  19215. static="false" final="false" visibility="public"
  19216. deprecated="not deprecated">
  19217. </constructor>
  19218. <constructor name="Text" type="java.lang.String"
  19219. static="false" final="false" visibility="public"
  19220. deprecated="not deprecated">
  19221. <doc>
  19222. <![CDATA[Construct from a string.]]>
  19223. </doc>
  19224. </constructor>
  19225. <constructor name="Text" type="org.apache.hadoop.io.Text"
  19226. static="false" final="false" visibility="public"
  19227. deprecated="not deprecated">
  19228. <doc>
  19229. <![CDATA[Construct from another text.]]>
  19230. </doc>
  19231. </constructor>
  19232. <constructor name="Text" type="byte[]"
  19233. static="false" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. <doc>
  19236. <![CDATA[Construct from a byte array.]]>
  19237. </doc>
  19238. </constructor>
  19239. <method name="copyBytes" return="byte[]"
  19240. abstract="false" native="false" synchronized="false"
  19241. static="false" final="false" visibility="public"
  19242. deprecated="not deprecated">
  19243. <doc>
  19244. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  19245. See {@link #getBytes()} for faster access to the underlying array.]]>
  19246. </doc>
  19247. </method>
  19248. <method name="getBytes" return="byte[]"
  19249. abstract="false" native="false" synchronized="false"
  19250. static="false" final="false" visibility="public"
  19251. deprecated="not deprecated">
  19252. <doc>
  19253. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  19254. valid. Please use {@link #copyBytes()} if you
  19255. need the returned array to be precisely the length of the data.]]>
  19256. </doc>
  19257. </method>
  19258. <method name="getLength" return="int"
  19259. abstract="false" native="false" synchronized="false"
  19260. static="false" final="false" visibility="public"
  19261. deprecated="not deprecated">
  19262. <doc>
  19263. <![CDATA[Returns the number of bytes in the byte array]]>
  19264. </doc>
  19265. </method>
  19266. <method name="charAt" return="int"
  19267. abstract="false" native="false" synchronized="false"
  19268. static="false" final="false" visibility="public"
  19269. deprecated="not deprecated">
  19270. <param name="position" type="int"/>
  19271. <doc>
  19272. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  19273. for the character at <code>position</code>. Note that this
  19274. method avoids using the converter or doing String instantiation
  19275. @return the Unicode scalar value at position or -1
  19276. if the position is invalid or points to a
  19277. trailing byte]]>
  19278. </doc>
  19279. </method>
  19280. <method name="find" return="int"
  19281. abstract="false" native="false" synchronized="false"
  19282. static="false" final="false" visibility="public"
  19283. deprecated="not deprecated">
  19284. <param name="what" type="java.lang.String"/>
  19285. </method>
  19286. <method name="find" return="int"
  19287. abstract="false" native="false" synchronized="false"
  19288. static="false" final="false" visibility="public"
  19289. deprecated="not deprecated">
  19290. <param name="what" type="java.lang.String"/>
  19291. <param name="start" type="int"/>
  19292. <doc>
  19293. <![CDATA[Finds any occurence of <code>what</code> in the backing
  19294. buffer, starting as position <code>start</code>. The starting
  19295. position is measured in bytes and the return value is in
  19296. terms of byte position in the buffer. The backing buffer is
  19297. not converted to a string for this operation.
  19298. @return byte position of the first occurence of the search
  19299. string in the UTF-8 buffer or -1 if not found]]>
  19300. </doc>
  19301. </method>
  19302. <method name="set"
  19303. abstract="false" native="false" synchronized="false"
  19304. static="false" final="false" visibility="public"
  19305. deprecated="not deprecated">
  19306. <param name="string" type="java.lang.String"/>
  19307. <doc>
  19308. <![CDATA[Set to contain the contents of a string.]]>
  19309. </doc>
  19310. </method>
  19311. <method name="set"
  19312. abstract="false" native="false" synchronized="false"
  19313. static="false" final="false" visibility="public"
  19314. deprecated="not deprecated">
  19315. <param name="utf8" type="byte[]"/>
  19316. <doc>
  19317. <![CDATA[Set to a utf8 byte array]]>
  19318. </doc>
  19319. </method>
  19320. <method name="set"
  19321. abstract="false" native="false" synchronized="false"
  19322. static="false" final="false" visibility="public"
  19323. deprecated="not deprecated">
  19324. <param name="other" type="org.apache.hadoop.io.Text"/>
  19325. <doc>
  19326. <![CDATA[copy a text.]]>
  19327. </doc>
  19328. </method>
  19329. <method name="set"
  19330. abstract="false" native="false" synchronized="false"
  19331. static="false" final="false" visibility="public"
  19332. deprecated="not deprecated">
  19333. <param name="utf8" type="byte[]"/>
  19334. <param name="start" type="int"/>
  19335. <param name="len" type="int"/>
  19336. <doc>
  19337. <![CDATA[Set the Text to range of bytes
  19338. @param utf8 the data to copy from
  19339. @param start the first position of the new string
  19340. @param len the number of bytes of the new string]]>
  19341. </doc>
  19342. </method>
  19343. <method name="append"
  19344. abstract="false" native="false" synchronized="false"
  19345. static="false" final="false" visibility="public"
  19346. deprecated="not deprecated">
  19347. <param name="utf8" type="byte[]"/>
  19348. <param name="start" type="int"/>
  19349. <param name="len" type="int"/>
  19350. <doc>
  19351. <![CDATA[Append a range of bytes to the end of the given text
  19352. @param utf8 the data to copy from
  19353. @param start the first position to append from utf8
  19354. @param len the number of bytes to append]]>
  19355. </doc>
  19356. </method>
  19357. <method name="clear"
  19358. abstract="false" native="false" synchronized="false"
  19359. static="false" final="false" visibility="public"
  19360. deprecated="not deprecated">
  19361. <doc>
  19362. <![CDATA[Clear the string to empty.
  19363. <em>Note</em>: For performance reasons, this call does not clear the
  19364. underlying byte array that is retrievable via {@link #getBytes()}.
  19365. In order to free the byte-array memory, call {@link #set(byte[])}
  19366. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  19367. </doc>
  19368. </method>
  19369. <method name="toString" return="java.lang.String"
  19370. abstract="false" native="false" synchronized="false"
  19371. static="false" final="false" visibility="public"
  19372. deprecated="not deprecated">
  19373. <doc>
  19374. <![CDATA[Convert text back to string
  19375. @see java.lang.Object#toString()]]>
  19376. </doc>
  19377. </method>
  19378. <method name="readFields"
  19379. abstract="false" native="false" synchronized="false"
  19380. static="false" final="false" visibility="public"
  19381. deprecated="not deprecated">
  19382. <param name="in" type="java.io.DataInput"/>
  19383. <exception name="IOException" type="java.io.IOException"/>
  19384. <doc>
  19385. <![CDATA[deserialize]]>
  19386. </doc>
  19387. </method>
  19388. <method name="readFields"
  19389. abstract="false" native="false" synchronized="false"
  19390. static="false" final="false" visibility="public"
  19391. deprecated="not deprecated">
  19392. <param name="in" type="java.io.DataInput"/>
  19393. <param name="maxLength" type="int"/>
  19394. <exception name="IOException" type="java.io.IOException"/>
  19395. </method>
  19396. <method name="skip"
  19397. abstract="false" native="false" synchronized="false"
  19398. static="true" final="false" visibility="public"
  19399. deprecated="not deprecated">
  19400. <param name="in" type="java.io.DataInput"/>
  19401. <exception name="IOException" type="java.io.IOException"/>
  19402. <doc>
  19403. <![CDATA[Skips over one Text in the input.]]>
  19404. </doc>
  19405. </method>
  19406. <method name="readWithKnownLength"
  19407. abstract="false" native="false" synchronized="false"
  19408. static="false" final="false" visibility="public"
  19409. deprecated="not deprecated">
  19410. <param name="in" type="java.io.DataInput"/>
  19411. <param name="len" type="int"/>
  19412. <exception name="IOException" type="java.io.IOException"/>
  19413. <doc>
  19414. <![CDATA[Read a Text object whose length is already known.
  19415. This allows creating Text from a stream which uses a different serialization
  19416. format.]]>
  19417. </doc>
  19418. </method>
  19419. <method name="write"
  19420. abstract="false" native="false" synchronized="false"
  19421. static="false" final="false" visibility="public"
  19422. deprecated="not deprecated">
  19423. <param name="out" type="java.io.DataOutput"/>
  19424. <exception name="IOException" type="java.io.IOException"/>
  19425. <doc>
  19426. <![CDATA[serialize
  19427. write this object to out
  19428. length uses zero-compressed encoding
  19429. @see Writable#write(DataOutput)]]>
  19430. </doc>
  19431. </method>
  19432. <method name="write"
  19433. abstract="false" native="false" synchronized="false"
  19434. static="false" final="false" visibility="public"
  19435. deprecated="not deprecated">
  19436. <param name="out" type="java.io.DataOutput"/>
  19437. <param name="maxLength" type="int"/>
  19438. <exception name="IOException" type="java.io.IOException"/>
  19439. </method>
  19440. <method name="equals" return="boolean"
  19441. abstract="false" native="false" synchronized="false"
  19442. static="false" final="false" visibility="public"
  19443. deprecated="not deprecated">
  19444. <param name="o" type="java.lang.Object"/>
  19445. <doc>
  19446. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  19447. </doc>
  19448. </method>
  19449. <method name="hashCode" return="int"
  19450. abstract="false" native="false" synchronized="false"
  19451. static="false" final="false" visibility="public"
  19452. deprecated="not deprecated">
  19453. </method>
  19454. <method name="decode" return="java.lang.String"
  19455. abstract="false" native="false" synchronized="false"
  19456. static="true" final="false" visibility="public"
  19457. deprecated="not deprecated">
  19458. <param name="utf8" type="byte[]"/>
  19459. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19460. <doc>
  19461. <![CDATA[Converts the provided byte array to a String using the
  19462. UTF-8 encoding. If the input is malformed,
  19463. replace by a default value.]]>
  19464. </doc>
  19465. </method>
  19466. <method name="decode" return="java.lang.String"
  19467. abstract="false" native="false" synchronized="false"
  19468. static="true" final="false" visibility="public"
  19469. deprecated="not deprecated">
  19470. <param name="utf8" type="byte[]"/>
  19471. <param name="start" type="int"/>
  19472. <param name="length" type="int"/>
  19473. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19474. </method>
  19475. <method name="decode" return="java.lang.String"
  19476. abstract="false" native="false" synchronized="false"
  19477. static="true" final="false" visibility="public"
  19478. deprecated="not deprecated">
  19479. <param name="utf8" type="byte[]"/>
  19480. <param name="start" type="int"/>
  19481. <param name="length" type="int"/>
  19482. <param name="replace" type="boolean"/>
  19483. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19484. <doc>
  19485. <![CDATA[Converts the provided byte array to a String using the
  19486. UTF-8 encoding. If <code>replace</code> is true, then
  19487. malformed input is replaced with the
  19488. substitution character, which is U+FFFD. Otherwise the
  19489. method throws a MalformedInputException.]]>
  19490. </doc>
  19491. </method>
  19492. <method name="encode" return="java.nio.ByteBuffer"
  19493. abstract="false" native="false" synchronized="false"
  19494. static="true" final="false" visibility="public"
  19495. deprecated="not deprecated">
  19496. <param name="string" type="java.lang.String"/>
  19497. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19498. <doc>
  19499. <![CDATA[Converts the provided String to bytes using the
  19500. UTF-8 encoding. If the input is malformed,
  19501. invalid chars are replaced by a default value.
  19502. @return ByteBuffer: bytes stores at ByteBuffer.array()
  19503. and length is ByteBuffer.limit()]]>
  19504. </doc>
  19505. </method>
  19506. <method name="encode" return="java.nio.ByteBuffer"
  19507. abstract="false" native="false" synchronized="false"
  19508. static="true" final="false" visibility="public"
  19509. deprecated="not deprecated">
  19510. <param name="string" type="java.lang.String"/>
  19511. <param name="replace" type="boolean"/>
  19512. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  19513. <doc>
  19514. <![CDATA[Converts the provided String to bytes using the
  19515. UTF-8 encoding. If <code>replace</code> is true, then
  19516. malformed input is replaced with the
  19517. substitution character, which is U+FFFD. Otherwise the
  19518. method throws a MalformedInputException.
  19519. @return ByteBuffer: bytes stores at ByteBuffer.array()
  19520. and length is ByteBuffer.limit()]]>
  19521. </doc>
  19522. </method>
  19523. <method name="readString" return="java.lang.String"
  19524. abstract="false" native="false" synchronized="false"
  19525. static="true" final="false" visibility="public"
  19526. deprecated="not deprecated">
  19527. <param name="in" type="java.io.DataInput"/>
  19528. <exception name="IOException" type="java.io.IOException"/>
  19529. <doc>
  19530. <![CDATA[Read a UTF8 encoded string from in]]>
  19531. </doc>
  19532. </method>
  19533. <method name="readString" return="java.lang.String"
  19534. abstract="false" native="false" synchronized="false"
  19535. static="true" final="false" visibility="public"
  19536. deprecated="not deprecated">
  19537. <param name="in" type="java.io.DataInput"/>
  19538. <param name="maxLength" type="int"/>
  19539. <exception name="IOException" type="java.io.IOException"/>
  19540. <doc>
  19541. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  19542. </doc>
  19543. </method>
  19544. <method name="writeString" return="int"
  19545. abstract="false" native="false" synchronized="false"
  19546. static="true" final="false" visibility="public"
  19547. deprecated="not deprecated">
  19548. <param name="out" type="java.io.DataOutput"/>
  19549. <param name="s" type="java.lang.String"/>
  19550. <exception name="IOException" type="java.io.IOException"/>
  19551. <doc>
  19552. <![CDATA[Write a UTF8 encoded string to out]]>
  19553. </doc>
  19554. </method>
  19555. <method name="writeString" return="int"
  19556. abstract="false" native="false" synchronized="false"
  19557. static="true" final="false" visibility="public"
  19558. deprecated="not deprecated">
  19559. <param name="out" type="java.io.DataOutput"/>
  19560. <param name="s" type="java.lang.String"/>
  19561. <param name="maxLength" type="int"/>
  19562. <exception name="IOException" type="java.io.IOException"/>
  19563. <doc>
  19564. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  19565. </doc>
  19566. </method>
  19567. <method name="validateUTF8"
  19568. abstract="false" native="false" synchronized="false"
  19569. static="true" final="false" visibility="public"
  19570. deprecated="not deprecated">
  19571. <param name="utf8" type="byte[]"/>
  19572. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  19573. <doc>
  19574. <![CDATA[Check if a byte array contains valid utf-8
  19575. @param utf8 byte array
  19576. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  19577. </doc>
  19578. </method>
  19579. <method name="validateUTF8"
  19580. abstract="false" native="false" synchronized="false"
  19581. static="true" final="false" visibility="public"
  19582. deprecated="not deprecated">
  19583. <param name="utf8" type="byte[]"/>
  19584. <param name="start" type="int"/>
  19585. <param name="len" type="int"/>
  19586. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  19587. <doc>
  19588. <![CDATA[Check to see if a byte array is valid utf-8
  19589. @param utf8 the array of bytes
  19590. @param start the offset of the first byte in the array
  19591. @param len the length of the byte sequence
  19592. @throws MalformedInputException if the byte array contains invalid bytes]]>
  19593. </doc>
  19594. </method>
  19595. <method name="bytesToCodePoint" return="int"
  19596. abstract="false" native="false" synchronized="false"
  19597. static="true" final="false" visibility="public"
  19598. deprecated="not deprecated">
  19599. <param name="bytes" type="java.nio.ByteBuffer"/>
  19600. <doc>
  19601. <![CDATA[Returns the next code point at the current position in
  19602. the buffer. The buffer's position will be incremented.
  19603. Any mark set on this buffer will be changed by this method!]]>
  19604. </doc>
  19605. </method>
  19606. <method name="utf8Length" return="int"
  19607. abstract="false" native="false" synchronized="false"
  19608. static="true" final="false" visibility="public"
  19609. deprecated="not deprecated">
  19610. <param name="string" type="java.lang.String"/>
  19611. <doc>
  19612. <![CDATA[For the given string, returns the number of UTF-8 bytes
  19613. required to encode the string.
  19614. @param string text to encode
  19615. @return number of UTF-8 bytes required to encode]]>
  19616. </doc>
  19617. </method>
  19618. <field name="DEFAULT_MAX_LEN" type="int"
  19619. transient="false" volatile="false"
  19620. static="true" final="true" visibility="public"
  19621. deprecated="not deprecated">
  19622. </field>
  19623. <doc>
  19624. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  19625. to serialize, deserialize, and compare texts at byte level. The type of
  19626. length is integer and is serialized using zero-compressed format. <p>In
  19627. addition, it provides methods for string traversal without converting the
  19628. byte array to a string. <p>Also includes utilities for
  19629. serializing/deserialing a string, coding/decoding a string, checking if a
  19630. byte array contains valid UTF8 code, calculating the length of an encoded
  19631. string.]]>
  19632. </doc>
  19633. </class>
  19634. <!-- end class org.apache.hadoop.io.Text -->
  19635. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  19636. <class name="TwoDArrayWritable" extends="java.lang.Object"
  19637. abstract="false"
  19638. static="false" final="false" visibility="public"
  19639. deprecated="not deprecated">
  19640. <implements name="org.apache.hadoop.io.Writable"/>
  19641. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  19642. static="false" final="false" visibility="public"
  19643. deprecated="not deprecated">
  19644. </constructor>
  19645. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  19646. static="false" final="false" visibility="public"
  19647. deprecated="not deprecated">
  19648. </constructor>
  19649. <method name="toArray" return="java.lang.Object"
  19650. abstract="false" native="false" synchronized="false"
  19651. static="false" final="false" visibility="public"
  19652. deprecated="not deprecated">
  19653. </method>
  19654. <method name="set"
  19655. abstract="false" native="false" synchronized="false"
  19656. static="false" final="false" visibility="public"
  19657. deprecated="not deprecated">
  19658. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  19659. </method>
  19660. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  19661. abstract="false" native="false" synchronized="false"
  19662. static="false" final="false" visibility="public"
  19663. deprecated="not deprecated">
  19664. </method>
  19665. <method name="readFields"
  19666. abstract="false" native="false" synchronized="false"
  19667. static="false" final="false" visibility="public"
  19668. deprecated="not deprecated">
  19669. <param name="in" type="java.io.DataInput"/>
  19670. <exception name="IOException" type="java.io.IOException"/>
  19671. </method>
  19672. <method name="write"
  19673. abstract="false" native="false" synchronized="false"
  19674. static="false" final="false" visibility="public"
  19675. deprecated="not deprecated">
  19676. <param name="out" type="java.io.DataOutput"/>
  19677. <exception name="IOException" type="java.io.IOException"/>
  19678. </method>
  19679. <doc>
  19680. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  19681. </doc>
  19682. </class>
  19683. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  19684. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  19685. <class name="VersionedWritable" extends="java.lang.Object"
  19686. abstract="true"
  19687. static="false" final="false" visibility="public"
  19688. deprecated="not deprecated">
  19689. <implements name="org.apache.hadoop.io.Writable"/>
  19690. <constructor name="VersionedWritable"
  19691. static="false" final="false" visibility="public"
  19692. deprecated="not deprecated">
  19693. </constructor>
  19694. <method name="getVersion" return="byte"
  19695. abstract="true" native="false" synchronized="false"
  19696. static="false" final="false" visibility="public"
  19697. deprecated="not deprecated">
  19698. <doc>
  19699. <![CDATA[Return the version number of the current implementation.]]>
  19700. </doc>
  19701. </method>
  19702. <method name="write"
  19703. abstract="false" native="false" synchronized="false"
  19704. static="false" final="false" visibility="public"
  19705. deprecated="not deprecated">
  19706. <param name="out" type="java.io.DataOutput"/>
  19707. <exception name="IOException" type="java.io.IOException"/>
  19708. </method>
  19709. <method name="readFields"
  19710. abstract="false" native="false" synchronized="false"
  19711. static="false" final="false" visibility="public"
  19712. deprecated="not deprecated">
  19713. <param name="in" type="java.io.DataInput"/>
  19714. <exception name="IOException" type="java.io.IOException"/>
  19715. </method>
  19716. <doc>
  19717. <![CDATA[A base class for Writables that provides version checking.
  19718. <p>This is useful when a class may evolve, so that instances written by the
  19719. old version of the class may still be processed by the new version. To
  19720. handle this situation, {@link #readFields(DataInput)}
  19721. implementations should catch {@link VersionMismatchException}.]]>
  19722. </doc>
  19723. </class>
  19724. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  19725. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  19726. <class name="VersionMismatchException" extends="java.io.IOException"
  19727. abstract="false"
  19728. static="false" final="false" visibility="public"
  19729. deprecated="not deprecated">
  19730. <constructor name="VersionMismatchException" type="byte, byte"
  19731. static="false" final="false" visibility="public"
  19732. deprecated="not deprecated">
  19733. </constructor>
  19734. <method name="toString" return="java.lang.String"
  19735. abstract="false" native="false" synchronized="false"
  19736. static="false" final="false" visibility="public"
  19737. deprecated="not deprecated">
  19738. <doc>
  19739. <![CDATA[Returns a string representation of this object.]]>
  19740. </doc>
  19741. </method>
  19742. <doc>
  19743. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  19744. version of an object being read does not match the current implementation
  19745. version as returned by {@link VersionedWritable#getVersion()}.]]>
  19746. </doc>
  19747. </class>
  19748. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  19749. <!-- start class org.apache.hadoop.io.VIntWritable -->
  19750. <class name="VIntWritable" extends="java.lang.Object"
  19751. abstract="false"
  19752. static="false" final="false" visibility="public"
  19753. deprecated="not deprecated">
  19754. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19755. <constructor name="VIntWritable"
  19756. static="false" final="false" visibility="public"
  19757. deprecated="not deprecated">
  19758. </constructor>
  19759. <constructor name="VIntWritable" type="int"
  19760. static="false" final="false" visibility="public"
  19761. deprecated="not deprecated">
  19762. </constructor>
  19763. <method name="set"
  19764. abstract="false" native="false" synchronized="false"
  19765. static="false" final="false" visibility="public"
  19766. deprecated="not deprecated">
  19767. <param name="value" type="int"/>
  19768. <doc>
  19769. <![CDATA[Set the value of this VIntWritable.]]>
  19770. </doc>
  19771. </method>
  19772. <method name="get" return="int"
  19773. abstract="false" native="false" synchronized="false"
  19774. static="false" final="false" visibility="public"
  19775. deprecated="not deprecated">
  19776. <doc>
  19777. <![CDATA[Return the value of this VIntWritable.]]>
  19778. </doc>
  19779. </method>
  19780. <method name="readFields"
  19781. abstract="false" native="false" synchronized="false"
  19782. static="false" final="false" visibility="public"
  19783. deprecated="not deprecated">
  19784. <param name="in" type="java.io.DataInput"/>
  19785. <exception name="IOException" type="java.io.IOException"/>
  19786. </method>
  19787. <method name="write"
  19788. abstract="false" native="false" synchronized="false"
  19789. static="false" final="false" visibility="public"
  19790. deprecated="not deprecated">
  19791. <param name="out" type="java.io.DataOutput"/>
  19792. <exception name="IOException" type="java.io.IOException"/>
  19793. </method>
  19794. <method name="equals" return="boolean"
  19795. abstract="false" native="false" synchronized="false"
  19796. static="false" final="false" visibility="public"
  19797. deprecated="not deprecated">
  19798. <param name="o" type="java.lang.Object"/>
  19799. <doc>
  19800. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  19801. </doc>
  19802. </method>
  19803. <method name="hashCode" return="int"
  19804. abstract="false" native="false" synchronized="false"
  19805. static="false" final="false" visibility="public"
  19806. deprecated="not deprecated">
  19807. </method>
  19808. <method name="compareTo" return="int"
  19809. abstract="false" native="false" synchronized="false"
  19810. static="false" final="false" visibility="public"
  19811. deprecated="not deprecated">
  19812. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  19813. <doc>
  19814. <![CDATA[Compares two VIntWritables.]]>
  19815. </doc>
  19816. </method>
  19817. <method name="toString" return="java.lang.String"
  19818. abstract="false" native="false" synchronized="false"
  19819. static="false" final="false" visibility="public"
  19820. deprecated="not deprecated">
  19821. </method>
  19822. <doc>
  19823. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  19824. Such values take between one and five bytes. Smaller values take fewer bytes.
  19825. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  19826. </doc>
  19827. </class>
  19828. <!-- end class org.apache.hadoop.io.VIntWritable -->
  19829. <!-- start class org.apache.hadoop.io.VLongWritable -->
  19830. <class name="VLongWritable" extends="java.lang.Object"
  19831. abstract="false"
  19832. static="false" final="false" visibility="public"
  19833. deprecated="not deprecated">
  19834. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19835. <constructor name="VLongWritable"
  19836. static="false" final="false" visibility="public"
  19837. deprecated="not deprecated">
  19838. </constructor>
  19839. <constructor name="VLongWritable" type="long"
  19840. static="false" final="false" visibility="public"
  19841. deprecated="not deprecated">
  19842. </constructor>
  19843. <method name="set"
  19844. abstract="false" native="false" synchronized="false"
  19845. static="false" final="false" visibility="public"
  19846. deprecated="not deprecated">
  19847. <param name="value" type="long"/>
  19848. <doc>
  19849. <![CDATA[Set the value of this LongWritable.]]>
  19850. </doc>
  19851. </method>
  19852. <method name="get" return="long"
  19853. abstract="false" native="false" synchronized="false"
  19854. static="false" final="false" visibility="public"
  19855. deprecated="not deprecated">
  19856. <doc>
  19857. <![CDATA[Return the value of this LongWritable.]]>
  19858. </doc>
  19859. </method>
  19860. <method name="readFields"
  19861. abstract="false" native="false" synchronized="false"
  19862. static="false" final="false" visibility="public"
  19863. deprecated="not deprecated">
  19864. <param name="in" type="java.io.DataInput"/>
  19865. <exception name="IOException" type="java.io.IOException"/>
  19866. </method>
  19867. <method name="write"
  19868. abstract="false" native="false" synchronized="false"
  19869. static="false" final="false" visibility="public"
  19870. deprecated="not deprecated">
  19871. <param name="out" type="java.io.DataOutput"/>
  19872. <exception name="IOException" type="java.io.IOException"/>
  19873. </method>
  19874. <method name="equals" return="boolean"
  19875. abstract="false" native="false" synchronized="false"
  19876. static="false" final="false" visibility="public"
  19877. deprecated="not deprecated">
  19878. <param name="o" type="java.lang.Object"/>
  19879. <doc>
  19880. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  19881. </doc>
  19882. </method>
  19883. <method name="hashCode" return="int"
  19884. abstract="false" native="false" synchronized="false"
  19885. static="false" final="false" visibility="public"
  19886. deprecated="not deprecated">
  19887. </method>
  19888. <method name="compareTo" return="int"
  19889. abstract="false" native="false" synchronized="false"
  19890. static="false" final="false" visibility="public"
  19891. deprecated="not deprecated">
  19892. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  19893. <doc>
  19894. <![CDATA[Compares two VLongWritables.]]>
  19895. </doc>
  19896. </method>
  19897. <method name="toString" return="java.lang.String"
  19898. abstract="false" native="false" synchronized="false"
  19899. static="false" final="false" visibility="public"
  19900. deprecated="not deprecated">
  19901. </method>
  19902. <doc>
  19903. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  19904. between one and five bytes. Smaller values take fewer bytes.
  19905. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  19906. </doc>
  19907. </class>
  19908. <!-- end class org.apache.hadoop.io.VLongWritable -->
  19909. <!-- start interface org.apache.hadoop.io.Writable -->
  19910. <interface name="Writable" abstract="true"
  19911. static="false" final="false" visibility="public"
  19912. deprecated="not deprecated">
  19913. <method name="write"
  19914. abstract="false" native="false" synchronized="false"
  19915. static="false" final="false" visibility="public"
  19916. deprecated="not deprecated">
  19917. <param name="out" type="java.io.DataOutput"/>
  19918. <exception name="IOException" type="java.io.IOException"/>
  19919. <doc>
  19920. <![CDATA[Serialize the fields of this object to <code>out</code>.
  19921. @param out <code>DataOuput</code> to serialize this object into.
  19922. @throws IOException]]>
  19923. </doc>
  19924. </method>
  19925. <method name="readFields"
  19926. abstract="false" native="false" synchronized="false"
  19927. static="false" final="false" visibility="public"
  19928. deprecated="not deprecated">
  19929. <param name="in" type="java.io.DataInput"/>
  19930. <exception name="IOException" type="java.io.IOException"/>
  19931. <doc>
  19932. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  19933. <p>For efficiency, implementations should attempt to re-use storage in the
  19934. existing object where possible.</p>
  19935. @param in <code>DataInput</code> to deseriablize this object from.
  19936. @throws IOException]]>
  19937. </doc>
  19938. </method>
  19939. <doc>
  19940. <![CDATA[A serializable object which implements a simple, efficient, serialization
  19941. protocol, based on {@link DataInput} and {@link DataOutput}.
  19942. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  19943. framework implements this interface.</p>
  19944. <p>Implementations typically implement a static <code>read(DataInput)</code>
  19945. method which constructs a new instance, calls {@link #readFields(DataInput)}
  19946. and returns the instance.</p>
  19947. <p>Example:</p>
  19948. <p><blockquote><pre>
  19949. public class MyWritable implements Writable {
  19950. // Some data
  19951. private int counter;
  19952. private long timestamp;
  19953. public void write(DataOutput out) throws IOException {
  19954. out.writeInt(counter);
  19955. out.writeLong(timestamp);
  19956. }
  19957. public void readFields(DataInput in) throws IOException {
  19958. counter = in.readInt();
  19959. timestamp = in.readLong();
  19960. }
  19961. public static MyWritable read(DataInput in) throws IOException {
  19962. MyWritable w = new MyWritable();
  19963. w.readFields(in);
  19964. return w;
  19965. }
  19966. }
  19967. </pre></blockquote></p>]]>
  19968. </doc>
  19969. </interface>
  19970. <!-- end interface org.apache.hadoop.io.Writable -->
  19971. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  19972. <interface name="WritableComparable" abstract="true"
  19973. static="false" final="false" visibility="public"
  19974. deprecated="not deprecated">
  19975. <implements name="org.apache.hadoop.io.Writable"/>
  19976. <implements name="java.lang.Comparable"/>
  19977. <doc>
  19978. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  19979. <p><code>WritableComparable</code>s can be compared to each other, typically
  19980. via <code>Comparator</code>s. Any type which is to be used as a
  19981. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  19982. interface.</p>
  19983. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  19984. keys. It's important that your implementation of hashCode() returns the same
  19985. result across different instances of the JVM. Note also that the default
  19986. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  19987. satisfy this property.</p>
  19988. <p>Example:</p>
  19989. <p><blockquote><pre>
  19990. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  19991. // Some data
  19992. private int counter;
  19993. private long timestamp;
  19994. public void write(DataOutput out) throws IOException {
  19995. out.writeInt(counter);
  19996. out.writeLong(timestamp);
  19997. }
  19998. public void readFields(DataInput in) throws IOException {
  19999. counter = in.readInt();
  20000. timestamp = in.readLong();
  20001. }
  20002. public int compareTo(MyWritableComparable o) {
  20003. int thisValue = this.value;
  20004. int thatValue = o.value;
  20005. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  20006. }
  20007. public int hashCode() {
  20008. final int prime = 31;
  20009. int result = 1;
  20010. result = prime * result + counter;
  20011. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  20012. return result
  20013. }
  20014. }
  20015. </pre></blockquote></p>]]>
  20016. </doc>
  20017. </interface>
  20018. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  20019. <!-- start class org.apache.hadoop.io.WritableComparator -->
  20020. <class name="WritableComparator" extends="java.lang.Object"
  20021. abstract="false"
  20022. static="false" final="false" visibility="public"
  20023. deprecated="not deprecated">
  20024. <implements name="org.apache.hadoop.io.RawComparator"/>
  20025. <implements name="org.apache.hadoop.conf.Configurable"/>
  20026. <constructor name="WritableComparator"
  20027. static="false" final="false" visibility="protected"
  20028. deprecated="not deprecated">
  20029. </constructor>
  20030. <constructor name="WritableComparator" type="java.lang.Class"
  20031. static="false" final="false" visibility="protected"
  20032. deprecated="not deprecated">
  20033. <doc>
  20034. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  20035. </doc>
  20036. </constructor>
  20037. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  20038. static="false" final="false" visibility="protected"
  20039. deprecated="not deprecated">
  20040. </constructor>
  20041. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  20042. static="false" final="false" visibility="protected"
  20043. deprecated="not deprecated">
  20044. </constructor>
  20045. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20046. abstract="false" native="false" synchronized="false"
  20047. static="true" final="false" visibility="public"
  20048. deprecated="not deprecated">
  20049. <param name="c" type="java.lang.Class"/>
  20050. <doc>
  20051. <![CDATA[For backwards compatibility.]]>
  20052. </doc>
  20053. </method>
  20054. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  20055. abstract="false" native="false" synchronized="false"
  20056. static="true" final="false" visibility="public"
  20057. deprecated="not deprecated">
  20058. <param name="c" type="java.lang.Class"/>
  20059. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20060. <doc>
  20061. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  20062. </doc>
  20063. </method>
  20064. <method name="setConf"
  20065. abstract="false" native="false" synchronized="false"
  20066. static="false" final="false" visibility="public"
  20067. deprecated="not deprecated">
  20068. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20069. </method>
  20070. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20071. abstract="false" native="false" synchronized="false"
  20072. static="false" final="false" visibility="public"
  20073. deprecated="not deprecated">
  20074. </method>
  20075. <method name="define"
  20076. abstract="false" native="false" synchronized="false"
  20077. static="true" final="false" visibility="public"
  20078. deprecated="not deprecated">
  20079. <param name="c" type="java.lang.Class"/>
  20080. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  20081. <doc>
  20082. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  20083. implementation. Comparators registered with this method must be
  20084. thread-safe.]]>
  20085. </doc>
  20086. </method>
  20087. <method name="getKeyClass" return="java.lang.Class"
  20088. abstract="false" native="false" synchronized="false"
  20089. static="false" final="false" visibility="public"
  20090. deprecated="not deprecated">
  20091. <doc>
  20092. <![CDATA[Returns the WritableComparable implementation class.]]>
  20093. </doc>
  20094. </method>
  20095. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  20096. abstract="false" native="false" synchronized="false"
  20097. static="false" final="false" visibility="public"
  20098. deprecated="not deprecated">
  20099. <doc>
  20100. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  20101. </doc>
  20102. </method>
  20103. <method name="compare" return="int"
  20104. abstract="false" native="false" synchronized="false"
  20105. static="false" final="false" visibility="public"
  20106. deprecated="not deprecated">
  20107. <param name="b1" type="byte[]"/>
  20108. <param name="s1" type="int"/>
  20109. <param name="l1" type="int"/>
  20110. <param name="b2" type="byte[]"/>
  20111. <param name="s2" type="int"/>
  20112. <param name="l2" type="int"/>
  20113. <doc>
  20114. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  20115. <p>The default implementation reads the data into two {@link
  20116. WritableComparable}s (using {@link
  20117. Writable#readFields(DataInput)}, then calls {@link
  20118. #compare(WritableComparable,WritableComparable)}.]]>
  20119. </doc>
  20120. </method>
  20121. <method name="compare" return="int"
  20122. abstract="false" native="false" synchronized="false"
  20123. static="false" final="false" visibility="public"
  20124. deprecated="not deprecated">
  20125. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  20126. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  20127. <doc>
  20128. <![CDATA[Compare two WritableComparables.
  20129. <p> The default implementation uses the natural ordering, calling {@link
  20130. Comparable#compareTo(Object)}.]]>
  20131. </doc>
  20132. </method>
  20133. <method name="compare" return="int"
  20134. abstract="false" native="false" synchronized="false"
  20135. static="false" final="false" visibility="public"
  20136. deprecated="not deprecated">
  20137. <param name="a" type="java.lang.Object"/>
  20138. <param name="b" type="java.lang.Object"/>
  20139. </method>
  20140. <method name="compareBytes" return="int"
  20141. abstract="false" native="false" synchronized="false"
  20142. static="true" final="false" visibility="public"
  20143. deprecated="not deprecated">
  20144. <param name="b1" type="byte[]"/>
  20145. <param name="s1" type="int"/>
  20146. <param name="l1" type="int"/>
  20147. <param name="b2" type="byte[]"/>
  20148. <param name="s2" type="int"/>
  20149. <param name="l2" type="int"/>
  20150. <doc>
  20151. <![CDATA[Lexicographic order of binary data.]]>
  20152. </doc>
  20153. </method>
  20154. <method name="hashBytes" return="int"
  20155. abstract="false" native="false" synchronized="false"
  20156. static="true" final="false" visibility="public"
  20157. deprecated="not deprecated">
  20158. <param name="bytes" type="byte[]"/>
  20159. <param name="offset" type="int"/>
  20160. <param name="length" type="int"/>
  20161. <doc>
  20162. <![CDATA[Compute hash for binary data.]]>
  20163. </doc>
  20164. </method>
  20165. <method name="hashBytes" return="int"
  20166. abstract="false" native="false" synchronized="false"
  20167. static="true" final="false" visibility="public"
  20168. deprecated="not deprecated">
  20169. <param name="bytes" type="byte[]"/>
  20170. <param name="length" type="int"/>
  20171. <doc>
  20172. <![CDATA[Compute hash for binary data.]]>
  20173. </doc>
  20174. </method>
  20175. <method name="readUnsignedShort" return="int"
  20176. abstract="false" native="false" synchronized="false"
  20177. static="true" final="false" visibility="public"
  20178. deprecated="not deprecated">
  20179. <param name="bytes" type="byte[]"/>
  20180. <param name="start" type="int"/>
  20181. <doc>
  20182. <![CDATA[Parse an unsigned short from a byte array.]]>
  20183. </doc>
  20184. </method>
  20185. <method name="readInt" return="int"
  20186. abstract="false" native="false" synchronized="false"
  20187. static="true" final="false" visibility="public"
  20188. deprecated="not deprecated">
  20189. <param name="bytes" type="byte[]"/>
  20190. <param name="start" type="int"/>
  20191. <doc>
  20192. <![CDATA[Parse an integer from a byte array.]]>
  20193. </doc>
  20194. </method>
  20195. <method name="readFloat" return="float"
  20196. abstract="false" native="false" synchronized="false"
  20197. static="true" final="false" visibility="public"
  20198. deprecated="not deprecated">
  20199. <param name="bytes" type="byte[]"/>
  20200. <param name="start" type="int"/>
  20201. <doc>
  20202. <![CDATA[Parse a float from a byte array.]]>
  20203. </doc>
  20204. </method>
  20205. <method name="readLong" return="long"
  20206. abstract="false" native="false" synchronized="false"
  20207. static="true" final="false" visibility="public"
  20208. deprecated="not deprecated">
  20209. <param name="bytes" type="byte[]"/>
  20210. <param name="start" type="int"/>
  20211. <doc>
  20212. <![CDATA[Parse a long from a byte array.]]>
  20213. </doc>
  20214. </method>
  20215. <method name="readDouble" return="double"
  20216. abstract="false" native="false" synchronized="false"
  20217. static="true" final="false" visibility="public"
  20218. deprecated="not deprecated">
  20219. <param name="bytes" type="byte[]"/>
  20220. <param name="start" type="int"/>
  20221. <doc>
  20222. <![CDATA[Parse a double from a byte array.]]>
  20223. </doc>
  20224. </method>
  20225. <method name="readVLong" return="long"
  20226. abstract="false" native="false" synchronized="false"
  20227. static="true" final="false" visibility="public"
  20228. deprecated="not deprecated">
  20229. <param name="bytes" type="byte[]"/>
  20230. <param name="start" type="int"/>
  20231. <exception name="IOException" type="java.io.IOException"/>
  20232. <doc>
  20233. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  20234. @param bytes byte array with decode long
  20235. @param start starting index
  20236. @throws java.io.IOException
  20237. @return deserialized long]]>
  20238. </doc>
  20239. </method>
  20240. <method name="readVInt" return="int"
  20241. abstract="false" native="false" synchronized="false"
  20242. static="true" final="false" visibility="public"
  20243. deprecated="not deprecated">
  20244. <param name="bytes" type="byte[]"/>
  20245. <param name="start" type="int"/>
  20246. <exception name="IOException" type="java.io.IOException"/>
  20247. <doc>
  20248. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  20249. @param bytes byte array with the encoded integer
  20250. @param start start index
  20251. @throws java.io.IOException
  20252. @return deserialized integer]]>
  20253. </doc>
  20254. </method>
  20255. <doc>
  20256. <![CDATA[A Comparator for {@link WritableComparable}s.
  20257. <p>This base implemenation uses the natural ordering. To define alternate
  20258. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  20259. <p>One may optimize compare-intensive operations by overriding
  20260. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  20261. provided to assist in optimized implementations of this method.]]>
  20262. </doc>
  20263. </class>
  20264. <!-- end class org.apache.hadoop.io.WritableComparator -->
  20265. <!-- start class org.apache.hadoop.io.WritableFactories -->
  20266. <class name="WritableFactories" extends="java.lang.Object"
  20267. abstract="false"
  20268. static="false" final="false" visibility="public"
  20269. deprecated="not deprecated">
  20270. <method name="setFactory"
  20271. abstract="false" native="false" synchronized="false"
  20272. static="true" final="false" visibility="public"
  20273. deprecated="not deprecated">
  20274. <param name="c" type="java.lang.Class"/>
  20275. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  20276. <doc>
  20277. <![CDATA[Define a factory for a class.]]>
  20278. </doc>
  20279. </method>
  20280. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  20281. abstract="false" native="false" synchronized="false"
  20282. static="true" final="false" visibility="public"
  20283. deprecated="not deprecated">
  20284. <param name="c" type="java.lang.Class"/>
  20285. <doc>
  20286. <![CDATA[Define a factory for a class.]]>
  20287. </doc>
  20288. </method>
  20289. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  20290. abstract="false" native="false" synchronized="false"
  20291. static="true" final="false" visibility="public"
  20292. deprecated="not deprecated">
  20293. <param name="c" type="java.lang.Class"/>
  20294. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20295. <doc>
  20296. <![CDATA[Create a new instance of a class with a defined factory.]]>
  20297. </doc>
  20298. </method>
  20299. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  20300. abstract="false" native="false" synchronized="false"
  20301. static="true" final="false" visibility="public"
  20302. deprecated="not deprecated">
  20303. <param name="c" type="java.lang.Class"/>
  20304. <doc>
  20305. <![CDATA[Create a new instance of a class with a defined factory.]]>
  20306. </doc>
  20307. </method>
  20308. <doc>
  20309. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  20310. ObjectWritable} to be able to construct instances of non-public classes.]]>
  20311. </doc>
  20312. </class>
  20313. <!-- end class org.apache.hadoop.io.WritableFactories -->
  20314. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  20315. <interface name="WritableFactory" abstract="true"
  20316. static="false" final="false" visibility="public"
  20317. deprecated="not deprecated">
  20318. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  20319. abstract="false" native="false" synchronized="false"
  20320. static="false" final="false" visibility="public"
  20321. deprecated="not deprecated">
  20322. <doc>
  20323. <![CDATA[Return a new instance.]]>
  20324. </doc>
  20325. </method>
  20326. <doc>
  20327. <![CDATA[A factory for a class of Writable.
  20328. @see WritableFactories]]>
  20329. </doc>
  20330. </interface>
  20331. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  20332. <!-- start class org.apache.hadoop.io.WritableUtils -->
  20333. <class name="WritableUtils" extends="java.lang.Object"
  20334. abstract="false"
  20335. static="false" final="true" visibility="public"
  20336. deprecated="not deprecated">
  20337. <constructor name="WritableUtils"
  20338. static="false" final="false" visibility="public"
  20339. deprecated="not deprecated">
  20340. </constructor>
  20341. <method name="readCompressedByteArray" return="byte[]"
  20342. abstract="false" native="false" synchronized="false"
  20343. static="true" final="false" visibility="public"
  20344. deprecated="not deprecated">
  20345. <param name="in" type="java.io.DataInput"/>
  20346. <exception name="IOException" type="java.io.IOException"/>
  20347. </method>
  20348. <method name="skipCompressedByteArray"
  20349. abstract="false" native="false" synchronized="false"
  20350. static="true" final="false" visibility="public"
  20351. deprecated="not deprecated">
  20352. <param name="in" type="java.io.DataInput"/>
  20353. <exception name="IOException" type="java.io.IOException"/>
  20354. </method>
  20355. <method name="writeCompressedByteArray" return="int"
  20356. abstract="false" native="false" synchronized="false"
  20357. static="true" final="false" visibility="public"
  20358. deprecated="not deprecated">
  20359. <param name="out" type="java.io.DataOutput"/>
  20360. <param name="bytes" type="byte[]"/>
  20361. <exception name="IOException" type="java.io.IOException"/>
  20362. </method>
  20363. <method name="readCompressedString" return="java.lang.String"
  20364. abstract="false" native="false" synchronized="false"
  20365. static="true" final="false" visibility="public"
  20366. deprecated="not deprecated">
  20367. <param name="in" type="java.io.DataInput"/>
  20368. <exception name="IOException" type="java.io.IOException"/>
  20369. </method>
  20370. <method name="writeCompressedString" return="int"
  20371. abstract="false" native="false" synchronized="false"
  20372. static="true" final="false" visibility="public"
  20373. deprecated="not deprecated">
  20374. <param name="out" type="java.io.DataOutput"/>
  20375. <param name="s" type="java.lang.String"/>
  20376. <exception name="IOException" type="java.io.IOException"/>
  20377. </method>
  20378. <method name="writeString"
  20379. abstract="false" native="false" synchronized="false"
  20380. static="true" final="false" visibility="public"
  20381. deprecated="not deprecated">
  20382. <param name="out" type="java.io.DataOutput"/>
  20383. <param name="s" type="java.lang.String"/>
  20384. <exception name="IOException" type="java.io.IOException"/>
  20385. </method>
  20386. <method name="readString" return="java.lang.String"
  20387. abstract="false" native="false" synchronized="false"
  20388. static="true" final="false" visibility="public"
  20389. deprecated="not deprecated">
  20390. <param name="in" type="java.io.DataInput"/>
  20391. <exception name="IOException" type="java.io.IOException"/>
  20392. </method>
  20393. <method name="writeStringArray"
  20394. abstract="false" native="false" synchronized="false"
  20395. static="true" final="false" visibility="public"
  20396. deprecated="not deprecated">
  20397. <param name="out" type="java.io.DataOutput"/>
  20398. <param name="s" type="java.lang.String[]"/>
  20399. <exception name="IOException" type="java.io.IOException"/>
  20400. </method>
  20401. <method name="writeCompressedStringArray"
  20402. abstract="false" native="false" synchronized="false"
  20403. static="true" final="false" visibility="public"
  20404. deprecated="not deprecated">
  20405. <param name="out" type="java.io.DataOutput"/>
  20406. <param name="s" type="java.lang.String[]"/>
  20407. <exception name="IOException" type="java.io.IOException"/>
  20408. </method>
  20409. <method name="readStringArray" return="java.lang.String[]"
  20410. abstract="false" native="false" synchronized="false"
  20411. static="true" final="false" visibility="public"
  20412. deprecated="not deprecated">
  20413. <param name="in" type="java.io.DataInput"/>
  20414. <exception name="IOException" type="java.io.IOException"/>
  20415. </method>
  20416. <method name="readCompressedStringArray" return="java.lang.String[]"
  20417. abstract="false" native="false" synchronized="false"
  20418. static="true" final="false" visibility="public"
  20419. deprecated="not deprecated">
  20420. <param name="in" type="java.io.DataInput"/>
  20421. <exception name="IOException" type="java.io.IOException"/>
  20422. </method>
  20423. <method name="displayByteArray"
  20424. abstract="false" native="false" synchronized="false"
  20425. static="true" final="false" visibility="public"
  20426. deprecated="not deprecated">
  20427. <param name="record" type="byte[]"/>
  20428. </method>
  20429. <method name="clone" return="T"
  20430. abstract="false" native="false" synchronized="false"
  20431. static="true" final="false" visibility="public"
  20432. deprecated="not deprecated">
  20433. <param name="orig" type="T"/>
  20434. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20435. <doc>
  20436. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  20437. @param orig The object to copy
  20438. @return The copied object]]>
  20439. </doc>
  20440. </method>
  20441. <method name="cloneInto"
  20442. abstract="false" native="false" synchronized="false"
  20443. static="true" final="false" visibility="public"
  20444. deprecated="use ReflectionUtils.cloneInto instead.">
  20445. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  20446. <param name="src" type="org.apache.hadoop.io.Writable"/>
  20447. <exception name="IOException" type="java.io.IOException"/>
  20448. <doc>
  20449. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  20450. @param dst the object to copy from
  20451. @param src the object to copy into, which is destroyed
  20452. @throws IOException
  20453. @deprecated use ReflectionUtils.cloneInto instead.]]>
  20454. </doc>
  20455. </method>
  20456. <method name="writeVInt"
  20457. abstract="false" native="false" synchronized="false"
  20458. static="true" final="false" visibility="public"
  20459. deprecated="not deprecated">
  20460. <param name="stream" type="java.io.DataOutput"/>
  20461. <param name="i" type="int"/>
  20462. <exception name="IOException" type="java.io.IOException"/>
  20463. <doc>
  20464. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  20465. For -112 <= i <= 127, only one byte is used with the actual value.
  20466. For other values of i, the first byte value indicates whether the
  20467. integer is positive or negative, and the number of bytes that follow.
  20468. If the first byte value v is between -113 and -116, the following integer
  20469. is positive, with number of bytes that follow are -(v+112).
  20470. If the first byte value v is between -121 and -124, the following integer
  20471. is negative, with number of bytes that follow are -(v+120). Bytes are
  20472. stored in the high-non-zero-byte-first order.
  20473. @param stream Binary output stream
  20474. @param i Integer to be serialized
  20475. @throws java.io.IOException]]>
  20476. </doc>
  20477. </method>
  20478. <method name="writeVLong"
  20479. abstract="false" native="false" synchronized="false"
  20480. static="true" final="false" visibility="public"
  20481. deprecated="not deprecated">
  20482. <param name="stream" type="java.io.DataOutput"/>
  20483. <param name="i" type="long"/>
  20484. <exception name="IOException" type="java.io.IOException"/>
  20485. <doc>
  20486. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  20487. For -112 <= i <= 127, only one byte is used with the actual value.
  20488. For other values of i, the first byte value indicates whether the
  20489. long is positive or negative, and the number of bytes that follow.
  20490. If the first byte value v is between -113 and -120, the following long
  20491. is positive, with number of bytes that follow are -(v+112).
  20492. If the first byte value v is between -121 and -128, the following long
  20493. is negative, with number of bytes that follow are -(v+120). Bytes are
  20494. stored in the high-non-zero-byte-first order.
  20495. @param stream Binary output stream
  20496. @param i Long to be serialized
  20497. @throws java.io.IOException]]>
  20498. </doc>
  20499. </method>
  20500. <method name="readVLong" return="long"
  20501. abstract="false" native="false" synchronized="false"
  20502. static="true" final="false" visibility="public"
  20503. deprecated="not deprecated">
  20504. <param name="stream" type="java.io.DataInput"/>
  20505. <exception name="IOException" type="java.io.IOException"/>
  20506. <doc>
  20507. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  20508. @param stream Binary input stream
  20509. @throws java.io.IOException
  20510. @return deserialized long from stream.]]>
  20511. </doc>
  20512. </method>
  20513. <method name="readVInt" return="int"
  20514. abstract="false" native="false" synchronized="false"
  20515. static="true" final="false" visibility="public"
  20516. deprecated="not deprecated">
  20517. <param name="stream" type="java.io.DataInput"/>
  20518. <exception name="IOException" type="java.io.IOException"/>
  20519. <doc>
  20520. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  20521. @param stream Binary input stream
  20522. @throws java.io.IOException
  20523. @return deserialized integer from stream.]]>
  20524. </doc>
  20525. </method>
  20526. <method name="readVIntInRange" return="int"
  20527. abstract="false" native="false" synchronized="false"
  20528. static="true" final="false" visibility="public"
  20529. deprecated="not deprecated">
  20530. <param name="stream" type="java.io.DataInput"/>
  20531. <param name="lower" type="int"/>
  20532. <param name="upper" type="int"/>
  20533. <exception name="IOException" type="java.io.IOException"/>
  20534. <doc>
  20535. <![CDATA[Reads an integer from the input stream and returns it.
  20536. This function validates that the integer is between [lower, upper],
  20537. inclusive.
  20538. @param stream Binary input stream
  20539. @throws java.io.IOException
  20540. @return deserialized integer from stream]]>
  20541. </doc>
  20542. </method>
  20543. <method name="isNegativeVInt" return="boolean"
  20544. abstract="false" native="false" synchronized="false"
  20545. static="true" final="false" visibility="public"
  20546. deprecated="not deprecated">
  20547. <param name="value" type="byte"/>
  20548. <doc>
  20549. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  20550. @param value the first byte
  20551. @return is the value negative]]>
  20552. </doc>
  20553. </method>
  20554. <method name="decodeVIntSize" return="int"
  20555. abstract="false" native="false" synchronized="false"
  20556. static="true" final="false" visibility="public"
  20557. deprecated="not deprecated">
  20558. <param name="value" type="byte"/>
  20559. <doc>
  20560. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  20561. @param value the first byte of the vint/vlong
  20562. @return the total number of bytes (1 to 9)]]>
  20563. </doc>
  20564. </method>
  20565. <method name="getVIntSize" return="int"
  20566. abstract="false" native="false" synchronized="false"
  20567. static="true" final="false" visibility="public"
  20568. deprecated="not deprecated">
  20569. <param name="i" type="long"/>
  20570. <doc>
  20571. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  20572. @return the encoded length]]>
  20573. </doc>
  20574. </method>
  20575. <method name="readEnum" return="T"
  20576. abstract="false" native="false" synchronized="false"
  20577. static="true" final="false" visibility="public"
  20578. deprecated="not deprecated">
  20579. <param name="in" type="java.io.DataInput"/>
  20580. <param name="enumType" type="java.lang.Class"/>
  20581. <exception name="IOException" type="java.io.IOException"/>
  20582. <doc>
  20583. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  20584. using String values.
  20585. @param <T> Enum type
  20586. @param in DataInput to read from
  20587. @param enumType Class type of Enum
  20588. @return Enum represented by String read from DataInput
  20589. @throws IOException]]>
  20590. </doc>
  20591. </method>
  20592. <method name="writeEnum"
  20593. abstract="false" native="false" synchronized="false"
  20594. static="true" final="false" visibility="public"
  20595. deprecated="not deprecated">
  20596. <param name="out" type="java.io.DataOutput"/>
  20597. <param name="enumVal" type="java.lang.Enum"/>
  20598. <exception name="IOException" type="java.io.IOException"/>
  20599. <doc>
  20600. <![CDATA[writes String value of enum to DataOutput.
  20601. @param out Dataoutput stream
  20602. @param enumVal enum value
  20603. @throws IOException]]>
  20604. </doc>
  20605. </method>
  20606. <method name="skipFully"
  20607. abstract="false" native="false" synchronized="false"
  20608. static="true" final="false" visibility="public"
  20609. deprecated="not deprecated">
  20610. <param name="in" type="java.io.DataInput"/>
  20611. <param name="len" type="int"/>
  20612. <exception name="IOException" type="java.io.IOException"/>
  20613. <doc>
  20614. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  20615. @param in input stream
  20616. @param len number of bytes to skip
  20617. @throws IOException when skipped less number of bytes]]>
  20618. </doc>
  20619. </method>
  20620. <method name="toByteArray" return="byte[]"
  20621. abstract="false" native="false" synchronized="false"
  20622. static="true" final="false" visibility="public"
  20623. deprecated="not deprecated">
  20624. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  20625. <doc>
  20626. <![CDATA[Convert writables to a byte array]]>
  20627. </doc>
  20628. </method>
  20629. <method name="readStringSafely" return="java.lang.String"
  20630. abstract="false" native="false" synchronized="false"
  20631. static="true" final="false" visibility="public"
  20632. deprecated="not deprecated">
  20633. <param name="in" type="java.io.DataInput"/>
  20634. <param name="maxLength" type="int"/>
  20635. <exception name="IOException" type="java.io.IOException"/>
  20636. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  20637. <doc>
  20638. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  20639. followed by the given number of bytes.
  20640. @param in the stream to read from
  20641. @param maxLength the largest acceptable length of the encoded string
  20642. @return the bytes as a string
  20643. @throws IOException if reading from the DataInput fails
  20644. @throws IllegalArgumentException if the encoded byte size for string
  20645. is negative or larger than maxSize. Only the vint is read.]]>
  20646. </doc>
  20647. </method>
  20648. </class>
  20649. <!-- end class org.apache.hadoop.io.WritableUtils -->
  20650. <doc>
  20651. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  20652. to databases, and to files.]]>
  20653. </doc>
  20654. </package>
  20655. <package name="org.apache.hadoop.io.compress">
  20656. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  20657. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  20658. abstract="false"
  20659. static="false" final="false" visibility="public"
  20660. deprecated="not deprecated">
  20661. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  20662. static="false" final="false" visibility="public"
  20663. deprecated="not deprecated">
  20664. <doc>
  20665. <![CDATA[Create a {@link BlockCompressorStream}.
  20666. @param out stream
  20667. @param compressor compressor to be used
  20668. @param bufferSize size of buffer
  20669. @param compressionOverhead maximum 'overhead' of the compression
  20670. algorithm with given bufferSize]]>
  20671. </doc>
  20672. </constructor>
  20673. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  20674. static="false" final="false" visibility="public"
  20675. deprecated="not deprecated">
  20676. <doc>
  20677. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  20678. compressor.
  20679. Use default of 512 as bufferSize and compressionOverhead of
  20680. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  20681. @param out stream
  20682. @param compressor compressor to be used]]>
  20683. </doc>
  20684. </constructor>
  20685. <method name="write"
  20686. abstract="false" native="false" synchronized="false"
  20687. static="false" final="false" visibility="public"
  20688. deprecated="not deprecated">
  20689. <param name="b" type="byte[]"/>
  20690. <param name="off" type="int"/>
  20691. <param name="len" type="int"/>
  20692. <exception name="IOException" type="java.io.IOException"/>
  20693. <doc>
  20694. <![CDATA[Write the data provided to the compression codec, compressing no more
  20695. than the buffer size less the compression overhead as specified during
  20696. construction for each block.
  20697. Each block contains the uncompressed length for the block, followed by
  20698. one or more length-prefixed blocks of compressed data.]]>
  20699. </doc>
  20700. </method>
  20701. <method name="finish"
  20702. abstract="false" native="false" synchronized="false"
  20703. static="false" final="false" visibility="public"
  20704. deprecated="not deprecated">
  20705. <exception name="IOException" type="java.io.IOException"/>
  20706. </method>
  20707. <method name="compress"
  20708. abstract="false" native="false" synchronized="false"
  20709. static="false" final="false" visibility="protected"
  20710. deprecated="not deprecated">
  20711. <exception name="IOException" type="java.io.IOException"/>
  20712. </method>
  20713. <doc>
  20714. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  20715. with 'block-based' based compression algorithms, as opposed to
  20716. 'stream-based' compression algorithms.
  20717. It should be noted that this wrapper does not guarantee that blocks will
  20718. be sized for the compressor. If the
  20719. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  20720. effect meaningful compression, it is responsible for it.]]>
  20721. </doc>
  20722. </class>
  20723. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  20724. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  20725. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  20726. abstract="false"
  20727. static="false" final="false" visibility="public"
  20728. deprecated="not deprecated">
  20729. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  20730. static="false" final="false" visibility="public"
  20731. deprecated="not deprecated">
  20732. <exception name="IOException" type="java.io.IOException"/>
  20733. <doc>
  20734. <![CDATA[Create a {@link BlockDecompressorStream}.
  20735. @param in input stream
  20736. @param decompressor decompressor to use
  20737. @param bufferSize size of buffer
  20738. @throws IOException]]>
  20739. </doc>
  20740. </constructor>
  20741. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  20742. static="false" final="false" visibility="public"
  20743. deprecated="not deprecated">
  20744. <exception name="IOException" type="java.io.IOException"/>
  20745. <doc>
  20746. <![CDATA[Create a {@link BlockDecompressorStream}.
  20747. @param in input stream
  20748. @param decompressor decompressor to use
  20749. @throws IOException]]>
  20750. </doc>
  20751. </constructor>
  20752. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  20753. static="false" final="false" visibility="protected"
  20754. deprecated="not deprecated">
  20755. <exception name="IOException" type="java.io.IOException"/>
  20756. </constructor>
  20757. <method name="decompress" return="int"
  20758. abstract="false" native="false" synchronized="false"
  20759. static="false" final="false" visibility="protected"
  20760. deprecated="not deprecated">
  20761. <param name="b" type="byte[]"/>
  20762. <param name="off" type="int"/>
  20763. <param name="len" type="int"/>
  20764. <exception name="IOException" type="java.io.IOException"/>
  20765. </method>
  20766. <method name="getCompressedData" return="int"
  20767. abstract="false" native="false" synchronized="false"
  20768. static="false" final="false" visibility="protected"
  20769. deprecated="not deprecated">
  20770. <exception name="IOException" type="java.io.IOException"/>
  20771. </method>
  20772. <method name="resetState"
  20773. abstract="false" native="false" synchronized="false"
  20774. static="false" final="false" visibility="public"
  20775. deprecated="not deprecated">
  20776. <exception name="IOException" type="java.io.IOException"/>
  20777. </method>
  20778. <doc>
  20779. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  20780. with 'block-based' based compression algorithms, as opposed to
  20781. 'stream-based' compression algorithms.]]>
  20782. </doc>
  20783. </class>
  20784. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  20785. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  20786. <class name="BZip2Codec" extends="java.lang.Object"
  20787. abstract="false"
  20788. static="false" final="false" visibility="public"
  20789. deprecated="not deprecated">
  20790. <implements name="org.apache.hadoop.conf.Configurable"/>
  20791. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  20792. <constructor name="BZip2Codec"
  20793. static="false" final="false" visibility="public"
  20794. deprecated="not deprecated">
  20795. <doc>
  20796. <![CDATA[Creates a new instance of BZip2Codec.]]>
  20797. </doc>
  20798. </constructor>
  20799. <method name="setConf"
  20800. abstract="false" native="false" synchronized="false"
  20801. static="false" final="false" visibility="public"
  20802. deprecated="not deprecated">
  20803. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20804. <doc>
  20805. <![CDATA[Set the configuration to be used by this object.
  20806. @param conf the configuration object.]]>
  20807. </doc>
  20808. </method>
  20809. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20810. abstract="false" native="false" synchronized="false"
  20811. static="false" final="false" visibility="public"
  20812. deprecated="not deprecated">
  20813. <doc>
  20814. <![CDATA[Return the configuration used by this object.
  20815. @return the configuration object used by this objec.]]>
  20816. </doc>
  20817. </method>
  20818. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20819. abstract="false" native="false" synchronized="false"
  20820. static="false" final="false" visibility="public"
  20821. deprecated="not deprecated">
  20822. <param name="out" type="java.io.OutputStream"/>
  20823. <exception name="IOException" type="java.io.IOException"/>
  20824. <doc>
  20825. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  20826. {@link OutputStream}.
  20827. @param out the location for the final output stream
  20828. @return a stream the user can write uncompressed data to, to have it
  20829. compressed
  20830. @throws IOException]]>
  20831. </doc>
  20832. </method>
  20833. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20834. abstract="false" native="false" synchronized="false"
  20835. static="false" final="false" visibility="public"
  20836. deprecated="not deprecated">
  20837. <param name="out" type="java.io.OutputStream"/>
  20838. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  20839. <exception name="IOException" type="java.io.IOException"/>
  20840. <doc>
  20841. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  20842. {@link OutputStream} with the given {@link Compressor}.
  20843. @param out the location for the final output stream
  20844. @param compressor compressor to use
  20845. @return a stream the user can write uncompressed data to, to have it
  20846. compressed
  20847. @throws IOException]]>
  20848. </doc>
  20849. </method>
  20850. <method name="getCompressorType" return="java.lang.Class"
  20851. abstract="false" native="false" synchronized="false"
  20852. static="false" final="false" visibility="public"
  20853. deprecated="not deprecated">
  20854. <doc>
  20855. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  20856. @return the type of compressor needed by this codec.]]>
  20857. </doc>
  20858. </method>
  20859. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20860. abstract="false" native="false" synchronized="false"
  20861. static="false" final="false" visibility="public"
  20862. deprecated="not deprecated">
  20863. <doc>
  20864. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  20865. @return a new compressor for use by this codec]]>
  20866. </doc>
  20867. </method>
  20868. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20869. abstract="false" native="false" synchronized="false"
  20870. static="false" final="false" visibility="public"
  20871. deprecated="not deprecated">
  20872. <param name="in" type="java.io.InputStream"/>
  20873. <exception name="IOException" type="java.io.IOException"/>
  20874. <doc>
  20875. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  20876. input stream and return a stream for uncompressed data.
  20877. @param in the stream to read compressed bytes from
  20878. @return a stream to read uncompressed bytes from
  20879. @throws IOException]]>
  20880. </doc>
  20881. </method>
  20882. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20883. abstract="false" native="false" synchronized="false"
  20884. static="false" final="false" visibility="public"
  20885. deprecated="not deprecated">
  20886. <param name="in" type="java.io.InputStream"/>
  20887. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20888. <exception name="IOException" type="java.io.IOException"/>
  20889. <doc>
  20890. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  20891. {@link InputStream} with the given {@link Decompressor}, and return a
  20892. stream for uncompressed data.
  20893. @param in the stream to read compressed bytes from
  20894. @param decompressor decompressor to use
  20895. @return a stream to read uncompressed bytes from
  20896. @throws IOException]]>
  20897. </doc>
  20898. </method>
  20899. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  20900. abstract="false" native="false" synchronized="false"
  20901. static="false" final="false" visibility="public"
  20902. deprecated="not deprecated">
  20903. <param name="seekableIn" type="java.io.InputStream"/>
  20904. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20905. <param name="start" type="long"/>
  20906. <param name="end" type="long"/>
  20907. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  20908. <exception name="IOException" type="java.io.IOException"/>
  20909. <doc>
  20910. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  20911. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  20912. @param seekableIn The InputStream
  20913. @param start The start offset into the compressed stream
  20914. @param end The end offset into the compressed stream
  20915. @param readMode Controls whether progress is reported continuously or
  20916. only at block boundaries.
  20917. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  20918. </doc>
  20919. </method>
  20920. <method name="getDecompressorType" return="java.lang.Class"
  20921. abstract="false" native="false" synchronized="false"
  20922. static="false" final="false" visibility="public"
  20923. deprecated="not deprecated">
  20924. <doc>
  20925. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  20926. @return the type of decompressor needed by this codec.]]>
  20927. </doc>
  20928. </method>
  20929. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  20930. abstract="false" native="false" synchronized="false"
  20931. static="false" final="false" visibility="public"
  20932. deprecated="not deprecated">
  20933. <doc>
  20934. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  20935. @return a new decompressor for use by this codec]]>
  20936. </doc>
  20937. </method>
  20938. <method name="getDefaultExtension" return="java.lang.String"
  20939. abstract="false" native="false" synchronized="false"
  20940. static="false" final="false" visibility="public"
  20941. deprecated="not deprecated">
  20942. <doc>
  20943. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  20944. @return A String telling the default bzip2 file extension]]>
  20945. </doc>
  20946. </method>
  20947. <doc>
  20948. <![CDATA[This class provides output and input streams for bzip2 compression
  20949. and decompression. It uses the native bzip2 library on the system
  20950. if possible, else it uses a pure-Java implementation of the bzip2
  20951. algorithm. The configuration parameter
  20952. io.compression.codec.bzip2.library can be used to control this
  20953. behavior.
  20954. In the pure-Java mode, the Compressor and Decompressor interfaces
  20955. are not implemented. Therefore, in that mode, those methods of
  20956. CompressionCodec which have a Compressor or Decompressor type
  20957. argument, throw UnsupportedOperationException.
  20958. Currently, support for splittability is available only in the
  20959. pure-Java mode; therefore, if a SplitCompressionInputStream is
  20960. requested, the pure-Java implementation is used, regardless of the
  20961. setting of the configuration parameter mentioned above.]]>
  20962. </doc>
  20963. </class>
  20964. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  20965. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  20966. <class name="CodecPool" extends="java.lang.Object"
  20967. abstract="false"
  20968. static="false" final="false" visibility="public"
  20969. deprecated="not deprecated">
  20970. <constructor name="CodecPool"
  20971. static="false" final="false" visibility="public"
  20972. deprecated="not deprecated">
  20973. </constructor>
  20974. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20975. abstract="false" native="false" synchronized="false"
  20976. static="true" final="false" visibility="public"
  20977. deprecated="not deprecated">
  20978. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20979. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20980. <doc>
  20981. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  20982. pool or a new one.
  20983. @param codec the <code>CompressionCodec</code> for which to get the
  20984. <code>Compressor</code>
  20985. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  20986. @return <code>Compressor</code> for the given
  20987. <code>CompressionCodec</code> from the pool or a new one]]>
  20988. </doc>
  20989. </method>
  20990. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20991. abstract="false" native="false" synchronized="false"
  20992. static="true" final="false" visibility="public"
  20993. deprecated="not deprecated">
  20994. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20995. </method>
  20996. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  20997. abstract="false" native="false" synchronized="false"
  20998. static="true" final="false" visibility="public"
  20999. deprecated="not deprecated">
  21000. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21001. <doc>
  21002. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  21003. pool or a new one.
  21004. @param codec the <code>CompressionCodec</code> for which to get the
  21005. <code>Decompressor</code>
  21006. @return <code>Decompressor</code> for the given
  21007. <code>CompressionCodec</code> the pool or a new one]]>
  21008. </doc>
  21009. </method>
  21010. <method name="returnCompressor"
  21011. abstract="false" native="false" synchronized="false"
  21012. static="true" final="false" visibility="public"
  21013. deprecated="not deprecated">
  21014. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21015. <doc>
  21016. <![CDATA[Return the {@link Compressor} to the pool.
  21017. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  21018. </doc>
  21019. </method>
  21020. <method name="returnDecompressor"
  21021. abstract="false" native="false" synchronized="false"
  21022. static="true" final="false" visibility="public"
  21023. deprecated="not deprecated">
  21024. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21025. <doc>
  21026. <![CDATA[Return the {@link Decompressor} to the pool.
  21027. @param decompressor the <code>Decompressor</code> to be returned to the
  21028. pool]]>
  21029. </doc>
  21030. </method>
  21031. <method name="getLeasedCompressorsCount" return="int"
  21032. abstract="false" native="false" synchronized="false"
  21033. static="true" final="false" visibility="public"
  21034. deprecated="not deprecated">
  21035. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21036. <doc>
  21037. <![CDATA[Return the number of leased {@link Compressor}s for this
  21038. {@link CompressionCodec}]]>
  21039. </doc>
  21040. </method>
  21041. <method name="getLeasedDecompressorsCount" return="int"
  21042. abstract="false" native="false" synchronized="false"
  21043. static="true" final="false" visibility="public"
  21044. deprecated="not deprecated">
  21045. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21046. <doc>
  21047. <![CDATA[Return the number of leased {@link Decompressor}s for this
  21048. {@link CompressionCodec}]]>
  21049. </doc>
  21050. </method>
  21051. <doc>
  21052. <![CDATA[A global compressor/decompressor pool used to save and reuse
  21053. (possibly native) compression/decompression codecs.]]>
  21054. </doc>
  21055. </class>
  21056. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  21057. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  21058. <interface name="CompressionCodec" abstract="true"
  21059. static="false" final="false" visibility="public"
  21060. deprecated="not deprecated">
  21061. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21062. abstract="false" native="false" synchronized="false"
  21063. static="false" final="false" visibility="public"
  21064. deprecated="not deprecated">
  21065. <param name="out" type="java.io.OutputStream"/>
  21066. <exception name="IOException" type="java.io.IOException"/>
  21067. <doc>
  21068. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21069. {@link OutputStream}.
  21070. @param out the location for the final output stream
  21071. @return a stream the user can write uncompressed data to have it compressed
  21072. @throws IOException]]>
  21073. </doc>
  21074. </method>
  21075. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21076. abstract="false" native="false" synchronized="false"
  21077. static="false" final="false" visibility="public"
  21078. deprecated="not deprecated">
  21079. <param name="out" type="java.io.OutputStream"/>
  21080. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  21081. <exception name="IOException" type="java.io.IOException"/>
  21082. <doc>
  21083. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  21084. {@link OutputStream} with the given {@link Compressor}.
  21085. @param out the location for the final output stream
  21086. @param compressor compressor to use
  21087. @return a stream the user can write uncompressed data to have it compressed
  21088. @throws IOException]]>
  21089. </doc>
  21090. </method>
  21091. <method name="getCompressorType" return="java.lang.Class"
  21092. abstract="false" native="false" synchronized="false"
  21093. static="false" final="false" visibility="public"
  21094. deprecated="not deprecated">
  21095. <doc>
  21096. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  21097. @return the type of compressor needed by this codec.]]>
  21098. </doc>
  21099. </method>
  21100. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21101. abstract="false" native="false" synchronized="false"
  21102. static="false" final="false" visibility="public"
  21103. deprecated="not deprecated">
  21104. <doc>
  21105. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  21106. @return a new compressor for use by this codec]]>
  21107. </doc>
  21108. </method>
  21109. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21110. abstract="false" native="false" synchronized="false"
  21111. static="false" final="false" visibility="public"
  21112. deprecated="not deprecated">
  21113. <param name="in" type="java.io.InputStream"/>
  21114. <exception name="IOException" type="java.io.IOException"/>
  21115. <doc>
  21116. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21117. input stream.
  21118. @param in the stream to read compressed bytes from
  21119. @return a stream to read uncompressed bytes from
  21120. @throws IOException]]>
  21121. </doc>
  21122. </method>
  21123. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  21124. abstract="false" native="false" synchronized="false"
  21125. static="false" final="false" visibility="public"
  21126. deprecated="not deprecated">
  21127. <param name="in" type="java.io.InputStream"/>
  21128. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  21129. <exception name="IOException" type="java.io.IOException"/>
  21130. <doc>
  21131. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  21132. {@link InputStream} with the given {@link Decompressor}.
  21133. @param in the stream to read compressed bytes from
  21134. @param decompressor decompressor to use
  21135. @return a stream to read uncompressed bytes from
  21136. @throws IOException]]>
  21137. </doc>
  21138. </method>
  21139. <method name="getDecompressorType" return="java.lang.Class"
  21140. abstract="false" native="false" synchronized="false"
  21141. static="false" final="false" visibility="public"
  21142. deprecated="not deprecated">
  21143. <doc>
  21144. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  21145. @return the type of decompressor needed by this codec.]]>
  21146. </doc>
  21147. </method>
  21148. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21149. abstract="false" native="false" synchronized="false"
  21150. static="false" final="false" visibility="public"
  21151. deprecated="not deprecated">
  21152. <doc>
  21153. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  21154. @return a new decompressor for use by this codec]]>
  21155. </doc>
  21156. </method>
  21157. <method name="getDefaultExtension" return="java.lang.String"
  21158. abstract="false" native="false" synchronized="false"
  21159. static="false" final="false" visibility="public"
  21160. deprecated="not deprecated">
  21161. <doc>
  21162. <![CDATA[Get the default filename extension for this kind of compression.
  21163. @return the extension including the '.']]>
  21164. </doc>
  21165. </method>
  21166. <doc>
  21167. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  21168. </doc>
  21169. </interface>
  21170. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  21171. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  21172. <class name="CompressionCodecFactory" extends="java.lang.Object"
  21173. abstract="false"
  21174. static="false" final="false" visibility="public"
  21175. deprecated="not deprecated">
  21176. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  21177. static="false" final="false" visibility="public"
  21178. deprecated="not deprecated">
  21179. <doc>
  21180. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  21181. and register them. Defaults to gzip and deflate.]]>
  21182. </doc>
  21183. </constructor>
  21184. <method name="toString" return="java.lang.String"
  21185. abstract="false" native="false" synchronized="false"
  21186. static="false" final="false" visibility="public"
  21187. deprecated="not deprecated">
  21188. <doc>
  21189. <![CDATA[Print the extension map out as a string.]]>
  21190. </doc>
  21191. </method>
  21192. <method name="getCodecClasses" return="java.util.List"
  21193. abstract="false" native="false" synchronized="false"
  21194. static="true" final="false" visibility="public"
  21195. deprecated="not deprecated">
  21196. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21197. <doc>
  21198. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  21199. listed in the configuration. Codecs specified in configuration come
  21200. later in the returned list, and are considered to override those
  21201. from the ServiceLoader.
  21202. @param conf the configuration to look in
  21203. @return a list of the {@link CompressionCodec} classes]]>
  21204. </doc>
  21205. </method>
  21206. <method name="setCodecClasses"
  21207. abstract="false" native="false" synchronized="false"
  21208. static="true" final="false" visibility="public"
  21209. deprecated="not deprecated">
  21210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21211. <param name="classes" type="java.util.List"/>
  21212. <doc>
  21213. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  21214. classes specified using this method, {@link CompressionCodec} classes on
  21215. the classpath are discovered using a Java ServiceLoader.
  21216. @param conf the configuration to modify
  21217. @param classes the list of classes to set]]>
  21218. </doc>
  21219. </method>
  21220. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  21221. abstract="false" native="false" synchronized="false"
  21222. static="false" final="false" visibility="public"
  21223. deprecated="not deprecated">
  21224. <param name="file" type="org.apache.hadoop.fs.Path"/>
  21225. <doc>
  21226. <![CDATA[Find the relevant compression codec for the given file based on its
  21227. filename suffix.
  21228. @param file the filename to check
  21229. @return the codec object]]>
  21230. </doc>
  21231. </method>
  21232. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  21233. abstract="false" native="false" synchronized="false"
  21234. static="false" final="false" visibility="public"
  21235. deprecated="not deprecated">
  21236. <param name="classname" type="java.lang.String"/>
  21237. <doc>
  21238. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  21239. @param classname the canonical class name of the codec
  21240. @return the codec object]]>
  21241. </doc>
  21242. </method>
  21243. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  21244. abstract="false" native="false" synchronized="false"
  21245. static="false" final="false" visibility="public"
  21246. deprecated="not deprecated">
  21247. <param name="codecName" type="java.lang.String"/>
  21248. <doc>
  21249. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  21250. or by codec alias.
  21251. <p/>
  21252. Codec aliases are case insensitive.
  21253. <p/>
  21254. The code alias is the short class name (without the package name).
  21255. If the short class name ends with 'Codec', then there are two aliases for
  21256. the codec, the complete short class name and the short class name without
  21257. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  21258. alias are 'gzip' and 'gzipcodec'.
  21259. @param codecName the canonical class name of the codec
  21260. @return the codec object]]>
  21261. </doc>
  21262. </method>
  21263. <method name="getCodecClassByName" return="java.lang.Class"
  21264. abstract="false" native="false" synchronized="false"
  21265. static="false" final="false" visibility="public"
  21266. deprecated="not deprecated">
  21267. <param name="codecName" type="java.lang.String"/>
  21268. <doc>
  21269. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  21270. or by codec alias and returns its implemetation class.
  21271. <p/>
  21272. Codec aliases are case insensitive.
  21273. <p/>
  21274. The code alias is the short class name (without the package name).
  21275. If the short class name ends with 'Codec', then there are two aliases for
  21276. the codec, the complete short class name and the short class name without
  21277. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  21278. alias are 'gzip' and 'gzipcodec'.
  21279. @param codecName the canonical class name of the codec
  21280. @return the codec class]]>
  21281. </doc>
  21282. </method>
  21283. <method name="removeSuffix" return="java.lang.String"
  21284. abstract="false" native="false" synchronized="false"
  21285. static="true" final="false" visibility="public"
  21286. deprecated="not deprecated">
  21287. <param name="filename" type="java.lang.String"/>
  21288. <param name="suffix" type="java.lang.String"/>
  21289. <doc>
  21290. <![CDATA[Removes a suffix from a filename, if it has it.
  21291. @param filename the filename to strip
  21292. @param suffix the suffix to remove
  21293. @return the shortened filename]]>
  21294. </doc>
  21295. </method>
  21296. <method name="main"
  21297. abstract="false" native="false" synchronized="false"
  21298. static="true" final="false" visibility="public"
  21299. deprecated="not deprecated">
  21300. <param name="args" type="java.lang.String[]"/>
  21301. <exception name="Exception" type="java.lang.Exception"/>
  21302. <doc>
  21303. <![CDATA[A little test program.
  21304. @param args]]>
  21305. </doc>
  21306. </method>
  21307. <field name="LOG" type="org.apache.commons.logging.Log"
  21308. transient="false" volatile="false"
  21309. static="true" final="true" visibility="public"
  21310. deprecated="not deprecated">
  21311. </field>
  21312. <doc>
  21313. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  21314. </doc>
  21315. </class>
  21316. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  21317. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  21318. <class name="CompressionInputStream" extends="java.io.InputStream"
  21319. abstract="true"
  21320. static="false" final="false" visibility="public"
  21321. deprecated="not deprecated">
  21322. <implements name="org.apache.hadoop.fs.Seekable"/>
  21323. <constructor name="CompressionInputStream" type="java.io.InputStream"
  21324. static="false" final="false" visibility="protected"
  21325. deprecated="not deprecated">
  21326. <exception name="IOException" type="java.io.IOException"/>
  21327. <doc>
  21328. <![CDATA[Create a compression input stream that reads
  21329. the decompressed bytes from the given stream.
  21330. @param in The input stream to be compressed.
  21331. @throws IOException]]>
  21332. </doc>
  21333. </constructor>
  21334. <method name="close"
  21335. abstract="false" native="false" synchronized="false"
  21336. static="false" final="false" visibility="public"
  21337. deprecated="not deprecated">
  21338. <exception name="IOException" type="java.io.IOException"/>
  21339. </method>
  21340. <method name="read" return="int"
  21341. abstract="true" native="false" synchronized="false"
  21342. static="false" final="false" visibility="public"
  21343. deprecated="not deprecated">
  21344. <param name="b" type="byte[]"/>
  21345. <param name="off" type="int"/>
  21346. <param name="len" type="int"/>
  21347. <exception name="IOException" type="java.io.IOException"/>
  21348. <doc>
  21349. <![CDATA[Read bytes from the stream.
  21350. Made abstract to prevent leakage to underlying stream.]]>
  21351. </doc>
  21352. </method>
  21353. <method name="resetState"
  21354. abstract="true" native="false" synchronized="false"
  21355. static="false" final="false" visibility="public"
  21356. deprecated="not deprecated">
  21357. <exception name="IOException" type="java.io.IOException"/>
  21358. <doc>
  21359. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  21360. as the underlying stream may have been repositioned.]]>
  21361. </doc>
  21362. </method>
  21363. <method name="getPos" return="long"
  21364. abstract="false" native="false" synchronized="false"
  21365. static="false" final="false" visibility="public"
  21366. deprecated="not deprecated">
  21367. <exception name="IOException" type="java.io.IOException"/>
  21368. <doc>
  21369. <![CDATA[This method returns the current position in the stream.
  21370. @return Current position in stream as a long]]>
  21371. </doc>
  21372. </method>
  21373. <method name="seek"
  21374. abstract="false" native="false" synchronized="false"
  21375. static="false" final="false" visibility="public"
  21376. deprecated="not deprecated">
  21377. <param name="pos" type="long"/>
  21378. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  21379. <doc>
  21380. <![CDATA[This method is current not supported.
  21381. @throws UnsupportedOperationException]]>
  21382. </doc>
  21383. </method>
  21384. <method name="seekToNewSource" return="boolean"
  21385. abstract="false" native="false" synchronized="false"
  21386. static="false" final="false" visibility="public"
  21387. deprecated="not deprecated">
  21388. <param name="targetPos" type="long"/>
  21389. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  21390. <doc>
  21391. <![CDATA[This method is current not supported.
  21392. @throws UnsupportedOperationException]]>
  21393. </doc>
  21394. </method>
  21395. <field name="in" type="java.io.InputStream"
  21396. transient="false" volatile="false"
  21397. static="false" final="true" visibility="protected"
  21398. deprecated="not deprecated">
  21399. <doc>
  21400. <![CDATA[The input stream to be compressed.]]>
  21401. </doc>
  21402. </field>
  21403. <field name="maxAvailableData" type="long"
  21404. transient="false" volatile="false"
  21405. static="false" final="false" visibility="protected"
  21406. deprecated="not deprecated">
  21407. </field>
  21408. <doc>
  21409. <![CDATA[A compression input stream.
  21410. <p>Implementations are assumed to be buffered. This permits clients to
  21411. reposition the underlying input stream then call {@link #resetState()},
  21412. without having to also synchronize client buffers.]]>
  21413. </doc>
  21414. </class>
  21415. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  21416. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  21417. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  21418. abstract="true"
  21419. static="false" final="false" visibility="public"
  21420. deprecated="not deprecated">
  21421. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  21422. static="false" final="false" visibility="protected"
  21423. deprecated="not deprecated">
  21424. <doc>
  21425. <![CDATA[Create a compression output stream that writes
  21426. the compressed bytes to the given stream.
  21427. @param out]]>
  21428. </doc>
  21429. </constructor>
  21430. <method name="close"
  21431. abstract="false" native="false" synchronized="false"
  21432. static="false" final="false" visibility="public"
  21433. deprecated="not deprecated">
  21434. <exception name="IOException" type="java.io.IOException"/>
  21435. </method>
  21436. <method name="flush"
  21437. abstract="false" native="false" synchronized="false"
  21438. static="false" final="false" visibility="public"
  21439. deprecated="not deprecated">
  21440. <exception name="IOException" type="java.io.IOException"/>
  21441. </method>
  21442. <method name="write"
  21443. abstract="true" native="false" synchronized="false"
  21444. static="false" final="false" visibility="public"
  21445. deprecated="not deprecated">
  21446. <param name="b" type="byte[]"/>
  21447. <param name="off" type="int"/>
  21448. <param name="len" type="int"/>
  21449. <exception name="IOException" type="java.io.IOException"/>
  21450. <doc>
  21451. <![CDATA[Write compressed bytes to the stream.
  21452. Made abstract to prevent leakage to underlying stream.]]>
  21453. </doc>
  21454. </method>
  21455. <method name="finish"
  21456. abstract="true" native="false" synchronized="false"
  21457. static="false" final="false" visibility="public"
  21458. deprecated="not deprecated">
  21459. <exception name="IOException" type="java.io.IOException"/>
  21460. <doc>
  21461. <![CDATA[Finishes writing compressed data to the output stream
  21462. without closing the underlying stream.]]>
  21463. </doc>
  21464. </method>
  21465. <method name="resetState"
  21466. abstract="true" native="false" synchronized="false"
  21467. static="false" final="false" visibility="public"
  21468. deprecated="not deprecated">
  21469. <exception name="IOException" type="java.io.IOException"/>
  21470. <doc>
  21471. <![CDATA[Reset the compression to the initial state.
  21472. Does not reset the underlying stream.]]>
  21473. </doc>
  21474. </method>
  21475. <field name="out" type="java.io.OutputStream"
  21476. transient="false" volatile="false"
  21477. static="false" final="true" visibility="protected"
  21478. deprecated="not deprecated">
  21479. <doc>
  21480. <![CDATA[The output stream to be compressed.]]>
  21481. </doc>
  21482. </field>
  21483. <doc>
  21484. <![CDATA[A compression output stream.]]>
  21485. </doc>
  21486. </class>
  21487. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  21488. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  21489. <interface name="Compressor" abstract="true"
  21490. static="false" final="false" visibility="public"
  21491. deprecated="not deprecated">
  21492. <method name="setInput"
  21493. abstract="false" native="false" synchronized="false"
  21494. static="false" final="false" visibility="public"
  21495. deprecated="not deprecated">
  21496. <param name="b" type="byte[]"/>
  21497. <param name="off" type="int"/>
  21498. <param name="len" type="int"/>
  21499. <doc>
  21500. <![CDATA[Sets input data for compression.
  21501. This should be called whenever #needsInput() returns
  21502. <code>true</code> indicating that more input data is required.
  21503. @param b Input data
  21504. @param off Start offset
  21505. @param len Length]]>
  21506. </doc>
  21507. </method>
  21508. <method name="needsInput" return="boolean"
  21509. abstract="false" native="false" synchronized="false"
  21510. static="false" final="false" visibility="public"
  21511. deprecated="not deprecated">
  21512. <doc>
  21513. <![CDATA[Returns true if the input data buffer is empty and
  21514. #setInput() should be called to provide more input.
  21515. @return <code>true</code> if the input data buffer is empty and
  21516. #setInput() should be called in order to provide more input.]]>
  21517. </doc>
  21518. </method>
  21519. <method name="setDictionary"
  21520. abstract="false" native="false" synchronized="false"
  21521. static="false" final="false" visibility="public"
  21522. deprecated="not deprecated">
  21523. <param name="b" type="byte[]"/>
  21524. <param name="off" type="int"/>
  21525. <param name="len" type="int"/>
  21526. <doc>
  21527. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  21528. is used when the history buffer can be predetermined.
  21529. @param b Dictionary data bytes
  21530. @param off Start offset
  21531. @param len Length]]>
  21532. </doc>
  21533. </method>
  21534. <method name="getBytesRead" return="long"
  21535. abstract="false" native="false" synchronized="false"
  21536. static="false" final="false" visibility="public"
  21537. deprecated="not deprecated">
  21538. <doc>
  21539. <![CDATA[Return number of uncompressed bytes input so far.]]>
  21540. </doc>
  21541. </method>
  21542. <method name="getBytesWritten" return="long"
  21543. abstract="false" native="false" synchronized="false"
  21544. static="false" final="false" visibility="public"
  21545. deprecated="not deprecated">
  21546. <doc>
  21547. <![CDATA[Return number of compressed bytes output so far.]]>
  21548. </doc>
  21549. </method>
  21550. <method name="finish"
  21551. abstract="false" native="false" synchronized="false"
  21552. static="false" final="false" visibility="public"
  21553. deprecated="not deprecated">
  21554. <doc>
  21555. <![CDATA[When called, indicates that compression should end
  21556. with the current contents of the input buffer.]]>
  21557. </doc>
  21558. </method>
  21559. <method name="finished" return="boolean"
  21560. abstract="false" native="false" synchronized="false"
  21561. static="false" final="false" visibility="public"
  21562. deprecated="not deprecated">
  21563. <doc>
  21564. <![CDATA[Returns true if the end of the compressed
  21565. data output stream has been reached.
  21566. @return <code>true</code> if the end of the compressed
  21567. data output stream has been reached.]]>
  21568. </doc>
  21569. </method>
  21570. <method name="compress" return="int"
  21571. abstract="false" native="false" synchronized="false"
  21572. static="false" final="false" visibility="public"
  21573. deprecated="not deprecated">
  21574. <param name="b" type="byte[]"/>
  21575. <param name="off" type="int"/>
  21576. <param name="len" type="int"/>
  21577. <exception name="IOException" type="java.io.IOException"/>
  21578. <doc>
  21579. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  21580. of bytes of compressed data. A return value of 0 indicates that
  21581. needsInput() should be called in order to determine if more input
  21582. data is required.
  21583. @param b Buffer for the compressed data
  21584. @param off Start offset of the data
  21585. @param len Size of the buffer
  21586. @return The actual number of bytes of compressed data.]]>
  21587. </doc>
  21588. </method>
  21589. <method name="reset"
  21590. abstract="false" native="false" synchronized="false"
  21591. static="false" final="false" visibility="public"
  21592. deprecated="not deprecated">
  21593. <doc>
  21594. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  21595. </doc>
  21596. </method>
  21597. <method name="end"
  21598. abstract="false" native="false" synchronized="false"
  21599. static="false" final="false" visibility="public"
  21600. deprecated="not deprecated">
  21601. <doc>
  21602. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  21603. </doc>
  21604. </method>
  21605. <method name="reinit"
  21606. abstract="false" native="false" synchronized="false"
  21607. static="false" final="false" visibility="public"
  21608. deprecated="not deprecated">
  21609. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21610. <doc>
  21611. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  21612. the given Configuration
  21613. @param conf Configuration from which new setting are fetched]]>
  21614. </doc>
  21615. </method>
  21616. <doc>
  21617. <![CDATA[Specification of a stream-based 'compressor' which can be
  21618. plugged into a {@link CompressionOutputStream} to compress data.
  21619. This is modelled after {@link java.util.zip.Deflater}]]>
  21620. </doc>
  21621. </interface>
  21622. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  21623. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  21624. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  21625. abstract="false"
  21626. static="false" final="false" visibility="public"
  21627. deprecated="not deprecated">
  21628. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  21629. static="false" final="false" visibility="public"
  21630. deprecated="not deprecated">
  21631. </constructor>
  21632. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  21633. static="false" final="false" visibility="public"
  21634. deprecated="not deprecated">
  21635. </constructor>
  21636. <constructor name="CompressorStream" type="java.io.OutputStream"
  21637. static="false" final="false" visibility="protected"
  21638. deprecated="not deprecated">
  21639. <doc>
  21640. <![CDATA[Allow derived classes to directly set the underlying stream.
  21641. @param out Underlying output stream.]]>
  21642. </doc>
  21643. </constructor>
  21644. <method name="write"
  21645. abstract="false" native="false" synchronized="false"
  21646. static="false" final="false" visibility="public"
  21647. deprecated="not deprecated">
  21648. <param name="b" type="byte[]"/>
  21649. <param name="off" type="int"/>
  21650. <param name="len" type="int"/>
  21651. <exception name="IOException" type="java.io.IOException"/>
  21652. </method>
  21653. <method name="compress"
  21654. abstract="false" native="false" synchronized="false"
  21655. static="false" final="false" visibility="protected"
  21656. deprecated="not deprecated">
  21657. <exception name="IOException" type="java.io.IOException"/>
  21658. </method>
  21659. <method name="finish"
  21660. abstract="false" native="false" synchronized="false"
  21661. static="false" final="false" visibility="public"
  21662. deprecated="not deprecated">
  21663. <exception name="IOException" type="java.io.IOException"/>
  21664. </method>
  21665. <method name="resetState"
  21666. abstract="false" native="false" synchronized="false"
  21667. static="false" final="false" visibility="public"
  21668. deprecated="not deprecated">
  21669. <exception name="IOException" type="java.io.IOException"/>
  21670. </method>
  21671. <method name="close"
  21672. abstract="false" native="false" synchronized="false"
  21673. static="false" final="false" visibility="public"
  21674. deprecated="not deprecated">
  21675. <exception name="IOException" type="java.io.IOException"/>
  21676. </method>
  21677. <method name="write"
  21678. abstract="false" native="false" synchronized="false"
  21679. static="false" final="false" visibility="public"
  21680. deprecated="not deprecated">
  21681. <param name="b" type="int"/>
  21682. <exception name="IOException" type="java.io.IOException"/>
  21683. </method>
  21684. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  21685. transient="false" volatile="false"
  21686. static="false" final="false" visibility="protected"
  21687. deprecated="not deprecated">
  21688. </field>
  21689. <field name="buffer" type="byte[]"
  21690. transient="false" volatile="false"
  21691. static="false" final="false" visibility="protected"
  21692. deprecated="not deprecated">
  21693. </field>
  21694. <field name="closed" type="boolean"
  21695. transient="false" volatile="false"
  21696. static="false" final="false" visibility="protected"
  21697. deprecated="not deprecated">
  21698. </field>
  21699. </class>
  21700. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  21701. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  21702. <interface name="Decompressor" abstract="true"
  21703. static="false" final="false" visibility="public"
  21704. deprecated="not deprecated">
  21705. <method name="setInput"
  21706. abstract="false" native="false" synchronized="false"
  21707. static="false" final="false" visibility="public"
  21708. deprecated="not deprecated">
  21709. <param name="b" type="byte[]"/>
  21710. <param name="off" type="int"/>
  21711. <param name="len" type="int"/>
  21712. <doc>
  21713. <![CDATA[Sets input data for decompression.
  21714. This should be called if and only if {@link #needsInput()} returns
  21715. <code>true</code> indicating that more input data is required.
  21716. (Both native and non-native versions of various Decompressors require
  21717. that the data passed in via <code>b[]</code> remain unmodified until
  21718. the caller is explicitly notified--via {@link #needsInput()}--that the
  21719. buffer may be safely modified. With this requirement, an extra
  21720. buffer-copy can be avoided.)
  21721. @param b Input data
  21722. @param off Start offset
  21723. @param len Length]]>
  21724. </doc>
  21725. </method>
  21726. <method name="needsInput" return="boolean"
  21727. abstract="false" native="false" synchronized="false"
  21728. static="false" final="false" visibility="public"
  21729. deprecated="not deprecated">
  21730. <doc>
  21731. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  21732. {@link #setInput(byte[], int, int)} should be called to
  21733. provide more input.
  21734. @return <code>true</code> if the input data buffer is empty and
  21735. {@link #setInput(byte[], int, int)} should be called in
  21736. order to provide more input.]]>
  21737. </doc>
  21738. </method>
  21739. <method name="setDictionary"
  21740. abstract="false" native="false" synchronized="false"
  21741. static="false" final="false" visibility="public"
  21742. deprecated="not deprecated">
  21743. <param name="b" type="byte[]"/>
  21744. <param name="off" type="int"/>
  21745. <param name="len" type="int"/>
  21746. <doc>
  21747. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  21748. is used when the history buffer can be predetermined.
  21749. @param b Dictionary data bytes
  21750. @param off Start offset
  21751. @param len Length]]>
  21752. </doc>
  21753. </method>
  21754. <method name="needsDictionary" return="boolean"
  21755. abstract="false" native="false" synchronized="false"
  21756. static="false" final="false" visibility="public"
  21757. deprecated="not deprecated">
  21758. <doc>
  21759. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  21760. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  21761. </doc>
  21762. </method>
  21763. <method name="finished" return="boolean"
  21764. abstract="false" native="false" synchronized="false"
  21765. static="false" final="false" visibility="public"
  21766. deprecated="not deprecated">
  21767. <doc>
  21768. <![CDATA[Returns <code>true</code> if the end of the decompressed
  21769. data output stream has been reached. Indicates a concatenated data stream
  21770. when finished() returns <code>true</code> and {@link #getRemaining()}
  21771. returns a positive value. finished() will be reset with the
  21772. {@link #reset()} method.
  21773. @return <code>true</code> if the end of the decompressed
  21774. data output stream has been reached.]]>
  21775. </doc>
  21776. </method>
  21777. <method name="decompress" return="int"
  21778. abstract="false" native="false" synchronized="false"
  21779. static="false" final="false" visibility="public"
  21780. deprecated="not deprecated">
  21781. <param name="b" type="byte[]"/>
  21782. <param name="off" type="int"/>
  21783. <param name="len" type="int"/>
  21784. <exception name="IOException" type="java.io.IOException"/>
  21785. <doc>
  21786. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  21787. of bytes of uncompressed data. A return value of 0 indicates that
  21788. {@link #needsInput()} should be called in order to determine if more
  21789. input data is required.
  21790. @param b Buffer for the compressed data
  21791. @param off Start offset of the data
  21792. @param len Size of the buffer
  21793. @return The actual number of bytes of compressed data.
  21794. @throws IOException]]>
  21795. </doc>
  21796. </method>
  21797. <method name="getRemaining" return="int"
  21798. abstract="false" native="false" synchronized="false"
  21799. static="false" final="false" visibility="public"
  21800. deprecated="not deprecated">
  21801. <doc>
  21802. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  21803. Indicates a concatenated data stream if {@link #finished()} returns
  21804. <code>true</code> and getRemaining() returns a positive value. If
  21805. {@link #finished()} returns <code>true</code> and getRemaining() returns
  21806. a zero value, indicates that the end of data stream has been reached and
  21807. is not a concatenated data stream.
  21808. @return The number of bytes remaining in the compressed data buffer.]]>
  21809. </doc>
  21810. </method>
  21811. <method name="reset"
  21812. abstract="false" native="false" synchronized="false"
  21813. static="false" final="false" visibility="public"
  21814. deprecated="not deprecated">
  21815. <doc>
  21816. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  21817. input data can be processed. If {@link #finished()}} returns
  21818. <code>true</code> and {@link #getRemaining()} returns a positive value,
  21819. reset() is called before processing of the next data stream in the
  21820. concatenated data stream. {@link #finished()} will be reset and will
  21821. return <code>false</code> when reset() is called.]]>
  21822. </doc>
  21823. </method>
  21824. <method name="end"
  21825. abstract="false" native="false" synchronized="false"
  21826. static="false" final="false" visibility="public"
  21827. deprecated="not deprecated">
  21828. <doc>
  21829. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  21830. </doc>
  21831. </method>
  21832. <doc>
  21833. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  21834. plugged into a {@link CompressionInputStream} to compress data.
  21835. This is modelled after {@link java.util.zip.Inflater}]]>
  21836. </doc>
  21837. </interface>
  21838. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  21839. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  21840. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  21841. abstract="false"
  21842. static="false" final="false" visibility="public"
  21843. deprecated="not deprecated">
  21844. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  21845. static="false" final="false" visibility="public"
  21846. deprecated="not deprecated">
  21847. <exception name="IOException" type="java.io.IOException"/>
  21848. </constructor>
  21849. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  21850. static="false" final="false" visibility="public"
  21851. deprecated="not deprecated">
  21852. <exception name="IOException" type="java.io.IOException"/>
  21853. </constructor>
  21854. <constructor name="DecompressorStream" type="java.io.InputStream"
  21855. static="false" final="false" visibility="protected"
  21856. deprecated="not deprecated">
  21857. <exception name="IOException" type="java.io.IOException"/>
  21858. <doc>
  21859. <![CDATA[Allow derived classes to directly set the underlying stream.
  21860. @param in Underlying input stream.
  21861. @throws IOException]]>
  21862. </doc>
  21863. </constructor>
  21864. <method name="read" return="int"
  21865. abstract="false" native="false" synchronized="false"
  21866. static="false" final="false" visibility="public"
  21867. deprecated="not deprecated">
  21868. <exception name="IOException" type="java.io.IOException"/>
  21869. </method>
  21870. <method name="read" return="int"
  21871. abstract="false" native="false" synchronized="false"
  21872. static="false" final="false" visibility="public"
  21873. deprecated="not deprecated">
  21874. <param name="b" type="byte[]"/>
  21875. <param name="off" type="int"/>
  21876. <param name="len" type="int"/>
  21877. <exception name="IOException" type="java.io.IOException"/>
  21878. </method>
  21879. <method name="decompress" return="int"
  21880. abstract="false" native="false" synchronized="false"
  21881. static="false" final="false" visibility="protected"
  21882. deprecated="not deprecated">
  21883. <param name="b" type="byte[]"/>
  21884. <param name="off" type="int"/>
  21885. <param name="len" type="int"/>
  21886. <exception name="IOException" type="java.io.IOException"/>
  21887. </method>
  21888. <method name="getCompressedData" return="int"
  21889. abstract="false" native="false" synchronized="false"
  21890. static="false" final="false" visibility="protected"
  21891. deprecated="not deprecated">
  21892. <exception name="IOException" type="java.io.IOException"/>
  21893. </method>
  21894. <method name="checkStream"
  21895. abstract="false" native="false" synchronized="false"
  21896. static="false" final="false" visibility="protected"
  21897. deprecated="not deprecated">
  21898. <exception name="IOException" type="java.io.IOException"/>
  21899. </method>
  21900. <method name="resetState"
  21901. abstract="false" native="false" synchronized="false"
  21902. static="false" final="false" visibility="public"
  21903. deprecated="not deprecated">
  21904. <exception name="IOException" type="java.io.IOException"/>
  21905. </method>
  21906. <method name="skip" return="long"
  21907. abstract="false" native="false" synchronized="false"
  21908. static="false" final="false" visibility="public"
  21909. deprecated="not deprecated">
  21910. <param name="n" type="long"/>
  21911. <exception name="IOException" type="java.io.IOException"/>
  21912. </method>
  21913. <method name="available" return="int"
  21914. abstract="false" native="false" synchronized="false"
  21915. static="false" final="false" visibility="public"
  21916. deprecated="not deprecated">
  21917. <exception name="IOException" type="java.io.IOException"/>
  21918. </method>
  21919. <method name="close"
  21920. abstract="false" native="false" synchronized="false"
  21921. static="false" final="false" visibility="public"
  21922. deprecated="not deprecated">
  21923. <exception name="IOException" type="java.io.IOException"/>
  21924. </method>
  21925. <method name="markSupported" return="boolean"
  21926. abstract="false" native="false" synchronized="false"
  21927. static="false" final="false" visibility="public"
  21928. deprecated="not deprecated">
  21929. </method>
  21930. <method name="mark"
  21931. abstract="false" native="false" synchronized="true"
  21932. static="false" final="false" visibility="public"
  21933. deprecated="not deprecated">
  21934. <param name="readlimit" type="int"/>
  21935. </method>
  21936. <method name="reset"
  21937. abstract="false" native="false" synchronized="true"
  21938. static="false" final="false" visibility="public"
  21939. deprecated="not deprecated">
  21940. <exception name="IOException" type="java.io.IOException"/>
  21941. </method>
  21942. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  21943. transient="false" volatile="false"
  21944. static="false" final="false" visibility="protected"
  21945. deprecated="not deprecated">
  21946. </field>
  21947. <field name="buffer" type="byte[]"
  21948. transient="false" volatile="false"
  21949. static="false" final="false" visibility="protected"
  21950. deprecated="not deprecated">
  21951. </field>
  21952. <field name="eof" type="boolean"
  21953. transient="false" volatile="false"
  21954. static="false" final="false" visibility="protected"
  21955. deprecated="not deprecated">
  21956. </field>
  21957. <field name="closed" type="boolean"
  21958. transient="false" volatile="false"
  21959. static="false" final="false" visibility="protected"
  21960. deprecated="not deprecated">
  21961. </field>
  21962. </class>
  21963. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  21964. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  21965. <class name="DefaultCodec" extends="java.lang.Object"
  21966. abstract="false"
  21967. static="false" final="false" visibility="public"
  21968. deprecated="not deprecated">
  21969. <implements name="org.apache.hadoop.conf.Configurable"/>
  21970. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  21971. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  21972. <constructor name="DefaultCodec"
  21973. static="false" final="false" visibility="public"
  21974. deprecated="not deprecated">
  21975. </constructor>
  21976. <method name="setConf"
  21977. abstract="false" native="false" synchronized="false"
  21978. static="false" final="false" visibility="public"
  21979. deprecated="not deprecated">
  21980. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21981. </method>
  21982. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21983. abstract="false" native="false" synchronized="false"
  21984. static="false" final="false" visibility="public"
  21985. deprecated="not deprecated">
  21986. </method>
  21987. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21988. abstract="false" native="false" synchronized="false"
  21989. static="false" final="false" visibility="public"
  21990. deprecated="not deprecated">
  21991. <param name="out" type="java.io.OutputStream"/>
  21992. <exception name="IOException" type="java.io.IOException"/>
  21993. </method>
  21994. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  21995. abstract="false" native="false" synchronized="false"
  21996. static="false" final="false" visibility="public"
  21997. deprecated="not deprecated">
  21998. <param name="out" type="java.io.OutputStream"/>
  21999. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22000. <exception name="IOException" type="java.io.IOException"/>
  22001. </method>
  22002. <method name="getCompressorType" return="java.lang.Class"
  22003. abstract="false" native="false" synchronized="false"
  22004. static="false" final="false" visibility="public"
  22005. deprecated="not deprecated">
  22006. </method>
  22007. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22008. abstract="false" native="false" synchronized="false"
  22009. static="false" final="false" visibility="public"
  22010. deprecated="not deprecated">
  22011. </method>
  22012. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22013. abstract="false" native="false" synchronized="false"
  22014. static="false" final="false" visibility="public"
  22015. deprecated="not deprecated">
  22016. <param name="in" type="java.io.InputStream"/>
  22017. <exception name="IOException" type="java.io.IOException"/>
  22018. </method>
  22019. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22020. abstract="false" native="false" synchronized="false"
  22021. static="false" final="false" visibility="public"
  22022. deprecated="not deprecated">
  22023. <param name="in" type="java.io.InputStream"/>
  22024. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22025. <exception name="IOException" type="java.io.IOException"/>
  22026. </method>
  22027. <method name="getDecompressorType" return="java.lang.Class"
  22028. abstract="false" native="false" synchronized="false"
  22029. static="false" final="false" visibility="public"
  22030. deprecated="not deprecated">
  22031. </method>
  22032. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22033. abstract="false" native="false" synchronized="false"
  22034. static="false" final="false" visibility="public"
  22035. deprecated="not deprecated">
  22036. </method>
  22037. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22038. abstract="false" native="false" synchronized="false"
  22039. static="false" final="false" visibility="public"
  22040. deprecated="not deprecated">
  22041. <doc>
  22042. <![CDATA[{@inheritDoc}]]>
  22043. </doc>
  22044. </method>
  22045. <method name="getDefaultExtension" return="java.lang.String"
  22046. abstract="false" native="false" synchronized="false"
  22047. static="false" final="false" visibility="public"
  22048. deprecated="not deprecated">
  22049. </method>
  22050. </class>
  22051. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  22052. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  22053. <interface name="DirectDecompressionCodec" abstract="true"
  22054. static="false" final="false" visibility="public"
  22055. deprecated="not deprecated">
  22056. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22057. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22058. abstract="false" native="false" synchronized="false"
  22059. static="false" final="false" visibility="public"
  22060. deprecated="not deprecated">
  22061. <doc>
  22062. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  22063. @return a new direct decompressor for use by this codec]]>
  22064. </doc>
  22065. </method>
  22066. <doc>
  22067. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  22068. </doc>
  22069. </interface>
  22070. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  22071. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  22072. <interface name="DirectDecompressor" abstract="true"
  22073. static="false" final="false" visibility="public"
  22074. deprecated="not deprecated">
  22075. <method name="decompress"
  22076. abstract="false" native="false" synchronized="false"
  22077. static="false" final="false" visibility="public"
  22078. deprecated="not deprecated">
  22079. <param name="src" type="java.nio.ByteBuffer"/>
  22080. <param name="dst" type="java.nio.ByteBuffer"/>
  22081. <exception name="IOException" type="java.io.IOException"/>
  22082. </method>
  22083. <doc>
  22084. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  22085. </doc>
  22086. </interface>
  22087. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  22088. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  22089. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  22090. abstract="false"
  22091. static="false" final="false" visibility="public"
  22092. deprecated="not deprecated">
  22093. <constructor name="GzipCodec"
  22094. static="false" final="false" visibility="public"
  22095. deprecated="not deprecated">
  22096. </constructor>
  22097. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22098. abstract="false" native="false" synchronized="false"
  22099. static="false" final="false" visibility="public"
  22100. deprecated="not deprecated">
  22101. <param name="out" type="java.io.OutputStream"/>
  22102. <exception name="IOException" type="java.io.IOException"/>
  22103. </method>
  22104. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22105. abstract="false" native="false" synchronized="false"
  22106. static="false" final="false" visibility="public"
  22107. deprecated="not deprecated">
  22108. <param name="out" type="java.io.OutputStream"/>
  22109. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22110. <exception name="IOException" type="java.io.IOException"/>
  22111. </method>
  22112. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22113. abstract="false" native="false" synchronized="false"
  22114. static="false" final="false" visibility="public"
  22115. deprecated="not deprecated">
  22116. </method>
  22117. <method name="getCompressorType" return="java.lang.Class"
  22118. abstract="false" native="false" synchronized="false"
  22119. static="false" final="false" visibility="public"
  22120. deprecated="not deprecated">
  22121. </method>
  22122. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22123. abstract="false" native="false" synchronized="false"
  22124. static="false" final="false" visibility="public"
  22125. deprecated="not deprecated">
  22126. <param name="in" type="java.io.InputStream"/>
  22127. <exception name="IOException" type="java.io.IOException"/>
  22128. </method>
  22129. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22130. abstract="false" native="false" synchronized="false"
  22131. static="false" final="false" visibility="public"
  22132. deprecated="not deprecated">
  22133. <param name="in" type="java.io.InputStream"/>
  22134. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22135. <exception name="IOException" type="java.io.IOException"/>
  22136. </method>
  22137. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22138. abstract="false" native="false" synchronized="false"
  22139. static="false" final="false" visibility="public"
  22140. deprecated="not deprecated">
  22141. </method>
  22142. <method name="getDecompressorType" return="java.lang.Class"
  22143. abstract="false" native="false" synchronized="false"
  22144. static="false" final="false" visibility="public"
  22145. deprecated="not deprecated">
  22146. </method>
  22147. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  22148. abstract="false" native="false" synchronized="false"
  22149. static="false" final="false" visibility="public"
  22150. deprecated="not deprecated">
  22151. </method>
  22152. <method name="getDefaultExtension" return="java.lang.String"
  22153. abstract="false" native="false" synchronized="false"
  22154. static="false" final="false" visibility="public"
  22155. deprecated="not deprecated">
  22156. </method>
  22157. <doc>
  22158. <![CDATA[This class creates gzip compressors/decompressors.]]>
  22159. </doc>
  22160. </class>
  22161. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  22162. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  22163. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  22164. abstract="true"
  22165. static="false" final="false" visibility="public"
  22166. deprecated="not deprecated">
  22167. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  22168. static="false" final="false" visibility="public"
  22169. deprecated="not deprecated">
  22170. <exception name="IOException" type="java.io.IOException"/>
  22171. </constructor>
  22172. <method name="setStart"
  22173. abstract="false" native="false" synchronized="false"
  22174. static="false" final="false" visibility="protected"
  22175. deprecated="not deprecated">
  22176. <param name="start" type="long"/>
  22177. </method>
  22178. <method name="setEnd"
  22179. abstract="false" native="false" synchronized="false"
  22180. static="false" final="false" visibility="protected"
  22181. deprecated="not deprecated">
  22182. <param name="end" type="long"/>
  22183. </method>
  22184. <method name="getAdjustedStart" return="long"
  22185. abstract="false" native="false" synchronized="false"
  22186. static="false" final="false" visibility="public"
  22187. deprecated="not deprecated">
  22188. <doc>
  22189. <![CDATA[After calling createInputStream, the values of start or end
  22190. might change. So this method can be used to get the new value of start.
  22191. @return The changed value of start]]>
  22192. </doc>
  22193. </method>
  22194. <method name="getAdjustedEnd" return="long"
  22195. abstract="false" native="false" synchronized="false"
  22196. static="false" final="false" visibility="public"
  22197. deprecated="not deprecated">
  22198. <doc>
  22199. <![CDATA[After calling createInputStream, the values of start or end
  22200. might change. So this method can be used to get the new value of end.
  22201. @return The changed value of end]]>
  22202. </doc>
  22203. </method>
  22204. <doc>
  22205. <![CDATA[An InputStream covering a range of compressed data. The start and end
  22206. offsets requested by a client may be modified by the codec to fit block
  22207. boundaries or other algorithm-dependent requirements.]]>
  22208. </doc>
  22209. </class>
  22210. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  22211. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  22212. <interface name="SplittableCompressionCodec" abstract="true"
  22213. static="false" final="false" visibility="public"
  22214. deprecated="not deprecated">
  22215. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  22216. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  22217. abstract="false" native="false" synchronized="false"
  22218. static="false" final="false" visibility="public"
  22219. deprecated="not deprecated">
  22220. <param name="seekableIn" type="java.io.InputStream"/>
  22221. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22222. <param name="start" type="long"/>
  22223. <param name="end" type="long"/>
  22224. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  22225. <exception name="IOException" type="java.io.IOException"/>
  22226. <doc>
  22227. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  22228. the codecs wants the ability to work with the underlying stream positions.
  22229. @param seekableIn The seekable input stream (seeks in compressed data)
  22230. @param start The start offset into the compressed stream. May be changed
  22231. by the underlying codec.
  22232. @param end The end offset into the compressed stream. May be changed by
  22233. the underlying codec.
  22234. @param readMode Controls whether stream position is reported continuously
  22235. from the compressed stream only only at block boundaries.
  22236. @return a stream to read uncompressed bytes from]]>
  22237. </doc>
  22238. </method>
  22239. <doc>
  22240. <![CDATA[This interface is meant to be implemented by those compression codecs
  22241. which are capable to compress / de-compress a stream starting at any
  22242. arbitrary position.
  22243. Especially the process of de-compressing a stream starting at some arbitrary
  22244. position is challenging. Most of the codecs are only able to successfully
  22245. de-compress a stream, if they start from the very beginning till the end.
  22246. One of the reasons is the stored state at the beginning of the stream which
  22247. is crucial for de-compression.
  22248. Yet there are few codecs which do not save the whole state at the beginning
  22249. of the stream and hence can be used to de-compress stream starting at any
  22250. arbitrary points. This interface is meant to be used by such codecs. Such
  22251. codecs are highly valuable, especially in the context of Hadoop, because
  22252. an input compressed file can be split and hence can be worked on by multiple
  22253. machines in parallel.]]>
  22254. </doc>
  22255. </interface>
  22256. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  22257. </package>
  22258. <package name="org.apache.hadoop.io.file.tfile">
  22259. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  22260. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  22261. abstract="false"
  22262. static="false" final="false" visibility="public"
  22263. deprecated="not deprecated">
  22264. <doc>
  22265. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  22266. </doc>
  22267. </class>
  22268. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  22269. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  22270. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  22271. abstract="false"
  22272. static="false" final="false" visibility="public"
  22273. deprecated="not deprecated">
  22274. <doc>
  22275. <![CDATA[Exception - No such Meta Block with the given name.]]>
  22276. </doc>
  22277. </class>
  22278. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  22279. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  22280. <interface name="RawComparable" abstract="true"
  22281. static="false" final="false" visibility="public"
  22282. deprecated="not deprecated">
  22283. <method name="buffer" return="byte[]"
  22284. abstract="false" native="false" synchronized="false"
  22285. static="false" final="false" visibility="public"
  22286. deprecated="not deprecated">
  22287. <doc>
  22288. <![CDATA[Get the underlying byte array.
  22289. @return The underlying byte array.]]>
  22290. </doc>
  22291. </method>
  22292. <method name="offset" return="int"
  22293. abstract="false" native="false" synchronized="false"
  22294. static="false" final="false" visibility="public"
  22295. deprecated="not deprecated">
  22296. <doc>
  22297. <![CDATA[Get the offset of the first byte in the byte array.
  22298. @return The offset of the first byte in the byte array.]]>
  22299. </doc>
  22300. </method>
  22301. <method name="size" return="int"
  22302. abstract="false" native="false" synchronized="false"
  22303. static="false" final="false" visibility="public"
  22304. deprecated="not deprecated">
  22305. <doc>
  22306. <![CDATA[Get the size of the byte range in the byte array.
  22307. @return The size of the byte range in the byte array.]]>
  22308. </doc>
  22309. </method>
  22310. <doc>
  22311. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  22312. This is useful in places where we need a single object reference to specify a
  22313. range of bytes in a byte array, such as {@link Comparable} or
  22314. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  22315. The actual comparison among RawComparable's requires an external
  22316. RawComparator and it is applications' responsibility to ensure two
  22317. RawComparable are supposed to be semantically comparable with the same
  22318. RawComparator.]]>
  22319. </doc>
  22320. </interface>
  22321. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  22322. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  22323. <class name="TFile" extends="java.lang.Object"
  22324. abstract="false"
  22325. static="false" final="false" visibility="public"
  22326. deprecated="not deprecated">
  22327. <method name="makeComparator" return="java.util.Comparator"
  22328. abstract="false" native="false" synchronized="false"
  22329. static="true" final="false" visibility="public"
  22330. deprecated="not deprecated">
  22331. <param name="name" type="java.lang.String"/>
  22332. <doc>
  22333. <![CDATA[Make a raw comparator from a string name.
  22334. @param name
  22335. Comparator name
  22336. @return A RawComparable comparator.]]>
  22337. </doc>
  22338. </method>
  22339. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  22340. abstract="false" native="false" synchronized="false"
  22341. static="true" final="false" visibility="public"
  22342. deprecated="not deprecated">
  22343. <doc>
  22344. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  22345. TFile.Writer.
  22346. @return Array of strings, each represents a supported compression
  22347. algorithm. Currently, the following compression algorithms are
  22348. supported.
  22349. <ul>
  22350. <li>"none" - No compression.
  22351. <li>"lzo" - LZO compression.
  22352. <li>"gz" - GZIP compression.
  22353. </ul>]]>
  22354. </doc>
  22355. </method>
  22356. <method name="main"
  22357. abstract="false" native="false" synchronized="false"
  22358. static="true" final="false" visibility="public"
  22359. deprecated="not deprecated">
  22360. <param name="args" type="java.lang.String[]"/>
  22361. <doc>
  22362. <![CDATA[Dumping the TFile information.
  22363. @param args
  22364. A list of TFile paths.]]>
  22365. </doc>
  22366. </method>
  22367. <field name="COMPRESSION_GZ" type="java.lang.String"
  22368. transient="false" volatile="false"
  22369. static="true" final="true" visibility="public"
  22370. deprecated="not deprecated">
  22371. <doc>
  22372. <![CDATA[compression: gzip]]>
  22373. </doc>
  22374. </field>
  22375. <field name="COMPRESSION_LZO" type="java.lang.String"
  22376. transient="false" volatile="false"
  22377. static="true" final="true" visibility="public"
  22378. deprecated="not deprecated">
  22379. <doc>
  22380. <![CDATA[compression: lzo]]>
  22381. </doc>
  22382. </field>
  22383. <field name="COMPRESSION_NONE" type="java.lang.String"
  22384. transient="false" volatile="false"
  22385. static="true" final="true" visibility="public"
  22386. deprecated="not deprecated">
  22387. <doc>
  22388. <![CDATA[compression: none]]>
  22389. </doc>
  22390. </field>
  22391. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  22392. transient="false" volatile="false"
  22393. static="true" final="true" visibility="public"
  22394. deprecated="not deprecated">
  22395. <doc>
  22396. <![CDATA[comparator: memcmp]]>
  22397. </doc>
  22398. </field>
  22399. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  22400. transient="false" volatile="false"
  22401. static="true" final="true" visibility="public"
  22402. deprecated="not deprecated">
  22403. <doc>
  22404. <![CDATA[comparator prefix: java class]]>
  22405. </doc>
  22406. </field>
  22407. <doc>
  22408. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  22409. bytes. Keys are restricted to 64KB, value length is not restricted
  22410. (practically limited to the available disk storage). TFile further provides
  22411. the following features:
  22412. <ul>
  22413. <li>Block Compression.
  22414. <li>Named meta data blocks.
  22415. <li>Sorted or unsorted keys.
  22416. <li>Seek by key or by file offset.
  22417. </ul>
  22418. The memory footprint of a TFile includes the following:
  22419. <ul>
  22420. <li>Some constant overhead of reading or writing a compressed block.
  22421. <ul>
  22422. <li>Each compressed block requires one compression/decompression codec for
  22423. I/O.
  22424. <li>Temporary space to buffer the key.
  22425. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  22426. chunk encoded, so that we buffer at most one chunk of user data. By default,
  22427. the chunk buffer is 1MB. Reading chunked value does not require additional
  22428. memory.
  22429. </ul>
  22430. <li>TFile index, which is proportional to the total number of Data Blocks.
  22431. The total amount of memory needed to hold the index can be estimated as
  22432. (56+AvgKeySize)*NumBlocks.
  22433. <li>MetaBlock index, which is proportional to the total number of Meta
  22434. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  22435. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  22436. </ul>
  22437. <p>
  22438. The behavior of TFile can be customized by the following variables through
  22439. Configuration:
  22440. <ul>
  22441. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  22442. to 1MB. Values of the length less than the chunk size is guaranteed to have
  22443. known value length in read time (See
  22444. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  22445. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  22446. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  22447. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  22448. FSDataInputStream. Integer (in bytes). Default to 256KB.
  22449. </ul>
  22450. <p>
  22451. Suggestions on performance optimization.
  22452. <ul>
  22453. <li>Minimum block size. We recommend a setting of minimum block size between
  22454. 256KB to 1MB for general usage. Larger block size is preferred if files are
  22455. primarily for sequential access. However, it would lead to inefficient random
  22456. access (because there are more data to decompress). Smaller blocks are good
  22457. for random access, but require more memory to hold the block index, and may
  22458. be slower to create (because we must flush the compressor stream at the
  22459. conclusion of each data block, which leads to an FS I/O flush). Further, due
  22460. to the internal caching in Compression codec, the smallest possible block
  22461. size would be around 20KB-30KB.
  22462. <li>The current implementation does not offer true multi-threading for
  22463. reading. The implementation uses FSDataInputStream seek()+read(), which is
  22464. shown to be much faster than positioned-read call in single thread mode.
  22465. However, it also means that if multiple threads attempt to access the same
  22466. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  22467. sequentially even if they access different DFS blocks.
  22468. <li>Compression codec. Use "none" if the data is not very compressable (by
  22469. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  22470. as the starting point for experimenting. "gz" overs slightly better
  22471. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  22472. decompress, comparing to "lzo".
  22473. <li>File system buffering, if the underlying FSDataInputStream and
  22474. FSDataOutputStream is already adequately buffered; or if applications
  22475. reads/writes keys and values in large buffers, we can reduce the sizes of
  22476. input/output buffering in TFile layer by setting the configuration parameters
  22477. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  22478. </ul>
  22479. Some design rationale behind TFile can be found at <a
  22480. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  22481. </doc>
  22482. </class>
  22483. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  22484. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  22485. <class name="Utils" extends="java.lang.Object"
  22486. abstract="false"
  22487. static="false" final="true" visibility="public"
  22488. deprecated="not deprecated">
  22489. <method name="writeVInt"
  22490. abstract="false" native="false" synchronized="false"
  22491. static="true" final="false" visibility="public"
  22492. deprecated="not deprecated">
  22493. <param name="out" type="java.io.DataOutput"/>
  22494. <param name="n" type="int"/>
  22495. <exception name="IOException" type="java.io.IOException"/>
  22496. <doc>
  22497. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  22498. <code>Utils#writeVLong(out, n)</code>.
  22499. @param out
  22500. output stream
  22501. @param n
  22502. The integer to be encoded
  22503. @throws IOException
  22504. @see Utils#writeVLong(DataOutput, long)]]>
  22505. </doc>
  22506. </method>
  22507. <method name="writeVLong"
  22508. abstract="false" native="false" synchronized="false"
  22509. static="true" final="false" visibility="public"
  22510. deprecated="not deprecated">
  22511. <param name="out" type="java.io.DataOutput"/>
  22512. <param name="n" type="long"/>
  22513. <exception name="IOException" type="java.io.IOException"/>
  22514. <doc>
  22515. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  22516. <ul>
  22517. <li>if n in [-32, 127): encode in one byte with the actual value.
  22518. Otherwise,
  22519. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  22520. byte[1]=n&0xff. Otherwise,
  22521. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  22522. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  22523. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  22524. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  22525. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  22526. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  22527. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  22528. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  22529. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  22530. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  22531. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  22532. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  22533. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  22534. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  22535. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  22536. byte[7]=n&0xff;
  22537. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  22538. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  22539. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  22540. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  22541. </ul>
  22542. @param out
  22543. output stream
  22544. @param n
  22545. the integer number
  22546. @throws IOException]]>
  22547. </doc>
  22548. </method>
  22549. <method name="readVInt" return="int"
  22550. abstract="false" native="false" synchronized="false"
  22551. static="true" final="false" visibility="public"
  22552. deprecated="not deprecated">
  22553. <param name="in" type="java.io.DataInput"/>
  22554. <exception name="IOException" type="java.io.IOException"/>
  22555. <doc>
  22556. <![CDATA[Decoding the variable-length integer. Synonymous to
  22557. <code>(int)Utils#readVLong(in)</code>.
  22558. @param in
  22559. input stream
  22560. @return the decoded integer
  22561. @throws IOException
  22562. @see Utils#readVLong(DataInput)]]>
  22563. </doc>
  22564. </method>
  22565. <method name="readVLong" return="long"
  22566. abstract="false" native="false" synchronized="false"
  22567. static="true" final="false" visibility="public"
  22568. deprecated="not deprecated">
  22569. <param name="in" type="java.io.DataInput"/>
  22570. <exception name="IOException" type="java.io.IOException"/>
  22571. <doc>
  22572. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  22573. is FB, and the following bytes are NB[*].
  22574. <ul>
  22575. <li>if (FB >= -32), return (long)FB;
  22576. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  22577. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  22578. NB[1]&0xff;
  22579. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  22580. (NB[1]&0xff)<<8 + NB[2]&0xff;
  22581. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  22582. big-endian integer.
  22583. @param in
  22584. input stream
  22585. @return the decoded long integer.
  22586. @throws IOException]]>
  22587. </doc>
  22588. </method>
  22589. <method name="writeString"
  22590. abstract="false" native="false" synchronized="false"
  22591. static="true" final="false" visibility="public"
  22592. deprecated="not deprecated">
  22593. <param name="out" type="java.io.DataOutput"/>
  22594. <param name="s" type="java.lang.String"/>
  22595. <exception name="IOException" type="java.io.IOException"/>
  22596. <doc>
  22597. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  22598. @param out
  22599. @param s
  22600. @throws IOException]]>
  22601. </doc>
  22602. </method>
  22603. <method name="readString" return="java.lang.String"
  22604. abstract="false" native="false" synchronized="false"
  22605. static="true" final="false" visibility="public"
  22606. deprecated="not deprecated">
  22607. <param name="in" type="java.io.DataInput"/>
  22608. <exception name="IOException" type="java.io.IOException"/>
  22609. <doc>
  22610. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  22611. @param in
  22612. The input stream.
  22613. @return The string
  22614. @throws IOException]]>
  22615. </doc>
  22616. </method>
  22617. <method name="lowerBound" return="int"
  22618. abstract="false" native="false" synchronized="false"
  22619. static="true" final="false" visibility="public"
  22620. deprecated="not deprecated">
  22621. <param name="list" type="java.util.List"/>
  22622. <param name="key" type="T"/>
  22623. <param name="cmp" type="java.util.Comparator"/>
  22624. <doc>
  22625. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  22626. that compares greater than or equal to key.
  22627. @param <T>
  22628. Type of the input key.
  22629. @param list
  22630. The list
  22631. @param key
  22632. The input key.
  22633. @param cmp
  22634. Comparator for the key.
  22635. @return The index to the desired element if it exists; or list.size()
  22636. otherwise.]]>
  22637. </doc>
  22638. </method>
  22639. <method name="upperBound" return="int"
  22640. abstract="false" native="false" synchronized="false"
  22641. static="true" final="false" visibility="public"
  22642. deprecated="not deprecated">
  22643. <param name="list" type="java.util.List"/>
  22644. <param name="key" type="T"/>
  22645. <param name="cmp" type="java.util.Comparator"/>
  22646. <doc>
  22647. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  22648. that compares greater than the input key.
  22649. @param <T>
  22650. Type of the input key.
  22651. @param list
  22652. The list
  22653. @param key
  22654. The input key.
  22655. @param cmp
  22656. Comparator for the key.
  22657. @return The index to the desired element if it exists; or list.size()
  22658. otherwise.]]>
  22659. </doc>
  22660. </method>
  22661. <method name="lowerBound" return="int"
  22662. abstract="false" native="false" synchronized="false"
  22663. static="true" final="false" visibility="public"
  22664. deprecated="not deprecated">
  22665. <param name="list" type="java.util.List"/>
  22666. <param name="key" type="T"/>
  22667. <doc>
  22668. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  22669. that compares greater than or equal to key.
  22670. @param <T>
  22671. Type of the input key.
  22672. @param list
  22673. The list
  22674. @param key
  22675. The input key.
  22676. @return The index to the desired element if it exists; or list.size()
  22677. otherwise.]]>
  22678. </doc>
  22679. </method>
  22680. <method name="upperBound" return="int"
  22681. abstract="false" native="false" synchronized="false"
  22682. static="true" final="false" visibility="public"
  22683. deprecated="not deprecated">
  22684. <param name="list" type="java.util.List"/>
  22685. <param name="key" type="T"/>
  22686. <doc>
  22687. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  22688. that compares greater than the input key.
  22689. @param <T>
  22690. Type of the input key.
  22691. @param list
  22692. The list
  22693. @param key
  22694. The input key.
  22695. @return The index to the desired element if it exists; or list.size()
  22696. otherwise.]]>
  22697. </doc>
  22698. </method>
  22699. <doc>
  22700. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  22701. </doc>
  22702. </class>
  22703. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  22704. </package>
  22705. <package name="org.apache.hadoop.io.serializer">
  22706. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  22707. <class name="JavaSerialization" extends="java.lang.Object"
  22708. abstract="false"
  22709. static="false" final="false" visibility="public"
  22710. deprecated="not deprecated">
  22711. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22712. <constructor name="JavaSerialization"
  22713. static="false" final="false" visibility="public"
  22714. deprecated="not deprecated">
  22715. </constructor>
  22716. <doc>
  22717. <![CDATA[<p>
  22718. An experimental {@link Serialization} for Java {@link Serializable} classes.
  22719. </p>
  22720. @see JavaSerializationComparator]]>
  22721. </doc>
  22722. </class>
  22723. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  22724. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22725. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  22726. abstract="false"
  22727. static="false" final="false" visibility="public"
  22728. deprecated="not deprecated">
  22729. <constructor name="JavaSerializationComparator"
  22730. static="false" final="false" visibility="public"
  22731. deprecated="not deprecated">
  22732. <exception name="IOException" type="java.io.IOException"/>
  22733. </constructor>
  22734. <doc>
  22735. <![CDATA[<p>
  22736. A {@link RawComparator} that uses a {@link JavaSerialization}
  22737. {@link Deserializer} to deserialize objects that are then compared via
  22738. their {@link Comparable} interfaces.
  22739. </p>
  22740. @param <T>
  22741. @see JavaSerialization]]>
  22742. </doc>
  22743. </class>
  22744. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22745. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  22746. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  22747. abstract="false"
  22748. static="false" final="false" visibility="public"
  22749. deprecated="not deprecated">
  22750. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22751. <constructor name="WritableSerialization"
  22752. static="false" final="false" visibility="public"
  22753. deprecated="not deprecated">
  22754. </constructor>
  22755. <doc>
  22756. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  22757. {@link Writable#write(java.io.DataOutput)} and
  22758. {@link Writable#readFields(java.io.DataInput)}.]]>
  22759. </doc>
  22760. </class>
  22761. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  22762. <doc>
  22763. <![CDATA[<p>
  22764. This package provides a mechanism for using different serialization frameworks
  22765. in Hadoop. The property "io.serializations" defines a list of
  22766. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  22767. {@link org.apache.hadoop.io.serializer.Serializer}s and
  22768. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  22769. </p>
  22770. <p>
  22771. To add a new serialization framework write an implementation of
  22772. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  22773. "io.serializations" property.
  22774. </p>]]>
  22775. </doc>
  22776. </package>
  22777. <package name="org.apache.hadoop.io.serializer.avro">
  22778. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  22779. <interface name="AvroReflectSerializable" abstract="true"
  22780. static="false" final="false" visibility="public"
  22781. deprecated="not deprecated">
  22782. <doc>
  22783. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  22784. this interface can be serialized/deserialized using
  22785. {@link AvroReflectSerialization}.]]>
  22786. </doc>
  22787. </interface>
  22788. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  22789. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  22790. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  22791. abstract="false"
  22792. static="false" final="false" visibility="public"
  22793. deprecated="not deprecated">
  22794. <constructor name="AvroReflectSerialization"
  22795. static="false" final="false" visibility="public"
  22796. deprecated="not deprecated">
  22797. </constructor>
  22798. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  22799. transient="false" volatile="false"
  22800. static="true" final="true" visibility="public"
  22801. deprecated="not deprecated">
  22802. <doc>
  22803. <![CDATA[Key to configure packages that contain classes to be serialized and
  22804. deserialized using this class. Multiple packages can be specified using
  22805. comma-separated list.]]>
  22806. </doc>
  22807. </field>
  22808. <doc>
  22809. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  22810. serialization, it must either be in the package list configured via
  22811. <code>avro.reflect.pkgs</code> or implement
  22812. {@link AvroReflectSerializable} interface.]]>
  22813. </doc>
  22814. </class>
  22815. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  22816. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  22817. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  22818. abstract="true"
  22819. static="false" final="false" visibility="public"
  22820. deprecated="not deprecated">
  22821. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22822. <constructor name="AvroSerialization"
  22823. static="false" final="false" visibility="public"
  22824. deprecated="not deprecated">
  22825. </constructor>
  22826. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  22827. transient="false" volatile="false"
  22828. static="true" final="true" visibility="public"
  22829. deprecated="not deprecated">
  22830. </field>
  22831. <doc>
  22832. <![CDATA[Base class for providing serialization to Avro types.]]>
  22833. </doc>
  22834. </class>
  22835. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  22836. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  22837. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  22838. abstract="false"
  22839. static="false" final="false" visibility="public"
  22840. deprecated="not deprecated">
  22841. <constructor name="AvroSpecificSerialization"
  22842. static="false" final="false" visibility="public"
  22843. deprecated="not deprecated">
  22844. </constructor>
  22845. <doc>
  22846. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  22847. for classes generated by Avro's 'specific' compiler.]]>
  22848. </doc>
  22849. </class>
  22850. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  22851. <doc>
  22852. <![CDATA[<p>
  22853. This package provides Avro serialization in Hadoop. This can be used to
  22854. serialize/deserialize Avro types in Hadoop.
  22855. </p>
  22856. <p>
  22857. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  22858. serialization of classes generated by Avro's 'specific' compiler.
  22859. </p>
  22860. <p>
  22861. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  22862. other classes.
  22863. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  22864. any class which is either in the package list configured via
  22865. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  22866. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  22867. interface.
  22868. </p>]]>
  22869. </doc>
  22870. </package>
  22871. <package name="org.apache.hadoop.ipc.protocolPB">
  22872. </package>
  22873. <package name="org.apache.hadoop.log">
  22874. </package>
  22875. <package name="org.apache.hadoop.log.metrics">
  22876. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  22877. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  22878. abstract="false"
  22879. static="false" final="false" visibility="public"
  22880. deprecated="not deprecated">
  22881. <constructor name="EventCounter"
  22882. static="false" final="false" visibility="public"
  22883. deprecated="not deprecated">
  22884. </constructor>
  22885. <method name="append"
  22886. abstract="false" native="false" synchronized="false"
  22887. static="false" final="false" visibility="public"
  22888. deprecated="not deprecated">
  22889. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  22890. </method>
  22891. <method name="close"
  22892. abstract="false" native="false" synchronized="false"
  22893. static="false" final="false" visibility="public"
  22894. deprecated="not deprecated">
  22895. </method>
  22896. <method name="requiresLayout" return="boolean"
  22897. abstract="false" native="false" synchronized="false"
  22898. static="false" final="false" visibility="public"
  22899. deprecated="not deprecated">
  22900. </method>
  22901. <doc>
  22902. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22903. fatal, error and warn. The class name is used in log4j.properties]]>
  22904. </doc>
  22905. </class>
  22906. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  22907. </package>
  22908. <package name="org.apache.hadoop.metrics">
  22909. <doc>
  22910. <![CDATA[This package defines an API for reporting performance metric information.
  22911. <p/>
  22912. The API is abstract so that it can be implemented on top of
  22913. a variety of metrics client libraries. The choice of
  22914. client library is a configuration option, and different
  22915. modules within the same application can use
  22916. different metrics implementation libraries.
  22917. <p/>
  22918. Sub-packages:
  22919. <dl>
  22920. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  22921. <dd>The abstract Server Provider Interface package. Those wishing to
  22922. integrate the metrics API with a particular metrics client library should
  22923. extend this package.</dd>
  22924. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  22925. <dd>An implementation package which writes the metric data to
  22926. a file, or sends it to the standard output stream.</dd>
  22927. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  22928. <dd>An implementation package which sends metric data to
  22929. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  22930. </dl>
  22931. <h3>Introduction to the Metrics API</h3>
  22932. Here is a simple example of how to use this package to report a single
  22933. metric value:
  22934. <pre>
  22935. private ContextFactory contextFactory = ContextFactory.getFactory();
  22936. void reportMyMetric(float myMetric) {
  22937. MetricsContext myContext = contextFactory.getContext("myContext");
  22938. MetricsRecord myRecord = myContext.getRecord("myRecord");
  22939. myRecord.setMetric("myMetric", myMetric);
  22940. myRecord.update();
  22941. }
  22942. </pre>
  22943. In this example there are three names:
  22944. <dl>
  22945. <dt><i>myContext</i></dt>
  22946. <dd>The context name will typically identify either the application, or else a
  22947. module within an application or library.</dd>
  22948. <dt><i>myRecord</i></dt>
  22949. <dd>The record name generally identifies some entity for which a set of
  22950. metrics are to be reported. For example, you could have a record named
  22951. "cacheStats" for reporting a number of statistics relating to the usage of
  22952. some cache in your application.</dd>
  22953. <dt><i>myMetric</i></dt>
  22954. <dd>This identifies a particular metric. For example, you might have metrics
  22955. named "cache_hits" and "cache_misses".
  22956. </dd>
  22957. </dl>
  22958. <h3>Tags</h3>
  22959. In some cases it is useful to have multiple records with the same name. For
  22960. example, suppose that you want to report statistics about each disk on a computer.
  22961. In this case, the record name would be something like "diskStats", but you also
  22962. need to identify the disk which is done by adding a <i>tag</i> to the record.
  22963. The code could look something like this:
  22964. <pre>
  22965. private MetricsRecord diskStats =
  22966. contextFactory.getContext("myContext").getRecord("diskStats");
  22967. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  22968. diskStats.setTag("diskName", diskName);
  22969. diskStats.setMetric("diskBusy", diskBusy);
  22970. diskStats.setMetric("diskUsed", diskUsed);
  22971. diskStats.update();
  22972. }
  22973. </pre>
  22974. <h3>Buffering and Callbacks</h3>
  22975. Data is not sent immediately to the metrics system when
  22976. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  22977. internal table, and the contents of the table are sent periodically.
  22978. This can be important for two reasons:
  22979. <ol>
  22980. <li>It means that a programmer is free to put calls to this API in an
  22981. inner loop, since updates can be very frequent without slowing down
  22982. the application significantly.</li>
  22983. <li>Some implementations can gain efficiency by combining many metrics
  22984. into a single UDP message.</li>
  22985. </ol>
  22986. The API provides a timer-based callback via the
  22987. <code>registerUpdater()</code> method. The benefit of this
  22988. versus using <code>java.util.Timer</code> is that the callbacks will be done
  22989. immediately before sending the data, making the data as current as possible.
  22990. <h3>Configuration</h3>
  22991. It is possible to programmatically examine and modify configuration data
  22992. before creating a context, like this:
  22993. <pre>
  22994. ContextFactory factory = ContextFactory.getFactory();
  22995. ... examine and/or modify factory attributes ...
  22996. MetricsContext context = factory.getContext("myContext");
  22997. </pre>
  22998. The factory attributes can be examined and modified using the following
  22999. <code>ContextFactory</code>methods:
  23000. <ul>
  23001. <li><code>Object getAttribute(String attributeName)</code></li>
  23002. <li><code>String[] getAttributeNames()</code></li>
  23003. <li><code>void setAttribute(String name, Object value)</code></li>
  23004. <li><code>void removeAttribute(attributeName)</code></li>
  23005. </ul>
  23006. <p/>
  23007. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  23008. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  23009. on the class path.
  23010. <p/>
  23011. A factory attribute named:
  23012. <pre>
  23013. <i>contextName</i>.class
  23014. </pre>
  23015. should have as its value the fully qualified name of the class to be
  23016. instantiated by a call of the <code>CodeFactory</code> method
  23017. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  23018. specified, the default is to instantiate
  23019. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  23020. <p/>
  23021. Other factory attributes are specific to a particular implementation of this
  23022. API and are documented elsewhere. For example, configuration attributes for
  23023. the file and Ganglia implementations can be found in the javadoc for
  23024. their respective packages.]]>
  23025. </doc>
  23026. </package>
  23027. <package name="org.apache.hadoop.metrics.ganglia">
  23028. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23029. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23030. abstract="false"
  23031. static="false" final="false" visibility="public"
  23032. deprecated="Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  23033. instead.">
  23034. <constructor name="GangliaContext"
  23035. static="false" final="false" visibility="public"
  23036. deprecated="not deprecated">
  23037. <doc>
  23038. <![CDATA[Creates a new instance of GangliaContext]]>
  23039. </doc>
  23040. </constructor>
  23041. <method name="close"
  23042. abstract="false" native="false" synchronized="false"
  23043. static="false" final="false" visibility="public"
  23044. deprecated="not deprecated">
  23045. <doc>
  23046. <![CDATA[method to close the datagram socket]]>
  23047. </doc>
  23048. </method>
  23049. <method name="emitMetric"
  23050. abstract="false" native="false" synchronized="false"
  23051. static="false" final="false" visibility="protected"
  23052. deprecated="not deprecated">
  23053. <param name="name" type="java.lang.String"/>
  23054. <param name="type" type="java.lang.String"/>
  23055. <param name="value" type="java.lang.String"/>
  23056. <exception name="IOException" type="java.io.IOException"/>
  23057. </method>
  23058. <method name="getUnits" return="java.lang.String"
  23059. abstract="false" native="false" synchronized="false"
  23060. static="false" final="false" visibility="protected"
  23061. deprecated="not deprecated">
  23062. <param name="metricName" type="java.lang.String"/>
  23063. </method>
  23064. <method name="getSlope" return="int"
  23065. abstract="false" native="false" synchronized="false"
  23066. static="false" final="false" visibility="protected"
  23067. deprecated="not deprecated">
  23068. <param name="metricName" type="java.lang.String"/>
  23069. </method>
  23070. <method name="getTmax" return="int"
  23071. abstract="false" native="false" synchronized="false"
  23072. static="false" final="false" visibility="protected"
  23073. deprecated="not deprecated">
  23074. <param name="metricName" type="java.lang.String"/>
  23075. </method>
  23076. <method name="getDmax" return="int"
  23077. abstract="false" native="false" synchronized="false"
  23078. static="false" final="false" visibility="protected"
  23079. deprecated="not deprecated">
  23080. <param name="metricName" type="java.lang.String"/>
  23081. </method>
  23082. <method name="xdr_string"
  23083. abstract="false" native="false" synchronized="false"
  23084. static="false" final="false" visibility="protected"
  23085. deprecated="not deprecated">
  23086. <param name="s" type="java.lang.String"/>
  23087. <doc>
  23088. <![CDATA[Puts a string into the buffer by first writing the size of the string
  23089. as an int, followed by the bytes of the string, padded if necessary to
  23090. a multiple of 4.]]>
  23091. </doc>
  23092. </method>
  23093. <method name="xdr_int"
  23094. abstract="false" native="false" synchronized="false"
  23095. static="false" final="false" visibility="protected"
  23096. deprecated="not deprecated">
  23097. <param name="i" type="int"/>
  23098. <doc>
  23099. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  23100. </doc>
  23101. </method>
  23102. <field name="buffer" type="byte[]"
  23103. transient="false" volatile="false"
  23104. static="false" final="false" visibility="protected"
  23105. deprecated="not deprecated">
  23106. </field>
  23107. <field name="offset" type="int"
  23108. transient="false" volatile="false"
  23109. static="false" final="false" visibility="protected"
  23110. deprecated="not deprecated">
  23111. </field>
  23112. <field name="metricsServers" type="java.util.List"
  23113. transient="false" volatile="false"
  23114. static="false" final="false" visibility="protected"
  23115. deprecated="not deprecated">
  23116. </field>
  23117. <field name="datagramSocket" type="java.net.DatagramSocket"
  23118. transient="false" volatile="false"
  23119. static="false" final="false" visibility="protected"
  23120. deprecated="not deprecated">
  23121. </field>
  23122. <doc>
  23123. <![CDATA[Context for sending metrics to Ganglia.
  23124. @deprecated Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  23125. instead.]]>
  23126. </doc>
  23127. </class>
  23128. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23129. <doc>
  23130. <![CDATA[<!--
  23131. * Licensed to the Apache Software Foundation (ASF) under one
  23132. * or more contributor license agreements. See the NOTICE file
  23133. * distributed with this work for additional information
  23134. * regarding copyright ownership. The ASF licenses this file
  23135. * to you under the Apache License, Version 2.0 (the
  23136. * "License"); you may not use this file except in compliance
  23137. * with the License. You may obtain a copy of the License at
  23138. *
  23139. * http://www.apache.org/licenses/LICENSE-2.0
  23140. *
  23141. * Unless required by applicable law or agreed to in writing, software
  23142. * distributed under the License is distributed on an "AS IS" BASIS,
  23143. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23144. * See the License for the specific language governing permissions and
  23145. * limitations under the License.
  23146. -->
  23147. Implementation of the metrics package that sends metric data to
  23148. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  23149. Programmers should not normally need to use this package directly. Instead
  23150. they should use org.hadoop.metrics.
  23151. <p/>
  23152. These are the implementation specific factory attributes
  23153. (See ContextFactory.getFactory()):
  23154. <dl>
  23155. <dt><i>contextName</i>.servers</dt>
  23156. <dd>Space and/or comma separated sequence of servers to which UDP
  23157. messages should be sent.</dd>
  23158. <dt><i>contextName</i>.period</dt>
  23159. <dd>The period in seconds on which the metric data is sent to the
  23160. server(s).</dd>
  23161. <dt><i>contextName</i>.multicast</dt>
  23162. <dd>Enable multicast for Ganglia</dd>
  23163. <dt><i>contextName</i>.multicast.ttl</dt>
  23164. <dd>TTL for multicast packets</dd>
  23165. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  23166. <dd>The units for the specified metric in the specified record.</dd>
  23167. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  23168. <dd>The slope for the specified metric in the specified record.</dd>
  23169. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  23170. <dd>The tmax for the specified metric in the specified record.</dd>
  23171. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  23172. <dd>The dmax for the specified metric in the specified record.</dd>
  23173. </dl>]]>
  23174. </doc>
  23175. </package>
  23176. <package name="org.apache.hadoop.metrics.spi">
  23177. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23178. <class name="AbstractMetricsContext" extends="java.lang.Object"
  23179. abstract="true"
  23180. static="false" final="false" visibility="public"
  23181. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23182. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  23183. <constructor name="AbstractMetricsContext"
  23184. static="false" final="false" visibility="protected"
  23185. deprecated="not deprecated">
  23186. <doc>
  23187. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  23188. </doc>
  23189. </constructor>
  23190. <method name="init"
  23191. abstract="false" native="false" synchronized="false"
  23192. static="false" final="false" visibility="public"
  23193. deprecated="not deprecated">
  23194. <param name="contextName" type="java.lang.String"/>
  23195. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23196. <doc>
  23197. <![CDATA[Initializes the context.]]>
  23198. </doc>
  23199. </method>
  23200. <method name="getAttribute" return="java.lang.String"
  23201. abstract="false" native="false" synchronized="false"
  23202. static="false" final="false" visibility="protected"
  23203. deprecated="not deprecated">
  23204. <param name="attributeName" type="java.lang.String"/>
  23205. <doc>
  23206. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  23207. </doc>
  23208. </method>
  23209. <method name="getAttributeTable" return="java.util.Map"
  23210. abstract="false" native="false" synchronized="false"
  23211. static="false" final="false" visibility="protected"
  23212. deprecated="not deprecated">
  23213. <param name="tableName" type="java.lang.String"/>
  23214. <doc>
  23215. <![CDATA[Returns an attribute-value map derived from the factory attributes
  23216. by finding all factory attributes that begin with
  23217. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  23218. those attributes with the contextName and tableName stripped off.]]>
  23219. </doc>
  23220. </method>
  23221. <method name="getContextName" return="java.lang.String"
  23222. abstract="false" native="false" synchronized="false"
  23223. static="false" final="false" visibility="public"
  23224. deprecated="not deprecated">
  23225. <doc>
  23226. <![CDATA[Returns the context name.]]>
  23227. </doc>
  23228. </method>
  23229. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23230. abstract="false" native="false" synchronized="false"
  23231. static="false" final="false" visibility="public"
  23232. deprecated="not deprecated">
  23233. <doc>
  23234. <![CDATA[Returns the factory by which this context was created.]]>
  23235. </doc>
  23236. </method>
  23237. <method name="startMonitoring"
  23238. abstract="false" native="false" synchronized="true"
  23239. static="false" final="false" visibility="public"
  23240. deprecated="not deprecated">
  23241. <exception name="IOException" type="java.io.IOException"/>
  23242. <doc>
  23243. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  23244. </doc>
  23245. </method>
  23246. <method name="stopMonitoring"
  23247. abstract="false" native="false" synchronized="true"
  23248. static="false" final="false" visibility="public"
  23249. deprecated="not deprecated">
  23250. <doc>
  23251. <![CDATA[Stops monitoring. This does not free buffered data.
  23252. @see #close()]]>
  23253. </doc>
  23254. </method>
  23255. <method name="isMonitoring" return="boolean"
  23256. abstract="false" native="false" synchronized="false"
  23257. static="false" final="false" visibility="public"
  23258. deprecated="not deprecated">
  23259. <doc>
  23260. <![CDATA[Returns true if monitoring is currently in progress.]]>
  23261. </doc>
  23262. </method>
  23263. <method name="close"
  23264. abstract="false" native="false" synchronized="true"
  23265. static="false" final="false" visibility="public"
  23266. deprecated="not deprecated">
  23267. <doc>
  23268. <![CDATA[Stops monitoring and frees buffered data, returning this
  23269. object to its initial state.]]>
  23270. </doc>
  23271. </method>
  23272. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23273. abstract="false" native="false" synchronized="true"
  23274. static="false" final="true" visibility="public"
  23275. deprecated="not deprecated">
  23276. <param name="recordName" type="java.lang.String"/>
  23277. <doc>
  23278. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  23279. Throws an exception if the metrics implementation is configured with a fixed
  23280. set of record names and <code>recordName</code> is not in that set.
  23281. @param recordName the name of the record
  23282. @throws MetricsException if recordName conflicts with configuration data]]>
  23283. </doc>
  23284. </method>
  23285. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23286. abstract="false" native="false" synchronized="false"
  23287. static="false" final="false" visibility="protected"
  23288. deprecated="not deprecated">
  23289. <param name="recordName" type="java.lang.String"/>
  23290. <doc>
  23291. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  23292. @param recordName the name of the record
  23293. @return newly created instance of MetricsRecordImpl or subclass]]>
  23294. </doc>
  23295. </method>
  23296. <method name="registerUpdater"
  23297. abstract="false" native="false" synchronized="true"
  23298. static="false" final="false" visibility="public"
  23299. deprecated="not deprecated">
  23300. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23301. <doc>
  23302. <![CDATA[Registers a callback to be called at time intervals determined by
  23303. the configuration.
  23304. @param updater object to be run periodically; it should update
  23305. some metrics records]]>
  23306. </doc>
  23307. </method>
  23308. <method name="unregisterUpdater"
  23309. abstract="false" native="false" synchronized="true"
  23310. static="false" final="false" visibility="public"
  23311. deprecated="not deprecated">
  23312. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23313. <doc>
  23314. <![CDATA[Removes a callback, if it exists.
  23315. @param updater object to be removed from the callback list]]>
  23316. </doc>
  23317. </method>
  23318. <method name="getAllRecords" return="java.util.Map"
  23319. abstract="false" native="false" synchronized="true"
  23320. static="false" final="false" visibility="public"
  23321. deprecated="not deprecated">
  23322. <doc>
  23323. <![CDATA[Retrieves all the records managed by this MetricsContext.
  23324. Useful for monitoring systems that are polling-based.
  23325. @return A non-null collection of all monitoring records.]]>
  23326. </doc>
  23327. </method>
  23328. <method name="emitRecord"
  23329. abstract="true" native="false" synchronized="false"
  23330. static="false" final="false" visibility="protected"
  23331. deprecated="not deprecated">
  23332. <param name="contextName" type="java.lang.String"/>
  23333. <param name="recordName" type="java.lang.String"/>
  23334. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23335. <exception name="IOException" type="java.io.IOException"/>
  23336. <doc>
  23337. <![CDATA[Sends a record to the metrics system.]]>
  23338. </doc>
  23339. </method>
  23340. <method name="flush"
  23341. abstract="false" native="false" synchronized="false"
  23342. static="false" final="false" visibility="protected"
  23343. deprecated="not deprecated">
  23344. <exception name="IOException" type="java.io.IOException"/>
  23345. <doc>
  23346. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  23347. Subclasses may override it in order to perform some kind of flush.]]>
  23348. </doc>
  23349. </method>
  23350. <method name="update"
  23351. abstract="false" native="false" synchronized="false"
  23352. static="false" final="false" visibility="protected"
  23353. deprecated="not deprecated">
  23354. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23355. <doc>
  23356. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  23357. the internal table of metric data.]]>
  23358. </doc>
  23359. </method>
  23360. <method name="remove"
  23361. abstract="false" native="false" synchronized="false"
  23362. static="false" final="false" visibility="protected"
  23363. deprecated="not deprecated">
  23364. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23365. <doc>
  23366. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  23367. the internal table of metric data. A row matches if it has the same
  23368. tag names and values as record, but it may also have additional
  23369. tags.]]>
  23370. </doc>
  23371. </method>
  23372. <method name="getPeriod" return="int"
  23373. abstract="false" native="false" synchronized="false"
  23374. static="false" final="false" visibility="public"
  23375. deprecated="not deprecated">
  23376. <doc>
  23377. <![CDATA[Returns the timer period.]]>
  23378. </doc>
  23379. </method>
  23380. <method name="setPeriod"
  23381. abstract="false" native="false" synchronized="false"
  23382. static="false" final="false" visibility="protected"
  23383. deprecated="not deprecated">
  23384. <param name="period" type="int"/>
  23385. <doc>
  23386. <![CDATA[Sets the timer period]]>
  23387. </doc>
  23388. </method>
  23389. <method name="parseAndSetPeriod"
  23390. abstract="false" native="false" synchronized="false"
  23391. static="false" final="false" visibility="protected"
  23392. deprecated="not deprecated">
  23393. <param name="attributeName" type="java.lang.String"/>
  23394. <doc>
  23395. <![CDATA[If a period is set in the attribute passed in, override
  23396. the default with it.]]>
  23397. </doc>
  23398. </method>
  23399. <doc>
  23400. <![CDATA[The main class of the Service Provider Interface. This class should be
  23401. extended in order to integrate the Metrics API with a specific metrics
  23402. client library. <p/>
  23403. This class implements the internal table of metric data, and the timer
  23404. on which data is to be sent to the metrics system. Subclasses must
  23405. override the abstract <code>emitRecord</code> method in order to transmit
  23406. the data. <p/>
  23407. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23408. </doc>
  23409. </class>
  23410. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23411. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  23412. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23413. abstract="false"
  23414. static="false" final="false" visibility="public"
  23415. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23416. <constructor name="CompositeContext"
  23417. static="false" final="false" visibility="public"
  23418. deprecated="not deprecated">
  23419. </constructor>
  23420. <doc>
  23421. <![CDATA[@deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23422. </doc>
  23423. </class>
  23424. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  23425. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23426. <class name="MetricsRecordImpl" extends="java.lang.Object"
  23427. abstract="false"
  23428. static="false" final="false" visibility="public"
  23429. deprecated="Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  23430. instead.">
  23431. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  23432. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23433. static="false" final="false" visibility="protected"
  23434. deprecated="not deprecated">
  23435. <doc>
  23436. <![CDATA[Creates a new instance of FileRecord]]>
  23437. </doc>
  23438. </constructor>
  23439. <method name="getRecordName" return="java.lang.String"
  23440. abstract="false" native="false" synchronized="false"
  23441. static="false" final="false" visibility="public"
  23442. deprecated="not deprecated">
  23443. <doc>
  23444. <![CDATA[Returns the record name.
  23445. @return the record name]]>
  23446. </doc>
  23447. </method>
  23448. <method name="setTag"
  23449. abstract="false" native="false" synchronized="false"
  23450. static="false" final="false" visibility="public"
  23451. deprecated="not deprecated">
  23452. <param name="tagName" type="java.lang.String"/>
  23453. <param name="tagValue" type="java.lang.String"/>
  23454. <doc>
  23455. <![CDATA[Sets the named tag to the specified value.
  23456. @param tagName name of the tag
  23457. @param tagValue new value of the tag
  23458. @throws MetricsException if the tagName conflicts with the configuration]]>
  23459. </doc>
  23460. </method>
  23461. <method name="setTag"
  23462. abstract="false" native="false" synchronized="false"
  23463. static="false" final="false" visibility="public"
  23464. deprecated="not deprecated">
  23465. <param name="tagName" type="java.lang.String"/>
  23466. <param name="tagValue" type="int"/>
  23467. <doc>
  23468. <![CDATA[Sets the named tag to the specified value.
  23469. @param tagName name of the tag
  23470. @param tagValue new value of the tag
  23471. @throws MetricsException if the tagName conflicts with the configuration]]>
  23472. </doc>
  23473. </method>
  23474. <method name="setTag"
  23475. abstract="false" native="false" synchronized="false"
  23476. static="false" final="false" visibility="public"
  23477. deprecated="not deprecated">
  23478. <param name="tagName" type="java.lang.String"/>
  23479. <param name="tagValue" type="long"/>
  23480. <doc>
  23481. <![CDATA[Sets the named tag to the specified value.
  23482. @param tagName name of the tag
  23483. @param tagValue new value of the tag
  23484. @throws MetricsException if the tagName conflicts with the configuration]]>
  23485. </doc>
  23486. </method>
  23487. <method name="setTag"
  23488. abstract="false" native="false" synchronized="false"
  23489. static="false" final="false" visibility="public"
  23490. deprecated="not deprecated">
  23491. <param name="tagName" type="java.lang.String"/>
  23492. <param name="tagValue" type="short"/>
  23493. <doc>
  23494. <![CDATA[Sets the named tag to the specified value.
  23495. @param tagName name of the tag
  23496. @param tagValue new value of the tag
  23497. @throws MetricsException if the tagName conflicts with the configuration]]>
  23498. </doc>
  23499. </method>
  23500. <method name="setTag"
  23501. abstract="false" native="false" synchronized="false"
  23502. static="false" final="false" visibility="public"
  23503. deprecated="not deprecated">
  23504. <param name="tagName" type="java.lang.String"/>
  23505. <param name="tagValue" type="byte"/>
  23506. <doc>
  23507. <![CDATA[Sets the named tag to the specified value.
  23508. @param tagName name of the tag
  23509. @param tagValue new value of the tag
  23510. @throws MetricsException if the tagName conflicts with the configuration]]>
  23511. </doc>
  23512. </method>
  23513. <method name="removeTag"
  23514. abstract="false" native="false" synchronized="false"
  23515. static="false" final="false" visibility="public"
  23516. deprecated="not deprecated">
  23517. <param name="tagName" type="java.lang.String"/>
  23518. <doc>
  23519. <![CDATA[Removes any tag of the specified name.]]>
  23520. </doc>
  23521. </method>
  23522. <method name="setMetric"
  23523. abstract="false" native="false" synchronized="false"
  23524. static="false" final="false" visibility="public"
  23525. deprecated="not deprecated">
  23526. <param name="metricName" type="java.lang.String"/>
  23527. <param name="metricValue" type="int"/>
  23528. <doc>
  23529. <![CDATA[Sets the named metric to the specified value.
  23530. @param metricName name of the metric
  23531. @param metricValue new value of the metric
  23532. @throws MetricsException if the metricName or the type of the metricValue
  23533. conflicts with the configuration]]>
  23534. </doc>
  23535. </method>
  23536. <method name="setMetric"
  23537. abstract="false" native="false" synchronized="false"
  23538. static="false" final="false" visibility="public"
  23539. deprecated="not deprecated">
  23540. <param name="metricName" type="java.lang.String"/>
  23541. <param name="metricValue" type="long"/>
  23542. <doc>
  23543. <![CDATA[Sets the named metric to the specified value.
  23544. @param metricName name of the metric
  23545. @param metricValue new value of the metric
  23546. @throws MetricsException if the metricName or the type of the metricValue
  23547. conflicts with the configuration]]>
  23548. </doc>
  23549. </method>
  23550. <method name="setMetric"
  23551. abstract="false" native="false" synchronized="false"
  23552. static="false" final="false" visibility="public"
  23553. deprecated="not deprecated">
  23554. <param name="metricName" type="java.lang.String"/>
  23555. <param name="metricValue" type="short"/>
  23556. <doc>
  23557. <![CDATA[Sets the named metric to the specified value.
  23558. @param metricName name of the metric
  23559. @param metricValue new value of the metric
  23560. @throws MetricsException if the metricName or the type of the metricValue
  23561. conflicts with the configuration]]>
  23562. </doc>
  23563. </method>
  23564. <method name="setMetric"
  23565. abstract="false" native="false" synchronized="false"
  23566. static="false" final="false" visibility="public"
  23567. deprecated="not deprecated">
  23568. <param name="metricName" type="java.lang.String"/>
  23569. <param name="metricValue" type="byte"/>
  23570. <doc>
  23571. <![CDATA[Sets the named metric to the specified value.
  23572. @param metricName name of the metric
  23573. @param metricValue new value of the metric
  23574. @throws MetricsException if the metricName or the type of the metricValue
  23575. conflicts with the configuration]]>
  23576. </doc>
  23577. </method>
  23578. <method name="setMetric"
  23579. abstract="false" native="false" synchronized="false"
  23580. static="false" final="false" visibility="public"
  23581. deprecated="not deprecated">
  23582. <param name="metricName" type="java.lang.String"/>
  23583. <param name="metricValue" type="float"/>
  23584. <doc>
  23585. <![CDATA[Sets the named metric to the specified value.
  23586. @param metricName name of the metric
  23587. @param metricValue new value of the metric
  23588. @throws MetricsException if the metricName or the type of the metricValue
  23589. conflicts with the configuration]]>
  23590. </doc>
  23591. </method>
  23592. <method name="incrMetric"
  23593. abstract="false" native="false" synchronized="false"
  23594. static="false" final="false" visibility="public"
  23595. deprecated="not deprecated">
  23596. <param name="metricName" type="java.lang.String"/>
  23597. <param name="metricValue" type="int"/>
  23598. <doc>
  23599. <![CDATA[Increments the named metric by the specified value.
  23600. @param metricName name of the metric
  23601. @param metricValue incremental value
  23602. @throws MetricsException if the metricName or the type of the metricValue
  23603. conflicts with the configuration]]>
  23604. </doc>
  23605. </method>
  23606. <method name="incrMetric"
  23607. abstract="false" native="false" synchronized="false"
  23608. static="false" final="false" visibility="public"
  23609. deprecated="not deprecated">
  23610. <param name="metricName" type="java.lang.String"/>
  23611. <param name="metricValue" type="long"/>
  23612. <doc>
  23613. <![CDATA[Increments the named metric by the specified value.
  23614. @param metricName name of the metric
  23615. @param metricValue incremental value
  23616. @throws MetricsException if the metricName or the type of the metricValue
  23617. conflicts with the configuration]]>
  23618. </doc>
  23619. </method>
  23620. <method name="incrMetric"
  23621. abstract="false" native="false" synchronized="false"
  23622. static="false" final="false" visibility="public"
  23623. deprecated="not deprecated">
  23624. <param name="metricName" type="java.lang.String"/>
  23625. <param name="metricValue" type="short"/>
  23626. <doc>
  23627. <![CDATA[Increments the named metric by the specified value.
  23628. @param metricName name of the metric
  23629. @param metricValue incremental value
  23630. @throws MetricsException if the metricName or the type of the metricValue
  23631. conflicts with the configuration]]>
  23632. </doc>
  23633. </method>
  23634. <method name="incrMetric"
  23635. abstract="false" native="false" synchronized="false"
  23636. static="false" final="false" visibility="public"
  23637. deprecated="not deprecated">
  23638. <param name="metricName" type="java.lang.String"/>
  23639. <param name="metricValue" type="byte"/>
  23640. <doc>
  23641. <![CDATA[Increments the named metric by the specified value.
  23642. @param metricName name of the metric
  23643. @param metricValue incremental value
  23644. @throws MetricsException if the metricName or the type of the metricValue
  23645. conflicts with the configuration]]>
  23646. </doc>
  23647. </method>
  23648. <method name="incrMetric"
  23649. abstract="false" native="false" synchronized="false"
  23650. static="false" final="false" visibility="public"
  23651. deprecated="not deprecated">
  23652. <param name="metricName" type="java.lang.String"/>
  23653. <param name="metricValue" type="float"/>
  23654. <doc>
  23655. <![CDATA[Increments the named metric by the specified value.
  23656. @param metricName name of the metric
  23657. @param metricValue incremental value
  23658. @throws MetricsException if the metricName or the type of the metricValue
  23659. conflicts with the configuration]]>
  23660. </doc>
  23661. </method>
  23662. <method name="update"
  23663. abstract="false" native="false" synchronized="false"
  23664. static="false" final="false" visibility="public"
  23665. deprecated="not deprecated">
  23666. <doc>
  23667. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  23668. If the tag values match an existing row, that row is updated;
  23669. otherwise, a new row is added.]]>
  23670. </doc>
  23671. </method>
  23672. <method name="remove"
  23673. abstract="false" native="false" synchronized="false"
  23674. static="false" final="false" visibility="public"
  23675. deprecated="not deprecated">
  23676. <doc>
  23677. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  23678. that equal the tags that have been set on this record.]]>
  23679. </doc>
  23680. </method>
  23681. <doc>
  23682. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  23683. from which it was created, and delegates back to it on <code>update</code>
  23684. and <code>remove()</code>.
  23685. @deprecated Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  23686. instead.]]>
  23687. </doc>
  23688. </class>
  23689. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23690. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  23691. <class name="MetricValue" extends="java.lang.Object"
  23692. abstract="false"
  23693. static="false" final="false" visibility="public"
  23694. deprecated="not deprecated">
  23695. <constructor name="MetricValue" type="java.lang.Number, boolean"
  23696. static="false" final="false" visibility="public"
  23697. deprecated="not deprecated">
  23698. <doc>
  23699. <![CDATA[Creates a new instance of MetricValue]]>
  23700. </doc>
  23701. </constructor>
  23702. <method name="isIncrement" return="boolean"
  23703. abstract="false" native="false" synchronized="false"
  23704. static="false" final="false" visibility="public"
  23705. deprecated="not deprecated">
  23706. </method>
  23707. <method name="isAbsolute" return="boolean"
  23708. abstract="false" native="false" synchronized="false"
  23709. static="false" final="false" visibility="public"
  23710. deprecated="not deprecated">
  23711. </method>
  23712. <method name="getNumber" return="java.lang.Number"
  23713. abstract="false" native="false" synchronized="false"
  23714. static="false" final="false" visibility="public"
  23715. deprecated="not deprecated">
  23716. </method>
  23717. <field name="ABSOLUTE" type="boolean"
  23718. transient="false" volatile="false"
  23719. static="true" final="true" visibility="public"
  23720. deprecated="not deprecated">
  23721. </field>
  23722. <field name="INCREMENT" type="boolean"
  23723. transient="false" volatile="false"
  23724. static="true" final="true" visibility="public"
  23725. deprecated="not deprecated">
  23726. </field>
  23727. <doc>
  23728. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  23729. </doc>
  23730. </class>
  23731. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  23732. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  23733. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23734. abstract="false"
  23735. static="false" final="false" visibility="public"
  23736. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23737. <constructor name="NoEmitMetricsContext"
  23738. static="false" final="false" visibility="public"
  23739. deprecated="not deprecated">
  23740. <doc>
  23741. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  23742. </doc>
  23743. </constructor>
  23744. <doc>
  23745. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  23746. does save it for retrieval with getAllRecords().
  23747. This is useful if you want to support {@link MetricsServlet}, but
  23748. not emit metrics in any other way.
  23749. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23750. </doc>
  23751. </class>
  23752. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  23753. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  23754. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23755. abstract="false"
  23756. static="false" final="false" visibility="public"
  23757. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23758. <constructor name="NullContext"
  23759. static="false" final="false" visibility="public"
  23760. deprecated="not deprecated">
  23761. <doc>
  23762. <![CDATA[Creates a new instance of NullContext]]>
  23763. </doc>
  23764. </constructor>
  23765. <doc>
  23766. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  23767. default context, so that no performance data is emitted if no configuration
  23768. data is found.
  23769. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23770. </doc>
  23771. </class>
  23772. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  23773. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  23774. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23775. abstract="false"
  23776. static="false" final="false" visibility="public"
  23777. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23778. <constructor name="NullContextWithUpdateThread"
  23779. static="false" final="false" visibility="public"
  23780. deprecated="not deprecated">
  23781. <doc>
  23782. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  23783. </doc>
  23784. </constructor>
  23785. <doc>
  23786. <![CDATA[A null context which has a thread calling
  23787. periodically when monitoring is started. This keeps the data sampled
  23788. correctly.
  23789. In all other respects, this is like the NULL context: No data is emitted.
  23790. This is suitable for Monitoring systems like JMX which reads the metrics
  23791. when someone reads the data from JMX.
  23792. The default impl of start and stop monitoring:
  23793. is the AbstractMetricsContext is good enough.
  23794. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23795. </doc>
  23796. </class>
  23797. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  23798. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  23799. <class name="OutputRecord" extends="java.lang.Object"
  23800. abstract="false"
  23801. static="false" final="false" visibility="public"
  23802. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23803. <method name="getTagNames" return="java.util.Set"
  23804. abstract="false" native="false" synchronized="false"
  23805. static="false" final="false" visibility="public"
  23806. deprecated="not deprecated">
  23807. <doc>
  23808. <![CDATA[Returns the set of tag names]]>
  23809. </doc>
  23810. </method>
  23811. <method name="getTag" return="java.lang.Object"
  23812. abstract="false" native="false" synchronized="false"
  23813. static="false" final="false" visibility="public"
  23814. deprecated="not deprecated">
  23815. <param name="name" type="java.lang.String"/>
  23816. <doc>
  23817. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  23818. @return the tag value, or null if there is no such tag]]>
  23819. </doc>
  23820. </method>
  23821. <method name="getMetricNames" return="java.util.Set"
  23822. abstract="false" native="false" synchronized="false"
  23823. static="false" final="false" visibility="public"
  23824. deprecated="not deprecated">
  23825. <doc>
  23826. <![CDATA[Returns the set of metric names.]]>
  23827. </doc>
  23828. </method>
  23829. <method name="getMetric" return="java.lang.Number"
  23830. abstract="false" native="false" synchronized="false"
  23831. static="false" final="false" visibility="public"
  23832. deprecated="not deprecated">
  23833. <param name="name" type="java.lang.String"/>
  23834. <doc>
  23835. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  23836. </doc>
  23837. </method>
  23838. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  23839. abstract="false" native="false" synchronized="false"
  23840. static="false" final="false" visibility="public"
  23841. deprecated="not deprecated">
  23842. <doc>
  23843. <![CDATA[Returns a copy of this record's tags.]]>
  23844. </doc>
  23845. </method>
  23846. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  23847. abstract="false" native="false" synchronized="false"
  23848. static="false" final="false" visibility="public"
  23849. deprecated="not deprecated">
  23850. <doc>
  23851. <![CDATA[Returns a copy of this record's metrics.]]>
  23852. </doc>
  23853. </method>
  23854. <doc>
  23855. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  23856. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23857. </doc>
  23858. </class>
  23859. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  23860. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  23861. <class name="Util" extends="java.lang.Object"
  23862. abstract="false"
  23863. static="false" final="false" visibility="public"
  23864. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  23865. <method name="parse" return="java.util.List"
  23866. abstract="false" native="false" synchronized="false"
  23867. static="true" final="false" visibility="public"
  23868. deprecated="not deprecated">
  23869. <param name="specs" type="java.lang.String"/>
  23870. <param name="defaultPort" type="int"/>
  23871. <doc>
  23872. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  23873. of the form <i>hostname</i> or <i>hostname:port</i>. If
  23874. the specs string is null, defaults to localhost:defaultPort.
  23875. @return a list of InetSocketAddress objects.]]>
  23876. </doc>
  23877. </method>
  23878. <doc>
  23879. <![CDATA[Static utility methods
  23880. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  23881. </doc>
  23882. </class>
  23883. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  23884. <doc>
  23885. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  23886. an interface allowing a variety of metrics reporting implementations to be
  23887. plugged in to the Metrics API. Examples of such implementations can be found
  23888. in the packages <code>org.apache.hadoop.metrics.file</code> and
  23889. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  23890. Plugging in an implementation involves writing a concrete subclass of
  23891. <code>AbstractMetricsContext</code>. The subclass should get its
  23892. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  23893. method.]]>
  23894. </doc>
  23895. </package>
  23896. <package name="org.apache.hadoop.metrics2">
  23897. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  23898. <class name="AbstractMetric" extends="java.lang.Object"
  23899. abstract="true"
  23900. static="false" final="false" visibility="public"
  23901. deprecated="not deprecated">
  23902. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  23903. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  23904. static="false" final="false" visibility="protected"
  23905. deprecated="not deprecated">
  23906. <doc>
  23907. <![CDATA[Construct the metric
  23908. @param info about the metric]]>
  23909. </doc>
  23910. </constructor>
  23911. <method name="name" return="java.lang.String"
  23912. abstract="false" native="false" synchronized="false"
  23913. static="false" final="false" visibility="public"
  23914. deprecated="not deprecated">
  23915. </method>
  23916. <method name="description" return="java.lang.String"
  23917. abstract="false" native="false" synchronized="false"
  23918. static="false" final="false" visibility="public"
  23919. deprecated="not deprecated">
  23920. </method>
  23921. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  23922. abstract="false" native="false" synchronized="false"
  23923. static="false" final="false" visibility="protected"
  23924. deprecated="not deprecated">
  23925. </method>
  23926. <method name="value" return="java.lang.Number"
  23927. abstract="true" native="false" synchronized="false"
  23928. static="false" final="false" visibility="public"
  23929. deprecated="not deprecated">
  23930. <doc>
  23931. <![CDATA[Get the value of the metric
  23932. @return the value of the metric]]>
  23933. </doc>
  23934. </method>
  23935. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  23936. abstract="true" native="false" synchronized="false"
  23937. static="false" final="false" visibility="public"
  23938. deprecated="not deprecated">
  23939. <doc>
  23940. <![CDATA[Get the type of the metric
  23941. @return the type of the metric]]>
  23942. </doc>
  23943. </method>
  23944. <method name="visit"
  23945. abstract="true" native="false" synchronized="false"
  23946. static="false" final="false" visibility="public"
  23947. deprecated="not deprecated">
  23948. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  23949. <doc>
  23950. <![CDATA[Accept a visitor interface
  23951. @param visitor of the metric]]>
  23952. </doc>
  23953. </method>
  23954. <method name="equals" return="boolean"
  23955. abstract="false" native="false" synchronized="false"
  23956. static="false" final="false" visibility="public"
  23957. deprecated="not deprecated">
  23958. <param name="obj" type="java.lang.Object"/>
  23959. </method>
  23960. <method name="hashCode" return="int"
  23961. abstract="false" native="false" synchronized="false"
  23962. static="false" final="false" visibility="public"
  23963. deprecated="not deprecated">
  23964. </method>
  23965. <method name="toString" return="java.lang.String"
  23966. abstract="false" native="false" synchronized="false"
  23967. static="false" final="false" visibility="public"
  23968. deprecated="not deprecated">
  23969. </method>
  23970. <doc>
  23971. <![CDATA[The immutable metric]]>
  23972. </doc>
  23973. </class>
  23974. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  23975. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  23976. <interface name="MetricsCollector" abstract="true"
  23977. static="false" final="false" visibility="public"
  23978. deprecated="not deprecated">
  23979. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  23980. abstract="false" native="false" synchronized="false"
  23981. static="false" final="false" visibility="public"
  23982. deprecated="not deprecated">
  23983. <param name="name" type="java.lang.String"/>
  23984. <doc>
  23985. <![CDATA[Add a metrics record
  23986. @param name of the record
  23987. @return a metrics record builder for the record]]>
  23988. </doc>
  23989. </method>
  23990. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  23991. abstract="false" native="false" synchronized="false"
  23992. static="false" final="false" visibility="public"
  23993. deprecated="not deprecated">
  23994. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  23995. <doc>
  23996. <![CDATA[Add a metrics record
  23997. @param info of the record
  23998. @return a metrics record builder for the record]]>
  23999. </doc>
  24000. </method>
  24001. <doc>
  24002. <![CDATA[The metrics collector interface]]>
  24003. </doc>
  24004. </interface>
  24005. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  24006. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  24007. <class name="MetricsException" extends="java.lang.RuntimeException"
  24008. abstract="false"
  24009. static="false" final="false" visibility="public"
  24010. deprecated="not deprecated">
  24011. <constructor name="MetricsException" type="java.lang.String"
  24012. static="false" final="false" visibility="public"
  24013. deprecated="not deprecated">
  24014. <doc>
  24015. <![CDATA[Construct the exception with a message
  24016. @param message for the exception]]>
  24017. </doc>
  24018. </constructor>
  24019. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <doc>
  24023. <![CDATA[Construct the exception with a message and a cause
  24024. @param message for the exception
  24025. @param cause of the exception]]>
  24026. </doc>
  24027. </constructor>
  24028. <constructor name="MetricsException" type="java.lang.Throwable"
  24029. static="false" final="false" visibility="public"
  24030. deprecated="not deprecated">
  24031. <doc>
  24032. <![CDATA[Construct the exception with a cause
  24033. @param cause of the exception]]>
  24034. </doc>
  24035. </constructor>
  24036. <doc>
  24037. <![CDATA[A general metrics exception wrapper]]>
  24038. </doc>
  24039. </class>
  24040. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  24041. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  24042. <class name="MetricsFilter" extends="java.lang.Object"
  24043. abstract="true"
  24044. static="false" final="false" visibility="public"
  24045. deprecated="not deprecated">
  24046. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24047. <constructor name="MetricsFilter"
  24048. static="false" final="false" visibility="public"
  24049. deprecated="not deprecated">
  24050. </constructor>
  24051. <method name="accepts" return="boolean"
  24052. abstract="true" native="false" synchronized="false"
  24053. static="false" final="false" visibility="public"
  24054. deprecated="not deprecated">
  24055. <param name="name" type="java.lang.String"/>
  24056. <doc>
  24057. <![CDATA[Whether to accept the name
  24058. @param name to filter on
  24059. @return true to accept; false otherwise.]]>
  24060. </doc>
  24061. </method>
  24062. <method name="accepts" return="boolean"
  24063. abstract="true" native="false" synchronized="false"
  24064. static="false" final="false" visibility="public"
  24065. deprecated="not deprecated">
  24066. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24067. <doc>
  24068. <![CDATA[Whether to accept the tag
  24069. @param tag to filter on
  24070. @return true to accept; false otherwise]]>
  24071. </doc>
  24072. </method>
  24073. <method name="accepts" return="boolean"
  24074. abstract="true" native="false" synchronized="false"
  24075. static="false" final="false" visibility="public"
  24076. deprecated="not deprecated">
  24077. <param name="tags" type="java.lang.Iterable"/>
  24078. <doc>
  24079. <![CDATA[Whether to accept the tags
  24080. @param tags to filter on
  24081. @return true to accept; false otherwise]]>
  24082. </doc>
  24083. </method>
  24084. <method name="accepts" return="boolean"
  24085. abstract="false" native="false" synchronized="false"
  24086. static="false" final="false" visibility="public"
  24087. deprecated="not deprecated">
  24088. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24089. <doc>
  24090. <![CDATA[Whether to accept the record
  24091. @param record to filter on
  24092. @return true to accept; false otherwise.]]>
  24093. </doc>
  24094. </method>
  24095. <doc>
  24096. <![CDATA[The metrics filter interface]]>
  24097. </doc>
  24098. </class>
  24099. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  24100. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  24101. <interface name="MetricsInfo" abstract="true"
  24102. static="false" final="false" visibility="public"
  24103. deprecated="not deprecated">
  24104. <method name="name" return="java.lang.String"
  24105. abstract="false" native="false" synchronized="false"
  24106. static="false" final="false" visibility="public"
  24107. deprecated="not deprecated">
  24108. <doc>
  24109. <![CDATA[@return the name of the metric/tag]]>
  24110. </doc>
  24111. </method>
  24112. <method name="description" return="java.lang.String"
  24113. abstract="false" native="false" synchronized="false"
  24114. static="false" final="false" visibility="public"
  24115. deprecated="not deprecated">
  24116. <doc>
  24117. <![CDATA[@return the description of the metric/tag]]>
  24118. </doc>
  24119. </method>
  24120. <doc>
  24121. <![CDATA[Interface to provide immutable meta info for metrics]]>
  24122. </doc>
  24123. </interface>
  24124. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  24125. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24126. <interface name="MetricsPlugin" abstract="true"
  24127. static="false" final="false" visibility="public"
  24128. deprecated="not deprecated">
  24129. <method name="init"
  24130. abstract="false" native="false" synchronized="false"
  24131. static="false" final="false" visibility="public"
  24132. deprecated="not deprecated">
  24133. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  24134. <doc>
  24135. <![CDATA[Initialize the plugin
  24136. @param conf the configuration object for the plugin]]>
  24137. </doc>
  24138. </method>
  24139. <doc>
  24140. <![CDATA[The plugin interface for the metrics framework]]>
  24141. </doc>
  24142. </interface>
  24143. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  24144. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  24145. <interface name="MetricsRecord" abstract="true"
  24146. static="false" final="false" visibility="public"
  24147. deprecated="not deprecated">
  24148. <method name="timestamp" return="long"
  24149. abstract="false" native="false" synchronized="false"
  24150. static="false" final="false" visibility="public"
  24151. deprecated="not deprecated">
  24152. <doc>
  24153. <![CDATA[Get the timestamp of the metrics
  24154. @return the timestamp]]>
  24155. </doc>
  24156. </method>
  24157. <method name="name" return="java.lang.String"
  24158. abstract="false" native="false" synchronized="false"
  24159. static="false" final="false" visibility="public"
  24160. deprecated="not deprecated">
  24161. <doc>
  24162. <![CDATA[@return the record name]]>
  24163. </doc>
  24164. </method>
  24165. <method name="description" return="java.lang.String"
  24166. abstract="false" native="false" synchronized="false"
  24167. static="false" final="false" visibility="public"
  24168. deprecated="not deprecated">
  24169. <doc>
  24170. <![CDATA[@return the description of the record]]>
  24171. </doc>
  24172. </method>
  24173. <method name="context" return="java.lang.String"
  24174. abstract="false" native="false" synchronized="false"
  24175. static="false" final="false" visibility="public"
  24176. deprecated="not deprecated">
  24177. <doc>
  24178. <![CDATA[@return the context name of the record]]>
  24179. </doc>
  24180. </method>
  24181. <method name="tags" return="java.util.Collection"
  24182. abstract="false" native="false" synchronized="false"
  24183. static="false" final="false" visibility="public"
  24184. deprecated="not deprecated">
  24185. <doc>
  24186. <![CDATA[Get the tags of the record
  24187. Note: returning a collection instead of iterable as we
  24188. need to use tags as keys (hence Collection#hashCode etc.) in maps
  24189. @return an unmodifiable collection of tags]]>
  24190. </doc>
  24191. </method>
  24192. <method name="metrics" return="java.lang.Iterable"
  24193. abstract="false" native="false" synchronized="false"
  24194. static="false" final="false" visibility="public"
  24195. deprecated="not deprecated">
  24196. <doc>
  24197. <![CDATA[Get the metrics of the record
  24198. @return an immutable iterable interface for metrics]]>
  24199. </doc>
  24200. </method>
  24201. <doc>
  24202. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  24203. </doc>
  24204. </interface>
  24205. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  24206. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24207. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  24208. abstract="true"
  24209. static="false" final="false" visibility="public"
  24210. deprecated="not deprecated">
  24211. <constructor name="MetricsRecordBuilder"
  24212. static="false" final="false" visibility="public"
  24213. deprecated="not deprecated">
  24214. </constructor>
  24215. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24216. abstract="true" native="false" synchronized="false"
  24217. static="false" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24220. <param name="value" type="java.lang.String"/>
  24221. <doc>
  24222. <![CDATA[Add a metrics tag
  24223. @param info metadata of the tag
  24224. @param value of the tag
  24225. @return self]]>
  24226. </doc>
  24227. </method>
  24228. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24229. abstract="true" native="false" synchronized="false"
  24230. static="false" final="false" visibility="public"
  24231. deprecated="not deprecated">
  24232. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24233. <doc>
  24234. <![CDATA[Add an immutable metrics tag object
  24235. @param tag a pre-made tag object (potentially save an object construction)
  24236. @return self]]>
  24237. </doc>
  24238. </method>
  24239. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24240. abstract="true" native="false" synchronized="false"
  24241. static="false" final="false" visibility="public"
  24242. deprecated="not deprecated">
  24243. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24244. <doc>
  24245. <![CDATA[Add a pre-made immutable metric object
  24246. @param metric the pre-made metric to save an object construction
  24247. @return self]]>
  24248. </doc>
  24249. </method>
  24250. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24251. abstract="true" native="false" synchronized="false"
  24252. static="false" final="false" visibility="public"
  24253. deprecated="not deprecated">
  24254. <param name="value" type="java.lang.String"/>
  24255. <doc>
  24256. <![CDATA[Set the context tag
  24257. @param value of the context
  24258. @return self]]>
  24259. </doc>
  24260. </method>
  24261. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24262. abstract="true" native="false" synchronized="false"
  24263. static="false" final="false" visibility="public"
  24264. deprecated="not deprecated">
  24265. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24266. <param name="value" type="int"/>
  24267. <doc>
  24268. <![CDATA[Add an integer metric
  24269. @param info metadata of the metric
  24270. @param value of the metric
  24271. @return self]]>
  24272. </doc>
  24273. </method>
  24274. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24275. abstract="true" native="false" synchronized="false"
  24276. static="false" final="false" visibility="public"
  24277. deprecated="not deprecated">
  24278. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24279. <param name="value" type="long"/>
  24280. <doc>
  24281. <![CDATA[Add an long metric
  24282. @param info metadata of the metric
  24283. @param value of the metric
  24284. @return self]]>
  24285. </doc>
  24286. </method>
  24287. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24288. abstract="true" native="false" synchronized="false"
  24289. static="false" final="false" visibility="public"
  24290. deprecated="not deprecated">
  24291. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24292. <param name="value" type="int"/>
  24293. <doc>
  24294. <![CDATA[Add a integer gauge metric
  24295. @param info metadata of the metric
  24296. @param value of the metric
  24297. @return self]]>
  24298. </doc>
  24299. </method>
  24300. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24301. abstract="true" native="false" synchronized="false"
  24302. static="false" final="false" visibility="public"
  24303. deprecated="not deprecated">
  24304. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24305. <param name="value" type="long"/>
  24306. <doc>
  24307. <![CDATA[Add a long gauge metric
  24308. @param info metadata of the metric
  24309. @param value of the metric
  24310. @return self]]>
  24311. </doc>
  24312. </method>
  24313. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24314. abstract="true" native="false" synchronized="false"
  24315. static="false" final="false" visibility="public"
  24316. deprecated="not deprecated">
  24317. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24318. <param name="value" type="float"/>
  24319. <doc>
  24320. <![CDATA[Add a float gauge metric
  24321. @param info metadata of the metric
  24322. @param value of the metric
  24323. @return self]]>
  24324. </doc>
  24325. </method>
  24326. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24327. abstract="true" native="false" synchronized="false"
  24328. static="false" final="false" visibility="public"
  24329. deprecated="not deprecated">
  24330. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24331. <param name="value" type="double"/>
  24332. <doc>
  24333. <![CDATA[Add a double gauge metric
  24334. @param info metadata of the metric
  24335. @param value of the metric
  24336. @return self]]>
  24337. </doc>
  24338. </method>
  24339. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24340. abstract="true" native="false" synchronized="false"
  24341. static="false" final="false" visibility="public"
  24342. deprecated="not deprecated">
  24343. <doc>
  24344. <![CDATA[@return the parent metrics collector object]]>
  24345. </doc>
  24346. </method>
  24347. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  24348. abstract="false" native="false" synchronized="false"
  24349. static="false" final="false" visibility="public"
  24350. deprecated="not deprecated">
  24351. <doc>
  24352. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  24353. @return the parent metrics collector object]]>
  24354. </doc>
  24355. </method>
  24356. <doc>
  24357. <![CDATA[The metrics record builder interface]]>
  24358. </doc>
  24359. </class>
  24360. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  24361. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  24362. <interface name="MetricsSink" abstract="true"
  24363. static="false" final="false" visibility="public"
  24364. deprecated="not deprecated">
  24365. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  24366. <method name="putMetrics"
  24367. abstract="false" native="false" synchronized="false"
  24368. static="false" final="false" visibility="public"
  24369. deprecated="not deprecated">
  24370. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24371. <doc>
  24372. <![CDATA[Put a metrics record in the sink
  24373. @param record the record to put]]>
  24374. </doc>
  24375. </method>
  24376. <method name="flush"
  24377. abstract="false" native="false" synchronized="false"
  24378. static="false" final="false" visibility="public"
  24379. deprecated="not deprecated">
  24380. <doc>
  24381. <![CDATA[Flush any buffered metrics]]>
  24382. </doc>
  24383. </method>
  24384. <doc>
  24385. <![CDATA[The metrics sink interface. <p>
  24386. Implementations of this interface consume the {@link MetricsRecord} generated
  24387. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  24388. periodically pushes the {@link MetricsRecord} to the sink using
  24389. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  24390. implements {@link Closeable}, then the MetricsSystem will close the sink when
  24391. it is stopped.]]>
  24392. </doc>
  24393. </interface>
  24394. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  24395. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  24396. <interface name="MetricsSource" abstract="true"
  24397. static="false" final="false" visibility="public"
  24398. deprecated="not deprecated">
  24399. <method name="getMetrics"
  24400. abstract="false" native="false" synchronized="false"
  24401. static="false" final="false" visibility="public"
  24402. deprecated="not deprecated">
  24403. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  24404. <param name="all" type="boolean"/>
  24405. <doc>
  24406. <![CDATA[Get metrics from the source
  24407. @param collector to contain the resulting metrics snapshot
  24408. @param all if true, return all metrics even if unchanged.]]>
  24409. </doc>
  24410. </method>
  24411. <doc>
  24412. <![CDATA[The metrics source interface]]>
  24413. </doc>
  24414. </interface>
  24415. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  24416. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  24417. <class name="MetricsSystem" extends="java.lang.Object"
  24418. abstract="true"
  24419. static="false" final="false" visibility="public"
  24420. deprecated="not deprecated">
  24421. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  24422. <constructor name="MetricsSystem"
  24423. static="false" final="false" visibility="public"
  24424. deprecated="not deprecated">
  24425. </constructor>
  24426. <method name="unregisterSource"
  24427. abstract="true" native="false" synchronized="false"
  24428. static="false" final="false" visibility="public"
  24429. deprecated="not deprecated">
  24430. <param name="name" type="java.lang.String"/>
  24431. <doc>
  24432. <![CDATA[Unregister a metrics source
  24433. @param name of the source. This is the name you use to call register()]]>
  24434. </doc>
  24435. </method>
  24436. <method name="register" return="T"
  24437. abstract="false" native="false" synchronized="false"
  24438. static="false" final="false" visibility="public"
  24439. deprecated="not deprecated">
  24440. <param name="source" type="T"/>
  24441. <doc>
  24442. <![CDATA[Register a metrics source (deriving name and description from the object)
  24443. @param <T> the actual type of the source object
  24444. @param source object to register
  24445. @return the source object
  24446. @exception MetricsException]]>
  24447. </doc>
  24448. </method>
  24449. <method name="register" return="T"
  24450. abstract="true" native="false" synchronized="false"
  24451. static="false" final="false" visibility="public"
  24452. deprecated="not deprecated">
  24453. <param name="name" type="java.lang.String"/>
  24454. <param name="desc" type="java.lang.String"/>
  24455. <param name="source" type="T"/>
  24456. <doc>
  24457. <![CDATA[Register a metrics source
  24458. @param <T> the actual type of the source object
  24459. @param source object to register
  24460. @param name of the source. Must be unique or null (then extracted from
  24461. the annotations of the source object.)
  24462. @param desc the description of the source (or null. See above.)
  24463. @return the source object
  24464. @exception MetricsException]]>
  24465. </doc>
  24466. </method>
  24467. <method name="register"
  24468. abstract="true" native="false" synchronized="false"
  24469. static="false" final="false" visibility="public"
  24470. deprecated="not deprecated">
  24471. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  24472. <doc>
  24473. <![CDATA[Register a callback interface for JMX events
  24474. @param callback the callback object implementing the MBean interface.]]>
  24475. </doc>
  24476. </method>
  24477. <method name="publishMetricsNow"
  24478. abstract="true" native="false" synchronized="false"
  24479. static="false" final="false" visibility="public"
  24480. deprecated="not deprecated">
  24481. <doc>
  24482. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  24483. This is a "soft" request: the expectation is that a best effort will be
  24484. done to synchronously snapshot the metrics from all the sources and put
  24485. them in all the sinks (including flushing the sinks) before returning to
  24486. the caller. If this can't be accomplished in reasonable time it's OK to
  24487. return to the caller before everything is done.]]>
  24488. </doc>
  24489. </method>
  24490. <method name="shutdown" return="boolean"
  24491. abstract="true" native="false" synchronized="false"
  24492. static="false" final="false" visibility="public"
  24493. deprecated="not deprecated">
  24494. <doc>
  24495. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  24496. The MetricsSystemMXBean will be unregistered.
  24497. @return true if shutdown completed]]>
  24498. </doc>
  24499. </method>
  24500. <doc>
  24501. <![CDATA[The metrics system interface]]>
  24502. </doc>
  24503. </class>
  24504. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  24505. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24506. <interface name="MetricsSystemMXBean" abstract="true"
  24507. static="false" final="false" visibility="public"
  24508. deprecated="not deprecated">
  24509. <method name="start"
  24510. abstract="false" native="false" synchronized="false"
  24511. static="false" final="false" visibility="public"
  24512. deprecated="not deprecated">
  24513. <doc>
  24514. <![CDATA[Start the metrics system
  24515. @throws MetricsException]]>
  24516. </doc>
  24517. </method>
  24518. <method name="stop"
  24519. abstract="false" native="false" synchronized="false"
  24520. static="false" final="false" visibility="public"
  24521. deprecated="not deprecated">
  24522. <doc>
  24523. <![CDATA[Stop the metrics system
  24524. @throws MetricsException]]>
  24525. </doc>
  24526. </method>
  24527. <method name="startMetricsMBeans"
  24528. abstract="false" native="false" synchronized="false"
  24529. static="false" final="false" visibility="public"
  24530. deprecated="not deprecated">
  24531. <doc>
  24532. <![CDATA[Start metrics MBeans
  24533. @throws MetricsException]]>
  24534. </doc>
  24535. </method>
  24536. <method name="stopMetricsMBeans"
  24537. abstract="false" native="false" synchronized="false"
  24538. static="false" final="false" visibility="public"
  24539. deprecated="not deprecated">
  24540. <doc>
  24541. <![CDATA[Stop metrics MBeans.
  24542. Note, it doesn't stop the metrics system control MBean,
  24543. i.e this interface.
  24544. @throws MetricsException]]>
  24545. </doc>
  24546. </method>
  24547. <method name="currentConfig" return="java.lang.String"
  24548. abstract="false" native="false" synchronized="false"
  24549. static="false" final="false" visibility="public"
  24550. deprecated="not deprecated">
  24551. <doc>
  24552. <![CDATA[@return the current config
  24553. Avoided getConfig, as it'll turn into a "Config" attribute,
  24554. which doesn't support multiple line values in jconsole.
  24555. @throws MetricsException]]>
  24556. </doc>
  24557. </method>
  24558. <doc>
  24559. <![CDATA[The JMX interface to the metrics system]]>
  24560. </doc>
  24561. </interface>
  24562. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  24563. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  24564. <class name="MetricsTag" extends="java.lang.Object"
  24565. abstract="false"
  24566. static="false" final="false" visibility="public"
  24567. deprecated="not deprecated">
  24568. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  24569. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  24570. static="false" final="false" visibility="public"
  24571. deprecated="not deprecated">
  24572. <doc>
  24573. <![CDATA[Construct the tag with name, description and value
  24574. @param info of the tag
  24575. @param value of the tag]]>
  24576. </doc>
  24577. </constructor>
  24578. <method name="name" return="java.lang.String"
  24579. abstract="false" native="false" synchronized="false"
  24580. static="false" final="false" visibility="public"
  24581. deprecated="not deprecated">
  24582. </method>
  24583. <method name="description" return="java.lang.String"
  24584. abstract="false" native="false" synchronized="false"
  24585. static="false" final="false" visibility="public"
  24586. deprecated="not deprecated">
  24587. </method>
  24588. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  24589. abstract="false" native="false" synchronized="false"
  24590. static="false" final="false" visibility="public"
  24591. deprecated="not deprecated">
  24592. <doc>
  24593. <![CDATA[@return the info object of the tag]]>
  24594. </doc>
  24595. </method>
  24596. <method name="value" return="java.lang.String"
  24597. abstract="false" native="false" synchronized="false"
  24598. static="false" final="false" visibility="public"
  24599. deprecated="not deprecated">
  24600. <doc>
  24601. <![CDATA[Get the value of the tag
  24602. @return the value]]>
  24603. </doc>
  24604. </method>
  24605. <method name="equals" return="boolean"
  24606. abstract="false" native="false" synchronized="false"
  24607. static="false" final="false" visibility="public"
  24608. deprecated="not deprecated">
  24609. <param name="obj" type="java.lang.Object"/>
  24610. </method>
  24611. <method name="hashCode" return="int"
  24612. abstract="false" native="false" synchronized="false"
  24613. static="false" final="false" visibility="public"
  24614. deprecated="not deprecated">
  24615. </method>
  24616. <method name="toString" return="java.lang.String"
  24617. abstract="false" native="false" synchronized="false"
  24618. static="false" final="false" visibility="public"
  24619. deprecated="not deprecated">
  24620. </method>
  24621. <doc>
  24622. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  24623. </doc>
  24624. </class>
  24625. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  24626. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24627. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24628. abstract="false"
  24629. static="false" final="false" visibility="public"
  24630. deprecated="not deprecated">
  24631. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  24632. static="false" final="false" visibility="public"
  24633. deprecated="not deprecated">
  24634. <doc>
  24635. <![CDATA[Build an instance.
  24636. @param parent parent collector. Unused in this instance; only used for
  24637. the {@link #parent()} method
  24638. @param prefix string before each entry
  24639. @param separator separator between name and value
  24640. @param suffix suffix after each entry]]>
  24641. </doc>
  24642. </constructor>
  24643. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24644. abstract="false" native="false" synchronized="false"
  24645. static="false" final="false" visibility="public"
  24646. deprecated="not deprecated">
  24647. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24648. <param name="value" type="java.lang.Object"/>
  24649. </method>
  24650. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  24651. abstract="false" native="false" synchronized="false"
  24652. static="false" final="false" visibility="public"
  24653. deprecated="not deprecated">
  24654. <param name="key" type="java.lang.String"/>
  24655. <param name="value" type="java.lang.String"/>
  24656. <doc>
  24657. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  24658. separated by the separator.
  24659. @param key key
  24660. @param value value
  24661. @return this instance]]>
  24662. </doc>
  24663. </method>
  24664. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24665. abstract="false" native="false" synchronized="false"
  24666. static="false" final="false" visibility="public"
  24667. deprecated="not deprecated">
  24668. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24669. <param name="value" type="java.lang.String"/>
  24670. </method>
  24671. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24672. abstract="false" native="false" synchronized="false"
  24673. static="false" final="false" visibility="public"
  24674. deprecated="not deprecated">
  24675. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  24676. </method>
  24677. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24678. abstract="false" native="false" synchronized="false"
  24679. static="false" final="false" visibility="public"
  24680. deprecated="not deprecated">
  24681. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  24682. </method>
  24683. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24684. abstract="false" native="false" synchronized="false"
  24685. static="false" final="false" visibility="public"
  24686. deprecated="not deprecated">
  24687. <param name="value" type="java.lang.String"/>
  24688. </method>
  24689. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24690. abstract="false" native="false" synchronized="false"
  24691. static="false" final="false" visibility="public"
  24692. deprecated="not deprecated">
  24693. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24694. <param name="value" type="int"/>
  24695. </method>
  24696. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24697. abstract="false" native="false" synchronized="false"
  24698. static="false" final="false" visibility="public"
  24699. deprecated="not deprecated">
  24700. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24701. <param name="value" type="long"/>
  24702. </method>
  24703. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24704. abstract="false" native="false" synchronized="false"
  24705. static="false" final="false" visibility="public"
  24706. deprecated="not deprecated">
  24707. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24708. <param name="value" type="int"/>
  24709. </method>
  24710. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24711. abstract="false" native="false" synchronized="false"
  24712. static="false" final="false" visibility="public"
  24713. deprecated="not deprecated">
  24714. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24715. <param name="value" type="long"/>
  24716. </method>
  24717. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24718. abstract="false" native="false" synchronized="false"
  24719. static="false" final="false" visibility="public"
  24720. deprecated="not deprecated">
  24721. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24722. <param name="value" type="float"/>
  24723. </method>
  24724. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  24725. abstract="false" native="false" synchronized="false"
  24726. static="false" final="false" visibility="public"
  24727. deprecated="not deprecated">
  24728. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24729. <param name="value" type="double"/>
  24730. </method>
  24731. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  24732. abstract="false" native="false" synchronized="false"
  24733. static="false" final="false" visibility="public"
  24734. deprecated="not deprecated">
  24735. </method>
  24736. <method name="toString" return="java.lang.String"
  24737. abstract="false" native="false" synchronized="false"
  24738. static="false" final="false" visibility="public"
  24739. deprecated="not deprecated">
  24740. </method>
  24741. <doc>
  24742. <![CDATA[Build a string dump of the metrics.
  24743. The {@link #toString()} operator dumps out all values collected.
  24744. Every entry is formatted as
  24745. {@code prefix + name + separator + value + suffix}]]>
  24746. </doc>
  24747. </class>
  24748. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  24749. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  24750. <interface name="MetricsVisitor" abstract="true"
  24751. static="false" final="false" visibility="public"
  24752. deprecated="not deprecated">
  24753. <method name="gauge"
  24754. abstract="false" native="false" synchronized="false"
  24755. static="false" final="false" visibility="public"
  24756. deprecated="not deprecated">
  24757. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24758. <param name="value" type="int"/>
  24759. <doc>
  24760. <![CDATA[Callback for integer value gauges
  24761. @param info the metric info
  24762. @param value of the metric]]>
  24763. </doc>
  24764. </method>
  24765. <method name="gauge"
  24766. abstract="false" native="false" synchronized="false"
  24767. static="false" final="false" visibility="public"
  24768. deprecated="not deprecated">
  24769. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24770. <param name="value" type="long"/>
  24771. <doc>
  24772. <![CDATA[Callback for long value gauges
  24773. @param info the metric info
  24774. @param value of the metric]]>
  24775. </doc>
  24776. </method>
  24777. <method name="gauge"
  24778. abstract="false" native="false" synchronized="false"
  24779. static="false" final="false" visibility="public"
  24780. deprecated="not deprecated">
  24781. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24782. <param name="value" type="float"/>
  24783. <doc>
  24784. <![CDATA[Callback for float value gauges
  24785. @param info the metric info
  24786. @param value of the metric]]>
  24787. </doc>
  24788. </method>
  24789. <method name="gauge"
  24790. abstract="false" native="false" synchronized="false"
  24791. static="false" final="false" visibility="public"
  24792. deprecated="not deprecated">
  24793. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24794. <param name="value" type="double"/>
  24795. <doc>
  24796. <![CDATA[Callback for double value gauges
  24797. @param info the metric info
  24798. @param value of the metric]]>
  24799. </doc>
  24800. </method>
  24801. <method name="counter"
  24802. abstract="false" native="false" synchronized="false"
  24803. static="false" final="false" visibility="public"
  24804. deprecated="not deprecated">
  24805. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24806. <param name="value" type="int"/>
  24807. <doc>
  24808. <![CDATA[Callback for integer value counters
  24809. @param info the metric info
  24810. @param value of the metric]]>
  24811. </doc>
  24812. </method>
  24813. <method name="counter"
  24814. abstract="false" native="false" synchronized="false"
  24815. static="false" final="false" visibility="public"
  24816. deprecated="not deprecated">
  24817. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24818. <param name="value" type="long"/>
  24819. <doc>
  24820. <![CDATA[Callback for long value counters
  24821. @param info the metric info
  24822. @param value of the metric]]>
  24823. </doc>
  24824. </method>
  24825. <doc>
  24826. <![CDATA[A visitor interface for metrics]]>
  24827. </doc>
  24828. </interface>
  24829. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  24830. </package>
  24831. <package name="org.apache.hadoop.metrics2.annotation">
  24832. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  24833. <class name="Metric" abstract="true"
  24834. static="false" final="false" visibility="public"
  24835. deprecated="not deprecated">
  24836. <implements name="java.lang.annotation.Annotation"/>
  24837. <doc>
  24838. <![CDATA[Annotation interface for a single metric]]>
  24839. </doc>
  24840. </class>
  24841. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  24842. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  24843. <class name="Metrics" abstract="true"
  24844. static="false" final="false" visibility="public"
  24845. deprecated="not deprecated">
  24846. <implements name="java.lang.annotation.Annotation"/>
  24847. <doc>
  24848. <![CDATA[Annotation interface for a group of metrics]]>
  24849. </doc>
  24850. </class>
  24851. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  24852. </package>
  24853. <package name="org.apache.hadoop.metrics2.filter">
  24854. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  24855. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  24856. abstract="false"
  24857. static="false" final="false" visibility="public"
  24858. deprecated="not deprecated">
  24859. <constructor name="GlobFilter"
  24860. static="false" final="false" visibility="public"
  24861. deprecated="not deprecated">
  24862. </constructor>
  24863. <method name="compile" return="java.util.regex.Pattern"
  24864. abstract="false" native="false" synchronized="false"
  24865. static="false" final="false" visibility="protected"
  24866. deprecated="not deprecated">
  24867. <param name="s" type="java.lang.String"/>
  24868. </method>
  24869. <doc>
  24870. <![CDATA[A glob pattern filter for metrics.
  24871. The class name is used in metrics config files]]>
  24872. </doc>
  24873. </class>
  24874. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  24875. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  24876. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  24877. abstract="false"
  24878. static="false" final="false" visibility="public"
  24879. deprecated="not deprecated">
  24880. <constructor name="RegexFilter"
  24881. static="false" final="false" visibility="public"
  24882. deprecated="not deprecated">
  24883. </constructor>
  24884. <method name="compile" return="java.util.regex.Pattern"
  24885. abstract="false" native="false" synchronized="false"
  24886. static="false" final="false" visibility="protected"
  24887. deprecated="not deprecated">
  24888. <param name="s" type="java.lang.String"/>
  24889. </method>
  24890. <doc>
  24891. <![CDATA[A regex pattern filter for metrics]]>
  24892. </doc>
  24893. </class>
  24894. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  24895. </package>
  24896. <package name="org.apache.hadoop.metrics2.lib">
  24897. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  24898. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  24899. abstract="false"
  24900. static="false" final="true" visibility="public"
  24901. deprecated="not deprecated">
  24902. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  24903. abstract="false" native="false" synchronized="false"
  24904. static="true" final="false" visibility="public"
  24905. deprecated="not deprecated">
  24906. </method>
  24907. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  24908. abstract="false" native="false" synchronized="false"
  24909. static="true" final="false" visibility="public"
  24910. deprecated="not deprecated">
  24911. <param name="name" type="java.lang.String"/>
  24912. </method>
  24913. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  24914. abstract="false" native="false" synchronized="false"
  24915. static="true" final="false" visibility="public"
  24916. deprecated="not deprecated">
  24917. <param name="prefix" type="java.lang.String"/>
  24918. <doc>
  24919. <![CDATA[Convenience method to initialize the metrics system
  24920. @param prefix for the metrics system configuration
  24921. @return the metrics system instance]]>
  24922. </doc>
  24923. </method>
  24924. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  24925. abstract="false" native="false" synchronized="false"
  24926. static="true" final="false" visibility="public"
  24927. deprecated="not deprecated">
  24928. <doc>
  24929. <![CDATA[@return the metrics system object]]>
  24930. </doc>
  24931. </method>
  24932. <method name="shutdown"
  24933. abstract="false" native="false" synchronized="false"
  24934. static="true" final="false" visibility="public"
  24935. deprecated="not deprecated">
  24936. <doc>
  24937. <![CDATA[Shutdown the metrics system]]>
  24938. </doc>
  24939. </method>
  24940. <doc>
  24941. <![CDATA[The default metrics system singleton]]>
  24942. </doc>
  24943. </class>
  24944. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  24945. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  24946. <class name="Interns" extends="java.lang.Object"
  24947. abstract="false"
  24948. static="false" final="false" visibility="public"
  24949. deprecated="not deprecated">
  24950. <constructor name="Interns"
  24951. static="false" final="false" visibility="public"
  24952. deprecated="not deprecated">
  24953. </constructor>
  24954. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  24955. abstract="false" native="false" synchronized="false"
  24956. static="true" final="false" visibility="public"
  24957. deprecated="not deprecated">
  24958. <param name="name" type="java.lang.String"/>
  24959. <param name="description" type="java.lang.String"/>
  24960. <doc>
  24961. <![CDATA[Get a metric info object.
  24962. @param name Name of metric info object
  24963. @param description Description of metric info object
  24964. @return an interned metric info object]]>
  24965. </doc>
  24966. </method>
  24967. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  24968. abstract="false" native="false" synchronized="false"
  24969. static="true" final="false" visibility="public"
  24970. deprecated="not deprecated">
  24971. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  24972. <param name="value" type="java.lang.String"/>
  24973. <doc>
  24974. <![CDATA[Get a metrics tag.
  24975. @param info of the tag
  24976. @param value of the tag
  24977. @return an interned metrics tag]]>
  24978. </doc>
  24979. </method>
  24980. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  24981. abstract="false" native="false" synchronized="false"
  24982. static="true" final="false" visibility="public"
  24983. deprecated="not deprecated">
  24984. <param name="name" type="java.lang.String"/>
  24985. <param name="description" type="java.lang.String"/>
  24986. <param name="value" type="java.lang.String"/>
  24987. <doc>
  24988. <![CDATA[Get a metrics tag.
  24989. @param name of the tag
  24990. @param description of the tag
  24991. @param value of the tag
  24992. @return an interned metrics tag]]>
  24993. </doc>
  24994. </method>
  24995. <doc>
  24996. <![CDATA[Helpers to create interned metrics info.]]>
  24997. </doc>
  24998. </class>
  24999. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  25000. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25001. <class name="MetricsRegistry" extends="java.lang.Object"
  25002. abstract="false"
  25003. static="false" final="false" visibility="public"
  25004. deprecated="not deprecated">
  25005. <constructor name="MetricsRegistry" type="java.lang.String"
  25006. static="false" final="false" visibility="public"
  25007. deprecated="not deprecated">
  25008. <doc>
  25009. <![CDATA[Construct the registry with a record name
  25010. @param name of the record of the metrics]]>
  25011. </doc>
  25012. </constructor>
  25013. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  25014. static="false" final="false" visibility="public"
  25015. deprecated="not deprecated">
  25016. <doc>
  25017. <![CDATA[Construct the registry with a metadata object
  25018. @param info the info object for the metrics record/group]]>
  25019. </doc>
  25020. </constructor>
  25021. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25022. abstract="false" native="false" synchronized="false"
  25023. static="false" final="false" visibility="public"
  25024. deprecated="not deprecated">
  25025. <doc>
  25026. <![CDATA[@return the info object of the metrics registry]]>
  25027. </doc>
  25028. </method>
  25029. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  25030. abstract="false" native="false" synchronized="true"
  25031. static="false" final="false" visibility="public"
  25032. deprecated="not deprecated">
  25033. <param name="name" type="java.lang.String"/>
  25034. <doc>
  25035. <![CDATA[Get a metric by name
  25036. @param name of the metric
  25037. @return the metric object]]>
  25038. </doc>
  25039. </method>
  25040. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  25041. abstract="false" native="false" synchronized="true"
  25042. static="false" final="false" visibility="public"
  25043. deprecated="not deprecated">
  25044. <param name="name" type="java.lang.String"/>
  25045. <doc>
  25046. <![CDATA[Get a tag by name
  25047. @param name of the tag
  25048. @return the tag object]]>
  25049. </doc>
  25050. </method>
  25051. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25052. abstract="false" native="false" synchronized="false"
  25053. static="false" final="false" visibility="public"
  25054. deprecated="not deprecated">
  25055. <param name="name" type="java.lang.String"/>
  25056. <param name="desc" type="java.lang.String"/>
  25057. <param name="iVal" type="int"/>
  25058. <doc>
  25059. <![CDATA[Create a mutable integer counter
  25060. @param name of the metric
  25061. @param desc metric description
  25062. @param iVal initial value
  25063. @return a new counter object]]>
  25064. </doc>
  25065. </method>
  25066. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  25067. abstract="false" native="false" synchronized="true"
  25068. static="false" final="false" visibility="public"
  25069. deprecated="not deprecated">
  25070. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25071. <param name="iVal" type="int"/>
  25072. <doc>
  25073. <![CDATA[Create a mutable integer counter
  25074. @param info metadata of the metric
  25075. @param iVal initial value
  25076. @return a new counter object]]>
  25077. </doc>
  25078. </method>
  25079. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25080. abstract="false" native="false" synchronized="false"
  25081. static="false" final="false" visibility="public"
  25082. deprecated="not deprecated">
  25083. <param name="name" type="java.lang.String"/>
  25084. <param name="desc" type="java.lang.String"/>
  25085. <param name="iVal" type="long"/>
  25086. <doc>
  25087. <![CDATA[Create a mutable long integer counter
  25088. @param name of the metric
  25089. @param desc metric description
  25090. @param iVal initial value
  25091. @return a new counter object]]>
  25092. </doc>
  25093. </method>
  25094. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  25095. abstract="false" native="false" synchronized="true"
  25096. static="false" final="false" visibility="public"
  25097. deprecated="not deprecated">
  25098. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25099. <param name="iVal" type="long"/>
  25100. <doc>
  25101. <![CDATA[Create a mutable long integer counter
  25102. @param info metadata of the metric
  25103. @param iVal initial value
  25104. @return a new counter object]]>
  25105. </doc>
  25106. </method>
  25107. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25108. abstract="false" native="false" synchronized="false"
  25109. static="false" final="false" visibility="public"
  25110. deprecated="not deprecated">
  25111. <param name="name" type="java.lang.String"/>
  25112. <param name="desc" type="java.lang.String"/>
  25113. <param name="iVal" type="int"/>
  25114. <doc>
  25115. <![CDATA[Create a mutable integer gauge
  25116. @param name of the metric
  25117. @param desc metric description
  25118. @param iVal initial value
  25119. @return a new gauge object]]>
  25120. </doc>
  25121. </method>
  25122. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  25123. abstract="false" native="false" synchronized="true"
  25124. static="false" final="false" visibility="public"
  25125. deprecated="not deprecated">
  25126. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25127. <param name="iVal" type="int"/>
  25128. <doc>
  25129. <![CDATA[Create a mutable integer gauge
  25130. @param info metadata of the metric
  25131. @param iVal initial value
  25132. @return a new gauge object]]>
  25133. </doc>
  25134. </method>
  25135. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25136. abstract="false" native="false" synchronized="false"
  25137. static="false" final="false" visibility="public"
  25138. deprecated="not deprecated">
  25139. <param name="name" type="java.lang.String"/>
  25140. <param name="desc" type="java.lang.String"/>
  25141. <param name="iVal" type="long"/>
  25142. <doc>
  25143. <![CDATA[Create a mutable long integer gauge
  25144. @param name of the metric
  25145. @param desc metric description
  25146. @param iVal initial value
  25147. @return a new gauge object]]>
  25148. </doc>
  25149. </method>
  25150. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  25151. abstract="false" native="false" synchronized="true"
  25152. static="false" final="false" visibility="public"
  25153. deprecated="not deprecated">
  25154. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25155. <param name="iVal" type="long"/>
  25156. <doc>
  25157. <![CDATA[Create a mutable long integer gauge
  25158. @param info metadata of the metric
  25159. @param iVal initial value
  25160. @return a new gauge object]]>
  25161. </doc>
  25162. </method>
  25163. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  25164. abstract="false" native="false" synchronized="true"
  25165. static="false" final="false" visibility="public"
  25166. deprecated="not deprecated">
  25167. <param name="name" type="java.lang.String"/>
  25168. <param name="desc" type="java.lang.String"/>
  25169. <param name="sampleName" type="java.lang.String"/>
  25170. <param name="valueName" type="java.lang.String"/>
  25171. <param name="interval" type="int"/>
  25172. <doc>
  25173. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  25174. @param name of the metric
  25175. @param desc metric description
  25176. @param sampleName of the metric (e.g., "Ops")
  25177. @param valueName of the metric (e.g., "Time" or "Latency")
  25178. @param interval rollover interval of estimator in seconds
  25179. @return a new quantile estimator object
  25180. @throws MetricsException if interval is not a positive integer]]>
  25181. </doc>
  25182. </method>
  25183. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25184. abstract="false" native="false" synchronized="true"
  25185. static="false" final="false" visibility="public"
  25186. deprecated="not deprecated">
  25187. <param name="name" type="java.lang.String"/>
  25188. <param name="desc" type="java.lang.String"/>
  25189. <param name="sampleName" type="java.lang.String"/>
  25190. <param name="valueName" type="java.lang.String"/>
  25191. <param name="extended" type="boolean"/>
  25192. <doc>
  25193. <![CDATA[Create a mutable metric with stats
  25194. @param name of the metric
  25195. @param desc metric description
  25196. @param sampleName of the metric (e.g., "Ops")
  25197. @param valueName of the metric (e.g., "Time" or "Latency")
  25198. @param extended produce extended stat (stdev, min/max etc.) if true.
  25199. @return a new mutable stat metric object]]>
  25200. </doc>
  25201. </method>
  25202. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  25203. abstract="false" native="false" synchronized="false"
  25204. static="false" final="false" visibility="public"
  25205. deprecated="not deprecated">
  25206. <param name="name" type="java.lang.String"/>
  25207. <param name="desc" type="java.lang.String"/>
  25208. <param name="sampleName" type="java.lang.String"/>
  25209. <param name="valueName" type="java.lang.String"/>
  25210. <doc>
  25211. <![CDATA[Create a mutable metric with stats
  25212. @param name of the metric
  25213. @param desc metric description
  25214. @param sampleName of the metric (e.g., "Ops")
  25215. @param valueName of the metric (e.g., "Time" or "Latency")
  25216. @return a new mutable metric object]]>
  25217. </doc>
  25218. </method>
  25219. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25220. abstract="false" native="false" synchronized="false"
  25221. static="false" final="false" visibility="public"
  25222. deprecated="not deprecated">
  25223. <param name="name" type="java.lang.String"/>
  25224. <doc>
  25225. <![CDATA[Create a mutable rate metric
  25226. @param name of the metric
  25227. @return a new mutable metric object]]>
  25228. </doc>
  25229. </method>
  25230. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25231. abstract="false" native="false" synchronized="false"
  25232. static="false" final="false" visibility="public"
  25233. deprecated="not deprecated">
  25234. <param name="name" type="java.lang.String"/>
  25235. <param name="description" type="java.lang.String"/>
  25236. <doc>
  25237. <![CDATA[Create a mutable rate metric
  25238. @param name of the metric
  25239. @param description of the metric
  25240. @return a new mutable rate metric object]]>
  25241. </doc>
  25242. </method>
  25243. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  25244. abstract="false" native="false" synchronized="false"
  25245. static="false" final="false" visibility="public"
  25246. deprecated="not deprecated">
  25247. <param name="name" type="java.lang.String"/>
  25248. <param name="desc" type="java.lang.String"/>
  25249. <param name="extended" type="boolean"/>
  25250. <doc>
  25251. <![CDATA[Create a mutable rate metric (for throughput measurement)
  25252. @param name of the metric
  25253. @param desc description
  25254. @param extended produce extended stat (stdev/min/max etc.) if true
  25255. @return a new mutable rate metric object]]>
  25256. </doc>
  25257. </method>
  25258. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  25259. abstract="false" native="false" synchronized="true"
  25260. static="false" final="false" visibility="public"
  25261. deprecated="not deprecated">
  25262. <param name="name" type="java.lang.String"/>
  25263. </method>
  25264. <method name="add"
  25265. abstract="false" native="false" synchronized="true"
  25266. static="false" final="false" visibility="public"
  25267. deprecated="not deprecated">
  25268. <param name="name" type="java.lang.String"/>
  25269. <param name="value" type="long"/>
  25270. <doc>
  25271. <![CDATA[Add sample to a stat metric by name.
  25272. @param name of the metric
  25273. @param value of the snapshot to add]]>
  25274. </doc>
  25275. </method>
  25276. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25277. abstract="false" native="false" synchronized="false"
  25278. static="false" final="false" visibility="public"
  25279. deprecated="not deprecated">
  25280. <param name="name" type="java.lang.String"/>
  25281. <doc>
  25282. <![CDATA[Set the metrics context tag
  25283. @param name of the context
  25284. @return the registry itself as a convenience]]>
  25285. </doc>
  25286. </method>
  25287. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25288. abstract="false" native="false" synchronized="false"
  25289. static="false" final="false" visibility="public"
  25290. deprecated="not deprecated">
  25291. <param name="name" type="java.lang.String"/>
  25292. <param name="description" type="java.lang.String"/>
  25293. <param name="value" type="java.lang.String"/>
  25294. <doc>
  25295. <![CDATA[Add a tag to the metrics
  25296. @param name of the tag
  25297. @param description of the tag
  25298. @param value of the tag
  25299. @return the registry (for keep adding tags)]]>
  25300. </doc>
  25301. </method>
  25302. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25303. abstract="false" native="false" synchronized="false"
  25304. static="false" final="false" visibility="public"
  25305. deprecated="not deprecated">
  25306. <param name="name" type="java.lang.String"/>
  25307. <param name="description" type="java.lang.String"/>
  25308. <param name="value" type="java.lang.String"/>
  25309. <param name="override" type="boolean"/>
  25310. <doc>
  25311. <![CDATA[Add a tag to the metrics
  25312. @param name of the tag
  25313. @param description of the tag
  25314. @param value of the tag
  25315. @param override existing tag if true
  25316. @return the registry (for keep adding tags)]]>
  25317. </doc>
  25318. </method>
  25319. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25320. abstract="false" native="false" synchronized="true"
  25321. static="false" final="false" visibility="public"
  25322. deprecated="not deprecated">
  25323. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25324. <param name="value" type="java.lang.String"/>
  25325. <param name="override" type="boolean"/>
  25326. <doc>
  25327. <![CDATA[Add a tag to the metrics
  25328. @param info metadata of the tag
  25329. @param value of the tag
  25330. @param override existing tag if true
  25331. @return the registry (for keep adding tags etc.)]]>
  25332. </doc>
  25333. </method>
  25334. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  25335. abstract="false" native="false" synchronized="false"
  25336. static="false" final="false" visibility="public"
  25337. deprecated="not deprecated">
  25338. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25339. <param name="value" type="java.lang.String"/>
  25340. </method>
  25341. <method name="snapshot"
  25342. abstract="false" native="false" synchronized="true"
  25343. static="false" final="false" visibility="public"
  25344. deprecated="not deprecated">
  25345. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25346. <param name="all" type="boolean"/>
  25347. <doc>
  25348. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  25349. @param builder to contain the metrics snapshot
  25350. @param all get all the metrics even if the values are not changed.]]>
  25351. </doc>
  25352. </method>
  25353. <method name="toString" return="java.lang.String"
  25354. abstract="false" native="false" synchronized="false"
  25355. static="false" final="false" visibility="public"
  25356. deprecated="not deprecated">
  25357. </method>
  25358. <doc>
  25359. <![CDATA[An optional metrics registry class for creating and maintaining a
  25360. collection of MetricsMutables, making writing metrics source easier.]]>
  25361. </doc>
  25362. </class>
  25363. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  25364. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25365. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25366. abstract="true"
  25367. static="false" final="false" visibility="public"
  25368. deprecated="not deprecated">
  25369. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  25370. static="false" final="false" visibility="protected"
  25371. deprecated="not deprecated">
  25372. </constructor>
  25373. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25374. abstract="false" native="false" synchronized="false"
  25375. static="false" final="false" visibility="protected"
  25376. deprecated="not deprecated">
  25377. </method>
  25378. <method name="incr"
  25379. abstract="true" native="false" synchronized="false"
  25380. static="false" final="false" visibility="public"
  25381. deprecated="not deprecated">
  25382. <doc>
  25383. <![CDATA[Increment the metric value by 1.]]>
  25384. </doc>
  25385. </method>
  25386. <doc>
  25387. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  25388. </doc>
  25389. </class>
  25390. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  25391. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25392. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25393. abstract="false"
  25394. static="false" final="false" visibility="public"
  25395. deprecated="not deprecated">
  25396. <method name="incr"
  25397. abstract="false" native="false" synchronized="false"
  25398. static="false" final="false" visibility="public"
  25399. deprecated="not deprecated">
  25400. </method>
  25401. <method name="incr"
  25402. abstract="false" native="false" synchronized="true"
  25403. static="false" final="false" visibility="public"
  25404. deprecated="not deprecated">
  25405. <param name="delta" type="int"/>
  25406. <doc>
  25407. <![CDATA[Increment the value by a delta
  25408. @param delta of the increment]]>
  25409. </doc>
  25410. </method>
  25411. <method name="value" return="int"
  25412. abstract="false" native="false" synchronized="false"
  25413. static="false" final="false" visibility="public"
  25414. deprecated="not deprecated">
  25415. </method>
  25416. <method name="snapshot"
  25417. abstract="false" native="false" synchronized="false"
  25418. static="false" final="false" visibility="public"
  25419. deprecated="not deprecated">
  25420. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25421. <param name="all" type="boolean"/>
  25422. </method>
  25423. <doc>
  25424. <![CDATA[A mutable int counter for implementing metrics sources]]>
  25425. </doc>
  25426. </class>
  25427. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  25428. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25429. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  25430. abstract="false"
  25431. static="false" final="false" visibility="public"
  25432. deprecated="not deprecated">
  25433. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  25434. static="false" final="false" visibility="public"
  25435. deprecated="not deprecated">
  25436. </constructor>
  25437. <method name="incr"
  25438. abstract="false" native="false" synchronized="false"
  25439. static="false" final="false" visibility="public"
  25440. deprecated="not deprecated">
  25441. </method>
  25442. <method name="incr"
  25443. abstract="false" native="false" synchronized="false"
  25444. static="false" final="false" visibility="public"
  25445. deprecated="not deprecated">
  25446. <param name="delta" type="long"/>
  25447. <doc>
  25448. <![CDATA[Increment the value by a delta
  25449. @param delta of the increment]]>
  25450. </doc>
  25451. </method>
  25452. <method name="value" return="long"
  25453. abstract="false" native="false" synchronized="false"
  25454. static="false" final="false" visibility="public"
  25455. deprecated="not deprecated">
  25456. </method>
  25457. <method name="snapshot"
  25458. abstract="false" native="false" synchronized="false"
  25459. static="false" final="false" visibility="public"
  25460. deprecated="not deprecated">
  25461. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25462. <param name="all" type="boolean"/>
  25463. </method>
  25464. <doc>
  25465. <![CDATA[A mutable long counter]]>
  25466. </doc>
  25467. </class>
  25468. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  25469. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25470. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25471. abstract="true"
  25472. static="false" final="false" visibility="public"
  25473. deprecated="not deprecated">
  25474. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  25475. static="false" final="false" visibility="protected"
  25476. deprecated="not deprecated">
  25477. </constructor>
  25478. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25479. abstract="false" native="false" synchronized="false"
  25480. static="false" final="false" visibility="protected"
  25481. deprecated="not deprecated">
  25482. </method>
  25483. <method name="incr"
  25484. abstract="true" native="false" synchronized="false"
  25485. static="false" final="false" visibility="public"
  25486. deprecated="not deprecated">
  25487. <doc>
  25488. <![CDATA[Increment the value of the metric by 1]]>
  25489. </doc>
  25490. </method>
  25491. <method name="decr"
  25492. abstract="true" native="false" synchronized="false"
  25493. static="false" final="false" visibility="public"
  25494. deprecated="not deprecated">
  25495. <doc>
  25496. <![CDATA[Decrement the value of the metric by 1]]>
  25497. </doc>
  25498. </method>
  25499. <doc>
  25500. <![CDATA[The mutable gauge metric interface]]>
  25501. </doc>
  25502. </class>
  25503. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  25504. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25505. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25506. abstract="false"
  25507. static="false" final="false" visibility="public"
  25508. deprecated="not deprecated">
  25509. <method name="value" return="int"
  25510. abstract="false" native="false" synchronized="false"
  25511. static="false" final="false" visibility="public"
  25512. deprecated="not deprecated">
  25513. </method>
  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="false"
  25521. static="false" final="false" visibility="public"
  25522. deprecated="not deprecated">
  25523. <param name="delta" type="int"/>
  25524. <doc>
  25525. <![CDATA[Increment by delta
  25526. @param delta of the increment]]>
  25527. </doc>
  25528. </method>
  25529. <method name="decr"
  25530. abstract="false" native="false" synchronized="false"
  25531. static="false" final="false" visibility="public"
  25532. deprecated="not deprecated">
  25533. </method>
  25534. <method name="decr"
  25535. abstract="false" native="false" synchronized="false"
  25536. static="false" final="false" visibility="public"
  25537. deprecated="not deprecated">
  25538. <param name="delta" type="int"/>
  25539. <doc>
  25540. <![CDATA[decrement by delta
  25541. @param delta of the decrement]]>
  25542. </doc>
  25543. </method>
  25544. <method name="set"
  25545. abstract="false" native="false" synchronized="false"
  25546. static="false" final="false" visibility="public"
  25547. deprecated="not deprecated">
  25548. <param name="value" type="int"/>
  25549. <doc>
  25550. <![CDATA[Set the value of the metric
  25551. @param value to set]]>
  25552. </doc>
  25553. </method>
  25554. <method name="snapshot"
  25555. abstract="false" native="false" synchronized="false"
  25556. static="false" final="false" visibility="public"
  25557. deprecated="not deprecated">
  25558. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25559. <param name="all" type="boolean"/>
  25560. </method>
  25561. <doc>
  25562. <![CDATA[A mutable int gauge]]>
  25563. </doc>
  25564. </class>
  25565. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  25566. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25567. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  25568. abstract="false"
  25569. static="false" final="false" visibility="public"
  25570. deprecated="not deprecated">
  25571. <method name="value" return="long"
  25572. abstract="false" native="false" synchronized="false"
  25573. static="false" final="false" visibility="public"
  25574. deprecated="not deprecated">
  25575. </method>
  25576. <method name="incr"
  25577. abstract="false" native="false" synchronized="false"
  25578. static="false" final="false" visibility="public"
  25579. deprecated="not deprecated">
  25580. </method>
  25581. <method name="incr"
  25582. abstract="false" native="false" synchronized="false"
  25583. static="false" final="false" visibility="public"
  25584. deprecated="not deprecated">
  25585. <param name="delta" type="long"/>
  25586. <doc>
  25587. <![CDATA[Increment by delta
  25588. @param delta of the increment]]>
  25589. </doc>
  25590. </method>
  25591. <method name="decr"
  25592. abstract="false" native="false" synchronized="false"
  25593. static="false" final="false" visibility="public"
  25594. deprecated="not deprecated">
  25595. </method>
  25596. <method name="decr"
  25597. abstract="false" native="false" synchronized="false"
  25598. static="false" final="false" visibility="public"
  25599. deprecated="not deprecated">
  25600. <param name="delta" type="long"/>
  25601. <doc>
  25602. <![CDATA[decrement by delta
  25603. @param delta of the decrement]]>
  25604. </doc>
  25605. </method>
  25606. <method name="set"
  25607. abstract="false" native="false" synchronized="false"
  25608. static="false" final="false" visibility="public"
  25609. deprecated="not deprecated">
  25610. <param name="value" type="long"/>
  25611. <doc>
  25612. <![CDATA[Set the value of the metric
  25613. @param value to set]]>
  25614. </doc>
  25615. </method>
  25616. <method name="snapshot"
  25617. abstract="false" native="false" synchronized="false"
  25618. static="false" final="false" visibility="public"
  25619. deprecated="not deprecated">
  25620. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25621. <param name="all" type="boolean"/>
  25622. </method>
  25623. <doc>
  25624. <![CDATA[A mutable long gauge]]>
  25625. </doc>
  25626. </class>
  25627. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  25628. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25629. <class name="MutableMetric" extends="java.lang.Object"
  25630. abstract="true"
  25631. static="false" final="false" visibility="public"
  25632. deprecated="not deprecated">
  25633. <constructor name="MutableMetric"
  25634. static="false" final="false" visibility="public"
  25635. deprecated="not deprecated">
  25636. </constructor>
  25637. <method name="snapshot"
  25638. abstract="true" native="false" synchronized="false"
  25639. static="false" final="false" visibility="public"
  25640. deprecated="not deprecated">
  25641. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25642. <param name="all" type="boolean"/>
  25643. <doc>
  25644. <![CDATA[Get a snapshot of the metric
  25645. @param builder the metrics record builder
  25646. @param all if true, snapshot unchanged metrics as well]]>
  25647. </doc>
  25648. </method>
  25649. <method name="snapshot"
  25650. abstract="false" native="false" synchronized="false"
  25651. static="false" final="false" visibility="public"
  25652. deprecated="not deprecated">
  25653. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25654. <doc>
  25655. <![CDATA[Get a snapshot of metric if changed
  25656. @param builder the metrics record builder]]>
  25657. </doc>
  25658. </method>
  25659. <method name="setChanged"
  25660. abstract="false" native="false" synchronized="false"
  25661. static="false" final="false" visibility="protected"
  25662. deprecated="not deprecated">
  25663. <doc>
  25664. <![CDATA[Set the changed flag in mutable operations]]>
  25665. </doc>
  25666. </method>
  25667. <method name="clearChanged"
  25668. abstract="false" native="false" synchronized="false"
  25669. static="false" final="false" visibility="protected"
  25670. deprecated="not deprecated">
  25671. <doc>
  25672. <![CDATA[Clear the changed flag in the snapshot operations]]>
  25673. </doc>
  25674. </method>
  25675. <method name="changed" return="boolean"
  25676. abstract="false" native="false" synchronized="false"
  25677. static="false" final="false" visibility="public"
  25678. deprecated="not deprecated">
  25679. <doc>
  25680. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  25681. </doc>
  25682. </method>
  25683. <doc>
  25684. <![CDATA[The mutable metric interface]]>
  25685. </doc>
  25686. </class>
  25687. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  25688. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  25689. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25690. abstract="false"
  25691. static="false" final="false" visibility="public"
  25692. deprecated="not deprecated">
  25693. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  25694. static="false" final="false" visibility="public"
  25695. deprecated="not deprecated">
  25696. <doc>
  25697. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  25698. over on the specified time interval.
  25699. @param name
  25700. of the metric
  25701. @param description
  25702. long-form textual description of the metric
  25703. @param sampleName
  25704. type of items in the stream (e.g., "Ops")
  25705. @param valueName
  25706. type of the values
  25707. @param interval
  25708. rollover interval (in seconds) of the estimator]]>
  25709. </doc>
  25710. </constructor>
  25711. <method name="snapshot"
  25712. abstract="false" native="false" synchronized="true"
  25713. static="false" final="false" visibility="public"
  25714. deprecated="not deprecated">
  25715. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25716. <param name="all" type="boolean"/>
  25717. </method>
  25718. <method name="add"
  25719. abstract="false" native="false" synchronized="true"
  25720. static="false" final="false" visibility="public"
  25721. deprecated="not deprecated">
  25722. <param name="value" type="long"/>
  25723. </method>
  25724. <method name="getInterval" return="int"
  25725. abstract="false" native="false" synchronized="false"
  25726. static="false" final="false" visibility="public"
  25727. deprecated="not deprecated">
  25728. </method>
  25729. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  25730. transient="false" volatile="false"
  25731. static="true" final="true" visibility="public"
  25732. deprecated="not deprecated">
  25733. </field>
  25734. <field name="previousSnapshot" type="java.util.Map"
  25735. transient="false" volatile="false"
  25736. static="false" final="false" visibility="protected"
  25737. deprecated="not deprecated">
  25738. </field>
  25739. <doc>
  25740. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  25741. quantiles with provably low error bounds. This is particularly useful for
  25742. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  25743. </doc>
  25744. </class>
  25745. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  25746. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  25747. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  25748. abstract="false"
  25749. static="false" final="false" visibility="public"
  25750. deprecated="not deprecated">
  25751. <doc>
  25752. <![CDATA[A convenient mutable metric for throughput measurement]]>
  25753. </doc>
  25754. </class>
  25755. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  25756. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  25757. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25758. abstract="false"
  25759. static="false" final="false" visibility="public"
  25760. deprecated="not deprecated">
  25761. <method name="init"
  25762. abstract="false" native="false" synchronized="false"
  25763. static="false" final="false" visibility="public"
  25764. deprecated="not deprecated">
  25765. <param name="protocol" type="java.lang.Class"/>
  25766. <doc>
  25767. <![CDATA[Initialize the registry with all the methods in a protocol
  25768. so they all show up in the first snapshot.
  25769. Convenient for JMX implementations.
  25770. @param protocol the protocol class]]>
  25771. </doc>
  25772. </method>
  25773. <method name="add"
  25774. abstract="false" native="false" synchronized="false"
  25775. static="false" final="false" visibility="public"
  25776. deprecated="not deprecated">
  25777. <param name="name" type="java.lang.String"/>
  25778. <param name="elapsed" type="long"/>
  25779. <doc>
  25780. <![CDATA[Add a rate sample for a rate metric
  25781. @param name of the rate metric
  25782. @param elapsed time]]>
  25783. </doc>
  25784. </method>
  25785. <method name="snapshot"
  25786. abstract="false" native="false" synchronized="false"
  25787. static="false" final="false" visibility="public"
  25788. deprecated="not deprecated">
  25789. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25790. <param name="all" type="boolean"/>
  25791. </method>
  25792. <doc>
  25793. <![CDATA[Helper class to manage a group of mutable rate metrics
  25794. This class synchronizes all accesses to the metrics it
  25795. contains, so it should not be used in situations where
  25796. there is high contention on the metrics.
  25797. {@link MutableRatesWithAggregation} is preferable in that
  25798. situation.]]>
  25799. </doc>
  25800. </class>
  25801. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  25802. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  25803. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25804. abstract="false"
  25805. static="false" final="false" visibility="public"
  25806. deprecated="not deprecated">
  25807. <constructor name="MutableRatesWithAggregation"
  25808. static="false" final="false" visibility="public"
  25809. deprecated="not deprecated">
  25810. </constructor>
  25811. <method name="init"
  25812. abstract="false" native="false" synchronized="false"
  25813. static="false" final="false" visibility="public"
  25814. deprecated="not deprecated">
  25815. <param name="protocol" type="java.lang.Class"/>
  25816. <doc>
  25817. <![CDATA[Initialize the registry with all the methods in a protocol
  25818. so they all show up in the first snapshot.
  25819. Convenient for JMX implementations.
  25820. @param protocol the protocol class]]>
  25821. </doc>
  25822. </method>
  25823. <method name="add"
  25824. abstract="false" native="false" synchronized="false"
  25825. static="false" final="false" visibility="public"
  25826. deprecated="not deprecated">
  25827. <param name="name" type="java.lang.String"/>
  25828. <param name="elapsed" type="long"/>
  25829. <doc>
  25830. <![CDATA[Add a rate sample for a rate metric.
  25831. @param name of the rate metric
  25832. @param elapsed time]]>
  25833. </doc>
  25834. </method>
  25835. <method name="snapshot"
  25836. abstract="false" native="false" synchronized="true"
  25837. static="false" final="false" visibility="public"
  25838. deprecated="not deprecated">
  25839. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25840. <param name="all" type="boolean"/>
  25841. </method>
  25842. <doc>
  25843. <![CDATA[Helper class to manage a group of mutable rate metrics.
  25844. Each thread will maintain a local rate count, and upon snapshot,
  25845. these values will be aggregated into a global rate. This class
  25846. should only be used for long running threads, as any metrics
  25847. produced between the last snapshot and the death of a thread
  25848. will be lost. This allows for significantly higher concurrency
  25849. than {@link MutableRates}. See HADOOP-24420.]]>
  25850. </doc>
  25851. </class>
  25852. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  25853. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  25854. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  25855. abstract="false"
  25856. static="false" final="false" visibility="public"
  25857. deprecated="not deprecated">
  25858. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  25859. static="false" final="false" visibility="public"
  25860. deprecated="not deprecated">
  25861. <doc>
  25862. <![CDATA[Construct a sample statistics metric
  25863. @param name of the metric
  25864. @param description of the metric
  25865. @param sampleName of the metric (e.g. "Ops")
  25866. @param valueName of the metric (e.g. "Time", "Latency")
  25867. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  25868. </doc>
  25869. </constructor>
  25870. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  25871. static="false" final="false" visibility="public"
  25872. deprecated="not deprecated">
  25873. <doc>
  25874. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  25875. @param name of the metric
  25876. @param description of the metric
  25877. @param sampleName of the metric (e.g. "Ops")
  25878. @param valueName of the metric (e.g. "Time", "Latency")]]>
  25879. </doc>
  25880. </constructor>
  25881. <method name="setExtended"
  25882. abstract="false" native="false" synchronized="true"
  25883. static="false" final="false" visibility="public"
  25884. deprecated="not deprecated">
  25885. <param name="extended" type="boolean"/>
  25886. <doc>
  25887. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  25888. @param extended enable/disable displaying extended stats]]>
  25889. </doc>
  25890. </method>
  25891. <method name="add"
  25892. abstract="false" native="false" synchronized="true"
  25893. static="false" final="false" visibility="public"
  25894. deprecated="not deprecated">
  25895. <param name="numSamples" type="long"/>
  25896. <param name="sum" type="long"/>
  25897. <doc>
  25898. <![CDATA[Add a number of samples and their sum to the running stat
  25899. Note that although use of this method will preserve accurate mean values,
  25900. large values for numSamples may result in inaccurate variance values due
  25901. to the use of a single step of the Welford method for variance calculation.
  25902. @param numSamples number of samples
  25903. @param sum of the samples]]>
  25904. </doc>
  25905. </method>
  25906. <method name="add"
  25907. abstract="false" native="false" synchronized="true"
  25908. static="false" final="false" visibility="public"
  25909. deprecated="not deprecated">
  25910. <param name="value" type="long"/>
  25911. <doc>
  25912. <![CDATA[Add a snapshot to the metric
  25913. @param value of the metric]]>
  25914. </doc>
  25915. </method>
  25916. <method name="snapshot"
  25917. abstract="false" native="false" synchronized="true"
  25918. static="false" final="false" visibility="public"
  25919. deprecated="not deprecated">
  25920. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  25921. <param name="all" type="boolean"/>
  25922. </method>
  25923. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  25924. abstract="false" native="false" synchronized="false"
  25925. static="false" final="false" visibility="public"
  25926. deprecated="not deprecated">
  25927. <doc>
  25928. <![CDATA[Return a SampleStat object that supports
  25929. calls like StdDev and Mean.
  25930. @return SampleStat]]>
  25931. </doc>
  25932. </method>
  25933. <method name="resetMinMax"
  25934. abstract="false" native="false" synchronized="false"
  25935. static="false" final="false" visibility="public"
  25936. deprecated="not deprecated">
  25937. <doc>
  25938. <![CDATA[Reset the all time min max of the metric]]>
  25939. </doc>
  25940. </method>
  25941. <method name="toString" return="java.lang.String"
  25942. abstract="false" native="false" synchronized="false"
  25943. static="false" final="false" visibility="public"
  25944. deprecated="not deprecated">
  25945. </method>
  25946. <doc>
  25947. <![CDATA[A mutable metric with stats.
  25948. Useful for keeping throughput/latency stats.]]>
  25949. </doc>
  25950. </class>
  25951. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  25952. </package>
  25953. <package name="org.apache.hadoop.metrics2.sink">
  25954. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  25955. <class name="FileSink" extends="java.lang.Object"
  25956. abstract="false"
  25957. static="false" final="false" visibility="public"
  25958. deprecated="not deprecated">
  25959. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  25960. <implements name="java.io.Closeable"/>
  25961. <constructor name="FileSink"
  25962. static="false" final="false" visibility="public"
  25963. deprecated="not deprecated">
  25964. </constructor>
  25965. <method name="init"
  25966. abstract="false" native="false" synchronized="false"
  25967. static="false" final="false" visibility="public"
  25968. deprecated="not deprecated">
  25969. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25970. </method>
  25971. <method name="putMetrics"
  25972. abstract="false" native="false" synchronized="false"
  25973. static="false" final="false" visibility="public"
  25974. deprecated="not deprecated">
  25975. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25976. </method>
  25977. <method name="flush"
  25978. abstract="false" native="false" synchronized="false"
  25979. static="false" final="false" visibility="public"
  25980. deprecated="not deprecated">
  25981. </method>
  25982. <method name="close"
  25983. abstract="false" native="false" synchronized="false"
  25984. static="false" final="false" visibility="public"
  25985. deprecated="not deprecated">
  25986. <exception name="IOException" type="java.io.IOException"/>
  25987. </method>
  25988. <doc>
  25989. <![CDATA[A metrics sink that writes to a file]]>
  25990. </doc>
  25991. </class>
  25992. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  25993. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  25994. <class name="GraphiteSink" extends="java.lang.Object"
  25995. abstract="false"
  25996. static="false" final="false" visibility="public"
  25997. deprecated="not deprecated">
  25998. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  25999. <implements name="java.io.Closeable"/>
  26000. <constructor name="GraphiteSink"
  26001. static="false" final="false" visibility="public"
  26002. deprecated="not deprecated">
  26003. </constructor>
  26004. <method name="init"
  26005. abstract="false" native="false" synchronized="false"
  26006. static="false" final="false" visibility="public"
  26007. deprecated="not deprecated">
  26008. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26009. </method>
  26010. <method name="putMetrics"
  26011. abstract="false" native="false" synchronized="false"
  26012. static="false" final="false" visibility="public"
  26013. deprecated="not deprecated">
  26014. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26015. </method>
  26016. <method name="flush"
  26017. abstract="false" native="false" synchronized="false"
  26018. static="false" final="false" visibility="public"
  26019. deprecated="not deprecated">
  26020. </method>
  26021. <method name="close"
  26022. abstract="false" native="false" synchronized="false"
  26023. static="false" final="false" visibility="public"
  26024. deprecated="not deprecated">
  26025. <exception name="IOException" type="java.io.IOException"/>
  26026. </method>
  26027. <doc>
  26028. <![CDATA[A metrics sink that writes to a Graphite server]]>
  26029. </doc>
  26030. </class>
  26031. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  26032. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26033. <class name="StatsDSink" extends="java.lang.Object"
  26034. abstract="false"
  26035. static="false" final="false" visibility="public"
  26036. deprecated="not deprecated">
  26037. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  26038. <implements name="java.io.Closeable"/>
  26039. <constructor name="StatsDSink"
  26040. static="false" final="false" visibility="public"
  26041. deprecated="not deprecated">
  26042. </constructor>
  26043. <method name="init"
  26044. abstract="false" native="false" synchronized="false"
  26045. static="false" final="false" visibility="public"
  26046. deprecated="not deprecated">
  26047. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26048. </method>
  26049. <method name="putMetrics"
  26050. abstract="false" native="false" synchronized="false"
  26051. static="false" final="false" visibility="public"
  26052. deprecated="not deprecated">
  26053. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26054. </method>
  26055. <method name="writeMetric"
  26056. abstract="false" native="false" synchronized="false"
  26057. static="false" final="false" visibility="public"
  26058. deprecated="not deprecated">
  26059. <param name="line" type="java.lang.String"/>
  26060. </method>
  26061. <method name="flush"
  26062. abstract="false" native="false" synchronized="false"
  26063. static="false" final="false" visibility="public"
  26064. deprecated="not deprecated">
  26065. </method>
  26066. <method name="close"
  26067. abstract="false" native="false" synchronized="false"
  26068. static="false" final="false" visibility="public"
  26069. deprecated="not deprecated">
  26070. <exception name="IOException" type="java.io.IOException"/>
  26071. </method>
  26072. <doc>
  26073. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  26074. This sink will produce metrics of the form
  26075. '[hostname].servicename.context.name.metricname:value|type'
  26076. where hostname is optional. This is useful when sending to
  26077. a daemon that is running on the localhost and will add the
  26078. hostname to the metric (such as the
  26079. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  26080. <br/>
  26081. To configure this plugin, you will need to add the following
  26082. entries to your hadoop-metrics2.properties file:
  26083. <br/>
  26084. <pre>
  26085. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  26086. [prefix].sink.statsd.server.host=
  26087. [prefix].sink.statsd.server.port=
  26088. [prefix].sink.statsd.skip.hostname=true|false (optional)
  26089. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  26090. </pre>]]>
  26091. </doc>
  26092. </class>
  26093. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  26094. </package>
  26095. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  26096. </package>
  26097. <package name="org.apache.hadoop.metrics2.source">
  26098. </package>
  26099. <package name="org.apache.hadoop.metrics2.util">
  26100. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  26101. <class name="MBeans" extends="java.lang.Object"
  26102. abstract="false"
  26103. static="false" final="false" visibility="public"
  26104. deprecated="not deprecated">
  26105. <constructor name="MBeans"
  26106. static="false" final="false" visibility="public"
  26107. deprecated="not deprecated">
  26108. </constructor>
  26109. <method name="register" return="javax.management.ObjectName"
  26110. abstract="false" native="false" synchronized="false"
  26111. static="true" final="false" visibility="public"
  26112. deprecated="not deprecated">
  26113. <param name="serviceName" type="java.lang.String"/>
  26114. <param name="nameName" type="java.lang.String"/>
  26115. <param name="theMbean" type="java.lang.Object"/>
  26116. <doc>
  26117. <![CDATA[Register the MBean using our standard MBeanName format
  26118. "hadoop:service=<serviceName>,name=<nameName>"
  26119. Where the <serviceName> and <nameName> are the supplied parameters
  26120. @param serviceName
  26121. @param nameName
  26122. @param theMbean - the MBean to register
  26123. @return the named used to register the MBean]]>
  26124. </doc>
  26125. </method>
  26126. <method name="getMbeanNameService" return="java.lang.String"
  26127. abstract="false" native="false" synchronized="false"
  26128. static="true" final="false" visibility="public"
  26129. deprecated="not deprecated">
  26130. <param name="objectName" type="javax.management.ObjectName"/>
  26131. </method>
  26132. <method name="getMbeanNameName" return="java.lang.String"
  26133. abstract="false" native="false" synchronized="false"
  26134. static="true" final="false" visibility="public"
  26135. deprecated="not deprecated">
  26136. <param name="objectName" type="javax.management.ObjectName"/>
  26137. </method>
  26138. <method name="unregister"
  26139. abstract="false" native="false" synchronized="false"
  26140. static="true" final="false" visibility="public"
  26141. deprecated="not deprecated">
  26142. <param name="mbeanName" type="javax.management.ObjectName"/>
  26143. </method>
  26144. <doc>
  26145. <![CDATA[This util class provides a method to register an MBean using
  26146. our standard naming convention as described in the doc
  26147. for {link {@link #register(String, String, Object)}]]>
  26148. </doc>
  26149. </class>
  26150. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  26151. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  26152. <class name="MetricsCache" extends="java.lang.Object"
  26153. abstract="false"
  26154. static="false" final="false" visibility="public"
  26155. deprecated="not deprecated">
  26156. <constructor name="MetricsCache"
  26157. static="false" final="false" visibility="public"
  26158. deprecated="not deprecated">
  26159. </constructor>
  26160. <constructor name="MetricsCache" type="int"
  26161. static="false" final="false" visibility="public"
  26162. deprecated="not deprecated">
  26163. <doc>
  26164. <![CDATA[Construct a metrics cache
  26165. @param maxRecsPerName limit of the number records per record name]]>
  26166. </doc>
  26167. </constructor>
  26168. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26169. abstract="false" native="false" synchronized="false"
  26170. static="false" final="false" visibility="public"
  26171. deprecated="not deprecated">
  26172. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26173. <param name="includingTags" type="boolean"/>
  26174. <doc>
  26175. <![CDATA[Update the cache and return the current cached record
  26176. @param mr the update record
  26177. @param includingTags cache tag values (for later lookup by name) if true
  26178. @return the updated cache record]]>
  26179. </doc>
  26180. </method>
  26181. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26182. abstract="false" native="false" synchronized="false"
  26183. static="false" final="false" visibility="public"
  26184. deprecated="not deprecated">
  26185. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26186. <doc>
  26187. <![CDATA[Update the cache and return the current cache record
  26188. @param mr the update record
  26189. @return the updated cache record]]>
  26190. </doc>
  26191. </method>
  26192. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  26193. abstract="false" native="false" synchronized="false"
  26194. static="false" final="false" visibility="public"
  26195. deprecated="not deprecated">
  26196. <param name="name" type="java.lang.String"/>
  26197. <param name="tags" type="java.util.Collection"/>
  26198. <doc>
  26199. <![CDATA[Get the cached record
  26200. @param name of the record
  26201. @param tags of the record
  26202. @return the cached record or null]]>
  26203. </doc>
  26204. </method>
  26205. <doc>
  26206. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  26207. </doc>
  26208. </class>
  26209. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  26210. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  26211. <class name="Servers" extends="java.lang.Object"
  26212. abstract="false"
  26213. static="false" final="false" visibility="public"
  26214. deprecated="not deprecated">
  26215. <method name="parse" return="java.util.List"
  26216. abstract="false" native="false" synchronized="false"
  26217. static="true" final="false" visibility="public"
  26218. deprecated="not deprecated">
  26219. <param name="specs" type="java.lang.String"/>
  26220. <param name="defaultPort" type="int"/>
  26221. <doc>
  26222. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  26223. of the form <i>hostname</i> or <i>hostname:port</i>. If
  26224. the specs string is null, defaults to localhost:defaultPort.
  26225. @param specs server specs (see description)
  26226. @param defaultPort the default port if not specified
  26227. @return a list of InetSocketAddress objects.]]>
  26228. </doc>
  26229. </method>
  26230. <doc>
  26231. <![CDATA[Helpers to handle server addresses]]>
  26232. </doc>
  26233. </class>
  26234. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  26235. </package>
  26236. <package name="org.apache.hadoop.net">
  26237. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26238. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  26239. abstract="true"
  26240. static="false" final="false" visibility="public"
  26241. deprecated="not deprecated">
  26242. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26243. <implements name="org.apache.hadoop.conf.Configurable"/>
  26244. <constructor name="AbstractDNSToSwitchMapping"
  26245. static="false" final="false" visibility="protected"
  26246. deprecated="not deprecated">
  26247. <doc>
  26248. <![CDATA[Create an unconfigured instance]]>
  26249. </doc>
  26250. </constructor>
  26251. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  26252. static="false" final="false" visibility="protected"
  26253. deprecated="not deprecated">
  26254. <doc>
  26255. <![CDATA[Create an instance, caching the configuration file.
  26256. This constructor does not call {@link #setConf(Configuration)}; if
  26257. a subclass extracts information in that method, it must call it explicitly.
  26258. @param conf the configuration]]>
  26259. </doc>
  26260. </constructor>
  26261. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26262. abstract="false" native="false" synchronized="false"
  26263. static="false" final="false" visibility="public"
  26264. deprecated="not deprecated">
  26265. </method>
  26266. <method name="setConf"
  26267. abstract="false" native="false" synchronized="false"
  26268. static="false" final="false" visibility="public"
  26269. deprecated="not deprecated">
  26270. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26271. </method>
  26272. <method name="isSingleSwitch" return="boolean"
  26273. abstract="false" native="false" synchronized="false"
  26274. static="false" final="false" visibility="public"
  26275. deprecated="not deprecated">
  26276. <doc>
  26277. <![CDATA[Predicate that indicates that the switch mapping is known to be
  26278. single-switch. The base class returns false: it assumes all mappings are
  26279. multi-rack. Subclasses may override this with methods that are more aware
  26280. of their topologies.
  26281. <p/>
  26282. This method is used when parts of Hadoop need know whether to apply
  26283. single rack vs multi-rack policies, such as during block placement.
  26284. Such algorithms behave differently if they are on multi-switch systems.
  26285. </p>
  26286. @return true if the mapping thinks that it is on a single switch]]>
  26287. </doc>
  26288. </method>
  26289. <method name="getSwitchMap" return="java.util.Map"
  26290. abstract="false" native="false" synchronized="false"
  26291. static="false" final="false" visibility="public"
  26292. deprecated="not deprecated">
  26293. <doc>
  26294. <![CDATA[Get a copy of the map (for diagnostics)
  26295. @return a clone of the map or null for none known]]>
  26296. </doc>
  26297. </method>
  26298. <method name="dumpTopology" return="java.lang.String"
  26299. abstract="false" native="false" synchronized="false"
  26300. static="false" final="false" visibility="public"
  26301. deprecated="not deprecated">
  26302. <doc>
  26303. <![CDATA[Generate a string listing the switch mapping implementation,
  26304. the mapping for every known node and the number of nodes and
  26305. unique switches known about -each entry to a separate line.
  26306. @return a string that can be presented to the ops team or used in
  26307. debug messages.]]>
  26308. </doc>
  26309. </method>
  26310. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  26311. abstract="false" native="false" synchronized="false"
  26312. static="false" final="false" visibility="protected"
  26313. deprecated="not deprecated">
  26314. </method>
  26315. <method name="isMappingSingleSwitch" return="boolean"
  26316. abstract="false" native="false" synchronized="false"
  26317. static="true" final="false" visibility="public"
  26318. deprecated="not deprecated">
  26319. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  26320. <doc>
  26321. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  26322. switch.
  26323. <p/>
  26324. This predicate simply assumes that all mappings not derived from
  26325. this class are multi-switch.
  26326. @param mapping the mapping to query
  26327. @return true if the base class says it is single switch, or the mapping
  26328. is not derived from this class.]]>
  26329. </doc>
  26330. </method>
  26331. <doc>
  26332. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  26333. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  26334. recommended, as it makes it easy for the Hadoop developers to add new methods
  26335. to this base class that are automatically picked up by all implementations.
  26336. <p/>
  26337. This class does not extend the <code>Configured</code>
  26338. base class, and should not be changed to do so, as it causes problems
  26339. for subclasses. The constructor of the <code>Configured</code> calls
  26340. the {@link #setConf(Configuration)} method, which will call into the
  26341. subclasses before they have been fully constructed.]]>
  26342. </doc>
  26343. </class>
  26344. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  26345. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  26346. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  26347. abstract="false"
  26348. static="false" final="false" visibility="public"
  26349. deprecated="not deprecated">
  26350. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26351. static="false" final="false" visibility="public"
  26352. deprecated="not deprecated">
  26353. <doc>
  26354. <![CDATA[cache a raw DNS mapping
  26355. @param rawMapping the raw mapping to cache]]>
  26356. </doc>
  26357. </constructor>
  26358. <method name="resolve" return="java.util.List"
  26359. abstract="false" native="false" synchronized="false"
  26360. static="false" final="false" visibility="public"
  26361. deprecated="not deprecated">
  26362. <param name="names" type="java.util.List"/>
  26363. </method>
  26364. <method name="getSwitchMap" return="java.util.Map"
  26365. abstract="false" native="false" synchronized="false"
  26366. static="false" final="false" visibility="public"
  26367. deprecated="not deprecated">
  26368. <doc>
  26369. <![CDATA[Get the (host x switch) map.
  26370. @return a copy of the cached map of hosts to rack]]>
  26371. </doc>
  26372. </method>
  26373. <method name="toString" return="java.lang.String"
  26374. abstract="false" native="false" synchronized="false"
  26375. static="false" final="false" visibility="public"
  26376. deprecated="not deprecated">
  26377. </method>
  26378. <method name="isSingleSwitch" return="boolean"
  26379. abstract="false" native="false" synchronized="false"
  26380. static="false" final="false" visibility="public"
  26381. deprecated="not deprecated">
  26382. <doc>
  26383. <![CDATA[Delegate the switch topology query to the raw mapping, via
  26384. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  26385. @return true iff the raw mapper is considered single-switch.]]>
  26386. </doc>
  26387. </method>
  26388. <method name="reloadCachedMappings"
  26389. abstract="false" native="false" synchronized="false"
  26390. static="false" final="false" visibility="public"
  26391. deprecated="not deprecated">
  26392. </method>
  26393. <method name="reloadCachedMappings"
  26394. abstract="false" native="false" synchronized="false"
  26395. static="false" final="false" visibility="public"
  26396. deprecated="not deprecated">
  26397. <param name="names" type="java.util.List"/>
  26398. </method>
  26399. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26400. transient="false" volatile="false"
  26401. static="false" final="true" visibility="protected"
  26402. deprecated="not deprecated">
  26403. <doc>
  26404. <![CDATA[The uncached mapping]]>
  26405. </doc>
  26406. </field>
  26407. <doc>
  26408. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  26409. raw DNSToSwitchMapping and stores the resolved network location in
  26410. a cache. The following calls to a resolved network location
  26411. will get its location from the cache.]]>
  26412. </doc>
  26413. </class>
  26414. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  26415. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  26416. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  26417. abstract="false"
  26418. static="false" final="false" visibility="public"
  26419. deprecated="not deprecated">
  26420. <constructor name="ConnectTimeoutException" type="java.lang.String"
  26421. static="false" final="false" visibility="public"
  26422. deprecated="not deprecated">
  26423. </constructor>
  26424. <doc>
  26425. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  26426. if it times out while connecting to the remote host.]]>
  26427. </doc>
  26428. </class>
  26429. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  26430. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  26431. <interface name="DNSToSwitchMapping" abstract="true"
  26432. static="false" final="false" visibility="public"
  26433. deprecated="not deprecated">
  26434. <method name="resolve" return="java.util.List"
  26435. abstract="false" native="false" synchronized="false"
  26436. static="false" final="false" visibility="public"
  26437. deprecated="not deprecated">
  26438. <param name="names" type="java.util.List"/>
  26439. <doc>
  26440. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  26441. switch information (network paths). One-to-one correspondence must be
  26442. maintained between the elements in the lists.
  26443. Consider an element in the argument list - x.y.com. The switch information
  26444. that is returned must be a network path of the form /foo/rack,
  26445. where / is the root, and 'foo' is the switch where 'rack' is connected.
  26446. Note the hostname/ip-address is not part of the returned path.
  26447. The network topology of the cluster would determine the number of
  26448. components in the network path.
  26449. <p/>
  26450. If a name cannot be resolved to a rack, the implementation
  26451. should return {@link NetworkTopology#DEFAULT_RACK}. This
  26452. is what the bundled implementations do, though it is not a formal requirement
  26453. @param names the list of hosts to resolve (can be empty)
  26454. @return list of resolved network paths.
  26455. If <i>names</i> is empty, the returned list is also empty]]>
  26456. </doc>
  26457. </method>
  26458. <method name="reloadCachedMappings"
  26459. abstract="false" native="false" synchronized="false"
  26460. static="false" final="false" visibility="public"
  26461. deprecated="not deprecated">
  26462. <doc>
  26463. <![CDATA[Reload all of the cached mappings.
  26464. If there is a cache, this method will clear it, so that future accesses
  26465. will get a chance to see the new data.]]>
  26466. </doc>
  26467. </method>
  26468. <method name="reloadCachedMappings"
  26469. abstract="false" native="false" synchronized="false"
  26470. static="false" final="false" visibility="public"
  26471. deprecated="not deprecated">
  26472. <param name="names" type="java.util.List"/>
  26473. <doc>
  26474. <![CDATA[Reload cached mappings on specific nodes.
  26475. If there is a cache on these nodes, this method will clear it, so that
  26476. future accesses will see updated data.]]>
  26477. </doc>
  26478. </method>
  26479. <doc>
  26480. <![CDATA[An interface that must be implemented to allow pluggable
  26481. DNS-name/IP-address to RackID resolvers.]]>
  26482. </doc>
  26483. </interface>
  26484. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  26485. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  26486. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  26487. abstract="false"
  26488. static="false" final="false" visibility="public"
  26489. deprecated="not deprecated">
  26490. <constructor name="ScriptBasedMapping"
  26491. static="false" final="false" visibility="public"
  26492. deprecated="not deprecated">
  26493. <doc>
  26494. <![CDATA[Create an instance with the default configuration.
  26495. </p>
  26496. Calling {@link #setConf(Configuration)} will trigger a
  26497. re-evaluation of the configuration settings and so be used to
  26498. set up the mapping script.]]>
  26499. </doc>
  26500. </constructor>
  26501. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  26502. static="false" final="false" visibility="public"
  26503. deprecated="not deprecated">
  26504. <doc>
  26505. <![CDATA[Create an instance from the given raw mapping
  26506. @param rawMap raw DNSTOSwithMapping]]>
  26507. </doc>
  26508. </constructor>
  26509. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  26510. static="false" final="false" visibility="public"
  26511. deprecated="not deprecated">
  26512. <doc>
  26513. <![CDATA[Create an instance from the given configuration
  26514. @param conf configuration]]>
  26515. </doc>
  26516. </constructor>
  26517. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26518. abstract="false" native="false" synchronized="false"
  26519. static="false" final="false" visibility="public"
  26520. deprecated="not deprecated">
  26521. </method>
  26522. <method name="toString" return="java.lang.String"
  26523. abstract="false" native="false" synchronized="false"
  26524. static="false" final="false" visibility="public"
  26525. deprecated="not deprecated">
  26526. </method>
  26527. <method name="setConf"
  26528. abstract="false" native="false" synchronized="false"
  26529. static="false" final="false" visibility="public"
  26530. deprecated="not deprecated">
  26531. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26532. <doc>
  26533. <![CDATA[{@inheritDoc}
  26534. <p/>
  26535. This will get called in the superclass constructor, so a check is needed
  26536. to ensure that the raw mapping is defined before trying to relaying a null
  26537. configuration.
  26538. @param conf]]>
  26539. </doc>
  26540. </method>
  26541. <field name="NO_SCRIPT" type="java.lang.String"
  26542. transient="false" volatile="false"
  26543. static="true" final="true" visibility="public"
  26544. deprecated="not deprecated">
  26545. <doc>
  26546. <![CDATA[Text used in the {@link #toString()} method if there is no string
  26547. {@value}]]>
  26548. </doc>
  26549. </field>
  26550. <doc>
  26551. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  26552. script configured via the
  26553. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  26554. <p/>
  26555. It contains a static class <code>RawScriptBasedMapping</code> that performs
  26556. the work: reading the configuration parameters, executing any defined
  26557. script, handling errors and such like. The outer
  26558. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  26559. queries.
  26560. <p/>
  26561. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  26562. true if and only if a script is defined.]]>
  26563. </doc>
  26564. </class>
  26565. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  26566. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  26567. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  26568. abstract="false"
  26569. static="false" final="false" visibility="public"
  26570. deprecated="not deprecated">
  26571. <implements name="org.apache.hadoop.conf.Configurable"/>
  26572. <constructor name="SocksSocketFactory"
  26573. static="false" final="false" visibility="public"
  26574. deprecated="not deprecated">
  26575. <doc>
  26576. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  26577. </doc>
  26578. </constructor>
  26579. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  26580. static="false" final="false" visibility="public"
  26581. deprecated="not deprecated">
  26582. <doc>
  26583. <![CDATA[Constructor with a supplied Proxy
  26584. @param proxy the proxy to use to create sockets]]>
  26585. </doc>
  26586. </constructor>
  26587. <method name="createSocket" return="java.net.Socket"
  26588. abstract="false" native="false" synchronized="false"
  26589. static="false" final="false" visibility="public"
  26590. deprecated="not deprecated">
  26591. <exception name="IOException" type="java.io.IOException"/>
  26592. </method>
  26593. <method name="createSocket" return="java.net.Socket"
  26594. abstract="false" native="false" synchronized="false"
  26595. static="false" final="false" visibility="public"
  26596. deprecated="not deprecated">
  26597. <param name="addr" type="java.net.InetAddress"/>
  26598. <param name="port" type="int"/>
  26599. <exception name="IOException" type="java.io.IOException"/>
  26600. </method>
  26601. <method name="createSocket" return="java.net.Socket"
  26602. abstract="false" native="false" synchronized="false"
  26603. static="false" final="false" visibility="public"
  26604. deprecated="not deprecated">
  26605. <param name="addr" type="java.net.InetAddress"/>
  26606. <param name="port" type="int"/>
  26607. <param name="localHostAddr" type="java.net.InetAddress"/>
  26608. <param name="localPort" type="int"/>
  26609. <exception name="IOException" type="java.io.IOException"/>
  26610. </method>
  26611. <method name="createSocket" return="java.net.Socket"
  26612. abstract="false" native="false" synchronized="false"
  26613. static="false" final="false" visibility="public"
  26614. deprecated="not deprecated">
  26615. <param name="host" type="java.lang.String"/>
  26616. <param name="port" type="int"/>
  26617. <exception name="IOException" type="java.io.IOException"/>
  26618. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26619. </method>
  26620. <method name="createSocket" return="java.net.Socket"
  26621. abstract="false" native="false" synchronized="false"
  26622. static="false" final="false" visibility="public"
  26623. deprecated="not deprecated">
  26624. <param name="host" type="java.lang.String"/>
  26625. <param name="port" type="int"/>
  26626. <param name="localHostAddr" type="java.net.InetAddress"/>
  26627. <param name="localPort" type="int"/>
  26628. <exception name="IOException" type="java.io.IOException"/>
  26629. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26630. </method>
  26631. <method name="hashCode" return="int"
  26632. abstract="false" native="false" synchronized="false"
  26633. static="false" final="false" visibility="public"
  26634. deprecated="not deprecated">
  26635. </method>
  26636. <method name="equals" return="boolean"
  26637. abstract="false" native="false" synchronized="false"
  26638. static="false" final="false" visibility="public"
  26639. deprecated="not deprecated">
  26640. <param name="obj" type="java.lang.Object"/>
  26641. </method>
  26642. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26643. abstract="false" native="false" synchronized="false"
  26644. static="false" final="false" visibility="public"
  26645. deprecated="not deprecated">
  26646. </method>
  26647. <method name="setConf"
  26648. abstract="false" native="false" synchronized="false"
  26649. static="false" final="false" visibility="public"
  26650. deprecated="not deprecated">
  26651. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26652. </method>
  26653. <doc>
  26654. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  26655. </doc>
  26656. </class>
  26657. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  26658. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  26659. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  26660. abstract="false"
  26661. static="false" final="false" visibility="public"
  26662. deprecated="not deprecated">
  26663. <constructor name="StandardSocketFactory"
  26664. static="false" final="false" visibility="public"
  26665. deprecated="not deprecated">
  26666. <doc>
  26667. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  26668. </doc>
  26669. </constructor>
  26670. <method name="createSocket" return="java.net.Socket"
  26671. abstract="false" native="false" synchronized="false"
  26672. static="false" final="false" visibility="public"
  26673. deprecated="not deprecated">
  26674. <exception name="IOException" type="java.io.IOException"/>
  26675. </method>
  26676. <method name="createSocket" return="java.net.Socket"
  26677. abstract="false" native="false" synchronized="false"
  26678. static="false" final="false" visibility="public"
  26679. deprecated="not deprecated">
  26680. <param name="addr" type="java.net.InetAddress"/>
  26681. <param name="port" type="int"/>
  26682. <exception name="IOException" type="java.io.IOException"/>
  26683. </method>
  26684. <method name="createSocket" return="java.net.Socket"
  26685. abstract="false" native="false" synchronized="false"
  26686. static="false" final="false" visibility="public"
  26687. deprecated="not deprecated">
  26688. <param name="addr" type="java.net.InetAddress"/>
  26689. <param name="port" type="int"/>
  26690. <param name="localHostAddr" type="java.net.InetAddress"/>
  26691. <param name="localPort" type="int"/>
  26692. <exception name="IOException" type="java.io.IOException"/>
  26693. </method>
  26694. <method name="createSocket" return="java.net.Socket"
  26695. abstract="false" native="false" synchronized="false"
  26696. static="false" final="false" visibility="public"
  26697. deprecated="not deprecated">
  26698. <param name="host" type="java.lang.String"/>
  26699. <param name="port" type="int"/>
  26700. <exception name="IOException" type="java.io.IOException"/>
  26701. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26702. </method>
  26703. <method name="createSocket" return="java.net.Socket"
  26704. abstract="false" native="false" synchronized="false"
  26705. static="false" final="false" visibility="public"
  26706. deprecated="not deprecated">
  26707. <param name="host" type="java.lang.String"/>
  26708. <param name="port" type="int"/>
  26709. <param name="localHostAddr" type="java.net.InetAddress"/>
  26710. <param name="localPort" type="int"/>
  26711. <exception name="IOException" type="java.io.IOException"/>
  26712. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  26713. </method>
  26714. <method name="equals" return="boolean"
  26715. abstract="false" native="false" synchronized="false"
  26716. static="false" final="false" visibility="public"
  26717. deprecated="not deprecated">
  26718. <param name="obj" type="java.lang.Object"/>
  26719. </method>
  26720. <method name="hashCode" return="int"
  26721. abstract="false" native="false" synchronized="false"
  26722. static="false" final="false" visibility="public"
  26723. deprecated="not deprecated">
  26724. </method>
  26725. <doc>
  26726. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  26727. </doc>
  26728. </class>
  26729. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  26730. <!-- start class org.apache.hadoop.net.TableMapping -->
  26731. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  26732. abstract="false"
  26733. static="false" final="false" visibility="public"
  26734. deprecated="not deprecated">
  26735. <constructor name="TableMapping"
  26736. static="false" final="false" visibility="public"
  26737. deprecated="not deprecated">
  26738. </constructor>
  26739. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26740. abstract="false" native="false" synchronized="false"
  26741. static="false" final="false" visibility="public"
  26742. deprecated="not deprecated">
  26743. </method>
  26744. <method name="setConf"
  26745. abstract="false" native="false" synchronized="false"
  26746. static="false" final="false" visibility="public"
  26747. deprecated="not deprecated">
  26748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26749. </method>
  26750. <method name="reloadCachedMappings"
  26751. abstract="false" native="false" synchronized="false"
  26752. static="false" final="false" visibility="public"
  26753. deprecated="not deprecated">
  26754. </method>
  26755. <doc>
  26756. <![CDATA[<p>
  26757. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  26758. file. The columns are separated by whitespace. The first column is a DNS or
  26759. IP address and the second column specifies the rack where the address maps.
  26760. </p>
  26761. <p>
  26762. This class uses the configuration parameter {@code
  26763. net.topology.table.file.name} to locate the mapping file.
  26764. </p>
  26765. <p>
  26766. Calls to {@link #resolve(List)} will look up the address as defined in the
  26767. mapping file. If no entry corresponding to the address is found, the value
  26768. {@code /default-rack} is returned.
  26769. </p>]]>
  26770. </doc>
  26771. </class>
  26772. <!-- end class org.apache.hadoop.net.TableMapping -->
  26773. <doc>
  26774. <![CDATA[Network-related classes.]]>
  26775. </doc>
  26776. </package>
  26777. <package name="org.apache.hadoop.net.unix">
  26778. </package>
  26779. <package name="org.apache.hadoop.record">
  26780. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  26781. <class name="BinaryRecordInput" extends="java.lang.Object"
  26782. abstract="false"
  26783. static="false" final="false" visibility="public"
  26784. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26785. <implements name="org.apache.hadoop.record.RecordInput"/>
  26786. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  26787. static="false" final="false" visibility="public"
  26788. deprecated="not deprecated">
  26789. <doc>
  26790. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  26791. </doc>
  26792. </constructor>
  26793. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  26794. static="false" final="false" visibility="public"
  26795. deprecated="not deprecated">
  26796. <doc>
  26797. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  26798. </doc>
  26799. </constructor>
  26800. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  26801. abstract="false" native="false" synchronized="false"
  26802. static="true" final="false" visibility="public"
  26803. deprecated="not deprecated">
  26804. <param name="inp" type="java.io.DataInput"/>
  26805. <doc>
  26806. <![CDATA[Get a thread-local record input for the supplied DataInput.
  26807. @param inp data input stream
  26808. @return binary record input corresponding to the supplied DataInput.]]>
  26809. </doc>
  26810. </method>
  26811. <method name="readByte" return="byte"
  26812. abstract="false" native="false" synchronized="false"
  26813. static="false" final="false" visibility="public"
  26814. deprecated="not deprecated">
  26815. <param name="tag" type="java.lang.String"/>
  26816. <exception name="IOException" type="java.io.IOException"/>
  26817. </method>
  26818. <method name="readBool" return="boolean"
  26819. abstract="false" native="false" synchronized="false"
  26820. static="false" final="false" visibility="public"
  26821. deprecated="not deprecated">
  26822. <param name="tag" type="java.lang.String"/>
  26823. <exception name="IOException" type="java.io.IOException"/>
  26824. </method>
  26825. <method name="readInt" return="int"
  26826. abstract="false" native="false" synchronized="false"
  26827. static="false" final="false" visibility="public"
  26828. deprecated="not deprecated">
  26829. <param name="tag" type="java.lang.String"/>
  26830. <exception name="IOException" type="java.io.IOException"/>
  26831. </method>
  26832. <method name="readLong" return="long"
  26833. abstract="false" native="false" synchronized="false"
  26834. static="false" final="false" visibility="public"
  26835. deprecated="not deprecated">
  26836. <param name="tag" type="java.lang.String"/>
  26837. <exception name="IOException" type="java.io.IOException"/>
  26838. </method>
  26839. <method name="readFloat" return="float"
  26840. abstract="false" native="false" synchronized="false"
  26841. static="false" final="false" visibility="public"
  26842. deprecated="not deprecated">
  26843. <param name="tag" type="java.lang.String"/>
  26844. <exception name="IOException" type="java.io.IOException"/>
  26845. </method>
  26846. <method name="readDouble" return="double"
  26847. abstract="false" native="false" synchronized="false"
  26848. static="false" final="false" visibility="public"
  26849. deprecated="not deprecated">
  26850. <param name="tag" type="java.lang.String"/>
  26851. <exception name="IOException" type="java.io.IOException"/>
  26852. </method>
  26853. <method name="readString" return="java.lang.String"
  26854. abstract="false" native="false" synchronized="false"
  26855. static="false" final="false" visibility="public"
  26856. deprecated="not deprecated">
  26857. <param name="tag" type="java.lang.String"/>
  26858. <exception name="IOException" type="java.io.IOException"/>
  26859. </method>
  26860. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  26861. abstract="false" native="false" synchronized="false"
  26862. static="false" final="false" visibility="public"
  26863. deprecated="not deprecated">
  26864. <param name="tag" type="java.lang.String"/>
  26865. <exception name="IOException" type="java.io.IOException"/>
  26866. </method>
  26867. <method name="startRecord"
  26868. abstract="false" native="false" synchronized="false"
  26869. static="false" final="false" visibility="public"
  26870. deprecated="not deprecated">
  26871. <param name="tag" type="java.lang.String"/>
  26872. <exception name="IOException" type="java.io.IOException"/>
  26873. </method>
  26874. <method name="endRecord"
  26875. abstract="false" native="false" synchronized="false"
  26876. static="false" final="false" visibility="public"
  26877. deprecated="not deprecated">
  26878. <param name="tag" type="java.lang.String"/>
  26879. <exception name="IOException" type="java.io.IOException"/>
  26880. </method>
  26881. <method name="startVector" return="org.apache.hadoop.record.Index"
  26882. abstract="false" native="false" synchronized="false"
  26883. static="false" final="false" visibility="public"
  26884. deprecated="not deprecated">
  26885. <param name="tag" type="java.lang.String"/>
  26886. <exception name="IOException" type="java.io.IOException"/>
  26887. </method>
  26888. <method name="endVector"
  26889. abstract="false" native="false" synchronized="false"
  26890. static="false" final="false" visibility="public"
  26891. deprecated="not deprecated">
  26892. <param name="tag" type="java.lang.String"/>
  26893. <exception name="IOException" type="java.io.IOException"/>
  26894. </method>
  26895. <method name="startMap" return="org.apache.hadoop.record.Index"
  26896. abstract="false" native="false" synchronized="false"
  26897. static="false" final="false" visibility="public"
  26898. deprecated="not deprecated">
  26899. <param name="tag" type="java.lang.String"/>
  26900. <exception name="IOException" type="java.io.IOException"/>
  26901. </method>
  26902. <method name="endMap"
  26903. abstract="false" native="false" synchronized="false"
  26904. static="false" final="false" visibility="public"
  26905. deprecated="not deprecated">
  26906. <param name="tag" type="java.lang.String"/>
  26907. <exception name="IOException" type="java.io.IOException"/>
  26908. </method>
  26909. <doc>
  26910. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  26911. </doc>
  26912. </class>
  26913. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  26914. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  26915. <class name="BinaryRecordOutput" extends="java.lang.Object"
  26916. abstract="false"
  26917. static="false" final="false" visibility="public"
  26918. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26919. <implements name="org.apache.hadoop.record.RecordOutput"/>
  26920. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  26921. static="false" final="false" visibility="public"
  26922. deprecated="not deprecated">
  26923. <doc>
  26924. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  26925. </doc>
  26926. </constructor>
  26927. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  26928. static="false" final="false" visibility="public"
  26929. deprecated="not deprecated">
  26930. <doc>
  26931. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  26932. </doc>
  26933. </constructor>
  26934. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  26935. abstract="false" native="false" synchronized="false"
  26936. static="true" final="false" visibility="public"
  26937. deprecated="not deprecated">
  26938. <param name="out" type="java.io.DataOutput"/>
  26939. <doc>
  26940. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  26941. @param out data output stream
  26942. @return binary record output corresponding to the supplied DataOutput.]]>
  26943. </doc>
  26944. </method>
  26945. <method name="writeByte"
  26946. abstract="false" native="false" synchronized="false"
  26947. static="false" final="false" visibility="public"
  26948. deprecated="not deprecated">
  26949. <param name="b" type="byte"/>
  26950. <param name="tag" type="java.lang.String"/>
  26951. <exception name="IOException" type="java.io.IOException"/>
  26952. </method>
  26953. <method name="writeBool"
  26954. abstract="false" native="false" synchronized="false"
  26955. static="false" final="false" visibility="public"
  26956. deprecated="not deprecated">
  26957. <param name="b" type="boolean"/>
  26958. <param name="tag" type="java.lang.String"/>
  26959. <exception name="IOException" type="java.io.IOException"/>
  26960. </method>
  26961. <method name="writeInt"
  26962. abstract="false" native="false" synchronized="false"
  26963. static="false" final="false" visibility="public"
  26964. deprecated="not deprecated">
  26965. <param name="i" type="int"/>
  26966. <param name="tag" type="java.lang.String"/>
  26967. <exception name="IOException" type="java.io.IOException"/>
  26968. </method>
  26969. <method name="writeLong"
  26970. abstract="false" native="false" synchronized="false"
  26971. static="false" final="false" visibility="public"
  26972. deprecated="not deprecated">
  26973. <param name="l" type="long"/>
  26974. <param name="tag" type="java.lang.String"/>
  26975. <exception name="IOException" type="java.io.IOException"/>
  26976. </method>
  26977. <method name="writeFloat"
  26978. abstract="false" native="false" synchronized="false"
  26979. static="false" final="false" visibility="public"
  26980. deprecated="not deprecated">
  26981. <param name="f" type="float"/>
  26982. <param name="tag" type="java.lang.String"/>
  26983. <exception name="IOException" type="java.io.IOException"/>
  26984. </method>
  26985. <method name="writeDouble"
  26986. abstract="false" native="false" synchronized="false"
  26987. static="false" final="false" visibility="public"
  26988. deprecated="not deprecated">
  26989. <param name="d" type="double"/>
  26990. <param name="tag" type="java.lang.String"/>
  26991. <exception name="IOException" type="java.io.IOException"/>
  26992. </method>
  26993. <method name="writeString"
  26994. abstract="false" native="false" synchronized="false"
  26995. static="false" final="false" visibility="public"
  26996. deprecated="not deprecated">
  26997. <param name="s" type="java.lang.String"/>
  26998. <param name="tag" type="java.lang.String"/>
  26999. <exception name="IOException" type="java.io.IOException"/>
  27000. </method>
  27001. <method name="writeBuffer"
  27002. abstract="false" native="false" synchronized="false"
  27003. static="false" final="false" visibility="public"
  27004. deprecated="not deprecated">
  27005. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  27006. <param name="tag" type="java.lang.String"/>
  27007. <exception name="IOException" type="java.io.IOException"/>
  27008. </method>
  27009. <method name="startRecord"
  27010. abstract="false" native="false" synchronized="false"
  27011. static="false" final="false" visibility="public"
  27012. deprecated="not deprecated">
  27013. <param name="r" type="org.apache.hadoop.record.Record"/>
  27014. <param name="tag" type="java.lang.String"/>
  27015. <exception name="IOException" type="java.io.IOException"/>
  27016. </method>
  27017. <method name="endRecord"
  27018. abstract="false" native="false" synchronized="false"
  27019. static="false" final="false" visibility="public"
  27020. deprecated="not deprecated">
  27021. <param name="r" type="org.apache.hadoop.record.Record"/>
  27022. <param name="tag" type="java.lang.String"/>
  27023. <exception name="IOException" type="java.io.IOException"/>
  27024. </method>
  27025. <method name="startVector"
  27026. abstract="false" native="false" synchronized="false"
  27027. static="false" final="false" visibility="public"
  27028. deprecated="not deprecated">
  27029. <param name="v" type="java.util.ArrayList"/>
  27030. <param name="tag" type="java.lang.String"/>
  27031. <exception name="IOException" type="java.io.IOException"/>
  27032. </method>
  27033. <method name="endVector"
  27034. abstract="false" native="false" synchronized="false"
  27035. static="false" final="false" visibility="public"
  27036. deprecated="not deprecated">
  27037. <param name="v" type="java.util.ArrayList"/>
  27038. <param name="tag" type="java.lang.String"/>
  27039. <exception name="IOException" type="java.io.IOException"/>
  27040. </method>
  27041. <method name="startMap"
  27042. abstract="false" native="false" synchronized="false"
  27043. static="false" final="false" visibility="public"
  27044. deprecated="not deprecated">
  27045. <param name="v" type="java.util.TreeMap"/>
  27046. <param name="tag" type="java.lang.String"/>
  27047. <exception name="IOException" type="java.io.IOException"/>
  27048. </method>
  27049. <method name="endMap"
  27050. abstract="false" native="false" synchronized="false"
  27051. static="false" final="false" visibility="public"
  27052. deprecated="not deprecated">
  27053. <param name="v" type="java.util.TreeMap"/>
  27054. <param name="tag" type="java.lang.String"/>
  27055. <exception name="IOException" type="java.io.IOException"/>
  27056. </method>
  27057. <doc>
  27058. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27059. </doc>
  27060. </class>
  27061. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  27062. <!-- start class org.apache.hadoop.record.Buffer -->
  27063. <class name="Buffer" extends="java.lang.Object"
  27064. abstract="false"
  27065. static="false" final="false" visibility="public"
  27066. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  27067. <implements name="java.lang.Comparable"/>
  27068. <implements name="java.lang.Cloneable"/>
  27069. <constructor name="Buffer"
  27070. static="false" final="false" visibility="public"
  27071. deprecated="not deprecated">
  27072. <doc>
  27073. <![CDATA[Create a zero-count sequence.]]>
  27074. </doc>
  27075. </constructor>
  27076. <constructor name="Buffer" type="byte[]"
  27077. static="false" final="false" visibility="public"
  27078. deprecated="not deprecated">
  27079. <doc>
  27080. <![CDATA[Create a Buffer using the byte array as the initial value.
  27081. @param bytes This array becomes the backing storage for the object.]]>
  27082. </doc>
  27083. </constructor>
  27084. <constructor name="Buffer" type="byte[], int, int"
  27085. static="false" final="false" visibility="public"
  27086. deprecated="not deprecated">
  27087. <doc>
  27088. <![CDATA[Create a Buffer using the byte range as the initial value.
  27089. @param bytes Copy of this array becomes the backing storage for the object.
  27090. @param offset offset into byte array
  27091. @param length length of data]]>
  27092. </doc>
  27093. </constructor>
  27094. <method name="set"
  27095. abstract="false" native="false" synchronized="false"
  27096. static="false" final="false" visibility="public"
  27097. deprecated="not deprecated">
  27098. <param name="bytes" type="byte[]"/>
  27099. <doc>
  27100. <![CDATA[Use the specified bytes array as underlying sequence.
  27101. @param bytes byte sequence]]>
  27102. </doc>
  27103. </method>
  27104. <method name="copy"
  27105. abstract="false" native="false" synchronized="false"
  27106. static="false" final="true" visibility="public"
  27107. deprecated="not deprecated">
  27108. <param name="bytes" type="byte[]"/>
  27109. <param name="offset" type="int"/>
  27110. <param name="length" type="int"/>
  27111. <doc>
  27112. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  27113. @param bytes byte array to be assigned
  27114. @param offset offset into byte array
  27115. @param length length of data]]>
  27116. </doc>
  27117. </method>
  27118. <method name="get" return="byte[]"
  27119. abstract="false" native="false" synchronized="false"
  27120. static="false" final="false" visibility="public"
  27121. deprecated="not deprecated">
  27122. <doc>
  27123. <![CDATA[Get the data from the Buffer.
  27124. @return The data is only valid between 0 and getCount() - 1.]]>
  27125. </doc>
  27126. </method>
  27127. <method name="getCount" return="int"
  27128. abstract="false" native="false" synchronized="false"
  27129. static="false" final="false" visibility="public"
  27130. deprecated="not deprecated">
  27131. <doc>
  27132. <![CDATA[Get the current count of the buffer.]]>
  27133. </doc>
  27134. </method>
  27135. <method name="getCapacity" return="int"
  27136. abstract="false" native="false" synchronized="false"
  27137. static="false" final="false" visibility="public"
  27138. deprecated="not deprecated">
  27139. <doc>
  27140. <![CDATA[Get the capacity, which is the maximum count that could handled without
  27141. resizing the backing storage.
  27142. @return The number of bytes]]>
  27143. </doc>
  27144. </method>
  27145. <method name="setCapacity"
  27146. abstract="false" native="false" synchronized="false"
  27147. static="false" final="false" visibility="public"
  27148. deprecated="not deprecated">
  27149. <param name="newCapacity" type="int"/>
  27150. <doc>
  27151. <![CDATA[Change the capacity of the backing storage.
  27152. The data is preserved if newCapacity {@literal >=} getCount().
  27153. @param newCapacity The new capacity in bytes.]]>
  27154. </doc>
  27155. </method>
  27156. <method name="reset"
  27157. abstract="false" native="false" synchronized="false"
  27158. static="false" final="false" visibility="public"
  27159. deprecated="not deprecated">
  27160. <doc>
  27161. <![CDATA[Reset the buffer to 0 size]]>
  27162. </doc>
  27163. </method>
  27164. <method name="truncate"
  27165. abstract="false" native="false" synchronized="false"
  27166. static="false" final="false" visibility="public"
  27167. deprecated="not deprecated">
  27168. <doc>
  27169. <![CDATA[Change the capacity of the backing store to be the same as the current
  27170. count of buffer.]]>
  27171. </doc>
  27172. </method>
  27173. <method name="append"
  27174. abstract="false" native="false" synchronized="false"
  27175. static="false" final="false" visibility="public"
  27176. deprecated="not deprecated">
  27177. <param name="bytes" type="byte[]"/>
  27178. <param name="offset" type="int"/>
  27179. <param name="length" type="int"/>
  27180. <doc>
  27181. <![CDATA[Append specified bytes to the buffer.
  27182. @param bytes byte array to be appended
  27183. @param offset offset into byte array
  27184. @param length length of data]]>
  27185. </doc>
  27186. </method>
  27187. <method name="append"
  27188. abstract="false" native="false" synchronized="false"
  27189. static="false" final="false" visibility="public"
  27190. deprecated="not deprecated">
  27191. <param name="bytes" type="byte[]"/>
  27192. <doc>
  27193. <![CDATA[Append specified bytes to the buffer
  27194. @param bytes byte array to be appended]]>
  27195. </doc>
  27196. </method>
  27197. <method name="hashCode" return="int"
  27198. abstract="false" native="false" synchronized="false"
  27199. static="false" final="false" visibility="public"
  27200. deprecated="not deprecated">
  27201. </method>
  27202. <method name="compareTo" return="int"
  27203. abstract="false" native="false" synchronized="false"
  27204. static="false" final="false" visibility="public"
  27205. deprecated="not deprecated">
  27206. <param name="other" type="java.lang.Object"/>
  27207. <doc>
  27208. <![CDATA[Define the sort order of the Buffer.
  27209. @param other The other buffer
  27210. @return Positive if this is bigger than other, 0 if they are equal, and
  27211. negative if this is smaller than other.]]>
  27212. </doc>
  27213. </method>
  27214. <method name="equals" return="boolean"
  27215. abstract="false" native="false" synchronized="false"
  27216. static="false" final="false" visibility="public"
  27217. deprecated="not deprecated">
  27218. <param name="other" type="java.lang.Object"/>
  27219. </method>
  27220. <method name="toString" return="java.lang.String"
  27221. abstract="false" native="false" synchronized="false"
  27222. static="false" final="false" visibility="public"
  27223. deprecated="not deprecated">
  27224. </method>
  27225. <method name="toString" return="java.lang.String"
  27226. abstract="false" native="false" synchronized="false"
  27227. static="false" final="false" visibility="public"
  27228. deprecated="not deprecated">
  27229. <param name="charsetName" type="java.lang.String"/>
  27230. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  27231. <doc>
  27232. <![CDATA[Convert the byte buffer to a string an specific character encoding
  27233. @param charsetName Valid Java Character Set Name]]>
  27234. </doc>
  27235. </method>
  27236. <method name="clone" return="java.lang.Object"
  27237. abstract="false" native="false" synchronized="false"
  27238. static="false" final="false" visibility="public"
  27239. deprecated="not deprecated">
  27240. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  27241. </method>
  27242. <doc>
  27243. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  27244. It is resizable and distinguishes between the count of the sequence and
  27245. the current capacity.
  27246. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  27247. </doc>
  27248. </class>
  27249. <!-- end class org.apache.hadoop.record.Buffer -->
  27250. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  27251. <class name="CsvRecordInput" extends="java.lang.Object"
  27252. abstract="false"
  27253. static="false" final="false" visibility="public"
  27254. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27255. <implements name="org.apache.hadoop.record.RecordInput"/>
  27256. <constructor name="CsvRecordInput" type="java.io.InputStream"
  27257. static="false" final="false" visibility="public"
  27258. deprecated="not deprecated">
  27259. <doc>
  27260. <![CDATA[Creates a new instance of CsvRecordInput]]>
  27261. </doc>
  27262. </constructor>
  27263. <method name="readByte" return="byte"
  27264. abstract="false" native="false" synchronized="false"
  27265. static="false" final="false" visibility="public"
  27266. deprecated="not deprecated">
  27267. <param name="tag" type="java.lang.String"/>
  27268. <exception name="IOException" type="java.io.IOException"/>
  27269. </method>
  27270. <method name="readBool" return="boolean"
  27271. abstract="false" native="false" synchronized="false"
  27272. static="false" final="false" visibility="public"
  27273. deprecated="not deprecated">
  27274. <param name="tag" type="java.lang.String"/>
  27275. <exception name="IOException" type="java.io.IOException"/>
  27276. </method>
  27277. <method name="readInt" return="int"
  27278. abstract="false" native="false" synchronized="false"
  27279. static="false" final="false" visibility="public"
  27280. deprecated="not deprecated">
  27281. <param name="tag" type="java.lang.String"/>
  27282. <exception name="IOException" type="java.io.IOException"/>
  27283. </method>
  27284. <method name="readLong" return="long"
  27285. abstract="false" native="false" synchronized="false"
  27286. static="false" final="false" visibility="public"
  27287. deprecated="not deprecated">
  27288. <param name="tag" type="java.lang.String"/>
  27289. <exception name="IOException" type="java.io.IOException"/>
  27290. </method>
  27291. <method name="readFloat" return="float"
  27292. abstract="false" native="false" synchronized="false"
  27293. static="false" final="false" visibility="public"
  27294. deprecated="not deprecated">
  27295. <param name="tag" type="java.lang.String"/>
  27296. <exception name="IOException" type="java.io.IOException"/>
  27297. </method>
  27298. <method name="readDouble" return="double"
  27299. abstract="false" native="false" synchronized="false"
  27300. static="false" final="false" visibility="public"
  27301. deprecated="not deprecated">
  27302. <param name="tag" type="java.lang.String"/>
  27303. <exception name="IOException" type="java.io.IOException"/>
  27304. </method>
  27305. <method name="readString" return="java.lang.String"
  27306. abstract="false" native="false" synchronized="false"
  27307. static="false" final="false" visibility="public"
  27308. deprecated="not deprecated">
  27309. <param name="tag" type="java.lang.String"/>
  27310. <exception name="IOException" type="java.io.IOException"/>
  27311. </method>
  27312. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  27313. abstract="false" native="false" synchronized="false"
  27314. static="false" final="false" visibility="public"
  27315. deprecated="not deprecated">
  27316. <param name="tag" type="java.lang.String"/>
  27317. <exception name="IOException" type="java.io.IOException"/>
  27318. </method>
  27319. <method name="startRecord"
  27320. abstract="false" native="false" synchronized="false"
  27321. static="false" final="false" visibility="public"
  27322. deprecated="not deprecated">
  27323. <param name="tag" type="java.lang.String"/>
  27324. <exception name="IOException" type="java.io.IOException"/>
  27325. </method>
  27326. <method name="endRecord"
  27327. abstract="false" native="false" synchronized="false"
  27328. static="false" final="false" visibility="public"
  27329. deprecated="not deprecated">
  27330. <param name="tag" type="java.lang.String"/>
  27331. <exception name="IOException" type="java.io.IOException"/>
  27332. </method>
  27333. <method name="startVector" return="org.apache.hadoop.record.Index"
  27334. abstract="false" native="false" synchronized="false"
  27335. static="false" final="false" visibility="public"
  27336. deprecated="not deprecated">
  27337. <param name="tag" type="java.lang.String"/>
  27338. <exception name="IOException" type="java.io.IOException"/>
  27339. </method>
  27340. <method name="endVector"
  27341. abstract="false" native="false" synchronized="false"
  27342. static="false" final="false" visibility="public"
  27343. deprecated="not deprecated">
  27344. <param name="tag" type="java.lang.String"/>
  27345. <exception name="IOException" type="java.io.IOException"/>
  27346. </method>
  27347. <method name="startMap" return="org.apache.hadoop.record.Index"
  27348. abstract="false" native="false" synchronized="false"
  27349. static="false" final="false" visibility="public"
  27350. deprecated="not deprecated">
  27351. <param name="tag" type="java.lang.String"/>
  27352. <exception name="IOException" type="java.io.IOException"/>
  27353. </method>
  27354. <method name="endMap"
  27355. abstract="false" native="false" synchronized="false"
  27356. static="false" final="false" visibility="public"
  27357. deprecated="not deprecated">
  27358. <param name="tag" type="java.lang.String"/>
  27359. <exception name="IOException" type="java.io.IOException"/>
  27360. </method>
  27361. <doc>
  27362. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27363. </doc>
  27364. </class>
  27365. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  27366. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  27367. <class name="CsvRecordOutput" extends="java.lang.Object"
  27368. abstract="false"
  27369. static="false" final="false" visibility="public"
  27370. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27371. <implements name="org.apache.hadoop.record.RecordOutput"/>
  27372. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  27373. static="false" final="false" visibility="public"
  27374. deprecated="not deprecated">
  27375. <doc>
  27376. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  27377. </doc>
  27378. </constructor>
  27379. <method name="writeByte"
  27380. abstract="false" native="false" synchronized="false"
  27381. static="false" final="false" visibility="public"
  27382. deprecated="not deprecated">
  27383. <param name="b" type="byte"/>
  27384. <param name="tag" type="java.lang.String"/>
  27385. <exception name="IOException" type="java.io.IOException"/>
  27386. </method>
  27387. <method name="writeBool"
  27388. abstract="false" native="false" synchronized="false"
  27389. static="false" final="false" visibility="public"
  27390. deprecated="not deprecated">
  27391. <param name="b" type="boolean"/>
  27392. <param name="tag" type="java.lang.String"/>
  27393. <exception name="IOException" type="java.io.IOException"/>
  27394. </method>
  27395. <method name="writeInt"
  27396. abstract="false" native="false" synchronized="false"
  27397. static="false" final="false" visibility="public"
  27398. deprecated="not deprecated">
  27399. <param name="i" type="int"/>
  27400. <param name="tag" type="java.lang.String"/>
  27401. <exception name="IOException" type="java.io.IOException"/>
  27402. </method>
  27403. <method name="writeLong"
  27404. abstract="false" native="false" synchronized="false"
  27405. static="false" final="false" visibility="public"
  27406. deprecated="not deprecated">
  27407. <param name="l" type="long"/>
  27408. <param name="tag" type="java.lang.String"/>
  27409. <exception name="IOException" type="java.io.IOException"/>
  27410. </method>
  27411. <method name="writeFloat"
  27412. abstract="false" native="false" synchronized="false"
  27413. static="false" final="false" visibility="public"
  27414. deprecated="not deprecated">
  27415. <param name="f" type="float"/>
  27416. <param name="tag" type="java.lang.String"/>
  27417. <exception name="IOException" type="java.io.IOException"/>
  27418. </method>
  27419. <method name="writeDouble"
  27420. abstract="false" native="false" synchronized="false"
  27421. static="false" final="false" visibility="public"
  27422. deprecated="not deprecated">
  27423. <param name="d" type="double"/>
  27424. <param name="tag" type="java.lang.String"/>
  27425. <exception name="IOException" type="java.io.IOException"/>
  27426. </method>
  27427. <method name="writeString"
  27428. abstract="false" native="false" synchronized="false"
  27429. static="false" final="false" visibility="public"
  27430. deprecated="not deprecated">
  27431. <param name="s" type="java.lang.String"/>
  27432. <param name="tag" type="java.lang.String"/>
  27433. <exception name="IOException" type="java.io.IOException"/>
  27434. </method>
  27435. <method name="writeBuffer"
  27436. abstract="false" native="false" synchronized="false"
  27437. static="false" final="false" visibility="public"
  27438. deprecated="not deprecated">
  27439. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  27440. <param name="tag" type="java.lang.String"/>
  27441. <exception name="IOException" type="java.io.IOException"/>
  27442. </method>
  27443. <method name="startRecord"
  27444. abstract="false" native="false" synchronized="false"
  27445. static="false" final="false" visibility="public"
  27446. deprecated="not deprecated">
  27447. <param name="r" type="org.apache.hadoop.record.Record"/>
  27448. <param name="tag" type="java.lang.String"/>
  27449. <exception name="IOException" type="java.io.IOException"/>
  27450. </method>
  27451. <method name="endRecord"
  27452. abstract="false" native="false" synchronized="false"
  27453. static="false" final="false" visibility="public"
  27454. deprecated="not deprecated">
  27455. <param name="r" type="org.apache.hadoop.record.Record"/>
  27456. <param name="tag" type="java.lang.String"/>
  27457. <exception name="IOException" type="java.io.IOException"/>
  27458. </method>
  27459. <method name="startVector"
  27460. abstract="false" native="false" synchronized="false"
  27461. static="false" final="false" visibility="public"
  27462. deprecated="not deprecated">
  27463. <param name="v" type="java.util.ArrayList"/>
  27464. <param name="tag" type="java.lang.String"/>
  27465. <exception name="IOException" type="java.io.IOException"/>
  27466. </method>
  27467. <method name="endVector"
  27468. abstract="false" native="false" synchronized="false"
  27469. static="false" final="false" visibility="public"
  27470. deprecated="not deprecated">
  27471. <param name="v" type="java.util.ArrayList"/>
  27472. <param name="tag" type="java.lang.String"/>
  27473. <exception name="IOException" type="java.io.IOException"/>
  27474. </method>
  27475. <method name="startMap"
  27476. abstract="false" native="false" synchronized="false"
  27477. static="false" final="false" visibility="public"
  27478. deprecated="not deprecated">
  27479. <param name="v" type="java.util.TreeMap"/>
  27480. <param name="tag" type="java.lang.String"/>
  27481. <exception name="IOException" type="java.io.IOException"/>
  27482. </method>
  27483. <method name="endMap"
  27484. abstract="false" native="false" synchronized="false"
  27485. static="false" final="false" visibility="public"
  27486. deprecated="not deprecated">
  27487. <param name="v" type="java.util.TreeMap"/>
  27488. <param name="tag" type="java.lang.String"/>
  27489. <exception name="IOException" type="java.io.IOException"/>
  27490. </method>
  27491. <doc>
  27492. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27493. </doc>
  27494. </class>
  27495. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  27496. <!-- start interface org.apache.hadoop.record.Index -->
  27497. <interface name="Index" abstract="true"
  27498. static="false" final="false" visibility="public"
  27499. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27500. <method name="done" return="boolean"
  27501. abstract="false" native="false" synchronized="false"
  27502. static="false" final="false" visibility="public"
  27503. deprecated="not deprecated">
  27504. </method>
  27505. <method name="incr"
  27506. abstract="false" native="false" synchronized="false"
  27507. static="false" final="false" visibility="public"
  27508. deprecated="not deprecated">
  27509. </method>
  27510. <doc>
  27511. <![CDATA[Interface that acts as an iterator for deserializing maps.
  27512. The deserializer returns an instance that the record uses to
  27513. read vectors and maps. An example of usage is as follows:
  27514. <code>
  27515. Index idx = startVector(...);
  27516. while (!idx.done()) {
  27517. .... // read element of a vector
  27518. idx.incr();
  27519. }
  27520. </code>
  27521. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27522. </doc>
  27523. </interface>
  27524. <!-- end interface org.apache.hadoop.record.Index -->
  27525. <!-- start class org.apache.hadoop.record.Record -->
  27526. <class name="Record" extends="java.lang.Object"
  27527. abstract="true"
  27528. static="false" final="false" visibility="public"
  27529. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27530. <implements name="org.apache.hadoop.io.WritableComparable"/>
  27531. <implements name="java.lang.Cloneable"/>
  27532. <constructor name="Record"
  27533. static="false" final="false" visibility="public"
  27534. deprecated="not deprecated">
  27535. </constructor>
  27536. <method name="serialize"
  27537. abstract="true" native="false" synchronized="false"
  27538. static="false" final="false" visibility="public"
  27539. deprecated="not deprecated">
  27540. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  27541. <param name="tag" type="java.lang.String"/>
  27542. <exception name="IOException" type="java.io.IOException"/>
  27543. <doc>
  27544. <![CDATA[Serialize a record with tag (ususally field name)
  27545. @param rout Record output destination
  27546. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  27547. </doc>
  27548. </method>
  27549. <method name="deserialize"
  27550. abstract="true" native="false" synchronized="false"
  27551. static="false" final="false" visibility="public"
  27552. deprecated="not deprecated">
  27553. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  27554. <param name="tag" type="java.lang.String"/>
  27555. <exception name="IOException" type="java.io.IOException"/>
  27556. <doc>
  27557. <![CDATA[Deserialize a record with a tag (usually field name)
  27558. @param rin Record input source
  27559. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  27560. </doc>
  27561. </method>
  27562. <method name="compareTo" return="int"
  27563. abstract="true" native="false" synchronized="false"
  27564. static="false" final="false" visibility="public"
  27565. deprecated="not deprecated">
  27566. <param name="peer" type="java.lang.Object"/>
  27567. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  27568. </method>
  27569. <method name="serialize"
  27570. abstract="false" native="false" synchronized="false"
  27571. static="false" final="false" visibility="public"
  27572. deprecated="not deprecated">
  27573. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  27574. <exception name="IOException" type="java.io.IOException"/>
  27575. <doc>
  27576. <![CDATA[Serialize a record without a tag
  27577. @param rout Record output destination]]>
  27578. </doc>
  27579. </method>
  27580. <method name="deserialize"
  27581. abstract="false" native="false" synchronized="false"
  27582. static="false" final="false" visibility="public"
  27583. deprecated="not deprecated">
  27584. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  27585. <exception name="IOException" type="java.io.IOException"/>
  27586. <doc>
  27587. <![CDATA[Deserialize a record without a tag
  27588. @param rin Record input source]]>
  27589. </doc>
  27590. </method>
  27591. <method name="write"
  27592. abstract="false" native="false" synchronized="false"
  27593. static="false" final="false" visibility="public"
  27594. deprecated="not deprecated">
  27595. <param name="out" type="java.io.DataOutput"/>
  27596. <exception name="IOException" type="java.io.IOException"/>
  27597. </method>
  27598. <method name="readFields"
  27599. abstract="false" native="false" synchronized="false"
  27600. static="false" final="false" visibility="public"
  27601. deprecated="not deprecated">
  27602. <param name="din" type="java.io.DataInput"/>
  27603. <exception name="IOException" type="java.io.IOException"/>
  27604. </method>
  27605. <method name="toString" return="java.lang.String"
  27606. abstract="false" native="false" synchronized="false"
  27607. static="false" final="false" visibility="public"
  27608. deprecated="not deprecated">
  27609. </method>
  27610. <doc>
  27611. <![CDATA[Abstract class that is extended by generated classes.
  27612. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27613. </doc>
  27614. </class>
  27615. <!-- end class org.apache.hadoop.record.Record -->
  27616. <!-- start class org.apache.hadoop.record.RecordComparator -->
  27617. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  27618. abstract="true"
  27619. static="false" final="false" visibility="public"
  27620. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27621. <constructor name="RecordComparator" type="java.lang.Class"
  27622. static="false" final="false" visibility="protected"
  27623. deprecated="not deprecated">
  27624. <doc>
  27625. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  27626. </doc>
  27627. </constructor>
  27628. <method name="compare" return="int"
  27629. abstract="true" native="false" synchronized="false"
  27630. static="false" final="false" visibility="public"
  27631. deprecated="not deprecated">
  27632. <param name="b1" type="byte[]"/>
  27633. <param name="s1" type="int"/>
  27634. <param name="l1" type="int"/>
  27635. <param name="b2" type="byte[]"/>
  27636. <param name="s2" type="int"/>
  27637. <param name="l2" type="int"/>
  27638. </method>
  27639. <method name="define"
  27640. abstract="false" native="false" synchronized="true"
  27641. static="true" final="false" visibility="public"
  27642. deprecated="not deprecated">
  27643. <param name="c" type="java.lang.Class"/>
  27644. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  27645. <doc>
  27646. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  27647. @param c record classs for which a raw comparator is provided
  27648. @param comparator Raw comparator instance for class c]]>
  27649. </doc>
  27650. </method>
  27651. <doc>
  27652. <![CDATA[A raw record comparator base class
  27653. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27654. </doc>
  27655. </class>
  27656. <!-- end class org.apache.hadoop.record.RecordComparator -->
  27657. <!-- start interface org.apache.hadoop.record.RecordInput -->
  27658. <interface name="RecordInput" abstract="true"
  27659. static="false" final="false" visibility="public"
  27660. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27661. <method name="readByte" return="byte"
  27662. abstract="false" native="false" synchronized="false"
  27663. static="false" final="false" visibility="public"
  27664. deprecated="not deprecated">
  27665. <param name="tag" type="java.lang.String"/>
  27666. <exception name="IOException" type="java.io.IOException"/>
  27667. <doc>
  27668. <![CDATA[Read a byte from serialized record.
  27669. @param tag Used by tagged serialization formats (such as XML)
  27670. @return value read from serialized record.]]>
  27671. </doc>
  27672. </method>
  27673. <method name="readBool" return="boolean"
  27674. abstract="false" native="false" synchronized="false"
  27675. static="false" final="false" visibility="public"
  27676. deprecated="not deprecated">
  27677. <param name="tag" type="java.lang.String"/>
  27678. <exception name="IOException" type="java.io.IOException"/>
  27679. <doc>
  27680. <![CDATA[Read a boolean from serialized record.
  27681. @param tag Used by tagged serialization formats (such as XML)
  27682. @return value read from serialized record.]]>
  27683. </doc>
  27684. </method>
  27685. <method name="readInt" return="int"
  27686. abstract="false" native="false" synchronized="false"
  27687. static="false" final="false" visibility="public"
  27688. deprecated="not deprecated">
  27689. <param name="tag" type="java.lang.String"/>
  27690. <exception name="IOException" type="java.io.IOException"/>
  27691. <doc>
  27692. <![CDATA[Read an integer from serialized record.
  27693. @param tag Used by tagged serialization formats (such as XML)
  27694. @return value read from serialized record.]]>
  27695. </doc>
  27696. </method>
  27697. <method name="readLong" return="long"
  27698. abstract="false" native="false" synchronized="false"
  27699. static="false" final="false" visibility="public"
  27700. deprecated="not deprecated">
  27701. <param name="tag" type="java.lang.String"/>
  27702. <exception name="IOException" type="java.io.IOException"/>
  27703. <doc>
  27704. <![CDATA[Read a long integer from serialized record.
  27705. @param tag Used by tagged serialization formats (such as XML)
  27706. @return value read from serialized record.]]>
  27707. </doc>
  27708. </method>
  27709. <method name="readFloat" return="float"
  27710. abstract="false" native="false" synchronized="false"
  27711. static="false" final="false" visibility="public"
  27712. deprecated="not deprecated">
  27713. <param name="tag" type="java.lang.String"/>
  27714. <exception name="IOException" type="java.io.IOException"/>
  27715. <doc>
  27716. <![CDATA[Read a single-precision float from serialized record.
  27717. @param tag Used by tagged serialization formats (such as XML)
  27718. @return value read from serialized record.]]>
  27719. </doc>
  27720. </method>
  27721. <method name="readDouble" return="double"
  27722. abstract="false" native="false" synchronized="false"
  27723. static="false" final="false" visibility="public"
  27724. deprecated="not deprecated">
  27725. <param name="tag" type="java.lang.String"/>
  27726. <exception name="IOException" type="java.io.IOException"/>
  27727. <doc>
  27728. <![CDATA[Read a double-precision number from serialized record.
  27729. @param tag Used by tagged serialization formats (such as XML)
  27730. @return value read from serialized record.]]>
  27731. </doc>
  27732. </method>
  27733. <method name="readString" return="java.lang.String"
  27734. abstract="false" native="false" synchronized="false"
  27735. static="false" final="false" visibility="public"
  27736. deprecated="not deprecated">
  27737. <param name="tag" type="java.lang.String"/>
  27738. <exception name="IOException" type="java.io.IOException"/>
  27739. <doc>
  27740. <![CDATA[Read a UTF-8 encoded string from serialized record.
  27741. @param tag Used by tagged serialization formats (such as XML)
  27742. @return value read from serialized record.]]>
  27743. </doc>
  27744. </method>
  27745. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  27746. abstract="false" native="false" synchronized="false"
  27747. static="false" final="false" visibility="public"
  27748. deprecated="not deprecated">
  27749. <param name="tag" type="java.lang.String"/>
  27750. <exception name="IOException" type="java.io.IOException"/>
  27751. <doc>
  27752. <![CDATA[Read byte array from serialized record.
  27753. @param tag Used by tagged serialization formats (such as XML)
  27754. @return value read from serialized record.]]>
  27755. </doc>
  27756. </method>
  27757. <method name="startRecord"
  27758. abstract="false" native="false" synchronized="false"
  27759. static="false" final="false" visibility="public"
  27760. deprecated="not deprecated">
  27761. <param name="tag" type="java.lang.String"/>
  27762. <exception name="IOException" type="java.io.IOException"/>
  27763. <doc>
  27764. <![CDATA[Check the mark for start of the serialized record.
  27765. @param tag Used by tagged serialization formats (such as XML)]]>
  27766. </doc>
  27767. </method>
  27768. <method name="endRecord"
  27769. abstract="false" native="false" synchronized="false"
  27770. static="false" final="false" visibility="public"
  27771. deprecated="not deprecated">
  27772. <param name="tag" type="java.lang.String"/>
  27773. <exception name="IOException" type="java.io.IOException"/>
  27774. <doc>
  27775. <![CDATA[Check the mark for end of the serialized record.
  27776. @param tag Used by tagged serialization formats (such as XML)]]>
  27777. </doc>
  27778. </method>
  27779. <method name="startVector" return="org.apache.hadoop.record.Index"
  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[Check the mark for start of the serialized vector.
  27787. @param tag Used by tagged serialization formats (such as XML)
  27788. @return Index that is used to count the number of elements.]]>
  27789. </doc>
  27790. </method>
  27791. <method name="endVector"
  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[Check the mark for end of the serialized vector.
  27799. @param tag Used by tagged serialization formats (such as XML)]]>
  27800. </doc>
  27801. </method>
  27802. <method name="startMap" return="org.apache.hadoop.record.Index"
  27803. abstract="false" native="false" synchronized="false"
  27804. static="false" final="false" visibility="public"
  27805. deprecated="not deprecated">
  27806. <param name="tag" type="java.lang.String"/>
  27807. <exception name="IOException" type="java.io.IOException"/>
  27808. <doc>
  27809. <![CDATA[Check the mark for start of the serialized map.
  27810. @param tag Used by tagged serialization formats (such as XML)
  27811. @return Index that is used to count the number of map entries.]]>
  27812. </doc>
  27813. </method>
  27814. <method name="endMap"
  27815. abstract="false" native="false" synchronized="false"
  27816. static="false" final="false" visibility="public"
  27817. deprecated="not deprecated">
  27818. <param name="tag" type="java.lang.String"/>
  27819. <exception name="IOException" type="java.io.IOException"/>
  27820. <doc>
  27821. <![CDATA[Check the mark for end of the serialized map.
  27822. @param tag Used by tagged serialization formats (such as XML)]]>
  27823. </doc>
  27824. </method>
  27825. <doc>
  27826. <![CDATA[Interface that all the Deserializers have to implement.
  27827. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27828. </doc>
  27829. </interface>
  27830. <!-- end interface org.apache.hadoop.record.RecordInput -->
  27831. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  27832. <interface name="RecordOutput" abstract="true"
  27833. static="false" final="false" visibility="public"
  27834. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27835. <method name="writeByte"
  27836. abstract="false" native="false" synchronized="false"
  27837. static="false" final="false" visibility="public"
  27838. deprecated="not deprecated">
  27839. <param name="b" type="byte"/>
  27840. <param name="tag" type="java.lang.String"/>
  27841. <exception name="IOException" type="java.io.IOException"/>
  27842. <doc>
  27843. <![CDATA[Write a byte to serialized record.
  27844. @param b Byte to be serialized
  27845. @param tag Used by tagged serialization formats (such as XML)
  27846. @throws IOException Indicates error in serialization]]>
  27847. </doc>
  27848. </method>
  27849. <method name="writeBool"
  27850. abstract="false" native="false" synchronized="false"
  27851. static="false" final="false" visibility="public"
  27852. deprecated="not deprecated">
  27853. <param name="b" type="boolean"/>
  27854. <param name="tag" type="java.lang.String"/>
  27855. <exception name="IOException" type="java.io.IOException"/>
  27856. <doc>
  27857. <![CDATA[Write a boolean to serialized record.
  27858. @param b Boolean to be serialized
  27859. @param tag Used by tagged serialization formats (such as XML)
  27860. @throws IOException Indicates error in serialization]]>
  27861. </doc>
  27862. </method>
  27863. <method name="writeInt"
  27864. abstract="false" native="false" synchronized="false"
  27865. static="false" final="false" visibility="public"
  27866. deprecated="not deprecated">
  27867. <param name="i" type="int"/>
  27868. <param name="tag" type="java.lang.String"/>
  27869. <exception name="IOException" type="java.io.IOException"/>
  27870. <doc>
  27871. <![CDATA[Write an integer to serialized record.
  27872. @param i Integer to be serialized
  27873. @param tag Used by tagged serialization formats (such as XML)
  27874. @throws IOException Indicates error in serialization]]>
  27875. </doc>
  27876. </method>
  27877. <method name="writeLong"
  27878. abstract="false" native="false" synchronized="false"
  27879. static="false" final="false" visibility="public"
  27880. deprecated="not deprecated">
  27881. <param name="l" type="long"/>
  27882. <param name="tag" type="java.lang.String"/>
  27883. <exception name="IOException" type="java.io.IOException"/>
  27884. <doc>
  27885. <![CDATA[Write a long integer to serialized record.
  27886. @param l Long to be serialized
  27887. @param tag Used by tagged serialization formats (such as XML)
  27888. @throws IOException Indicates error in serialization]]>
  27889. </doc>
  27890. </method>
  27891. <method name="writeFloat"
  27892. abstract="false" native="false" synchronized="false"
  27893. static="false" final="false" visibility="public"
  27894. deprecated="not deprecated">
  27895. <param name="f" type="float"/>
  27896. <param name="tag" type="java.lang.String"/>
  27897. <exception name="IOException" type="java.io.IOException"/>
  27898. <doc>
  27899. <![CDATA[Write a single-precision float to serialized record.
  27900. @param f Float to be serialized
  27901. @param tag Used by tagged serialization formats (such as XML)
  27902. @throws IOException Indicates error in serialization]]>
  27903. </doc>
  27904. </method>
  27905. <method name="writeDouble"
  27906. abstract="false" native="false" synchronized="false"
  27907. static="false" final="false" visibility="public"
  27908. deprecated="not deprecated">
  27909. <param name="d" type="double"/>
  27910. <param name="tag" type="java.lang.String"/>
  27911. <exception name="IOException" type="java.io.IOException"/>
  27912. <doc>
  27913. <![CDATA[Write a double precision floating point number to serialized record.
  27914. @param d Double to be serialized
  27915. @param tag Used by tagged serialization formats (such as XML)
  27916. @throws IOException Indicates error in serialization]]>
  27917. </doc>
  27918. </method>
  27919. <method name="writeString"
  27920. abstract="false" native="false" synchronized="false"
  27921. static="false" final="false" visibility="public"
  27922. deprecated="not deprecated">
  27923. <param name="s" type="java.lang.String"/>
  27924. <param name="tag" type="java.lang.String"/>
  27925. <exception name="IOException" type="java.io.IOException"/>
  27926. <doc>
  27927. <![CDATA[Write a unicode string to serialized record.
  27928. @param s String to be serialized
  27929. @param tag Used by tagged serialization formats (such as XML)
  27930. @throws IOException Indicates error in serialization]]>
  27931. </doc>
  27932. </method>
  27933. <method name="writeBuffer"
  27934. abstract="false" native="false" synchronized="false"
  27935. static="false" final="false" visibility="public"
  27936. deprecated="not deprecated">
  27937. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  27938. <param name="tag" type="java.lang.String"/>
  27939. <exception name="IOException" type="java.io.IOException"/>
  27940. <doc>
  27941. <![CDATA[Write a buffer to serialized record.
  27942. @param buf Buffer to be serialized
  27943. @param tag Used by tagged serialization formats (such as XML)
  27944. @throws IOException Indicates error in serialization]]>
  27945. </doc>
  27946. </method>
  27947. <method name="startRecord"
  27948. abstract="false" native="false" synchronized="false"
  27949. static="false" final="false" visibility="public"
  27950. deprecated="not deprecated">
  27951. <param name="r" type="org.apache.hadoop.record.Record"/>
  27952. <param name="tag" type="java.lang.String"/>
  27953. <exception name="IOException" type="java.io.IOException"/>
  27954. <doc>
  27955. <![CDATA[Mark the start of a record to be serialized.
  27956. @param r Record to be serialized
  27957. @param tag Used by tagged serialization formats (such as XML)
  27958. @throws IOException Indicates error in serialization]]>
  27959. </doc>
  27960. </method>
  27961. <method name="endRecord"
  27962. abstract="false" native="false" synchronized="false"
  27963. static="false" final="false" visibility="public"
  27964. deprecated="not deprecated">
  27965. <param name="r" type="org.apache.hadoop.record.Record"/>
  27966. <param name="tag" type="java.lang.String"/>
  27967. <exception name="IOException" type="java.io.IOException"/>
  27968. <doc>
  27969. <![CDATA[Mark the end of a serialized record.
  27970. @param r Record to be serialized
  27971. @param tag Used by tagged serialization formats (such as XML)
  27972. @throws IOException Indicates error in serialization]]>
  27973. </doc>
  27974. </method>
  27975. <method name="startVector"
  27976. abstract="false" native="false" synchronized="false"
  27977. static="false" final="false" visibility="public"
  27978. deprecated="not deprecated">
  27979. <param name="v" type="java.util.ArrayList"/>
  27980. <param name="tag" type="java.lang.String"/>
  27981. <exception name="IOException" type="java.io.IOException"/>
  27982. <doc>
  27983. <![CDATA[Mark the start of a vector to be serialized.
  27984. @param v Vector to be serialized
  27985. @param tag Used by tagged serialization formats (such as XML)
  27986. @throws IOException Indicates error in serialization]]>
  27987. </doc>
  27988. </method>
  27989. <method name="endVector"
  27990. abstract="false" native="false" synchronized="false"
  27991. static="false" final="false" visibility="public"
  27992. deprecated="not deprecated">
  27993. <param name="v" type="java.util.ArrayList"/>
  27994. <param name="tag" type="java.lang.String"/>
  27995. <exception name="IOException" type="java.io.IOException"/>
  27996. <doc>
  27997. <![CDATA[Mark the end of a serialized vector.
  27998. @param v Vector to be serialized
  27999. @param tag Used by tagged serialization formats (such as XML)
  28000. @throws IOException Indicates error in serialization]]>
  28001. </doc>
  28002. </method>
  28003. <method name="startMap"
  28004. abstract="false" native="false" synchronized="false"
  28005. static="false" final="false" visibility="public"
  28006. deprecated="not deprecated">
  28007. <param name="m" type="java.util.TreeMap"/>
  28008. <param name="tag" type="java.lang.String"/>
  28009. <exception name="IOException" type="java.io.IOException"/>
  28010. <doc>
  28011. <![CDATA[Mark the start of a map to be serialized.
  28012. @param m Map to be serialized
  28013. @param tag Used by tagged serialization formats (such as XML)
  28014. @throws IOException Indicates error in serialization]]>
  28015. </doc>
  28016. </method>
  28017. <method name="endMap"
  28018. abstract="false" native="false" synchronized="false"
  28019. static="false" final="false" visibility="public"
  28020. deprecated="not deprecated">
  28021. <param name="m" type="java.util.TreeMap"/>
  28022. <param name="tag" type="java.lang.String"/>
  28023. <exception name="IOException" type="java.io.IOException"/>
  28024. <doc>
  28025. <![CDATA[Mark the end of a serialized map.
  28026. @param m Map to be serialized
  28027. @param tag Used by tagged serialization formats (such as XML)
  28028. @throws IOException Indicates error in serialization]]>
  28029. </doc>
  28030. </method>
  28031. <doc>
  28032. <![CDATA[Interface that all the serializers have to implement.
  28033. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28034. </doc>
  28035. </interface>
  28036. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  28037. <!-- start class org.apache.hadoop.record.Utils -->
  28038. <class name="Utils" extends="java.lang.Object"
  28039. abstract="false"
  28040. static="false" final="false" visibility="public"
  28041. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  28042. <method name="readFloat" return="float"
  28043. abstract="false" native="false" synchronized="false"
  28044. static="true" final="false" visibility="public"
  28045. deprecated="not deprecated">
  28046. <param name="bytes" type="byte[]"/>
  28047. <param name="start" type="int"/>
  28048. <doc>
  28049. <![CDATA[Parse a float from a byte array.]]>
  28050. </doc>
  28051. </method>
  28052. <method name="readDouble" return="double"
  28053. abstract="false" native="false" synchronized="false"
  28054. static="true" final="false" visibility="public"
  28055. deprecated="not deprecated">
  28056. <param name="bytes" type="byte[]"/>
  28057. <param name="start" type="int"/>
  28058. <doc>
  28059. <![CDATA[Parse a double from a byte array.]]>
  28060. </doc>
  28061. </method>
  28062. <method name="readVLong" return="long"
  28063. abstract="false" native="false" synchronized="false"
  28064. static="true" final="false" visibility="public"
  28065. deprecated="not deprecated">
  28066. <param name="bytes" type="byte[]"/>
  28067. <param name="start" type="int"/>
  28068. <exception name="IOException" type="java.io.IOException"/>
  28069. <doc>
  28070. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  28071. @param bytes byte array with decode long
  28072. @param start starting index
  28073. @throws java.io.IOException
  28074. @return deserialized long]]>
  28075. </doc>
  28076. </method>
  28077. <method name="readVInt" return="int"
  28078. abstract="false" native="false" synchronized="false"
  28079. static="true" final="false" visibility="public"
  28080. deprecated="not deprecated">
  28081. <param name="bytes" type="byte[]"/>
  28082. <param name="start" type="int"/>
  28083. <exception name="IOException" type="java.io.IOException"/>
  28084. <doc>
  28085. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  28086. @param bytes byte array with the encoded integer
  28087. @param start start index
  28088. @throws java.io.IOException
  28089. @return deserialized integer]]>
  28090. </doc>
  28091. </method>
  28092. <method name="readVLong" return="long"
  28093. abstract="false" native="false" synchronized="false"
  28094. static="true" final="false" visibility="public"
  28095. deprecated="not deprecated">
  28096. <param name="in" type="java.io.DataInput"/>
  28097. <exception name="IOException" type="java.io.IOException"/>
  28098. <doc>
  28099. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  28100. @param in input stream
  28101. @throws java.io.IOException
  28102. @return deserialized long]]>
  28103. </doc>
  28104. </method>
  28105. <method name="readVInt" return="int"
  28106. abstract="false" native="false" synchronized="false"
  28107. static="true" final="false" visibility="public"
  28108. deprecated="not deprecated">
  28109. <param name="in" type="java.io.DataInput"/>
  28110. <exception name="IOException" type="java.io.IOException"/>
  28111. <doc>
  28112. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  28113. @param in input stream
  28114. @throws java.io.IOException
  28115. @return deserialized integer]]>
  28116. </doc>
  28117. </method>
  28118. <method name="getVIntSize" return="int"
  28119. abstract="false" native="false" synchronized="false"
  28120. static="true" final="false" visibility="public"
  28121. deprecated="not deprecated">
  28122. <param name="i" type="long"/>
  28123. <doc>
  28124. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  28125. @return the encoded length]]>
  28126. </doc>
  28127. </method>
  28128. <method name="writeVLong"
  28129. abstract="false" native="false" synchronized="false"
  28130. static="true" final="false" visibility="public"
  28131. deprecated="not deprecated">
  28132. <param name="stream" type="java.io.DataOutput"/>
  28133. <param name="i" type="long"/>
  28134. <exception name="IOException" type="java.io.IOException"/>
  28135. <doc>
  28136. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  28137. For {@literal -112 <= i <= 127}, only one byte is used with the actual
  28138. value. For other values of i, the first byte value indicates whether the
  28139. long is positive or negative, and the number of bytes that follow.
  28140. If the first byte value v is between -113 and -120, the following long
  28141. is positive, with number of bytes that follow are -(v+112).
  28142. If the first byte value v is between -121 and -128, the following long
  28143. is negative, with number of bytes that follow are -(v+120). Bytes are
  28144. stored in the high-non-zero-byte-first order.
  28145. @param stream Binary output stream
  28146. @param i Long to be serialized
  28147. @throws java.io.IOException]]>
  28148. </doc>
  28149. </method>
  28150. <method name="writeVInt"
  28151. abstract="false" native="false" synchronized="false"
  28152. static="true" final="false" visibility="public"
  28153. deprecated="not deprecated">
  28154. <param name="stream" type="java.io.DataOutput"/>
  28155. <param name="i" type="int"/>
  28156. <exception name="IOException" type="java.io.IOException"/>
  28157. <doc>
  28158. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  28159. @param stream Binary output stream
  28160. @param i int to be serialized
  28161. @throws java.io.IOException]]>
  28162. </doc>
  28163. </method>
  28164. <method name="compareBytes" return="int"
  28165. abstract="false" native="false" synchronized="false"
  28166. static="true" final="false" visibility="public"
  28167. deprecated="not deprecated">
  28168. <param name="b1" type="byte[]"/>
  28169. <param name="s1" type="int"/>
  28170. <param name="l1" type="int"/>
  28171. <param name="b2" type="byte[]"/>
  28172. <param name="s2" type="int"/>
  28173. <param name="l2" type="int"/>
  28174. <doc>
  28175. <![CDATA[Lexicographic order of binary data.]]>
  28176. </doc>
  28177. </method>
  28178. <field name="hexchars" type="char[]"
  28179. transient="false" volatile="false"
  28180. static="true" final="true" visibility="public"
  28181. deprecated="not deprecated">
  28182. </field>
  28183. <doc>
  28184. <![CDATA[Various utility functions for Hadoop record I/O runtime.
  28185. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  28186. </doc>
  28187. </class>
  28188. <!-- end class org.apache.hadoop.record.Utils -->
  28189. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  28190. <class name="XmlRecordInput" extends="java.lang.Object"
  28191. abstract="false"
  28192. static="false" final="false" visibility="public"
  28193. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28194. <implements name="org.apache.hadoop.record.RecordInput"/>
  28195. <constructor name="XmlRecordInput" type="java.io.InputStream"
  28196. static="false" final="false" visibility="public"
  28197. deprecated="not deprecated">
  28198. <doc>
  28199. <![CDATA[Creates a new instance of XmlRecordInput]]>
  28200. </doc>
  28201. </constructor>
  28202. <method name="readByte" return="byte"
  28203. abstract="false" native="false" synchronized="false"
  28204. static="false" final="false" visibility="public"
  28205. deprecated="not deprecated">
  28206. <param name="tag" type="java.lang.String"/>
  28207. <exception name="IOException" type="java.io.IOException"/>
  28208. </method>
  28209. <method name="readBool" return="boolean"
  28210. abstract="false" native="false" synchronized="false"
  28211. static="false" final="false" visibility="public"
  28212. deprecated="not deprecated">
  28213. <param name="tag" type="java.lang.String"/>
  28214. <exception name="IOException" type="java.io.IOException"/>
  28215. </method>
  28216. <method name="readInt" return="int"
  28217. abstract="false" native="false" synchronized="false"
  28218. static="false" final="false" visibility="public"
  28219. deprecated="not deprecated">
  28220. <param name="tag" type="java.lang.String"/>
  28221. <exception name="IOException" type="java.io.IOException"/>
  28222. </method>
  28223. <method name="readLong" return="long"
  28224. abstract="false" native="false" synchronized="false"
  28225. static="false" final="false" visibility="public"
  28226. deprecated="not deprecated">
  28227. <param name="tag" type="java.lang.String"/>
  28228. <exception name="IOException" type="java.io.IOException"/>
  28229. </method>
  28230. <method name="readFloat" return="float"
  28231. abstract="false" native="false" synchronized="false"
  28232. static="false" final="false" visibility="public"
  28233. deprecated="not deprecated">
  28234. <param name="tag" type="java.lang.String"/>
  28235. <exception name="IOException" type="java.io.IOException"/>
  28236. </method>
  28237. <method name="readDouble" return="double"
  28238. abstract="false" native="false" synchronized="false"
  28239. static="false" final="false" visibility="public"
  28240. deprecated="not deprecated">
  28241. <param name="tag" type="java.lang.String"/>
  28242. <exception name="IOException" type="java.io.IOException"/>
  28243. </method>
  28244. <method name="readString" return="java.lang.String"
  28245. abstract="false" native="false" synchronized="false"
  28246. static="false" final="false" visibility="public"
  28247. deprecated="not deprecated">
  28248. <param name="tag" type="java.lang.String"/>
  28249. <exception name="IOException" type="java.io.IOException"/>
  28250. </method>
  28251. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  28252. abstract="false" native="false" synchronized="false"
  28253. static="false" final="false" visibility="public"
  28254. deprecated="not deprecated">
  28255. <param name="tag" type="java.lang.String"/>
  28256. <exception name="IOException" type="java.io.IOException"/>
  28257. </method>
  28258. <method name="startRecord"
  28259. abstract="false" native="false" synchronized="false"
  28260. static="false" final="false" visibility="public"
  28261. deprecated="not deprecated">
  28262. <param name="tag" type="java.lang.String"/>
  28263. <exception name="IOException" type="java.io.IOException"/>
  28264. </method>
  28265. <method name="endRecord"
  28266. abstract="false" native="false" synchronized="false"
  28267. static="false" final="false" visibility="public"
  28268. deprecated="not deprecated">
  28269. <param name="tag" type="java.lang.String"/>
  28270. <exception name="IOException" type="java.io.IOException"/>
  28271. </method>
  28272. <method name="startVector" return="org.apache.hadoop.record.Index"
  28273. abstract="false" native="false" synchronized="false"
  28274. static="false" final="false" visibility="public"
  28275. deprecated="not deprecated">
  28276. <param name="tag" type="java.lang.String"/>
  28277. <exception name="IOException" type="java.io.IOException"/>
  28278. </method>
  28279. <method name="endVector"
  28280. abstract="false" native="false" synchronized="false"
  28281. static="false" final="false" visibility="public"
  28282. deprecated="not deprecated">
  28283. <param name="tag" type="java.lang.String"/>
  28284. <exception name="IOException" type="java.io.IOException"/>
  28285. </method>
  28286. <method name="startMap" return="org.apache.hadoop.record.Index"
  28287. abstract="false" native="false" synchronized="false"
  28288. static="false" final="false" visibility="public"
  28289. deprecated="not deprecated">
  28290. <param name="tag" type="java.lang.String"/>
  28291. <exception name="IOException" type="java.io.IOException"/>
  28292. </method>
  28293. <method name="endMap"
  28294. abstract="false" native="false" synchronized="false"
  28295. static="false" final="false" visibility="public"
  28296. deprecated="not deprecated">
  28297. <param name="tag" type="java.lang.String"/>
  28298. <exception name="IOException" type="java.io.IOException"/>
  28299. </method>
  28300. <doc>
  28301. <![CDATA[XML Deserializer.
  28302. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28303. </doc>
  28304. </class>
  28305. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  28306. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  28307. <class name="XmlRecordOutput" extends="java.lang.Object"
  28308. abstract="false"
  28309. static="false" final="false" visibility="public"
  28310. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28311. <implements name="org.apache.hadoop.record.RecordOutput"/>
  28312. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  28313. static="false" final="false" visibility="public"
  28314. deprecated="not deprecated">
  28315. <doc>
  28316. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  28317. </doc>
  28318. </constructor>
  28319. <method name="writeByte"
  28320. abstract="false" native="false" synchronized="false"
  28321. static="false" final="false" visibility="public"
  28322. deprecated="not deprecated">
  28323. <param name="b" type="byte"/>
  28324. <param name="tag" type="java.lang.String"/>
  28325. <exception name="IOException" type="java.io.IOException"/>
  28326. </method>
  28327. <method name="writeBool"
  28328. abstract="false" native="false" synchronized="false"
  28329. static="false" final="false" visibility="public"
  28330. deprecated="not deprecated">
  28331. <param name="b" type="boolean"/>
  28332. <param name="tag" type="java.lang.String"/>
  28333. <exception name="IOException" type="java.io.IOException"/>
  28334. </method>
  28335. <method name="writeInt"
  28336. abstract="false" native="false" synchronized="false"
  28337. static="false" final="false" visibility="public"
  28338. deprecated="not deprecated">
  28339. <param name="i" type="int"/>
  28340. <param name="tag" type="java.lang.String"/>
  28341. <exception name="IOException" type="java.io.IOException"/>
  28342. </method>
  28343. <method name="writeLong"
  28344. abstract="false" native="false" synchronized="false"
  28345. static="false" final="false" visibility="public"
  28346. deprecated="not deprecated">
  28347. <param name="l" type="long"/>
  28348. <param name="tag" type="java.lang.String"/>
  28349. <exception name="IOException" type="java.io.IOException"/>
  28350. </method>
  28351. <method name="writeFloat"
  28352. abstract="false" native="false" synchronized="false"
  28353. static="false" final="false" visibility="public"
  28354. deprecated="not deprecated">
  28355. <param name="f" type="float"/>
  28356. <param name="tag" type="java.lang.String"/>
  28357. <exception name="IOException" type="java.io.IOException"/>
  28358. </method>
  28359. <method name="writeDouble"
  28360. abstract="false" native="false" synchronized="false"
  28361. static="false" final="false" visibility="public"
  28362. deprecated="not deprecated">
  28363. <param name="d" type="double"/>
  28364. <param name="tag" type="java.lang.String"/>
  28365. <exception name="IOException" type="java.io.IOException"/>
  28366. </method>
  28367. <method name="writeString"
  28368. abstract="false" native="false" synchronized="false"
  28369. static="false" final="false" visibility="public"
  28370. deprecated="not deprecated">
  28371. <param name="s" type="java.lang.String"/>
  28372. <param name="tag" type="java.lang.String"/>
  28373. <exception name="IOException" type="java.io.IOException"/>
  28374. </method>
  28375. <method name="writeBuffer"
  28376. abstract="false" native="false" synchronized="false"
  28377. static="false" final="false" visibility="public"
  28378. deprecated="not deprecated">
  28379. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  28380. <param name="tag" type="java.lang.String"/>
  28381. <exception name="IOException" type="java.io.IOException"/>
  28382. </method>
  28383. <method name="startRecord"
  28384. abstract="false" native="false" synchronized="false"
  28385. static="false" final="false" visibility="public"
  28386. deprecated="not deprecated">
  28387. <param name="r" type="org.apache.hadoop.record.Record"/>
  28388. <param name="tag" type="java.lang.String"/>
  28389. <exception name="IOException" type="java.io.IOException"/>
  28390. </method>
  28391. <method name="endRecord"
  28392. abstract="false" native="false" synchronized="false"
  28393. static="false" final="false" visibility="public"
  28394. deprecated="not deprecated">
  28395. <param name="r" type="org.apache.hadoop.record.Record"/>
  28396. <param name="tag" type="java.lang.String"/>
  28397. <exception name="IOException" type="java.io.IOException"/>
  28398. </method>
  28399. <method name="startVector"
  28400. abstract="false" native="false" synchronized="false"
  28401. static="false" final="false" visibility="public"
  28402. deprecated="not deprecated">
  28403. <param name="v" type="java.util.ArrayList"/>
  28404. <param name="tag" type="java.lang.String"/>
  28405. <exception name="IOException" type="java.io.IOException"/>
  28406. </method>
  28407. <method name="endVector"
  28408. abstract="false" native="false" synchronized="false"
  28409. static="false" final="false" visibility="public"
  28410. deprecated="not deprecated">
  28411. <param name="v" type="java.util.ArrayList"/>
  28412. <param name="tag" type="java.lang.String"/>
  28413. <exception name="IOException" type="java.io.IOException"/>
  28414. </method>
  28415. <method name="startMap"
  28416. abstract="false" native="false" synchronized="false"
  28417. static="false" final="false" visibility="public"
  28418. deprecated="not deprecated">
  28419. <param name="v" type="java.util.TreeMap"/>
  28420. <param name="tag" type="java.lang.String"/>
  28421. <exception name="IOException" type="java.io.IOException"/>
  28422. </method>
  28423. <method name="endMap"
  28424. abstract="false" native="false" synchronized="false"
  28425. static="false" final="false" visibility="public"
  28426. deprecated="not deprecated">
  28427. <param name="v" type="java.util.TreeMap"/>
  28428. <param name="tag" type="java.lang.String"/>
  28429. <exception name="IOException" type="java.io.IOException"/>
  28430. </method>
  28431. <doc>
  28432. <![CDATA[XML Serializer.
  28433. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28434. </doc>
  28435. </class>
  28436. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  28437. <doc>
  28438. <![CDATA[<p>
  28439. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  28440. translator for simplifying serialization and deserialization of records in a
  28441. language-neutral manner.
  28442. </p>
  28443. <p>
  28444. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  28445. </p>
  28446. <h2>Introduction</h2>
  28447. Software systems of any significant complexity require mechanisms for data
  28448. interchange with the outside world. These interchanges typically involve the
  28449. marshaling and unmarshaling of logical units of data to and from data streams
  28450. (files, network connections, memory buffers etc.). Applications usually have
  28451. some code for serializing and deserializing the data types that they manipulate
  28452. embedded in them. The work of serialization has several features that make
  28453. automatic code generation for it worthwhile. Given a particular output encoding
  28454. (binary, XML, etc.), serialization of primitive types and simple compositions
  28455. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  28456. written serialization code can be susceptible to bugs especially when records
  28457. have a large number of fields or a record definition changes between software
  28458. versions. Lastly, it can be very useful for applications written in different
  28459. programming languages to be able to share and interchange data. This can be
  28460. made a lot easier by describing the data records manipulated by these
  28461. applications in a language agnostic manner and using the descriptions to derive
  28462. implementations of serialization in multiple target languages.
  28463. This document describes Hadoop Record I/O, a mechanism that is aimed
  28464. at
  28465. <ul>
  28466. <li> enabling the specification of simple serializable data types (records)
  28467. <li> enabling the generation of code in multiple target languages for
  28468. marshaling and unmarshaling such types
  28469. <li> providing target language specific support that will enable application
  28470. programmers to incorporate generated code into their applications
  28471. </ul>
  28472. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  28473. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  28474. the specification of most record types, they differ widely in what else they
  28475. focus on. The focus in Hadoop Record I/O is on data marshaling and
  28476. multi-lingual support. We take a translator-based approach to serialization.
  28477. Hadoop users have to describe their data in a simple data description
  28478. language. The Hadoop DDL translator rcc generates code that users
  28479. can invoke in order to read/write their data from/to simple stream
  28480. abstractions. Next we list explicitly some of the goals and non-goals of
  28481. Hadoop Record I/O.
  28482. <h3>Goals</h3>
  28483. <ul>
  28484. <li> Support for commonly used primitive types. Hadoop should include as
  28485. primitives commonly used builtin types from programming languages we intend to
  28486. support.
  28487. <li> Support for common data compositions (including recursive compositions).
  28488. Hadoop should support widely used composite types such as structs and
  28489. vectors.
  28490. <li> Code generation in multiple target languages. Hadoop should be capable of
  28491. generating serialization code in multiple target languages and should be
  28492. easily extensible to new target languages. The initial target languages are
  28493. C++ and Java.
  28494. <li> Support for generated target languages. Hadooop should include support
  28495. in the form of headers, libraries, packages for supported target languages
  28496. that enable easy inclusion and use of generated code in applications.
  28497. <li> Support for multiple output encodings. Candidates include
  28498. packed binary, comma-separated text, XML etc.
  28499. <li> Support for specifying record types in a backwards/forwards compatible
  28500. manner. This will probably be in the form of support for optional fields in
  28501. records. This version of the document does not include a description of the
  28502. planned mechanism, we intend to include it in the next iteration.
  28503. </ul>
  28504. <h3>Non-Goals</h3>
  28505. <ul>
  28506. <li> Serializing existing arbitrary C++ classes.
  28507. <li> Serializing complex data structures such as trees, linked lists etc.
  28508. <li> Built-in indexing schemes, compression, or check-sums.
  28509. <li> Dynamic construction of objects from an XML schema.
  28510. </ul>
  28511. The remainder of this document describes the features of Hadoop record I/O
  28512. in more detail. Section 2 describes the data types supported by the system.
  28513. Section 3 lays out the DDL syntax with some examples of simple records.
  28514. Section 4 describes the process of code generation with rcc. Section 5
  28515. describes target language mappings and support for Hadoop types. We include a
  28516. fairly complete description of C++ mappings with intent to include Java and
  28517. others in upcoming iterations of this document. The last section talks about
  28518. supported output encodings.
  28519. <h2>Data Types and Streams</h2>
  28520. This section describes the primitive and composite types supported by Hadoop.
  28521. We aim to support a set of types that can be used to simply and efficiently
  28522. express a wide range of record types in different programming languages.
  28523. <h3>Primitive Types</h3>
  28524. For the most part, the primitive types of Hadoop map directly to primitive
  28525. types in high level programming languages. Special cases are the
  28526. ustring (a Unicode string) and buffer types, which we believe
  28527. find wide use and which are usually implemented in library code and not
  28528. available as language built-ins. Hadoop also supplies these via library code
  28529. when a target language built-in is not present and there is no widely
  28530. adopted "standard" implementation. The complete list of primitive types is:
  28531. <ul>
  28532. <li> byte: An 8-bit unsigned integer.
  28533. <li> boolean: A boolean value.
  28534. <li> int: A 32-bit signed integer.
  28535. <li> long: A 64-bit signed integer.
  28536. <li> float: A single precision floating point number as described by
  28537. IEEE-754.
  28538. <li> double: A double precision floating point number as described by
  28539. IEEE-754.
  28540. <li> ustring: A string consisting of Unicode characters.
  28541. <li> buffer: An arbitrary sequence of bytes.
  28542. </ul>
  28543. <h3>Composite Types</h3>
  28544. Hadoop supports a small set of composite types that enable the description
  28545. of simple aggregate types and containers. A composite type is serialized
  28546. by sequentially serializing it constituent elements. The supported
  28547. composite types are:
  28548. <ul>
  28549. <li> record: An aggregate type like a C-struct. This is a list of
  28550. typed fields that are together considered a single unit of data. A record
  28551. is serialized by sequentially serializing its constituent fields. In addition
  28552. to serialization a record has comparison operations (equality and less-than)
  28553. implemented for it, these are defined as memberwise comparisons.
  28554. <li>vector: A sequence of entries of the same data type, primitive
  28555. or composite.
  28556. <li> map: An associative container mapping instances of a key type to
  28557. instances of a value type. The key and value types may themselves be primitive
  28558. or composite types.
  28559. </ul>
  28560. <h3>Streams</h3>
  28561. Hadoop generates code for serializing and deserializing record types to
  28562. abstract streams. For each target language Hadoop defines very simple input
  28563. and output stream interfaces. Application writers can usually develop
  28564. concrete implementations of these by putting a one method wrapper around
  28565. an existing stream implementation.
  28566. <h2>DDL Syntax and Examples</h2>
  28567. We now describe the syntax of the Hadoop data description language. This is
  28568. followed by a few examples of DDL usage.
  28569. <h3>Hadoop DDL Syntax</h3>
  28570. <pre><code>
  28571. recfile = *include module *record
  28572. include = "include" path
  28573. path = (relative-path / absolute-path)
  28574. module = "module" module-name
  28575. module-name = name *("." name)
  28576. record := "class" name "{" 1*(field) "}"
  28577. field := type name ";"
  28578. name := ALPHA (ALPHA / DIGIT / "_" )*
  28579. type := (ptype / ctype)
  28580. ptype := ("byte" / "boolean" / "int" |
  28581. "long" / "float" / "double"
  28582. "ustring" / "buffer")
  28583. ctype := (("vector" "<" type ">") /
  28584. ("map" "<" type "," type ">" ) ) / name)
  28585. </code></pre>
  28586. A DDL file describes one or more record types. It begins with zero or
  28587. more include declarations, a single mandatory module declaration
  28588. followed by zero or more class declarations. The semantics of each of
  28589. these declarations are described below:
  28590. <ul>
  28591. <li>include: An include declaration specifies a DDL file to be
  28592. referenced when generating code for types in the current DDL file. Record types
  28593. in the current compilation unit may refer to types in all included files.
  28594. File inclusion is recursive. An include does not trigger code
  28595. generation for the referenced file.
  28596. <li> module: Every Hadoop DDL file must have a single module
  28597. declaration that follows the list of includes and precedes all record
  28598. declarations. A module declaration identifies a scope within which
  28599. the names of all types in the current file are visible. Module names are
  28600. mapped to C++ namespaces, Java packages etc. in generated code.
  28601. <li> class: Records types are specified through class
  28602. declarations. A class declaration is like a Java class declaration.
  28603. It specifies a named record type and a list of fields that constitute records
  28604. of the type. Usage is illustrated in the following examples.
  28605. </ul>
  28606. <h3>Examples</h3>
  28607. <ul>
  28608. <li>A simple DDL file links.jr with just one record declaration.
  28609. <pre><code>
  28610. module links {
  28611. class Link {
  28612. ustring URL;
  28613. boolean isRelative;
  28614. ustring anchorText;
  28615. };
  28616. }
  28617. </code></pre>
  28618. <li> A DDL file outlinks.jr which includes another
  28619. <pre><code>
  28620. include "links.jr"
  28621. module outlinks {
  28622. class OutLinks {
  28623. ustring baseURL;
  28624. vector<links.Link> outLinks;
  28625. };
  28626. }
  28627. </code></pre>
  28628. </ul>
  28629. <h2>Code Generation</h2>
  28630. The Hadoop translator is written in Java. Invocation is done by executing a
  28631. wrapper shell script named named rcc. It takes a list of
  28632. record description files as a mandatory argument and an
  28633. optional language argument (the default is Java) --language or
  28634. -l. Thus a typical invocation would look like:
  28635. <pre><code>
  28636. $ rcc -l C++ <filename> ...
  28637. </code></pre>
  28638. <h2>Target Language Mappings and Support</h2>
  28639. For all target languages, the unit of code generation is a record type.
  28640. For each record type, Hadoop generates code for serialization and
  28641. deserialization, record comparison and access to record members.
  28642. <h3>C++</h3>
  28643. Support for including Hadoop generated C++ code in applications comes in the
  28644. form of a header file recordio.hh which needs to be included in source
  28645. that uses Hadoop types and a library librecordio.a which applications need
  28646. to be linked with. The header declares the Hadoop C++ namespace which defines
  28647. appropriate types for the various primitives, the basic interfaces for
  28648. records and streams and enumerates the supported serialization encodings.
  28649. Declarations of these interfaces and a description of their semantics follow:
  28650. <pre><code>
  28651. namespace hadoop {
  28652. enum RecFormat { kBinary, kXML, kCSV };
  28653. class InStream {
  28654. public:
  28655. virtual ssize_t read(void *buf, size_t n) = 0;
  28656. };
  28657. class OutStream {
  28658. public:
  28659. virtual ssize_t write(const void *buf, size_t n) = 0;
  28660. };
  28661. class IOError : public runtime_error {
  28662. public:
  28663. explicit IOError(const std::string& msg);
  28664. };
  28665. class IArchive;
  28666. class OArchive;
  28667. class RecordReader {
  28668. public:
  28669. RecordReader(InStream& in, RecFormat fmt);
  28670. virtual ~RecordReader(void);
  28671. virtual void read(Record& rec);
  28672. };
  28673. class RecordWriter {
  28674. public:
  28675. RecordWriter(OutStream& out, RecFormat fmt);
  28676. virtual ~RecordWriter(void);
  28677. virtual void write(Record& rec);
  28678. };
  28679. class Record {
  28680. public:
  28681. virtual std::string type(void) const = 0;
  28682. virtual std::string signature(void) const = 0;
  28683. protected:
  28684. virtual bool validate(void) const = 0;
  28685. virtual void
  28686. serialize(OArchive& oa, const std::string& tag) const = 0;
  28687. virtual void
  28688. deserialize(IArchive& ia, const std::string& tag) = 0;
  28689. };
  28690. }
  28691. </code></pre>
  28692. <ul>
  28693. <li> RecFormat: An enumeration of the serialization encodings supported
  28694. by this implementation of Hadoop.
  28695. <li> InStream: A simple abstraction for an input stream. This has a
  28696. single public read method that reads n bytes from the stream into
  28697. the buffer buf. Has the same semantics as a blocking read system
  28698. call. Returns the number of bytes read or -1 if an error occurs.
  28699. <li> OutStream: A simple abstraction for an output stream. This has a
  28700. single write method that writes n bytes to the stream from the
  28701. buffer buf. Has the same semantics as a blocking write system
  28702. call. Returns the number of bytes written or -1 if an error occurs.
  28703. <li> RecordReader: A RecordReader reads records one at a time from
  28704. an underlying stream in a specified record format. The reader is instantiated
  28705. with a stream and a serialization format. It has a read method that
  28706. takes an instance of a record and deserializes the record from the stream.
  28707. <li> RecordWriter: A RecordWriter writes records one at a
  28708. time to an underlying stream in a specified record format. The writer is
  28709. instantiated with a stream and a serialization format. It has a
  28710. write method that takes an instance of a record and serializes the
  28711. record to the stream.
  28712. <li> Record: The base class for all generated record types. This has two
  28713. public methods type and signature that return the typename and the
  28714. type signature of the record.
  28715. </ul>
  28716. Two files are generated for each record file (note: not for each record). If a
  28717. record file is named "name.jr", the generated files are
  28718. "name.jr.cc" and "name.jr.hh" containing serialization
  28719. implementations and record type declarations respectively.
  28720. For each record in the DDL file, the generated header file will contain a
  28721. class definition corresponding to the record type, method definitions for the
  28722. generated type will be present in the '.cc' file. The generated class will
  28723. inherit from the abstract class hadoop::Record. The DDL files
  28724. module declaration determines the namespace the record belongs to.
  28725. Each '.' delimited token in the module declaration results in the
  28726. creation of a namespace. For instance, the declaration module docs.links
  28727. results in the creation of a docs namespace and a nested
  28728. docs::links namespace. In the preceding examples, the Link class
  28729. is placed in the links namespace. The header file corresponding to
  28730. the links.jr file will contain:
  28731. <pre><code>
  28732. namespace links {
  28733. class Link : public hadoop::Record {
  28734. // ....
  28735. };
  28736. };
  28737. </code></pre>
  28738. Each field within the record will cause the generation of a private member
  28739. declaration of the appropriate type in the class declaration, and one or more
  28740. acccessor methods. The generated class will implement the serialize and
  28741. deserialize methods defined in hadoop::Record+. It will also
  28742. implement the inspection methods type and signature from
  28743. hadoop::Record. A default constructor and virtual destructor will also
  28744. be generated. Serialization code will read/write records into streams that
  28745. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  28746. For each member of a record an accessor method is generated that returns
  28747. either the member or a reference to the member. For members that are returned
  28748. by value, a setter method is also generated. This is true for primitive
  28749. data members of the types byte, int, long, boolean, float and
  28750. double. For example, for a int field called MyField the folowing
  28751. code is generated.
  28752. <pre><code>
  28753. ...
  28754. private:
  28755. int32_t mMyField;
  28756. ...
  28757. public:
  28758. int32_t getMyField(void) const {
  28759. return mMyField;
  28760. };
  28761. void setMyField(int32_t m) {
  28762. mMyField = m;
  28763. };
  28764. ...
  28765. </code></pre>
  28766. For a ustring or buffer or composite field. The generated code
  28767. only contains accessors that return a reference to the field. A const
  28768. and a non-const accessor are generated. For example:
  28769. <pre><code>
  28770. ...
  28771. private:
  28772. std::string mMyBuf;
  28773. ...
  28774. public:
  28775. std::string& getMyBuf() {
  28776. return mMyBuf;
  28777. };
  28778. const std::string& getMyBuf() const {
  28779. return mMyBuf;
  28780. };
  28781. ...
  28782. </code></pre>
  28783. <h4>Examples</h4>
  28784. Suppose the inclrec.jr file contains:
  28785. <pre><code>
  28786. module inclrec {
  28787. class RI {
  28788. int I32;
  28789. double D;
  28790. ustring S;
  28791. };
  28792. }
  28793. </code></pre>
  28794. and the testrec.jr file contains:
  28795. <pre><code>
  28796. include "inclrec.jr"
  28797. module testrec {
  28798. class R {
  28799. vector<float> VF;
  28800. RI Rec;
  28801. buffer Buf;
  28802. };
  28803. }
  28804. </code></pre>
  28805. Then the invocation of rcc such as:
  28806. <pre><code>
  28807. $ rcc -l c++ inclrec.jr testrec.jr
  28808. </code></pre>
  28809. will result in generation of four files:
  28810. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  28811. The inclrec.jr.hh will contain:
  28812. <pre><code>
  28813. #ifndef _INCLREC_JR_HH_
  28814. #define _INCLREC_JR_HH_
  28815. #include "recordio.hh"
  28816. namespace inclrec {
  28817. class RI : public hadoop::Record {
  28818. private:
  28819. int32_t I32;
  28820. double D;
  28821. std::string S;
  28822. public:
  28823. RI(void);
  28824. virtual ~RI(void);
  28825. virtual bool operator==(const RI& peer) const;
  28826. virtual bool operator<(const RI& peer) const;
  28827. virtual int32_t getI32(void) const { return I32; }
  28828. virtual void setI32(int32_t v) { I32 = v; }
  28829. virtual double getD(void) const { return D; }
  28830. virtual void setD(double v) { D = v; }
  28831. virtual std::string& getS(void) const { return S; }
  28832. virtual const std::string& getS(void) const { return S; }
  28833. virtual std::string type(void) const;
  28834. virtual std::string signature(void) const;
  28835. protected:
  28836. virtual void serialize(hadoop::OArchive& a) const;
  28837. virtual void deserialize(hadoop::IArchive& a);
  28838. };
  28839. } // end namespace inclrec
  28840. #endif /* _INCLREC_JR_HH_ */
  28841. </code></pre>
  28842. The testrec.jr.hh file will contain:
  28843. <pre><code>
  28844. #ifndef _TESTREC_JR_HH_
  28845. #define _TESTREC_JR_HH_
  28846. #include "inclrec.jr.hh"
  28847. namespace testrec {
  28848. class R : public hadoop::Record {
  28849. private:
  28850. std::vector<float> VF;
  28851. inclrec::RI Rec;
  28852. std::string Buf;
  28853. public:
  28854. R(void);
  28855. virtual ~R(void);
  28856. virtual bool operator==(const R& peer) const;
  28857. virtual bool operator<(const R& peer) const;
  28858. virtual std::vector<float>& getVF(void) const;
  28859. virtual const std::vector<float>& getVF(void) const;
  28860. virtual std::string& getBuf(void) const ;
  28861. virtual const std::string& getBuf(void) const;
  28862. virtual inclrec::RI& getRec(void) const;
  28863. virtual const inclrec::RI& getRec(void) const;
  28864. virtual bool serialize(hadoop::OutArchive& a) const;
  28865. virtual bool deserialize(hadoop::InArchive& a);
  28866. virtual std::string type(void) const;
  28867. virtual std::string signature(void) const;
  28868. };
  28869. }; // end namespace testrec
  28870. #endif /* _TESTREC_JR_HH_ */
  28871. </code></pre>
  28872. <h3>Java</h3>
  28873. Code generation for Java is similar to that for C++. A Java class is generated
  28874. for each record type with private members corresponding to the fields. Getters
  28875. and setters for fields are also generated. Some differences arise in the
  28876. way comparison is expressed and in the mapping of modules to packages and
  28877. classes to files. For equality testing, an equals method is generated
  28878. for each record type. As per Java requirements a hashCode method is also
  28879. generated. For comparison a compareTo method is generated for each
  28880. record type. This has the semantics as defined by the Java Comparable
  28881. interface, that is, the method returns a negative integer, zero, or a positive
  28882. integer as the invoked object is less than, equal to, or greater than the
  28883. comparison parameter.
  28884. A .java file is generated per record type as opposed to per DDL
  28885. file as in C++. The module declaration translates to a Java
  28886. package declaration. The module name maps to an identical Java package
  28887. name. In addition to this mapping, the DDL compiler creates the appropriate
  28888. directory hierarchy for the package and places the generated .java
  28889. files in the correct directories.
  28890. <h2>Mapping Summary</h2>
  28891. <pre><code>
  28892. DDL Type C++ Type Java Type
  28893. boolean bool boolean
  28894. byte int8_t byte
  28895. int int32_t int
  28896. long int64_t long
  28897. float float float
  28898. double double double
  28899. ustring std::string java.lang.String
  28900. buffer std::string org.apache.hadoop.record.Buffer
  28901. class type class type class type
  28902. vector<type> std::vector<type> java.util.ArrayList<type>
  28903. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  28904. </code></pre>
  28905. <h2>Data encodings</h2>
  28906. This section describes the format of the data encodings supported by Hadoop.
  28907. Currently, three data encodings are supported, namely binary, CSV and XML.
  28908. <h3>Binary Serialization Format</h3>
  28909. The binary data encoding format is fairly dense. Serialization of composite
  28910. types is simply defined as a concatenation of serializations of the constituent
  28911. elements (lengths are included in vectors and maps).
  28912. Composite types are serialized as follows:
  28913. <ul>
  28914. <li> class: Sequence of serialized members.
  28915. <li> vector: The number of elements serialized as an int. Followed by a
  28916. sequence of serialized elements.
  28917. <li> map: The number of key value pairs serialized as an int. Followed
  28918. by a sequence of serialized (key,value) pairs.
  28919. </ul>
  28920. Serialization of primitives is more interesting, with a zero compression
  28921. optimization for integral types and normalization to UTF-8 for strings.
  28922. Primitive types are serialized as follows:
  28923. <ul>
  28924. <li> byte: Represented by 1 byte, as is.
  28925. <li> boolean: Represented by 1-byte (0 or 1)
  28926. <li> int/long: Integers and longs are serialized zero compressed.
  28927. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  28928. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  28929. the number of trailing bytes, N, as the negative number (-120-N). For example,
  28930. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  28931. This doesn't help much for 4-byte integers but does a reasonably good job with
  28932. longs without bit twiddling.
  28933. <li> float/double: Serialized in IEEE 754 single and double precision
  28934. format in network byte order. This is the format used by Java.
  28935. <li> ustring: Serialized as 4-byte zero compressed length followed by
  28936. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  28937. language representation.
  28938. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  28939. raw bytes in the buffer.
  28940. </ul>
  28941. <h3>CSV Serialization Format</h3>
  28942. The CSV serialization format has a lot more structure than the "standard"
  28943. Excel CSV format, but we believe the additional structure is useful because
  28944. <ul>
  28945. <li> it makes parsing a lot easier without detracting too much from legibility
  28946. <li> the delimiters around composites make it obvious when one is reading a
  28947. sequence of Hadoop records
  28948. </ul>
  28949. Serialization formats for the various types are detailed in the grammar that
  28950. follows. The notable feature of the formats is the use of delimiters for
  28951. indicating the certain field types.
  28952. <ul>
  28953. <li> A string field begins with a single quote (').
  28954. <li> A buffer field begins with a sharp (#).
  28955. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  28956. ends with '}'.
  28957. </ul>
  28958. The CSV format can be described by the following grammar:
  28959. <pre><code>
  28960. record = primitive / struct / vector / map
  28961. primitive = boolean / int / long / float / double / ustring / buffer
  28962. boolean = "T" / "F"
  28963. int = ["-"] 1*DIGIT
  28964. long = ";" ["-"] 1*DIGIT
  28965. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  28966. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  28967. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  28968. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  28969. struct = "s{" record *("," record) "}"
  28970. vector = "v{" [record *("," record)] "}"
  28971. map = "m{" [*(record "," record)] "}"
  28972. </code></pre>
  28973. <h3>XML Serialization Format</h3>
  28974. The XML serialization format is the same used by Apache XML-RPC
  28975. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  28976. XML-RPC format and adds some additional data types. All record I/O types are
  28977. not directly expressible in this format, and access to a DDL is required in
  28978. order to convert these to valid types. All types primitive or composite are
  28979. represented by &lt;value&gt; elements. The particular XML-RPC type is
  28980. indicated by a nested element in the &lt;value&gt; element. The encoding for
  28981. records is always UTF-8. Primitive types are serialized as follows:
  28982. <ul>
  28983. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  28984. integers represented in US-ASCII
  28985. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  28986. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  28987. signed integers represented in US-ASCII.
  28988. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  28989. represented in US-ASCII.
  28990. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  28991. floating point numbers represented in US-ASCII.
  28992. <li> double: XML tag &lt;double&gt;. Values: Double precision
  28993. floating point numbers represented in US-ASCII.
  28994. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  28995. represented as UTF-8. XML does not permit all Unicode characters in literal
  28996. data. In particular, NULLs and control chars are not allowed. Additionally,
  28997. XML processors are required to replace carriage returns with line feeds and to
  28998. replace CRLF sequences with line feeds. Programming languages that we work
  28999. with do not impose these restrictions on string types. To work around these
  29000. restrictions, disallowed characters and CRs are percent escaped in strings.
  29001. The '%' character is also percent escaped.
  29002. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  29003. data. Represented as hexBinary, each byte is replaced by its 2-byte
  29004. hexadecimal representation.
  29005. </ul>
  29006. Composite types are serialized as follows:
  29007. <ul>
  29008. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  29009. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  29010. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  29011. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  29012. by a &lt;value&gt; element.
  29013. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  29014. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  29015. &lt;value&gt; elements each of which represents an element of the vector.
  29016. <li> map: XML tag &lt;array&gt;. Same as vector.
  29017. </ul>
  29018. For example:
  29019. <pre><code>
  29020. class {
  29021. int MY_INT; // value 5
  29022. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  29023. buffer MY_BUF; // value '\00\n\tabc%'
  29024. }
  29025. </code></pre>
  29026. is serialized as
  29027. <pre><code class="XML">
  29028. &lt;value&gt;
  29029. &lt;struct&gt;
  29030. &lt;member&gt;
  29031. &lt;name&gt;MY_INT&lt;/name&gt;
  29032. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  29033. &lt;/member&gt;
  29034. &lt;member&gt;
  29035. &lt;name&gt;MY_VEC&lt;/name&gt;
  29036. &lt;value&gt;
  29037. &lt;array&gt;
  29038. &lt;data&gt;
  29039. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  29040. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  29041. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  29042. &lt;/data&gt;
  29043. &lt;/array&gt;
  29044. &lt;/value&gt;
  29045. &lt;/member&gt;
  29046. &lt;member&gt;
  29047. &lt;name&gt;MY_BUF&lt;/name&gt;
  29048. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  29049. &lt;/member&gt;
  29050. &lt;/struct&gt;
  29051. &lt;/value&gt;
  29052. </code></pre>]]>
  29053. </doc>
  29054. </package>
  29055. <package name="org.apache.hadoop.record.compiler">
  29056. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  29057. <class name="CodeBuffer" extends="java.lang.Object"
  29058. abstract="false"
  29059. static="false" final="false" visibility="public"
  29060. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29061. <method name="toString" return="java.lang.String"
  29062. abstract="false" native="false" synchronized="false"
  29063. static="false" final="false" visibility="public"
  29064. deprecated="not deprecated">
  29065. </method>
  29066. <doc>
  29067. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  29068. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29069. </doc>
  29070. </class>
  29071. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  29072. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  29073. <class name="Consts" extends="java.lang.Object"
  29074. abstract="false"
  29075. static="false" final="false" visibility="public"
  29076. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29077. <field name="RIO_PREFIX" type="java.lang.String"
  29078. transient="false" volatile="false"
  29079. static="true" final="true" visibility="public"
  29080. deprecated="not deprecated">
  29081. </field>
  29082. <field name="RTI_VAR" type="java.lang.String"
  29083. transient="false" volatile="false"
  29084. static="true" final="true" visibility="public"
  29085. deprecated="not deprecated">
  29086. </field>
  29087. <field name="RTI_FILTER" type="java.lang.String"
  29088. transient="false" volatile="false"
  29089. static="true" final="true" visibility="public"
  29090. deprecated="not deprecated">
  29091. </field>
  29092. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  29093. transient="false" volatile="false"
  29094. static="true" final="true" visibility="public"
  29095. deprecated="not deprecated">
  29096. </field>
  29097. <field name="RECORD_OUTPUT" type="java.lang.String"
  29098. transient="false" volatile="false"
  29099. static="true" final="true" visibility="public"
  29100. deprecated="not deprecated">
  29101. </field>
  29102. <field name="RECORD_INPUT" type="java.lang.String"
  29103. transient="false" volatile="false"
  29104. static="true" final="true" visibility="public"
  29105. deprecated="not deprecated">
  29106. </field>
  29107. <field name="TAG" type="java.lang.String"
  29108. transient="false" volatile="false"
  29109. static="true" final="true" visibility="public"
  29110. deprecated="not deprecated">
  29111. </field>
  29112. <doc>
  29113. <![CDATA[const definitions for Record I/O compiler
  29114. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29115. </doc>
  29116. </class>
  29117. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  29118. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  29119. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  29120. abstract="false"
  29121. static="false" final="false" visibility="public"
  29122. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29123. <constructor name="JBoolean"
  29124. static="false" final="false" visibility="public"
  29125. deprecated="not deprecated">
  29126. <doc>
  29127. <![CDATA[Creates a new instance of JBoolean]]>
  29128. </doc>
  29129. </constructor>
  29130. <doc>
  29131. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29132. </doc>
  29133. </class>
  29134. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  29135. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  29136. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  29137. abstract="false"
  29138. static="false" final="false" visibility="public"
  29139. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29140. <constructor name="JBuffer"
  29141. static="false" final="false" visibility="public"
  29142. deprecated="not deprecated">
  29143. <doc>
  29144. <![CDATA[Creates a new instance of JBuffer]]>
  29145. </doc>
  29146. </constructor>
  29147. <doc>
  29148. <![CDATA[Code generator for "buffer" type.
  29149. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29150. </doc>
  29151. </class>
  29152. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  29153. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  29154. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  29155. abstract="false"
  29156. static="false" final="false" visibility="public"
  29157. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29158. <constructor name="JByte"
  29159. static="false" final="false" visibility="public"
  29160. deprecated="not deprecated">
  29161. </constructor>
  29162. <doc>
  29163. <![CDATA[Code generator for "byte" type.
  29164. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29165. </doc>
  29166. </class>
  29167. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  29168. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  29169. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  29170. abstract="false"
  29171. static="false" final="false" visibility="public"
  29172. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29173. <constructor name="JDouble"
  29174. static="false" final="false" visibility="public"
  29175. deprecated="not deprecated">
  29176. <doc>
  29177. <![CDATA[Creates a new instance of JDouble]]>
  29178. </doc>
  29179. </constructor>
  29180. <doc>
  29181. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29182. </doc>
  29183. </class>
  29184. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  29185. <!-- start class org.apache.hadoop.record.compiler.JField -->
  29186. <class name="JField" extends="java.lang.Object"
  29187. abstract="false"
  29188. static="false" final="false" visibility="public"
  29189. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29190. <constructor name="JField" type="java.lang.String, T"
  29191. static="false" final="false" visibility="public"
  29192. deprecated="not deprecated">
  29193. <doc>
  29194. <![CDATA[Creates a new instance of JField]]>
  29195. </doc>
  29196. </constructor>
  29197. <doc>
  29198. <![CDATA[A thin wrappper around record field.
  29199. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29200. </doc>
  29201. </class>
  29202. <!-- end class org.apache.hadoop.record.compiler.JField -->
  29203. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  29204. <class name="JFile" extends="java.lang.Object"
  29205. abstract="false"
  29206. static="false" final="false" visibility="public"
  29207. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29208. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  29209. static="false" final="false" visibility="public"
  29210. deprecated="not deprecated">
  29211. <doc>
  29212. <![CDATA[Creates a new instance of JFile
  29213. @param name possibly full pathname to the file
  29214. @param inclFiles included files (as JFile)
  29215. @param recList List of records defined within this file]]>
  29216. </doc>
  29217. </constructor>
  29218. <method name="genCode" return="int"
  29219. abstract="false" native="false" synchronized="false"
  29220. static="false" final="false" visibility="public"
  29221. deprecated="not deprecated">
  29222. <param name="language" type="java.lang.String"/>
  29223. <param name="destDir" type="java.lang.String"/>
  29224. <param name="options" type="java.util.ArrayList"/>
  29225. <exception name="IOException" type="java.io.IOException"/>
  29226. <doc>
  29227. <![CDATA[Generate record code in given language. Language should be all
  29228. lowercase.]]>
  29229. </doc>
  29230. </method>
  29231. <doc>
  29232. <![CDATA[Container for the Hadoop Record DDL.
  29233. The main components of the file are filename, list of included files,
  29234. and records defined in that file.
  29235. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29236. </doc>
  29237. </class>
  29238. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  29239. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  29240. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  29241. abstract="false"
  29242. static="false" final="false" visibility="public"
  29243. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29244. <constructor name="JFloat"
  29245. static="false" final="false" visibility="public"
  29246. deprecated="not deprecated">
  29247. <doc>
  29248. <![CDATA[Creates a new instance of JFloat]]>
  29249. </doc>
  29250. </constructor>
  29251. <doc>
  29252. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29253. </doc>
  29254. </class>
  29255. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  29256. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  29257. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  29258. abstract="false"
  29259. static="false" final="false" visibility="public"
  29260. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29261. <constructor name="JInt"
  29262. static="false" final="false" visibility="public"
  29263. deprecated="not deprecated">
  29264. <doc>
  29265. <![CDATA[Creates a new instance of JInt]]>
  29266. </doc>
  29267. </constructor>
  29268. <doc>
  29269. <![CDATA[Code generator for "int" type
  29270. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29271. </doc>
  29272. </class>
  29273. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  29274. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  29275. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  29276. abstract="false"
  29277. static="false" final="false" visibility="public"
  29278. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29279. <constructor name="JLong"
  29280. static="false" final="false" visibility="public"
  29281. deprecated="not deprecated">
  29282. <doc>
  29283. <![CDATA[Creates a new instance of JLong]]>
  29284. </doc>
  29285. </constructor>
  29286. <doc>
  29287. <![CDATA[Code generator for "long" type
  29288. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29289. </doc>
  29290. </class>
  29291. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  29292. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  29293. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  29294. abstract="false"
  29295. static="false" final="false" visibility="public"
  29296. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29297. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  29298. static="false" final="false" visibility="public"
  29299. deprecated="not deprecated">
  29300. <doc>
  29301. <![CDATA[Creates a new instance of JMap]]>
  29302. </doc>
  29303. </constructor>
  29304. <doc>
  29305. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29306. </doc>
  29307. </class>
  29308. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  29309. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  29310. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  29311. abstract="false"
  29312. static="false" final="false" visibility="public"
  29313. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29314. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  29315. static="false" final="false" visibility="public"
  29316. deprecated="not deprecated">
  29317. <doc>
  29318. <![CDATA[Creates a new instance of JRecord]]>
  29319. </doc>
  29320. </constructor>
  29321. <doc>
  29322. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29323. </doc>
  29324. </class>
  29325. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  29326. <!-- start class org.apache.hadoop.record.compiler.JString -->
  29327. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  29328. abstract="false"
  29329. static="false" final="false" visibility="public"
  29330. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29331. <constructor name="JString"
  29332. static="false" final="false" visibility="public"
  29333. deprecated="not deprecated">
  29334. <doc>
  29335. <![CDATA[Creates a new instance of JString]]>
  29336. </doc>
  29337. </constructor>
  29338. <doc>
  29339. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29340. </doc>
  29341. </class>
  29342. <!-- end class org.apache.hadoop.record.compiler.JString -->
  29343. <!-- start class org.apache.hadoop.record.compiler.JType -->
  29344. <class name="JType" extends="java.lang.Object"
  29345. abstract="true"
  29346. static="false" final="false" visibility="public"
  29347. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29348. <constructor name="JType"
  29349. static="false" final="false" visibility="public"
  29350. deprecated="not deprecated">
  29351. </constructor>
  29352. <doc>
  29353. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  29354. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29355. </doc>
  29356. </class>
  29357. <!-- end class org.apache.hadoop.record.compiler.JType -->
  29358. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  29359. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  29360. abstract="false"
  29361. static="false" final="false" visibility="public"
  29362. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29363. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  29364. static="false" final="false" visibility="public"
  29365. deprecated="not deprecated">
  29366. <doc>
  29367. <![CDATA[Creates a new instance of JVector]]>
  29368. </doc>
  29369. </constructor>
  29370. <doc>
  29371. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29372. </doc>
  29373. </class>
  29374. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  29375. <doc>
  29376. <![CDATA[<p>
  29377. (DEPRECATED) This package contains classes needed for code generation
  29378. from the hadoop record compiler. CppGenerator and JavaGenerator
  29379. are the main entry points from the parser. There are classes
  29380. corrsponding to every primitive type and compound type
  29381. included in Hadoop record I/O syntax.
  29382. </p>
  29383. <p>
  29384. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  29385. </p>]]>
  29386. </doc>
  29387. </package>
  29388. <package name="org.apache.hadoop.record.compiler.ant">
  29389. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  29390. <class name="RccTask" extends="org.apache.tools.ant.Task"
  29391. abstract="false"
  29392. static="false" final="false" visibility="public"
  29393. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29394. <constructor name="RccTask"
  29395. static="false" final="false" visibility="public"
  29396. deprecated="not deprecated">
  29397. <doc>
  29398. <![CDATA[Creates a new instance of RccTask]]>
  29399. </doc>
  29400. </constructor>
  29401. <method name="setLanguage"
  29402. abstract="false" native="false" synchronized="false"
  29403. static="false" final="false" visibility="public"
  29404. deprecated="not deprecated">
  29405. <param name="language" type="java.lang.String"/>
  29406. <doc>
  29407. <![CDATA[Sets the output language option
  29408. @param language "java"/"c++"]]>
  29409. </doc>
  29410. </method>
  29411. <method name="setFile"
  29412. abstract="false" native="false" synchronized="false"
  29413. static="false" final="false" visibility="public"
  29414. deprecated="not deprecated">
  29415. <param name="file" type="java.io.File"/>
  29416. <doc>
  29417. <![CDATA[Sets the record definition file attribute
  29418. @param file record definition file]]>
  29419. </doc>
  29420. </method>
  29421. <method name="setFailonerror"
  29422. abstract="false" native="false" synchronized="false"
  29423. static="false" final="false" visibility="public"
  29424. deprecated="not deprecated">
  29425. <param name="flag" type="boolean"/>
  29426. <doc>
  29427. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  29428. @param flag true will throw build exception in case of failure (default)]]>
  29429. </doc>
  29430. </method>
  29431. <method name="setDestdir"
  29432. abstract="false" native="false" synchronized="false"
  29433. static="false" final="false" visibility="public"
  29434. deprecated="not deprecated">
  29435. <param name="dir" type="java.io.File"/>
  29436. <doc>
  29437. <![CDATA[Sets directory where output files will be generated
  29438. @param dir output directory]]>
  29439. </doc>
  29440. </method>
  29441. <method name="addFileset"
  29442. abstract="false" native="false" synchronized="false"
  29443. static="false" final="false" visibility="public"
  29444. deprecated="not deprecated">
  29445. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  29446. <doc>
  29447. <![CDATA[Adds a fileset that can consist of one or more files
  29448. @param set Set of record definition files]]>
  29449. </doc>
  29450. </method>
  29451. <method name="execute"
  29452. abstract="false" native="false" synchronized="false"
  29453. static="false" final="false" visibility="public"
  29454. deprecated="not deprecated">
  29455. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  29456. <doc>
  29457. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  29458. </doc>
  29459. </method>
  29460. <doc>
  29461. <![CDATA[Hadoop record compiler ant Task
  29462. <p> This task takes the given record definition files and compiles them into
  29463. java or c++
  29464. files. It is then up to the user to compile the generated files.
  29465. <p> The task requires the <code>file</code> or the nested fileset element to be
  29466. specified. Optional attributes are <code>language</code> (set the output
  29467. language, default is "java"),
  29468. <code>destdir</code> (name of the destination directory for generated java/c++
  29469. code, default is ".") and <code>failonerror</code> (specifies error handling
  29470. behavior. default is true).
  29471. <p><h4>Usage</h4>
  29472. <pre>
  29473. &lt;recordcc
  29474. destdir="${basedir}/gensrc"
  29475. language="java"&gt;
  29476. &lt;fileset include="**\/*.jr" /&gt;
  29477. &lt;/recordcc&gt;
  29478. </pre>
  29479. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29480. </doc>
  29481. </class>
  29482. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  29483. </package>
  29484. <package name="org.apache.hadoop.record.compiler.generated">
  29485. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  29486. <class name="ParseException" extends="java.lang.Exception"
  29487. abstract="false"
  29488. static="false" final="false" visibility="public"
  29489. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29490. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  29491. static="false" final="false" visibility="public"
  29492. deprecated="not deprecated">
  29493. <doc>
  29494. <![CDATA[This constructor is used by the method "generateParseException"
  29495. in the generated parser. Calling this constructor generates
  29496. a new object of this type with the fields "currentToken",
  29497. "expectedTokenSequences", and "tokenImage" set. The boolean
  29498. flag "specialConstructor" is also set to true to indicate that
  29499. this constructor was used to create this object.
  29500. This constructor calls its super class with the empty string
  29501. to force the "toString" method of parent class "Throwable" to
  29502. print the error message in the form:
  29503. ParseException: <result of getMessage>]]>
  29504. </doc>
  29505. </constructor>
  29506. <constructor name="ParseException"
  29507. static="false" final="false" visibility="public"
  29508. deprecated="not deprecated">
  29509. <doc>
  29510. <![CDATA[The following constructors are for use by you for whatever
  29511. purpose you can think of. Constructing the exception in this
  29512. manner makes the exception behave in the normal way - i.e., as
  29513. documented in the class "Throwable". The fields "errorToken",
  29514. "expectedTokenSequences", and "tokenImage" do not contain
  29515. relevant information. The JavaCC generated code does not use
  29516. these constructors.]]>
  29517. </doc>
  29518. </constructor>
  29519. <constructor name="ParseException" type="java.lang.String"
  29520. static="false" final="false" visibility="public"
  29521. deprecated="not deprecated">
  29522. </constructor>
  29523. <method name="getMessage" return="java.lang.String"
  29524. abstract="false" native="false" synchronized="false"
  29525. static="false" final="false" visibility="public"
  29526. deprecated="not deprecated">
  29527. <doc>
  29528. <![CDATA[This method has the standard behavior when this object has been
  29529. created using the standard constructors. Otherwise, it uses
  29530. "currentToken" and "expectedTokenSequences" to generate a parse
  29531. error message and returns it. If this object has been created
  29532. due to a parse error, and you do not catch it (it gets thrown
  29533. from the parser), then this method is called during the printing
  29534. of the final stack trace, and hence the correct error message
  29535. gets displayed.]]>
  29536. </doc>
  29537. </method>
  29538. <method name="add_escapes" return="java.lang.String"
  29539. abstract="false" native="false" synchronized="false"
  29540. static="false" final="false" visibility="protected"
  29541. deprecated="not deprecated">
  29542. <param name="str" type="java.lang.String"/>
  29543. <doc>
  29544. <![CDATA[Used to convert raw characters to their escaped version
  29545. when these raw version cannot be used as part of an ASCII
  29546. string literal.]]>
  29547. </doc>
  29548. </method>
  29549. <field name="specialConstructor" type="boolean"
  29550. transient="false" volatile="false"
  29551. static="false" final="false" visibility="protected"
  29552. deprecated="not deprecated">
  29553. <doc>
  29554. <![CDATA[This variable determines which constructor was used to create
  29555. this object and thereby affects the semantics of the
  29556. "getMessage" method (see below).]]>
  29557. </doc>
  29558. </field>
  29559. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  29560. transient="false" volatile="false"
  29561. static="false" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <doc>
  29564. <![CDATA[This is the last token that has been consumed successfully. If
  29565. this object has been created due to a parse error, the token
  29566. followng this token will (therefore) be the first error token.]]>
  29567. </doc>
  29568. </field>
  29569. <field name="expectedTokenSequences" type="int[][]"
  29570. transient="false" volatile="false"
  29571. static="false" final="false" visibility="public"
  29572. deprecated="not deprecated">
  29573. <doc>
  29574. <![CDATA[Each entry in this array is an array of integers. Each array
  29575. of integers represents a sequence of tokens (by their ordinal
  29576. values) that is expected at this point of the parse.]]>
  29577. </doc>
  29578. </field>
  29579. <field name="tokenImage" type="java.lang.String[]"
  29580. transient="false" volatile="false"
  29581. static="false" final="false" visibility="public"
  29582. deprecated="not deprecated">
  29583. <doc>
  29584. <![CDATA[This is a reference to the "tokenImage" array of the generated
  29585. parser within which the parse error occurred. This array is
  29586. defined in the generated ...Constants interface.]]>
  29587. </doc>
  29588. </field>
  29589. <field name="eol" type="java.lang.String"
  29590. transient="false" volatile="false"
  29591. static="false" final="false" visibility="protected"
  29592. deprecated="not deprecated">
  29593. <doc>
  29594. <![CDATA[The end of line string for this machine.]]>
  29595. </doc>
  29596. </field>
  29597. <doc>
  29598. <![CDATA[This exception is thrown when parse errors are encountered.
  29599. You can explicitly create objects of this exception type by
  29600. calling the method generateParseException in the generated
  29601. parser.
  29602. You can modify this class to customize your error reporting
  29603. mechanisms so long as you retain the public fields.
  29604. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29605. </doc>
  29606. </class>
  29607. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  29608. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  29609. <class name="Rcc" extends="java.lang.Object"
  29610. abstract="false"
  29611. static="false" final="false" visibility="public"
  29612. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29613. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  29614. <constructor name="Rcc" type="java.io.InputStream"
  29615. static="false" final="false" visibility="public"
  29616. deprecated="not deprecated">
  29617. </constructor>
  29618. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  29619. static="false" final="false" visibility="public"
  29620. deprecated="not deprecated">
  29621. </constructor>
  29622. <constructor name="Rcc" type="java.io.Reader"
  29623. static="false" final="false" visibility="public"
  29624. deprecated="not deprecated">
  29625. </constructor>
  29626. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  29627. static="false" final="false" visibility="public"
  29628. deprecated="not deprecated">
  29629. </constructor>
  29630. <method name="main"
  29631. abstract="false" native="false" synchronized="false"
  29632. static="true" final="false" visibility="public"
  29633. deprecated="not deprecated">
  29634. <param name="args" type="java.lang.String[]"/>
  29635. </method>
  29636. <method name="usage"
  29637. abstract="false" native="false" synchronized="false"
  29638. static="true" final="false" visibility="public"
  29639. deprecated="not deprecated">
  29640. </method>
  29641. <method name="driver" return="int"
  29642. abstract="false" native="false" synchronized="false"
  29643. static="true" final="false" visibility="public"
  29644. deprecated="not deprecated">
  29645. <param name="args" type="java.lang.String[]"/>
  29646. </method>
  29647. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  29648. abstract="false" native="false" synchronized="false"
  29649. static="false" final="true" visibility="public"
  29650. deprecated="not deprecated">
  29651. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29652. </method>
  29653. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  29654. abstract="false" native="false" synchronized="false"
  29655. static="false" final="true" visibility="public"
  29656. deprecated="not deprecated">
  29657. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29658. </method>
  29659. <method name="Module" return="java.util.ArrayList"
  29660. abstract="false" native="false" synchronized="false"
  29661. static="false" final="true" visibility="public"
  29662. deprecated="not deprecated">
  29663. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29664. </method>
  29665. <method name="ModuleName" return="java.lang.String"
  29666. abstract="false" native="false" synchronized="false"
  29667. static="false" final="true" visibility="public"
  29668. deprecated="not deprecated">
  29669. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29670. </method>
  29671. <method name="RecordList" return="java.util.ArrayList"
  29672. abstract="false" native="false" synchronized="false"
  29673. static="false" final="true" visibility="public"
  29674. deprecated="not deprecated">
  29675. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29676. </method>
  29677. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  29678. abstract="false" native="false" synchronized="false"
  29679. static="false" final="true" visibility="public"
  29680. deprecated="not deprecated">
  29681. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29682. </method>
  29683. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  29684. abstract="false" native="false" synchronized="false"
  29685. static="false" final="true" visibility="public"
  29686. deprecated="not deprecated">
  29687. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29688. </method>
  29689. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  29690. abstract="false" native="false" synchronized="false"
  29691. static="false" final="true" visibility="public"
  29692. deprecated="not deprecated">
  29693. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29694. </method>
  29695. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  29696. abstract="false" native="false" synchronized="false"
  29697. static="false" final="true" visibility="public"
  29698. deprecated="not deprecated">
  29699. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29700. </method>
  29701. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  29702. abstract="false" native="false" synchronized="false"
  29703. static="false" final="true" visibility="public"
  29704. deprecated="not deprecated">
  29705. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  29706. </method>
  29707. <method name="ReInit"
  29708. abstract="false" native="false" synchronized="false"
  29709. static="false" final="false" visibility="public"
  29710. deprecated="not deprecated">
  29711. <param name="stream" type="java.io.InputStream"/>
  29712. </method>
  29713. <method name="ReInit"
  29714. abstract="false" native="false" synchronized="false"
  29715. static="false" final="false" visibility="public"
  29716. deprecated="not deprecated">
  29717. <param name="stream" type="java.io.InputStream"/>
  29718. <param name="encoding" type="java.lang.String"/>
  29719. </method>
  29720. <method name="ReInit"
  29721. abstract="false" native="false" synchronized="false"
  29722. static="false" final="false" visibility="public"
  29723. deprecated="not deprecated">
  29724. <param name="stream" type="java.io.Reader"/>
  29725. </method>
  29726. <method name="ReInit"
  29727. abstract="false" native="false" synchronized="false"
  29728. static="false" final="false" visibility="public"
  29729. deprecated="not deprecated">
  29730. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  29731. </method>
  29732. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  29733. abstract="false" native="false" synchronized="false"
  29734. static="false" final="true" visibility="public"
  29735. deprecated="not deprecated">
  29736. </method>
  29737. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  29738. abstract="false" native="false" synchronized="false"
  29739. static="false" final="true" visibility="public"
  29740. deprecated="not deprecated">
  29741. <param name="index" type="int"/>
  29742. </method>
  29743. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  29744. abstract="false" native="false" synchronized="false"
  29745. static="false" final="false" visibility="public"
  29746. deprecated="not deprecated">
  29747. </method>
  29748. <method name="enable_tracing"
  29749. abstract="false" native="false" synchronized="false"
  29750. static="false" final="true" visibility="public"
  29751. deprecated="not deprecated">
  29752. </method>
  29753. <method name="disable_tracing"
  29754. abstract="false" native="false" synchronized="false"
  29755. static="false" final="true" visibility="public"
  29756. deprecated="not deprecated">
  29757. </method>
  29758. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  29759. transient="false" volatile="false"
  29760. static="false" final="false" visibility="public"
  29761. deprecated="not deprecated">
  29762. </field>
  29763. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  29764. transient="false" volatile="false"
  29765. static="false" final="false" visibility="public"
  29766. deprecated="not deprecated">
  29767. </field>
  29768. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  29769. transient="false" volatile="false"
  29770. static="false" final="false" visibility="public"
  29771. deprecated="not deprecated">
  29772. </field>
  29773. <doc>
  29774. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29775. </doc>
  29776. </class>
  29777. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  29778. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  29779. <interface name="RccConstants" abstract="true"
  29780. static="false" final="false" visibility="public"
  29781. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29782. <field name="EOF" type="int"
  29783. transient="false" volatile="false"
  29784. static="true" final="true" visibility="public"
  29785. deprecated="not deprecated">
  29786. </field>
  29787. <field name="MODULE_TKN" type="int"
  29788. transient="false" volatile="false"
  29789. static="true" final="true" visibility="public"
  29790. deprecated="not deprecated">
  29791. </field>
  29792. <field name="RECORD_TKN" type="int"
  29793. transient="false" volatile="false"
  29794. static="true" final="true" visibility="public"
  29795. deprecated="not deprecated">
  29796. </field>
  29797. <field name="INCLUDE_TKN" type="int"
  29798. transient="false" volatile="false"
  29799. static="true" final="true" visibility="public"
  29800. deprecated="not deprecated">
  29801. </field>
  29802. <field name="BYTE_TKN" type="int"
  29803. transient="false" volatile="false"
  29804. static="true" final="true" visibility="public"
  29805. deprecated="not deprecated">
  29806. </field>
  29807. <field name="BOOLEAN_TKN" type="int"
  29808. transient="false" volatile="false"
  29809. static="true" final="true" visibility="public"
  29810. deprecated="not deprecated">
  29811. </field>
  29812. <field name="INT_TKN" type="int"
  29813. transient="false" volatile="false"
  29814. static="true" final="true" visibility="public"
  29815. deprecated="not deprecated">
  29816. </field>
  29817. <field name="LONG_TKN" type="int"
  29818. transient="false" volatile="false"
  29819. static="true" final="true" visibility="public"
  29820. deprecated="not deprecated">
  29821. </field>
  29822. <field name="FLOAT_TKN" type="int"
  29823. transient="false" volatile="false"
  29824. static="true" final="true" visibility="public"
  29825. deprecated="not deprecated">
  29826. </field>
  29827. <field name="DOUBLE_TKN" type="int"
  29828. transient="false" volatile="false"
  29829. static="true" final="true" visibility="public"
  29830. deprecated="not deprecated">
  29831. </field>
  29832. <field name="USTRING_TKN" type="int"
  29833. transient="false" volatile="false"
  29834. static="true" final="true" visibility="public"
  29835. deprecated="not deprecated">
  29836. </field>
  29837. <field name="BUFFER_TKN" type="int"
  29838. transient="false" volatile="false"
  29839. static="true" final="true" visibility="public"
  29840. deprecated="not deprecated">
  29841. </field>
  29842. <field name="VECTOR_TKN" type="int"
  29843. transient="false" volatile="false"
  29844. static="true" final="true" visibility="public"
  29845. deprecated="not deprecated">
  29846. </field>
  29847. <field name="MAP_TKN" type="int"
  29848. transient="false" volatile="false"
  29849. static="true" final="true" visibility="public"
  29850. deprecated="not deprecated">
  29851. </field>
  29852. <field name="LBRACE_TKN" type="int"
  29853. transient="false" volatile="false"
  29854. static="true" final="true" visibility="public"
  29855. deprecated="not deprecated">
  29856. </field>
  29857. <field name="RBRACE_TKN" type="int"
  29858. transient="false" volatile="false"
  29859. static="true" final="true" visibility="public"
  29860. deprecated="not deprecated">
  29861. </field>
  29862. <field name="LT_TKN" type="int"
  29863. transient="false" volatile="false"
  29864. static="true" final="true" visibility="public"
  29865. deprecated="not deprecated">
  29866. </field>
  29867. <field name="GT_TKN" type="int"
  29868. transient="false" volatile="false"
  29869. static="true" final="true" visibility="public"
  29870. deprecated="not deprecated">
  29871. </field>
  29872. <field name="SEMICOLON_TKN" type="int"
  29873. transient="false" volatile="false"
  29874. static="true" final="true" visibility="public"
  29875. deprecated="not deprecated">
  29876. </field>
  29877. <field name="COMMA_TKN" type="int"
  29878. transient="false" volatile="false"
  29879. static="true" final="true" visibility="public"
  29880. deprecated="not deprecated">
  29881. </field>
  29882. <field name="DOT_TKN" type="int"
  29883. transient="false" volatile="false"
  29884. static="true" final="true" visibility="public"
  29885. deprecated="not deprecated">
  29886. </field>
  29887. <field name="CSTRING_TKN" type="int"
  29888. transient="false" volatile="false"
  29889. static="true" final="true" visibility="public"
  29890. deprecated="not deprecated">
  29891. </field>
  29892. <field name="IDENT_TKN" type="int"
  29893. transient="false" volatile="false"
  29894. static="true" final="true" visibility="public"
  29895. deprecated="not deprecated">
  29896. </field>
  29897. <field name="DEFAULT" type="int"
  29898. transient="false" volatile="false"
  29899. static="true" final="true" visibility="public"
  29900. deprecated="not deprecated">
  29901. </field>
  29902. <field name="WithinOneLineComment" type="int"
  29903. transient="false" volatile="false"
  29904. static="true" final="true" visibility="public"
  29905. deprecated="not deprecated">
  29906. </field>
  29907. <field name="WithinMultiLineComment" type="int"
  29908. transient="false" volatile="false"
  29909. static="true" final="true" visibility="public"
  29910. deprecated="not deprecated">
  29911. </field>
  29912. <field name="tokenImage" type="java.lang.String[]"
  29913. transient="false" volatile="false"
  29914. static="true" final="true" visibility="public"
  29915. deprecated="not deprecated">
  29916. </field>
  29917. <doc>
  29918. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29919. </doc>
  29920. </interface>
  29921. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  29922. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  29923. <class name="RccTokenManager" extends="java.lang.Object"
  29924. abstract="false"
  29925. static="false" final="false" visibility="public"
  29926. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29927. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  29928. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  29929. static="false" final="false" visibility="public"
  29930. deprecated="not deprecated">
  29931. </constructor>
  29932. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  29933. static="false" final="false" visibility="public"
  29934. deprecated="not deprecated">
  29935. </constructor>
  29936. <method name="setDebugStream"
  29937. abstract="false" native="false" synchronized="false"
  29938. static="false" final="false" visibility="public"
  29939. deprecated="not deprecated">
  29940. <param name="ds" type="java.io.PrintStream"/>
  29941. </method>
  29942. <method name="ReInit"
  29943. abstract="false" native="false" synchronized="false"
  29944. static="false" final="false" visibility="public"
  29945. deprecated="not deprecated">
  29946. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  29947. </method>
  29948. <method name="ReInit"
  29949. abstract="false" native="false" synchronized="false"
  29950. static="false" final="false" visibility="public"
  29951. deprecated="not deprecated">
  29952. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  29953. <param name="lexState" type="int"/>
  29954. </method>
  29955. <method name="SwitchTo"
  29956. abstract="false" native="false" synchronized="false"
  29957. static="false" final="false" visibility="public"
  29958. deprecated="not deprecated">
  29959. <param name="lexState" type="int"/>
  29960. </method>
  29961. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  29962. abstract="false" native="false" synchronized="false"
  29963. static="false" final="false" visibility="protected"
  29964. deprecated="not deprecated">
  29965. </method>
  29966. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  29967. abstract="false" native="false" synchronized="false"
  29968. static="false" final="false" visibility="public"
  29969. deprecated="not deprecated">
  29970. </method>
  29971. <field name="debugStream" type="java.io.PrintStream"
  29972. transient="false" volatile="false"
  29973. static="false" final="false" visibility="public"
  29974. deprecated="not deprecated">
  29975. </field>
  29976. <field name="jjstrLiteralImages" type="java.lang.String[]"
  29977. transient="false" volatile="false"
  29978. static="true" final="true" visibility="public"
  29979. deprecated="not deprecated">
  29980. </field>
  29981. <field name="lexStateNames" type="java.lang.String[]"
  29982. transient="false" volatile="false"
  29983. static="true" final="true" visibility="public"
  29984. deprecated="not deprecated">
  29985. </field>
  29986. <field name="jjnewLexState" type="int[]"
  29987. transient="false" volatile="false"
  29988. static="true" final="true" visibility="public"
  29989. deprecated="not deprecated">
  29990. </field>
  29991. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  29992. transient="false" volatile="false"
  29993. static="false" final="false" visibility="protected"
  29994. deprecated="not deprecated">
  29995. </field>
  29996. <field name="curChar" type="char"
  29997. transient="false" volatile="false"
  29998. static="false" final="false" visibility="protected"
  29999. deprecated="not deprecated">
  30000. </field>
  30001. <doc>
  30002. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30003. </doc>
  30004. </class>
  30005. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  30006. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  30007. <class name="SimpleCharStream" extends="java.lang.Object"
  30008. abstract="false"
  30009. static="false" final="false" visibility="public"
  30010. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30011. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  30012. static="false" final="false" visibility="public"
  30013. deprecated="not deprecated">
  30014. </constructor>
  30015. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  30016. static="false" final="false" visibility="public"
  30017. deprecated="not deprecated">
  30018. </constructor>
  30019. <constructor name="SimpleCharStream" type="java.io.Reader"
  30020. static="false" final="false" visibility="public"
  30021. deprecated="not deprecated">
  30022. </constructor>
  30023. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  30024. static="false" final="false" visibility="public"
  30025. deprecated="not deprecated">
  30026. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30027. </constructor>
  30028. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  30029. static="false" final="false" visibility="public"
  30030. deprecated="not deprecated">
  30031. </constructor>
  30032. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  30033. static="false" final="false" visibility="public"
  30034. deprecated="not deprecated">
  30035. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30036. </constructor>
  30037. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  30038. static="false" final="false" visibility="public"
  30039. deprecated="not deprecated">
  30040. </constructor>
  30041. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  30042. static="false" final="false" visibility="public"
  30043. deprecated="not deprecated">
  30044. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30045. </constructor>
  30046. <constructor name="SimpleCharStream" type="java.io.InputStream"
  30047. static="false" final="false" visibility="public"
  30048. deprecated="not deprecated">
  30049. </constructor>
  30050. <method name="setTabSize"
  30051. abstract="false" native="false" synchronized="false"
  30052. static="false" final="false" visibility="protected"
  30053. deprecated="not deprecated">
  30054. <param name="i" type="int"/>
  30055. </method>
  30056. <method name="getTabSize" return="int"
  30057. abstract="false" native="false" synchronized="false"
  30058. static="false" final="false" visibility="protected"
  30059. deprecated="not deprecated">
  30060. <param name="i" type="int"/>
  30061. </method>
  30062. <method name="ExpandBuff"
  30063. abstract="false" native="false" synchronized="false"
  30064. static="false" final="false" visibility="protected"
  30065. deprecated="not deprecated">
  30066. <param name="wrapAround" type="boolean"/>
  30067. </method>
  30068. <method name="FillBuff"
  30069. abstract="false" native="false" synchronized="false"
  30070. static="false" final="false" visibility="protected"
  30071. deprecated="not deprecated">
  30072. <exception name="IOException" type="java.io.IOException"/>
  30073. </method>
  30074. <method name="BeginToken" return="char"
  30075. abstract="false" native="false" synchronized="false"
  30076. static="false" final="false" visibility="public"
  30077. deprecated="not deprecated">
  30078. <exception name="IOException" type="java.io.IOException"/>
  30079. </method>
  30080. <method name="UpdateLineColumn"
  30081. abstract="false" native="false" synchronized="false"
  30082. static="false" final="false" visibility="protected"
  30083. deprecated="not deprecated">
  30084. <param name="c" type="char"/>
  30085. </method>
  30086. <method name="readChar" return="char"
  30087. abstract="false" native="false" synchronized="false"
  30088. static="false" final="false" visibility="public"
  30089. deprecated="not deprecated">
  30090. <exception name="IOException" type="java.io.IOException"/>
  30091. </method>
  30092. <method name="getEndColumn" return="int"
  30093. abstract="false" native="false" synchronized="false"
  30094. static="false" final="false" visibility="public"
  30095. deprecated="not deprecated">
  30096. </method>
  30097. <method name="getEndLine" return="int"
  30098. abstract="false" native="false" synchronized="false"
  30099. static="false" final="false" visibility="public"
  30100. deprecated="not deprecated">
  30101. </method>
  30102. <method name="getBeginColumn" return="int"
  30103. abstract="false" native="false" synchronized="false"
  30104. static="false" final="false" visibility="public"
  30105. deprecated="not deprecated">
  30106. </method>
  30107. <method name="getBeginLine" return="int"
  30108. abstract="false" native="false" synchronized="false"
  30109. static="false" final="false" visibility="public"
  30110. deprecated="not deprecated">
  30111. </method>
  30112. <method name="backup"
  30113. abstract="false" native="false" synchronized="false"
  30114. static="false" final="false" visibility="public"
  30115. deprecated="not deprecated">
  30116. <param name="amount" type="int"/>
  30117. </method>
  30118. <method name="ReInit"
  30119. abstract="false" native="false" synchronized="false"
  30120. static="false" final="false" visibility="public"
  30121. deprecated="not deprecated">
  30122. <param name="dstream" type="java.io.Reader"/>
  30123. <param name="startline" type="int"/>
  30124. <param name="startcolumn" type="int"/>
  30125. <param name="buffersize" type="int"/>
  30126. </method>
  30127. <method name="ReInit"
  30128. abstract="false" native="false" synchronized="false"
  30129. static="false" final="false" visibility="public"
  30130. deprecated="not deprecated">
  30131. <param name="dstream" type="java.io.Reader"/>
  30132. <param name="startline" type="int"/>
  30133. <param name="startcolumn" type="int"/>
  30134. </method>
  30135. <method name="ReInit"
  30136. abstract="false" native="false" synchronized="false"
  30137. static="false" final="false" visibility="public"
  30138. deprecated="not deprecated">
  30139. <param name="dstream" type="java.io.Reader"/>
  30140. </method>
  30141. <method name="ReInit"
  30142. abstract="false" native="false" synchronized="false"
  30143. static="false" final="false" visibility="public"
  30144. deprecated="not deprecated">
  30145. <param name="dstream" type="java.io.InputStream"/>
  30146. <param name="encoding" type="java.lang.String"/>
  30147. <param name="startline" type="int"/>
  30148. <param name="startcolumn" type="int"/>
  30149. <param name="buffersize" type="int"/>
  30150. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30151. </method>
  30152. <method name="ReInit"
  30153. abstract="false" native="false" synchronized="false"
  30154. static="false" final="false" visibility="public"
  30155. deprecated="not deprecated">
  30156. <param name="dstream" type="java.io.InputStream"/>
  30157. <param name="startline" type="int"/>
  30158. <param name="startcolumn" type="int"/>
  30159. <param name="buffersize" type="int"/>
  30160. </method>
  30161. <method name="ReInit"
  30162. abstract="false" native="false" synchronized="false"
  30163. static="false" final="false" visibility="public"
  30164. deprecated="not deprecated">
  30165. <param name="dstream" type="java.io.InputStream"/>
  30166. <param name="encoding" type="java.lang.String"/>
  30167. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30168. </method>
  30169. <method name="ReInit"
  30170. abstract="false" native="false" synchronized="false"
  30171. static="false" final="false" visibility="public"
  30172. deprecated="not deprecated">
  30173. <param name="dstream" type="java.io.InputStream"/>
  30174. </method>
  30175. <method name="ReInit"
  30176. abstract="false" native="false" synchronized="false"
  30177. static="false" final="false" visibility="public"
  30178. deprecated="not deprecated">
  30179. <param name="dstream" type="java.io.InputStream"/>
  30180. <param name="encoding" type="java.lang.String"/>
  30181. <param name="startline" type="int"/>
  30182. <param name="startcolumn" type="int"/>
  30183. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  30184. </method>
  30185. <method name="ReInit"
  30186. abstract="false" native="false" synchronized="false"
  30187. static="false" final="false" visibility="public"
  30188. deprecated="not deprecated">
  30189. <param name="dstream" type="java.io.InputStream"/>
  30190. <param name="startline" type="int"/>
  30191. <param name="startcolumn" type="int"/>
  30192. </method>
  30193. <method name="GetImage" return="java.lang.String"
  30194. abstract="false" native="false" synchronized="false"
  30195. static="false" final="false" visibility="public"
  30196. deprecated="not deprecated">
  30197. </method>
  30198. <method name="GetSuffix" return="char[]"
  30199. abstract="false" native="false" synchronized="false"
  30200. static="false" final="false" visibility="public"
  30201. deprecated="not deprecated">
  30202. <param name="len" type="int"/>
  30203. </method>
  30204. <method name="Done"
  30205. abstract="false" native="false" synchronized="false"
  30206. static="false" final="false" visibility="public"
  30207. deprecated="not deprecated">
  30208. </method>
  30209. <method name="adjustBeginLineColumn"
  30210. abstract="false" native="false" synchronized="false"
  30211. static="false" final="false" visibility="public"
  30212. deprecated="not deprecated">
  30213. <param name="newLine" type="int"/>
  30214. <param name="newCol" type="int"/>
  30215. <doc>
  30216. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  30217. </doc>
  30218. </method>
  30219. <field name="staticFlag" type="boolean"
  30220. transient="false" volatile="false"
  30221. static="true" final="true" visibility="public"
  30222. deprecated="not deprecated">
  30223. </field>
  30224. <field name="bufpos" type="int"
  30225. transient="false" volatile="false"
  30226. static="false" final="false" visibility="public"
  30227. deprecated="not deprecated">
  30228. </field>
  30229. <field name="bufline" type="int[]"
  30230. transient="false" volatile="false"
  30231. static="false" final="false" visibility="protected"
  30232. deprecated="not deprecated">
  30233. </field>
  30234. <field name="bufcolumn" type="int[]"
  30235. transient="false" volatile="false"
  30236. static="false" final="false" visibility="protected"
  30237. deprecated="not deprecated">
  30238. </field>
  30239. <field name="column" type="int"
  30240. transient="false" volatile="false"
  30241. static="false" final="false" visibility="protected"
  30242. deprecated="not deprecated">
  30243. </field>
  30244. <field name="line" type="int"
  30245. transient="false" volatile="false"
  30246. static="false" final="false" visibility="protected"
  30247. deprecated="not deprecated">
  30248. </field>
  30249. <field name="prevCharIsCR" type="boolean"
  30250. transient="false" volatile="false"
  30251. static="false" final="false" visibility="protected"
  30252. deprecated="not deprecated">
  30253. </field>
  30254. <field name="prevCharIsLF" type="boolean"
  30255. transient="false" volatile="false"
  30256. static="false" final="false" visibility="protected"
  30257. deprecated="not deprecated">
  30258. </field>
  30259. <field name="inputStream" type="java.io.Reader"
  30260. transient="false" volatile="false"
  30261. static="false" final="false" visibility="protected"
  30262. deprecated="not deprecated">
  30263. </field>
  30264. <field name="buffer" type="char[]"
  30265. transient="false" volatile="false"
  30266. static="false" final="false" visibility="protected"
  30267. deprecated="not deprecated">
  30268. </field>
  30269. <field name="maxNextCharInd" type="int"
  30270. transient="false" volatile="false"
  30271. static="false" final="false" visibility="protected"
  30272. deprecated="not deprecated">
  30273. </field>
  30274. <field name="inBuf" type="int"
  30275. transient="false" volatile="false"
  30276. static="false" final="false" visibility="protected"
  30277. deprecated="not deprecated">
  30278. </field>
  30279. <field name="tabSize" type="int"
  30280. transient="false" volatile="false"
  30281. static="false" final="false" visibility="protected"
  30282. deprecated="not deprecated">
  30283. </field>
  30284. <doc>
  30285. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  30286. contain only ASCII characters (without unicode processing).
  30287. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30288. </doc>
  30289. </class>
  30290. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  30291. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  30292. <class name="Token" extends="java.lang.Object"
  30293. abstract="false"
  30294. static="false" final="false" visibility="public"
  30295. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30296. <constructor name="Token"
  30297. static="false" final="false" visibility="public"
  30298. deprecated="not deprecated">
  30299. </constructor>
  30300. <method name="toString" return="java.lang.String"
  30301. abstract="false" native="false" synchronized="false"
  30302. static="false" final="false" visibility="public"
  30303. deprecated="not deprecated">
  30304. <doc>
  30305. <![CDATA[Returns the image.]]>
  30306. </doc>
  30307. </method>
  30308. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  30309. abstract="false" native="false" synchronized="false"
  30310. static="true" final="true" visibility="public"
  30311. deprecated="not deprecated">
  30312. <param name="ofKind" type="int"/>
  30313. <doc>
  30314. <![CDATA[Returns a new Token object, by default. However, if you want, you
  30315. can create and return subclass objects based on the value of ofKind.
  30316. Simply add the cases to the switch for all those special cases.
  30317. For example, if you have a subclass of Token called IDToken that
  30318. you want to create if ofKind is ID, simlpy add something like :
  30319. case MyParserConstants.ID : return new IDToken();
  30320. to the following switch statement. Then you can cast matchedToken
  30321. variable to the appropriate type and use it in your lexical actions.]]>
  30322. </doc>
  30323. </method>
  30324. <field name="kind" type="int"
  30325. transient="false" volatile="false"
  30326. static="false" final="false" visibility="public"
  30327. deprecated="not deprecated">
  30328. <doc>
  30329. <![CDATA[An integer that describes the kind of this token. This numbering
  30330. system is determined by JavaCCParser, and a table of these numbers is
  30331. stored in the file ...Constants.java.]]>
  30332. </doc>
  30333. </field>
  30334. <field name="beginLine" type="int"
  30335. transient="false" volatile="false"
  30336. static="false" final="false" visibility="public"
  30337. deprecated="not deprecated">
  30338. <doc>
  30339. <![CDATA[beginLine and beginColumn describe the position of the first character
  30340. of this token; endLine and endColumn describe the position of the
  30341. last character of this token.]]>
  30342. </doc>
  30343. </field>
  30344. <field name="beginColumn" type="int"
  30345. transient="false" volatile="false"
  30346. static="false" final="false" visibility="public"
  30347. deprecated="not deprecated">
  30348. <doc>
  30349. <![CDATA[beginLine and beginColumn describe the position of the first character
  30350. of this token; endLine and endColumn describe the position of the
  30351. last character of this token.]]>
  30352. </doc>
  30353. </field>
  30354. <field name="endLine" type="int"
  30355. transient="false" volatile="false"
  30356. static="false" final="false" visibility="public"
  30357. deprecated="not deprecated">
  30358. <doc>
  30359. <![CDATA[beginLine and beginColumn describe the position of the first character
  30360. of this token; endLine and endColumn describe the position of the
  30361. last character of this token.]]>
  30362. </doc>
  30363. </field>
  30364. <field name="endColumn" type="int"
  30365. transient="false" volatile="false"
  30366. static="false" final="false" visibility="public"
  30367. deprecated="not deprecated">
  30368. <doc>
  30369. <![CDATA[beginLine and beginColumn describe the position of the first character
  30370. of this token; endLine and endColumn describe the position of the
  30371. last character of this token.]]>
  30372. </doc>
  30373. </field>
  30374. <field name="image" type="java.lang.String"
  30375. transient="false" volatile="false"
  30376. static="false" final="false" visibility="public"
  30377. deprecated="not deprecated">
  30378. <doc>
  30379. <![CDATA[The string image of the token.]]>
  30380. </doc>
  30381. </field>
  30382. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  30383. transient="false" volatile="false"
  30384. static="false" final="false" visibility="public"
  30385. deprecated="not deprecated">
  30386. <doc>
  30387. <![CDATA[A reference to the next regular (non-special) token from the input
  30388. stream. If this is the last token from the input stream, or if the
  30389. token manager has not read tokens beyond this one, this field is
  30390. set to null. This is true only if this token is also a regular
  30391. token. Otherwise, see below for a description of the contents of
  30392. this field.]]>
  30393. </doc>
  30394. </field>
  30395. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  30396. transient="false" volatile="false"
  30397. static="false" final="false" visibility="public"
  30398. deprecated="not deprecated">
  30399. <doc>
  30400. <![CDATA[This field is used to access special tokens that occur prior to this
  30401. token, but after the immediately preceding regular (non-special) token.
  30402. If there are no such special tokens, this field is set to null.
  30403. When there are more than one such special token, this field refers
  30404. to the last of these special tokens, which in turn refers to the next
  30405. previous special token through its specialToken field, and so on
  30406. until the first special token (whose specialToken field is null).
  30407. The next fields of special tokens refer to other special tokens that
  30408. immediately follow it (without an intervening regular token). If there
  30409. is no such token, this field is null.]]>
  30410. </doc>
  30411. </field>
  30412. <doc>
  30413. <![CDATA[Describes the input token stream.
  30414. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30415. </doc>
  30416. </class>
  30417. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  30418. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  30419. <class name="TokenMgrError" extends="java.lang.Error"
  30420. abstract="false"
  30421. static="false" final="false" visibility="public"
  30422. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30423. <constructor name="TokenMgrError"
  30424. static="false" final="false" visibility="public"
  30425. deprecated="not deprecated">
  30426. </constructor>
  30427. <constructor name="TokenMgrError" type="java.lang.String, int"
  30428. static="false" final="false" visibility="public"
  30429. deprecated="not deprecated">
  30430. </constructor>
  30431. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  30432. static="false" final="false" visibility="public"
  30433. deprecated="not deprecated">
  30434. </constructor>
  30435. <method name="addEscapes" return="java.lang.String"
  30436. abstract="false" native="false" synchronized="false"
  30437. static="true" final="true" visibility="protected"
  30438. deprecated="not deprecated">
  30439. <param name="str" type="java.lang.String"/>
  30440. <doc>
  30441. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  30442. equivalents in the given string]]>
  30443. </doc>
  30444. </method>
  30445. <method name="LexicalError" return="java.lang.String"
  30446. abstract="false" native="false" synchronized="false"
  30447. static="true" final="false" visibility="protected"
  30448. deprecated="not deprecated">
  30449. <param name="EOFSeen" type="boolean"/>
  30450. <param name="lexState" type="int"/>
  30451. <param name="errorLine" type="int"/>
  30452. <param name="errorColumn" type="int"/>
  30453. <param name="errorAfter" type="java.lang.String"/>
  30454. <param name="curChar" type="char"/>
  30455. <doc>
  30456. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  30457. token manager to indicate a lexical error.
  30458. Parameters :
  30459. EOFSeen : indicates if EOF caused the lexicl error
  30460. curLexState : lexical state in which this error occured
  30461. errorLine : line number when the error occured
  30462. errorColumn : column number when the error occured
  30463. errorAfter : prefix that was seen before this error occured
  30464. curchar : the offending character
  30465. Note: You can customize the lexical error message by modifying this method.]]>
  30466. </doc>
  30467. </method>
  30468. <method name="getMessage" return="java.lang.String"
  30469. abstract="false" native="false" synchronized="false"
  30470. static="false" final="false" visibility="public"
  30471. deprecated="not deprecated">
  30472. <doc>
  30473. <![CDATA[You can also modify the body of this method to customize your error messages.
  30474. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  30475. of end-users concern, so you can return something like :
  30476. "Internal Error : Please file a bug report .... "
  30477. from this method for such cases in the release version of your parser.]]>
  30478. </doc>
  30479. </method>
  30480. <doc>
  30481. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30482. </doc>
  30483. </class>
  30484. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  30485. <doc>
  30486. <![CDATA[<p>
  30487. (DEPRECATED) This package contains code generated by JavaCC from the
  30488. Hadoop record syntax file rcc.jj. For details about the
  30489. record file syntax please @see org.apache.hadoop.record.
  30490. </p>
  30491. <p>
  30492. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  30493. </p>]]>
  30494. </doc>
  30495. </package>
  30496. <package name="org.apache.hadoop.record.meta">
  30497. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  30498. <class name="FieldTypeInfo" extends="java.lang.Object"
  30499. abstract="false"
  30500. static="false" final="false" visibility="public"
  30501. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30502. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30503. abstract="false" native="false" synchronized="false"
  30504. static="false" final="false" visibility="public"
  30505. deprecated="not deprecated">
  30506. <doc>
  30507. <![CDATA[get the field's TypeID object]]>
  30508. </doc>
  30509. </method>
  30510. <method name="getFieldID" return="java.lang.String"
  30511. abstract="false" native="false" synchronized="false"
  30512. static="false" final="false" visibility="public"
  30513. deprecated="not deprecated">
  30514. <doc>
  30515. <![CDATA[get the field's id (name)]]>
  30516. </doc>
  30517. </method>
  30518. <method name="equals" return="boolean"
  30519. abstract="false" native="false" synchronized="false"
  30520. static="false" final="false" visibility="public"
  30521. deprecated="not deprecated">
  30522. <param name="o" type="java.lang.Object"/>
  30523. <doc>
  30524. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  30525. </doc>
  30526. </method>
  30527. <method name="hashCode" return="int"
  30528. abstract="false" native="false" synchronized="false"
  30529. static="false" final="false" visibility="public"
  30530. deprecated="not deprecated">
  30531. <doc>
  30532. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  30533. be used as a hashmap key]]>
  30534. </doc>
  30535. </method>
  30536. <method name="equals" return="boolean"
  30537. abstract="false" native="false" synchronized="false"
  30538. static="false" final="false" visibility="public"
  30539. deprecated="not deprecated">
  30540. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  30541. </method>
  30542. <doc>
  30543. <![CDATA[Represents a type information for a field, which is made up of its
  30544. ID (name) and its type (a TypeID object).
  30545. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30546. </doc>
  30547. </class>
  30548. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  30549. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  30550. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  30551. abstract="false"
  30552. static="false" final="false" visibility="public"
  30553. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30554. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  30555. static="false" final="false" visibility="public"
  30556. deprecated="not deprecated">
  30557. </constructor>
  30558. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30559. abstract="false" native="false" synchronized="false"
  30560. static="false" final="false" visibility="public"
  30561. deprecated="not deprecated">
  30562. <doc>
  30563. <![CDATA[get the TypeID of the map's key element]]>
  30564. </doc>
  30565. </method>
  30566. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30567. abstract="false" native="false" synchronized="false"
  30568. static="false" final="false" visibility="public"
  30569. deprecated="not deprecated">
  30570. <doc>
  30571. <![CDATA[get the TypeID of the map's value element]]>
  30572. </doc>
  30573. </method>
  30574. <method name="equals" return="boolean"
  30575. abstract="false" native="false" synchronized="false"
  30576. static="false" final="false" visibility="public"
  30577. deprecated="not deprecated">
  30578. <param name="o" type="java.lang.Object"/>
  30579. <doc>
  30580. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  30581. same type]]>
  30582. </doc>
  30583. </method>
  30584. <method name="hashCode" return="int"
  30585. abstract="false" native="false" synchronized="false"
  30586. static="false" final="false" visibility="public"
  30587. deprecated="not deprecated">
  30588. <doc>
  30589. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  30590. be used as a hashmap key]]>
  30591. </doc>
  30592. </method>
  30593. <doc>
  30594. <![CDATA[Represents typeID for a Map
  30595. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30596. </doc>
  30597. </class>
  30598. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  30599. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  30600. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  30601. abstract="false"
  30602. static="false" final="false" visibility="public"
  30603. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30604. <constructor name="RecordTypeInfo"
  30605. static="false" final="false" visibility="public"
  30606. deprecated="not deprecated">
  30607. <doc>
  30608. <![CDATA[Create an empty RecordTypeInfo object.]]>
  30609. </doc>
  30610. </constructor>
  30611. <constructor name="RecordTypeInfo" type="java.lang.String"
  30612. static="false" final="false" visibility="public"
  30613. deprecated="not deprecated">
  30614. <doc>
  30615. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  30616. @param name Name of the record]]>
  30617. </doc>
  30618. </constructor>
  30619. <method name="getName" return="java.lang.String"
  30620. abstract="false" native="false" synchronized="false"
  30621. static="false" final="false" visibility="public"
  30622. deprecated="not deprecated">
  30623. <doc>
  30624. <![CDATA[return the name of the record]]>
  30625. </doc>
  30626. </method>
  30627. <method name="setName"
  30628. abstract="false" native="false" synchronized="false"
  30629. static="false" final="false" visibility="public"
  30630. deprecated="not deprecated">
  30631. <param name="name" type="java.lang.String"/>
  30632. <doc>
  30633. <![CDATA[set the name of the record]]>
  30634. </doc>
  30635. </method>
  30636. <method name="addField"
  30637. abstract="false" native="false" synchronized="false"
  30638. static="false" final="false" visibility="public"
  30639. deprecated="not deprecated">
  30640. <param name="fieldName" type="java.lang.String"/>
  30641. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  30642. <doc>
  30643. <![CDATA[Add a field.
  30644. @param fieldName Name of the field
  30645. @param tid Type ID of the field]]>
  30646. </doc>
  30647. </method>
  30648. <method name="getFieldTypeInfos" return="java.util.Collection"
  30649. abstract="false" native="false" synchronized="false"
  30650. static="false" final="false" visibility="public"
  30651. deprecated="not deprecated">
  30652. <doc>
  30653. <![CDATA[Return a collection of field type infos]]>
  30654. </doc>
  30655. </method>
  30656. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  30657. abstract="false" native="false" synchronized="false"
  30658. static="false" final="false" visibility="public"
  30659. deprecated="not deprecated">
  30660. <param name="name" type="java.lang.String"/>
  30661. <doc>
  30662. <![CDATA[Return the type info of a nested record. We only consider nesting
  30663. to one level.
  30664. @param name Name of the nested record]]>
  30665. </doc>
  30666. </method>
  30667. <method name="serialize"
  30668. abstract="false" native="false" synchronized="false"
  30669. static="false" final="false" visibility="public"
  30670. deprecated="not deprecated">
  30671. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30672. <param name="tag" type="java.lang.String"/>
  30673. <exception name="IOException" type="java.io.IOException"/>
  30674. <doc>
  30675. <![CDATA[Serialize the type information for a record]]>
  30676. </doc>
  30677. </method>
  30678. <method name="deserialize"
  30679. abstract="false" native="false" synchronized="false"
  30680. static="false" final="false" visibility="public"
  30681. deprecated="not deprecated">
  30682. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30683. <param name="tag" type="java.lang.String"/>
  30684. <exception name="IOException" type="java.io.IOException"/>
  30685. <doc>
  30686. <![CDATA[Deserialize the type information for a record]]>
  30687. </doc>
  30688. </method>
  30689. <method name="compareTo" return="int"
  30690. abstract="false" native="false" synchronized="false"
  30691. static="false" final="false" visibility="public"
  30692. deprecated="not deprecated">
  30693. <param name="peer_" type="java.lang.Object"/>
  30694. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  30695. <doc>
  30696. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  30697. for anything besides de/serializing.
  30698. So we always throw an exception.
  30699. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  30700. </doc>
  30701. </method>
  30702. <doc>
  30703. <![CDATA[A record's Type Information object which can read/write itself.
  30704. Type information for a record comprises metadata about the record,
  30705. as well as a collection of type information for each field in the record.
  30706. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30707. </doc>
  30708. </class>
  30709. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  30710. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  30711. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  30712. abstract="false"
  30713. static="false" final="false" visibility="public"
  30714. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30715. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  30716. static="false" final="false" visibility="public"
  30717. deprecated="not deprecated">
  30718. <doc>
  30719. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  30720. </doc>
  30721. </constructor>
  30722. <method name="getFieldTypeInfos" return="java.util.Collection"
  30723. abstract="false" native="false" synchronized="false"
  30724. static="false" final="false" visibility="public"
  30725. deprecated="not deprecated">
  30726. </method>
  30727. <method name="equals" return="boolean"
  30728. abstract="false" native="false" synchronized="false"
  30729. static="false" final="false" visibility="public"
  30730. deprecated="not deprecated">
  30731. <param name="o" type="java.lang.Object"/>
  30732. </method>
  30733. <method name="hashCode" return="int"
  30734. abstract="false" native="false" synchronized="false"
  30735. static="false" final="false" visibility="public"
  30736. deprecated="not deprecated">
  30737. </method>
  30738. <doc>
  30739. <![CDATA[Represents typeID for a struct
  30740. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30741. </doc>
  30742. </class>
  30743. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  30744. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  30745. <class name="TypeID" extends="java.lang.Object"
  30746. abstract="false"
  30747. static="false" final="false" visibility="public"
  30748. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30749. <method name="getTypeVal" return="byte"
  30750. abstract="false" native="false" synchronized="false"
  30751. static="false" final="false" visibility="public"
  30752. deprecated="not deprecated">
  30753. <doc>
  30754. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  30755. </doc>
  30756. </method>
  30757. <method name="equals" return="boolean"
  30758. abstract="false" native="false" synchronized="false"
  30759. static="false" final="false" visibility="public"
  30760. deprecated="not deprecated">
  30761. <param name="o" type="java.lang.Object"/>
  30762. <doc>
  30763. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  30764. </doc>
  30765. </method>
  30766. <method name="hashCode" return="int"
  30767. abstract="false" native="false" synchronized="false"
  30768. static="false" final="false" visibility="public"
  30769. deprecated="not deprecated">
  30770. <doc>
  30771. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  30772. be used as a hashmap key]]>
  30773. </doc>
  30774. </method>
  30775. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30776. transient="false" volatile="false"
  30777. static="true" final="true" visibility="public"
  30778. deprecated="not deprecated">
  30779. <doc>
  30780. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  30781. </doc>
  30782. </field>
  30783. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30784. transient="false" volatile="false"
  30785. static="true" final="true" visibility="public"
  30786. deprecated="not deprecated">
  30787. </field>
  30788. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30789. transient="false" volatile="false"
  30790. static="true" final="true" visibility="public"
  30791. deprecated="not deprecated">
  30792. </field>
  30793. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30794. transient="false" volatile="false"
  30795. static="true" final="true" visibility="public"
  30796. deprecated="not deprecated">
  30797. </field>
  30798. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30799. transient="false" volatile="false"
  30800. static="true" final="true" visibility="public"
  30801. deprecated="not deprecated">
  30802. </field>
  30803. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30804. transient="false" volatile="false"
  30805. static="true" final="true" visibility="public"
  30806. deprecated="not deprecated">
  30807. </field>
  30808. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30809. transient="false" volatile="false"
  30810. static="true" final="true" visibility="public"
  30811. deprecated="not deprecated">
  30812. </field>
  30813. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30814. transient="false" volatile="false"
  30815. static="true" final="true" visibility="public"
  30816. deprecated="not deprecated">
  30817. </field>
  30818. <field name="typeVal" type="byte"
  30819. transient="false" volatile="false"
  30820. static="false" final="false" visibility="protected"
  30821. deprecated="not deprecated">
  30822. </field>
  30823. <doc>
  30824. <![CDATA[Represents typeID for basic types.
  30825. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30826. </doc>
  30827. </class>
  30828. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  30829. <!-- start class org.apache.hadoop.record.meta.Utils -->
  30830. <class name="Utils" extends="java.lang.Object"
  30831. abstract="false"
  30832. static="false" final="false" visibility="public"
  30833. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30834. <method name="skip"
  30835. abstract="false" native="false" synchronized="false"
  30836. static="true" final="false" visibility="public"
  30837. deprecated="not deprecated">
  30838. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30839. <param name="tag" type="java.lang.String"/>
  30840. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  30841. <exception name="IOException" type="java.io.IOException"/>
  30842. <doc>
  30843. <![CDATA[read/skip bytes from stream based on a type]]>
  30844. </doc>
  30845. </method>
  30846. <doc>
  30847. <![CDATA[Various utility functions for Hadooop record I/O platform.
  30848. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30849. </doc>
  30850. </class>
  30851. <!-- end class org.apache.hadoop.record.meta.Utils -->
  30852. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  30853. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  30854. abstract="false"
  30855. static="false" final="false" visibility="public"
  30856. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30857. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  30858. static="false" final="false" visibility="public"
  30859. deprecated="not deprecated">
  30860. </constructor>
  30861. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  30862. abstract="false" native="false" synchronized="false"
  30863. static="false" final="false" visibility="public"
  30864. deprecated="not deprecated">
  30865. </method>
  30866. <method name="equals" return="boolean"
  30867. abstract="false" native="false" synchronized="false"
  30868. static="false" final="false" visibility="public"
  30869. deprecated="not deprecated">
  30870. <param name="o" type="java.lang.Object"/>
  30871. <doc>
  30872. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  30873. same type]]>
  30874. </doc>
  30875. </method>
  30876. <method name="hashCode" return="int"
  30877. abstract="false" native="false" synchronized="false"
  30878. static="false" final="false" visibility="public"
  30879. deprecated="not deprecated">
  30880. <doc>
  30881. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  30882. be used as a hashmap key]]>
  30883. </doc>
  30884. </method>
  30885. <doc>
  30886. <![CDATA[Represents typeID for vector.
  30887. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30888. </doc>
  30889. </class>
  30890. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  30891. </package>
  30892. <package name="org.apache.hadoop.security">
  30893. <!-- start class org.apache.hadoop.security.AccessControlException -->
  30894. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  30895. abstract="false"
  30896. static="false" final="false" visibility="public"
  30897. deprecated="not deprecated">
  30898. <constructor name="AccessControlException"
  30899. static="false" final="false" visibility="public"
  30900. deprecated="not deprecated">
  30901. <doc>
  30902. <![CDATA[Default constructor is needed for unwrapping from
  30903. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  30904. </doc>
  30905. </constructor>
  30906. <constructor name="AccessControlException" type="java.lang.String"
  30907. static="false" final="false" visibility="public"
  30908. deprecated="not deprecated">
  30909. <doc>
  30910. <![CDATA[Constructs an {@link AccessControlException}
  30911. with the specified detail message.
  30912. @param s the detail message.]]>
  30913. </doc>
  30914. </constructor>
  30915. <constructor name="AccessControlException" type="java.lang.Throwable"
  30916. static="false" final="false" visibility="public"
  30917. deprecated="not deprecated">
  30918. <doc>
  30919. <![CDATA[Constructs a new exception with the specified cause and a detail
  30920. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  30921. typically contains the class and detail message of <tt>cause</tt>).
  30922. @param cause the cause (which is saved for later retrieval by the
  30923. {@link #getCause()} method). (A <tt>null</tt> value is
  30924. permitted, and indicates that the cause is nonexistent or
  30925. unknown.)]]>
  30926. </doc>
  30927. </constructor>
  30928. <doc>
  30929. <![CDATA[An exception class for access control related issues.]]>
  30930. </doc>
  30931. </class>
  30932. <!-- end class org.apache.hadoop.security.AccessControlException -->
  30933. <!-- start class org.apache.hadoop.security.Credentials -->
  30934. <class name="Credentials" extends="java.lang.Object"
  30935. abstract="false"
  30936. static="false" final="false" visibility="public"
  30937. deprecated="not deprecated">
  30938. <implements name="org.apache.hadoop.io.Writable"/>
  30939. <constructor name="Credentials"
  30940. static="false" final="false" visibility="public"
  30941. deprecated="not deprecated">
  30942. <doc>
  30943. <![CDATA[Create an empty credentials instance]]>
  30944. </doc>
  30945. </constructor>
  30946. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  30947. static="false" final="false" visibility="public"
  30948. deprecated="not deprecated">
  30949. <doc>
  30950. <![CDATA[Create a copy of the given credentials
  30951. @param credentials to copy]]>
  30952. </doc>
  30953. </constructor>
  30954. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  30955. abstract="false" native="false" synchronized="false"
  30956. static="false" final="false" visibility="public"
  30957. deprecated="not deprecated">
  30958. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30959. <doc>
  30960. <![CDATA[Returns the Token object for the alias
  30961. @param alias the alias for the Token
  30962. @return token for this alias]]>
  30963. </doc>
  30964. </method>
  30965. <method name="addToken"
  30966. abstract="false" native="false" synchronized="false"
  30967. static="false" final="false" visibility="public"
  30968. deprecated="not deprecated">
  30969. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30970. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  30971. <doc>
  30972. <![CDATA[Add a token in the storage (in memory)
  30973. @param alias the alias for the key
  30974. @param t the token object]]>
  30975. </doc>
  30976. </method>
  30977. <method name="getAllTokens" return="java.util.Collection"
  30978. abstract="false" native="false" synchronized="false"
  30979. static="false" final="false" visibility="public"
  30980. deprecated="not deprecated">
  30981. <doc>
  30982. <![CDATA[Return all the tokens in the in-memory map]]>
  30983. </doc>
  30984. </method>
  30985. <method name="numberOfTokens" return="int"
  30986. abstract="false" native="false" synchronized="false"
  30987. static="false" final="false" visibility="public"
  30988. deprecated="not deprecated">
  30989. <doc>
  30990. <![CDATA[@return number of Tokens in the in-memory map]]>
  30991. </doc>
  30992. </method>
  30993. <method name="getSecretKey" return="byte[]"
  30994. abstract="false" native="false" synchronized="false"
  30995. static="false" final="false" visibility="public"
  30996. deprecated="not deprecated">
  30997. <param name="alias" type="org.apache.hadoop.io.Text"/>
  30998. <doc>
  30999. <![CDATA[Returns the key bytes for the alias
  31000. @param alias the alias for the key
  31001. @return key for this alias]]>
  31002. </doc>
  31003. </method>
  31004. <method name="numberOfSecretKeys" return="int"
  31005. abstract="false" native="false" synchronized="false"
  31006. static="false" final="false" visibility="public"
  31007. deprecated="not deprecated">
  31008. <doc>
  31009. <![CDATA[@return number of keys in the in-memory map]]>
  31010. </doc>
  31011. </method>
  31012. <method name="addSecretKey"
  31013. abstract="false" native="false" synchronized="false"
  31014. static="false" final="false" visibility="public"
  31015. deprecated="not deprecated">
  31016. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31017. <param name="key" type="byte[]"/>
  31018. <doc>
  31019. <![CDATA[Set the key for an alias
  31020. @param alias the alias for the key
  31021. @param key the key bytes]]>
  31022. </doc>
  31023. </method>
  31024. <method name="removeSecretKey"
  31025. abstract="false" native="false" synchronized="false"
  31026. static="false" final="false" visibility="public"
  31027. deprecated="not deprecated">
  31028. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31029. <doc>
  31030. <![CDATA[Remove the key for a given alias.
  31031. @param alias the alias for the key]]>
  31032. </doc>
  31033. </method>
  31034. <method name="getAllSecretKeys" return="java.util.List"
  31035. abstract="false" native="false" synchronized="false"
  31036. static="false" final="false" visibility="public"
  31037. deprecated="not deprecated">
  31038. <doc>
  31039. <![CDATA[Return all the secret key entries in the in-memory map]]>
  31040. </doc>
  31041. </method>
  31042. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  31043. abstract="false" native="false" synchronized="false"
  31044. static="true" final="false" visibility="public"
  31045. deprecated="not deprecated">
  31046. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  31047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31048. <exception name="IOException" type="java.io.IOException"/>
  31049. <doc>
  31050. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  31051. therein in the passed UGI
  31052. @param filename
  31053. @param conf
  31054. @throws IOException]]>
  31055. </doc>
  31056. </method>
  31057. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  31058. abstract="false" native="false" synchronized="false"
  31059. static="true" final="false" visibility="public"
  31060. deprecated="not deprecated">
  31061. <param name="filename" type="java.io.File"/>
  31062. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31063. <exception name="IOException" type="java.io.IOException"/>
  31064. <doc>
  31065. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  31066. therein in the passed UGI
  31067. @param filename
  31068. @param conf
  31069. @throws IOException]]>
  31070. </doc>
  31071. </method>
  31072. <method name="readTokenStorageStream"
  31073. abstract="false" native="false" synchronized="false"
  31074. static="false" final="false" visibility="public"
  31075. deprecated="not deprecated">
  31076. <param name="in" type="java.io.DataInputStream"/>
  31077. <exception name="IOException" type="java.io.IOException"/>
  31078. <doc>
  31079. <![CDATA[Convenience method for reading a token storage file directly from a
  31080. datainputstream]]>
  31081. </doc>
  31082. </method>
  31083. <method name="writeTokenStorageToStream"
  31084. abstract="false" native="false" synchronized="false"
  31085. static="false" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <param name="os" type="java.io.DataOutputStream"/>
  31088. <exception name="IOException" type="java.io.IOException"/>
  31089. </method>
  31090. <method name="writeTokenStorageFile"
  31091. abstract="false" native="false" synchronized="false"
  31092. static="false" final="false" visibility="public"
  31093. deprecated="not deprecated">
  31094. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  31095. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31096. <exception name="IOException" type="java.io.IOException"/>
  31097. </method>
  31098. <method name="write"
  31099. abstract="false" native="false" synchronized="false"
  31100. static="false" final="false" visibility="public"
  31101. deprecated="not deprecated">
  31102. <param name="out" type="java.io.DataOutput"/>
  31103. <exception name="IOException" type="java.io.IOException"/>
  31104. <doc>
  31105. <![CDATA[Stores all the keys to DataOutput
  31106. @param out
  31107. @throws IOException]]>
  31108. </doc>
  31109. </method>
  31110. <method name="readFields"
  31111. abstract="false" native="false" synchronized="false"
  31112. static="false" final="false" visibility="public"
  31113. deprecated="not deprecated">
  31114. <param name="in" type="java.io.DataInput"/>
  31115. <exception name="IOException" type="java.io.IOException"/>
  31116. <doc>
  31117. <![CDATA[Loads all the keys
  31118. @param in
  31119. @throws IOException]]>
  31120. </doc>
  31121. </method>
  31122. <method name="addAll"
  31123. abstract="false" native="false" synchronized="false"
  31124. static="false" final="false" visibility="public"
  31125. deprecated="not deprecated">
  31126. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  31127. <doc>
  31128. <![CDATA[Copy all of the credentials from one credential object into another.
  31129. Existing secrets and tokens are overwritten.
  31130. @param other the credentials to copy]]>
  31131. </doc>
  31132. </method>
  31133. <method name="mergeAll"
  31134. abstract="false" native="false" synchronized="false"
  31135. static="false" final="false" visibility="public"
  31136. deprecated="not deprecated">
  31137. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  31138. <doc>
  31139. <![CDATA[Copy all of the credentials from one credential object into another.
  31140. Existing secrets and tokens are not overwritten.
  31141. @param other the credentials to copy]]>
  31142. </doc>
  31143. </method>
  31144. <doc>
  31145. <![CDATA[A class that provides the facilities of reading and writing
  31146. secret keys and Tokens.]]>
  31147. </doc>
  31148. </class>
  31149. <!-- end class org.apache.hadoop.security.Credentials -->
  31150. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  31151. <interface name="GroupMappingServiceProvider" abstract="true"
  31152. static="false" final="false" visibility="public"
  31153. deprecated="not deprecated">
  31154. <method name="getGroups" return="java.util.List"
  31155. abstract="false" native="false" synchronized="false"
  31156. static="false" final="false" visibility="public"
  31157. deprecated="not deprecated">
  31158. <param name="user" type="java.lang.String"/>
  31159. <exception name="IOException" type="java.io.IOException"/>
  31160. <doc>
  31161. <![CDATA[Get all various group memberships of a given user.
  31162. Returns EMPTY list in case of non-existing user
  31163. @param user User's name
  31164. @return group memberships of user
  31165. @throws IOException]]>
  31166. </doc>
  31167. </method>
  31168. <method name="cacheGroupsRefresh"
  31169. abstract="false" native="false" synchronized="false"
  31170. static="false" final="false" visibility="public"
  31171. deprecated="not deprecated">
  31172. <exception name="IOException" type="java.io.IOException"/>
  31173. <doc>
  31174. <![CDATA[Refresh the cache of groups and user mapping
  31175. @throws IOException]]>
  31176. </doc>
  31177. </method>
  31178. <method name="cacheGroupsAdd"
  31179. abstract="false" native="false" synchronized="false"
  31180. static="false" final="false" visibility="public"
  31181. deprecated="not deprecated">
  31182. <param name="groups" type="java.util.List"/>
  31183. <exception name="IOException" type="java.io.IOException"/>
  31184. <doc>
  31185. <![CDATA[Caches the group user information
  31186. @param groups list of groups to add to cache
  31187. @throws IOException]]>
  31188. </doc>
  31189. </method>
  31190. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  31191. transient="false" volatile="false"
  31192. static="true" final="true" visibility="public"
  31193. deprecated="not deprecated">
  31194. </field>
  31195. <doc>
  31196. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  31197. used by {@link Groups}.]]>
  31198. </doc>
  31199. </interface>
  31200. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  31201. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  31202. <interface name="IdMappingServiceProvider" abstract="true"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. <method name="getUid" return="int"
  31206. abstract="false" native="false" synchronized="false"
  31207. static="false" final="false" visibility="public"
  31208. deprecated="not deprecated">
  31209. <param name="user" type="java.lang.String"/>
  31210. <exception name="IOException" type="java.io.IOException"/>
  31211. </method>
  31212. <method name="getGid" return="int"
  31213. abstract="false" native="false" synchronized="false"
  31214. static="false" final="false" visibility="public"
  31215. deprecated="not deprecated">
  31216. <param name="group" type="java.lang.String"/>
  31217. <exception name="IOException" type="java.io.IOException"/>
  31218. </method>
  31219. <method name="getUserName" return="java.lang.String"
  31220. abstract="false" native="false" synchronized="false"
  31221. static="false" final="false" visibility="public"
  31222. deprecated="not deprecated">
  31223. <param name="uid" type="int"/>
  31224. <param name="unknown" type="java.lang.String"/>
  31225. </method>
  31226. <method name="getGroupName" return="java.lang.String"
  31227. abstract="false" native="false" synchronized="false"
  31228. static="false" final="false" visibility="public"
  31229. deprecated="not deprecated">
  31230. <param name="gid" type="int"/>
  31231. <param name="unknown" type="java.lang.String"/>
  31232. </method>
  31233. <method name="getUidAllowingUnknown" return="int"
  31234. abstract="false" native="false" synchronized="false"
  31235. static="false" final="false" visibility="public"
  31236. deprecated="not deprecated">
  31237. <param name="user" type="java.lang.String"/>
  31238. </method>
  31239. <method name="getGidAllowingUnknown" return="int"
  31240. abstract="false" native="false" synchronized="false"
  31241. static="false" final="false" visibility="public"
  31242. deprecated="not deprecated">
  31243. <param name="group" type="java.lang.String"/>
  31244. </method>
  31245. <doc>
  31246. <![CDATA[An interface for the implementation of <userId, userName> mapping
  31247. and <groupId, groupName> mapping]]>
  31248. </doc>
  31249. </interface>
  31250. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  31251. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  31252. <class name="SecurityUtil" extends="java.lang.Object"
  31253. abstract="false"
  31254. static="false" final="true" visibility="public"
  31255. deprecated="not deprecated">
  31256. <method name="isOriginalTGT" return="boolean"
  31257. abstract="false" native="false" synchronized="false"
  31258. static="true" final="false" visibility="protected"
  31259. deprecated="not deprecated">
  31260. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  31261. <doc>
  31262. <![CDATA[Check whether the server principal is the TGS's principal
  31263. @param ticket the original TGT (the ticket that is obtained when a
  31264. kinit is done)
  31265. @return true or false]]>
  31266. </doc>
  31267. </method>
  31268. <method name="getServerPrincipal" return="java.lang.String"
  31269. abstract="false" native="false" synchronized="false"
  31270. static="true" final="false" visibility="public"
  31271. deprecated="not deprecated">
  31272. <param name="principalConfig" type="java.lang.String"/>
  31273. <param name="hostname" type="java.lang.String"/>
  31274. <exception name="IOException" type="java.io.IOException"/>
  31275. <doc>
  31276. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  31277. names. It replaces hostname pattern with hostname, which should be
  31278. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  31279. dynamically looked-up fqdn of the current host instead.
  31280. @param principalConfig
  31281. the Kerberos principal name conf value to convert
  31282. @param hostname
  31283. the fully-qualified domain name used for substitution
  31284. @return converted Kerberos principal name
  31285. @throws IOException if the client address cannot be determined]]>
  31286. </doc>
  31287. </method>
  31288. <method name="getServerPrincipal" return="java.lang.String"
  31289. abstract="false" native="false" synchronized="false"
  31290. static="true" final="false" visibility="public"
  31291. deprecated="not deprecated">
  31292. <param name="principalConfig" type="java.lang.String"/>
  31293. <param name="addr" type="java.net.InetAddress"/>
  31294. <exception name="IOException" type="java.io.IOException"/>
  31295. <doc>
  31296. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  31297. This method is similar to {@link #getServerPrincipal(String, String)},
  31298. except 1) the reverse DNS lookup from addr to hostname is done only when
  31299. necessary, 2) param addr can't be null (no default behavior of using local
  31300. hostname when addr is null).
  31301. @param principalConfig
  31302. Kerberos principal name pattern to convert
  31303. @param addr
  31304. InetAddress of the host used for substitution
  31305. @return converted Kerberos principal name
  31306. @throws IOException if the client address cannot be determined]]>
  31307. </doc>
  31308. </method>
  31309. <method name="login"
  31310. abstract="false" native="false" synchronized="false"
  31311. static="true" final="false" visibility="public"
  31312. deprecated="not deprecated">
  31313. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31314. <param name="keytabFileKey" type="java.lang.String"/>
  31315. <param name="userNameKey" type="java.lang.String"/>
  31316. <exception name="IOException" type="java.io.IOException"/>
  31317. <doc>
  31318. <![CDATA[Login as a principal specified in config. Substitute $host in
  31319. user's Kerberos principal name with a dynamically looked-up fully-qualified
  31320. domain name of the current host.
  31321. @param conf
  31322. conf to use
  31323. @param keytabFileKey
  31324. the key to look for keytab file in conf
  31325. @param userNameKey
  31326. the key to look for user's Kerberos principal name in conf
  31327. @throws IOException if login fails]]>
  31328. </doc>
  31329. </method>
  31330. <method name="login"
  31331. abstract="false" native="false" synchronized="false"
  31332. static="true" final="false" visibility="public"
  31333. deprecated="not deprecated">
  31334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31335. <param name="keytabFileKey" type="java.lang.String"/>
  31336. <param name="userNameKey" type="java.lang.String"/>
  31337. <param name="hostname" type="java.lang.String"/>
  31338. <exception name="IOException" type="java.io.IOException"/>
  31339. <doc>
  31340. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  31341. name with hostname. If non-secure mode - return. If no keytab available -
  31342. bail out with an exception
  31343. @param conf
  31344. conf to use
  31345. @param keytabFileKey
  31346. the key to look for keytab file in conf
  31347. @param userNameKey
  31348. the key to look for user's Kerberos principal name in conf
  31349. @param hostname
  31350. hostname to use for substitution
  31351. @throws IOException if the config doesn't specify a keytab]]>
  31352. </doc>
  31353. </method>
  31354. <method name="buildDTServiceName" return="java.lang.String"
  31355. abstract="false" native="false" synchronized="false"
  31356. static="true" final="false" visibility="public"
  31357. deprecated="not deprecated">
  31358. <param name="uri" type="java.net.URI"/>
  31359. <param name="defPort" type="int"/>
  31360. <doc>
  31361. <![CDATA[create the service name for a Delegation token
  31362. @param uri of the service
  31363. @param defPort is used if the uri lacks a port
  31364. @return the token service, or null if no authority
  31365. @see #buildTokenService(InetSocketAddress)]]>
  31366. </doc>
  31367. </method>
  31368. <method name="getHostFromPrincipal" return="java.lang.String"
  31369. abstract="false" native="false" synchronized="false"
  31370. static="true" final="false" visibility="public"
  31371. deprecated="not deprecated">
  31372. <param name="principalName" type="java.lang.String"/>
  31373. <doc>
  31374. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  31375. @param principalName principal name of format as described above
  31376. @return host name if the the string conforms to the above format, else null]]>
  31377. </doc>
  31378. </method>
  31379. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  31380. abstract="false" native="false" synchronized="false"
  31381. static="true" final="false" visibility="public"
  31382. deprecated="not deprecated">
  31383. <param name="protocol" type="java.lang.Class"/>
  31384. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31385. <doc>
  31386. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  31387. SecurityInfo providers.
  31388. @param protocol the protocol class to get the information for
  31389. @param conf configuration object
  31390. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  31391. </doc>
  31392. </method>
  31393. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  31394. abstract="false" native="false" synchronized="false"
  31395. static="true" final="false" visibility="public"
  31396. deprecated="not deprecated">
  31397. <param name="protocol" type="java.lang.Class"/>
  31398. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31399. <doc>
  31400. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  31401. SecurityInfo providers.
  31402. @param protocol The protocol class to get the information for.
  31403. @param conf Configuration object
  31404. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  31405. </doc>
  31406. </method>
  31407. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  31408. abstract="false" native="false" synchronized="false"
  31409. static="true" final="false" visibility="public"
  31410. deprecated="not deprecated">
  31411. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31412. <doc>
  31413. <![CDATA[Decode the given token's service field into an InetAddress
  31414. @param token from which to obtain the service
  31415. @return InetAddress for the service]]>
  31416. </doc>
  31417. </method>
  31418. <method name="setTokenService"
  31419. abstract="false" native="false" synchronized="false"
  31420. static="true" final="false" visibility="public"
  31421. deprecated="not deprecated">
  31422. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31423. <param name="addr" type="java.net.InetSocketAddress"/>
  31424. <doc>
  31425. <![CDATA[Set the given token's service to the format expected by the RPC client
  31426. @param token a delegation token
  31427. @param addr the socket for the rpc connection]]>
  31428. </doc>
  31429. </method>
  31430. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  31431. abstract="false" native="false" synchronized="false"
  31432. static="true" final="false" visibility="public"
  31433. deprecated="not deprecated">
  31434. <param name="addr" type="java.net.InetSocketAddress"/>
  31435. <doc>
  31436. <![CDATA[Construct the service key for a token
  31437. @param addr InetSocketAddress of remote connection with a token
  31438. @return "ip:port" or "host:port" depending on the value of
  31439. hadoop.security.token.service.use_ip]]>
  31440. </doc>
  31441. </method>
  31442. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  31443. abstract="false" native="false" synchronized="false"
  31444. static="true" final="false" visibility="public"
  31445. deprecated="not deprecated">
  31446. <param name="uri" type="java.net.URI"/>
  31447. <doc>
  31448. <![CDATA[Construct the service key for a token
  31449. @param uri of remote connection with a token
  31450. @return "ip:port" or "host:port" depending on the value of
  31451. hadoop.security.token.service.use_ip]]>
  31452. </doc>
  31453. </method>
  31454. <method name="doAsLoginUserOrFatal" return="T"
  31455. abstract="false" native="false" synchronized="false"
  31456. static="true" final="false" visibility="public"
  31457. deprecated="not deprecated">
  31458. <param name="action" type="java.security.PrivilegedAction"/>
  31459. <doc>
  31460. <![CDATA[Perform the given action as the daemon's login user. If the login
  31461. user cannot be determined, this will log a FATAL error and exit
  31462. the whole JVM.]]>
  31463. </doc>
  31464. </method>
  31465. <method name="doAsLoginUser" return="T"
  31466. abstract="false" native="false" synchronized="false"
  31467. static="true" final="false" visibility="public"
  31468. deprecated="not deprecated">
  31469. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  31470. <exception name="IOException" type="java.io.IOException"/>
  31471. <doc>
  31472. <![CDATA[Perform the given action as the daemon's login user. If an
  31473. InterruptedException is thrown, it is converted to an IOException.
  31474. @param action the action to perform
  31475. @return the result of the action
  31476. @throws IOException in the event of error]]>
  31477. </doc>
  31478. </method>
  31479. <method name="doAsCurrentUser" return="T"
  31480. abstract="false" native="false" synchronized="false"
  31481. static="true" final="false" visibility="public"
  31482. deprecated="not deprecated">
  31483. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  31484. <exception name="IOException" type="java.io.IOException"/>
  31485. <doc>
  31486. <![CDATA[Perform the given action as the daemon's current user. If an
  31487. InterruptedException is thrown, it is converted to an IOException.
  31488. @param action the action to perform
  31489. @return the result of the action
  31490. @throws IOException in the event of error]]>
  31491. </doc>
  31492. </method>
  31493. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  31494. abstract="false" native="false" synchronized="false"
  31495. static="true" final="false" visibility="public"
  31496. deprecated="not deprecated">
  31497. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31498. </method>
  31499. <method name="setAuthenticationMethod"
  31500. abstract="false" native="false" synchronized="false"
  31501. static="true" final="false" visibility="public"
  31502. deprecated="not deprecated">
  31503. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  31504. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31505. </method>
  31506. <method name="isPrivilegedPort" return="boolean"
  31507. abstract="false" native="false" synchronized="false"
  31508. static="true" final="false" visibility="public"
  31509. deprecated="not deprecated">
  31510. <param name="port" type="int"/>
  31511. </method>
  31512. <field name="LOG" type="org.apache.commons.logging.Log"
  31513. transient="false" volatile="false"
  31514. static="true" final="true" visibility="public"
  31515. deprecated="not deprecated">
  31516. </field>
  31517. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  31518. transient="false" volatile="false"
  31519. static="true" final="true" visibility="public"
  31520. deprecated="not deprecated">
  31521. </field>
  31522. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  31523. transient="false" volatile="false"
  31524. static="true" final="true" visibility="public"
  31525. deprecated="not deprecated">
  31526. </field>
  31527. <doc>
  31528. <![CDATA[Security Utils.]]>
  31529. </doc>
  31530. </class>
  31531. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  31532. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  31533. <class name="UserGroupInformation" extends="java.lang.Object"
  31534. abstract="false"
  31535. static="false" final="false" visibility="public"
  31536. deprecated="not deprecated">
  31537. <method name="setShouldRenewImmediatelyForTests"
  31538. abstract="false" native="false" synchronized="false"
  31539. static="true" final="false" visibility="public"
  31540. deprecated="not deprecated">
  31541. <param name="immediate" type="boolean"/>
  31542. <doc>
  31543. <![CDATA[For the purposes of unit tests, we want to test login
  31544. from keytab and don't want to wait until the renew
  31545. window (controlled by TICKET_RENEW_WINDOW).
  31546. @param immediate true if we should login without waiting for ticket window]]>
  31547. </doc>
  31548. </method>
  31549. <method name="setConfiguration"
  31550. abstract="false" native="false" synchronized="false"
  31551. static="true" final="false" visibility="public"
  31552. deprecated="not deprecated">
  31553. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31554. <doc>
  31555. <![CDATA[Set the static configuration for UGI.
  31556. In particular, set the security authentication mechanism and the
  31557. group look up service.
  31558. @param conf the configuration to use]]>
  31559. </doc>
  31560. </method>
  31561. <method name="isSecurityEnabled" return="boolean"
  31562. abstract="false" native="false" synchronized="false"
  31563. static="true" final="false" visibility="public"
  31564. deprecated="not deprecated">
  31565. <doc>
  31566. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  31567. user identities or is relying on simple authentication
  31568. @return true if UGI is working in a secure environment]]>
  31569. </doc>
  31570. </method>
  31571. <method name="hasKerberosCredentials" return="boolean"
  31572. abstract="false" native="false" synchronized="false"
  31573. static="false" final="false" visibility="public"
  31574. deprecated="not deprecated">
  31575. <doc>
  31576. <![CDATA[checks if logged in using kerberos
  31577. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  31578. </doc>
  31579. </method>
  31580. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  31581. abstract="false" native="false" synchronized="true"
  31582. static="true" final="false" visibility="public"
  31583. deprecated="not deprecated">
  31584. <exception name="IOException" type="java.io.IOException"/>
  31585. <doc>
  31586. <![CDATA[Return the current user, including any doAs in the current stack.
  31587. @return the current user
  31588. @throws IOException if login fails]]>
  31589. </doc>
  31590. </method>
  31591. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  31592. abstract="false" native="false" synchronized="false"
  31593. static="true" final="false" visibility="public"
  31594. deprecated="not deprecated">
  31595. <param name="ticketCachePath" type="java.lang.String"/>
  31596. <param name="user" type="java.lang.String"/>
  31597. <exception name="IOException" type="java.io.IOException"/>
  31598. <doc>
  31599. <![CDATA[Find the most appropriate UserGroupInformation to use
  31600. @param ticketCachePath The Kerberos ticket cache path, or NULL
  31601. if none is specfied
  31602. @param user The user name, or NULL if none is specified.
  31603. @return The most appropriate UserGroupInformation]]>
  31604. </doc>
  31605. </method>
  31606. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  31607. abstract="false" native="false" synchronized="false"
  31608. static="true" final="false" visibility="public"
  31609. deprecated="not deprecated">
  31610. <param name="ticketCache" type="java.lang.String"/>
  31611. <param name="user" type="java.lang.String"/>
  31612. <exception name="IOException" type="java.io.IOException"/>
  31613. <doc>
  31614. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  31615. @param user The principal name to load from the ticket
  31616. cache
  31617. @param ticketCache the path to the ticket cache file
  31618. @throws IOException if the kerberos login fails]]>
  31619. </doc>
  31620. </method>
  31621. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  31622. abstract="false" native="false" synchronized="false"
  31623. static="true" final="false" visibility="public"
  31624. deprecated="not deprecated">
  31625. <param name="subject" type="javax.security.auth.Subject"/>
  31626. <exception name="IOException" type="java.io.IOException"/>
  31627. <doc>
  31628. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  31629. @param subject The KerberosPrincipal to use in UGI
  31630. @throws IOException if the kerberos login fails]]>
  31631. </doc>
  31632. </method>
  31633. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  31634. abstract="false" native="false" synchronized="true"
  31635. static="true" final="false" visibility="public"
  31636. deprecated="not deprecated">
  31637. <exception name="IOException" type="java.io.IOException"/>
  31638. <doc>
  31639. <![CDATA[Get the currently logged in user.
  31640. @return the logged in user
  31641. @throws IOException if login fails]]>
  31642. </doc>
  31643. </method>
  31644. <method name="trimLoginMethod" return="java.lang.String"
  31645. abstract="false" native="false" synchronized="false"
  31646. static="true" final="false" visibility="public"
  31647. deprecated="not deprecated">
  31648. <param name="userName" type="java.lang.String"/>
  31649. <doc>
  31650. <![CDATA[remove the login method that is followed by a space from the username
  31651. e.g. "jack (auth:SIMPLE)" -> "jack"
  31652. @param userName
  31653. @return userName without login method]]>
  31654. </doc>
  31655. </method>
  31656. <method name="loginUserFromSubject"
  31657. abstract="false" native="false" synchronized="true"
  31658. static="true" final="false" visibility="public"
  31659. deprecated="not deprecated">
  31660. <param name="subject" type="javax.security.auth.Subject"/>
  31661. <exception name="IOException" type="java.io.IOException"/>
  31662. <doc>
  31663. <![CDATA[Log in a user using the given subject
  31664. @param subject the subject to use when logging in a user, or null to
  31665. create a new subject.
  31666. @throws IOException if login fails]]>
  31667. </doc>
  31668. </method>
  31669. <method name="isFromKeytab" return="boolean"
  31670. abstract="false" native="false" synchronized="false"
  31671. static="false" final="false" visibility="public"
  31672. deprecated="not deprecated">
  31673. <doc>
  31674. <![CDATA[Is this user logged in from a keytab file?
  31675. @return true if the credentials are from a keytab file.]]>
  31676. </doc>
  31677. </method>
  31678. <method name="loginUserFromKeytab"
  31679. abstract="false" native="false" synchronized="true"
  31680. static="true" final="false" visibility="public"
  31681. deprecated="not deprecated">
  31682. <param name="user" type="java.lang.String"/>
  31683. <param name="path" type="java.lang.String"/>
  31684. <exception name="IOException" type="java.io.IOException"/>
  31685. <doc>
  31686. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  31687. file and logs them in. They become the currently logged-in user.
  31688. @param user the principal name to load from the keytab
  31689. @param path the path to the keytab file
  31690. @throws IOException if the keytab file can't be read]]>
  31691. </doc>
  31692. </method>
  31693. <method name="logoutUserFromKeytab"
  31694. abstract="false" native="false" synchronized="false"
  31695. static="false" final="false" visibility="public"
  31696. deprecated="not deprecated">
  31697. <exception name="IOException" type="java.io.IOException"/>
  31698. <doc>
  31699. <![CDATA[Log the current user out who previously logged in using keytab.
  31700. This method assumes that the user logged in by calling
  31701. {@link #loginUserFromKeytab(String, String)}.
  31702. @throws IOException if a failure occurred in logout, or if the user did
  31703. not log in by invoking loginUserFromKeyTab() before.]]>
  31704. </doc>
  31705. </method>
  31706. <method name="checkTGTAndReloginFromKeytab"
  31707. abstract="false" native="false" synchronized="true"
  31708. static="false" final="false" visibility="public"
  31709. deprecated="not deprecated">
  31710. <exception name="IOException" type="java.io.IOException"/>
  31711. <doc>
  31712. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  31713. @throws IOException]]>
  31714. </doc>
  31715. </method>
  31716. <method name="reloginFromKeytab"
  31717. abstract="false" native="false" synchronized="true"
  31718. static="false" final="false" visibility="public"
  31719. deprecated="not deprecated">
  31720. <exception name="IOException" type="java.io.IOException"/>
  31721. <doc>
  31722. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  31723. file and logs them in. They become the currently logged-in user. This
  31724. method assumes that {@link #loginUserFromKeytab(String, String)} had
  31725. happened already.
  31726. The Subject field of this UserGroupInformation object is updated to have
  31727. the new credentials.
  31728. @throws IOException on a failure]]>
  31729. </doc>
  31730. </method>
  31731. <method name="reloginFromTicketCache"
  31732. abstract="false" native="false" synchronized="true"
  31733. static="false" final="false" visibility="public"
  31734. deprecated="not deprecated">
  31735. <exception name="IOException" type="java.io.IOException"/>
  31736. <doc>
  31737. <![CDATA[Re-Login a user in from the ticket cache. This
  31738. method assumes that login had happened already.
  31739. The Subject field of this UserGroupInformation object is updated to have
  31740. the new credentials.
  31741. @throws IOException on a failure]]>
  31742. </doc>
  31743. </method>
  31744. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  31745. abstract="false" native="false" synchronized="true"
  31746. static="true" final="false" visibility="public"
  31747. deprecated="not deprecated">
  31748. <param name="user" type="java.lang.String"/>
  31749. <param name="path" type="java.lang.String"/>
  31750. <exception name="IOException" type="java.io.IOException"/>
  31751. <doc>
  31752. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  31753. file and login them in. This new user does not affect the currently
  31754. logged-in user.
  31755. @param user the principal name to load from the keytab
  31756. @param path the path to the keytab file
  31757. @throws IOException if the keytab file can't be read]]>
  31758. </doc>
  31759. </method>
  31760. <method name="isLoginKeytabBased" return="boolean"
  31761. abstract="false" native="false" synchronized="true"
  31762. static="true" final="false" visibility="public"
  31763. deprecated="not deprecated">
  31764. <exception name="IOException" type="java.io.IOException"/>
  31765. <doc>
  31766. <![CDATA[Did the login happen via keytab
  31767. @return true or false]]>
  31768. </doc>
  31769. </method>
  31770. <method name="isLoginTicketBased" return="boolean"
  31771. abstract="false" native="false" synchronized="false"
  31772. static="true" final="false" visibility="public"
  31773. deprecated="not deprecated">
  31774. <exception name="IOException" type="java.io.IOException"/>
  31775. <doc>
  31776. <![CDATA[Did the login happen via ticket cache
  31777. @return true or false]]>
  31778. </doc>
  31779. </method>
  31780. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  31781. abstract="false" native="false" synchronized="false"
  31782. static="true" final="false" visibility="public"
  31783. deprecated="not deprecated">
  31784. <param name="user" type="java.lang.String"/>
  31785. <doc>
  31786. <![CDATA[Create a user from a login name. It is intended to be used for remote
  31787. users in RPC, since it won't have any credentials.
  31788. @param user the full user principal name, must not be empty or null
  31789. @return the UserGroupInformation for the remote user.]]>
  31790. </doc>
  31791. </method>
  31792. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  31793. abstract="false" native="false" synchronized="false"
  31794. static="true" final="false" visibility="public"
  31795. deprecated="not deprecated">
  31796. <param name="user" type="java.lang.String"/>
  31797. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  31798. <doc>
  31799. <![CDATA[Create a user from a login name. It is intended to be used for remote
  31800. users in RPC, since it won't have any credentials.
  31801. @param user the full user principal name, must not be empty or null
  31802. @return the UserGroupInformation for the remote user.]]>
  31803. </doc>
  31804. </method>
  31805. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  31806. abstract="false" native="false" synchronized="false"
  31807. static="true" final="false" visibility="public"
  31808. deprecated="not deprecated">
  31809. <param name="user" type="java.lang.String"/>
  31810. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  31811. <doc>
  31812. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  31813. real user.
  31814. @param user
  31815. @param realUser
  31816. @return proxyUser ugi]]>
  31817. </doc>
  31818. </method>
  31819. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  31820. abstract="false" native="false" synchronized="false"
  31821. static="false" final="false" visibility="public"
  31822. deprecated="not deprecated">
  31823. <doc>
  31824. <![CDATA[get RealUser (vs. EffectiveUser)
  31825. @return realUser running over proxy user]]>
  31826. </doc>
  31827. </method>
  31828. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  31829. abstract="false" native="false" synchronized="false"
  31830. static="true" final="false" visibility="public"
  31831. deprecated="not deprecated">
  31832. <param name="user" type="java.lang.String"/>
  31833. <param name="userGroups" type="java.lang.String[]"/>
  31834. <doc>
  31835. <![CDATA[Create a UGI for testing HDFS and MapReduce
  31836. @param user the full user principal name
  31837. @param userGroups the names of the groups that the user belongs to
  31838. @return a fake user for running unit tests]]>
  31839. </doc>
  31840. </method>
  31841. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  31842. abstract="false" native="false" synchronized="false"
  31843. static="true" final="false" visibility="public"
  31844. deprecated="not deprecated">
  31845. <param name="user" type="java.lang.String"/>
  31846. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  31847. <param name="userGroups" type="java.lang.String[]"/>
  31848. <doc>
  31849. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  31850. @param user
  31851. the full user principal name for effective user
  31852. @param realUser
  31853. UGI of the real user
  31854. @param userGroups
  31855. the names of the groups that the user belongs to
  31856. @return a fake user for running unit tests]]>
  31857. </doc>
  31858. </method>
  31859. <method name="getShortUserName" return="java.lang.String"
  31860. abstract="false" native="false" synchronized="false"
  31861. static="false" final="false" visibility="public"
  31862. deprecated="not deprecated">
  31863. <doc>
  31864. <![CDATA[Get the user's login name.
  31865. @return the user's name up to the first '/' or '@'.]]>
  31866. </doc>
  31867. </method>
  31868. <method name="getPrimaryGroupName" return="java.lang.String"
  31869. abstract="false" native="false" synchronized="false"
  31870. static="false" final="false" visibility="public"
  31871. deprecated="not deprecated">
  31872. <exception name="IOException" type="java.io.IOException"/>
  31873. </method>
  31874. <method name="getUserName" return="java.lang.String"
  31875. abstract="false" native="false" synchronized="false"
  31876. static="false" final="false" visibility="public"
  31877. deprecated="not deprecated">
  31878. <doc>
  31879. <![CDATA[Get the user's full principal name.
  31880. @return the user's full principal name.]]>
  31881. </doc>
  31882. </method>
  31883. <method name="addTokenIdentifier" return="boolean"
  31884. abstract="false" native="false" synchronized="true"
  31885. static="false" final="false" visibility="public"
  31886. deprecated="not deprecated">
  31887. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  31888. <doc>
  31889. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  31890. authenticated by the RPC layer as belonging to the user represented by this
  31891. UGI.
  31892. @param tokenId
  31893. tokenIdentifier to be added
  31894. @return true on successful add of new tokenIdentifier]]>
  31895. </doc>
  31896. </method>
  31897. <method name="getTokenIdentifiers" return="java.util.Set"
  31898. abstract="false" native="false" synchronized="true"
  31899. static="false" final="false" visibility="public"
  31900. deprecated="not deprecated">
  31901. <doc>
  31902. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  31903. @return the set of TokenIdentifiers belonging to this UGI]]>
  31904. </doc>
  31905. </method>
  31906. <method name="addToken" return="boolean"
  31907. abstract="false" native="false" synchronized="false"
  31908. static="false" final="false" visibility="public"
  31909. deprecated="not deprecated">
  31910. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31911. <doc>
  31912. <![CDATA[Add a token to this UGI
  31913. @param token Token to be added
  31914. @return true on successful add of new token]]>
  31915. </doc>
  31916. </method>
  31917. <method name="addToken" return="boolean"
  31918. abstract="false" native="false" synchronized="false"
  31919. static="false" final="false" visibility="public"
  31920. deprecated="not deprecated">
  31921. <param name="alias" type="org.apache.hadoop.io.Text"/>
  31922. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  31923. <doc>
  31924. <![CDATA[Add a named token to this UGI
  31925. @param alias Name of the token
  31926. @param token Token to be added
  31927. @return true on successful add of new token]]>
  31928. </doc>
  31929. </method>
  31930. <method name="getTokens" return="java.util.Collection"
  31931. abstract="false" native="false" synchronized="false"
  31932. static="false" final="false" visibility="public"
  31933. deprecated="not deprecated">
  31934. <doc>
  31935. <![CDATA[Obtain the collection of tokens associated with this user.
  31936. @return an unmodifiable collection of tokens associated with user]]>
  31937. </doc>
  31938. </method>
  31939. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  31940. abstract="false" native="false" synchronized="false"
  31941. static="false" final="false" visibility="public"
  31942. deprecated="not deprecated">
  31943. <doc>
  31944. <![CDATA[Obtain the tokens in credentials form associated with this user.
  31945. @return Credentials of tokens associated with this user]]>
  31946. </doc>
  31947. </method>
  31948. <method name="addCredentials"
  31949. abstract="false" native="false" synchronized="false"
  31950. static="false" final="false" visibility="public"
  31951. deprecated="not deprecated">
  31952. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  31953. <doc>
  31954. <![CDATA[Add the given Credentials to this user.
  31955. @param credentials of tokens and secrets]]>
  31956. </doc>
  31957. </method>
  31958. <method name="getGroupNames" return="java.lang.String[]"
  31959. abstract="false" native="false" synchronized="false"
  31960. static="false" final="false" visibility="public"
  31961. deprecated="not deprecated">
  31962. <doc>
  31963. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  31964. expensive alternative when checking for a contained element.
  31965. @return the list of users with the primary group first. If the command
  31966. fails, it returns an empty list.]]>
  31967. </doc>
  31968. </method>
  31969. <method name="getGroups" return="java.util.List"
  31970. abstract="false" native="false" synchronized="false"
  31971. static="false" final="false" visibility="public"
  31972. deprecated="not deprecated">
  31973. <doc>
  31974. <![CDATA[Get the group names for this user.
  31975. @return the list of users with the primary group first. If the command
  31976. fails, it returns an empty list.]]>
  31977. </doc>
  31978. </method>
  31979. <method name="toString" return="java.lang.String"
  31980. abstract="false" native="false" synchronized="false"
  31981. static="false" final="false" visibility="public"
  31982. deprecated="not deprecated">
  31983. <doc>
  31984. <![CDATA[Return the username.]]>
  31985. </doc>
  31986. </method>
  31987. <method name="setAuthenticationMethod"
  31988. abstract="false" native="false" synchronized="true"
  31989. static="false" final="false" visibility="public"
  31990. deprecated="not deprecated">
  31991. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  31992. <doc>
  31993. <![CDATA[Sets the authentication method in the subject
  31994. @param authMethod]]>
  31995. </doc>
  31996. </method>
  31997. <method name="setAuthenticationMethod"
  31998. abstract="false" native="false" synchronized="false"
  31999. static="false" final="false" visibility="public"
  32000. deprecated="not deprecated">
  32001. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  32002. <doc>
  32003. <![CDATA[Sets the authentication method in the subject
  32004. @param authMethod]]>
  32005. </doc>
  32006. </method>
  32007. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32008. abstract="false" native="false" synchronized="true"
  32009. static="false" final="false" visibility="public"
  32010. deprecated="not deprecated">
  32011. <doc>
  32012. <![CDATA[Get the authentication method from the subject
  32013. @return AuthenticationMethod in the subject, null if not present.]]>
  32014. </doc>
  32015. </method>
  32016. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32017. abstract="false" native="false" synchronized="true"
  32018. static="false" final="false" visibility="public"
  32019. deprecated="not deprecated">
  32020. <doc>
  32021. <![CDATA[Get the authentication method from the real user's subject. If there
  32022. is no real user, return the given user's authentication method.
  32023. @return AuthenticationMethod in the subject, null if not present.]]>
  32024. </doc>
  32025. </method>
  32026. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32027. abstract="false" native="false" synchronized="false"
  32028. static="true" final="false" visibility="public"
  32029. deprecated="not deprecated">
  32030. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32031. <doc>
  32032. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  32033. PROXY, returns the authentication method of the real user.
  32034. @param ugi
  32035. @return AuthenticationMethod]]>
  32036. </doc>
  32037. </method>
  32038. <method name="equals" return="boolean"
  32039. abstract="false" native="false" synchronized="false"
  32040. static="false" final="false" visibility="public"
  32041. deprecated="not deprecated">
  32042. <param name="o" type="java.lang.Object"/>
  32043. <doc>
  32044. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  32045. </doc>
  32046. </method>
  32047. <method name="hashCode" return="int"
  32048. abstract="false" native="false" synchronized="false"
  32049. static="false" final="false" visibility="public"
  32050. deprecated="not deprecated">
  32051. <doc>
  32052. <![CDATA[Return the hash of the subject.]]>
  32053. </doc>
  32054. </method>
  32055. <method name="getSubject" return="javax.security.auth.Subject"
  32056. abstract="false" native="false" synchronized="false"
  32057. static="false" final="false" visibility="protected"
  32058. deprecated="not deprecated">
  32059. <doc>
  32060. <![CDATA[Get the underlying subject from this ugi.
  32061. @return the subject that represents this user.]]>
  32062. </doc>
  32063. </method>
  32064. <method name="doAs" return="T"
  32065. abstract="false" native="false" synchronized="false"
  32066. static="false" final="false" visibility="public"
  32067. deprecated="not deprecated">
  32068. <param name="action" type="java.security.PrivilegedAction"/>
  32069. <doc>
  32070. <![CDATA[Run the given action as the user.
  32071. @param <T> the return type of the run method
  32072. @param action the method to execute
  32073. @return the value from the run method]]>
  32074. </doc>
  32075. </method>
  32076. <method name="doAs" return="T"
  32077. abstract="false" native="false" synchronized="false"
  32078. static="false" final="false" visibility="public"
  32079. deprecated="not deprecated">
  32080. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  32081. <exception name="IOException" type="java.io.IOException"/>
  32082. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  32083. <doc>
  32084. <![CDATA[Run the given action as the user, potentially throwing an exception.
  32085. @param <T> the return type of the run method
  32086. @param action the method to execute
  32087. @return the value from the run method
  32088. @throws IOException if the action throws an IOException
  32089. @throws Error if the action throws an Error
  32090. @throws RuntimeException if the action throws a RuntimeException
  32091. @throws InterruptedException if the action throws an InterruptedException
  32092. @throws UndeclaredThrowableException if the action throws something else]]>
  32093. </doc>
  32094. </method>
  32095. <method name="logAllUserInfo"
  32096. abstract="false" native="false" synchronized="false"
  32097. static="true" final="false" visibility="public"
  32098. deprecated="not deprecated">
  32099. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32100. <exception name="IOException" type="java.io.IOException"/>
  32101. </method>
  32102. <method name="main"
  32103. abstract="false" native="false" synchronized="false"
  32104. static="true" final="false" visibility="public"
  32105. deprecated="not deprecated">
  32106. <param name="args" type="java.lang.String[]"/>
  32107. <exception name="Exception" type="java.lang.Exception"/>
  32108. <doc>
  32109. <![CDATA[A test method to print out the current user's UGI.
  32110. @param args if there are two arguments, read the user from the keytab
  32111. and print it out.
  32112. @throws Exception]]>
  32113. </doc>
  32114. </method>
  32115. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  32116. transient="false" volatile="false"
  32117. static="true" final="true" visibility="public"
  32118. deprecated="not deprecated">
  32119. <doc>
  32120. <![CDATA[Environment variable pointing to the token cache file]]>
  32121. </doc>
  32122. </field>
  32123. <doc>
  32124. <![CDATA[User and group information for Hadoop.
  32125. This class wraps around a JAAS Subject and provides methods to determine the
  32126. user's username and groups. It supports both the Windows, Unix and Kerberos
  32127. login modules.]]>
  32128. </doc>
  32129. </class>
  32130. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  32131. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  32132. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  32133. abstract="false"
  32134. static="true" final="true" visibility="public"
  32135. deprecated="not deprecated">
  32136. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  32137. abstract="false" native="false" synchronized="false"
  32138. static="true" final="false" visibility="public"
  32139. deprecated="not deprecated">
  32140. </method>
  32141. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32142. abstract="false" native="false" synchronized="false"
  32143. static="true" final="false" visibility="public"
  32144. deprecated="not deprecated">
  32145. <param name="name" type="java.lang.String"/>
  32146. </method>
  32147. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  32148. abstract="false" native="false" synchronized="false"
  32149. static="false" final="false" visibility="public"
  32150. deprecated="not deprecated">
  32151. </method>
  32152. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  32153. abstract="false" native="false" synchronized="false"
  32154. static="true" final="false" visibility="public"
  32155. deprecated="not deprecated">
  32156. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  32157. </method>
  32158. <doc>
  32159. <![CDATA[existing types of authentications' methods]]>
  32160. </doc>
  32161. </class>
  32162. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  32163. </package>
  32164. <package name="org.apache.hadoop.security.alias">
  32165. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  32166. <class name="CredentialProvider" extends="java.lang.Object"
  32167. abstract="true"
  32168. static="false" final="false" visibility="public"
  32169. deprecated="not deprecated">
  32170. <constructor name="CredentialProvider"
  32171. static="false" final="false" visibility="public"
  32172. deprecated="not deprecated">
  32173. </constructor>
  32174. <method name="isTransient" return="boolean"
  32175. abstract="false" native="false" synchronized="false"
  32176. static="false" final="false" visibility="public"
  32177. deprecated="not deprecated">
  32178. <doc>
  32179. <![CDATA[Indicates whether this provider represents a store
  32180. that is intended for transient use - such as the UserProvider
  32181. is. These providers are generally used to provide job access to
  32182. passwords rather than for long term storage.
  32183. @return true if transient, false otherwise]]>
  32184. </doc>
  32185. </method>
  32186. <method name="flush"
  32187. abstract="true" native="false" synchronized="false"
  32188. static="false" final="false" visibility="public"
  32189. deprecated="not deprecated">
  32190. <exception name="IOException" type="java.io.IOException"/>
  32191. <doc>
  32192. <![CDATA[Ensures that any changes to the credentials are written to persistent
  32193. store.
  32194. @throws IOException]]>
  32195. </doc>
  32196. </method>
  32197. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  32198. abstract="true" native="false" synchronized="false"
  32199. static="false" final="false" visibility="public"
  32200. deprecated="not deprecated">
  32201. <param name="alias" type="java.lang.String"/>
  32202. <exception name="IOException" type="java.io.IOException"/>
  32203. <doc>
  32204. <![CDATA[Get the credential entry for a specific alias.
  32205. @param alias the name of a specific credential
  32206. @return the credentialEntry
  32207. @throws IOException]]>
  32208. </doc>
  32209. </method>
  32210. <method name="getAliases" return="java.util.List"
  32211. abstract="true" native="false" synchronized="false"
  32212. static="false" final="false" visibility="public"
  32213. deprecated="not deprecated">
  32214. <exception name="IOException" type="java.io.IOException"/>
  32215. <doc>
  32216. <![CDATA[Get the aliases for all credentials.
  32217. @return the list of alias names
  32218. @throws IOException]]>
  32219. </doc>
  32220. </method>
  32221. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  32222. abstract="true" native="false" synchronized="false"
  32223. static="false" final="false" visibility="public"
  32224. deprecated="not deprecated">
  32225. <param name="name" type="java.lang.String"/>
  32226. <param name="credential" type="char[]"/>
  32227. <exception name="IOException" type="java.io.IOException"/>
  32228. <doc>
  32229. <![CDATA[Create a new credential. The given alias must not already exist.
  32230. @param name the alias of the credential
  32231. @param credential the credential value for the alias.
  32232. @throws IOException]]>
  32233. </doc>
  32234. </method>
  32235. <method name="deleteCredentialEntry"
  32236. abstract="true" native="false" synchronized="false"
  32237. static="false" final="false" visibility="public"
  32238. deprecated="not deprecated">
  32239. <param name="name" type="java.lang.String"/>
  32240. <exception name="IOException" type="java.io.IOException"/>
  32241. <doc>
  32242. <![CDATA[Delete the given credential.
  32243. @param name the alias of the credential to delete
  32244. @throws IOException]]>
  32245. </doc>
  32246. </method>
  32247. <method name="needsPassword" return="boolean"
  32248. abstract="false" native="false" synchronized="false"
  32249. static="false" final="false" visibility="public"
  32250. deprecated="not deprecated">
  32251. <exception name="IOException" type="java.io.IOException"/>
  32252. <doc>
  32253. <![CDATA[Does this provider require a password? This means that a password is
  32254. required for normal operation, and it has not been found through normal
  32255. means. If true, the password should be provided by the caller using
  32256. setPassword().
  32257. @return Whether or not the provider requires a password
  32258. @throws IOException]]>
  32259. </doc>
  32260. </method>
  32261. <method name="noPasswordWarning" return="java.lang.String"
  32262. abstract="false" native="false" synchronized="false"
  32263. static="false" final="false" visibility="public"
  32264. deprecated="not deprecated">
  32265. <doc>
  32266. <![CDATA[If a password for the provider is needed, but is not provided, this will
  32267. return a warning and instructions for supplying said password to the
  32268. provider.
  32269. @return A warning and instructions for supplying the password]]>
  32270. </doc>
  32271. </method>
  32272. <method name="noPasswordError" return="java.lang.String"
  32273. abstract="false" native="false" synchronized="false"
  32274. static="false" final="false" visibility="public"
  32275. deprecated="not deprecated">
  32276. <doc>
  32277. <![CDATA[If a password for the provider is needed, but is not provided, this will
  32278. return an error message and instructions for supplying said password to
  32279. the provider.
  32280. @return An error message and instructions for supplying the password]]>
  32281. </doc>
  32282. </method>
  32283. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  32284. transient="false" volatile="false"
  32285. static="true" final="true" visibility="public"
  32286. deprecated="not deprecated">
  32287. </field>
  32288. <doc>
  32289. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  32290. abstraction to separate credential storage from users of them. It
  32291. is intended to support getting or storing passwords in a variety of ways,
  32292. including third party bindings.]]>
  32293. </doc>
  32294. </class>
  32295. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  32296. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  32297. <class name="CredentialProviderFactory" extends="java.lang.Object"
  32298. abstract="true"
  32299. static="false" final="false" visibility="public"
  32300. deprecated="not deprecated">
  32301. <constructor name="CredentialProviderFactory"
  32302. static="false" final="false" visibility="public"
  32303. deprecated="not deprecated">
  32304. </constructor>
  32305. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  32306. abstract="true" native="false" synchronized="false"
  32307. static="false" final="false" visibility="public"
  32308. deprecated="not deprecated">
  32309. <param name="providerName" type="java.net.URI"/>
  32310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32311. <exception name="IOException" type="java.io.IOException"/>
  32312. </method>
  32313. <method name="getProviders" return="java.util.List"
  32314. abstract="false" native="false" synchronized="false"
  32315. static="true" final="false" visibility="public"
  32316. deprecated="not deprecated">
  32317. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32318. <exception name="IOException" type="java.io.IOException"/>
  32319. </method>
  32320. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  32321. transient="false" volatile="false"
  32322. static="true" final="true" visibility="public"
  32323. deprecated="not deprecated">
  32324. </field>
  32325. <doc>
  32326. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  32327. Configuration. It uses a service loader interface to find the available
  32328. CredentialProviders and create them based on the list of URIs.]]>
  32329. </doc>
  32330. </class>
  32331. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  32332. </package>
  32333. <package name="org.apache.hadoop.security.authorize">
  32334. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  32335. <class name="AccessControlList" extends="java.lang.Object"
  32336. abstract="false"
  32337. static="false" final="false" visibility="public"
  32338. deprecated="not deprecated">
  32339. <implements name="org.apache.hadoop.io.Writable"/>
  32340. <constructor name="AccessControlList"
  32341. static="false" final="false" visibility="public"
  32342. deprecated="not deprecated">
  32343. <doc>
  32344. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  32345. </doc>
  32346. </constructor>
  32347. <constructor name="AccessControlList" type="java.lang.String"
  32348. static="false" final="false" visibility="public"
  32349. deprecated="not deprecated">
  32350. <doc>
  32351. <![CDATA[Construct a new ACL from a String representation of the same.
  32352. The String is a a comma separated list of users and groups.
  32353. The user list comes first and is separated by a space followed
  32354. by the group list. For e.g. "user1,user2 group1,group2"
  32355. @param aclString String representation of the ACL]]>
  32356. </doc>
  32357. </constructor>
  32358. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  32359. static="false" final="false" visibility="public"
  32360. deprecated="not deprecated">
  32361. <doc>
  32362. <![CDATA[Construct a new ACL from String representation of users and groups
  32363. The arguments are comma separated lists
  32364. @param users comma separated list of users
  32365. @param groups comma separated list of groups]]>
  32366. </doc>
  32367. </constructor>
  32368. <method name="isAllAllowed" return="boolean"
  32369. abstract="false" native="false" synchronized="false"
  32370. static="false" final="false" visibility="public"
  32371. deprecated="not deprecated">
  32372. </method>
  32373. <method name="addUser"
  32374. abstract="false" native="false" synchronized="false"
  32375. static="false" final="false" visibility="public"
  32376. deprecated="not deprecated">
  32377. <param name="user" type="java.lang.String"/>
  32378. <doc>
  32379. <![CDATA[Add user to the names of users allowed for this service.
  32380. @param user
  32381. The user name]]>
  32382. </doc>
  32383. </method>
  32384. <method name="addGroup"
  32385. abstract="false" native="false" synchronized="false"
  32386. static="false" final="false" visibility="public"
  32387. deprecated="not deprecated">
  32388. <param name="group" type="java.lang.String"/>
  32389. <doc>
  32390. <![CDATA[Add group to the names of groups allowed for this service.
  32391. @param group
  32392. The group name]]>
  32393. </doc>
  32394. </method>
  32395. <method name="removeUser"
  32396. abstract="false" native="false" synchronized="false"
  32397. static="false" final="false" visibility="public"
  32398. deprecated="not deprecated">
  32399. <param name="user" type="java.lang.String"/>
  32400. <doc>
  32401. <![CDATA[Remove user from the names of users allowed for this service.
  32402. @param user
  32403. The user name]]>
  32404. </doc>
  32405. </method>
  32406. <method name="removeGroup"
  32407. abstract="false" native="false" synchronized="false"
  32408. static="false" final="false" visibility="public"
  32409. deprecated="not deprecated">
  32410. <param name="group" type="java.lang.String"/>
  32411. <doc>
  32412. <![CDATA[Remove group from the names of groups allowed for this service.
  32413. @param group
  32414. The group name]]>
  32415. </doc>
  32416. </method>
  32417. <method name="getUsers" return="java.util.Collection"
  32418. abstract="false" native="false" synchronized="false"
  32419. static="false" final="false" visibility="public"
  32420. deprecated="not deprecated">
  32421. <doc>
  32422. <![CDATA[Get the names of users allowed for this service.
  32423. @return the set of user names. the set must not be modified.]]>
  32424. </doc>
  32425. </method>
  32426. <method name="getGroups" return="java.util.Collection"
  32427. abstract="false" native="false" synchronized="false"
  32428. static="false" final="false" visibility="public"
  32429. deprecated="not deprecated">
  32430. <doc>
  32431. <![CDATA[Get the names of user groups allowed for this service.
  32432. @return the set of group names. the set must not be modified.]]>
  32433. </doc>
  32434. </method>
  32435. <method name="isUserInList" return="boolean"
  32436. abstract="false" native="false" synchronized="false"
  32437. static="false" final="true" visibility="public"
  32438. deprecated="not deprecated">
  32439. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32440. <doc>
  32441. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  32442. is a member of the Access Control List
  32443. @param ugi UserGroupInformation to check if contained in the ACL
  32444. @return true if ugi is member of the list]]>
  32445. </doc>
  32446. </method>
  32447. <method name="isUserAllowed" return="boolean"
  32448. abstract="false" native="false" synchronized="false"
  32449. static="false" final="false" visibility="public"
  32450. deprecated="not deprecated">
  32451. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  32452. </method>
  32453. <method name="toString" return="java.lang.String"
  32454. abstract="false" native="false" synchronized="false"
  32455. static="false" final="false" visibility="public"
  32456. deprecated="not deprecated">
  32457. <doc>
  32458. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  32459. Use {@link #getAclString()} to get the exact String that can be given to
  32460. the constructor of AccessControlList to create a new instance.]]>
  32461. </doc>
  32462. </method>
  32463. <method name="getAclString" return="java.lang.String"
  32464. abstract="false" native="false" synchronized="false"
  32465. static="false" final="false" visibility="public"
  32466. deprecated="not deprecated">
  32467. <doc>
  32468. <![CDATA[Returns the access control list as a String that can be used for building a
  32469. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  32470. </doc>
  32471. </method>
  32472. <method name="write"
  32473. abstract="false" native="false" synchronized="false"
  32474. static="false" final="false" visibility="public"
  32475. deprecated="not deprecated">
  32476. <param name="out" type="java.io.DataOutput"/>
  32477. <exception name="IOException" type="java.io.IOException"/>
  32478. <doc>
  32479. <![CDATA[Serializes the AccessControlList object]]>
  32480. </doc>
  32481. </method>
  32482. <method name="readFields"
  32483. abstract="false" native="false" synchronized="false"
  32484. static="false" final="false" visibility="public"
  32485. deprecated="not deprecated">
  32486. <param name="in" type="java.io.DataInput"/>
  32487. <exception name="IOException" type="java.io.IOException"/>
  32488. <doc>
  32489. <![CDATA[Deserializes the AccessControlList object]]>
  32490. </doc>
  32491. </method>
  32492. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  32493. transient="false" volatile="false"
  32494. static="true" final="true" visibility="public"
  32495. deprecated="not deprecated">
  32496. </field>
  32497. <doc>
  32498. <![CDATA[Class representing a configured access control list.]]>
  32499. </doc>
  32500. </class>
  32501. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  32502. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  32503. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  32504. abstract="false"
  32505. static="false" final="false" visibility="public"
  32506. deprecated="not deprecated">
  32507. <constructor name="AuthorizationException"
  32508. static="false" final="false" visibility="public"
  32509. deprecated="not deprecated">
  32510. </constructor>
  32511. <constructor name="AuthorizationException" type="java.lang.String"
  32512. static="false" final="false" visibility="public"
  32513. deprecated="not deprecated">
  32514. </constructor>
  32515. <constructor name="AuthorizationException" type="java.lang.Throwable"
  32516. static="false" final="false" visibility="public"
  32517. deprecated="not deprecated">
  32518. <doc>
  32519. <![CDATA[Constructs a new exception with the specified cause and a detail
  32520. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32521. typically contains the class and detail message of <tt>cause</tt>).
  32522. @param cause the cause (which is saved for later retrieval by the
  32523. {@link #getCause()} method). (A <tt>null</tt> value is
  32524. permitted, and indicates that the cause is nonexistent or
  32525. unknown.)]]>
  32526. </doc>
  32527. </constructor>
  32528. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  32529. abstract="false" native="false" synchronized="false"
  32530. static="false" final="false" visibility="public"
  32531. deprecated="not deprecated">
  32532. </method>
  32533. <method name="printStackTrace"
  32534. abstract="false" native="false" synchronized="false"
  32535. static="false" final="false" visibility="public"
  32536. deprecated="not deprecated">
  32537. </method>
  32538. <method name="printStackTrace"
  32539. abstract="false" native="false" synchronized="false"
  32540. static="false" final="false" visibility="public"
  32541. deprecated="not deprecated">
  32542. <param name="s" type="java.io.PrintStream"/>
  32543. </method>
  32544. <method name="printStackTrace"
  32545. abstract="false" native="false" synchronized="false"
  32546. static="false" final="false" visibility="public"
  32547. deprecated="not deprecated">
  32548. <param name="s" type="java.io.PrintWriter"/>
  32549. </method>
  32550. <doc>
  32551. <![CDATA[An exception class for authorization-related issues.
  32552. This class <em>does not</em> provide the stack trace for security purposes.]]>
  32553. </doc>
  32554. </class>
  32555. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  32556. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  32557. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  32558. abstract="false"
  32559. static="false" final="false" visibility="public"
  32560. deprecated="not deprecated">
  32561. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  32562. <constructor name="DefaultImpersonationProvider"
  32563. static="false" final="false" visibility="public"
  32564. deprecated="not deprecated">
  32565. </constructor>
  32566. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  32567. abstract="false" native="false" synchronized="true"
  32568. static="true" final="false" visibility="public"
  32569. deprecated="not deprecated">
  32570. </method>
  32571. <method name="setConf"
  32572. abstract="false" native="false" synchronized="false"
  32573. static="false" final="false" visibility="public"
  32574. deprecated="not deprecated">
  32575. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32576. </method>
  32577. <method name="init"
  32578. abstract="false" native="false" synchronized="false"
  32579. static="false" final="false" visibility="public"
  32580. deprecated="not deprecated">
  32581. <param name="configurationPrefix" type="java.lang.String"/>
  32582. </method>
  32583. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  32584. abstract="false" native="false" synchronized="false"
  32585. static="false" final="false" visibility="public"
  32586. deprecated="not deprecated">
  32587. </method>
  32588. <method name="authorize"
  32589. abstract="false" native="false" synchronized="false"
  32590. static="false" final="false" visibility="public"
  32591. deprecated="not deprecated">
  32592. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32593. <param name="remoteAddress" type="java.lang.String"/>
  32594. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  32595. </method>
  32596. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  32597. abstract="false" native="false" synchronized="false"
  32598. static="false" final="false" visibility="public"
  32599. deprecated="not deprecated">
  32600. <param name="userName" type="java.lang.String"/>
  32601. <doc>
  32602. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  32603. @param userName name of the superuser
  32604. @return configuration key for superuser usergroups]]>
  32605. </doc>
  32606. </method>
  32607. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  32608. abstract="false" native="false" synchronized="false"
  32609. static="false" final="false" visibility="public"
  32610. deprecated="not deprecated">
  32611. <param name="userName" type="java.lang.String"/>
  32612. <doc>
  32613. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  32614. @param userName name of the superuser
  32615. @return configuration key for superuser groups]]>
  32616. </doc>
  32617. </method>
  32618. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  32619. abstract="false" native="false" synchronized="false"
  32620. static="false" final="false" visibility="public"
  32621. deprecated="not deprecated">
  32622. <param name="userName" type="java.lang.String"/>
  32623. <doc>
  32624. <![CDATA[Return configuration key for superuser ip addresses
  32625. @param userName name of the superuser
  32626. @return configuration key for superuser ip-addresses]]>
  32627. </doc>
  32628. </method>
  32629. <method name="getProxyGroups" return="java.util.Map"
  32630. abstract="false" native="false" synchronized="false"
  32631. static="false" final="false" visibility="public"
  32632. deprecated="not deprecated">
  32633. </method>
  32634. <method name="getProxyHosts" return="java.util.Map"
  32635. abstract="false" native="false" synchronized="false"
  32636. static="false" final="false" visibility="public"
  32637. deprecated="not deprecated">
  32638. </method>
  32639. </class>
  32640. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  32641. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  32642. <interface name="ImpersonationProvider" abstract="true"
  32643. static="false" final="false" visibility="public"
  32644. deprecated="not deprecated">
  32645. <implements name="org.apache.hadoop.conf.Configurable"/>
  32646. <method name="init"
  32647. abstract="false" native="false" synchronized="false"
  32648. static="false" final="false" visibility="public"
  32649. deprecated="not deprecated">
  32650. <param name="configurationPrefix" type="java.lang.String"/>
  32651. <doc>
  32652. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  32653. initializes the provider.
  32654. @param configurationPrefix the configuration prefix for the proxy user
  32655. properties]]>
  32656. </doc>
  32657. </method>
  32658. <method name="authorize"
  32659. abstract="false" native="false" synchronized="false"
  32660. static="false" final="false" visibility="public"
  32661. deprecated="not deprecated">
  32662. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  32663. <param name="remoteAddress" type="java.lang.String"/>
  32664. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  32665. <doc>
  32666. <![CDATA[Authorize the superuser which is doing doAs
  32667. @param user ugi of the effective or proxy user which contains a real user
  32668. @param remoteAddress the ip address of client
  32669. @throws AuthorizationException]]>
  32670. </doc>
  32671. </method>
  32672. </interface>
  32673. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  32674. </package>
  32675. <package name="org.apache.hadoop.security.http">
  32676. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  32677. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  32678. abstract="false"
  32679. static="false" final="false" visibility="public"
  32680. deprecated="not deprecated">
  32681. <implements name="javax.servlet.Filter"/>
  32682. <constructor name="RestCsrfPreventionFilter"
  32683. static="false" final="false" visibility="public"
  32684. deprecated="not deprecated">
  32685. </constructor>
  32686. <method name="init"
  32687. abstract="false" native="false" synchronized="false"
  32688. static="false" final="false" visibility="public"
  32689. deprecated="not deprecated">
  32690. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  32691. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32692. </method>
  32693. <method name="isBrowser" return="boolean"
  32694. abstract="false" native="false" synchronized="false"
  32695. static="false" final="false" visibility="protected"
  32696. deprecated="not deprecated">
  32697. <param name="userAgent" type="java.lang.String"/>
  32698. <doc>
  32699. <![CDATA[This method interrogates the User-Agent String and returns whether it
  32700. refers to a browser. If its not a browser, then the requirement for the
  32701. CSRF header will not be enforced; if it is a browser, the requirement will
  32702. be enforced.
  32703. <p>
  32704. A User-Agent String is considered to be a browser if it matches
  32705. any of the regex patterns from browser-useragent-regex; the default
  32706. behavior is to consider everything a browser that matches the following:
  32707. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  32708. this method to use different behavior.
  32709. @param userAgent The User-Agent String, or null if there isn't one
  32710. @return true if the User-Agent String refers to a browser, false if not]]>
  32711. </doc>
  32712. </method>
  32713. <method name="handleHttpInteraction"
  32714. abstract="false" native="false" synchronized="false"
  32715. static="false" final="false" visibility="public"
  32716. deprecated="not deprecated">
  32717. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  32718. <exception name="IOException" type="java.io.IOException"/>
  32719. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32720. <doc>
  32721. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  32722. @param httpInteraction caller's HTTP interaction
  32723. @throws IOException if there is an I/O error
  32724. @throws ServletException if the implementation relies on the servlet API
  32725. and a servlet API call has failed]]>
  32726. </doc>
  32727. </method>
  32728. <method name="doFilter"
  32729. abstract="false" native="false" synchronized="false"
  32730. static="false" final="false" visibility="public"
  32731. deprecated="not deprecated">
  32732. <param name="request" type="javax.servlet.ServletRequest"/>
  32733. <param name="response" type="javax.servlet.ServletResponse"/>
  32734. <param name="chain" type="javax.servlet.FilterChain"/>
  32735. <exception name="IOException" type="java.io.IOException"/>
  32736. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32737. </method>
  32738. <method name="destroy"
  32739. abstract="false" native="false" synchronized="false"
  32740. static="false" final="false" visibility="public"
  32741. deprecated="not deprecated">
  32742. </method>
  32743. <method name="getFilterParams" return="java.util.Map"
  32744. abstract="false" native="false" synchronized="false"
  32745. static="true" final="false" visibility="public"
  32746. deprecated="not deprecated">
  32747. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32748. <param name="confPrefix" type="java.lang.String"/>
  32749. <doc>
  32750. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  32751. initialization. The mapping includes all properties that start with the
  32752. specified configuration prefix. Property names in the mapping are trimmed
  32753. to remove the configuration prefix.
  32754. @param conf configuration to read
  32755. @param confPrefix configuration prefix
  32756. @return mapping of configuration properties to be used for filter
  32757. initialization]]>
  32758. </doc>
  32759. </method>
  32760. <field name="HEADER_USER_AGENT" type="java.lang.String"
  32761. transient="false" volatile="false"
  32762. static="true" final="true" visibility="public"
  32763. deprecated="not deprecated">
  32764. </field>
  32765. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  32766. transient="false" volatile="false"
  32767. static="true" final="true" visibility="public"
  32768. deprecated="not deprecated">
  32769. </field>
  32770. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  32771. transient="false" volatile="false"
  32772. static="true" final="true" visibility="public"
  32773. deprecated="not deprecated">
  32774. </field>
  32775. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  32776. transient="false" volatile="false"
  32777. static="true" final="true" visibility="public"
  32778. deprecated="not deprecated">
  32779. </field>
  32780. <doc>
  32781. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  32782. attacks for REST APIs. Enabling this filter on an endpoint results in the
  32783. requirement of all client to send a particular (configurable) HTTP header
  32784. with every request. In the absense of this header the filter will reject the
  32785. attempt as a bad request.]]>
  32786. </doc>
  32787. </class>
  32788. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  32789. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  32790. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  32791. abstract="false"
  32792. static="false" final="false" visibility="public"
  32793. deprecated="not deprecated">
  32794. <implements name="javax.servlet.Filter"/>
  32795. <constructor name="XFrameOptionsFilter"
  32796. static="false" final="false" visibility="public"
  32797. deprecated="not deprecated">
  32798. </constructor>
  32799. <method name="destroy"
  32800. abstract="false" native="false" synchronized="false"
  32801. static="false" final="false" visibility="public"
  32802. deprecated="not deprecated">
  32803. </method>
  32804. <method name="doFilter"
  32805. abstract="false" native="false" synchronized="false"
  32806. static="false" final="false" visibility="public"
  32807. deprecated="not deprecated">
  32808. <param name="req" type="javax.servlet.ServletRequest"/>
  32809. <param name="res" type="javax.servlet.ServletResponse"/>
  32810. <param name="chain" type="javax.servlet.FilterChain"/>
  32811. <exception name="IOException" type="java.io.IOException"/>
  32812. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32813. </method>
  32814. <method name="init"
  32815. abstract="false" native="false" synchronized="false"
  32816. static="false" final="false" visibility="public"
  32817. deprecated="not deprecated">
  32818. <param name="config" type="javax.servlet.FilterConfig"/>
  32819. <exception name="ServletException" type="javax.servlet.ServletException"/>
  32820. </method>
  32821. <method name="getFilterParams" return="java.util.Map"
  32822. abstract="false" native="false" synchronized="false"
  32823. static="true" final="false" visibility="public"
  32824. deprecated="not deprecated">
  32825. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  32826. <param name="confPrefix" type="java.lang.String"/>
  32827. <doc>
  32828. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  32829. initialization. The mapping includes all properties that start with the
  32830. specified configuration prefix. Property names in the mapping are trimmed
  32831. to remove the configuration prefix.
  32832. @param conf configuration to read
  32833. @param confPrefix configuration prefix
  32834. @return mapping of configuration properties to be used for filter
  32835. initialization]]>
  32836. </doc>
  32837. </method>
  32838. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  32839. transient="false" volatile="false"
  32840. static="true" final="true" visibility="public"
  32841. deprecated="not deprecated">
  32842. </field>
  32843. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  32844. transient="false" volatile="false"
  32845. static="true" final="true" visibility="public"
  32846. deprecated="not deprecated">
  32847. </field>
  32848. <doc>
  32849. <![CDATA[This filter protects webapps from clickjacking attacks that
  32850. are possible through use of Frames to embed the resources in another
  32851. application and intercept clicks to accomplish nefarious things.]]>
  32852. </doc>
  32853. </class>
  32854. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  32855. </package>
  32856. <package name="org.apache.hadoop.security.protocolPB">
  32857. </package>
  32858. <package name="org.apache.hadoop.security.ssl">
  32859. </package>
  32860. <package name="org.apache.hadoop.security.token">
  32861. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  32862. <class name="SecretManager" extends="java.lang.Object"
  32863. abstract="true"
  32864. static="false" final="false" visibility="public"
  32865. deprecated="not deprecated">
  32866. <constructor name="SecretManager"
  32867. static="false" final="false" visibility="public"
  32868. deprecated="not deprecated">
  32869. </constructor>
  32870. <method name="createPassword" return="byte[]"
  32871. abstract="true" native="false" synchronized="false"
  32872. static="false" final="false" visibility="protected"
  32873. deprecated="not deprecated">
  32874. <param name="identifier" type="T"/>
  32875. <doc>
  32876. <![CDATA[Create the password for the given identifier.
  32877. identifier may be modified inside this method.
  32878. @param identifier the identifier to use
  32879. @return the new password]]>
  32880. </doc>
  32881. </method>
  32882. <method name="retrievePassword" return="byte[]"
  32883. abstract="true" native="false" synchronized="false"
  32884. static="false" final="false" visibility="public"
  32885. deprecated="not deprecated">
  32886. <param name="identifier" type="T"/>
  32887. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  32888. <doc>
  32889. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  32890. or registry to make sure the token hasn't expired or been revoked. Returns
  32891. the relevant password.
  32892. @param identifier the identifier to validate
  32893. @return the password to use
  32894. @throws InvalidToken the token was invalid]]>
  32895. </doc>
  32896. </method>
  32897. <method name="retriableRetrievePassword" return="byte[]"
  32898. abstract="false" native="false" synchronized="false"
  32899. static="false" final="false" visibility="public"
  32900. deprecated="not deprecated">
  32901. <param name="identifier" type="T"/>
  32902. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  32903. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  32904. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  32905. <exception name="IOException" type="java.io.IOException"/>
  32906. <doc>
  32907. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  32908. method can throw a {@link RetriableException} or a {@link StandbyException}
  32909. to indicate that client can retry/failover the same operation because of
  32910. temporary issue on the server side.
  32911. @param identifier the identifier to validate
  32912. @return the password to use
  32913. @throws InvalidToken the token was invalid
  32914. @throws StandbyException the server is in standby state, the client can
  32915. try other servers
  32916. @throws RetriableException the token was invalid, and the server thinks
  32917. this may be a temporary issue and suggests the client to retry
  32918. @throws IOException to allow future exceptions to be added without breaking
  32919. compatibility]]>
  32920. </doc>
  32921. </method>
  32922. <method name="createIdentifier" return="T"
  32923. abstract="true" native="false" synchronized="false"
  32924. static="false" final="false" visibility="public"
  32925. deprecated="not deprecated">
  32926. <doc>
  32927. <![CDATA[Create an empty token identifier.
  32928. @return the newly created empty token identifier]]>
  32929. </doc>
  32930. </method>
  32931. <method name="checkAvailableForRead"
  32932. abstract="false" native="false" synchronized="false"
  32933. static="false" final="false" visibility="public"
  32934. deprecated="not deprecated">
  32935. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  32936. <doc>
  32937. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  32938. StandbyException otherwise.
  32939. @throws StandbyException if the secret manager is not available to read
  32940. tokens]]>
  32941. </doc>
  32942. </method>
  32943. <method name="generateSecret" return="javax.crypto.SecretKey"
  32944. abstract="false" native="false" synchronized="false"
  32945. static="false" final="false" visibility="protected"
  32946. deprecated="not deprecated">
  32947. <doc>
  32948. <![CDATA[Generate a new random secret key.
  32949. @return the new key]]>
  32950. </doc>
  32951. </method>
  32952. <method name="createPassword" return="byte[]"
  32953. abstract="false" native="false" synchronized="false"
  32954. static="true" final="false" visibility="protected"
  32955. deprecated="not deprecated">
  32956. <param name="identifier" type="byte[]"/>
  32957. <param name="key" type="javax.crypto.SecretKey"/>
  32958. <doc>
  32959. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  32960. output as password
  32961. @param identifier the bytes of the identifier
  32962. @param key the secret key
  32963. @return the bytes of the generated password]]>
  32964. </doc>
  32965. </method>
  32966. <method name="createSecretKey" return="javax.crypto.SecretKey"
  32967. abstract="false" native="false" synchronized="false"
  32968. static="true" final="false" visibility="protected"
  32969. deprecated="not deprecated">
  32970. <param name="key" type="byte[]"/>
  32971. <doc>
  32972. <![CDATA[Convert the byte[] to a secret key
  32973. @param key the byte[] to create a secret key from
  32974. @return the secret key]]>
  32975. </doc>
  32976. </method>
  32977. <doc>
  32978. <![CDATA[The server-side secret manager for each token type.
  32979. @param <T> The type of the token identifier]]>
  32980. </doc>
  32981. </class>
  32982. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  32983. <!-- start class org.apache.hadoop.security.token.Token -->
  32984. <class name="Token" extends="java.lang.Object"
  32985. abstract="false"
  32986. static="false" final="false" visibility="public"
  32987. deprecated="not deprecated">
  32988. <implements name="org.apache.hadoop.io.Writable"/>
  32989. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  32990. static="false" final="false" visibility="public"
  32991. deprecated="not deprecated">
  32992. <doc>
  32993. <![CDATA[Construct a token given a token identifier and a secret manager for the
  32994. type of the token identifier.
  32995. @param id the token identifier
  32996. @param mgr the secret manager]]>
  32997. </doc>
  32998. </constructor>
  32999. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  33000. static="false" final="false" visibility="public"
  33001. deprecated="not deprecated">
  33002. <doc>
  33003. <![CDATA[Construct a token from the components.
  33004. @param identifier the token identifier
  33005. @param password the token's password
  33006. @param kind the kind of token
  33007. @param service the service for this token]]>
  33008. </doc>
  33009. </constructor>
  33010. <constructor name="Token"
  33011. static="false" final="false" visibility="public"
  33012. deprecated="not deprecated">
  33013. <doc>
  33014. <![CDATA[Default constructor]]>
  33015. </doc>
  33016. </constructor>
  33017. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  33018. static="false" final="false" visibility="public"
  33019. deprecated="not deprecated">
  33020. <doc>
  33021. <![CDATA[Clone a token.
  33022. @param other the token to clone]]>
  33023. </doc>
  33024. </constructor>
  33025. <method name="getIdentifier" return="byte[]"
  33026. abstract="false" native="false" synchronized="false"
  33027. static="false" final="false" visibility="public"
  33028. deprecated="not deprecated">
  33029. <doc>
  33030. <![CDATA[Get the token identifier's byte representation
  33031. @return the token identifier's byte representation]]>
  33032. </doc>
  33033. </method>
  33034. <method name="decodeIdentifier" return="T"
  33035. abstract="false" native="false" synchronized="false"
  33036. static="false" final="false" visibility="public"
  33037. deprecated="not deprecated">
  33038. <exception name="IOException" type="java.io.IOException"/>
  33039. <doc>
  33040. <![CDATA[Get the token identifier object, or null if it could not be constructed
  33041. (because the class could not be loaded, for example).
  33042. @return the token identifier, or null
  33043. @throws IOException]]>
  33044. </doc>
  33045. </method>
  33046. <method name="getPassword" return="byte[]"
  33047. abstract="false" native="false" synchronized="false"
  33048. static="false" final="false" visibility="public"
  33049. deprecated="not deprecated">
  33050. <doc>
  33051. <![CDATA[Get the token password/secret
  33052. @return the token password/secret]]>
  33053. </doc>
  33054. </method>
  33055. <method name="getKind" return="org.apache.hadoop.io.Text"
  33056. abstract="false" native="false" synchronized="true"
  33057. static="false" final="false" visibility="public"
  33058. deprecated="not deprecated">
  33059. <doc>
  33060. <![CDATA[Get the token kind
  33061. @return the kind of the token]]>
  33062. </doc>
  33063. </method>
  33064. <method name="getService" return="org.apache.hadoop.io.Text"
  33065. abstract="false" native="false" synchronized="false"
  33066. static="false" final="false" visibility="public"
  33067. deprecated="not deprecated">
  33068. <doc>
  33069. <![CDATA[Get the service on which the token is supposed to be used
  33070. @return the service name]]>
  33071. </doc>
  33072. </method>
  33073. <method name="setService"
  33074. abstract="false" native="false" synchronized="false"
  33075. static="false" final="false" visibility="public"
  33076. deprecated="not deprecated">
  33077. <param name="newService" type="org.apache.hadoop.io.Text"/>
  33078. <doc>
  33079. <![CDATA[Set the service on which the token is supposed to be used
  33080. @param newService the service name]]>
  33081. </doc>
  33082. </method>
  33083. <method name="readFields"
  33084. abstract="false" native="false" synchronized="false"
  33085. static="false" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. <param name="in" type="java.io.DataInput"/>
  33088. <exception name="IOException" type="java.io.IOException"/>
  33089. </method>
  33090. <method name="write"
  33091. abstract="false" native="false" synchronized="false"
  33092. static="false" final="false" visibility="public"
  33093. deprecated="not deprecated">
  33094. <param name="out" type="java.io.DataOutput"/>
  33095. <exception name="IOException" type="java.io.IOException"/>
  33096. </method>
  33097. <method name="encodeToUrlString" return="java.lang.String"
  33098. abstract="false" native="false" synchronized="false"
  33099. static="false" final="false" visibility="public"
  33100. deprecated="not deprecated">
  33101. <exception name="IOException" type="java.io.IOException"/>
  33102. <doc>
  33103. <![CDATA[Encode this token as a url safe string
  33104. @return the encoded string
  33105. @throws IOException]]>
  33106. </doc>
  33107. </method>
  33108. <method name="decodeFromUrlString"
  33109. abstract="false" native="false" synchronized="false"
  33110. static="false" final="false" visibility="public"
  33111. deprecated="not deprecated">
  33112. <param name="newValue" type="java.lang.String"/>
  33113. <exception name="IOException" type="java.io.IOException"/>
  33114. <doc>
  33115. <![CDATA[Decode the given url safe string into this token.
  33116. @param newValue the encoded string
  33117. @throws IOException]]>
  33118. </doc>
  33119. </method>
  33120. <method name="equals" return="boolean"
  33121. abstract="false" native="false" synchronized="false"
  33122. static="false" final="false" visibility="public"
  33123. deprecated="not deprecated">
  33124. <param name="right" type="java.lang.Object"/>
  33125. </method>
  33126. <method name="hashCode" return="int"
  33127. abstract="false" native="false" synchronized="false"
  33128. static="false" final="false" visibility="public"
  33129. deprecated="not deprecated">
  33130. </method>
  33131. <method name="toString" return="java.lang.String"
  33132. abstract="false" native="false" synchronized="false"
  33133. static="false" final="false" visibility="public"
  33134. deprecated="not deprecated">
  33135. </method>
  33136. <method name="buildCacheKey" return="java.lang.String"
  33137. abstract="false" native="false" synchronized="false"
  33138. static="false" final="false" visibility="public"
  33139. deprecated="not deprecated">
  33140. </method>
  33141. <method name="isManaged" return="boolean"
  33142. abstract="false" native="false" synchronized="false"
  33143. static="false" final="false" visibility="public"
  33144. deprecated="not deprecated">
  33145. <exception name="IOException" type="java.io.IOException"/>
  33146. <doc>
  33147. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  33148. @return true, if it can be renewed and cancelled.]]>
  33149. </doc>
  33150. </method>
  33151. <method name="renew" return="long"
  33152. abstract="false" native="false" synchronized="false"
  33153. static="false" final="false" visibility="public"
  33154. deprecated="not deprecated">
  33155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33156. <exception name="IOException" type="java.io.IOException"/>
  33157. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33158. <doc>
  33159. <![CDATA[Renew this delegation token
  33160. @return the new expiration time
  33161. @throws IOException
  33162. @throws InterruptedException]]>
  33163. </doc>
  33164. </method>
  33165. <method name="cancel"
  33166. abstract="false" native="false" synchronized="false"
  33167. static="false" final="false" visibility="public"
  33168. deprecated="not deprecated">
  33169. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33170. <exception name="IOException" type="java.io.IOException"/>
  33171. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33172. <doc>
  33173. <![CDATA[Cancel this delegation token
  33174. @throws IOException
  33175. @throws InterruptedException]]>
  33176. </doc>
  33177. </method>
  33178. <field name="LOG" type="org.apache.commons.logging.Log"
  33179. transient="false" volatile="false"
  33180. static="true" final="true" visibility="public"
  33181. deprecated="not deprecated">
  33182. </field>
  33183. <doc>
  33184. <![CDATA[The client-side form of the token.]]>
  33185. </doc>
  33186. </class>
  33187. <!-- end class org.apache.hadoop.security.token.Token -->
  33188. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  33189. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  33190. abstract="false"
  33191. static="true" final="false" visibility="public"
  33192. deprecated="not deprecated">
  33193. <constructor name="Token.TrivialRenewer"
  33194. static="false" final="false" visibility="public"
  33195. deprecated="not deprecated">
  33196. </constructor>
  33197. <method name="getKind" return="org.apache.hadoop.io.Text"
  33198. abstract="false" native="false" synchronized="false"
  33199. static="false" final="false" visibility="protected"
  33200. deprecated="not deprecated">
  33201. </method>
  33202. <method name="handleKind" return="boolean"
  33203. abstract="false" native="false" synchronized="false"
  33204. static="false" final="false" visibility="public"
  33205. deprecated="not deprecated">
  33206. <param name="kind" type="org.apache.hadoop.io.Text"/>
  33207. </method>
  33208. <method name="isManaged" return="boolean"
  33209. abstract="false" native="false" synchronized="false"
  33210. static="false" final="false" visibility="public"
  33211. deprecated="not deprecated">
  33212. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33213. </method>
  33214. <method name="renew" return="long"
  33215. abstract="false" native="false" synchronized="false"
  33216. static="false" final="false" visibility="public"
  33217. deprecated="not deprecated">
  33218. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33219. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33220. </method>
  33221. <method name="cancel"
  33222. abstract="false" native="false" synchronized="false"
  33223. static="false" final="false" visibility="public"
  33224. deprecated="not deprecated">
  33225. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33226. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33227. <exception name="IOException" type="java.io.IOException"/>
  33228. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33229. </method>
  33230. <doc>
  33231. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  33232. to implement getKind for their token kind.]]>
  33233. </doc>
  33234. </class>
  33235. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  33236. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  33237. <class name="TokenIdentifier" extends="java.lang.Object"
  33238. abstract="true"
  33239. static="false" final="false" visibility="public"
  33240. deprecated="not deprecated">
  33241. <implements name="org.apache.hadoop.io.Writable"/>
  33242. <constructor name="TokenIdentifier"
  33243. static="false" final="false" visibility="public"
  33244. deprecated="not deprecated">
  33245. </constructor>
  33246. <method name="getKind" return="org.apache.hadoop.io.Text"
  33247. abstract="true" native="false" synchronized="false"
  33248. static="false" final="false" visibility="public"
  33249. deprecated="not deprecated">
  33250. <doc>
  33251. <![CDATA[Get the token kind
  33252. @return the kind of the token]]>
  33253. </doc>
  33254. </method>
  33255. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  33256. abstract="true" native="false" synchronized="false"
  33257. static="false" final="false" visibility="public"
  33258. deprecated="not deprecated">
  33259. <doc>
  33260. <![CDATA[Get the Ugi with the username encoded in the token identifier
  33261. @return the username. null is returned if username in the identifier is
  33262. empty or null.]]>
  33263. </doc>
  33264. </method>
  33265. <method name="getBytes" return="byte[]"
  33266. abstract="false" native="false" synchronized="false"
  33267. static="false" final="false" visibility="public"
  33268. deprecated="not deprecated">
  33269. <doc>
  33270. <![CDATA[Get the bytes for the token identifier
  33271. @return the bytes of the identifier]]>
  33272. </doc>
  33273. </method>
  33274. <method name="getTrackingId" return="java.lang.String"
  33275. abstract="false" native="false" synchronized="false"
  33276. static="false" final="false" visibility="public"
  33277. deprecated="not deprecated">
  33278. <doc>
  33279. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  33280. token across multiple client sessions.
  33281. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  33282. @return tracking identifier]]>
  33283. </doc>
  33284. </method>
  33285. <doc>
  33286. <![CDATA[An identifier that identifies a token, may contain public information
  33287. about a token, including its kind (or type).]]>
  33288. </doc>
  33289. </class>
  33290. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  33291. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  33292. <class name="TokenInfo" abstract="true"
  33293. static="false" final="false" visibility="public"
  33294. deprecated="not deprecated">
  33295. <implements name="java.lang.annotation.Annotation"/>
  33296. <doc>
  33297. <![CDATA[Indicates Token related information to be used]]>
  33298. </doc>
  33299. </class>
  33300. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  33301. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  33302. <class name="TokenRenewer" extends="java.lang.Object"
  33303. abstract="true"
  33304. static="false" final="false" visibility="public"
  33305. deprecated="not deprecated">
  33306. <constructor name="TokenRenewer"
  33307. static="false" final="false" visibility="public"
  33308. deprecated="not deprecated">
  33309. </constructor>
  33310. <method name="handleKind" return="boolean"
  33311. abstract="true" native="false" synchronized="false"
  33312. static="false" final="false" visibility="public"
  33313. deprecated="not deprecated">
  33314. <param name="kind" type="org.apache.hadoop.io.Text"/>
  33315. <doc>
  33316. <![CDATA[Does this renewer handle this kind of token?
  33317. @param kind the kind of the token
  33318. @return true if this renewer can renew it]]>
  33319. </doc>
  33320. </method>
  33321. <method name="isManaged" return="boolean"
  33322. abstract="true" native="false" synchronized="false"
  33323. static="false" final="false" visibility="public"
  33324. deprecated="not deprecated">
  33325. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33326. <exception name="IOException" type="java.io.IOException"/>
  33327. <doc>
  33328. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  33329. cancelled.
  33330. @param token the token being checked
  33331. @return true if the token may be renewed or cancelled
  33332. @throws IOException]]>
  33333. </doc>
  33334. </method>
  33335. <method name="renew" return="long"
  33336. abstract="true" native="false" synchronized="false"
  33337. static="false" final="false" visibility="public"
  33338. deprecated="not deprecated">
  33339. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33341. <exception name="IOException" type="java.io.IOException"/>
  33342. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33343. <doc>
  33344. <![CDATA[Renew the given token.
  33345. @return the new expiration time
  33346. @throws IOException
  33347. @throws InterruptedException]]>
  33348. </doc>
  33349. </method>
  33350. <method name="cancel"
  33351. abstract="true" native="false" synchronized="false"
  33352. static="false" final="false" visibility="public"
  33353. deprecated="not deprecated">
  33354. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33355. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33356. <exception name="IOException" type="java.io.IOException"/>
  33357. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  33358. <doc>
  33359. <![CDATA[Cancel the given token
  33360. @throws IOException
  33361. @throws InterruptedException]]>
  33362. </doc>
  33363. </method>
  33364. <doc>
  33365. <![CDATA[This is the interface for plugins that handle tokens.]]>
  33366. </doc>
  33367. </class>
  33368. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  33369. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  33370. <interface name="TokenSelector" abstract="true"
  33371. static="false" final="false" visibility="public"
  33372. deprecated="not deprecated">
  33373. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  33374. abstract="false" native="false" synchronized="false"
  33375. static="false" final="false" visibility="public"
  33376. deprecated="not deprecated">
  33377. <param name="service" type="org.apache.hadoop.io.Text"/>
  33378. <param name="tokens" type="java.util.Collection"/>
  33379. </method>
  33380. <doc>
  33381. <![CDATA[Select token of type T from tokens for use with named service
  33382. @param <T>
  33383. T extends TokenIdentifier]]>
  33384. </doc>
  33385. </interface>
  33386. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  33387. </package>
  33388. <package name="org.apache.hadoop.security.token.delegation.web">
  33389. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  33390. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  33391. abstract="false"
  33392. static="false" final="false" visibility="public"
  33393. deprecated="not deprecated">
  33394. <constructor name="DelegationTokenAuthenticatedURL"
  33395. static="false" final="false" visibility="public"
  33396. deprecated="not deprecated">
  33397. <doc>
  33398. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33399. <p/>
  33400. An instance of the default {@link DelegationTokenAuthenticator} will be
  33401. used.]]>
  33402. </doc>
  33403. </constructor>
  33404. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  33405. static="false" final="false" visibility="public"
  33406. deprecated="not deprecated">
  33407. <doc>
  33408. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33409. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  33410. use, if <code>null</code> the default one will be used.]]>
  33411. </doc>
  33412. </constructor>
  33413. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  33414. static="false" final="false" visibility="public"
  33415. deprecated="not deprecated">
  33416. <doc>
  33417. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  33418. {@link DelegationTokenAuthenticator} class.
  33419. @param connConfigurator a connection configurator.]]>
  33420. </doc>
  33421. </constructor>
  33422. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  33423. static="false" final="false" visibility="public"
  33424. deprecated="not deprecated">
  33425. <doc>
  33426. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  33427. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  33428. use, if <code>null</code> the default one will be used.
  33429. @param connConfigurator a connection configurator.]]>
  33430. </doc>
  33431. </constructor>
  33432. <method name="setDefaultDelegationTokenAuthenticator"
  33433. abstract="false" native="false" synchronized="false"
  33434. static="true" final="false" visibility="public"
  33435. deprecated="not deprecated">
  33436. <param name="authenticator" type="java.lang.Class"/>
  33437. <doc>
  33438. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  33439. {@link DelegationTokenAuthenticatedURL} instance is created without
  33440. specifying one.
  33441. The default class is {@link KerberosDelegationTokenAuthenticator}
  33442. @param authenticator the authenticator class to use as default.]]>
  33443. </doc>
  33444. </method>
  33445. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  33446. abstract="false" native="false" synchronized="false"
  33447. static="true" final="false" visibility="public"
  33448. deprecated="not deprecated">
  33449. <doc>
  33450. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  33451. an {@link DelegationTokenAuthenticatedURL} instance is created without
  33452. specifying one.
  33453. <p/>
  33454. The default class is {@link KerberosDelegationTokenAuthenticator}
  33455. @return the delegation token authenticator class to use as default.]]>
  33456. </doc>
  33457. </method>
  33458. <method name="setUseQueryStringForDelegationToken"
  33459. abstract="false" native="false" synchronized="false"
  33460. static="false" final="false" visibility="protected"
  33461. deprecated="not deprecated">
  33462. <param name="useQueryString" type="boolean"/>
  33463. <doc>
  33464. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  33465. By default it is transmitted using the
  33466. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  33467. <p/>
  33468. This method is provided to enable WebHDFS backwards compatibility.
  33469. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  33470. URL query string, <code>FALSE</code> if the delegation token is transmitted
  33471. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  33472. header.]]>
  33473. </doc>
  33474. </method>
  33475. <method name="useQueryStringForDelegationToken" return="boolean"
  33476. abstract="false" native="false" synchronized="false"
  33477. static="false" final="false" visibility="public"
  33478. deprecated="not deprecated">
  33479. <doc>
  33480. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  33481. @return <code>TRUE</code> if the token is transmitted in the URL query
  33482. string, <code>FALSE</code> if the delegation token is transmitted using the
  33483. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  33484. </doc>
  33485. </method>
  33486. <method name="openConnection" return="java.net.HttpURLConnection"
  33487. abstract="false" native="false" synchronized="false"
  33488. static="false" final="false" visibility="public"
  33489. deprecated="not deprecated">
  33490. <param name="url" type="java.net.URL"/>
  33491. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33492. <exception name="IOException" type="java.io.IOException"/>
  33493. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33494. <doc>
  33495. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  33496. Token only if the given auth token is an instance of {@link Token} and
  33497. it contains a Delegation Token, otherwise use the configured
  33498. {@link DelegationTokenAuthenticator} to authenticate the connection.
  33499. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33500. @param token the authentication token being used for the user.
  33501. @return an authenticated {@link HttpURLConnection}.
  33502. @throws IOException if an IO error occurred.
  33503. @throws AuthenticationException if an authentication exception occurred.]]>
  33504. </doc>
  33505. </method>
  33506. <method name="openConnection" return="java.net.HttpURLConnection"
  33507. abstract="false" native="false" synchronized="false"
  33508. static="false" final="false" visibility="public"
  33509. deprecated="not deprecated">
  33510. <param name="url" type="java.net.URL"/>
  33511. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33512. <exception name="IOException" type="java.io.IOException"/>
  33513. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33514. <doc>
  33515. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  33516. Token is present, it will be used taking precedence over the configured
  33517. <code>Authenticator</code>.
  33518. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33519. @param token the authentication token being used for the user.
  33520. @return an authenticated {@link HttpURLConnection}.
  33521. @throws IOException if an IO error occurred.
  33522. @throws AuthenticationException if an authentication exception occurred.]]>
  33523. </doc>
  33524. </method>
  33525. <method name="openConnection" return="java.net.HttpURLConnection"
  33526. abstract="false" native="false" synchronized="false"
  33527. static="false" final="false" visibility="public"
  33528. deprecated="not deprecated">
  33529. <param name="url" type="java.net.URL"/>
  33530. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33531. <param name="doAs" type="java.lang.String"/>
  33532. <exception name="IOException" type="java.io.IOException"/>
  33533. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33534. <doc>
  33535. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  33536. Token is present, it will be used taking precedence over the configured
  33537. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  33538. the request will be done on behalf of the specified <code>doAs</code> user.
  33539. @param url the URL to connect to. Only HTTP/S URLs are supported.
  33540. @param token the authentication token being used for the user.
  33541. @param doAs user to do the the request on behalf of, if NULL the request is
  33542. as self.
  33543. @return an authenticated {@link HttpURLConnection}.
  33544. @throws IOException if an IO error occurred.
  33545. @throws AuthenticationException if an authentication exception occurred.]]>
  33546. </doc>
  33547. </method>
  33548. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33549. abstract="false" native="false" synchronized="false"
  33550. static="false" final="false" visibility="public"
  33551. deprecated="not deprecated">
  33552. <param name="url" type="java.net.URL"/>
  33553. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33554. <param name="renewer" type="java.lang.String"/>
  33555. <exception name="IOException" type="java.io.IOException"/>
  33556. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33557. <doc>
  33558. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33559. for authentication.
  33560. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33561. supported.
  33562. @param token the authentication token being used for the user where the
  33563. Delegation token will be stored.
  33564. @param renewer the renewer user.
  33565. @return a delegation token.
  33566. @throws IOException if an IO error occurred.
  33567. @throws AuthenticationException if an authentication exception occurred.]]>
  33568. </doc>
  33569. </method>
  33570. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33571. abstract="false" native="false" synchronized="false"
  33572. static="false" final="false" visibility="public"
  33573. deprecated="not deprecated">
  33574. <param name="url" type="java.net.URL"/>
  33575. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33576. <param name="renewer" type="java.lang.String"/>
  33577. <param name="doAsUser" type="java.lang.String"/>
  33578. <exception name="IOException" type="java.io.IOException"/>
  33579. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33580. <doc>
  33581. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33582. for authentication.
  33583. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33584. supported.
  33585. @param token the authentication token being used for the user where the
  33586. Delegation token will be stored.
  33587. @param renewer the renewer user.
  33588. @param doAsUser the user to do as, which will be the token owner.
  33589. @return a delegation token.
  33590. @throws IOException if an IO error occurred.
  33591. @throws AuthenticationException if an authentication exception occurred.]]>
  33592. </doc>
  33593. </method>
  33594. <method name="renewDelegationToken" return="long"
  33595. abstract="false" native="false" synchronized="false"
  33596. static="false" final="false" visibility="public"
  33597. deprecated="not deprecated">
  33598. <param name="url" type="java.net.URL"/>
  33599. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33600. <exception name="IOException" type="java.io.IOException"/>
  33601. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33602. <doc>
  33603. <![CDATA[Renews a delegation token from the server end-point using the
  33604. configured <code>Authenticator</code> for authentication.
  33605. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33606. supported.
  33607. @param token the authentication token with the Delegation Token to renew.
  33608. @throws IOException if an IO error occurred.
  33609. @throws AuthenticationException if an authentication exception occurred.]]>
  33610. </doc>
  33611. </method>
  33612. <method name="renewDelegationToken" return="long"
  33613. abstract="false" native="false" synchronized="false"
  33614. static="false" final="false" visibility="public"
  33615. deprecated="not deprecated">
  33616. <param name="url" type="java.net.URL"/>
  33617. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33618. <param name="doAsUser" type="java.lang.String"/>
  33619. <exception name="IOException" type="java.io.IOException"/>
  33620. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33621. <doc>
  33622. <![CDATA[Renews a delegation token from the server end-point using the
  33623. configured <code>Authenticator</code> for authentication.
  33624. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33625. supported.
  33626. @param token the authentication token with the Delegation Token to renew.
  33627. @param doAsUser the user to do as, which will be the token owner.
  33628. @throws IOException if an IO error occurred.
  33629. @throws AuthenticationException if an authentication exception occurred.]]>
  33630. </doc>
  33631. </method>
  33632. <method name="cancelDelegationToken"
  33633. abstract="false" native="false" synchronized="false"
  33634. static="false" final="false" visibility="public"
  33635. deprecated="not deprecated">
  33636. <param name="url" type="java.net.URL"/>
  33637. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33638. <exception name="IOException" type="java.io.IOException"/>
  33639. <doc>
  33640. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33641. being authenticated by the configured <code>Authenticator</code>.
  33642. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33643. are supported.
  33644. @param token the authentication token with the Delegation Token to cancel.
  33645. @throws IOException if an IO error occurred.]]>
  33646. </doc>
  33647. </method>
  33648. <method name="cancelDelegationToken"
  33649. abstract="false" native="false" synchronized="false"
  33650. static="false" final="false" visibility="public"
  33651. deprecated="not deprecated">
  33652. <param name="url" type="java.net.URL"/>
  33653. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  33654. <param name="doAsUser" type="java.lang.String"/>
  33655. <exception name="IOException" type="java.io.IOException"/>
  33656. <doc>
  33657. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33658. being authenticated by the configured <code>Authenticator</code>.
  33659. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33660. are supported.
  33661. @param token the authentication token with the Delegation Token to cancel.
  33662. @param doAsUser the user to do as, which will be the token owner.
  33663. @throws IOException if an IO error occurred.]]>
  33664. </doc>
  33665. </method>
  33666. <doc>
  33667. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  33668. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  33669. functionality.
  33670. <p/>
  33671. The authentication mechanisms supported by default are Hadoop Simple
  33672. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  33673. authentication.
  33674. <p/>
  33675. Additional authentication mechanisms can be supported via {@link
  33676. DelegationTokenAuthenticator} implementations.
  33677. <p/>
  33678. The default {@link DelegationTokenAuthenticator} is the {@link
  33679. KerberosDelegationTokenAuthenticator} class which supports
  33680. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  33681. the {@link PseudoDelegationTokenAuthenticator} class.
  33682. <p/>
  33683. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  33684. </doc>
  33685. </class>
  33686. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  33687. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  33688. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  33689. abstract="false"
  33690. static="true" final="false" visibility="public"
  33691. deprecated="not deprecated">
  33692. <constructor name="DelegationTokenAuthenticatedURL.Token"
  33693. static="false" final="false" visibility="public"
  33694. deprecated="not deprecated">
  33695. </constructor>
  33696. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33697. abstract="false" native="false" synchronized="false"
  33698. static="false" final="false" visibility="public"
  33699. deprecated="not deprecated">
  33700. </method>
  33701. <method name="setDelegationToken"
  33702. abstract="false" native="false" synchronized="false"
  33703. static="false" final="false" visibility="public"
  33704. deprecated="not deprecated">
  33705. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  33706. </method>
  33707. <doc>
  33708. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  33709. </doc>
  33710. </class>
  33711. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  33712. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  33713. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  33714. abstract="true"
  33715. static="false" final="false" visibility="public"
  33716. deprecated="not deprecated">
  33717. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  33718. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  33719. static="false" final="false" visibility="public"
  33720. deprecated="not deprecated">
  33721. </constructor>
  33722. <method name="setConnectionConfigurator"
  33723. abstract="false" native="false" synchronized="false"
  33724. static="false" final="false" visibility="public"
  33725. deprecated="not deprecated">
  33726. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  33727. </method>
  33728. <method name="authenticate"
  33729. abstract="false" native="false" synchronized="false"
  33730. static="false" final="false" visibility="public"
  33731. deprecated="not deprecated">
  33732. <param name="url" type="java.net.URL"/>
  33733. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33734. <exception name="IOException" type="java.io.IOException"/>
  33735. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33736. </method>
  33737. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33738. abstract="false" native="false" synchronized="false"
  33739. static="false" final="false" visibility="public"
  33740. deprecated="not deprecated">
  33741. <param name="url" type="java.net.URL"/>
  33742. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33743. <param name="renewer" type="java.lang.String"/>
  33744. <exception name="IOException" type="java.io.IOException"/>
  33745. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33746. <doc>
  33747. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33748. for authentication.
  33749. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33750. supported.
  33751. @param token the authentication token being used for the user where the
  33752. Delegation token will be stored.
  33753. @param renewer the renewer user.
  33754. @throws IOException if an IO error occurred.
  33755. @throws AuthenticationException if an authentication exception occurred.]]>
  33756. </doc>
  33757. </method>
  33758. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  33759. abstract="false" native="false" synchronized="false"
  33760. static="false" final="false" visibility="public"
  33761. deprecated="not deprecated">
  33762. <param name="url" type="java.net.URL"/>
  33763. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33764. <param name="renewer" type="java.lang.String"/>
  33765. <param name="doAsUser" type="java.lang.String"/>
  33766. <exception name="IOException" type="java.io.IOException"/>
  33767. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33768. <doc>
  33769. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  33770. for authentication.
  33771. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  33772. supported.
  33773. @param token the authentication token being used for the user where the
  33774. Delegation token will be stored.
  33775. @param renewer the renewer user.
  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="renewDelegationToken" return="long"
  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.authentication.client.AuthenticatedURL.Token"/>
  33787. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33788. <exception name="IOException" type="java.io.IOException"/>
  33789. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33790. <doc>
  33791. <![CDATA[Renews a delegation token from the server end-point using the
  33792. configured <code>Authenticator</code> for authentication.
  33793. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33794. supported.
  33795. @param token the authentication token with the Delegation Token to renew.
  33796. @throws IOException if an IO error occurred.
  33797. @throws AuthenticationException if an authentication exception occurred.]]>
  33798. </doc>
  33799. </method>
  33800. <method name="renewDelegationToken" return="long"
  33801. abstract="false" native="false" synchronized="false"
  33802. static="false" final="false" visibility="public"
  33803. deprecated="not deprecated">
  33804. <param name="url" type="java.net.URL"/>
  33805. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33806. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33807. <param name="doAsUser" type="java.lang.String"/>
  33808. <exception name="IOException" type="java.io.IOException"/>
  33809. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  33810. <doc>
  33811. <![CDATA[Renews a delegation token from the server end-point using the
  33812. configured <code>Authenticator</code> for authentication.
  33813. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  33814. supported.
  33815. @param token the authentication token with the Delegation Token to renew.
  33816. @param doAsUser the user to do as, which will be the token owner.
  33817. @throws IOException if an IO error occurred.
  33818. @throws AuthenticationException if an authentication exception occurred.]]>
  33819. </doc>
  33820. </method>
  33821. <method name="cancelDelegationToken"
  33822. abstract="false" native="false" synchronized="false"
  33823. static="false" final="false" visibility="public"
  33824. deprecated="not deprecated">
  33825. <param name="url" type="java.net.URL"/>
  33826. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33827. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33828. <exception name="IOException" type="java.io.IOException"/>
  33829. <doc>
  33830. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33831. being authenticated by the configured <code>Authenticator</code>.
  33832. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33833. are supported.
  33834. @param token the authentication token with the Delegation Token to cancel.
  33835. @throws IOException if an IO error occurred.]]>
  33836. </doc>
  33837. </method>
  33838. <method name="cancelDelegationToken"
  33839. abstract="false" native="false" synchronized="false"
  33840. static="false" final="false" visibility="public"
  33841. deprecated="not deprecated">
  33842. <param name="url" type="java.net.URL"/>
  33843. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  33844. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  33845. <param name="doAsUser" type="java.lang.String"/>
  33846. <exception name="IOException" type="java.io.IOException"/>
  33847. <doc>
  33848. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  33849. being authenticated by the configured <code>Authenticator</code>.
  33850. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  33851. are supported.
  33852. @param token the authentication token with the Delegation Token to cancel.
  33853. @param doAsUser the user to do as, which will be the token owner.
  33854. @throws IOException if an IO error occurred.]]>
  33855. </doc>
  33856. </method>
  33857. <field name="OP_PARAM" type="java.lang.String"
  33858. transient="false" volatile="false"
  33859. static="true" final="true" visibility="public"
  33860. deprecated="not deprecated">
  33861. </field>
  33862. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  33863. transient="false" volatile="false"
  33864. static="true" final="true" visibility="public"
  33865. deprecated="not deprecated">
  33866. </field>
  33867. <field name="DELEGATION_PARAM" type="java.lang.String"
  33868. transient="false" volatile="false"
  33869. static="true" final="true" visibility="public"
  33870. deprecated="not deprecated">
  33871. </field>
  33872. <field name="TOKEN_PARAM" type="java.lang.String"
  33873. transient="false" volatile="false"
  33874. static="true" final="true" visibility="public"
  33875. deprecated="not deprecated">
  33876. </field>
  33877. <field name="RENEWER_PARAM" type="java.lang.String"
  33878. transient="false" volatile="false"
  33879. static="true" final="true" visibility="public"
  33880. deprecated="not deprecated">
  33881. </field>
  33882. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  33883. transient="false" volatile="false"
  33884. static="true" final="true" visibility="public"
  33885. deprecated="not deprecated">
  33886. </field>
  33887. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  33888. transient="false" volatile="false"
  33889. static="true" final="true" visibility="public"
  33890. deprecated="not deprecated">
  33891. </field>
  33892. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  33893. transient="false" volatile="false"
  33894. static="true" final="true" visibility="public"
  33895. deprecated="not deprecated">
  33896. </field>
  33897. <doc>
  33898. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  33899. Delegation Token support.]]>
  33900. </doc>
  33901. </class>
  33902. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  33903. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  33904. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  33905. abstract="false"
  33906. static="false" final="false" visibility="public"
  33907. deprecated="not deprecated">
  33908. <constructor name="KerberosDelegationTokenAuthenticator"
  33909. static="false" final="false" visibility="public"
  33910. deprecated="not deprecated">
  33911. </constructor>
  33912. <doc>
  33913. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  33914. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  33915. Token operations.
  33916. <p/>
  33917. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  33918. endpoint does not trigger a SPNEGO authentication]]>
  33919. </doc>
  33920. </class>
  33921. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  33922. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  33923. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  33924. abstract="false"
  33925. static="false" final="false" visibility="public"
  33926. deprecated="not deprecated">
  33927. <constructor name="PseudoDelegationTokenAuthenticator"
  33928. static="false" final="false" visibility="public"
  33929. deprecated="not deprecated">
  33930. </constructor>
  33931. <doc>
  33932. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  33933. Hadoop's pseudo authentication mechanism that accepts
  33934. the user name specified as a query string parameter and support for Hadoop
  33935. Delegation Token operations.
  33936. <p/>
  33937. This mimics the model of Hadoop Simple authentication trusting the
  33938. {@link UserGroupInformation#getCurrentUser()} value.]]>
  33939. </doc>
  33940. </class>
  33941. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  33942. </package>
  33943. <package name="org.apache.hadoop.service">
  33944. <!-- start class org.apache.hadoop.service.AbstractService -->
  33945. <class name="AbstractService" extends="java.lang.Object"
  33946. abstract="true"
  33947. static="false" final="false" visibility="public"
  33948. deprecated="not deprecated">
  33949. <implements name="org.apache.hadoop.service.Service"/>
  33950. <constructor name="AbstractService" type="java.lang.String"
  33951. static="false" final="false" visibility="public"
  33952. deprecated="not deprecated">
  33953. <doc>
  33954. <![CDATA[Construct the service.
  33955. @param name service name]]>
  33956. </doc>
  33957. </constructor>
  33958. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  33959. abstract="false" native="false" synchronized="false"
  33960. static="false" final="true" visibility="public"
  33961. deprecated="not deprecated">
  33962. </method>
  33963. <method name="getFailureCause" return="java.lang.Throwable"
  33964. abstract="false" native="false" synchronized="true"
  33965. static="false" final="true" visibility="public"
  33966. deprecated="not deprecated">
  33967. </method>
  33968. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  33969. abstract="false" native="false" synchronized="true"
  33970. static="false" final="false" visibility="public"
  33971. deprecated="not deprecated">
  33972. </method>
  33973. <method name="setConfig"
  33974. abstract="false" native="false" synchronized="false"
  33975. static="false" final="false" visibility="protected"
  33976. deprecated="not deprecated">
  33977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33978. <doc>
  33979. <![CDATA[Set the configuration for this service.
  33980. This method is called during {@link #init(Configuration)}
  33981. and should only be needed if for some reason a service implementation
  33982. needs to override that initial setting -for example replacing
  33983. it with a new subclass of {@link Configuration}
  33984. @param conf new configuration.]]>
  33985. </doc>
  33986. </method>
  33987. <method name="init"
  33988. abstract="false" native="false" synchronized="false"
  33989. static="false" final="false" visibility="public"
  33990. deprecated="not deprecated">
  33991. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33992. <doc>
  33993. <![CDATA[{@inheritDoc}
  33994. This invokes {@link #serviceInit}
  33995. @param conf the configuration of the service. This must not be null
  33996. @throws ServiceStateException if the configuration was null,
  33997. the state change not permitted, or something else went wrong]]>
  33998. </doc>
  33999. </method>
  34000. <method name="start"
  34001. abstract="false" native="false" synchronized="false"
  34002. static="false" final="false" visibility="public"
  34003. deprecated="not deprecated">
  34004. <doc>
  34005. <![CDATA[{@inheritDoc}
  34006. @throws ServiceStateException if the current service state does not permit
  34007. this action]]>
  34008. </doc>
  34009. </method>
  34010. <method name="stop"
  34011. abstract="false" native="false" synchronized="false"
  34012. static="false" final="false" visibility="public"
  34013. deprecated="not deprecated">
  34014. <doc>
  34015. <![CDATA[{@inheritDoc}]]>
  34016. </doc>
  34017. </method>
  34018. <method name="close"
  34019. abstract="false" native="false" synchronized="false"
  34020. static="false" final="true" visibility="public"
  34021. deprecated="not deprecated">
  34022. <exception name="IOException" type="java.io.IOException"/>
  34023. <doc>
  34024. <![CDATA[Relay to {@link #stop()}
  34025. @throws IOException]]>
  34026. </doc>
  34027. </method>
  34028. <method name="noteFailure"
  34029. abstract="false" native="false" synchronized="false"
  34030. static="false" final="true" visibility="protected"
  34031. deprecated="not deprecated">
  34032. <param name="exception" type="java.lang.Exception"/>
  34033. <doc>
  34034. <![CDATA[Failure handling: record the exception
  34035. that triggered it -if there was not one already.
  34036. Services are free to call this themselves.
  34037. @param exception the exception]]>
  34038. </doc>
  34039. </method>
  34040. <method name="waitForServiceToStop" return="boolean"
  34041. abstract="false" native="false" synchronized="false"
  34042. static="false" final="true" visibility="public"
  34043. deprecated="not deprecated">
  34044. <param name="timeout" type="long"/>
  34045. </method>
  34046. <method name="serviceInit"
  34047. abstract="false" native="false" synchronized="false"
  34048. static="false" final="false" visibility="protected"
  34049. deprecated="not deprecated">
  34050. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34051. <exception name="Exception" type="java.lang.Exception"/>
  34052. <doc>
  34053. <![CDATA[All initialization code needed by a service.
  34054. This method will only ever be called once during the lifecycle of
  34055. a specific service instance.
  34056. Implementations do not need to be synchronized as the logic
  34057. in {@link #init(Configuration)} prevents re-entrancy.
  34058. The base implementation checks to see if the subclass has created
  34059. a new configuration instance, and if so, updates the base class value
  34060. @param conf configuration
  34061. @throws Exception on a failure -these will be caught,
  34062. possibly wrapped, and wil; trigger a service stop]]>
  34063. </doc>
  34064. </method>
  34065. <method name="serviceStart"
  34066. abstract="false" native="false" synchronized="false"
  34067. static="false" final="false" visibility="protected"
  34068. deprecated="not deprecated">
  34069. <exception name="Exception" type="java.lang.Exception"/>
  34070. <doc>
  34071. <![CDATA[Actions called during the INITED to STARTED transition.
  34072. This method will only ever be called once during the lifecycle of
  34073. a specific service instance.
  34074. Implementations do not need to be synchronized as the logic
  34075. in {@link #start()} prevents re-entrancy.
  34076. @throws Exception if needed -these will be caught,
  34077. wrapped, and trigger a service stop]]>
  34078. </doc>
  34079. </method>
  34080. <method name="serviceStop"
  34081. abstract="false" native="false" synchronized="false"
  34082. static="false" final="false" visibility="protected"
  34083. deprecated="not deprecated">
  34084. <exception name="Exception" type="java.lang.Exception"/>
  34085. <doc>
  34086. <![CDATA[Actions called during the transition to the STOPPED state.
  34087. This method will only ever be called once during the lifecycle of
  34088. a specific service instance.
  34089. Implementations do not need to be synchronized as the logic
  34090. in {@link #stop()} prevents re-entrancy.
  34091. Implementations MUST write this to be robust against failures, including
  34092. checks for null references -and for the first failure to not stop other
  34093. attempts to shut down parts of the service.
  34094. @throws Exception if needed -these will be caught and logged.]]>
  34095. </doc>
  34096. </method>
  34097. <method name="registerServiceListener"
  34098. abstract="false" native="false" synchronized="false"
  34099. static="false" final="false" visibility="public"
  34100. deprecated="not deprecated">
  34101. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34102. </method>
  34103. <method name="unregisterServiceListener"
  34104. abstract="false" native="false" synchronized="false"
  34105. static="false" final="false" visibility="public"
  34106. deprecated="not deprecated">
  34107. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34108. </method>
  34109. <method name="registerGlobalListener"
  34110. abstract="false" native="false" synchronized="false"
  34111. static="true" final="false" visibility="public"
  34112. deprecated="not deprecated">
  34113. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34114. <doc>
  34115. <![CDATA[Register a global listener, which receives notifications
  34116. from the state change events of all services in the JVM
  34117. @param l listener]]>
  34118. </doc>
  34119. </method>
  34120. <method name="unregisterGlobalListener" return="boolean"
  34121. abstract="false" native="false" synchronized="false"
  34122. static="true" final="false" visibility="public"
  34123. deprecated="not deprecated">
  34124. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34125. <doc>
  34126. <![CDATA[unregister a global listener.
  34127. @param l listener to unregister
  34128. @return true if the listener was found (and then deleted)]]>
  34129. </doc>
  34130. </method>
  34131. <method name="getName" return="java.lang.String"
  34132. abstract="false" native="false" synchronized="false"
  34133. static="false" final="false" visibility="public"
  34134. deprecated="not deprecated">
  34135. </method>
  34136. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  34137. abstract="false" native="false" synchronized="true"
  34138. static="false" final="false" visibility="public"
  34139. deprecated="not deprecated">
  34140. </method>
  34141. <method name="getStartTime" return="long"
  34142. abstract="false" native="false" synchronized="false"
  34143. static="false" final="false" visibility="public"
  34144. deprecated="not deprecated">
  34145. </method>
  34146. <method name="getLifecycleHistory" return="java.util.List"
  34147. abstract="false" native="false" synchronized="true"
  34148. static="false" final="false" visibility="public"
  34149. deprecated="not deprecated">
  34150. </method>
  34151. <method name="isInState" return="boolean"
  34152. abstract="false" native="false" synchronized="false"
  34153. static="false" final="true" visibility="public"
  34154. deprecated="not deprecated">
  34155. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  34156. </method>
  34157. <method name="toString" return="java.lang.String"
  34158. abstract="false" native="false" synchronized="false"
  34159. static="false" final="false" visibility="public"
  34160. deprecated="not deprecated">
  34161. </method>
  34162. <method name="putBlocker"
  34163. abstract="false" native="false" synchronized="false"
  34164. static="false" final="false" visibility="protected"
  34165. deprecated="not deprecated">
  34166. <param name="name" type="java.lang.String"/>
  34167. <param name="details" type="java.lang.String"/>
  34168. <doc>
  34169. <![CDATA[Put a blocker to the blocker map -replacing any
  34170. with the same name.
  34171. @param name blocker name
  34172. @param details any specifics on the block. This must be non-null.]]>
  34173. </doc>
  34174. </method>
  34175. <method name="removeBlocker"
  34176. abstract="false" native="false" synchronized="false"
  34177. static="false" final="false" visibility="public"
  34178. deprecated="not deprecated">
  34179. <param name="name" type="java.lang.String"/>
  34180. <doc>
  34181. <![CDATA[Remove a blocker from the blocker map -
  34182. this is a no-op if the blocker is not present
  34183. @param name the name of the blocker]]>
  34184. </doc>
  34185. </method>
  34186. <method name="getBlockers" return="java.util.Map"
  34187. abstract="false" native="false" synchronized="false"
  34188. static="false" final="false" visibility="public"
  34189. deprecated="not deprecated">
  34190. </method>
  34191. <doc>
  34192. <![CDATA[This is the base implementation class for services.]]>
  34193. </doc>
  34194. </class>
  34195. <!-- end class org.apache.hadoop.service.AbstractService -->
  34196. <!-- start class org.apache.hadoop.service.CompositeService -->
  34197. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  34198. abstract="false"
  34199. static="false" final="false" visibility="public"
  34200. deprecated="not deprecated">
  34201. <constructor name="CompositeService" type="java.lang.String"
  34202. static="false" final="false" visibility="public"
  34203. deprecated="not deprecated">
  34204. </constructor>
  34205. <method name="getServices" return="java.util.List"
  34206. abstract="false" native="false" synchronized="false"
  34207. static="false" final="false" visibility="public"
  34208. deprecated="not deprecated">
  34209. <doc>
  34210. <![CDATA[Get a cloned list of services
  34211. @return a list of child services at the time of invocation -
  34212. added services will not be picked up.]]>
  34213. </doc>
  34214. </method>
  34215. <method name="addService"
  34216. abstract="false" native="false" synchronized="false"
  34217. static="false" final="false" visibility="protected"
  34218. deprecated="not deprecated">
  34219. <param name="service" type="org.apache.hadoop.service.Service"/>
  34220. <doc>
  34221. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  34222. {@link CompositeService}
  34223. @param service the {@link Service} to be added]]>
  34224. </doc>
  34225. </method>
  34226. <method name="addIfService" return="boolean"
  34227. abstract="false" native="false" synchronized="false"
  34228. static="false" final="false" visibility="protected"
  34229. deprecated="not deprecated">
  34230. <param name="object" type="java.lang.Object"/>
  34231. <doc>
  34232. <![CDATA[If the passed object is an instance of {@link Service},
  34233. add it to the list of services managed by this {@link CompositeService}
  34234. @param object
  34235. @return true if a service is added, false otherwise.]]>
  34236. </doc>
  34237. </method>
  34238. <method name="removeService" return="boolean"
  34239. abstract="false" native="false" synchronized="true"
  34240. static="false" final="false" visibility="protected"
  34241. deprecated="not deprecated">
  34242. <param name="service" type="org.apache.hadoop.service.Service"/>
  34243. </method>
  34244. <method name="serviceInit"
  34245. abstract="false" native="false" synchronized="false"
  34246. static="false" final="false" visibility="protected"
  34247. deprecated="not deprecated">
  34248. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34249. <exception name="Exception" type="java.lang.Exception"/>
  34250. </method>
  34251. <method name="serviceStart"
  34252. abstract="false" native="false" synchronized="false"
  34253. static="false" final="false" visibility="protected"
  34254. deprecated="not deprecated">
  34255. <exception name="Exception" type="java.lang.Exception"/>
  34256. </method>
  34257. <method name="serviceStop"
  34258. abstract="false" native="false" synchronized="false"
  34259. static="false" final="false" visibility="protected"
  34260. deprecated="not deprecated">
  34261. <exception name="Exception" type="java.lang.Exception"/>
  34262. </method>
  34263. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  34264. transient="false" volatile="false"
  34265. static="true" final="true" visibility="protected"
  34266. deprecated="not deprecated">
  34267. <doc>
  34268. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  34269. only try to close started services (which assumes
  34270. that the service implementations may not handle the stop() operation
  34271. except when started.
  34272. Irrespective of this policy, if a child service fails during
  34273. its init() or start() operations, it will have stop() called on it.]]>
  34274. </doc>
  34275. </field>
  34276. <doc>
  34277. <![CDATA[Composition of services.]]>
  34278. </doc>
  34279. </class>
  34280. <!-- end class org.apache.hadoop.service.CompositeService -->
  34281. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  34282. <class name="LifecycleEvent" extends="java.lang.Object"
  34283. abstract="false"
  34284. static="false" final="false" visibility="public"
  34285. deprecated="not deprecated">
  34286. <implements name="java.io.Serializable"/>
  34287. <constructor name="LifecycleEvent"
  34288. static="false" final="false" visibility="public"
  34289. deprecated="not deprecated">
  34290. </constructor>
  34291. <field name="time" type="long"
  34292. transient="false" volatile="false"
  34293. static="false" final="false" visibility="public"
  34294. deprecated="not deprecated">
  34295. <doc>
  34296. <![CDATA[Local time in milliseconds when the event occurred]]>
  34297. </doc>
  34298. </field>
  34299. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  34300. transient="false" volatile="false"
  34301. static="false" final="false" visibility="public"
  34302. deprecated="not deprecated">
  34303. <doc>
  34304. <![CDATA[new state]]>
  34305. </doc>
  34306. </field>
  34307. <doc>
  34308. <![CDATA[A serializable lifecycle event: the time a state
  34309. transition occurred, and what state was entered.]]>
  34310. </doc>
  34311. </class>
  34312. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  34313. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  34314. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  34315. abstract="false"
  34316. static="false" final="false" visibility="public"
  34317. deprecated="not deprecated">
  34318. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34319. <constructor name="LoggingStateChangeListener" type="org.apache.commons.logging.Log"
  34320. static="false" final="false" visibility="public"
  34321. deprecated="not deprecated">
  34322. <doc>
  34323. <![CDATA[Log events to the given log
  34324. @param log destination for events]]>
  34325. </doc>
  34326. </constructor>
  34327. <constructor name="LoggingStateChangeListener"
  34328. static="false" final="false" visibility="public"
  34329. deprecated="not deprecated">
  34330. <doc>
  34331. <![CDATA[Log events to the static log for this class]]>
  34332. </doc>
  34333. </constructor>
  34334. <method name="stateChanged"
  34335. abstract="false" native="false" synchronized="false"
  34336. static="false" final="false" visibility="public"
  34337. deprecated="not deprecated">
  34338. <param name="service" type="org.apache.hadoop.service.Service"/>
  34339. <doc>
  34340. <![CDATA[Callback for a state change event: log it
  34341. @param service the service that has changed.]]>
  34342. </doc>
  34343. </method>
  34344. <doc>
  34345. <![CDATA[This is a state change listener that logs events at INFO level]]>
  34346. </doc>
  34347. </class>
  34348. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  34349. <!-- start interface org.apache.hadoop.service.Service -->
  34350. <interface name="Service" abstract="true"
  34351. static="false" final="false" visibility="public"
  34352. deprecated="not deprecated">
  34353. <implements name="java.io.Closeable"/>
  34354. <method name="init"
  34355. abstract="false" native="false" synchronized="false"
  34356. static="false" final="false" visibility="public"
  34357. deprecated="not deprecated">
  34358. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  34359. <doc>
  34360. <![CDATA[Initialize the service.
  34361. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  34362. unless the operation failed and an exception was raised, in which case
  34363. {@link #stop()} MUST be invoked and the service enter the state
  34364. {@link STATE#STOPPED}.
  34365. @param config the configuration of the service
  34366. @throws RuntimeException on any failure during the operation]]>
  34367. </doc>
  34368. </method>
  34369. <method name="start"
  34370. abstract="false" native="false" synchronized="false"
  34371. static="false" final="false" visibility="public"
  34372. deprecated="not deprecated">
  34373. <doc>
  34374. <![CDATA[Start the service.
  34375. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  34376. unless the operation failed and an exception was raised, in which case
  34377. {@link #stop()} MUST be invoked and the service enter the state
  34378. {@link STATE#STOPPED}.
  34379. @throws RuntimeException on any failure during the operation]]>
  34380. </doc>
  34381. </method>
  34382. <method name="stop"
  34383. abstract="false" native="false" synchronized="false"
  34384. static="false" final="false" visibility="public"
  34385. deprecated="not deprecated">
  34386. <doc>
  34387. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  34388. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  34389. to stop all parts of the service.
  34390. The implementation must be designed to complete regardless of the service
  34391. state, including the initialized/uninitialized state of all its internal
  34392. fields.
  34393. @throws RuntimeException on any failure during the stop operation]]>
  34394. </doc>
  34395. </method>
  34396. <method name="close"
  34397. abstract="false" native="false" synchronized="false"
  34398. static="false" final="false" visibility="public"
  34399. deprecated="not deprecated">
  34400. <exception name="IOException" type="java.io.IOException"/>
  34401. <doc>
  34402. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  34403. clauses.
  34404. Implementation classes MUST relay this directly to {@link #stop()}
  34405. @throws IOException never
  34406. @throws RuntimeException on any failure during the stop operation]]>
  34407. </doc>
  34408. </method>
  34409. <method name="registerServiceListener"
  34410. abstract="false" native="false" synchronized="false"
  34411. static="false" final="false" visibility="public"
  34412. deprecated="not deprecated">
  34413. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34414. <doc>
  34415. <![CDATA[Register a listener to the service state change events.
  34416. If the supplied listener is already listening to this service,
  34417. this method is a no-op.
  34418. @param listener a new listener]]>
  34419. </doc>
  34420. </method>
  34421. <method name="unregisterServiceListener"
  34422. abstract="false" native="false" synchronized="false"
  34423. static="false" final="false" visibility="public"
  34424. deprecated="not deprecated">
  34425. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  34426. <doc>
  34427. <![CDATA[Unregister a previously registered listener of the service state
  34428. change events. No-op if the listener is already unregistered.
  34429. @param listener the listener to unregister.]]>
  34430. </doc>
  34431. </method>
  34432. <method name="getName" return="java.lang.String"
  34433. abstract="false" native="false" synchronized="false"
  34434. static="false" final="false" visibility="public"
  34435. deprecated="not deprecated">
  34436. <doc>
  34437. <![CDATA[Get the name of this service.
  34438. @return the service name]]>
  34439. </doc>
  34440. </method>
  34441. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  34442. abstract="false" native="false" synchronized="false"
  34443. static="false" final="false" visibility="public"
  34444. deprecated="not deprecated">
  34445. <doc>
  34446. <![CDATA[Get the configuration of this service.
  34447. This is normally not a clone and may be manipulated, though there are no
  34448. guarantees as to what the consequences of such actions may be
  34449. @return the current configuration, unless a specific implentation chooses
  34450. otherwise.]]>
  34451. </doc>
  34452. </method>
  34453. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  34454. abstract="false" native="false" synchronized="false"
  34455. static="false" final="false" visibility="public"
  34456. deprecated="not deprecated">
  34457. <doc>
  34458. <![CDATA[Get the current service state
  34459. @return the state of the service]]>
  34460. </doc>
  34461. </method>
  34462. <method name="getStartTime" return="long"
  34463. abstract="false" native="false" synchronized="false"
  34464. static="false" final="false" visibility="public"
  34465. deprecated="not deprecated">
  34466. <doc>
  34467. <![CDATA[Get the service start time
  34468. @return the start time of the service. This will be zero if the service
  34469. has not yet been started.]]>
  34470. </doc>
  34471. </method>
  34472. <method name="isInState" return="boolean"
  34473. abstract="false" native="false" synchronized="false"
  34474. static="false" final="false" visibility="public"
  34475. deprecated="not deprecated">
  34476. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  34477. <doc>
  34478. <![CDATA[Query to see if the service is in a specific state.
  34479. In a multi-threaded system, the state may not hold for very long.
  34480. @param state the expected state
  34481. @return true if, at the time of invocation, the service was in that state.]]>
  34482. </doc>
  34483. </method>
  34484. <method name="getFailureCause" return="java.lang.Throwable"
  34485. abstract="false" native="false" synchronized="false"
  34486. static="false" final="false" visibility="public"
  34487. deprecated="not deprecated">
  34488. <doc>
  34489. <![CDATA[Get the first exception raised during the service failure. If null,
  34490. no exception was logged
  34491. @return the failure logged during a transition to the stopped state]]>
  34492. </doc>
  34493. </method>
  34494. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  34495. abstract="false" native="false" synchronized="false"
  34496. static="false" final="false" visibility="public"
  34497. deprecated="not deprecated">
  34498. <doc>
  34499. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  34500. @return the state or null if there was no failure]]>
  34501. </doc>
  34502. </method>
  34503. <method name="waitForServiceToStop" return="boolean"
  34504. abstract="false" native="false" synchronized="false"
  34505. static="false" final="false" visibility="public"
  34506. deprecated="not deprecated">
  34507. <param name="timeout" type="long"/>
  34508. <doc>
  34509. <![CDATA[Block waiting for the service to stop; uses the termination notification
  34510. object to do so.
  34511. This method will only return after all the service stop actions
  34512. have been executed (to success or failure), or the timeout elapsed
  34513. This method can be called before the service is inited or started; this is
  34514. to eliminate any race condition with the service stopping before
  34515. this event occurs.
  34516. @param timeout timeout in milliseconds. A value of zero means "forever"
  34517. @return true iff the service stopped in the time period]]>
  34518. </doc>
  34519. </method>
  34520. <method name="getLifecycleHistory" return="java.util.List"
  34521. abstract="false" native="false" synchronized="false"
  34522. static="false" final="false" visibility="public"
  34523. deprecated="not deprecated">
  34524. <doc>
  34525. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  34526. @return a possibly empty but never null list of lifecycle events.]]>
  34527. </doc>
  34528. </method>
  34529. <method name="getBlockers" return="java.util.Map"
  34530. abstract="false" native="false" synchronized="false"
  34531. static="false" final="false" visibility="public"
  34532. deprecated="not deprecated">
  34533. <doc>
  34534. <![CDATA[Get the blockers on a service -remote dependencies
  34535. that are stopping the service from being <i>live</i>.
  34536. @return a (snapshotted) map of blocker name-&gt;description values]]>
  34537. </doc>
  34538. </method>
  34539. <doc>
  34540. <![CDATA[Service LifeCycle.]]>
  34541. </doc>
  34542. </interface>
  34543. <!-- end interface org.apache.hadoop.service.Service -->
  34544. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  34545. <class name="ServiceOperations" extends="java.lang.Object"
  34546. abstract="false"
  34547. static="false" final="true" visibility="public"
  34548. deprecated="not deprecated">
  34549. <method name="stop"
  34550. abstract="false" native="false" synchronized="false"
  34551. static="true" final="false" visibility="public"
  34552. deprecated="not deprecated">
  34553. <param name="service" type="org.apache.hadoop.service.Service"/>
  34554. <doc>
  34555. <![CDATA[Stop a service.
  34556. <p/>Do nothing if the service is null or not
  34557. in a state in which it can be/needs to be stopped.
  34558. <p/>
  34559. The service state is checked <i>before</i> the operation begins.
  34560. This process is <i>not</i> thread safe.
  34561. @param service a service or null]]>
  34562. </doc>
  34563. </method>
  34564. <method name="stopQuietly" return="java.lang.Exception"
  34565. abstract="false" native="false" synchronized="false"
  34566. static="true" final="false" visibility="public"
  34567. deprecated="not deprecated">
  34568. <param name="service" type="org.apache.hadoop.service.Service"/>
  34569. <doc>
  34570. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  34571. logged at warn level. (but not Throwables). This operation is intended to
  34572. be used in cleanup operations
  34573. @param service a service; may be null
  34574. @return any exception that was caught; null if none was.]]>
  34575. </doc>
  34576. </method>
  34577. <method name="stopQuietly" return="java.lang.Exception"
  34578. abstract="false" native="false" synchronized="false"
  34579. static="true" final="false" visibility="public"
  34580. deprecated="not deprecated">
  34581. <param name="log" type="org.apache.commons.logging.Log"/>
  34582. <param name="service" type="org.apache.hadoop.service.Service"/>
  34583. <doc>
  34584. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  34585. logged at warn level. (but not Throwables). This operation is intended to
  34586. be used in cleanup operations
  34587. @param log the log to warn at
  34588. @param service a service; may be null
  34589. @return any exception that was caught; null if none was.
  34590. @see ServiceOperations#stopQuietly(Service)]]>
  34591. </doc>
  34592. </method>
  34593. <doc>
  34594. <![CDATA[This class contains a set of methods to work with services, especially
  34595. to walk them through their lifecycle.]]>
  34596. </doc>
  34597. </class>
  34598. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  34599. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  34600. <interface name="ServiceStateChangeListener" abstract="true"
  34601. static="false" final="false" visibility="public"
  34602. deprecated="not deprecated">
  34603. <method name="stateChanged"
  34604. abstract="false" native="false" synchronized="false"
  34605. static="false" final="false" visibility="public"
  34606. deprecated="not deprecated">
  34607. <param name="service" type="org.apache.hadoop.service.Service"/>
  34608. <doc>
  34609. <![CDATA[Callback to notify of a state change. The service will already
  34610. have changed state before this callback is invoked.
  34611. This operation is invoked on the thread that initiated the state change,
  34612. while the service itself in in a sychronized section.
  34613. <ol>
  34614. <li>Any long-lived operation here will prevent the service state
  34615. change from completing in a timely manner.</li>
  34616. <li>If another thread is somehow invoked from the listener, and
  34617. that thread invokes the methods of the service (including
  34618. subclass-specific methods), there is a risk of a deadlock.</li>
  34619. </ol>
  34620. @param service the service that has changed.]]>
  34621. </doc>
  34622. </method>
  34623. <doc>
  34624. <![CDATA[Interface to notify state changes of a service.]]>
  34625. </doc>
  34626. </interface>
  34627. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  34628. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  34629. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  34630. abstract="false"
  34631. static="false" final="false" visibility="public"
  34632. deprecated="not deprecated">
  34633. <constructor name="ServiceStateException" type="java.lang.String"
  34634. static="false" final="false" visibility="public"
  34635. deprecated="not deprecated">
  34636. </constructor>
  34637. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  34638. static="false" final="false" visibility="public"
  34639. deprecated="not deprecated">
  34640. </constructor>
  34641. <constructor name="ServiceStateException" type="java.lang.Throwable"
  34642. static="false" final="false" visibility="public"
  34643. deprecated="not deprecated">
  34644. </constructor>
  34645. <method name="convert" return="java.lang.RuntimeException"
  34646. abstract="false" native="false" synchronized="false"
  34647. static="true" final="false" visibility="public"
  34648. deprecated="not deprecated">
  34649. <param name="fault" type="java.lang.Throwable"/>
  34650. <doc>
  34651. <![CDATA[Convert any exception into a {@link RuntimeException}.
  34652. If the caught exception is already of that type, it is typecast to a
  34653. {@link RuntimeException} and returned.
  34654. All other exception types are wrapped in a new instance of
  34655. ServiceStateException
  34656. @param fault exception or throwable
  34657. @return a ServiceStateException to rethrow]]>
  34658. </doc>
  34659. </method>
  34660. <method name="convert" return="java.lang.RuntimeException"
  34661. abstract="false" native="false" synchronized="false"
  34662. static="true" final="false" visibility="public"
  34663. deprecated="not deprecated">
  34664. <param name="text" type="java.lang.String"/>
  34665. <param name="fault" type="java.lang.Throwable"/>
  34666. <doc>
  34667. <![CDATA[Convert any exception into a {@link RuntimeException}.
  34668. If the caught exception is already of that type, it is typecast to a
  34669. {@link RuntimeException} and returned.
  34670. All other exception types are wrapped in a new instance of
  34671. ServiceStateException
  34672. @param text text to use if a new exception is created
  34673. @param fault exception or throwable
  34674. @return a ServiceStateException to rethrow]]>
  34675. </doc>
  34676. </method>
  34677. <doc>
  34678. <![CDATA[Exception that is raised on state change operations.]]>
  34679. </doc>
  34680. </class>
  34681. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  34682. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  34683. <class name="ServiceStateModel" extends="java.lang.Object"
  34684. abstract="false"
  34685. static="false" final="false" visibility="public"
  34686. deprecated="not deprecated">
  34687. <constructor name="ServiceStateModel" type="java.lang.String"
  34688. static="false" final="false" visibility="public"
  34689. deprecated="not deprecated">
  34690. <doc>
  34691. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  34692. state.]]>
  34693. </doc>
  34694. </constructor>
  34695. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  34696. static="false" final="false" visibility="public"
  34697. deprecated="not deprecated">
  34698. <doc>
  34699. <![CDATA[Create a service state model instance in the chosen state
  34700. @param state the starting state]]>
  34701. </doc>
  34702. </constructor>
  34703. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  34704. abstract="false" native="false" synchronized="false"
  34705. static="false" final="false" visibility="public"
  34706. deprecated="not deprecated">
  34707. <doc>
  34708. <![CDATA[Query the service state. This is a non-blocking operation.
  34709. @return the state]]>
  34710. </doc>
  34711. </method>
  34712. <method name="isInState" return="boolean"
  34713. abstract="false" native="false" synchronized="false"
  34714. static="false" final="false" visibility="public"
  34715. deprecated="not deprecated">
  34716. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34717. <doc>
  34718. <![CDATA[Query that the state is in a specific state
  34719. @param proposed proposed new state
  34720. @return the state]]>
  34721. </doc>
  34722. </method>
  34723. <method name="ensureCurrentState"
  34724. abstract="false" native="false" synchronized="false"
  34725. static="false" final="false" visibility="public"
  34726. deprecated="not deprecated">
  34727. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  34728. <doc>
  34729. <![CDATA[Verify that that a service is in a given state.
  34730. @param expectedState the desired state
  34731. @throws ServiceStateException if the service state is different from
  34732. the desired state]]>
  34733. </doc>
  34734. </method>
  34735. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  34736. abstract="false" native="false" synchronized="true"
  34737. static="false" final="false" visibility="public"
  34738. deprecated="not deprecated">
  34739. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34740. <doc>
  34741. <![CDATA[Enter a state -thread safe.
  34742. @param proposed proposed new state
  34743. @return the original state
  34744. @throws ServiceStateException if the transition is not permitted]]>
  34745. </doc>
  34746. </method>
  34747. <method name="checkStateTransition"
  34748. abstract="false" native="false" synchronized="false"
  34749. static="true" final="false" visibility="public"
  34750. deprecated="not deprecated">
  34751. <param name="name" type="java.lang.String"/>
  34752. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  34753. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34754. <doc>
  34755. <![CDATA[Check that a state tansition is valid and
  34756. throw an exception if not
  34757. @param name name of the service (can be null)
  34758. @param state current state
  34759. @param proposed proposed new state]]>
  34760. </doc>
  34761. </method>
  34762. <method name="isValidStateTransition" return="boolean"
  34763. abstract="false" native="false" synchronized="false"
  34764. static="true" final="false" visibility="public"
  34765. deprecated="not deprecated">
  34766. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  34767. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  34768. <doc>
  34769. <![CDATA[Is a state transition valid?
  34770. There are no checks for current==proposed
  34771. as that is considered a non-transition.
  34772. using an array kills off all branch misprediction costs, at the expense
  34773. of cache line misses.
  34774. @param current current state
  34775. @param proposed proposed new state
  34776. @return true if the transition to a new state is valid]]>
  34777. </doc>
  34778. </method>
  34779. <method name="toString" return="java.lang.String"
  34780. abstract="false" native="false" synchronized="false"
  34781. static="false" final="false" visibility="public"
  34782. deprecated="not deprecated">
  34783. <doc>
  34784. <![CDATA[return the state text as the toString() value
  34785. @return the current state's description]]>
  34786. </doc>
  34787. </method>
  34788. <doc>
  34789. <![CDATA[Implements the service state model.]]>
  34790. </doc>
  34791. </class>
  34792. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  34793. </package>
  34794. <package name="org.apache.hadoop.tools">
  34795. </package>
  34796. <package name="org.apache.hadoop.tools.protocolPB">
  34797. </package>
  34798. <package name="org.apache.hadoop.tracing">
  34799. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  34800. <class name="SpanReceiverInfo" extends="java.lang.Object"
  34801. abstract="false"
  34802. static="false" final="false" visibility="public"
  34803. deprecated="not deprecated">
  34804. <method name="getId" return="long"
  34805. abstract="false" native="false" synchronized="false"
  34806. static="false" final="false" visibility="public"
  34807. deprecated="not deprecated">
  34808. </method>
  34809. <method name="getClassName" return="java.lang.String"
  34810. abstract="false" native="false" synchronized="false"
  34811. static="false" final="false" visibility="public"
  34812. deprecated="not deprecated">
  34813. </method>
  34814. </class>
  34815. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  34816. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  34817. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  34818. abstract="false"
  34819. static="false" final="false" visibility="public"
  34820. deprecated="not deprecated">
  34821. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  34822. static="false" final="false" visibility="public"
  34823. deprecated="not deprecated">
  34824. </constructor>
  34825. <method name="addConfigurationPair"
  34826. abstract="false" native="false" synchronized="false"
  34827. static="false" final="false" visibility="public"
  34828. deprecated="not deprecated">
  34829. <param name="key" type="java.lang.String"/>
  34830. <param name="value" type="java.lang.String"/>
  34831. </method>
  34832. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  34833. abstract="false" native="false" synchronized="false"
  34834. static="false" final="false" visibility="public"
  34835. deprecated="not deprecated">
  34836. </method>
  34837. </class>
  34838. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  34839. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  34840. <interface name="TraceAdminProtocol" abstract="true"
  34841. static="false" final="false" visibility="public"
  34842. deprecated="not deprecated">
  34843. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  34844. abstract="false" native="false" synchronized="false"
  34845. static="false" final="false" visibility="public"
  34846. deprecated="not deprecated">
  34847. <exception name="IOException" type="java.io.IOException"/>
  34848. <doc>
  34849. <![CDATA[List the currently active trace span receivers.
  34850. @throws IOException On error.]]>
  34851. </doc>
  34852. </method>
  34853. <method name="addSpanReceiver" return="long"
  34854. abstract="false" native="false" synchronized="false"
  34855. static="false" final="false" visibility="public"
  34856. deprecated="not deprecated">
  34857. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  34858. <exception name="IOException" type="java.io.IOException"/>
  34859. <doc>
  34860. <![CDATA[Add a new trace span receiver.
  34861. @param desc The span receiver description.
  34862. @return The ID of the new trace span receiver.
  34863. @throws IOException On error.]]>
  34864. </doc>
  34865. </method>
  34866. <method name="removeSpanReceiver"
  34867. abstract="false" native="false" synchronized="false"
  34868. static="false" final="false" visibility="public"
  34869. deprecated="not deprecated">
  34870. <param name="spanReceiverId" type="long"/>
  34871. <exception name="IOException" type="java.io.IOException"/>
  34872. <doc>
  34873. <![CDATA[Remove a trace span receiver.
  34874. @param spanReceiverId The id of the span receiver to remove.
  34875. @throws IOException On error.]]>
  34876. </doc>
  34877. </method>
  34878. <field name="versionID" type="long"
  34879. transient="false" volatile="false"
  34880. static="true" final="true" visibility="public"
  34881. deprecated="not deprecated">
  34882. </field>
  34883. <doc>
  34884. <![CDATA[Protocol interface that provides tracing.]]>
  34885. </doc>
  34886. </interface>
  34887. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  34888. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  34889. <interface name="TraceAdminProtocolPB" abstract="true"
  34890. static="false" final="false" visibility="public"
  34891. deprecated="not deprecated">
  34892. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  34893. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  34894. </interface>
  34895. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  34896. </package>
  34897. <package name="org.apache.hadoop.util">
  34898. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  34899. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  34900. abstract="false"
  34901. static="false" final="false" visibility="public"
  34902. deprecated="not deprecated">
  34903. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  34904. static="false" final="false" visibility="public"
  34905. deprecated="not deprecated">
  34906. </constructor>
  34907. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  34908. static="false" final="false" visibility="public"
  34909. deprecated="not deprecated">
  34910. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  34911. </constructor>
  34912. <method name="getResource" return="java.net.URL"
  34913. abstract="false" native="false" synchronized="false"
  34914. static="false" final="false" visibility="public"
  34915. deprecated="not deprecated">
  34916. <param name="name" type="java.lang.String"/>
  34917. </method>
  34918. <method name="loadClass" return="java.lang.Class"
  34919. abstract="false" native="false" synchronized="false"
  34920. static="false" final="false" visibility="public"
  34921. deprecated="not deprecated">
  34922. <param name="name" type="java.lang.String"/>
  34923. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  34924. </method>
  34925. <method name="loadClass" return="java.lang.Class"
  34926. abstract="false" native="false" synchronized="true"
  34927. static="false" final="false" visibility="protected"
  34928. deprecated="not deprecated">
  34929. <param name="name" type="java.lang.String"/>
  34930. <param name="resolve" type="boolean"/>
  34931. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  34932. </method>
  34933. <method name="isSystemClass" return="boolean"
  34934. abstract="false" native="false" synchronized="false"
  34935. static="true" final="false" visibility="public"
  34936. deprecated="not deprecated">
  34937. <param name="name" type="java.lang.String"/>
  34938. <param name="systemClasses" type="java.util.List"/>
  34939. <doc>
  34940. <![CDATA[Checks if a class should be included as a system class.
  34941. A class is a system class if and only if it matches one of the positive
  34942. patterns and none of the negative ones.
  34943. @param name the class name to check
  34944. @param systemClasses a list of system class configurations.
  34945. @return true if the class is a system class]]>
  34946. </doc>
  34947. </method>
  34948. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  34949. transient="false" volatile="false"
  34950. static="true" final="true" visibility="public"
  34951. deprecated="not deprecated">
  34952. <doc>
  34953. <![CDATA[Default value of the system classes if the user did not override them.
  34954. JDK classes, hadoop classes and resources, and some select third-party
  34955. classes are considered system classes, and are not loaded by the
  34956. application classloader.]]>
  34957. </doc>
  34958. </field>
  34959. <doc>
  34960. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  34961. application JARs are loaded in preference to the parent loader.]]>
  34962. </doc>
  34963. </class>
  34964. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  34965. <!-- start interface org.apache.hadoop.util.IPList -->
  34966. <interface name="IPList" abstract="true"
  34967. static="false" final="false" visibility="public"
  34968. deprecated="not deprecated">
  34969. <method name="isIn" return="boolean"
  34970. abstract="false" native="false" synchronized="false"
  34971. static="false" final="false" visibility="public"
  34972. deprecated="not deprecated">
  34973. <param name="ipAddress" type="java.lang.String"/>
  34974. <doc>
  34975. <![CDATA[returns true if the ipAddress is in the IPList.
  34976. @param ipAddress
  34977. @return boolean value indicating whether the ipAddress is in the IPList]]>
  34978. </doc>
  34979. </method>
  34980. </interface>
  34981. <!-- end interface org.apache.hadoop.util.IPList -->
  34982. <!-- start interface org.apache.hadoop.util.Progressable -->
  34983. <interface name="Progressable" abstract="true"
  34984. static="false" final="false" visibility="public"
  34985. deprecated="not deprecated">
  34986. <method name="progress"
  34987. abstract="false" native="false" synchronized="false"
  34988. static="false" final="false" visibility="public"
  34989. deprecated="not deprecated">
  34990. <doc>
  34991. <![CDATA[Report progress to the Hadoop framework.]]>
  34992. </doc>
  34993. </method>
  34994. <doc>
  34995. <![CDATA[A facility for reporting progress.
  34996. <p>Clients and/or applications can use the provided <code>Progressable</code>
  34997. to explicitly report progress to the Hadoop framework. This is especially
  34998. important for operations which take significant amount of time since,
  34999. in-lieu of the reported progress, the framework has to assume that an error
  35000. has occured and time-out the operation.</p>]]>
  35001. </doc>
  35002. </interface>
  35003. <!-- end interface org.apache.hadoop.util.Progressable -->
  35004. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  35005. <class name="PureJavaCrc32" extends="java.lang.Object"
  35006. abstract="false"
  35007. static="false" final="false" visibility="public"
  35008. deprecated="not deprecated">
  35009. <implements name="java.util.zip.Checksum"/>
  35010. <constructor name="PureJavaCrc32"
  35011. static="false" final="false" visibility="public"
  35012. deprecated="not deprecated">
  35013. <doc>
  35014. <![CDATA[Create a new PureJavaCrc32 object.]]>
  35015. </doc>
  35016. </constructor>
  35017. <method name="getValue" return="long"
  35018. abstract="false" native="false" synchronized="false"
  35019. static="false" final="false" visibility="public"
  35020. deprecated="not deprecated">
  35021. </method>
  35022. <method name="reset"
  35023. abstract="false" native="false" synchronized="false"
  35024. static="false" final="false" visibility="public"
  35025. deprecated="not deprecated">
  35026. </method>
  35027. <method name="update"
  35028. abstract="false" native="false" synchronized="false"
  35029. static="false" final="false" visibility="public"
  35030. deprecated="not deprecated">
  35031. <param name="b" type="byte[]"/>
  35032. <param name="offset" type="int"/>
  35033. <param name="len" type="int"/>
  35034. </method>
  35035. <method name="update"
  35036. abstract="false" native="false" synchronized="false"
  35037. static="false" final="true" visibility="public"
  35038. deprecated="not deprecated">
  35039. <param name="b" type="int"/>
  35040. </method>
  35041. <doc>
  35042. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  35043. the same polynomial as the built-in native CRC32.
  35044. This is to avoid the JNI overhead for certain uses of Checksumming
  35045. where many small pieces of data are checksummed in succession.
  35046. The current version is ~10x to 1.8x as fast as Sun's native
  35047. java.util.zip.CRC32 in Java 1.6
  35048. @see java.util.zip.CRC32]]>
  35049. </doc>
  35050. </class>
  35051. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  35052. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  35053. <class name="PureJavaCrc32C" extends="java.lang.Object"
  35054. abstract="false"
  35055. static="false" final="false" visibility="public"
  35056. deprecated="not deprecated">
  35057. <implements name="java.util.zip.Checksum"/>
  35058. <constructor name="PureJavaCrc32C"
  35059. static="false" final="false" visibility="public"
  35060. deprecated="not deprecated">
  35061. <doc>
  35062. <![CDATA[Create a new PureJavaCrc32 object.]]>
  35063. </doc>
  35064. </constructor>
  35065. <method name="getValue" return="long"
  35066. abstract="false" native="false" synchronized="false"
  35067. static="false" final="false" visibility="public"
  35068. deprecated="not deprecated">
  35069. </method>
  35070. <method name="reset"
  35071. abstract="false" native="false" synchronized="false"
  35072. static="false" final="false" visibility="public"
  35073. deprecated="not deprecated">
  35074. </method>
  35075. <method name="update"
  35076. abstract="false" native="false" synchronized="false"
  35077. static="false" final="false" visibility="public"
  35078. deprecated="not deprecated">
  35079. <param name="b" type="byte[]"/>
  35080. <param name="off" type="int"/>
  35081. <param name="len" type="int"/>
  35082. </method>
  35083. <method name="update"
  35084. abstract="false" native="false" synchronized="false"
  35085. static="false" final="true" visibility="public"
  35086. deprecated="not deprecated">
  35087. <param name="b" type="int"/>
  35088. </method>
  35089. <doc>
  35090. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  35091. the CRC32-C polynomial, the same polynomial used by iSCSI
  35092. and implemented on many Intel chipsets supporting SSE4.2.]]>
  35093. </doc>
  35094. </class>
  35095. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  35096. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  35097. <class name="ReflectionUtils" extends="java.lang.Object"
  35098. abstract="false"
  35099. static="false" final="false" visibility="public"
  35100. deprecated="not deprecated">
  35101. <constructor name="ReflectionUtils"
  35102. static="false" final="false" visibility="public"
  35103. deprecated="not deprecated">
  35104. </constructor>
  35105. <method name="setConf"
  35106. abstract="false" native="false" synchronized="false"
  35107. static="true" final="false" visibility="public"
  35108. deprecated="not deprecated">
  35109. <param name="theObject" type="java.lang.Object"/>
  35110. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35111. <doc>
  35112. <![CDATA[Check and set 'configuration' if necessary.
  35113. @param theObject object for which to set configuration
  35114. @param conf Configuration]]>
  35115. </doc>
  35116. </method>
  35117. <method name="newInstance" return="T"
  35118. abstract="false" native="false" synchronized="false"
  35119. static="true" final="false" visibility="public"
  35120. deprecated="not deprecated">
  35121. <param name="theClass" type="java.lang.Class"/>
  35122. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35123. <doc>
  35124. <![CDATA[Create an object for the given class and initialize it from conf
  35125. @param theClass class of which an object is created
  35126. @param conf Configuration
  35127. @return a new object]]>
  35128. </doc>
  35129. </method>
  35130. <method name="setContentionTracing"
  35131. abstract="false" native="false" synchronized="false"
  35132. static="true" final="false" visibility="public"
  35133. deprecated="not deprecated">
  35134. <param name="val" type="boolean"/>
  35135. </method>
  35136. <method name="printThreadInfo"
  35137. abstract="false" native="false" synchronized="true"
  35138. static="true" final="false" visibility="public"
  35139. deprecated="not deprecated">
  35140. <param name="stream" type="java.io.PrintStream"/>
  35141. <param name="title" type="java.lang.String"/>
  35142. <doc>
  35143. <![CDATA[Print all of the thread's information and stack traces.
  35144. @param stream the stream to
  35145. @param title a string title for the stack trace]]>
  35146. </doc>
  35147. </method>
  35148. <method name="logThreadInfo"
  35149. abstract="false" native="false" synchronized="false"
  35150. static="true" final="false" visibility="public"
  35151. deprecated="not deprecated">
  35152. <param name="log" type="org.apache.commons.logging.Log"/>
  35153. <param name="title" type="java.lang.String"/>
  35154. <param name="minInterval" type="long"/>
  35155. <doc>
  35156. <![CDATA[Log the current thread stacks at INFO level.
  35157. @param log the logger that logs the stack trace
  35158. @param title a descriptive title for the call stacks
  35159. @param minInterval the minimum time from the last]]>
  35160. </doc>
  35161. </method>
  35162. <method name="getClass" return="java.lang.Class"
  35163. abstract="false" native="false" synchronized="false"
  35164. static="true" final="false" visibility="public"
  35165. deprecated="not deprecated">
  35166. <param name="o" type="T"/>
  35167. <doc>
  35168. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  35169. @param o object whose correctly-typed <code>Class</code> is to be obtained
  35170. @return the correctly typed <code>Class</code> of the given object.]]>
  35171. </doc>
  35172. </method>
  35173. <method name="copy" return="T"
  35174. abstract="false" native="false" synchronized="false"
  35175. static="true" final="false" visibility="public"
  35176. deprecated="not deprecated">
  35177. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35178. <param name="src" type="T"/>
  35179. <param name="dst" type="T"/>
  35180. <exception name="IOException" type="java.io.IOException"/>
  35181. <doc>
  35182. <![CDATA[Make a copy of the writable object using serialization to a buffer
  35183. @param src the object to copy from
  35184. @param dst the object to copy into, which is destroyed
  35185. @return dst param (the copy)
  35186. @throws IOException]]>
  35187. </doc>
  35188. </method>
  35189. <method name="cloneWritableInto"
  35190. abstract="false" native="false" synchronized="false"
  35191. static="true" final="false" visibility="public"
  35192. deprecated="not deprecated">
  35193. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  35194. <param name="src" type="org.apache.hadoop.io.Writable"/>
  35195. <exception name="IOException" type="java.io.IOException"/>
  35196. </method>
  35197. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  35198. abstract="false" native="false" synchronized="false"
  35199. static="true" final="false" visibility="public"
  35200. deprecated="not deprecated">
  35201. <param name="clazz" type="java.lang.Class"/>
  35202. <doc>
  35203. <![CDATA[Gets all the declared fields of a class including fields declared in
  35204. superclasses.]]>
  35205. </doc>
  35206. </method>
  35207. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  35208. abstract="false" native="false" synchronized="false"
  35209. static="true" final="false" visibility="public"
  35210. deprecated="not deprecated">
  35211. <param name="clazz" type="java.lang.Class"/>
  35212. <doc>
  35213. <![CDATA[Gets all the declared methods of a class including methods declared in
  35214. superclasses.]]>
  35215. </doc>
  35216. </method>
  35217. <doc>
  35218. <![CDATA[General reflection utils]]>
  35219. </doc>
  35220. </class>
  35221. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  35222. <!-- start class org.apache.hadoop.util.Shell -->
  35223. <class name="Shell" extends="java.lang.Object"
  35224. abstract="true"
  35225. static="false" final="false" visibility="public"
  35226. deprecated="not deprecated">
  35227. <constructor name="Shell"
  35228. static="false" final="false" visibility="protected"
  35229. deprecated="not deprecated">
  35230. <doc>
  35231. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  35232. not merged with stdout.]]>
  35233. </doc>
  35234. </constructor>
  35235. <constructor name="Shell" type="long"
  35236. static="false" final="false" visibility="protected"
  35237. deprecated="not deprecated">
  35238. <doc>
  35239. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  35240. not merged with stdout.
  35241. @param interval interval in milliseconds between command executions.]]>
  35242. </doc>
  35243. </constructor>
  35244. <constructor name="Shell" type="long, boolean"
  35245. static="false" final="false" visibility="protected"
  35246. deprecated="not deprecated">
  35247. <doc>
  35248. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  35249. method is invoked with a given elapsed time between calls.
  35250. @param interval the minimum duration in milliseconds to wait before
  35251. re-executing the command. If set to 0, there is no minimum.
  35252. @param redirectErrorStream should the error stream be merged with
  35253. the normal output stream?]]>
  35254. </doc>
  35255. </constructor>
  35256. <method name="isJava7OrAbove" return="boolean"
  35257. abstract="false" native="false" synchronized="false"
  35258. static="true" final="false" visibility="public"
  35259. deprecated="This call isn't needed any more: please remove uses of it.">
  35260. <doc>
  35261. <![CDATA[query to see if system is Java 7 or later.
  35262. Now that Hadoop requires Java 7 or later, this always returns true.
  35263. @deprecated This call isn't needed any more: please remove uses of it.
  35264. @return true, always.]]>
  35265. </doc>
  35266. </method>
  35267. <method name="checkWindowsCommandLineLength"
  35268. abstract="false" native="false" synchronized="false"
  35269. static="true" final="false" visibility="public"
  35270. deprecated="not deprecated">
  35271. <param name="commands" type="java.lang.String[]"/>
  35272. <exception name="IOException" type="java.io.IOException"/>
  35273. <doc>
  35274. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  35275. line length Note that the input is expected to already include space
  35276. delimiters, no extra count will be added for delimiters.
  35277. @param commands command parts, including any space delimiters]]>
  35278. </doc>
  35279. </method>
  35280. <method name="getGroupsCommand" return="java.lang.String[]"
  35281. abstract="false" native="false" synchronized="false"
  35282. static="true" final="false" visibility="public"
  35283. deprecated="not deprecated">
  35284. <doc>
  35285. <![CDATA[a Unix command to get the current user's groups list.]]>
  35286. </doc>
  35287. </method>
  35288. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  35289. abstract="false" native="false" synchronized="false"
  35290. static="true" final="false" visibility="public"
  35291. deprecated="not deprecated">
  35292. <param name="user" type="java.lang.String"/>
  35293. <doc>
  35294. <![CDATA[A command to get a given user's groups list.
  35295. If the OS is not WINDOWS, the command will get the user's primary group
  35296. first and finally get the groups list which includes the primary group.
  35297. i.e. the user's primary group will be included twice.]]>
  35298. </doc>
  35299. </method>
  35300. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  35301. abstract="false" native="false" synchronized="false"
  35302. static="true" final="false" visibility="public"
  35303. deprecated="not deprecated">
  35304. <param name="user" type="java.lang.String"/>
  35305. <doc>
  35306. <![CDATA[A command to get a given user's group id list.
  35307. The command will get the user's primary group
  35308. first and finally get the groups list which includes the primary group.
  35309. i.e. the user's primary group will be included twice.
  35310. This command does not support Windows and will only return group names.]]>
  35311. </doc>
  35312. </method>
  35313. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  35314. abstract="false" native="false" synchronized="false"
  35315. static="true" final="false" visibility="public"
  35316. deprecated="not deprecated">
  35317. <param name="netgroup" type="java.lang.String"/>
  35318. <doc>
  35319. <![CDATA[A command to get a given netgroup's user list.]]>
  35320. </doc>
  35321. </method>
  35322. <method name="getGetPermissionCommand" return="java.lang.String[]"
  35323. abstract="false" native="false" synchronized="false"
  35324. static="true" final="false" visibility="public"
  35325. deprecated="not deprecated">
  35326. <doc>
  35327. <![CDATA[Return a command to get permission information.]]>
  35328. </doc>
  35329. </method>
  35330. <method name="getSetPermissionCommand" return="java.lang.String[]"
  35331. abstract="false" native="false" synchronized="false"
  35332. static="true" final="false" visibility="public"
  35333. deprecated="not deprecated">
  35334. <param name="perm" type="java.lang.String"/>
  35335. <param name="recursive" type="boolean"/>
  35336. <doc>
  35337. <![CDATA[Return a command to set permission.]]>
  35338. </doc>
  35339. </method>
  35340. <method name="getSetPermissionCommand" return="java.lang.String[]"
  35341. abstract="false" native="false" synchronized="false"
  35342. static="true" final="false" visibility="public"
  35343. deprecated="not deprecated">
  35344. <param name="perm" type="java.lang.String"/>
  35345. <param name="recursive" type="boolean"/>
  35346. <param name="file" type="java.lang.String"/>
  35347. <doc>
  35348. <![CDATA[Return a command to set permission for specific file.
  35349. @param perm String permission to set
  35350. @param recursive boolean true to apply to all sub-directories recursively
  35351. @param file String file to set
  35352. @return String[] containing command and arguments]]>
  35353. </doc>
  35354. </method>
  35355. <method name="getSetOwnerCommand" return="java.lang.String[]"
  35356. abstract="false" native="false" synchronized="false"
  35357. static="true" final="false" visibility="public"
  35358. deprecated="not deprecated">
  35359. <param name="owner" type="java.lang.String"/>
  35360. <doc>
  35361. <![CDATA[Return a command to set owner.]]>
  35362. </doc>
  35363. </method>
  35364. <method name="getSymlinkCommand" return="java.lang.String[]"
  35365. abstract="false" native="false" synchronized="false"
  35366. static="true" final="false" visibility="public"
  35367. deprecated="not deprecated">
  35368. <param name="target" type="java.lang.String"/>
  35369. <param name="link" type="java.lang.String"/>
  35370. <doc>
  35371. <![CDATA[Return a command to create symbolic links.]]>
  35372. </doc>
  35373. </method>
  35374. <method name="getReadlinkCommand" return="java.lang.String[]"
  35375. abstract="false" native="false" synchronized="false"
  35376. static="true" final="false" visibility="public"
  35377. deprecated="not deprecated">
  35378. <param name="link" type="java.lang.String"/>
  35379. <doc>
  35380. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  35381. </doc>
  35382. </method>
  35383. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  35384. abstract="false" native="false" synchronized="false"
  35385. static="true" final="false" visibility="public"
  35386. deprecated="not deprecated">
  35387. <param name="pid" type="java.lang.String"/>
  35388. <doc>
  35389. <![CDATA[Return a command for determining if process with specified pid is alive.
  35390. @param pid process ID
  35391. @return a <code>kill -0</code> command or equivalent]]>
  35392. </doc>
  35393. </method>
  35394. <method name="getSignalKillCommand" return="java.lang.String[]"
  35395. abstract="false" native="false" synchronized="false"
  35396. static="true" final="false" visibility="public"
  35397. deprecated="not deprecated">
  35398. <param name="code" type="int"/>
  35399. <param name="pid" type="java.lang.String"/>
  35400. <doc>
  35401. <![CDATA[Return a command to send a signal to a given pid.]]>
  35402. </doc>
  35403. </method>
  35404. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  35405. abstract="false" native="false" synchronized="false"
  35406. static="true" final="false" visibility="public"
  35407. deprecated="not deprecated">
  35408. <doc>
  35409. <![CDATA[Return a regular expression string that match environment variables.]]>
  35410. </doc>
  35411. </method>
  35412. <method name="appendScriptExtension" return="java.io.File"
  35413. abstract="false" native="false" synchronized="false"
  35414. static="true" final="false" visibility="public"
  35415. deprecated="not deprecated">
  35416. <param name="parent" type="java.io.File"/>
  35417. <param name="basename" type="java.lang.String"/>
  35418. <doc>
  35419. <![CDATA[Returns a File referencing a script with the given basename, inside the
  35420. given parent directory. The file extension is inferred by platform:
  35421. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  35422. @param parent File parent directory
  35423. @param basename String script file basename
  35424. @return File referencing the script in the directory]]>
  35425. </doc>
  35426. </method>
  35427. <method name="appendScriptExtension" return="java.lang.String"
  35428. abstract="false" native="false" synchronized="false"
  35429. static="true" final="false" visibility="public"
  35430. deprecated="not deprecated">
  35431. <param name="basename" type="java.lang.String"/>
  35432. <doc>
  35433. <![CDATA[Returns a script file name with the given basename.
  35434. The file extension is inferred by platform:
  35435. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  35436. @param basename String script file basename
  35437. @return String script file name]]>
  35438. </doc>
  35439. </method>
  35440. <method name="getRunScriptCommand" return="java.lang.String[]"
  35441. abstract="false" native="false" synchronized="false"
  35442. static="true" final="false" visibility="public"
  35443. deprecated="not deprecated">
  35444. <param name="script" type="java.io.File"/>
  35445. <doc>
  35446. <![CDATA[Returns a command to run the given script. The script interpreter is
  35447. inferred by platform: cmd on Windows or bash otherwise.
  35448. @param script File script to run
  35449. @return String[] command to run the script]]>
  35450. </doc>
  35451. </method>
  35452. <method name="getHadoopHome" return="java.lang.String"
  35453. abstract="false" native="false" synchronized="false"
  35454. static="true" final="false" visibility="public"
  35455. deprecated="not deprecated">
  35456. <exception name="IOException" type="java.io.IOException"/>
  35457. <doc>
  35458. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  35459. @return the home dir
  35460. @throws IOException if the home directory cannot be located.]]>
  35461. </doc>
  35462. </method>
  35463. <method name="getQualifiedBin" return="java.io.File"
  35464. abstract="false" native="false" synchronized="false"
  35465. static="true" final="false" visibility="public"
  35466. deprecated="not deprecated">
  35467. <param name="executable" type="java.lang.String"/>
  35468. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  35469. <doc>
  35470. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  35471. bin location. This is primarily useful for disambiguating call-outs
  35472. to executable sub-components of Hadoop to avoid clashes with other
  35473. executables that may be in the path. Caveat: this call doesn't
  35474. just format the path to the bin directory. It also checks for file
  35475. existence of the composed path. The output of this call should be
  35476. cached by callers.
  35477. @param executable executable
  35478. @return executable file reference
  35479. @throws FileNotFoundException if the path does not exist]]>
  35480. </doc>
  35481. </method>
  35482. <method name="getQualifiedBinPath" return="java.lang.String"
  35483. abstract="false" native="false" synchronized="false"
  35484. static="true" final="false" visibility="public"
  35485. deprecated="not deprecated">
  35486. <param name="executable" type="java.lang.String"/>
  35487. <exception name="IOException" type="java.io.IOException"/>
  35488. <doc>
  35489. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  35490. bin location. This is primarily useful for disambiguating call-outs
  35491. to executable sub-components of Hadoop to avoid clashes with other
  35492. executables that may be in the path. Caveat: this call doesn't
  35493. just format the path to the bin directory. It also checks for file
  35494. existence of the composed path. The output of this call should be
  35495. cached by callers.
  35496. @param executable executable
  35497. @return executable file reference
  35498. @throws FileNotFoundException if the path does not exist
  35499. @throws IOException on path canonicalization failures]]>
  35500. </doc>
  35501. </method>
  35502. <method name="hasWinutilsPath" return="boolean"
  35503. abstract="false" native="false" synchronized="false"
  35504. static="true" final="false" visibility="public"
  35505. deprecated="not deprecated">
  35506. <doc>
  35507. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  35508. If true, then {@link #WINUTILS} is non-null, and both
  35509. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  35510. will successfully return this value. Always false on non-windows systems.
  35511. @return true if there is a valid path to the binary]]>
  35512. </doc>
  35513. </method>
  35514. <method name="getWinUtilsPath" return="java.lang.String"
  35515. abstract="false" native="false" synchronized="false"
  35516. static="true" final="false" visibility="public"
  35517. deprecated="not deprecated">
  35518. <doc>
  35519. <![CDATA[Locate the winutils binary, or fail with a meaningful
  35520. exception and stack trace as an RTE.
  35521. This method is for use in methods which don't explicitly throw
  35522. an <code>IOException</code>.
  35523. @return the path to {@link #WINUTILS_EXE}
  35524. @throws RuntimeException if the path is not resolvable]]>
  35525. </doc>
  35526. </method>
  35527. <method name="getWinUtilsFile" return="java.io.File"
  35528. abstract="false" native="false" synchronized="false"
  35529. static="true" final="false" visibility="public"
  35530. deprecated="not deprecated">
  35531. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  35532. <doc>
  35533. <![CDATA[Get a file reference to winutils.
  35534. Always raises an exception if there isn't one
  35535. @return the file instance referring to the winutils bin.
  35536. @throws FileNotFoundException on any failure to locate that file.]]>
  35537. </doc>
  35538. </method>
  35539. <method name="checkIsBashSupported" return="boolean"
  35540. abstract="false" native="false" synchronized="false"
  35541. static="true" final="false" visibility="public"
  35542. deprecated="not deprecated">
  35543. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  35544. </method>
  35545. <method name="setEnvironment"
  35546. abstract="false" native="false" synchronized="false"
  35547. static="false" final="false" visibility="protected"
  35548. deprecated="not deprecated">
  35549. <param name="env" type="java.util.Map"/>
  35550. <doc>
  35551. <![CDATA[Set the environment for the command.
  35552. @param env Mapping of environment variables]]>
  35553. </doc>
  35554. </method>
  35555. <method name="setWorkingDirectory"
  35556. abstract="false" native="false" synchronized="false"
  35557. static="false" final="false" visibility="protected"
  35558. deprecated="not deprecated">
  35559. <param name="dir" type="java.io.File"/>
  35560. <doc>
  35561. <![CDATA[Set the working directory.
  35562. @param dir The directory where the command will be executed]]>
  35563. </doc>
  35564. </method>
  35565. <method name="run"
  35566. abstract="false" native="false" synchronized="false"
  35567. static="false" final="false" visibility="protected"
  35568. deprecated="not deprecated">
  35569. <exception name="IOException" type="java.io.IOException"/>
  35570. <doc>
  35571. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  35572. </doc>
  35573. </method>
  35574. <method name="getExecString" return="java.lang.String[]"
  35575. abstract="true" native="false" synchronized="false"
  35576. static="false" final="false" visibility="protected"
  35577. deprecated="not deprecated">
  35578. <doc>
  35579. <![CDATA[return an array containing the command name and its parameters.]]>
  35580. </doc>
  35581. </method>
  35582. <method name="parseExecResult"
  35583. abstract="true" native="false" synchronized="false"
  35584. static="false" final="false" visibility="protected"
  35585. deprecated="not deprecated">
  35586. <param name="lines" type="java.io.BufferedReader"/>
  35587. <exception name="IOException" type="java.io.IOException"/>
  35588. <doc>
  35589. <![CDATA[Parse the execution result]]>
  35590. </doc>
  35591. </method>
  35592. <method name="getEnvironment" return="java.lang.String"
  35593. abstract="false" native="false" synchronized="false"
  35594. static="false" final="false" visibility="public"
  35595. deprecated="not deprecated">
  35596. <param name="env" type="java.lang.String"/>
  35597. <doc>
  35598. <![CDATA[Get an environment variable.
  35599. @param env the environment var
  35600. @return the value or null if it was unset.]]>
  35601. </doc>
  35602. </method>
  35603. <method name="getProcess" return="java.lang.Process"
  35604. abstract="false" native="false" synchronized="false"
  35605. static="false" final="false" visibility="public"
  35606. deprecated="not deprecated">
  35607. <doc>
  35608. <![CDATA[get the current sub-process executing the given command.
  35609. @return process executing the command]]>
  35610. </doc>
  35611. </method>
  35612. <method name="getExitCode" return="int"
  35613. abstract="false" native="false" synchronized="false"
  35614. static="false" final="false" visibility="public"
  35615. deprecated="not deprecated">
  35616. <doc>
  35617. <![CDATA[get the exit code.
  35618. @return the exit code of the process]]>
  35619. </doc>
  35620. </method>
  35621. <method name="isTimedOut" return="boolean"
  35622. abstract="false" native="false" synchronized="false"
  35623. static="false" final="false" visibility="public"
  35624. deprecated="not deprecated">
  35625. <doc>
  35626. <![CDATA[To check if the passed script to shell command executor timed out or
  35627. not.
  35628. @return if the script timed out.]]>
  35629. </doc>
  35630. </method>
  35631. <method name="execCommand" 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="cmd" type="java.lang.String[]"/>
  35636. <exception name="IOException" type="java.io.IOException"/>
  35637. <doc>
  35638. <![CDATA[Static method to execute a shell command.
  35639. Covers most of the simple cases without requiring the user to implement
  35640. the <code>Shell</code> interface.
  35641. @param cmd shell command to execute.
  35642. @return the output of the executed command.]]>
  35643. </doc>
  35644. </method>
  35645. <method name="execCommand" return="java.lang.String"
  35646. abstract="false" native="false" synchronized="false"
  35647. static="true" final="false" visibility="public"
  35648. deprecated="not deprecated">
  35649. <param name="env" type="java.util.Map"/>
  35650. <param name="cmd" type="java.lang.String[]"/>
  35651. <param name="timeout" type="long"/>
  35652. <exception name="IOException" type="java.io.IOException"/>
  35653. <doc>
  35654. <![CDATA[Static method to execute a shell command.
  35655. Covers most of the simple cases without requiring the user to implement
  35656. the <code>Shell</code> interface.
  35657. @param env the map of environment key=value
  35658. @param cmd shell command to execute.
  35659. @param timeout time in milliseconds after which script should be marked timeout
  35660. @return the output of the executed command.
  35661. @throws IOException on any problem.]]>
  35662. </doc>
  35663. </method>
  35664. <method name="execCommand" return="java.lang.String"
  35665. abstract="false" native="false" synchronized="false"
  35666. static="true" final="false" visibility="public"
  35667. deprecated="not deprecated">
  35668. <param name="env" type="java.util.Map"/>
  35669. <param name="cmd" type="java.lang.String[]"/>
  35670. <exception name="IOException" type="java.io.IOException"/>
  35671. <doc>
  35672. <![CDATA[Static method to execute a shell command.
  35673. Covers most of the simple cases without requiring the user to implement
  35674. the <code>Shell</code> interface.
  35675. @param env the map of environment key=value
  35676. @param cmd shell command to execute.
  35677. @return the output of the executed command.
  35678. @throws IOException on any problem.]]>
  35679. </doc>
  35680. </method>
  35681. <field name="LOG" type="org.slf4j.Logger"
  35682. transient="false" volatile="false"
  35683. static="true" final="true" visibility="public"
  35684. deprecated="not deprecated">
  35685. </field>
  35686. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  35687. transient="false" volatile="false"
  35688. static="true" final="true" visibility="public"
  35689. deprecated="not deprecated">
  35690. <doc>
  35691. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  35692. </doc>
  35693. </field>
  35694. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  35695. transient="false" volatile="false"
  35696. static="true" final="true" visibility="public"
  35697. deprecated="not deprecated">
  35698. <doc>
  35699. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  35700. </doc>
  35701. </field>
  35702. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  35703. transient="false" volatile="false"
  35704. static="true" final="true" visibility="public"
  35705. deprecated="not deprecated">
  35706. <doc>
  35707. <![CDATA[Maximum command line length in Windows
  35708. KB830473 documents this as 8191]]>
  35709. </doc>
  35710. </field>
  35711. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  35712. transient="false" volatile="false"
  35713. static="true" final="true" visibility="public"
  35714. deprecated="use the correctly spelled constant.">
  35715. <doc>
  35716. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  35717. @deprecated use the correctly spelled constant.]]>
  35718. </doc>
  35719. </field>
  35720. <field name="USER_NAME_COMMAND" type="java.lang.String"
  35721. transient="false" volatile="false"
  35722. static="true" final="true" visibility="public"
  35723. deprecated="not deprecated">
  35724. <doc>
  35725. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  35726. </doc>
  35727. </field>
  35728. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  35729. transient="false" volatile="false"
  35730. static="true" final="true" visibility="public"
  35731. deprecated="not deprecated">
  35732. <doc>
  35733. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  35734. </doc>
  35735. </field>
  35736. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  35737. transient="false" volatile="false"
  35738. static="true" final="true" visibility="public"
  35739. deprecated="not deprecated">
  35740. <doc>
  35741. <![CDATA[Get the type of the operating system, as determined from parsing
  35742. the <code>os.name</code> property.]]>
  35743. </doc>
  35744. </field>
  35745. <field name="WINDOWS" type="boolean"
  35746. transient="false" volatile="false"
  35747. static="true" final="true" visibility="public"
  35748. deprecated="not deprecated">
  35749. </field>
  35750. <field name="SOLARIS" type="boolean"
  35751. transient="false" volatile="false"
  35752. static="true" final="true" visibility="public"
  35753. deprecated="not deprecated">
  35754. </field>
  35755. <field name="MAC" type="boolean"
  35756. transient="false" volatile="false"
  35757. static="true" final="true" visibility="public"
  35758. deprecated="not deprecated">
  35759. </field>
  35760. <field name="FREEBSD" type="boolean"
  35761. transient="false" volatile="false"
  35762. static="true" final="true" visibility="public"
  35763. deprecated="not deprecated">
  35764. </field>
  35765. <field name="LINUX" type="boolean"
  35766. transient="false" volatile="false"
  35767. static="true" final="true" visibility="public"
  35768. deprecated="not deprecated">
  35769. </field>
  35770. <field name="OTHER" type="boolean"
  35771. transient="false" volatile="false"
  35772. static="true" final="true" visibility="public"
  35773. deprecated="not deprecated">
  35774. </field>
  35775. <field name="PPC_64" type="boolean"
  35776. transient="false" volatile="false"
  35777. static="true" final="true" visibility="public"
  35778. deprecated="not deprecated">
  35779. </field>
  35780. <field name="ENV_NAME_REGEX" type="java.lang.String"
  35781. transient="false" volatile="false"
  35782. static="true" final="true" visibility="public"
  35783. deprecated="not deprecated">
  35784. <doc>
  35785. <![CDATA[Regular expression for environment variables: {@value}.]]>
  35786. </doc>
  35787. </field>
  35788. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  35789. transient="false" volatile="false"
  35790. static="true" final="true" visibility="public"
  35791. deprecated="not deprecated">
  35792. <doc>
  35793. <![CDATA[a Unix command to set permission: {@value}.]]>
  35794. </doc>
  35795. </field>
  35796. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  35797. transient="false" volatile="false"
  35798. static="true" final="true" visibility="public"
  35799. deprecated="not deprecated">
  35800. <doc>
  35801. <![CDATA[a Unix command to set owner: {@value}.]]>
  35802. </doc>
  35803. </field>
  35804. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  35805. transient="false" volatile="false"
  35806. static="true" final="true" visibility="public"
  35807. deprecated="not deprecated">
  35808. <doc>
  35809. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  35810. </doc>
  35811. </field>
  35812. <field name="LINK_COMMAND" type="java.lang.String"
  35813. transient="false" volatile="false"
  35814. static="true" final="true" visibility="public"
  35815. deprecated="not deprecated">
  35816. <doc>
  35817. <![CDATA[a Unix command to create a link: {@value}.]]>
  35818. </doc>
  35819. </field>
  35820. <field name="READ_LINK_COMMAND" type="java.lang.String"
  35821. transient="false" volatile="false"
  35822. static="true" final="true" visibility="public"
  35823. deprecated="not deprecated">
  35824. <doc>
  35825. <![CDATA[a Unix command to get a link target: {@value}.]]>
  35826. </doc>
  35827. </field>
  35828. <field name="timeOutInterval" type="long"
  35829. transient="false" volatile="false"
  35830. static="false" final="false" visibility="protected"
  35831. deprecated="not deprecated">
  35832. <doc>
  35833. <![CDATA[Time after which the executing script would be timedout.]]>
  35834. </doc>
  35835. </field>
  35836. <field name="inheritParentEnv" type="boolean"
  35837. transient="false" volatile="false"
  35838. static="false" final="false" visibility="protected"
  35839. deprecated="not deprecated">
  35840. <doc>
  35841. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  35842. </doc>
  35843. </field>
  35844. <field name="WINUTILS" type="java.lang.String"
  35845. transient="false" volatile="false"
  35846. static="true" final="true" visibility="public"
  35847. deprecated="use one of the exception-raising getter methods,
  35848. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  35849. <doc>
  35850. <![CDATA[Location of winutils as a string; null if not found.
  35851. <p>
  35852. <i>Important: caller must check for this value being null</i>.
  35853. The lack of such checks has led to many support issues being raised.
  35854. <p>
  35855. @deprecated use one of the exception-raising getter methods,
  35856. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  35857. </doc>
  35858. </field>
  35859. <field name="isSetsidAvailable" type="boolean"
  35860. transient="false" volatile="false"
  35861. static="true" final="true" visibility="public"
  35862. deprecated="not deprecated">
  35863. <doc>
  35864. <![CDATA[Flag which is true if setsid exists.]]>
  35865. </doc>
  35866. </field>
  35867. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  35868. transient="false" volatile="false"
  35869. static="true" final="true" visibility="public"
  35870. deprecated="not deprecated">
  35871. <doc>
  35872. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  35873. </doc>
  35874. </field>
  35875. <doc>
  35876. <![CDATA[A base class for running a Shell command.
  35877. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  35878. <code>df</code>. It also offers facilities to gate commands by
  35879. time-intervals.]]>
  35880. </doc>
  35881. </class>
  35882. <!-- end class org.apache.hadoop.util.Shell -->
  35883. <!-- start class org.apache.hadoop.util.StringInterner -->
  35884. <class name="StringInterner" extends="java.lang.Object"
  35885. abstract="false"
  35886. static="false" final="false" visibility="public"
  35887. deprecated="not deprecated">
  35888. <constructor name="StringInterner"
  35889. static="false" final="false" visibility="public"
  35890. deprecated="not deprecated">
  35891. </constructor>
  35892. <method name="strongIntern" return="java.lang.String"
  35893. abstract="false" native="false" synchronized="false"
  35894. static="true" final="false" visibility="public"
  35895. deprecated="not deprecated">
  35896. <param name="sample" type="java.lang.String"/>
  35897. <doc>
  35898. <![CDATA[Interns and returns a reference to the representative instance
  35899. for any of a collection of string instances that are equal to each other.
  35900. Retains strong reference to the instance,
  35901. thus preventing it from being garbage-collected.
  35902. @param sample string instance to be interned
  35903. @return strong reference to interned string instance]]>
  35904. </doc>
  35905. </method>
  35906. <method name="weakIntern" return="java.lang.String"
  35907. abstract="false" native="false" synchronized="false"
  35908. static="true" final="false" visibility="public"
  35909. deprecated="not deprecated">
  35910. <param name="sample" type="java.lang.String"/>
  35911. <doc>
  35912. <![CDATA[Interns and returns a reference to the representative instance
  35913. for any of a collection of string instances that are equal to each other.
  35914. Retains weak reference to the instance,
  35915. and so does not prevent it from being garbage-collected.
  35916. @param sample string instance to be interned
  35917. @return weak reference to interned string instance]]>
  35918. </doc>
  35919. </method>
  35920. <doc>
  35921. <![CDATA[Provides equivalent behavior to String.intern() to optimize performance,
  35922. whereby does not consume memory in the permanent generation.]]>
  35923. </doc>
  35924. </class>
  35925. <!-- end class org.apache.hadoop.util.StringInterner -->
  35926. <!-- start class org.apache.hadoop.util.SysInfo -->
  35927. <class name="SysInfo" extends="java.lang.Object"
  35928. abstract="true"
  35929. static="false" final="false" visibility="public"
  35930. deprecated="not deprecated">
  35931. <constructor name="SysInfo"
  35932. static="false" final="false" visibility="public"
  35933. deprecated="not deprecated">
  35934. </constructor>
  35935. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  35936. abstract="false" native="false" synchronized="false"
  35937. static="true" final="false" visibility="public"
  35938. deprecated="not deprecated">
  35939. <doc>
  35940. <![CDATA[Return default OS instance.
  35941. @throws UnsupportedOperationException If cannot determine OS.
  35942. @return Default instance for the detected OS.]]>
  35943. </doc>
  35944. </method>
  35945. <method name="getVirtualMemorySize" return="long"
  35946. abstract="true" native="false" synchronized="false"
  35947. static="false" final="false" visibility="public"
  35948. deprecated="not deprecated">
  35949. <doc>
  35950. <![CDATA[Obtain the total size of the virtual memory present in the system.
  35951. @return virtual memory size in bytes.]]>
  35952. </doc>
  35953. </method>
  35954. <method name="getPhysicalMemorySize" return="long"
  35955. abstract="true" native="false" synchronized="false"
  35956. static="false" final="false" visibility="public"
  35957. deprecated="not deprecated">
  35958. <doc>
  35959. <![CDATA[Obtain the total size of the physical memory present in the system.
  35960. @return physical memory size bytes.]]>
  35961. </doc>
  35962. </method>
  35963. <method name="getAvailableVirtualMemorySize" return="long"
  35964. abstract="true" native="false" synchronized="false"
  35965. static="false" final="false" visibility="public"
  35966. deprecated="not deprecated">
  35967. <doc>
  35968. <![CDATA[Obtain the total size of the available virtual memory present
  35969. in the system.
  35970. @return available virtual memory size in bytes.]]>
  35971. </doc>
  35972. </method>
  35973. <method name="getAvailablePhysicalMemorySize" return="long"
  35974. abstract="true" native="false" synchronized="false"
  35975. static="false" final="false" visibility="public"
  35976. deprecated="not deprecated">
  35977. <doc>
  35978. <![CDATA[Obtain the total size of the available physical memory present
  35979. in the system.
  35980. @return available physical memory size bytes.]]>
  35981. </doc>
  35982. </method>
  35983. <method name="getNumProcessors" return="int"
  35984. abstract="true" native="false" synchronized="false"
  35985. static="false" final="false" visibility="public"
  35986. deprecated="not deprecated">
  35987. <doc>
  35988. <![CDATA[Obtain the total number of logical processors present on the system.
  35989. @return number of logical processors]]>
  35990. </doc>
  35991. </method>
  35992. <method name="getNumCores" return="int"
  35993. abstract="true" native="false" synchronized="false"
  35994. static="false" final="false" visibility="public"
  35995. deprecated="not deprecated">
  35996. <doc>
  35997. <![CDATA[Obtain total number of physical cores present on the system.
  35998. @return number of physical cores]]>
  35999. </doc>
  36000. </method>
  36001. <method name="getCpuFrequency" return="long"
  36002. abstract="true" native="false" synchronized="false"
  36003. static="false" final="false" visibility="public"
  36004. deprecated="not deprecated">
  36005. <doc>
  36006. <![CDATA[Obtain the CPU frequency of on the system.
  36007. @return CPU frequency in kHz]]>
  36008. </doc>
  36009. </method>
  36010. <method name="getCumulativeCpuTime" return="long"
  36011. abstract="true" native="false" synchronized="false"
  36012. static="false" final="false" visibility="public"
  36013. deprecated="not deprecated">
  36014. <doc>
  36015. <![CDATA[Obtain the cumulative CPU time since the system is on.
  36016. @return cumulative CPU time in milliseconds]]>
  36017. </doc>
  36018. </method>
  36019. <method name="getCpuUsagePercentage" return="float"
  36020. abstract="true" native="false" synchronized="false"
  36021. static="false" final="false" visibility="public"
  36022. deprecated="not deprecated">
  36023. <doc>
  36024. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  36025. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  36026. </doc>
  36027. </method>
  36028. <method name="getNumVCoresUsed" return="float"
  36029. abstract="true" native="false" synchronized="false"
  36030. static="false" final="false" visibility="public"
  36031. deprecated="not deprecated">
  36032. <doc>
  36033. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  36034. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  36035. </doc>
  36036. </method>
  36037. <method name="getNetworkBytesRead" return="long"
  36038. abstract="true" native="false" synchronized="false"
  36039. static="false" final="false" visibility="public"
  36040. deprecated="not deprecated">
  36041. <doc>
  36042. <![CDATA[Obtain the aggregated number of bytes read over the network.
  36043. @return total number of bytes read.]]>
  36044. </doc>
  36045. </method>
  36046. <method name="getNetworkBytesWritten" return="long"
  36047. abstract="true" native="false" synchronized="false"
  36048. static="false" final="false" visibility="public"
  36049. deprecated="not deprecated">
  36050. <doc>
  36051. <![CDATA[Obtain the aggregated number of bytes written to the network.
  36052. @return total number of bytes written.]]>
  36053. </doc>
  36054. </method>
  36055. <method name="getStorageBytesRead" return="long"
  36056. abstract="true" native="false" synchronized="false"
  36057. static="false" final="false" visibility="public"
  36058. deprecated="not deprecated">
  36059. <doc>
  36060. <![CDATA[Obtain the aggregated number of bytes read from disks.
  36061. @return total number of bytes read.]]>
  36062. </doc>
  36063. </method>
  36064. <method name="getStorageBytesWritten" return="long"
  36065. abstract="true" native="false" synchronized="false"
  36066. static="false" final="false" visibility="public"
  36067. deprecated="not deprecated">
  36068. <doc>
  36069. <![CDATA[Obtain the aggregated number of bytes written to disks.
  36070. @return total number of bytes written.]]>
  36071. </doc>
  36072. </method>
  36073. <doc>
  36074. <![CDATA[Plugin to calculate resource information on the system.]]>
  36075. </doc>
  36076. </class>
  36077. <!-- end class org.apache.hadoop.util.SysInfo -->
  36078. <!-- start interface org.apache.hadoop.util.Tool -->
  36079. <interface name="Tool" abstract="true"
  36080. static="false" final="false" visibility="public"
  36081. deprecated="not deprecated">
  36082. <implements name="org.apache.hadoop.conf.Configurable"/>
  36083. <method name="run" return="int"
  36084. abstract="false" native="false" synchronized="false"
  36085. static="false" final="false" visibility="public"
  36086. deprecated="not deprecated">
  36087. <param name="args" type="java.lang.String[]"/>
  36088. <exception name="Exception" type="java.lang.Exception"/>
  36089. <doc>
  36090. <![CDATA[Execute the command with the given arguments.
  36091. @param args command specific arguments.
  36092. @return exit code.
  36093. @throws Exception]]>
  36094. </doc>
  36095. </method>
  36096. <doc>
  36097. <![CDATA[A tool interface that supports handling of generic command-line options.
  36098. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  36099. The tool/application should delegate the handling of
  36100. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  36101. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  36102. and only handle its custom arguments.</p>
  36103. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  36104. <p><blockquote><pre>
  36105. public class MyApp extends Configured implements Tool {
  36106. public int run(String[] args) throws Exception {
  36107. // <code>Configuration</code> processed by <code>ToolRunner</code>
  36108. Configuration conf = getConf();
  36109. // Create a JobConf using the processed <code>conf</code>
  36110. JobConf job = new JobConf(conf, MyApp.class);
  36111. // Process custom command-line options
  36112. Path in = new Path(args[1]);
  36113. Path out = new Path(args[2]);
  36114. // Specify various job-specific parameters
  36115. job.setJobName("my-app");
  36116. job.setInputPath(in);
  36117. job.setOutputPath(out);
  36118. job.setMapperClass(MyMapper.class);
  36119. job.setReducerClass(MyReducer.class);
  36120. // Submit the job, then poll for progress until the job is complete
  36121. RunningJob runningJob = JobClient.runJob(job);
  36122. if (runningJob.isSuccessful()) {
  36123. return 0;
  36124. } else {
  36125. return 1;
  36126. }
  36127. }
  36128. public static void main(String[] args) throws Exception {
  36129. // Let <code>ToolRunner</code> handle generic command-line options
  36130. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  36131. System.exit(res);
  36132. }
  36133. }
  36134. </pre></blockquote></p>
  36135. @see GenericOptionsParser
  36136. @see ToolRunner]]>
  36137. </doc>
  36138. </interface>
  36139. <!-- end interface org.apache.hadoop.util.Tool -->
  36140. <!-- start class org.apache.hadoop.util.ToolRunner -->
  36141. <class name="ToolRunner" extends="java.lang.Object"
  36142. abstract="false"
  36143. static="false" final="false" visibility="public"
  36144. deprecated="not deprecated">
  36145. <constructor name="ToolRunner"
  36146. static="false" final="false" visibility="public"
  36147. deprecated="not deprecated">
  36148. </constructor>
  36149. <method name="run" return="int"
  36150. abstract="false" native="false" synchronized="false"
  36151. static="true" final="false" visibility="public"
  36152. deprecated="not deprecated">
  36153. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36154. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  36155. <param name="args" type="java.lang.String[]"/>
  36156. <exception name="Exception" type="java.lang.Exception"/>
  36157. <doc>
  36158. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  36159. parsing with the given generic arguments. Uses the given
  36160. <code>Configuration</code>, or builds one if null.
  36161. Sets the <code>Tool</code>'s configuration with the possibly modified
  36162. version of the <code>conf</code>.
  36163. @param conf <code>Configuration</code> for the <code>Tool</code>.
  36164. @param tool <code>Tool</code> to run.
  36165. @param args command-line arguments to the tool.
  36166. @return exit code of the {@link Tool#run(String[])} method.]]>
  36167. </doc>
  36168. </method>
  36169. <method name="run" return="int"
  36170. abstract="false" native="false" synchronized="false"
  36171. static="true" final="false" visibility="public"
  36172. deprecated="not deprecated">
  36173. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  36174. <param name="args" type="java.lang.String[]"/>
  36175. <exception name="Exception" type="java.lang.Exception"/>
  36176. <doc>
  36177. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  36178. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  36179. @param tool <code>Tool</code> to run.
  36180. @param args command-line arguments to the tool.
  36181. @return exit code of the {@link Tool#run(String[])} method.]]>
  36182. </doc>
  36183. </method>
  36184. <method name="printGenericCommandUsage"
  36185. abstract="false" native="false" synchronized="false"
  36186. static="true" final="false" visibility="public"
  36187. deprecated="not deprecated">
  36188. <param name="out" type="java.io.PrintStream"/>
  36189. <doc>
  36190. <![CDATA[Prints generic command-line argurments and usage information.
  36191. @param out stream to write usage information to.]]>
  36192. </doc>
  36193. </method>
  36194. <method name="confirmPrompt" return="boolean"
  36195. abstract="false" native="false" synchronized="false"
  36196. static="true" final="false" visibility="public"
  36197. deprecated="not deprecated">
  36198. <param name="prompt" type="java.lang.String"/>
  36199. <exception name="IOException" type="java.io.IOException"/>
  36200. <doc>
  36201. <![CDATA[Print out a prompt to the user, and return true if the user
  36202. responds with "y" or "yes". (case insensitive)]]>
  36203. </doc>
  36204. </method>
  36205. <doc>
  36206. <![CDATA[A utility to help run {@link Tool}s.
  36207. <p><code>ToolRunner</code> can be used to run classes implementing
  36208. <code>Tool</code> interface. It works in conjunction with
  36209. {@link GenericOptionsParser} to parse the
  36210. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  36211. generic hadoop command line arguments</a> and modifies the
  36212. <code>Configuration</code> of the <code>Tool</code>. The
  36213. application-specific options are passed along without being modified.
  36214. </p>
  36215. @see Tool
  36216. @see GenericOptionsParser]]>
  36217. </doc>
  36218. </class>
  36219. <!-- end class org.apache.hadoop.util.ToolRunner -->
  36220. <doc>
  36221. <![CDATA[Common utilities.]]>
  36222. </doc>
  36223. </package>
  36224. <package name="org.apache.hadoop.util.bloom">
  36225. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  36226. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  36227. abstract="false"
  36228. static="false" final="false" visibility="public"
  36229. deprecated="not deprecated">
  36230. <constructor name="BloomFilter"
  36231. static="false" final="false" visibility="public"
  36232. deprecated="not deprecated">
  36233. <doc>
  36234. <![CDATA[Default constructor - use with readFields]]>
  36235. </doc>
  36236. </constructor>
  36237. <constructor name="BloomFilter" type="int, int, int"
  36238. static="false" final="false" visibility="public"
  36239. deprecated="not deprecated">
  36240. <doc>
  36241. <![CDATA[Constructor
  36242. @param vectorSize The vector size of <i>this</i> filter.
  36243. @param nbHash The number of hash function to consider.
  36244. @param hashType type of the hashing function (see
  36245. {@link org.apache.hadoop.util.hash.Hash}).]]>
  36246. </doc>
  36247. </constructor>
  36248. <method name="add"
  36249. abstract="false" native="false" synchronized="false"
  36250. static="false" final="false" visibility="public"
  36251. deprecated="not deprecated">
  36252. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36253. </method>
  36254. <method name="and"
  36255. abstract="false" native="false" synchronized="false"
  36256. static="false" final="false" visibility="public"
  36257. deprecated="not deprecated">
  36258. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36259. </method>
  36260. <method name="membershipTest" return="boolean"
  36261. abstract="false" native="false" synchronized="false"
  36262. static="false" final="false" visibility="public"
  36263. deprecated="not deprecated">
  36264. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36265. </method>
  36266. <method name="not"
  36267. abstract="false" native="false" synchronized="false"
  36268. static="false" final="false" visibility="public"
  36269. deprecated="not deprecated">
  36270. </method>
  36271. <method name="or"
  36272. abstract="false" native="false" synchronized="false"
  36273. static="false" final="false" visibility="public"
  36274. deprecated="not deprecated">
  36275. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36276. </method>
  36277. <method name="xor"
  36278. abstract="false" native="false" synchronized="false"
  36279. static="false" final="false" visibility="public"
  36280. deprecated="not deprecated">
  36281. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36282. </method>
  36283. <method name="toString" return="java.lang.String"
  36284. abstract="false" native="false" synchronized="false"
  36285. static="false" final="false" visibility="public"
  36286. deprecated="not deprecated">
  36287. </method>
  36288. <method name="getVectorSize" return="int"
  36289. abstract="false" native="false" synchronized="false"
  36290. static="false" final="false" visibility="public"
  36291. deprecated="not deprecated">
  36292. <doc>
  36293. <![CDATA[@return size of the the bloomfilter]]>
  36294. </doc>
  36295. </method>
  36296. <method name="write"
  36297. abstract="false" native="false" synchronized="false"
  36298. static="false" final="false" visibility="public"
  36299. deprecated="not deprecated">
  36300. <param name="out" type="java.io.DataOutput"/>
  36301. <exception name="IOException" type="java.io.IOException"/>
  36302. </method>
  36303. <method name="readFields"
  36304. abstract="false" native="false" synchronized="false"
  36305. static="false" final="false" visibility="public"
  36306. deprecated="not deprecated">
  36307. <param name="in" type="java.io.DataInput"/>
  36308. <exception name="IOException" type="java.io.IOException"/>
  36309. </method>
  36310. <doc>
  36311. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  36312. <p>
  36313. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  36314. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  36315. offers for the transmission of set membership information between networked hosts. A sender encodes
  36316. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  36317. representation. Computation and space costs for construction are linear in the number of elements.
  36318. The receiver uses the filter to test whether various elements are members of the set. Though the
  36319. filter will occasionally return a false positive, it will never return a false negative. When creating
  36320. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  36321. <p>
  36322. Originally created by
  36323. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  36324. @see Filter The general behavior of a filter
  36325. @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>]]>
  36326. </doc>
  36327. </class>
  36328. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  36329. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  36330. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  36331. abstract="false"
  36332. static="false" final="true" visibility="public"
  36333. deprecated="not deprecated">
  36334. <constructor name="CountingBloomFilter"
  36335. static="false" final="false" visibility="public"
  36336. deprecated="not deprecated">
  36337. <doc>
  36338. <![CDATA[Default constructor - use with readFields]]>
  36339. </doc>
  36340. </constructor>
  36341. <constructor name="CountingBloomFilter" type="int, int, int"
  36342. static="false" final="false" visibility="public"
  36343. deprecated="not deprecated">
  36344. <doc>
  36345. <![CDATA[Constructor
  36346. @param vectorSize The vector size of <i>this</i> filter.
  36347. @param nbHash The number of hash function to consider.
  36348. @param hashType type of the hashing function (see
  36349. {@link org.apache.hadoop.util.hash.Hash}).]]>
  36350. </doc>
  36351. </constructor>
  36352. <method name="add"
  36353. abstract="false" native="false" synchronized="false"
  36354. static="false" final="false" visibility="public"
  36355. deprecated="not deprecated">
  36356. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36357. </method>
  36358. <method name="delete"
  36359. abstract="false" native="false" synchronized="false"
  36360. static="false" final="false" visibility="public"
  36361. deprecated="not deprecated">
  36362. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36363. <doc>
  36364. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  36365. <p>
  36366. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  36367. @param key The key to remove.]]>
  36368. </doc>
  36369. </method>
  36370. <method name="and"
  36371. abstract="false" native="false" synchronized="false"
  36372. static="false" final="false" visibility="public"
  36373. deprecated="not deprecated">
  36374. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36375. </method>
  36376. <method name="membershipTest" return="boolean"
  36377. abstract="false" native="false" synchronized="false"
  36378. static="false" final="false" visibility="public"
  36379. deprecated="not deprecated">
  36380. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36381. </method>
  36382. <method name="approximateCount" return="int"
  36383. abstract="false" native="false" synchronized="false"
  36384. static="false" final="false" visibility="public"
  36385. deprecated="not deprecated">
  36386. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36387. <doc>
  36388. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  36389. times the key was added to the filter. This allows the filter to be
  36390. used as an approximate <code>key -&gt; count</code> map.
  36391. <p>NOTE: due to the bucket size of this filter, inserting the same
  36392. key more than 15 times will cause an overflow at all filter positions
  36393. associated with this key, and it will significantly increase the error
  36394. rate for this and other keys. For this reason the filter can only be
  36395. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  36396. @param key key to be tested
  36397. @return 0 if the key is not present. Otherwise, a positive value v will
  36398. be returned such that <code>v == count</code> with probability equal to the
  36399. error rate of this filter, and <code>v &gt; count</code> otherwise.
  36400. Additionally, if the filter experienced an underflow as a result of
  36401. {@link #delete(Key)} operation, the return value may be lower than the
  36402. <code>count</code> with the probability of the false negative rate of such
  36403. filter.]]>
  36404. </doc>
  36405. </method>
  36406. <method name="not"
  36407. abstract="false" native="false" synchronized="false"
  36408. static="false" final="false" visibility="public"
  36409. deprecated="not deprecated">
  36410. </method>
  36411. <method name="or"
  36412. abstract="false" native="false" synchronized="false"
  36413. static="false" final="false" visibility="public"
  36414. deprecated="not deprecated">
  36415. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36416. </method>
  36417. <method name="xor"
  36418. abstract="false" native="false" synchronized="false"
  36419. static="false" final="false" visibility="public"
  36420. deprecated="not deprecated">
  36421. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36422. </method>
  36423. <method name="toString" return="java.lang.String"
  36424. abstract="false" native="false" synchronized="false"
  36425. static="false" final="false" visibility="public"
  36426. deprecated="not deprecated">
  36427. </method>
  36428. <method name="write"
  36429. abstract="false" native="false" synchronized="false"
  36430. static="false" final="false" visibility="public"
  36431. deprecated="not deprecated">
  36432. <param name="out" type="java.io.DataOutput"/>
  36433. <exception name="IOException" type="java.io.IOException"/>
  36434. </method>
  36435. <method name="readFields"
  36436. abstract="false" native="false" synchronized="false"
  36437. static="false" final="false" visibility="public"
  36438. deprecated="not deprecated">
  36439. <param name="in" type="java.io.DataInput"/>
  36440. <exception name="IOException" type="java.io.IOException"/>
  36441. </method>
  36442. <doc>
  36443. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  36444. 2000 paper.
  36445. <p>
  36446. A counting Bloom filter is an improvement to standard a Bloom filter as it
  36447. allows dynamic additions and deletions of set membership information. This
  36448. is achieved through the use of a counting vector instead of a bit vector.
  36449. <p>
  36450. Originally created by
  36451. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  36452. @see Filter The general behavior of a filter
  36453. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  36454. </doc>
  36455. </class>
  36456. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  36457. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  36458. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  36459. abstract="false"
  36460. static="false" final="false" visibility="public"
  36461. deprecated="not deprecated">
  36462. <constructor name="DynamicBloomFilter"
  36463. static="false" final="false" visibility="public"
  36464. deprecated="not deprecated">
  36465. <doc>
  36466. <![CDATA[Zero-args constructor for the serialization.]]>
  36467. </doc>
  36468. </constructor>
  36469. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  36470. static="false" final="false" visibility="public"
  36471. deprecated="not deprecated">
  36472. <doc>
  36473. <![CDATA[Constructor.
  36474. <p>
  36475. Builds an empty Dynamic Bloom filter.
  36476. @param vectorSize The number of bits in the vector.
  36477. @param nbHash The number of hash function to consider.
  36478. @param hashType type of the hashing function (see
  36479. {@link org.apache.hadoop.util.hash.Hash}).
  36480. @param nr The threshold for the maximum number of keys to record in a
  36481. dynamic Bloom filter row.]]>
  36482. </doc>
  36483. </constructor>
  36484. <method name="add"
  36485. abstract="false" native="false" synchronized="false"
  36486. static="false" final="false" visibility="public"
  36487. deprecated="not deprecated">
  36488. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36489. </method>
  36490. <method name="and"
  36491. abstract="false" native="false" synchronized="false"
  36492. static="false" final="false" visibility="public"
  36493. deprecated="not deprecated">
  36494. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36495. </method>
  36496. <method name="membershipTest" return="boolean"
  36497. abstract="false" native="false" synchronized="false"
  36498. static="false" final="false" visibility="public"
  36499. deprecated="not deprecated">
  36500. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36501. </method>
  36502. <method name="not"
  36503. abstract="false" native="false" synchronized="false"
  36504. static="false" final="false" visibility="public"
  36505. deprecated="not deprecated">
  36506. </method>
  36507. <method name="or"
  36508. abstract="false" native="false" synchronized="false"
  36509. static="false" final="false" visibility="public"
  36510. deprecated="not deprecated">
  36511. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36512. </method>
  36513. <method name="xor"
  36514. abstract="false" native="false" synchronized="false"
  36515. static="false" final="false" visibility="public"
  36516. deprecated="not deprecated">
  36517. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  36518. </method>
  36519. <method name="toString" return="java.lang.String"
  36520. abstract="false" native="false" synchronized="false"
  36521. static="false" final="false" visibility="public"
  36522. deprecated="not deprecated">
  36523. </method>
  36524. <method name="write"
  36525. abstract="false" native="false" synchronized="false"
  36526. static="false" final="false" visibility="public"
  36527. deprecated="not deprecated">
  36528. <param name="out" type="java.io.DataOutput"/>
  36529. <exception name="IOException" type="java.io.IOException"/>
  36530. </method>
  36531. <method name="readFields"
  36532. abstract="false" native="false" synchronized="false"
  36533. static="false" final="false" visibility="public"
  36534. deprecated="not deprecated">
  36535. <param name="in" type="java.io.DataInput"/>
  36536. <exception name="IOException" type="java.io.IOException"/>
  36537. </method>
  36538. <doc>
  36539. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  36540. <p>
  36541. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  36542. each of the <code>s</code> rows is a standard Bloom filter. The creation
  36543. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  36544. bit matrix, i.e., it is composed of a single standard Bloom filter.
  36545. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  36546. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  36547. the cardinality of the set <code>A</code> to record in the filter).
  36548. <p>
  36549. As the size of <code>A</code> grows during the execution of the application,
  36550. several keys must be inserted in the DBF. When inserting a key into the DBF,
  36551. one must first get an active Bloom filter in the matrix. A Bloom filter is
  36552. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  36553. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  36554. If an active Bloom filter is found, the key is inserted and
  36555. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  36556. is no active Bloom filter, a new one is created (i.e., a new row is added to
  36557. the matrix) according to the current size of <code>A</code> and the element
  36558. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  36559. this new Bloom filter is set to one. A given key is said to belong to the
  36560. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  36561. <p>
  36562. Originally created by
  36563. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  36564. @see Filter The general behavior of a filter
  36565. @see BloomFilter A Bloom filter
  36566. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  36567. </doc>
  36568. </class>
  36569. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  36570. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  36571. <class name="HashFunction" extends="java.lang.Object"
  36572. abstract="false"
  36573. static="false" final="true" visibility="public"
  36574. deprecated="not deprecated">
  36575. <constructor name="HashFunction" type="int, int, int"
  36576. static="false" final="false" visibility="public"
  36577. deprecated="not deprecated">
  36578. <doc>
  36579. <![CDATA[Constructor.
  36580. <p>
  36581. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  36582. @param maxValue The maximum highest returned value.
  36583. @param nbHash The number of resulting hashed values.
  36584. @param hashType type of the hashing function (see {@link Hash}).]]>
  36585. </doc>
  36586. </constructor>
  36587. <method name="clear"
  36588. abstract="false" native="false" synchronized="false"
  36589. static="false" final="false" visibility="public"
  36590. deprecated="not deprecated">
  36591. <doc>
  36592. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  36593. </doc>
  36594. </method>
  36595. <method name="hash" return="int[]"
  36596. abstract="false" native="false" synchronized="false"
  36597. static="false" final="false" visibility="public"
  36598. deprecated="not deprecated">
  36599. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  36600. <doc>
  36601. <![CDATA[Hashes a specified key into several integers.
  36602. @param k The specified key.
  36603. @return The array of hashed values.]]>
  36604. </doc>
  36605. </method>
  36606. <doc>
  36607. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  36608. @see Key The general behavior of a key being stored in a filter
  36609. @see Filter The general behavior of a filter]]>
  36610. </doc>
  36611. </class>
  36612. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  36613. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  36614. <interface name="RemoveScheme" abstract="true"
  36615. static="false" final="false" visibility="public"
  36616. deprecated="not deprecated">
  36617. <field name="RANDOM" type="short"
  36618. transient="false" volatile="false"
  36619. static="true" final="true" visibility="public"
  36620. deprecated="not deprecated">
  36621. <doc>
  36622. <![CDATA[Random selection.
  36623. <p>
  36624. The idea is to randomly select a bit to reset.]]>
  36625. </doc>
  36626. </field>
  36627. <field name="MINIMUM_FN" type="short"
  36628. transient="false" volatile="false"
  36629. static="true" final="true" visibility="public"
  36630. deprecated="not deprecated">
  36631. <doc>
  36632. <![CDATA[MinimumFN Selection.
  36633. <p>
  36634. The idea is to select the bit to reset that will generate the minimum
  36635. number of false negative.]]>
  36636. </doc>
  36637. </field>
  36638. <field name="MAXIMUM_FP" type="short"
  36639. transient="false" volatile="false"
  36640. static="true" final="true" visibility="public"
  36641. deprecated="not deprecated">
  36642. <doc>
  36643. <![CDATA[MaximumFP Selection.
  36644. <p>
  36645. The idea is to select the bit to reset that will remove the maximum number
  36646. of false positive.]]>
  36647. </doc>
  36648. </field>
  36649. <field name="RATIO" type="short"
  36650. transient="false" volatile="false"
  36651. static="true" final="true" visibility="public"
  36652. deprecated="not deprecated">
  36653. <doc>
  36654. <![CDATA[Ratio Selection.
  36655. <p>
  36656. The idea is to select the bit to reset that will, at the same time, remove
  36657. the maximum number of false positve while minimizing the amount of false
  36658. negative generated.]]>
  36659. </doc>
  36660. </field>
  36661. <doc>
  36662. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  36663. <p>
  36664. Originally created by
  36665. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  36666. </doc>
  36667. </interface>
  36668. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  36669. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  36670. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  36671. abstract="false"
  36672. static="false" final="true" visibility="public"
  36673. deprecated="not deprecated">
  36674. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  36675. <constructor name="RetouchedBloomFilter"
  36676. static="false" final="false" visibility="public"
  36677. deprecated="not deprecated">
  36678. <doc>
  36679. <![CDATA[Default constructor - use with readFields]]>
  36680. </doc>
  36681. </constructor>
  36682. <constructor name="RetouchedBloomFilter" type="int, int, int"
  36683. static="false" final="false" visibility="public"
  36684. deprecated="not deprecated">
  36685. <doc>
  36686. <![CDATA[Constructor
  36687. @param vectorSize The vector size of <i>this</i> filter.
  36688. @param nbHash The number of hash function to consider.
  36689. @param hashType type of the hashing function (see
  36690. {@link org.apache.hadoop.util.hash.Hash}).]]>
  36691. </doc>
  36692. </constructor>
  36693. <method name="add"
  36694. abstract="false" native="false" synchronized="false"
  36695. static="false" final="false" visibility="public"
  36696. deprecated="not deprecated">
  36697. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36698. </method>
  36699. <method name="addFalsePositive"
  36700. abstract="false" native="false" synchronized="false"
  36701. static="false" final="false" visibility="public"
  36702. deprecated="not deprecated">
  36703. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  36704. <doc>
  36705. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  36706. <p>
  36707. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  36708. @param key The false positive key to add.]]>
  36709. </doc>
  36710. </method>
  36711. <method name="addFalsePositive"
  36712. abstract="false" native="false" synchronized="false"
  36713. static="false" final="false" visibility="public"
  36714. deprecated="not deprecated">
  36715. <param name="coll" type="java.util.Collection"/>
  36716. <doc>
  36717. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  36718. @param coll The collection of false positive.]]>
  36719. </doc>
  36720. </method>
  36721. <method name="addFalsePositive"
  36722. abstract="false" native="false" synchronized="false"
  36723. static="false" final="false" visibility="public"
  36724. deprecated="not deprecated">
  36725. <param name="keys" type="java.util.List"/>
  36726. <doc>
  36727. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  36728. @param keys The list of false positive.]]>
  36729. </doc>
  36730. </method>
  36731. <method name="addFalsePositive"
  36732. abstract="false" native="false" synchronized="false"
  36733. static="false" final="false" visibility="public"
  36734. deprecated="not deprecated">
  36735. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  36736. <doc>
  36737. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  36738. @param keys The array of false positive.]]>
  36739. </doc>
  36740. </method>
  36741. <method name="selectiveClearing"
  36742. abstract="false" native="false" synchronized="false"
  36743. static="false" final="false" visibility="public"
  36744. deprecated="not deprecated">
  36745. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  36746. <param name="scheme" type="short"/>
  36747. <doc>
  36748. <![CDATA[Performs the selective clearing for a given key.
  36749. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  36750. @param scheme The selective clearing scheme to apply.]]>
  36751. </doc>
  36752. </method>
  36753. <method name="write"
  36754. abstract="false" native="false" synchronized="false"
  36755. static="false" final="false" visibility="public"
  36756. deprecated="not deprecated">
  36757. <param name="out" type="java.io.DataOutput"/>
  36758. <exception name="IOException" type="java.io.IOException"/>
  36759. </method>
  36760. <method name="readFields"
  36761. abstract="false" native="false" synchronized="false"
  36762. static="false" final="false" visibility="public"
  36763. deprecated="not deprecated">
  36764. <param name="in" type="java.io.DataInput"/>
  36765. <exception name="IOException" type="java.io.IOException"/>
  36766. </method>
  36767. <doc>
  36768. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  36769. <p>
  36770. It allows the removal of selected false positives at the cost of introducing
  36771. random false negatives, and with the benefit of eliminating some random false
  36772. positives at the same time.
  36773. <p>
  36774. Originally created by
  36775. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  36776. @see Filter The general behavior of a filter
  36777. @see BloomFilter A Bloom filter
  36778. @see RemoveScheme The different selective clearing algorithms
  36779. @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>]]>
  36780. </doc>
  36781. </class>
  36782. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  36783. </package>
  36784. <package name="org.apache.hadoop.util.curator">
  36785. </package>
  36786. <package name="org.apache.hadoop.util.hash">
  36787. </package>
  36788. </api>