Apache_Hadoop_Common_2.6.0.xml 1.9 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Mon Mar 30 15:27:52 PDT 2015 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop-core 2.6.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet -docletpath /Users/llu/hadoop-common/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/Users/llu/hadoop-common/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /Users/llu/hadoop-common/hadoop-common-project/hadoop-common/target/classes:/Users/llu/hadoop-common/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-2.6.0.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/lib/tools.jar:/Users/llu/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/Users/llu/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/llu/.m2/repository/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/Users/llu/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/llu/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/llu/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/llu/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/llu/.m2/repository/commons-net/commons-net/3.1/commons-net-3.1.jar:/Users/llu/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/llu/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/llu/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/llu/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/llu/.m2/repository/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/Users/llu/.m2/repository/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/Users/llu/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/Users/llu/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/llu/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/Users/llu/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/Users/llu/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/Users/llu/.m2/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/Users/llu/.m2/repository/asm/asm/3.2/asm-3.2.jar:/Users/llu/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/llu/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/llu/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/Users/llu/.m2/repository/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar:/Users/llu/.m2/repository/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar:/Users/llu/.m2/repository/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/Users/llu/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/llu/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/llu/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/llu/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/llu/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/Users/llu/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/llu/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/llu/.m2/repository/org/apache/avro/avro/1.7.4/avro-1.7.4.jar:/Users/llu/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/Users/llu/.m2/repository/org/xerial/snappy/snappy-java/1.0.4.1/snappy-java-1.0.4.1.jar:/Users/llu/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/Users/llu/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/Users/llu/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/Users/llu/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/Users/llu/hadoop-common/hadoop-common-project/hadoop-auth/target/hadoop-auth-2.6.0.jar:/Users/llu/.m2/repository/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/Users/llu/.m2/repository/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/Users/llu/.m2/repository/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/Users/llu/.m2/repository/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/Users/llu/.m2/repository/org/apache/curator/curator-framework/2.6.0/curator-framework-2.6.0.jar:/Users/llu/.m2/repository/com/jcraft/jsch/0.1.42/jsch-0.1.42.jar:/Users/llu/.m2/repository/org/apache/curator/curator-client/2.6.0/curator-client-2.6.0.jar:/Users/llu/.m2/repository/org/apache/curator/curator-recipes/2.6.0/curator-recipes-2.6.0.jar:/Users/llu/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/llu/.m2/repository/org/htrace/htrace-core/3.0.4/htrace-core-3.0.4.jar:/Users/llu/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar:/Users/llu/.m2/repository/io/netty/netty/3.6.2.Final/netty-3.6.2.Final.jar:/Users/llu/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/Users/llu/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar -sourcepath /Users/llu/hadoop-common/hadoop-common-project/hadoop-common/src/main/java -apidir /Users/llu/hadoop-common/hadoop-common-project/hadoop-common/target/site/jdiff/xml -apiname hadoop-core 2.6.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="getTrimmed" return="java.lang.String"
  343. abstract="false" native="false" synchronized="false"
  344. static="false" final="false" visibility="public"
  345. deprecated="not deprecated">
  346. <param name="name" type="java.lang.String"/>
  347. <doc>
  348. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  349. <code>null</code> if no such property exists.
  350. If the key is deprecated, it returns the value of
  351. the first key which replaces the deprecated key and is not null
  352. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  353. before being returned.
  354. @param name the property name.
  355. @return the value of the <code>name</code> or its replacing property,
  356. or null if no such property exists.]]>
  357. </doc>
  358. </method>
  359. <method name="getTrimmed" return="java.lang.String"
  360. abstract="false" native="false" synchronized="false"
  361. static="false" final="false" visibility="public"
  362. deprecated="not deprecated">
  363. <param name="name" type="java.lang.String"/>
  364. <param name="defaultValue" type="java.lang.String"/>
  365. <doc>
  366. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  367. <code>defaultValue</code> if no such property exists.
  368. See @{Configuration#getTrimmed} for more details.
  369. @param name the property name.
  370. @param defaultValue the property default value.
  371. @return the value of the <code>name</code> or defaultValue
  372. if it is not set.]]>
  373. </doc>
  374. </method>
  375. <method name="getRaw" return="java.lang.String"
  376. abstract="false" native="false" synchronized="false"
  377. static="false" final="false" visibility="public"
  378. deprecated="not deprecated">
  379. <param name="name" type="java.lang.String"/>
  380. <doc>
  381. <![CDATA[Get the value of the <code>name</code> property, without doing
  382. <a href="#VariableExpansion">variable expansion</a>.If the key is
  383. deprecated, it returns the value of the first key which replaces
  384. the deprecated key and is not null.
  385. @param name the property name.
  386. @return the value of the <code>name</code> property or
  387. its replacing property and null if no such property exists.]]>
  388. </doc>
  389. </method>
  390. <method name="set"
  391. abstract="false" native="false" synchronized="false"
  392. static="false" final="false" visibility="public"
  393. deprecated="not deprecated">
  394. <param name="name" type="java.lang.String"/>
  395. <param name="value" type="java.lang.String"/>
  396. <doc>
  397. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  398. <code>name</code> is deprecated or there is a deprecated name associated to it,
  399. it sets the value to both names. Name will be trimmed before put into
  400. configuration.
  401. @param name property name.
  402. @param value property value.]]>
  403. </doc>
  404. </method>
  405. <method name="set"
  406. abstract="false" native="false" synchronized="false"
  407. static="false" final="false" visibility="public"
  408. deprecated="not deprecated">
  409. <param name="name" type="java.lang.String"/>
  410. <param name="value" type="java.lang.String"/>
  411. <param name="source" type="java.lang.String"/>
  412. <doc>
  413. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  414. <code>name</code> is deprecated, it also sets the <code>value</code> to
  415. the keys that replace the deprecated key. Name will be trimmed before put
  416. into configuration.
  417. @param name property name.
  418. @param value property value.
  419. @param source the place that this configuration value came from
  420. (For debugging).
  421. @throws IllegalArgumentException when the value or name is null.]]>
  422. </doc>
  423. </method>
  424. <method name="unset"
  425. abstract="false" native="false" synchronized="true"
  426. static="false" final="false" visibility="public"
  427. deprecated="not deprecated">
  428. <param name="name" type="java.lang.String"/>
  429. <doc>
  430. <![CDATA[Unset a previously set property.]]>
  431. </doc>
  432. </method>
  433. <method name="setIfUnset"
  434. abstract="false" native="false" synchronized="true"
  435. static="false" final="false" visibility="public"
  436. deprecated="not deprecated">
  437. <param name="name" type="java.lang.String"/>
  438. <param name="value" type="java.lang.String"/>
  439. <doc>
  440. <![CDATA[Sets a property if it is currently unset.
  441. @param name the property name
  442. @param value the new value]]>
  443. </doc>
  444. </method>
  445. <method name="get" return="java.lang.String"
  446. abstract="false" native="false" synchronized="false"
  447. static="false" final="false" visibility="public"
  448. deprecated="not deprecated">
  449. <param name="name" type="java.lang.String"/>
  450. <param name="defaultValue" type="java.lang.String"/>
  451. <doc>
  452. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  453. it returns the value of the first key which replaces the deprecated key
  454. and is not null.
  455. If no such property exists,
  456. then <code>defaultValue</code> is returned.
  457. @param name property name, will be trimmed before get value.
  458. @param defaultValue default value.
  459. @return property value, or <code>defaultValue</code> if the property
  460. doesn't exist.]]>
  461. </doc>
  462. </method>
  463. <method name="getInt" return="int"
  464. abstract="false" native="false" synchronized="false"
  465. static="false" final="false" visibility="public"
  466. deprecated="not deprecated">
  467. <param name="name" type="java.lang.String"/>
  468. <param name="defaultValue" type="int"/>
  469. <doc>
  470. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  471. If no such property exists, the provided default value is returned,
  472. or if the specified value is not a valid <code>int</code>,
  473. then an error is thrown.
  474. @param name property name.
  475. @param defaultValue default value.
  476. @throws NumberFormatException when the value is invalid
  477. @return property value as an <code>int</code>,
  478. or <code>defaultValue</code>.]]>
  479. </doc>
  480. </method>
  481. <method name="getInts" return="int[]"
  482. abstract="false" native="false" synchronized="false"
  483. static="false" final="false" visibility="public"
  484. deprecated="not deprecated">
  485. <param name="name" type="java.lang.String"/>
  486. <doc>
  487. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  488. <code>int</code> values.
  489. If no such property exists, an empty array is returned.
  490. @param name property name
  491. @return property value interpreted as an array of comma-delimited
  492. <code>int</code> values]]>
  493. </doc>
  494. </method>
  495. <method name="setInt"
  496. abstract="false" native="false" synchronized="false"
  497. static="false" final="false" visibility="public"
  498. deprecated="not deprecated">
  499. <param name="name" type="java.lang.String"/>
  500. <param name="value" type="int"/>
  501. <doc>
  502. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  503. @param name property name.
  504. @param value <code>int</code> value of the property.]]>
  505. </doc>
  506. </method>
  507. <method name="getLong" return="long"
  508. abstract="false" native="false" synchronized="false"
  509. static="false" final="false" visibility="public"
  510. deprecated="not deprecated">
  511. <param name="name" type="java.lang.String"/>
  512. <param name="defaultValue" type="long"/>
  513. <doc>
  514. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  515. If no such property exists, the provided default value is returned,
  516. or if the specified value is not a valid <code>long</code>,
  517. then an error is thrown.
  518. @param name property name.
  519. @param defaultValue default value.
  520. @throws NumberFormatException when the value is invalid
  521. @return property value as a <code>long</code>,
  522. or <code>defaultValue</code>.]]>
  523. </doc>
  524. </method>
  525. <method name="getLongBytes" return="long"
  526. abstract="false" native="false" synchronized="false"
  527. static="false" final="false" visibility="public"
  528. deprecated="not deprecated">
  529. <param name="name" type="java.lang.String"/>
  530. <param name="defaultValue" type="long"/>
  531. <doc>
  532. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  533. human readable format. If no such property exists, the provided default
  534. value is returned, or if the specified value is not a valid
  535. <code>long</code> or human readable format, then an error is thrown. You
  536. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  537. t(tera), p(peta), e(exa)
  538. @param name property name.
  539. @param defaultValue default value.
  540. @throws NumberFormatException when the value is invalid
  541. @return property value as a <code>long</code>,
  542. or <code>defaultValue</code>.]]>
  543. </doc>
  544. </method>
  545. <method name="setLong"
  546. abstract="false" native="false" synchronized="false"
  547. static="false" final="false" visibility="public"
  548. deprecated="not deprecated">
  549. <param name="name" type="java.lang.String"/>
  550. <param name="value" type="long"/>
  551. <doc>
  552. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  553. @param name property name.
  554. @param value <code>long</code> value of the property.]]>
  555. </doc>
  556. </method>
  557. <method name="getFloat" return="float"
  558. abstract="false" native="false" synchronized="false"
  559. static="false" final="false" visibility="public"
  560. deprecated="not deprecated">
  561. <param name="name" type="java.lang.String"/>
  562. <param name="defaultValue" type="float"/>
  563. <doc>
  564. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  565. If no such property exists, the provided default value is returned,
  566. or if the specified value is not a valid <code>float</code>,
  567. then an error is thrown.
  568. @param name property name.
  569. @param defaultValue default value.
  570. @throws NumberFormatException when the value is invalid
  571. @return property value as a <code>float</code>,
  572. or <code>defaultValue</code>.]]>
  573. </doc>
  574. </method>
  575. <method name="setFloat"
  576. abstract="false" native="false" synchronized="false"
  577. static="false" final="false" visibility="public"
  578. deprecated="not deprecated">
  579. <param name="name" type="java.lang.String"/>
  580. <param name="value" type="float"/>
  581. <doc>
  582. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  583. @param name property name.
  584. @param value property value.]]>
  585. </doc>
  586. </method>
  587. <method name="getDouble" return="double"
  588. abstract="false" native="false" synchronized="false"
  589. static="false" final="false" visibility="public"
  590. deprecated="not deprecated">
  591. <param name="name" type="java.lang.String"/>
  592. <param name="defaultValue" type="double"/>
  593. <doc>
  594. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  595. If no such property exists, the provided default value is returned,
  596. or if the specified value is not a valid <code>double</code>,
  597. then an error is thrown.
  598. @param name property name.
  599. @param defaultValue default value.
  600. @throws NumberFormatException when the value is invalid
  601. @return property value as a <code>double</code>,
  602. or <code>defaultValue</code>.]]>
  603. </doc>
  604. </method>
  605. <method name="setDouble"
  606. abstract="false" native="false" synchronized="false"
  607. static="false" final="false" visibility="public"
  608. deprecated="not deprecated">
  609. <param name="name" type="java.lang.String"/>
  610. <param name="value" type="double"/>
  611. <doc>
  612. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  613. @param name property name.
  614. @param value property value.]]>
  615. </doc>
  616. </method>
  617. <method name="getBoolean" return="boolean"
  618. abstract="false" native="false" synchronized="false"
  619. static="false" final="false" visibility="public"
  620. deprecated="not deprecated">
  621. <param name="name" type="java.lang.String"/>
  622. <param name="defaultValue" type="boolean"/>
  623. <doc>
  624. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  625. If no such property is specified, or if the specified value is not a valid
  626. <code>boolean</code>, then <code>defaultValue</code> is returned.
  627. @param name property name.
  628. @param defaultValue default value.
  629. @return property value as a <code>boolean</code>,
  630. or <code>defaultValue</code>.]]>
  631. </doc>
  632. </method>
  633. <method name="setBoolean"
  634. abstract="false" native="false" synchronized="false"
  635. static="false" final="false" visibility="public"
  636. deprecated="not deprecated">
  637. <param name="name" type="java.lang.String"/>
  638. <param name="value" type="boolean"/>
  639. <doc>
  640. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  641. @param name property name.
  642. @param value <code>boolean</code> value of the property.]]>
  643. </doc>
  644. </method>
  645. <method name="setBooleanIfUnset"
  646. abstract="false" native="false" synchronized="false"
  647. static="false" final="false" visibility="public"
  648. deprecated="not deprecated">
  649. <param name="name" type="java.lang.String"/>
  650. <param name="value" type="boolean"/>
  651. <doc>
  652. <![CDATA[Set the given property, if it is currently unset.
  653. @param name property name
  654. @param value new value]]>
  655. </doc>
  656. </method>
  657. <method name="setEnum"
  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="T"/>
  663. <doc>
  664. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  665. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  666. @param name property name
  667. @param value new value]]>
  668. </doc>
  669. </method>
  670. <method name="getEnum" return="T"
  671. abstract="false" native="false" synchronized="false"
  672. static="false" final="false" visibility="public"
  673. deprecated="not deprecated">
  674. <param name="name" type="java.lang.String"/>
  675. <param name="defaultValue" type="T"/>
  676. <doc>
  677. <![CDATA[Return value matching this enumerated type.
  678. @param name Property name
  679. @param defaultValue Value returned if no mapping exists
  680. @throws IllegalArgumentException If mapping is illegal for the type
  681. provided]]>
  682. </doc>
  683. </method>
  684. <method name="setTimeDuration"
  685. abstract="false" native="false" synchronized="false"
  686. static="false" final="false" visibility="public"
  687. deprecated="not deprecated">
  688. <param name="name" type="java.lang.String"/>
  689. <param name="value" type="long"/>
  690. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  691. <doc>
  692. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  693. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  694. @param name Property name
  695. @param value Time duration
  696. @param unit Unit of time]]>
  697. </doc>
  698. </method>
  699. <method name="getTimeDuration" return="long"
  700. abstract="false" native="false" synchronized="false"
  701. static="false" final="false" visibility="public"
  702. deprecated="not deprecated">
  703. <param name="name" type="java.lang.String"/>
  704. <param name="defaultValue" type="long"/>
  705. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  706. <doc>
  707. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  708. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  709. (ms), seconds (s), minutes (m), hours (h), and days (d).
  710. @param name Property name
  711. @param defaultValue Value returned if no mapping exists.
  712. @param unit Unit to convert the stored property, if it exists.
  713. @throws NumberFormatException If the property stripped of its unit is not
  714. a number]]>
  715. </doc>
  716. </method>
  717. <method name="getPattern" return="java.util.regex.Pattern"
  718. abstract="false" native="false" synchronized="false"
  719. static="false" final="false" visibility="public"
  720. deprecated="not deprecated">
  721. <param name="name" type="java.lang.String"/>
  722. <param name="defaultValue" type="java.util.regex.Pattern"/>
  723. <doc>
  724. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  725. If no such property is specified, or if the specified value is not a valid
  726. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  727. @param name property name
  728. @param defaultValue default value
  729. @return property value as a compiled Pattern, or defaultValue]]>
  730. </doc>
  731. </method>
  732. <method name="setPattern"
  733. abstract="false" native="false" synchronized="false"
  734. static="false" final="false" visibility="public"
  735. deprecated="not deprecated">
  736. <param name="name" type="java.lang.String"/>
  737. <param name="pattern" type="java.util.regex.Pattern"/>
  738. <doc>
  739. <![CDATA[Set the given property to <code>Pattern</code>.
  740. If the pattern is passed as null, sets the empty pattern which results in
  741. further calls to getPattern(...) returning the default value.
  742. @param name property name
  743. @param pattern new value]]>
  744. </doc>
  745. </method>
  746. <method name="getPropertySources" return="java.lang.String[]"
  747. abstract="false" native="false" synchronized="true"
  748. static="false" final="false" visibility="public"
  749. deprecated="not deprecated">
  750. <param name="name" type="java.lang.String"/>
  751. <doc>
  752. <![CDATA[Gets information about why a property was set. Typically this is the
  753. path to the resource objects (file, URL, etc.) the property came from, but
  754. it can also indicate that it was set programatically, or because of the
  755. command line.
  756. @param name - The property name to get the source of.
  757. @return null - If the property or its source wasn't found. Otherwise,
  758. returns a list of the sources of the resource. The older sources are
  759. the first ones in the list. So for example if a configuration is set from
  760. the command line, and then written out to a file that is read back in the
  761. first entry would indicate that it was set from the command line, while
  762. the second one would indicate the file that the new configuration was read
  763. in from.]]>
  764. </doc>
  765. </method>
  766. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  767. abstract="false" native="false" synchronized="false"
  768. static="false" final="false" visibility="public"
  769. deprecated="not deprecated">
  770. <param name="name" type="java.lang.String"/>
  771. <param name="defaultValue" type="java.lang.String"/>
  772. <doc>
  773. <![CDATA[Parse the given attribute as a set of integer ranges
  774. @param name the attribute name
  775. @param defaultValue the default value if it is not set
  776. @return a new set of ranges from the configured value]]>
  777. </doc>
  778. </method>
  779. <method name="getStringCollection" return="java.util.Collection"
  780. abstract="false" native="false" synchronized="false"
  781. static="false" final="false" visibility="public"
  782. deprecated="not deprecated">
  783. <param name="name" type="java.lang.String"/>
  784. <doc>
  785. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  786. a collection of <code>String</code>s.
  787. If no such property is specified then empty collection is returned.
  788. <p>
  789. This is an optimized version of {@link #getStrings(String)}
  790. @param name property name.
  791. @return property value as a collection of <code>String</code>s.]]>
  792. </doc>
  793. </method>
  794. <method name="getStrings" return="java.lang.String[]"
  795. abstract="false" native="false" synchronized="false"
  796. static="false" final="false" visibility="public"
  797. deprecated="not deprecated">
  798. <param name="name" type="java.lang.String"/>
  799. <doc>
  800. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  801. an array of <code>String</code>s.
  802. If no such property is specified then <code>null</code> is returned.
  803. @param name property name.
  804. @return property value as an array of <code>String</code>s,
  805. or <code>null</code>.]]>
  806. </doc>
  807. </method>
  808. <method name="getStrings" return="java.lang.String[]"
  809. abstract="false" native="false" synchronized="false"
  810. static="false" final="false" visibility="public"
  811. deprecated="not deprecated">
  812. <param name="name" type="java.lang.String"/>
  813. <param name="defaultValue" type="java.lang.String[]"/>
  814. <doc>
  815. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  816. an array of <code>String</code>s.
  817. If no such property is specified then default value is returned.
  818. @param name property name.
  819. @param defaultValue The default value
  820. @return property value as an array of <code>String</code>s,
  821. or default value.]]>
  822. </doc>
  823. </method>
  824. <method name="getTrimmedStringCollection" return="java.util.Collection"
  825. abstract="false" native="false" synchronized="false"
  826. static="false" final="false" visibility="public"
  827. deprecated="not deprecated">
  828. <param name="name" type="java.lang.String"/>
  829. <doc>
  830. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  831. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  832. If no such property is specified then empty <code>Collection</code> is returned.
  833. @param name property name.
  834. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  835. </doc>
  836. </method>
  837. <method name="getTrimmedStrings" return="java.lang.String[]"
  838. abstract="false" native="false" synchronized="false"
  839. static="false" final="false" visibility="public"
  840. deprecated="not deprecated">
  841. <param name="name" type="java.lang.String"/>
  842. <doc>
  843. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  844. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  845. If no such property is specified then an empty array is returned.
  846. @param name property name.
  847. @return property value as an array of trimmed <code>String</code>s,
  848. or empty array.]]>
  849. </doc>
  850. </method>
  851. <method name="getTrimmedStrings" return="java.lang.String[]"
  852. abstract="false" native="false" synchronized="false"
  853. static="false" final="false" visibility="public"
  854. deprecated="not deprecated">
  855. <param name="name" type="java.lang.String"/>
  856. <param name="defaultValue" type="java.lang.String[]"/>
  857. <doc>
  858. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  859. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  860. If no such property is specified then default value is returned.
  861. @param name property name.
  862. @param defaultValue The default value
  863. @return property value as an array of trimmed <code>String</code>s,
  864. or default value.]]>
  865. </doc>
  866. </method>
  867. <method name="setStrings"
  868. abstract="false" native="false" synchronized="false"
  869. static="false" final="false" visibility="public"
  870. deprecated="not deprecated">
  871. <param name="name" type="java.lang.String"/>
  872. <param name="values" type="java.lang.String[]"/>
  873. <doc>
  874. <![CDATA[Set the array of string values for the <code>name</code> property as
  875. as comma delimited values.
  876. @param name property name.
  877. @param values The values]]>
  878. </doc>
  879. </method>
  880. <method name="getPassword" return="char[]"
  881. abstract="false" native="false" synchronized="false"
  882. static="false" final="false" visibility="public"
  883. deprecated="not deprecated">
  884. <param name="name" type="java.lang.String"/>
  885. <exception name="IOException" type="java.io.IOException"/>
  886. <doc>
  887. <![CDATA[Get the value for a known password configuration element.
  888. In order to enable the elimination of clear text passwords in config,
  889. this method attempts to resolve the property name as an alias through
  890. the CredentialProvider API and conditionally fallsback to config.
  891. @param name property name
  892. @return password]]>
  893. </doc>
  894. </method>
  895. <method name="getPasswordFromCredentialProviders" return="char[]"
  896. abstract="false" native="false" synchronized="false"
  897. static="false" final="false" visibility="protected"
  898. deprecated="not deprecated">
  899. <param name="name" type="java.lang.String"/>
  900. <exception name="IOException" type="java.io.IOException"/>
  901. <doc>
  902. <![CDATA[Try and resolve the provided element name as a credential provider
  903. alias.
  904. @param name alias of the provisioned credential
  905. @return password or null if not found
  906. @throws IOException]]>
  907. </doc>
  908. </method>
  909. <method name="getPasswordFromConfig" return="char[]"
  910. abstract="false" native="false" synchronized="false"
  911. static="false" final="false" visibility="protected"
  912. deprecated="not deprecated">
  913. <param name="name" type="java.lang.String"/>
  914. <doc>
  915. <![CDATA[Fallback to clear text passwords in configuration.
  916. @param name
  917. @return clear text password or null]]>
  918. </doc>
  919. </method>
  920. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  921. abstract="false" native="false" synchronized="false"
  922. static="false" final="false" visibility="public"
  923. deprecated="not deprecated">
  924. <param name="hostProperty" type="java.lang.String"/>
  925. <param name="addressProperty" type="java.lang.String"/>
  926. <param name="defaultAddressValue" type="java.lang.String"/>
  927. <param name="defaultPort" type="int"/>
  928. <doc>
  929. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  930. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  931. <code>null</code>, <code>addressProperty</code> will be used. This
  932. is useful for cases where we want to differentiate between host
  933. bind address and address clients should use to establish connection.
  934. @param hostProperty bind host property name.
  935. @param addressProperty address property name.
  936. @param defaultAddressValue the default value
  937. @param defaultPort the default port
  938. @return InetSocketAddress]]>
  939. </doc>
  940. </method>
  941. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  942. abstract="false" native="false" synchronized="false"
  943. static="false" final="false" visibility="public"
  944. deprecated="not deprecated">
  945. <param name="name" type="java.lang.String"/>
  946. <param name="defaultAddress" type="java.lang.String"/>
  947. <param name="defaultPort" type="int"/>
  948. <doc>
  949. <![CDATA[Get the socket address for <code>name</code> property as a
  950. <code>InetSocketAddress</code>.
  951. @param name property name.
  952. @param defaultAddress the default value
  953. @param defaultPort the default port
  954. @return InetSocketAddress]]>
  955. </doc>
  956. </method>
  957. <method name="setSocketAddr"
  958. abstract="false" native="false" synchronized="false"
  959. static="false" final="false" visibility="public"
  960. deprecated="not deprecated">
  961. <param name="name" type="java.lang.String"/>
  962. <param name="addr" type="java.net.InetSocketAddress"/>
  963. <doc>
  964. <![CDATA[Set the socket address for the <code>name</code> property as
  965. a <code>host:port</code>.]]>
  966. </doc>
  967. </method>
  968. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  969. abstract="false" native="false" synchronized="false"
  970. static="false" final="false" visibility="public"
  971. deprecated="not deprecated">
  972. <param name="hostProperty" type="java.lang.String"/>
  973. <param name="addressProperty" type="java.lang.String"/>
  974. <param name="defaultAddressValue" type="java.lang.String"/>
  975. <param name="addr" type="java.net.InetSocketAddress"/>
  976. <doc>
  977. <![CDATA[Set the socket address a client can use to connect for the
  978. <code>name</code> property as a <code>host:port</code>. The wildcard
  979. address is replaced with the local host's address. If the host and address
  980. properties are configured the host component of the address will be combined
  981. with the port component of the addr to generate the address. This is to allow
  982. optional control over which host name is used in multi-home bind-host
  983. cases where a host can have multiple names
  984. @param hostProperty the bind-host configuration name
  985. @param addressProperty the service address configuration name
  986. @param defaultAddressValue the service default address configuration value
  987. @param addr InetSocketAddress of the service listener
  988. @return InetSocketAddress for clients to connect]]>
  989. </doc>
  990. </method>
  991. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  992. abstract="false" native="false" synchronized="false"
  993. static="false" final="false" visibility="public"
  994. deprecated="not deprecated">
  995. <param name="name" type="java.lang.String"/>
  996. <param name="addr" type="java.net.InetSocketAddress"/>
  997. <doc>
  998. <![CDATA[Set the socket address a client can use to connect for the
  999. <code>name</code> property as a <code>host:port</code>. The wildcard
  1000. address is replaced with the local host's address.
  1001. @param name property name.
  1002. @param addr InetSocketAddress of a listener to store in the given property
  1003. @return InetSocketAddress for clients to connect]]>
  1004. </doc>
  1005. </method>
  1006. <method name="getClassByName" return="java.lang.Class"
  1007. abstract="false" native="false" synchronized="false"
  1008. static="false" final="false" visibility="public"
  1009. deprecated="not deprecated">
  1010. <param name="name" type="java.lang.String"/>
  1011. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1012. <doc>
  1013. <![CDATA[Load a class by name.
  1014. @param name the class name.
  1015. @return the class object.
  1016. @throws ClassNotFoundException if the class is not found.]]>
  1017. </doc>
  1018. </method>
  1019. <method name="getClassByNameOrNull" return="java.lang.Class"
  1020. abstract="false" native="false" synchronized="false"
  1021. static="false" final="false" visibility="public"
  1022. deprecated="not deprecated">
  1023. <param name="name" type="java.lang.String"/>
  1024. <doc>
  1025. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1026. if it couldn't be loaded. This is to avoid the overhead of creating
  1027. an exception.
  1028. @param name the class name
  1029. @return the class object, or null if it could not be found.]]>
  1030. </doc>
  1031. </method>
  1032. <method name="getClasses" return="java.lang.Class[]"
  1033. abstract="false" native="false" synchronized="false"
  1034. static="false" final="false" visibility="public"
  1035. deprecated="not deprecated">
  1036. <param name="name" type="java.lang.String"/>
  1037. <param name="defaultValue" type="java.lang.Class[]"/>
  1038. <doc>
  1039. <![CDATA[Get the value of the <code>name</code> property
  1040. as an array of <code>Class</code>.
  1041. The value of the property specifies a list of comma separated class names.
  1042. If no such property is specified, then <code>defaultValue</code> is
  1043. returned.
  1044. @param name the property name.
  1045. @param defaultValue default value.
  1046. @return property value as a <code>Class[]</code>,
  1047. or <code>defaultValue</code>.]]>
  1048. </doc>
  1049. </method>
  1050. <method name="getClass" return="java.lang.Class"
  1051. abstract="false" native="false" synchronized="false"
  1052. static="false" final="false" visibility="public"
  1053. deprecated="not deprecated">
  1054. <param name="name" type="java.lang.String"/>
  1055. <param name="defaultValue" type="java.lang.Class"/>
  1056. <doc>
  1057. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1058. If no such property is specified, then <code>defaultValue</code> is
  1059. returned.
  1060. @param name the class name.
  1061. @param defaultValue default value.
  1062. @return property value as a <code>Class</code>,
  1063. or <code>defaultValue</code>.]]>
  1064. </doc>
  1065. </method>
  1066. <method name="getClass" return="java.lang.Class"
  1067. abstract="false" native="false" synchronized="false"
  1068. static="false" final="false" visibility="public"
  1069. deprecated="not deprecated">
  1070. <param name="name" type="java.lang.String"/>
  1071. <param name="defaultValue" type="java.lang.Class"/>
  1072. <param name="xface" type="java.lang.Class"/>
  1073. <doc>
  1074. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1075. implementing the interface specified by <code>xface</code>.
  1076. If no such property is specified, then <code>defaultValue</code> is
  1077. returned.
  1078. An exception is thrown if the returned class does not implement the named
  1079. interface.
  1080. @param name the class name.
  1081. @param defaultValue default value.
  1082. @param xface the interface implemented by the named class.
  1083. @return property value as a <code>Class</code>,
  1084. or <code>defaultValue</code>.]]>
  1085. </doc>
  1086. </method>
  1087. <method name="getInstances" return="java.util.List"
  1088. abstract="false" native="false" synchronized="false"
  1089. static="false" final="false" visibility="public"
  1090. deprecated="not deprecated">
  1091. <param name="name" type="java.lang.String"/>
  1092. <param name="xface" type="java.lang.Class"/>
  1093. <doc>
  1094. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1095. of objects implementing the interface specified by <code>xface</code>.
  1096. An exception is thrown if any of the classes does not exist, or if it does
  1097. not implement the named interface.
  1098. @param name the property name.
  1099. @param xface the interface implemented by the classes named by
  1100. <code>name</code>.
  1101. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1102. </doc>
  1103. </method>
  1104. <method name="setClass"
  1105. abstract="false" native="false" synchronized="false"
  1106. static="false" final="false" visibility="public"
  1107. deprecated="not deprecated">
  1108. <param name="name" type="java.lang.String"/>
  1109. <param name="theClass" type="java.lang.Class"/>
  1110. <param name="xface" type="java.lang.Class"/>
  1111. <doc>
  1112. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1113. <code>theClass</code> implementing the given interface <code>xface</code>.
  1114. An exception is thrown if <code>theClass</code> does not implement the
  1115. interface <code>xface</code>.
  1116. @param name property name.
  1117. @param theClass property value.
  1118. @param xface the interface implemented by the named class.]]>
  1119. </doc>
  1120. </method>
  1121. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1122. abstract="false" native="false" synchronized="false"
  1123. static="false" final="false" visibility="public"
  1124. deprecated="not deprecated">
  1125. <param name="dirsProp" type="java.lang.String"/>
  1126. <param name="path" type="java.lang.String"/>
  1127. <exception name="IOException" type="java.io.IOException"/>
  1128. <doc>
  1129. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1130. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1131. then one is chosen based on <i>path</i>'s hash code. If the selected
  1132. directory does not exist, an attempt is made to create it.
  1133. @param dirsProp directory in which to locate the file.
  1134. @param path file-path.
  1135. @return local file under the directory with the given path.]]>
  1136. </doc>
  1137. </method>
  1138. <method name="getFile" return="java.io.File"
  1139. abstract="false" native="false" synchronized="false"
  1140. static="false" final="false" visibility="public"
  1141. deprecated="not deprecated">
  1142. <param name="dirsProp" type="java.lang.String"/>
  1143. <param name="path" type="java.lang.String"/>
  1144. <exception name="IOException" type="java.io.IOException"/>
  1145. <doc>
  1146. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1147. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1148. then one is chosen based on <i>path</i>'s hash code. If the selected
  1149. directory does not exist, an attempt is made to create it.
  1150. @param dirsProp directory in which to locate the file.
  1151. @param path file-path.
  1152. @return local file under the directory with the given path.]]>
  1153. </doc>
  1154. </method>
  1155. <method name="getResource" return="java.net.URL"
  1156. abstract="false" native="false" synchronized="false"
  1157. static="false" final="false" visibility="public"
  1158. deprecated="not deprecated">
  1159. <param name="name" type="java.lang.String"/>
  1160. <doc>
  1161. <![CDATA[Get the {@link URL} for the named resource.
  1162. @param name resource name.
  1163. @return the url for the named resource.]]>
  1164. </doc>
  1165. </method>
  1166. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1167. abstract="false" native="false" synchronized="false"
  1168. static="false" final="false" visibility="public"
  1169. deprecated="not deprecated">
  1170. <param name="name" type="java.lang.String"/>
  1171. <doc>
  1172. <![CDATA[Get an input stream attached to the configuration resource with the
  1173. given <code>name</code>.
  1174. @param name configuration resource name.
  1175. @return an input stream attached to the resource.]]>
  1176. </doc>
  1177. </method>
  1178. <method name="getConfResourceAsReader" return="java.io.Reader"
  1179. abstract="false" native="false" synchronized="false"
  1180. static="false" final="false" visibility="public"
  1181. deprecated="not deprecated">
  1182. <param name="name" type="java.lang.String"/>
  1183. <doc>
  1184. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1185. given <code>name</code>.
  1186. @param name configuration resource name.
  1187. @return a reader attached to the resource.]]>
  1188. </doc>
  1189. </method>
  1190. <method name="getFinalParameters" return="java.util.Set"
  1191. abstract="false" native="false" synchronized="false"
  1192. static="false" final="false" visibility="public"
  1193. deprecated="not deprecated">
  1194. <doc>
  1195. <![CDATA[Get the set of parameters marked final.
  1196. @return final parameter set.]]>
  1197. </doc>
  1198. </method>
  1199. <method name="getProps" return="java.util.Properties"
  1200. abstract="false" native="false" synchronized="true"
  1201. static="false" final="false" visibility="protected"
  1202. deprecated="not deprecated">
  1203. </method>
  1204. <method name="size" return="int"
  1205. abstract="false" native="false" synchronized="false"
  1206. static="false" final="false" visibility="public"
  1207. deprecated="not deprecated">
  1208. <doc>
  1209. <![CDATA[Return the number of keys in the configuration.
  1210. @return number of keys in the configuration.]]>
  1211. </doc>
  1212. </method>
  1213. <method name="clear"
  1214. abstract="false" native="false" synchronized="false"
  1215. static="false" final="false" visibility="public"
  1216. deprecated="not deprecated">
  1217. <doc>
  1218. <![CDATA[Clears all keys from the configuration.]]>
  1219. </doc>
  1220. </method>
  1221. <method name="iterator" return="java.util.Iterator"
  1222. abstract="false" native="false" synchronized="false"
  1223. static="false" final="false" visibility="public"
  1224. deprecated="not deprecated">
  1225. <doc>
  1226. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1227. key-value pairs in the configuration.
  1228. @return an iterator over the entries.]]>
  1229. </doc>
  1230. </method>
  1231. <method name="writeXml"
  1232. abstract="false" native="false" synchronized="false"
  1233. static="false" final="false" visibility="public"
  1234. deprecated="not deprecated">
  1235. <param name="out" type="java.io.OutputStream"/>
  1236. <exception name="IOException" type="java.io.IOException"/>
  1237. <doc>
  1238. <![CDATA[Write out the non-default properties in this configuration to the given
  1239. {@link OutputStream} using UTF-8 encoding.
  1240. @param out the output stream to write to.]]>
  1241. </doc>
  1242. </method>
  1243. <method name="writeXml"
  1244. abstract="false" native="false" synchronized="false"
  1245. static="false" final="false" visibility="public"
  1246. deprecated="not deprecated">
  1247. <param name="out" type="java.io.Writer"/>
  1248. <exception name="IOException" type="java.io.IOException"/>
  1249. <doc>
  1250. <![CDATA[Write out the non-default properties in this configuration to the given
  1251. {@link Writer}.
  1252. @param out the writer to write to.]]>
  1253. </doc>
  1254. </method>
  1255. <method name="dumpConfiguration"
  1256. abstract="false" native="false" synchronized="false"
  1257. static="true" final="false" visibility="public"
  1258. deprecated="not deprecated">
  1259. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1260. <param name="out" type="java.io.Writer"/>
  1261. <exception name="IOException" type="java.io.IOException"/>
  1262. <doc>
  1263. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  1264. the given {@link Writer}
  1265. The format of the output would be
  1266. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  1267. key2.isFinal,key2.resource}... ] }
  1268. It does not output the parameters of the configuration object which is
  1269. loaded from an input stream.
  1270. @param out the Writer to write to
  1271. @throws IOException]]>
  1272. </doc>
  1273. </method>
  1274. <method name="getClassLoader" return="java.lang.ClassLoader"
  1275. abstract="false" native="false" synchronized="false"
  1276. static="false" final="false" visibility="public"
  1277. deprecated="not deprecated">
  1278. <doc>
  1279. <![CDATA[Get the {@link ClassLoader} for this job.
  1280. @return the correct class loader.]]>
  1281. </doc>
  1282. </method>
  1283. <method name="setClassLoader"
  1284. abstract="false" native="false" synchronized="false"
  1285. static="false" final="false" visibility="public"
  1286. deprecated="not deprecated">
  1287. <param name="classLoader" type="java.lang.ClassLoader"/>
  1288. <doc>
  1289. <![CDATA[Set the class loader that will be used to load the various objects.
  1290. @param classLoader the new class loader.]]>
  1291. </doc>
  1292. </method>
  1293. <method name="toString" return="java.lang.String"
  1294. abstract="false" native="false" synchronized="false"
  1295. static="false" final="false" visibility="public"
  1296. deprecated="not deprecated">
  1297. </method>
  1298. <method name="setQuietMode"
  1299. abstract="false" native="false" synchronized="true"
  1300. static="false" final="false" visibility="public"
  1301. deprecated="not deprecated">
  1302. <param name="quietmode" type="boolean"/>
  1303. <doc>
  1304. <![CDATA[Set the quietness-mode.
  1305. In the quiet-mode, error and informational messages might not be logged.
  1306. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1307. to turn it off.]]>
  1308. </doc>
  1309. </method>
  1310. <method name="main"
  1311. abstract="false" native="false" synchronized="false"
  1312. static="true" final="false" visibility="public"
  1313. deprecated="not deprecated">
  1314. <param name="args" type="java.lang.String[]"/>
  1315. <exception name="Exception" type="java.lang.Exception"/>
  1316. <doc>
  1317. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1318. </doc>
  1319. </method>
  1320. <method name="readFields"
  1321. abstract="false" native="false" synchronized="false"
  1322. static="false" final="false" visibility="public"
  1323. deprecated="not deprecated">
  1324. <param name="in" type="java.io.DataInput"/>
  1325. <exception name="IOException" type="java.io.IOException"/>
  1326. </method>
  1327. <method name="write"
  1328. abstract="false" native="false" synchronized="false"
  1329. static="false" final="false" visibility="public"
  1330. deprecated="not deprecated">
  1331. <param name="out" type="java.io.DataOutput"/>
  1332. <exception name="IOException" type="java.io.IOException"/>
  1333. </method>
  1334. <method name="getValByRegex" return="java.util.Map"
  1335. abstract="false" native="false" synchronized="false"
  1336. static="false" final="false" visibility="public"
  1337. deprecated="not deprecated">
  1338. <param name="regex" type="java.lang.String"/>
  1339. <doc>
  1340. <![CDATA[get keys matching the the regex
  1341. @param regex
  1342. @return Map<String,String> with matching keys]]>
  1343. </doc>
  1344. </method>
  1345. <method name="dumpDeprecatedKeys"
  1346. abstract="false" native="false" synchronized="false"
  1347. static="true" final="false" visibility="public"
  1348. deprecated="not deprecated">
  1349. </method>
  1350. <method name="hasWarnedDeprecation" return="boolean"
  1351. abstract="false" native="false" synchronized="false"
  1352. static="true" final="false" visibility="public"
  1353. deprecated="not deprecated">
  1354. <param name="name" type="java.lang.String"/>
  1355. <doc>
  1356. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1357. deprecated then always return false]]>
  1358. </doc>
  1359. </method>
  1360. <doc>
  1361. <![CDATA[Provides access to configuration parameters.
  1362. <h4 id="Resources">Resources</h4>
  1363. <p>Configurations are specified by resources. A resource contains a set of
  1364. name/value pairs as XML data. Each resource is named by either a
  1365. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1366. then the classpath is examined for a file with that name. If named by a
  1367. <code>Path</code>, then the local filesystem is examined directly, without
  1368. referring to the classpath.
  1369. <p>Unless explicitly turned off, Hadoop by default specifies two
  1370. resources, loaded in-order from the classpath: <ol>
  1371. <li><tt>
  1372. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1373. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1374. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1375. installation.</li>
  1376. </ol>
  1377. Applications may add additional resources, which are loaded
  1378. subsequent to these resources in the order they are added.
  1379. <h4 id="FinalParams">Final Parameters</h4>
  1380. <p>Configuration parameters may be declared <i>final</i>.
  1381. Once a resource declares a value final, no subsequently-loaded
  1382. resource can alter that value.
  1383. For example, one might define a final parameter with:
  1384. <tt><pre>
  1385. &lt;property&gt;
  1386. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1387. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1388. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1389. &lt;/property&gt;</pre></tt>
  1390. Administrators typically define parameters as final in
  1391. <tt>core-site.xml</tt> for values that user applications may not alter.
  1392. <h4 id="VariableExpansion">Variable Expansion</h4>
  1393. <p>Value strings are first processed for <i>variable expansion</i>. The
  1394. available properties are:<ol>
  1395. <li>Other properties defined in this Configuration; and, if a name is
  1396. undefined here,</li>
  1397. <li>Properties in {@link System#getProperties()}.</li>
  1398. </ol>
  1399. <p>For example, if a configuration resource contains the following property
  1400. definitions:
  1401. <tt><pre>
  1402. &lt;property&gt;
  1403. &lt;name&gt;basedir&lt;/name&gt;
  1404. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1405. &lt;/property&gt;
  1406. &lt;property&gt;
  1407. &lt;name&gt;tempdir&lt;/name&gt;
  1408. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1409. &lt;/property&gt;</pre></tt>
  1410. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1411. will be resolved to another property in this Configuration, while
  1412. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1413. of the System property with that name.
  1414. By default, warnings will be given to any deprecated configuration
  1415. parameters and these are suppressible by configuring
  1416. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1417. log4j.properties file.]]>
  1418. </doc>
  1419. </class>
  1420. <!-- end class org.apache.hadoop.conf.Configuration -->
  1421. <!-- start class org.apache.hadoop.conf.Configuration.DeprecationDelta -->
  1422. <class name="Configuration.DeprecationDelta" extends="java.lang.Object"
  1423. abstract="false"
  1424. static="true" final="false" visibility="public"
  1425. deprecated="not deprecated">
  1426. <constructor name="Configuration.DeprecationDelta" type="java.lang.String, java.lang.String, java.lang.String"
  1427. static="false" final="false" visibility="public"
  1428. deprecated="not deprecated">
  1429. </constructor>
  1430. <constructor name="Configuration.DeprecationDelta" type="java.lang.String, java.lang.String"
  1431. static="false" final="false" visibility="public"
  1432. deprecated="not deprecated">
  1433. </constructor>
  1434. <method name="getKey" return="java.lang.String"
  1435. abstract="false" native="false" synchronized="false"
  1436. static="false" final="false" visibility="public"
  1437. deprecated="not deprecated">
  1438. </method>
  1439. <method name="getNewKeys" return="java.lang.String[]"
  1440. abstract="false" native="false" synchronized="false"
  1441. static="false" final="false" visibility="public"
  1442. deprecated="not deprecated">
  1443. </method>
  1444. <method name="getCustomMessage" return="java.lang.String"
  1445. abstract="false" native="false" synchronized="false"
  1446. static="false" final="false" visibility="public"
  1447. deprecated="not deprecated">
  1448. </method>
  1449. <doc>
  1450. <![CDATA[A pending addition to the global set of deprecated keys.]]>
  1451. </doc>
  1452. </class>
  1453. <!-- end class org.apache.hadoop.conf.Configuration.DeprecationDelta -->
  1454. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1455. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  1456. abstract="false"
  1457. static="true" final="false" visibility="public"
  1458. deprecated="not deprecated">
  1459. <implements name="java.lang.Iterable"/>
  1460. <constructor name="Configuration.IntegerRanges"
  1461. static="false" final="false" visibility="public"
  1462. deprecated="not deprecated">
  1463. </constructor>
  1464. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  1465. static="false" final="false" visibility="public"
  1466. deprecated="not deprecated">
  1467. </constructor>
  1468. <method name="isIncluded" return="boolean"
  1469. abstract="false" native="false" synchronized="false"
  1470. static="false" final="false" visibility="public"
  1471. deprecated="not deprecated">
  1472. <param name="value" type="int"/>
  1473. <doc>
  1474. <![CDATA[Is the given value in the set of ranges
  1475. @param value the value to check
  1476. @return is the value in the ranges?]]>
  1477. </doc>
  1478. </method>
  1479. <method name="isEmpty" return="boolean"
  1480. abstract="false" native="false" synchronized="false"
  1481. static="false" final="false" visibility="public"
  1482. deprecated="not deprecated">
  1483. <doc>
  1484. <![CDATA[@return true if there are no values in this range, else false.]]>
  1485. </doc>
  1486. </method>
  1487. <method name="toString" return="java.lang.String"
  1488. abstract="false" native="false" synchronized="false"
  1489. static="false" final="false" visibility="public"
  1490. deprecated="not deprecated">
  1491. </method>
  1492. <method name="iterator" return="java.util.Iterator"
  1493. abstract="false" native="false" synchronized="false"
  1494. static="false" final="false" visibility="public"
  1495. deprecated="not deprecated">
  1496. </method>
  1497. <doc>
  1498. <![CDATA[A class that represents a set of positive integer ranges. It parses
  1499. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  1500. the lower/upper bounds are separated by dash. Either the lower or upper
  1501. bound may be omitted meaning all values up to or over. So the string
  1502. above means 2, 3, 5, and 7, 8, 9, ...]]>
  1503. </doc>
  1504. </class>
  1505. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1506. <!-- start class org.apache.hadoop.conf.Configured -->
  1507. <class name="Configured" extends="java.lang.Object"
  1508. abstract="false"
  1509. static="false" final="false" visibility="public"
  1510. deprecated="not deprecated">
  1511. <implements name="org.apache.hadoop.conf.Configurable"/>
  1512. <constructor name="Configured"
  1513. static="false" final="false" visibility="public"
  1514. deprecated="not deprecated">
  1515. <doc>
  1516. <![CDATA[Construct a Configured.]]>
  1517. </doc>
  1518. </constructor>
  1519. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1520. static="false" final="false" visibility="public"
  1521. deprecated="not deprecated">
  1522. <doc>
  1523. <![CDATA[Construct a Configured.]]>
  1524. </doc>
  1525. </constructor>
  1526. <method name="setConf"
  1527. abstract="false" native="false" synchronized="false"
  1528. static="false" final="false" visibility="public"
  1529. deprecated="not deprecated">
  1530. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1531. </method>
  1532. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1533. abstract="false" native="false" synchronized="false"
  1534. static="false" final="false" visibility="public"
  1535. deprecated="not deprecated">
  1536. </method>
  1537. <doc>
  1538. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1539. </doc>
  1540. </class>
  1541. <!-- end class org.apache.hadoop.conf.Configured -->
  1542. <!-- start class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1543. <class name="ConfServlet.BadFormatException" extends="java.lang.Exception"
  1544. abstract="false"
  1545. static="true" final="false" visibility="public"
  1546. deprecated="not deprecated">
  1547. <constructor name="ConfServlet.BadFormatException" type="java.lang.String"
  1548. static="false" final="false" visibility="public"
  1549. deprecated="not deprecated">
  1550. </constructor>
  1551. </class>
  1552. <!-- end class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1553. <!-- start interface org.apache.hadoop.conf.Reconfigurable -->
  1554. <interface name="Reconfigurable" abstract="true"
  1555. static="false" final="false" visibility="public"
  1556. deprecated="not deprecated">
  1557. <implements name="org.apache.hadoop.conf.Configurable"/>
  1558. <method name="reconfigureProperty" return="java.lang.String"
  1559. abstract="false" native="false" synchronized="false"
  1560. static="false" final="false" visibility="public"
  1561. deprecated="not deprecated">
  1562. <param name="property" type="java.lang.String"/>
  1563. <param name="newVal" type="java.lang.String"/>
  1564. <exception name="ReconfigurationException" type="org.apache.hadoop.conf.ReconfigurationException"/>
  1565. <doc>
  1566. <![CDATA[Change a configuration property on this object to the value specified.
  1567. Change a configuration property on this object to the value specified
  1568. and return the previous value that the configuration property was set to
  1569. (or null if it was not previously set). If newVal is null, set the property
  1570. to its default value;
  1571. If the property cannot be changed, throw a
  1572. {@link ReconfigurationException}.]]>
  1573. </doc>
  1574. </method>
  1575. <method name="isPropertyReconfigurable" return="boolean"
  1576. abstract="false" native="false" synchronized="false"
  1577. static="false" final="false" visibility="public"
  1578. deprecated="not deprecated">
  1579. <param name="property" type="java.lang.String"/>
  1580. <doc>
  1581. <![CDATA[Return whether a given property is changeable at run time.
  1582. If isPropertyReconfigurable returns true for a property,
  1583. then changeConf should not throw an exception when changing
  1584. this property.]]>
  1585. </doc>
  1586. </method>
  1587. <method name="getReconfigurableProperties" return="java.util.Collection"
  1588. abstract="false" native="false" synchronized="false"
  1589. static="false" final="false" visibility="public"
  1590. deprecated="not deprecated">
  1591. <doc>
  1592. <![CDATA[Return all the properties that can be changed at run time.]]>
  1593. </doc>
  1594. </method>
  1595. <doc>
  1596. <![CDATA[Something whose {@link Configuration} can be changed at run time.]]>
  1597. </doc>
  1598. </interface>
  1599. <!-- end interface org.apache.hadoop.conf.Reconfigurable -->
  1600. <!-- start class org.apache.hadoop.conf.ReconfigurableBase -->
  1601. <class name="ReconfigurableBase" extends="org.apache.hadoop.conf.Configured"
  1602. abstract="true"
  1603. static="false" final="false" visibility="public"
  1604. deprecated="not deprecated">
  1605. <implements name="org.apache.hadoop.conf.Reconfigurable"/>
  1606. <constructor name="ReconfigurableBase"
  1607. static="false" final="false" visibility="public"
  1608. deprecated="not deprecated">
  1609. <doc>
  1610. <![CDATA[Construct a ReconfigurableBase.]]>
  1611. </doc>
  1612. </constructor>
  1613. <constructor name="ReconfigurableBase" type="org.apache.hadoop.conf.Configuration"
  1614. static="false" final="false" visibility="public"
  1615. deprecated="not deprecated">
  1616. <doc>
  1617. <![CDATA[Construct a ReconfigurableBase with the {@link Configuration}
  1618. conf.]]>
  1619. </doc>
  1620. </constructor>
  1621. <method name="setReconfigurationUtil"
  1622. abstract="false" native="false" synchronized="false"
  1623. static="false" final="false" visibility="public"
  1624. deprecated="not deprecated">
  1625. <param name="ru" type="org.apache.hadoop.conf.ReconfigurationUtil"/>
  1626. </method>
  1627. <method name="getChangedProperties" return="java.util.Collection"
  1628. abstract="false" native="false" synchronized="false"
  1629. static="false" final="false" visibility="public"
  1630. deprecated="not deprecated">
  1631. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  1632. <param name="oldConf" type="org.apache.hadoop.conf.Configuration"/>
  1633. </method>
  1634. <method name="startReconfigurationTask"
  1635. abstract="false" native="false" synchronized="false"
  1636. static="false" final="false" visibility="public"
  1637. deprecated="not deprecated">
  1638. <exception name="IOException" type="java.io.IOException"/>
  1639. <doc>
  1640. <![CDATA[Start a reconfiguration task to reload configuration in background.]]>
  1641. </doc>
  1642. </method>
  1643. <method name="getReconfigurationTaskStatus" return="org.apache.hadoop.conf.ReconfigurationTaskStatus"
  1644. abstract="false" native="false" synchronized="false"
  1645. static="false" final="false" visibility="public"
  1646. deprecated="not deprecated">
  1647. </method>
  1648. <method name="shutdownReconfigurationTask"
  1649. abstract="false" native="false" synchronized="false"
  1650. static="false" final="false" visibility="public"
  1651. deprecated="not deprecated">
  1652. </method>
  1653. <method name="reconfigureProperty" return="java.lang.String"
  1654. abstract="false" native="false" synchronized="false"
  1655. static="false" final="true" visibility="public"
  1656. deprecated="not deprecated">
  1657. <param name="property" type="java.lang.String"/>
  1658. <param name="newVal" type="java.lang.String"/>
  1659. <exception name="ReconfigurationException" type="org.apache.hadoop.conf.ReconfigurationException"/>
  1660. <doc>
  1661. <![CDATA[{@inheritDoc}
  1662. This method makes the change to this objects {@link Configuration}
  1663. and calls reconfigurePropertyImpl to update internal data structures.
  1664. This method cannot be overridden, subclasses should instead override
  1665. reconfigureProperty.]]>
  1666. </doc>
  1667. </method>
  1668. <method name="getReconfigurableProperties" return="java.util.Collection"
  1669. abstract="true" native="false" synchronized="false"
  1670. static="false" final="false" visibility="public"
  1671. deprecated="not deprecated">
  1672. <doc>
  1673. <![CDATA[{@inheritDoc}
  1674. Subclasses must override this.]]>
  1675. </doc>
  1676. </method>
  1677. <method name="isPropertyReconfigurable" return="boolean"
  1678. abstract="false" native="false" synchronized="false"
  1679. static="false" final="false" visibility="public"
  1680. deprecated="not deprecated">
  1681. <param name="property" type="java.lang.String"/>
  1682. <doc>
  1683. <![CDATA[{@inheritDoc}
  1684. Subclasses may wish to override this with a more efficient implementation.]]>
  1685. </doc>
  1686. </method>
  1687. <method name="reconfigurePropertyImpl"
  1688. abstract="true" native="false" synchronized="false"
  1689. static="false" final="false" visibility="protected"
  1690. deprecated="not deprecated">
  1691. <param name="property" type="java.lang.String"/>
  1692. <param name="newVal" type="java.lang.String"/>
  1693. <exception name="ReconfigurationException" type="org.apache.hadoop.conf.ReconfigurationException"/>
  1694. <doc>
  1695. <![CDATA[Change a configuration property.
  1696. Subclasses must override this. This method applies the change to
  1697. all internal data structures derived from the configuration property
  1698. that is being changed. If this object owns other Reconfigurable objects
  1699. reconfigureProperty should be called recursively to make sure that
  1700. to make sure that the configuration of these objects is updated.]]>
  1701. </doc>
  1702. </method>
  1703. <doc>
  1704. <![CDATA[Utility base class for implementing the Reconfigurable interface.
  1705. Subclasses should override reconfigurePropertyImpl to change individual
  1706. properties and getReconfigurableProperties to get all properties that
  1707. can be changed at run time.]]>
  1708. </doc>
  1709. </class>
  1710. <!-- end class org.apache.hadoop.conf.ReconfigurableBase -->
  1711. <!-- start class org.apache.hadoop.conf.ReconfigurationException -->
  1712. <class name="ReconfigurationException" extends="java.lang.Exception"
  1713. abstract="false"
  1714. static="false" final="false" visibility="public"
  1715. deprecated="not deprecated">
  1716. <constructor name="ReconfigurationException"
  1717. static="false" final="false" visibility="public"
  1718. deprecated="not deprecated">
  1719. <doc>
  1720. <![CDATA[Create a new instance of {@link ReconfigurationException}.]]>
  1721. </doc>
  1722. </constructor>
  1723. <constructor name="ReconfigurationException" type="java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable"
  1724. static="false" final="false" visibility="public"
  1725. deprecated="not deprecated">
  1726. <doc>
  1727. <![CDATA[Create a new instance of {@link ReconfigurationException}.]]>
  1728. </doc>
  1729. </constructor>
  1730. <constructor name="ReconfigurationException" type="java.lang.String, java.lang.String, java.lang.String"
  1731. static="false" final="false" visibility="public"
  1732. deprecated="not deprecated">
  1733. <doc>
  1734. <![CDATA[Create a new instance of {@link ReconfigurationException}.]]>
  1735. </doc>
  1736. </constructor>
  1737. <method name="getProperty" return="java.lang.String"
  1738. abstract="false" native="false" synchronized="false"
  1739. static="false" final="false" visibility="public"
  1740. deprecated="not deprecated">
  1741. <doc>
  1742. <![CDATA[Get property that cannot be changed.]]>
  1743. </doc>
  1744. </method>
  1745. <method name="getNewValue" return="java.lang.String"
  1746. abstract="false" native="false" synchronized="false"
  1747. static="false" final="false" visibility="public"
  1748. deprecated="not deprecated">
  1749. <doc>
  1750. <![CDATA[Get value to which property was supposed to be changed.]]>
  1751. </doc>
  1752. </method>
  1753. <method name="getOldValue" return="java.lang.String"
  1754. abstract="false" native="false" synchronized="false"
  1755. static="false" final="false" visibility="public"
  1756. deprecated="not deprecated">
  1757. <doc>
  1758. <![CDATA[Get old value of property that cannot be changed.]]>
  1759. </doc>
  1760. </method>
  1761. <doc>
  1762. <![CDATA[Exception indicating that configuration property cannot be changed
  1763. at run time.]]>
  1764. </doc>
  1765. </class>
  1766. <!-- end class org.apache.hadoop.conf.ReconfigurationException -->
  1767. <!-- start class org.apache.hadoop.conf.ReconfigurationServlet -->
  1768. <class name="ReconfigurationServlet" extends="javax.servlet.http.HttpServlet"
  1769. abstract="false"
  1770. static="false" final="false" visibility="public"
  1771. deprecated="not deprecated">
  1772. <constructor name="ReconfigurationServlet"
  1773. static="false" final="false" visibility="public"
  1774. deprecated="not deprecated">
  1775. </constructor>
  1776. <method name="init"
  1777. abstract="false" native="false" synchronized="false"
  1778. static="false" final="false" visibility="public"
  1779. deprecated="not deprecated">
  1780. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1781. </method>
  1782. <method name="doGet"
  1783. abstract="false" native="false" synchronized="false"
  1784. static="false" final="false" visibility="protected"
  1785. deprecated="not deprecated">
  1786. <param name="req" type="javax.servlet.http.HttpServletRequest"/>
  1787. <param name="resp" type="javax.servlet.http.HttpServletResponse"/>
  1788. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1789. <exception name="IOException" type="java.io.IOException"/>
  1790. </method>
  1791. <method name="doPost"
  1792. abstract="false" native="false" synchronized="false"
  1793. static="false" final="false" visibility="protected"
  1794. deprecated="not deprecated">
  1795. <param name="req" type="javax.servlet.http.HttpServletRequest"/>
  1796. <param name="resp" type="javax.servlet.http.HttpServletResponse"/>
  1797. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1798. <exception name="IOException" type="java.io.IOException"/>
  1799. </method>
  1800. <field name="CONF_SERVLET_RECONFIGURABLE_PREFIX" type="java.lang.String"
  1801. transient="false" volatile="false"
  1802. static="true" final="true" visibility="public"
  1803. deprecated="not deprecated">
  1804. </field>
  1805. <doc>
  1806. <![CDATA[A servlet for changing a node's configuration.
  1807. Reloads the configuration file, verifies whether changes are
  1808. possible and asks the admin to approve the change.]]>
  1809. </doc>
  1810. </class>
  1811. <!-- end class org.apache.hadoop.conf.ReconfigurationServlet -->
  1812. <!-- start class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1813. <class name="ReconfigurationTaskStatus" extends="java.lang.Object"
  1814. abstract="false"
  1815. static="false" final="false" visibility="public"
  1816. deprecated="not deprecated">
  1817. <constructor name="ReconfigurationTaskStatus" type="long, long, java.util.Map"
  1818. static="false" final="false" visibility="public"
  1819. deprecated="not deprecated">
  1820. </constructor>
  1821. <method name="hasTask" return="boolean"
  1822. abstract="false" native="false" synchronized="false"
  1823. static="false" final="false" visibility="public"
  1824. deprecated="not deprecated">
  1825. <doc>
  1826. <![CDATA[Return true if
  1827. - A reconfiguration task has finished or
  1828. - an active reconfiguration task is running]]>
  1829. </doc>
  1830. </method>
  1831. <method name="stopped" return="boolean"
  1832. abstract="false" native="false" synchronized="false"
  1833. static="false" final="false" visibility="public"
  1834. deprecated="not deprecated">
  1835. <doc>
  1836. <![CDATA[Return true if the latest reconfiguration task has finished and there is
  1837. no another active task running.]]>
  1838. </doc>
  1839. </method>
  1840. <method name="getStartTime" return="long"
  1841. abstract="false" native="false" synchronized="false"
  1842. static="false" final="false" visibility="public"
  1843. deprecated="not deprecated">
  1844. </method>
  1845. <method name="getEndTime" return="long"
  1846. abstract="false" native="false" synchronized="false"
  1847. static="false" final="false" visibility="public"
  1848. deprecated="not deprecated">
  1849. </method>
  1850. <method name="getStatus" return="java.util.Map"
  1851. abstract="false" native="false" synchronized="false"
  1852. static="false" final="true" visibility="public"
  1853. deprecated="not deprecated">
  1854. </method>
  1855. </class>
  1856. <!-- end class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1857. <!-- start class org.apache.hadoop.conf.ReconfigurationUtil -->
  1858. <class name="ReconfigurationUtil" extends="java.lang.Object"
  1859. abstract="false"
  1860. static="false" final="false" visibility="public"
  1861. deprecated="not deprecated">
  1862. <constructor name="ReconfigurationUtil"
  1863. static="false" final="false" visibility="public"
  1864. deprecated="not deprecated">
  1865. </constructor>
  1866. <method name="getChangedProperties" return="java.util.Collection"
  1867. abstract="false" native="false" synchronized="false"
  1868. static="true" final="false" visibility="public"
  1869. deprecated="not deprecated">
  1870. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  1871. <param name="oldConf" type="org.apache.hadoop.conf.Configuration"/>
  1872. </method>
  1873. <method name="parseChangedProperties" return="java.util.Collection"
  1874. abstract="false" native="false" synchronized="false"
  1875. static="false" final="false" visibility="public"
  1876. deprecated="not deprecated">
  1877. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  1878. <param name="oldConf" type="org.apache.hadoop.conf.Configuration"/>
  1879. </method>
  1880. </class>
  1881. <!-- end class org.apache.hadoop.conf.ReconfigurationUtil -->
  1882. <!-- start class org.apache.hadoop.conf.ReconfigurationUtil.PropertyChange -->
  1883. <class name="ReconfigurationUtil.PropertyChange" extends="java.lang.Object"
  1884. abstract="false"
  1885. static="true" final="false" visibility="public"
  1886. deprecated="not deprecated">
  1887. <constructor name="ReconfigurationUtil.PropertyChange" type="java.lang.String, java.lang.String, java.lang.String"
  1888. static="false" final="false" visibility="public"
  1889. deprecated="not deprecated">
  1890. </constructor>
  1891. <field name="prop" type="java.lang.String"
  1892. transient="false" volatile="false"
  1893. static="false" final="false" visibility="public"
  1894. deprecated="not deprecated">
  1895. </field>
  1896. <field name="oldVal" type="java.lang.String"
  1897. transient="false" volatile="false"
  1898. static="false" final="false" visibility="public"
  1899. deprecated="not deprecated">
  1900. </field>
  1901. <field name="newVal" type="java.lang.String"
  1902. transient="false" volatile="false"
  1903. static="false" final="false" visibility="public"
  1904. deprecated="not deprecated">
  1905. </field>
  1906. </class>
  1907. <!-- end class org.apache.hadoop.conf.ReconfigurationUtil.PropertyChange -->
  1908. <doc>
  1909. <![CDATA[Configuration of system parameters.]]>
  1910. </doc>
  1911. </package>
  1912. <package name="org.apache.hadoop.crypto">
  1913. </package>
  1914. <package name="org.apache.hadoop.crypto.key">
  1915. <!-- start class org.apache.hadoop.crypto.key.CachingKeyProvider -->
  1916. <class name="CachingKeyProvider" extends="org.apache.hadoop.crypto.key.KeyProviderExtension"
  1917. abstract="false"
  1918. static="false" final="false" visibility="public"
  1919. deprecated="not deprecated">
  1920. <constructor name="CachingKeyProvider" type="org.apache.hadoop.crypto.key.KeyProvider, long, long"
  1921. static="false" final="false" visibility="public"
  1922. deprecated="not deprecated">
  1923. </constructor>
  1924. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1925. abstract="false" native="false" synchronized="false"
  1926. static="false" final="false" visibility="public"
  1927. deprecated="not deprecated">
  1928. <param name="name" type="java.lang.String"/>
  1929. <exception name="IOException" type="java.io.IOException"/>
  1930. </method>
  1931. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1932. abstract="false" native="false" synchronized="false"
  1933. static="false" final="false" visibility="public"
  1934. deprecated="not deprecated">
  1935. <param name="versionName" type="java.lang.String"/>
  1936. <exception name="IOException" type="java.io.IOException"/>
  1937. </method>
  1938. <method name="deleteKey"
  1939. abstract="false" native="false" synchronized="false"
  1940. static="false" final="false" visibility="public"
  1941. deprecated="not deprecated">
  1942. <param name="name" type="java.lang.String"/>
  1943. <exception name="IOException" type="java.io.IOException"/>
  1944. </method>
  1945. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1946. abstract="false" native="false" synchronized="false"
  1947. static="false" final="false" visibility="public"
  1948. deprecated="not deprecated">
  1949. <param name="name" type="java.lang.String"/>
  1950. <param name="material" type="byte[]"/>
  1951. <exception name="IOException" type="java.io.IOException"/>
  1952. </method>
  1953. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1954. abstract="false" native="false" synchronized="false"
  1955. static="false" final="false" visibility="public"
  1956. deprecated="not deprecated">
  1957. <param name="name" type="java.lang.String"/>
  1958. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1959. <exception name="IOException" type="java.io.IOException"/>
  1960. </method>
  1961. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1962. abstract="false" native="false" synchronized="false"
  1963. static="false" final="false" visibility="public"
  1964. deprecated="not deprecated">
  1965. <param name="name" type="java.lang.String"/>
  1966. <exception name="IOException" type="java.io.IOException"/>
  1967. </method>
  1968. <doc>
  1969. <![CDATA[A <code>KeyProviderExtension</code> implementation providing a short lived
  1970. cache for <code>KeyVersions</code> and <code>Metadata</code>to avoid burst
  1971. of requests to hit the underlying <code>KeyProvider</code>.]]>
  1972. </doc>
  1973. </class>
  1974. <!-- end class org.apache.hadoop.crypto.key.CachingKeyProvider -->
  1975. <!-- start class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.Factory -->
  1976. <class name="JavaKeyStoreProvider.Factory" extends="org.apache.hadoop.crypto.key.KeyProviderFactory"
  1977. abstract="false"
  1978. static="true" final="false" visibility="public"
  1979. deprecated="not deprecated">
  1980. <constructor name="JavaKeyStoreProvider.Factory"
  1981. static="false" final="false" visibility="public"
  1982. deprecated="not deprecated">
  1983. </constructor>
  1984. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1985. abstract="false" native="false" synchronized="false"
  1986. static="false" final="false" visibility="public"
  1987. deprecated="not deprecated">
  1988. <param name="providerName" type="java.net.URI"/>
  1989. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1990. <exception name="IOException" type="java.io.IOException"/>
  1991. </method>
  1992. <doc>
  1993. <![CDATA[The factory to create JksProviders, which is used by the ServiceLoader.]]>
  1994. </doc>
  1995. </class>
  1996. <!-- end class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.Factory -->
  1997. <!-- start class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.KeyMetadata -->
  1998. <class name="JavaKeyStoreProvider.KeyMetadata" extends="java.lang.Object"
  1999. abstract="false"
  2000. static="true" final="false" visibility="public"
  2001. deprecated="not deprecated">
  2002. <implements name="java.security.Key"/>
  2003. <implements name="java.io.Serializable"/>
  2004. <method name="getAlgorithm" return="java.lang.String"
  2005. abstract="false" native="false" synchronized="false"
  2006. static="false" final="false" visibility="public"
  2007. deprecated="not deprecated">
  2008. </method>
  2009. <method name="getFormat" return="java.lang.String"
  2010. abstract="false" native="false" synchronized="false"
  2011. static="false" final="false" visibility="public"
  2012. deprecated="not deprecated">
  2013. </method>
  2014. <method name="getEncoded" return="byte[]"
  2015. abstract="false" native="false" synchronized="false"
  2016. static="false" final="false" visibility="public"
  2017. deprecated="not deprecated">
  2018. </method>
  2019. <doc>
  2020. <![CDATA[An adapter between a KeyStore Key and our Metadata. This is used to store
  2021. the metadata in a KeyStore even though isn't really a key.]]>
  2022. </doc>
  2023. </class>
  2024. <!-- end class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.KeyMetadata -->
  2025. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  2026. <class name="KeyProvider" extends="java.lang.Object"
  2027. abstract="true"
  2028. static="false" final="false" visibility="public"
  2029. deprecated="not deprecated">
  2030. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  2031. static="false" final="false" visibility="public"
  2032. deprecated="not deprecated">
  2033. <doc>
  2034. <![CDATA[Constructor.
  2035. @param conf configuration for the provider]]>
  2036. </doc>
  2037. </constructor>
  2038. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  2039. abstract="false" native="false" synchronized="false"
  2040. static="false" final="false" visibility="public"
  2041. deprecated="not deprecated">
  2042. <doc>
  2043. <![CDATA[Return the provider configuration.
  2044. @return the provider configuration]]>
  2045. </doc>
  2046. </method>
  2047. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2048. abstract="false" native="false" synchronized="false"
  2049. static="true" final="false" visibility="public"
  2050. deprecated="not deprecated">
  2051. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2052. <doc>
  2053. <![CDATA[A helper function to create an options object.
  2054. @param conf the configuration to use
  2055. @return a new options object]]>
  2056. </doc>
  2057. </method>
  2058. <method name="isTransient" return="boolean"
  2059. abstract="false" native="false" synchronized="false"
  2060. static="false" final="false" visibility="public"
  2061. deprecated="not deprecated">
  2062. <doc>
  2063. <![CDATA[Indicates whether this provider represents a store
  2064. that is intended for transient use - such as the UserProvider
  2065. is. These providers are generally used to provide access to
  2066. keying material rather than for long term storage.
  2067. @return true if transient, false otherwise]]>
  2068. </doc>
  2069. </method>
  2070. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2071. abstract="true" native="false" synchronized="false"
  2072. static="false" final="false" visibility="public"
  2073. deprecated="not deprecated">
  2074. <param name="versionName" type="java.lang.String"/>
  2075. <exception name="IOException" type="java.io.IOException"/>
  2076. <doc>
  2077. <![CDATA[Get the key material for a specific version of the key. This method is used
  2078. when decrypting data.
  2079. @param versionName the name of a specific version of the key
  2080. @return the key material
  2081. @throws IOException]]>
  2082. </doc>
  2083. </method>
  2084. <method name="getKeys" return="java.util.List"
  2085. abstract="true" native="false" synchronized="false"
  2086. static="false" final="false" visibility="public"
  2087. deprecated="not deprecated">
  2088. <exception name="IOException" type="java.io.IOException"/>
  2089. <doc>
  2090. <![CDATA[Get the key names for all keys.
  2091. @return the list of key names
  2092. @throws IOException]]>
  2093. </doc>
  2094. </method>
  2095. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  2096. abstract="false" native="false" synchronized="false"
  2097. static="false" final="false" visibility="public"
  2098. deprecated="not deprecated">
  2099. <param name="names" type="java.lang.String[]"/>
  2100. <exception name="IOException" type="java.io.IOException"/>
  2101. <doc>
  2102. <![CDATA[Get key metadata in bulk.
  2103. @param names the names of the keys to get
  2104. @throws IOException]]>
  2105. </doc>
  2106. </method>
  2107. <method name="getKeyVersions" return="java.util.List"
  2108. abstract="true" native="false" synchronized="false"
  2109. static="false" final="false" visibility="public"
  2110. deprecated="not deprecated">
  2111. <param name="name" type="java.lang.String"/>
  2112. <exception name="IOException" type="java.io.IOException"/>
  2113. <doc>
  2114. <![CDATA[Get the key material for all versions of a specific key name.
  2115. @return the list of key material
  2116. @throws IOException]]>
  2117. </doc>
  2118. </method>
  2119. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2120. abstract="false" native="false" synchronized="false"
  2121. static="false" final="false" visibility="public"
  2122. deprecated="not deprecated">
  2123. <param name="name" type="java.lang.String"/>
  2124. <exception name="IOException" type="java.io.IOException"/>
  2125. <doc>
  2126. <![CDATA[Get the current version of the key, which should be used for encrypting new
  2127. data.
  2128. @param name the base name of the key
  2129. @return the version name of the current version of the key or null if the
  2130. key version doesn't exist
  2131. @throws IOException]]>
  2132. </doc>
  2133. </method>
  2134. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  2135. abstract="true" native="false" synchronized="false"
  2136. static="false" final="false" visibility="public"
  2137. deprecated="not deprecated">
  2138. <param name="name" type="java.lang.String"/>
  2139. <exception name="IOException" type="java.io.IOException"/>
  2140. <doc>
  2141. <![CDATA[Get metadata about the key.
  2142. @param name the basename of the key
  2143. @return the key's metadata or null if the key doesn't exist
  2144. @throws IOException]]>
  2145. </doc>
  2146. </method>
  2147. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2148. abstract="true" native="false" synchronized="false"
  2149. static="false" final="false" visibility="public"
  2150. deprecated="not deprecated">
  2151. <param name="name" type="java.lang.String"/>
  2152. <param name="material" type="byte[]"/>
  2153. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2154. <exception name="IOException" type="java.io.IOException"/>
  2155. <doc>
  2156. <![CDATA[Create a new key. The given key must not already exist.
  2157. @param name the base name of the key
  2158. @param material the key material for the first version of the key.
  2159. @param options the options for the new key.
  2160. @return the version name of the first version of the key.
  2161. @throws IOException]]>
  2162. </doc>
  2163. </method>
  2164. <method name="generateKey" return="byte[]"
  2165. abstract="false" native="false" synchronized="false"
  2166. static="false" final="false" visibility="protected"
  2167. deprecated="not deprecated">
  2168. <param name="size" type="int"/>
  2169. <param name="algorithm" type="java.lang.String"/>
  2170. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2171. <doc>
  2172. <![CDATA[Generates a key material.
  2173. @param size length of the key.
  2174. @param algorithm algorithm to use for generating the key.
  2175. @return the generated key.
  2176. @throws NoSuchAlgorithmException]]>
  2177. </doc>
  2178. </method>
  2179. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2180. abstract="false" native="false" synchronized="false"
  2181. static="false" final="false" visibility="public"
  2182. deprecated="not deprecated">
  2183. <param name="name" type="java.lang.String"/>
  2184. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2185. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2186. <exception name="IOException" type="java.io.IOException"/>
  2187. <doc>
  2188. <![CDATA[Create a new key generating the material for it.
  2189. The given key must not already exist.
  2190. <p/>
  2191. This implementation generates the key material and calls the
  2192. {@link #createKey(String, byte[], Options)} method.
  2193. @param name the base name of the key
  2194. @param options the options for the new key.
  2195. @return the version name of the first version of the key.
  2196. @throws IOException
  2197. @throws NoSuchAlgorithmException]]>
  2198. </doc>
  2199. </method>
  2200. <method name="deleteKey"
  2201. abstract="true" native="false" synchronized="false"
  2202. static="false" final="false" visibility="public"
  2203. deprecated="not deprecated">
  2204. <param name="name" type="java.lang.String"/>
  2205. <exception name="IOException" type="java.io.IOException"/>
  2206. <doc>
  2207. <![CDATA[Delete the given key.
  2208. @param name the name of the key to delete
  2209. @throws IOException]]>
  2210. </doc>
  2211. </method>
  2212. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2213. abstract="true" native="false" synchronized="false"
  2214. static="false" final="false" visibility="public"
  2215. deprecated="not deprecated">
  2216. <param name="name" type="java.lang.String"/>
  2217. <param name="material" type="byte[]"/>
  2218. <exception name="IOException" type="java.io.IOException"/>
  2219. <doc>
  2220. <![CDATA[Roll a new version of the given key.
  2221. @param name the basename of the key
  2222. @param material the new key material
  2223. @return the name of the new version of the key
  2224. @throws IOException]]>
  2225. </doc>
  2226. </method>
  2227. <method name="close"
  2228. abstract="false" native="false" synchronized="false"
  2229. static="false" final="false" visibility="public"
  2230. deprecated="not deprecated">
  2231. <exception name="IOException" type="java.io.IOException"/>
  2232. <doc>
  2233. <![CDATA[Can be used by implementing classes to close any resources
  2234. that require closing]]>
  2235. </doc>
  2236. </method>
  2237. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2238. abstract="false" native="false" synchronized="false"
  2239. static="false" final="false" visibility="public"
  2240. deprecated="not deprecated">
  2241. <param name="name" type="java.lang.String"/>
  2242. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2243. <exception name="IOException" type="java.io.IOException"/>
  2244. <doc>
  2245. <![CDATA[Roll a new version of the given key generating the material for it.
  2246. <p/>
  2247. This implementation generates the key material and calls the
  2248. {@link #rollNewVersion(String, byte[])} method.
  2249. @param name the basename of the key
  2250. @return the name of the new version of the key
  2251. @throws IOException]]>
  2252. </doc>
  2253. </method>
  2254. <method name="flush"
  2255. abstract="true" native="false" synchronized="false"
  2256. static="false" final="false" visibility="public"
  2257. deprecated="not deprecated">
  2258. <exception name="IOException" type="java.io.IOException"/>
  2259. <doc>
  2260. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  2261. @throws IOException]]>
  2262. </doc>
  2263. </method>
  2264. <method name="getBaseName" return="java.lang.String"
  2265. abstract="false" native="false" synchronized="false"
  2266. static="true" final="false" visibility="public"
  2267. deprecated="not deprecated">
  2268. <param name="versionName" type="java.lang.String"/>
  2269. <exception name="IOException" type="java.io.IOException"/>
  2270. <doc>
  2271. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  2272. "/aaa/bbb".
  2273. @param versionName the version name to split
  2274. @return the base name of the key
  2275. @throws IOException]]>
  2276. </doc>
  2277. </method>
  2278. <method name="buildVersionName" return="java.lang.String"
  2279. abstract="false" native="false" synchronized="false"
  2280. static="true" final="false" visibility="protected"
  2281. deprecated="not deprecated">
  2282. <param name="name" type="java.lang.String"/>
  2283. <param name="version" type="int"/>
  2284. <doc>
  2285. <![CDATA[Build a version string from a basename and version number. Converts
  2286. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  2287. @param name the basename of the key
  2288. @param version the version of the key
  2289. @return the versionName of the key.]]>
  2290. </doc>
  2291. </method>
  2292. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2293. abstract="false" native="false" synchronized="false"
  2294. static="true" final="false" visibility="public"
  2295. deprecated="not deprecated">
  2296. <param name="providerList" type="java.util.List"/>
  2297. <param name="keyName" type="java.lang.String"/>
  2298. <exception name="IOException" type="java.io.IOException"/>
  2299. <doc>
  2300. <![CDATA[Find the provider with the given key.
  2301. @param providerList the list of providers
  2302. @param keyName the key name we are looking for
  2303. @return the KeyProvider that has the key]]>
  2304. </doc>
  2305. </method>
  2306. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2307. transient="false" volatile="false"
  2308. static="true" final="true" visibility="public"
  2309. deprecated="not deprecated">
  2310. </field>
  2311. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2312. transient="false" volatile="false"
  2313. static="true" final="true" visibility="public"
  2314. deprecated="not deprecated">
  2315. </field>
  2316. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2317. transient="false" volatile="false"
  2318. static="true" final="true" visibility="public"
  2319. deprecated="not deprecated">
  2320. </field>
  2321. <field name="DEFAULT_BITLENGTH" type="int"
  2322. transient="false" volatile="false"
  2323. static="true" final="true" visibility="public"
  2324. deprecated="not deprecated">
  2325. </field>
  2326. <doc>
  2327. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2328. abstraction to separate key storage from users of encryption. It
  2329. is intended to support getting or storing keys in a variety of ways,
  2330. including third party bindings.
  2331. <P/>
  2332. <code>KeyProvider</code> implementations must be thread safe.]]>
  2333. </doc>
  2334. </class>
  2335. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2336. <!-- start class org.apache.hadoop.crypto.key.KeyProvider.KeyVersion -->
  2337. <class name="KeyProvider.KeyVersion" extends="java.lang.Object"
  2338. abstract="false"
  2339. static="true" final="false" visibility="public"
  2340. deprecated="not deprecated">
  2341. <constructor name="KeyProvider.KeyVersion" type="java.lang.String, java.lang.String, byte[]"
  2342. static="false" final="false" visibility="protected"
  2343. deprecated="not deprecated">
  2344. </constructor>
  2345. <method name="getName" return="java.lang.String"
  2346. abstract="false" native="false" synchronized="false"
  2347. static="false" final="false" visibility="public"
  2348. deprecated="not deprecated">
  2349. </method>
  2350. <method name="getVersionName" return="java.lang.String"
  2351. abstract="false" native="false" synchronized="false"
  2352. static="false" final="false" visibility="public"
  2353. deprecated="not deprecated">
  2354. </method>
  2355. <method name="getMaterial" return="byte[]"
  2356. abstract="false" native="false" synchronized="false"
  2357. static="false" final="false" visibility="public"
  2358. deprecated="not deprecated">
  2359. </method>
  2360. <method name="toString" return="java.lang.String"
  2361. abstract="false" native="false" synchronized="false"
  2362. static="false" final="false" visibility="public"
  2363. deprecated="not deprecated">
  2364. </method>
  2365. <doc>
  2366. <![CDATA[The combination of both the key version name and the key material.]]>
  2367. </doc>
  2368. </class>
  2369. <!-- end class org.apache.hadoop.crypto.key.KeyProvider.KeyVersion -->
  2370. <!-- start class org.apache.hadoop.crypto.key.KeyProvider.Metadata -->
  2371. <class name="KeyProvider.Metadata" extends="java.lang.Object"
  2372. abstract="false"
  2373. static="true" final="false" visibility="public"
  2374. deprecated="not deprecated">
  2375. <constructor name="KeyProvider.Metadata" type="java.lang.String, int, java.lang.String, java.util.Map, java.util.Date, int"
  2376. static="false" final="false" visibility="protected"
  2377. deprecated="not deprecated">
  2378. </constructor>
  2379. <constructor name="KeyProvider.Metadata" type="byte[]"
  2380. static="false" final="false" visibility="protected"
  2381. deprecated="not deprecated">
  2382. <exception name="IOException" type="java.io.IOException"/>
  2383. <doc>
  2384. <![CDATA[Deserialize a new metadata object from a set of bytes.
  2385. @param bytes the serialized metadata
  2386. @throws IOException]]>
  2387. </doc>
  2388. </constructor>
  2389. <method name="toString" return="java.lang.String"
  2390. abstract="false" native="false" synchronized="false"
  2391. static="false" final="false" visibility="public"
  2392. deprecated="not deprecated">
  2393. </method>
  2394. <method name="getDescription" return="java.lang.String"
  2395. abstract="false" native="false" synchronized="false"
  2396. static="false" final="false" visibility="public"
  2397. deprecated="not deprecated">
  2398. </method>
  2399. <method name="getCreated" return="java.util.Date"
  2400. abstract="false" native="false" synchronized="false"
  2401. static="false" final="false" visibility="public"
  2402. deprecated="not deprecated">
  2403. </method>
  2404. <method name="getCipher" return="java.lang.String"
  2405. abstract="false" native="false" synchronized="false"
  2406. static="false" final="false" visibility="public"
  2407. deprecated="not deprecated">
  2408. </method>
  2409. <method name="getAttributes" return="java.util.Map"
  2410. abstract="false" native="false" synchronized="false"
  2411. static="false" final="false" visibility="public"
  2412. deprecated="not deprecated">
  2413. </method>
  2414. <method name="getAlgorithm" return="java.lang.String"
  2415. abstract="false" native="false" synchronized="false"
  2416. static="false" final="false" visibility="public"
  2417. deprecated="not deprecated">
  2418. <doc>
  2419. <![CDATA[Get the algorithm from the cipher.
  2420. @return the algorithm name]]>
  2421. </doc>
  2422. </method>
  2423. <method name="getBitLength" return="int"
  2424. abstract="false" native="false" synchronized="false"
  2425. static="false" final="false" visibility="public"
  2426. deprecated="not deprecated">
  2427. </method>
  2428. <method name="getVersions" return="int"
  2429. abstract="false" native="false" synchronized="false"
  2430. static="false" final="false" visibility="public"
  2431. deprecated="not deprecated">
  2432. </method>
  2433. <method name="addVersion" return="int"
  2434. abstract="false" native="false" synchronized="false"
  2435. static="false" final="false" visibility="protected"
  2436. deprecated="not deprecated">
  2437. </method>
  2438. <method name="serialize" return="byte[]"
  2439. abstract="false" native="false" synchronized="false"
  2440. static="false" final="false" visibility="protected"
  2441. deprecated="not deprecated">
  2442. <exception name="IOException" type="java.io.IOException"/>
  2443. <doc>
  2444. <![CDATA[Serialize the metadata to a set of bytes.
  2445. @return the serialized bytes
  2446. @throws IOException]]>
  2447. </doc>
  2448. </method>
  2449. <doc>
  2450. <![CDATA[Key metadata that is associated with the key.]]>
  2451. </doc>
  2452. </class>
  2453. <!-- end class org.apache.hadoop.crypto.key.KeyProvider.Metadata -->
  2454. <!-- start class org.apache.hadoop.crypto.key.KeyProvider.Options -->
  2455. <class name="KeyProvider.Options" extends="java.lang.Object"
  2456. abstract="false"
  2457. static="true" final="false" visibility="public"
  2458. deprecated="not deprecated">
  2459. <constructor name="KeyProvider.Options" type="org.apache.hadoop.conf.Configuration"
  2460. static="false" final="false" visibility="public"
  2461. deprecated="not deprecated">
  2462. </constructor>
  2463. <method name="setCipher" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2464. abstract="false" native="false" synchronized="false"
  2465. static="false" final="false" visibility="public"
  2466. deprecated="not deprecated">
  2467. <param name="cipher" type="java.lang.String"/>
  2468. </method>
  2469. <method name="setBitLength" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2470. abstract="false" native="false" synchronized="false"
  2471. static="false" final="false" visibility="public"
  2472. deprecated="not deprecated">
  2473. <param name="bitLength" type="int"/>
  2474. </method>
  2475. <method name="setDescription" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2476. abstract="false" native="false" synchronized="false"
  2477. static="false" final="false" visibility="public"
  2478. deprecated="not deprecated">
  2479. <param name="description" type="java.lang.String"/>
  2480. </method>
  2481. <method name="setAttributes" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2482. abstract="false" native="false" synchronized="false"
  2483. static="false" final="false" visibility="public"
  2484. deprecated="not deprecated">
  2485. <param name="attributes" type="java.util.Map"/>
  2486. </method>
  2487. <method name="getCipher" return="java.lang.String"
  2488. abstract="false" native="false" synchronized="false"
  2489. static="false" final="false" visibility="public"
  2490. deprecated="not deprecated">
  2491. </method>
  2492. <method name="getBitLength" return="int"
  2493. abstract="false" native="false" synchronized="false"
  2494. static="false" final="false" visibility="public"
  2495. deprecated="not deprecated">
  2496. </method>
  2497. <method name="getDescription" return="java.lang.String"
  2498. abstract="false" native="false" synchronized="false"
  2499. static="false" final="false" visibility="public"
  2500. deprecated="not deprecated">
  2501. </method>
  2502. <method name="getAttributes" return="java.util.Map"
  2503. abstract="false" native="false" synchronized="false"
  2504. static="false" final="false" visibility="public"
  2505. deprecated="not deprecated">
  2506. </method>
  2507. <method name="toString" return="java.lang.String"
  2508. abstract="false" native="false" synchronized="false"
  2509. static="false" final="false" visibility="public"
  2510. deprecated="not deprecated">
  2511. </method>
  2512. <doc>
  2513. <![CDATA[Options when creating key objects.]]>
  2514. </doc>
  2515. </class>
  2516. <!-- end class org.apache.hadoop.crypto.key.KeyProvider.Options -->
  2517. <!-- start interface org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.CryptoExtension -->
  2518. <interface name="KeyProviderCryptoExtension.CryptoExtension" abstract="true"
  2519. static="true" final="false" visibility="public"
  2520. deprecated="not deprecated">
  2521. <implements name="org.apache.hadoop.crypto.key.KeyProviderExtension.Extension"/>
  2522. <method name="warmUpEncryptedKeys"
  2523. abstract="false" native="false" synchronized="false"
  2524. static="false" final="false" visibility="public"
  2525. deprecated="not deprecated">
  2526. <param name="keyNames" type="java.lang.String[]"/>
  2527. <exception name="IOException" type="java.io.IOException"/>
  2528. <doc>
  2529. <![CDATA[Calls to this method allows the underlying KeyProvider to warm-up any
  2530. implementation specific caches used to store the Encrypted Keys.
  2531. @param keyNames Array of Key Names]]>
  2532. </doc>
  2533. </method>
  2534. <method name="drain"
  2535. abstract="false" native="false" synchronized="false"
  2536. static="false" final="false" visibility="public"
  2537. deprecated="not deprecated">
  2538. <param name="keyName" type="java.lang.String"/>
  2539. <doc>
  2540. <![CDATA[Drains the Queue for the provided key.
  2541. @param keyName the key to drain the Queue for]]>
  2542. </doc>
  2543. </method>
  2544. <method name="generateEncryptedKey" return="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"
  2545. abstract="false" native="false" synchronized="false"
  2546. static="false" final="false" visibility="public"
  2547. deprecated="not deprecated">
  2548. <param name="encryptionKeyName" type="java.lang.String"/>
  2549. <exception name="IOException" type="java.io.IOException"/>
  2550. <exception name="GeneralSecurityException" type="java.security.GeneralSecurityException"/>
  2551. <doc>
  2552. <![CDATA[Generates a key material and encrypts it using the given key version name
  2553. and initialization vector. The generated key material is of the same
  2554. length as the <code>KeyVersion</code> material of the latest key version
  2555. of the key and is encrypted using the same cipher.
  2556. <p/>
  2557. NOTE: The generated key is not stored by the <code>KeyProvider</code>
  2558. @param encryptionKeyName
  2559. The latest KeyVersion of this key's material will be encrypted.
  2560. @return EncryptedKeyVersion with the generated key material, the version
  2561. name is 'EEK' (for Encrypted Encryption Key)
  2562. @throws IOException
  2563. thrown if the key material could not be generated
  2564. @throws GeneralSecurityException
  2565. thrown if the key material could not be encrypted because of a
  2566. cryptographic issue.]]>
  2567. </doc>
  2568. </method>
  2569. <method name="decryptEncryptedKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2570. abstract="false" native="false" synchronized="false"
  2571. static="false" final="false" visibility="public"
  2572. deprecated="not deprecated">
  2573. <param name="encryptedKeyVersion" type="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"/>
  2574. <exception name="IOException" type="java.io.IOException"/>
  2575. <exception name="GeneralSecurityException" type="java.security.GeneralSecurityException"/>
  2576. <doc>
  2577. <![CDATA[Decrypts an encrypted byte[] key material using the given a key version
  2578. name and initialization vector.
  2579. @param encryptedKeyVersion
  2580. contains keyVersionName and IV to decrypt the encrypted key
  2581. material
  2582. @return a KeyVersion with the decrypted key material, the version name is
  2583. 'EK' (For Encryption Key)
  2584. @throws IOException
  2585. thrown if the key material could not be decrypted
  2586. @throws GeneralSecurityException
  2587. thrown if the key material could not be decrypted because of a
  2588. cryptographic issue.]]>
  2589. </doc>
  2590. </method>
  2591. <doc>
  2592. <![CDATA[CryptoExtension is a type of Extension that exposes methods to generate
  2593. EncryptedKeys and to decrypt the same.]]>
  2594. </doc>
  2595. </interface>
  2596. <!-- end interface org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.CryptoExtension -->
  2597. <!-- start class org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion -->
  2598. <class name="KeyProviderCryptoExtension.EncryptedKeyVersion" extends="java.lang.Object"
  2599. abstract="false"
  2600. static="true" final="false" visibility="public"
  2601. deprecated="not deprecated">
  2602. <constructor name="KeyProviderCryptoExtension.EncryptedKeyVersion" type="java.lang.String, java.lang.String, byte[], org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2603. static="false" final="false" visibility="protected"
  2604. deprecated="not deprecated">
  2605. <doc>
  2606. <![CDATA[Create a new EncryptedKeyVersion.
  2607. @param keyName Name of the encryption key used to
  2608. encrypt the encrypted key.
  2609. @param encryptionKeyVersionName Version name of the encryption key used
  2610. to encrypt the encrypted key.
  2611. @param encryptedKeyIv Initialization vector of the encrypted
  2612. key. The IV of the encryption key used to
  2613. encrypt the encrypted key is derived from
  2614. this IV.
  2615. @param encryptedKeyVersion The encrypted encryption key version.]]>
  2616. </doc>
  2617. </constructor>
  2618. <method name="createForDecryption" return="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"
  2619. abstract="false" native="false" synchronized="false"
  2620. static="true" final="false" visibility="public"
  2621. deprecated="not deprecated">
  2622. <param name="keyName" type="java.lang.String"/>
  2623. <param name="encryptionKeyVersionName" type="java.lang.String"/>
  2624. <param name="encryptedKeyIv" type="byte[]"/>
  2625. <param name="encryptedKeyMaterial" type="byte[]"/>
  2626. <doc>
  2627. <![CDATA[Factory method to create a new EncryptedKeyVersion that can then be
  2628. passed into {@link #decryptEncryptedKey}. Note that the fields of the
  2629. returned EncryptedKeyVersion will only partially be populated; it is not
  2630. necessarily suitable for operations besides decryption.
  2631. @param keyName Key name of the encryption key use to encrypt the
  2632. encrypted key.
  2633. @param encryptionKeyVersionName Version name of the encryption key used
  2634. to encrypt the encrypted key.
  2635. @param encryptedKeyIv Initialization vector of the encrypted
  2636. key. The IV of the encryption key used to
  2637. encrypt the encrypted key is derived from
  2638. this IV.
  2639. @param encryptedKeyMaterial Key material of the encrypted key.
  2640. @return EncryptedKeyVersion suitable for decryption.]]>
  2641. </doc>
  2642. </method>
  2643. <method name="getEncryptionKeyName" return="java.lang.String"
  2644. abstract="false" native="false" synchronized="false"
  2645. static="false" final="false" visibility="public"
  2646. deprecated="not deprecated">
  2647. <doc>
  2648. <![CDATA[@return Name of the encryption key used to encrypt the encrypted key.]]>
  2649. </doc>
  2650. </method>
  2651. <method name="getEncryptionKeyVersionName" return="java.lang.String"
  2652. abstract="false" native="false" synchronized="false"
  2653. static="false" final="false" visibility="public"
  2654. deprecated="not deprecated">
  2655. <doc>
  2656. <![CDATA[@return Version name of the encryption key used to encrypt the encrypted
  2657. key.]]>
  2658. </doc>
  2659. </method>
  2660. <method name="getEncryptedKeyIv" return="byte[]"
  2661. abstract="false" native="false" synchronized="false"
  2662. static="false" final="false" visibility="public"
  2663. deprecated="not deprecated">
  2664. <doc>
  2665. <![CDATA[@return Initialization vector of the encrypted key. The IV of the
  2666. encryption key used to encrypt the encrypted key is derived from this
  2667. IV.]]>
  2668. </doc>
  2669. </method>
  2670. <method name="getEncryptedKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2671. abstract="false" native="false" synchronized="false"
  2672. static="false" final="false" visibility="public"
  2673. deprecated="not deprecated">
  2674. <doc>
  2675. <![CDATA[@return The encrypted encryption key version.]]>
  2676. </doc>
  2677. </method>
  2678. <method name="deriveIV" return="byte[]"
  2679. abstract="false" native="false" synchronized="false"
  2680. static="true" final="false" visibility="protected"
  2681. deprecated="not deprecated">
  2682. <param name="encryptedKeyIV" type="byte[]"/>
  2683. <doc>
  2684. <![CDATA[Derive the initialization vector (IV) for the encryption key from the IV
  2685. of the encrypted key. This derived IV is used with the encryption key to
  2686. decrypt the encrypted key.
  2687. <p/>
  2688. The alternative to this is using the same IV for both the encryption key
  2689. and the encrypted key. Even a simple symmetric transformation like this
  2690. improves security by avoiding IV re-use. IVs will also be fairly unique
  2691. among different EEKs.
  2692. @param encryptedKeyIV of the encrypted key (i.e. {@link
  2693. #getEncryptedKeyIv()})
  2694. @return IV for the encryption key]]>
  2695. </doc>
  2696. </method>
  2697. <doc>
  2698. <![CDATA[An encrypted encryption key (EEK) and related information. An EEK must be
  2699. decrypted using the key's encryption key before it can be used.]]>
  2700. </doc>
  2701. </class>
  2702. <!-- end class org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion -->
  2703. <!-- start class org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension -->
  2704. <class name="KeyProviderDelegationTokenExtension" extends="org.apache.hadoop.crypto.key.KeyProviderExtension"
  2705. abstract="false"
  2706. static="false" final="false" visibility="public"
  2707. deprecated="not deprecated">
  2708. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  2709. abstract="false" native="false" synchronized="false"
  2710. static="false" final="false" visibility="public"
  2711. deprecated="not deprecated">
  2712. <param name="renewer" type="java.lang.String"/>
  2713. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  2714. <exception name="IOException" type="java.io.IOException"/>
  2715. <doc>
  2716. <![CDATA[Passes the renewer and Credentials object to the underlying
  2717. {@link DelegationTokenExtension}
  2718. @param renewer the user allowed to renew the delegation tokens
  2719. @param credentials cache in which to add new delegation tokens
  2720. @return list of new delegation tokens
  2721. @throws IOException thrown if IOException if an IO error occurs.]]>
  2722. </doc>
  2723. </method>
  2724. <method name="createKeyProviderDelegationTokenExtension" return="org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension"
  2725. abstract="false" native="false" synchronized="false"
  2726. static="true" final="false" visibility="public"
  2727. deprecated="not deprecated">
  2728. <param name="keyProvider" type="org.apache.hadoop.crypto.key.KeyProvider"/>
  2729. <doc>
  2730. <![CDATA[Creates a <code>KeyProviderDelegationTokenExtension</code> using a given
  2731. {@link KeyProvider}.
  2732. <p/>
  2733. If the given <code>KeyProvider</code> implements the
  2734. {@link DelegationTokenExtension} interface the <code>KeyProvider</code>
  2735. itself will provide the extension functionality, otherwise a default
  2736. extension implementation will be used.
  2737. @param keyProvider <code>KeyProvider</code> to use to create the
  2738. <code>KeyProviderDelegationTokenExtension</code> extension.
  2739. @return a <code>KeyProviderDelegationTokenExtension</code> instance
  2740. using the given <code>KeyProvider</code>.]]>
  2741. </doc>
  2742. </method>
  2743. <doc>
  2744. <![CDATA[A KeyProvider extension with the ability to add a renewer's Delegation
  2745. Tokens to the provided Credentials.]]>
  2746. </doc>
  2747. </class>
  2748. <!-- end class org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension -->
  2749. <!-- start interface org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension.DelegationTokenExtension -->
  2750. <interface name="KeyProviderDelegationTokenExtension.DelegationTokenExtension" abstract="true"
  2751. static="true" final="false" visibility="public"
  2752. deprecated="not deprecated">
  2753. <implements name="org.apache.hadoop.crypto.key.KeyProviderExtension.Extension"/>
  2754. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  2755. abstract="false" native="false" synchronized="false"
  2756. static="false" final="false" visibility="public"
  2757. deprecated="not deprecated">
  2758. <param name="renewer" type="java.lang.String"/>
  2759. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  2760. <exception name="IOException" type="java.io.IOException"/>
  2761. <doc>
  2762. <![CDATA[The implementer of this class will take a renewer and add all
  2763. delegation tokens associated with the renewer to the
  2764. <code>Credentials</code> object if it is not already present,
  2765. @param renewer the user allowed to renew the delegation tokens
  2766. @param credentials cache in which to add new delegation tokens
  2767. @return list of new delegation tokens
  2768. @throws IOException thrown if IOException if an IO error occurs.]]>
  2769. </doc>
  2770. </method>
  2771. <doc>
  2772. <![CDATA[DelegationTokenExtension is a type of Extension that exposes methods to
  2773. needed to work with Delegation Tokens.]]>
  2774. </doc>
  2775. </interface>
  2776. <!-- end interface org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension.DelegationTokenExtension -->
  2777. <!-- start class org.apache.hadoop.crypto.key.KeyProviderExtension -->
  2778. <class name="KeyProviderExtension" extends="org.apache.hadoop.crypto.key.KeyProvider"
  2779. abstract="true"
  2780. static="false" final="false" visibility="public"
  2781. deprecated="not deprecated">
  2782. <constructor name="KeyProviderExtension" type="org.apache.hadoop.crypto.key.KeyProvider, E"
  2783. static="false" final="false" visibility="public"
  2784. deprecated="not deprecated">
  2785. </constructor>
  2786. <method name="getExtension" return="E"
  2787. abstract="false" native="false" synchronized="false"
  2788. static="false" final="false" visibility="protected"
  2789. deprecated="not deprecated">
  2790. </method>
  2791. <method name="getKeyProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2792. abstract="false" native="false" synchronized="false"
  2793. static="false" final="false" visibility="protected"
  2794. deprecated="not deprecated">
  2795. </method>
  2796. <method name="isTransient" return="boolean"
  2797. abstract="false" native="false" synchronized="false"
  2798. static="false" final="false" visibility="public"
  2799. deprecated="not deprecated">
  2800. </method>
  2801. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  2802. abstract="false" native="false" synchronized="false"
  2803. static="false" final="false" visibility="public"
  2804. deprecated="not deprecated">
  2805. <param name="names" type="java.lang.String[]"/>
  2806. <exception name="IOException" type="java.io.IOException"/>
  2807. </method>
  2808. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2809. abstract="false" native="false" synchronized="false"
  2810. static="false" final="false" visibility="public"
  2811. deprecated="not deprecated">
  2812. <param name="name" type="java.lang.String"/>
  2813. <exception name="IOException" type="java.io.IOException"/>
  2814. </method>
  2815. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2816. abstract="false" native="false" synchronized="false"
  2817. static="false" final="false" visibility="public"
  2818. deprecated="not deprecated">
  2819. <param name="name" type="java.lang.String"/>
  2820. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2821. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2822. <exception name="IOException" type="java.io.IOException"/>
  2823. </method>
  2824. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2825. abstract="false" native="false" synchronized="false"
  2826. static="false" final="false" visibility="public"
  2827. deprecated="not deprecated">
  2828. <param name="name" type="java.lang.String"/>
  2829. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2830. <exception name="IOException" type="java.io.IOException"/>
  2831. </method>
  2832. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2833. abstract="false" native="false" synchronized="false"
  2834. static="false" final="false" visibility="public"
  2835. deprecated="not deprecated">
  2836. <param name="versionName" type="java.lang.String"/>
  2837. <exception name="IOException" type="java.io.IOException"/>
  2838. </method>
  2839. <method name="getKeys" return="java.util.List"
  2840. abstract="false" native="false" synchronized="false"
  2841. static="false" final="false" visibility="public"
  2842. deprecated="not deprecated">
  2843. <exception name="IOException" type="java.io.IOException"/>
  2844. </method>
  2845. <method name="getKeyVersions" return="java.util.List"
  2846. abstract="false" native="false" synchronized="false"
  2847. static="false" final="false" visibility="public"
  2848. deprecated="not deprecated">
  2849. <param name="name" type="java.lang.String"/>
  2850. <exception name="IOException" type="java.io.IOException"/>
  2851. </method>
  2852. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  2853. abstract="false" native="false" synchronized="false"
  2854. static="false" final="false" visibility="public"
  2855. deprecated="not deprecated">
  2856. <param name="name" type="java.lang.String"/>
  2857. <exception name="IOException" type="java.io.IOException"/>
  2858. </method>
  2859. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2860. abstract="false" native="false" synchronized="false"
  2861. static="false" final="false" visibility="public"
  2862. deprecated="not deprecated">
  2863. <param name="name" type="java.lang.String"/>
  2864. <param name="material" type="byte[]"/>
  2865. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2866. <exception name="IOException" type="java.io.IOException"/>
  2867. </method>
  2868. <method name="deleteKey"
  2869. abstract="false" native="false" synchronized="false"
  2870. static="false" final="false" visibility="public"
  2871. deprecated="not deprecated">
  2872. <param name="name" type="java.lang.String"/>
  2873. <exception name="IOException" type="java.io.IOException"/>
  2874. </method>
  2875. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2876. abstract="false" native="false" synchronized="false"
  2877. static="false" final="false" visibility="public"
  2878. deprecated="not deprecated">
  2879. <param name="name" type="java.lang.String"/>
  2880. <param name="material" type="byte[]"/>
  2881. <exception name="IOException" type="java.io.IOException"/>
  2882. </method>
  2883. <method name="flush"
  2884. abstract="false" native="false" synchronized="false"
  2885. static="false" final="false" visibility="public"
  2886. deprecated="not deprecated">
  2887. <exception name="IOException" type="java.io.IOException"/>
  2888. </method>
  2889. <method name="toString" return="java.lang.String"
  2890. abstract="false" native="false" synchronized="false"
  2891. static="false" final="false" visibility="public"
  2892. deprecated="not deprecated">
  2893. </method>
  2894. <doc>
  2895. <![CDATA[This is a utility class used to extend the functionality of KeyProvider, that
  2896. takes a KeyProvider and an Extension. It implements all the required methods
  2897. of the KeyProvider by delegating it to the provided KeyProvider.]]>
  2898. </doc>
  2899. </class>
  2900. <!-- end class org.apache.hadoop.crypto.key.KeyProviderExtension -->
  2901. <!-- start interface org.apache.hadoop.crypto.key.KeyProviderExtension.Extension -->
  2902. <interface name="KeyProviderExtension.Extension" abstract="true"
  2903. static="true" final="false" visibility="public"
  2904. deprecated="not deprecated">
  2905. <doc>
  2906. <![CDATA[A marker interface for the KeyProviderExtension subclass implement.]]>
  2907. </doc>
  2908. </interface>
  2909. <!-- end interface org.apache.hadoop.crypto.key.KeyProviderExtension.Extension -->
  2910. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2911. <class name="KeyProviderFactory" extends="java.lang.Object"
  2912. abstract="true"
  2913. static="false" final="false" visibility="public"
  2914. deprecated="not deprecated">
  2915. <constructor name="KeyProviderFactory"
  2916. static="false" final="false" visibility="public"
  2917. deprecated="not deprecated">
  2918. </constructor>
  2919. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2920. abstract="true" native="false" synchronized="false"
  2921. static="false" final="false" visibility="public"
  2922. deprecated="not deprecated">
  2923. <param name="providerName" type="java.net.URI"/>
  2924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2925. <exception name="IOException" type="java.io.IOException"/>
  2926. </method>
  2927. <method name="getProviders" return="java.util.List"
  2928. abstract="false" native="false" synchronized="false"
  2929. static="true" final="false" visibility="public"
  2930. deprecated="not deprecated">
  2931. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2932. <exception name="IOException" type="java.io.IOException"/>
  2933. </method>
  2934. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  2935. abstract="false" native="false" synchronized="false"
  2936. static="true" final="false" visibility="public"
  2937. deprecated="not deprecated">
  2938. <param name="uri" type="java.net.URI"/>
  2939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2940. <exception name="IOException" type="java.io.IOException"/>
  2941. <doc>
  2942. <![CDATA[Create a KeyProvider based on a provided URI.
  2943. @param uri key provider URI
  2944. @param conf configuration to initialize the key provider
  2945. @return the key provider for the specified URI, or <code>NULL</code> if
  2946. a provider for the specified URI scheme could not be found.
  2947. @throws IOException thrown if the provider failed to initialize.]]>
  2948. </doc>
  2949. </method>
  2950. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  2951. transient="false" volatile="false"
  2952. static="true" final="true" visibility="public"
  2953. deprecated="not deprecated">
  2954. </field>
  2955. <doc>
  2956. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  2957. Configuration. It uses a service loader interface to find the available
  2958. KeyProviders and create them based on the list of URIs.]]>
  2959. </doc>
  2960. </class>
  2961. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2962. <!-- start class org.apache.hadoop.crypto.key.KeyShell -->
  2963. <class name="KeyShell" extends="org.apache.hadoop.conf.Configured"
  2964. abstract="false"
  2965. static="false" final="false" visibility="public"
  2966. deprecated="not deprecated">
  2967. <implements name="org.apache.hadoop.util.Tool"/>
  2968. <constructor name="KeyShell"
  2969. static="false" final="false" visibility="public"
  2970. deprecated="not deprecated">
  2971. </constructor>
  2972. <method name="run" return="int"
  2973. abstract="false" native="false" synchronized="false"
  2974. static="false" final="false" visibility="public"
  2975. deprecated="not deprecated">
  2976. <param name="args" type="java.lang.String[]"/>
  2977. <exception name="Exception" type="java.lang.Exception"/>
  2978. <doc>
  2979. <![CDATA[Primary entry point for the KeyShell; called via main().
  2980. @param args Command line arguments.
  2981. @return 0 on success and 1 on failure. This value is passed back to
  2982. the unix shell, so we must follow shell return code conventions:
  2983. the return code is an unsigned character, and 0 means success, and
  2984. small positive integers mean failure.
  2985. @throws Exception]]>
  2986. </doc>
  2987. </method>
  2988. <method name="main"
  2989. abstract="false" native="false" synchronized="false"
  2990. static="true" final="false" visibility="public"
  2991. deprecated="not deprecated">
  2992. <param name="args" type="java.lang.String[]"/>
  2993. <exception name="Exception" type="java.lang.Exception"/>
  2994. <doc>
  2995. <![CDATA[main() entry point for the KeyShell. While strictly speaking the
  2996. return is void, it will System.exit() with a return code: 0 is for
  2997. success and 1 for failure.
  2998. @param args Command line arguments.
  2999. @throws Exception]]>
  3000. </doc>
  3001. </method>
  3002. <field name="out" type="java.io.PrintStream"
  3003. transient="false" volatile="false"
  3004. static="false" final="false" visibility="public"
  3005. deprecated="not deprecated">
  3006. <doc>
  3007. <![CDATA[allows stdout to be captured if necessary]]>
  3008. </doc>
  3009. </field>
  3010. <field name="err" type="java.io.PrintStream"
  3011. transient="false" volatile="false"
  3012. static="false" final="false" visibility="public"
  3013. deprecated="not deprecated">
  3014. <doc>
  3015. <![CDATA[allows stderr to be captured if necessary]]>
  3016. </doc>
  3017. </field>
  3018. <doc>
  3019. <![CDATA[This program is the CLI utility for the KeyProvider facilities in Hadoop.]]>
  3020. </doc>
  3021. </class>
  3022. <!-- end class org.apache.hadoop.crypto.key.KeyShell -->
  3023. <!-- start class org.apache.hadoop.crypto.key.UserProvider.Factory -->
  3024. <class name="UserProvider.Factory" extends="org.apache.hadoop.crypto.key.KeyProviderFactory"
  3025. abstract="false"
  3026. static="true" final="false" visibility="public"
  3027. deprecated="not deprecated">
  3028. <constructor name="UserProvider.Factory"
  3029. static="false" final="false" visibility="public"
  3030. deprecated="not deprecated">
  3031. </constructor>
  3032. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  3033. abstract="false" native="false" synchronized="false"
  3034. static="false" final="false" visibility="public"
  3035. deprecated="not deprecated">
  3036. <param name="providerName" type="java.net.URI"/>
  3037. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3038. <exception name="IOException" type="java.io.IOException"/>
  3039. </method>
  3040. </class>
  3041. <!-- end class org.apache.hadoop.crypto.key.UserProvider.Factory -->
  3042. </package>
  3043. <package name="org.apache.hadoop.crypto.key.kms">
  3044. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.Factory -->
  3045. <class name="KMSClientProvider.Factory" extends="org.apache.hadoop.crypto.key.KeyProviderFactory"
  3046. abstract="false"
  3047. static="true" final="false" visibility="public"
  3048. deprecated="not deprecated">
  3049. <constructor name="KMSClientProvider.Factory"
  3050. static="false" final="false" visibility="public"
  3051. deprecated="not deprecated">
  3052. </constructor>
  3053. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  3054. abstract="false" native="false" synchronized="false"
  3055. static="false" final="false" visibility="public"
  3056. deprecated="not deprecated">
  3057. <param name="providerName" type="java.net.URI"/>
  3058. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3059. <exception name="IOException" type="java.io.IOException"/>
  3060. </method>
  3061. <doc>
  3062. <![CDATA[The factory to create KMSClientProvider, which is used by the
  3063. ServiceLoader.]]>
  3064. </doc>
  3065. </class>
  3066. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.Factory -->
  3067. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSEncryptedKeyVersion -->
  3068. <class name="KMSClientProvider.KMSEncryptedKeyVersion" extends="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"
  3069. abstract="false"
  3070. static="true" final="false" visibility="public"
  3071. deprecated="not deprecated">
  3072. <constructor name="KMSClientProvider.KMSEncryptedKeyVersion" type="java.lang.String, java.lang.String, byte[], java.lang.String, byte[]"
  3073. static="false" final="false" visibility="public"
  3074. deprecated="not deprecated">
  3075. </constructor>
  3076. </class>
  3077. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSEncryptedKeyVersion -->
  3078. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSKeyVersion -->
  3079. <class name="KMSClientProvider.KMSKeyVersion" extends="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3080. abstract="false"
  3081. static="true" final="false" visibility="public"
  3082. deprecated="not deprecated">
  3083. <constructor name="KMSClientProvider.KMSKeyVersion" type="java.lang.String, java.lang.String, byte[]"
  3084. static="false" final="false" visibility="public"
  3085. deprecated="not deprecated">
  3086. </constructor>
  3087. </class>
  3088. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSKeyVersion -->
  3089. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSMetadata -->
  3090. <class name="KMSClientProvider.KMSMetadata" extends="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  3091. abstract="false"
  3092. static="true" final="false" visibility="public"
  3093. deprecated="not deprecated">
  3094. <constructor name="KMSClientProvider.KMSMetadata" type="java.lang.String, int, java.lang.String, java.util.Map, java.util.Date, int"
  3095. static="false" final="false" visibility="public"
  3096. deprecated="not deprecated">
  3097. </constructor>
  3098. </class>
  3099. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSMetadata -->
  3100. <!-- start interface org.apache.hadoop.crypto.key.kms.ValueQueue.QueueRefiller -->
  3101. <interface name="ValueQueue.QueueRefiller" abstract="true"
  3102. static="true" final="false" visibility="public"
  3103. deprecated="not deprecated">
  3104. <method name="fillQueueForKey"
  3105. abstract="false" native="false" synchronized="false"
  3106. static="false" final="false" visibility="public"
  3107. deprecated="not deprecated">
  3108. <param name="keyName" type="java.lang.String"/>
  3109. <param name="keyQueue" type="java.util.Queue"/>
  3110. <param name="numValues" type="int"/>
  3111. <exception name="IOException" type="java.io.IOException"/>
  3112. <doc>
  3113. <![CDATA[Method that has to be implemented by implementing classes to fill the
  3114. Queue.
  3115. @param keyName Key name
  3116. @param keyQueue Queue that needs to be filled
  3117. @param numValues number of Values to be added to the queue.
  3118. @throws IOException]]>
  3119. </doc>
  3120. </method>
  3121. <doc>
  3122. <![CDATA[QueueRefiller interface a client must implement to use this class]]>
  3123. </doc>
  3124. </interface>
  3125. <!-- end interface org.apache.hadoop.crypto.key.kms.ValueQueue.QueueRefiller -->
  3126. <!-- start class org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy -->
  3127. <class name="ValueQueue.SyncGenerationPolicy" extends="java.lang.Enum"
  3128. abstract="false"
  3129. static="true" final="true" visibility="public"
  3130. deprecated="not deprecated">
  3131. <method name="values" return="org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy[]"
  3132. abstract="false" native="false" synchronized="false"
  3133. static="true" final="false" visibility="public"
  3134. deprecated="not deprecated">
  3135. </method>
  3136. <method name="valueOf" return="org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy"
  3137. abstract="false" native="false" synchronized="false"
  3138. static="true" final="false" visibility="public"
  3139. deprecated="not deprecated">
  3140. <param name="name" type="java.lang.String"/>
  3141. </method>
  3142. <doc>
  3143. <![CDATA[Policy to decide how many values to return to client when client asks for
  3144. "n" values and Queue is empty.
  3145. This decides how many values to return when client calls "getAtMost"]]>
  3146. </doc>
  3147. </class>
  3148. <!-- end class org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy -->
  3149. </package>
  3150. <package name="org.apache.hadoop.crypto.random">
  3151. </package>
  3152. <package name="org.apache.hadoop.fs">
  3153. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  3154. <class name="AbstractFileSystem" extends="java.lang.Object"
  3155. abstract="true"
  3156. static="false" final="false" visibility="public"
  3157. deprecated="not deprecated">
  3158. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  3159. static="false" final="false" visibility="public"
  3160. deprecated="not deprecated">
  3161. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  3162. <doc>
  3163. <![CDATA[Constructor to be called by subclasses.
  3164. @param uri for this file system.
  3165. @param supportedScheme the scheme supported by the implementor
  3166. @param authorityNeeded if true then theURI must have authority, if false
  3167. then the URI must have null authority.
  3168. @throws URISyntaxException <code>uri</code> has syntax error]]>
  3169. </doc>
  3170. </constructor>
  3171. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3172. abstract="false" native="false" synchronized="false"
  3173. static="false" final="false" visibility="public"
  3174. deprecated="not deprecated">
  3175. </method>
  3176. <method name="isValidName" return="boolean"
  3177. abstract="false" native="false" synchronized="false"
  3178. static="false" final="false" visibility="public"
  3179. deprecated="not deprecated">
  3180. <param name="src" type="java.lang.String"/>
  3181. <doc>
  3182. <![CDATA[Returns true if the specified string is considered valid in the path part
  3183. of a URI by this file system. The default implementation enforces the rules
  3184. of HDFS, but subclasses may override this method to implement specific
  3185. validation rules for specific file systems.
  3186. @param src String source filename to check, path part of the URI
  3187. @return boolean true if the specified string is considered valid]]>
  3188. </doc>
  3189. </method>
  3190. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  3191. abstract="false" native="false" synchronized="false"
  3192. static="true" final="false" visibility="public"
  3193. deprecated="not deprecated">
  3194. <param name="uri" type="java.net.URI"/>
  3195. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3196. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3197. <doc>
  3198. <![CDATA[Create a file system instance for the specified uri using the conf. The
  3199. conf is used to find the class name that implements the file system. The
  3200. conf is also passed to the file system for its configuration.
  3201. @param uri URI of the file system
  3202. @param conf Configuration for the file system
  3203. @return Returns the file system for the given URI
  3204. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  3205. not found]]>
  3206. </doc>
  3207. </method>
  3208. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3209. abstract="false" native="false" synchronized="true"
  3210. static="true" final="false" visibility="protected"
  3211. deprecated="not deprecated">
  3212. <param name="uri" type="java.net.URI"/>
  3213. <doc>
  3214. <![CDATA[Get the statistics for a particular file system.
  3215. @param uri
  3216. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  3217. part of the uri are used.
  3218. @return a statistics object]]>
  3219. </doc>
  3220. </method>
  3221. <method name="clearStatistics"
  3222. abstract="false" native="false" synchronized="true"
  3223. static="true" final="false" visibility="public"
  3224. deprecated="not deprecated">
  3225. </method>
  3226. <method name="printStatistics"
  3227. abstract="false" native="false" synchronized="true"
  3228. static="true" final="false" visibility="public"
  3229. deprecated="not deprecated">
  3230. <doc>
  3231. <![CDATA[Prints statistics for all file systems.]]>
  3232. </doc>
  3233. </method>
  3234. <method name="getAllStatistics" return="java.util.Map"
  3235. abstract="false" native="false" synchronized="true"
  3236. static="true" final="false" visibility="protected"
  3237. deprecated="not deprecated">
  3238. </method>
  3239. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  3240. abstract="false" native="false" synchronized="false"
  3241. static="true" final="false" visibility="public"
  3242. deprecated="not deprecated">
  3243. <param name="uri" type="java.net.URI"/>
  3244. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3245. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3246. <doc>
  3247. <![CDATA[The main factory method for creating a file system. Get a file system for
  3248. the URI's scheme and authority. The scheme of the <code>uri</code>
  3249. determines a configuration property name,
  3250. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  3251. AbstractFileSystem class.
  3252. The entire URI and conf is passed to the AbstractFileSystem factory method.
  3253. @param uri for the file system to be created.
  3254. @param conf which is passed to the file system impl.
  3255. @return file system for the given URI.
  3256. @throws UnsupportedFileSystemException if the file system for
  3257. <code>uri</code> is not supported.]]>
  3258. </doc>
  3259. </method>
  3260. <method name="checkScheme"
  3261. abstract="false" native="false" synchronized="false"
  3262. static="false" final="false" visibility="public"
  3263. deprecated="not deprecated">
  3264. <param name="uri" type="java.net.URI"/>
  3265. <param name="supportedScheme" type="java.lang.String"/>
  3266. <doc>
  3267. <![CDATA[Check that the Uri's scheme matches
  3268. @param uri
  3269. @param supportedScheme]]>
  3270. </doc>
  3271. </method>
  3272. <method name="getUriDefaultPort" return="int"
  3273. abstract="true" native="false" synchronized="false"
  3274. static="false" final="false" visibility="public"
  3275. deprecated="not deprecated">
  3276. <doc>
  3277. <![CDATA[The default port of this file system.
  3278. @return default port of this file system's Uri scheme
  3279. A uri with a port of -1 => default port;]]>
  3280. </doc>
  3281. </method>
  3282. <method name="getUri" return="java.net.URI"
  3283. abstract="false" native="false" synchronized="false"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. <doc>
  3287. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  3288. @return the uri of this file system.]]>
  3289. </doc>
  3290. </method>
  3291. <method name="checkPath"
  3292. abstract="false" native="false" synchronized="false"
  3293. static="false" final="false" visibility="public"
  3294. deprecated="not deprecated">
  3295. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3296. <doc>
  3297. <![CDATA[Check that a Path belongs to this FileSystem.
  3298. If the path is fully qualified URI, then its scheme and authority
  3299. matches that of this file system. Otherwise the path must be
  3300. slash-relative name.
  3301. @throws InvalidPathException if the path is invalid]]>
  3302. </doc>
  3303. </method>
  3304. <method name="getUriPath" return="java.lang.String"
  3305. abstract="false" native="false" synchronized="false"
  3306. static="false" final="false" visibility="public"
  3307. deprecated="not deprecated">
  3308. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3309. <doc>
  3310. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  3311. and that the path-part is a valid name.
  3312. @param p path
  3313. @return path-part of the Path p]]>
  3314. </doc>
  3315. </method>
  3316. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  3317. abstract="false" native="false" synchronized="false"
  3318. static="false" final="false" visibility="public"
  3319. deprecated="not deprecated">
  3320. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3321. <doc>
  3322. <![CDATA[Make the path fully qualified to this file system
  3323. @param path
  3324. @return the qualified path]]>
  3325. </doc>
  3326. </method>
  3327. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3328. abstract="false" native="false" synchronized="false"
  3329. static="false" final="false" visibility="public"
  3330. deprecated="not deprecated">
  3331. <doc>
  3332. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  3333. that is used as the starting workingDir. For other file systems
  3334. like HDFS there is no built in notion of an initial workingDir.
  3335. @return the initial workingDir if the file system has such a notion
  3336. otherwise return a null.]]>
  3337. </doc>
  3338. </method>
  3339. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3340. abstract="false" native="false" synchronized="false"
  3341. static="false" final="false" visibility="public"
  3342. deprecated="not deprecated">
  3343. <doc>
  3344. <![CDATA[Return the current user's home directory in this file system.
  3345. The default implementation returns "/user/$USER/".
  3346. @return current user's home directory.]]>
  3347. </doc>
  3348. </method>
  3349. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  3350. abstract="true" native="false" synchronized="false"
  3351. static="false" final="false" visibility="public"
  3352. deprecated="not deprecated">
  3353. <exception name="IOException" type="java.io.IOException"/>
  3354. <doc>
  3355. <![CDATA[Return a set of server default configuration values.
  3356. @return server default configuration values
  3357. @throws IOException an I/O error occurred]]>
  3358. </doc>
  3359. </method>
  3360. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  3361. abstract="false" native="false" synchronized="false"
  3362. static="false" final="false" visibility="public"
  3363. deprecated="not deprecated">
  3364. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3365. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3366. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3367. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3368. <exception name="IOException" type="java.io.IOException"/>
  3369. <doc>
  3370. <![CDATA[Return the fully-qualified path of path f resolving the path
  3371. through any internal symlinks or mount point
  3372. @param p path to be resolved
  3373. @return fully qualified path
  3374. @throws FileNotFoundException, AccessControlException, IOException
  3375. UnresolvedLinkException if symbolic link on path cannot be resolved
  3376. internally]]>
  3377. </doc>
  3378. </method>
  3379. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3380. abstract="false" native="false" synchronized="false"
  3381. static="false" final="true" visibility="public"
  3382. deprecated="not deprecated">
  3383. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3384. <param name="createFlag" type="java.util.EnumSet"/>
  3385. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  3386. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3387. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3388. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3389. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3390. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3391. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3392. <exception name="IOException" type="java.io.IOException"/>
  3393. <doc>
  3394. <![CDATA[The specification of this method matches that of
  3395. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  3396. that the Path f must be fully qualified and the permission is absolute
  3397. (i.e. umask has been applied).]]>
  3398. </doc>
  3399. </method>
  3400. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  3401. abstract="true" native="false" synchronized="false"
  3402. static="false" final="false" visibility="public"
  3403. deprecated="not deprecated">
  3404. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3405. <param name="flag" type="java.util.EnumSet"/>
  3406. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3407. <param name="bufferSize" type="int"/>
  3408. <param name="replication" type="short"/>
  3409. <param name="blockSize" type="long"/>
  3410. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3411. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  3412. <param name="createParent" type="boolean"/>
  3413. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3414. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3415. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3416. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3417. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3418. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3419. <exception name="IOException" type="java.io.IOException"/>
  3420. <doc>
  3421. <![CDATA[The specification of this method matches that of
  3422. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  3423. have been declared explicitly.]]>
  3424. </doc>
  3425. </method>
  3426. <method name="mkdir"
  3427. abstract="true" native="false" synchronized="false"
  3428. static="false" final="false" visibility="public"
  3429. deprecated="not deprecated">
  3430. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3431. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3432. <param name="createParent" type="boolean"/>
  3433. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3434. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3435. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3436. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3437. <exception name="IOException" type="java.io.IOException"/>
  3438. <doc>
  3439. <![CDATA[The specification of this method matches that of
  3440. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  3441. f must be fully qualified and the permission is absolute (i.e.
  3442. umask has been applied).]]>
  3443. </doc>
  3444. </method>
  3445. <method name="delete" return="boolean"
  3446. abstract="true" native="false" synchronized="false"
  3447. static="false" final="false" visibility="public"
  3448. deprecated="not deprecated">
  3449. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3450. <param name="recursive" type="boolean"/>
  3451. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3452. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3453. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3454. <exception name="IOException" type="java.io.IOException"/>
  3455. <doc>
  3456. <![CDATA[The specification of this method matches that of
  3457. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  3458. this file system.]]>
  3459. </doc>
  3460. </method>
  3461. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3462. abstract="false" native="false" synchronized="false"
  3463. static="false" final="false" visibility="public"
  3464. deprecated="not deprecated">
  3465. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3466. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3467. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3468. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3469. <exception name="IOException" type="java.io.IOException"/>
  3470. <doc>
  3471. <![CDATA[The specification of this method matches that of
  3472. {@link FileContext#open(Path)} except that Path f must be for this
  3473. file system.]]>
  3474. </doc>
  3475. </method>
  3476. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3477. abstract="true" native="false" synchronized="false"
  3478. static="false" final="false" visibility="public"
  3479. deprecated="not deprecated">
  3480. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3481. <param name="bufferSize" type="int"/>
  3482. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3483. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3484. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3485. <exception name="IOException" type="java.io.IOException"/>
  3486. <doc>
  3487. <![CDATA[The specification of this method matches that of
  3488. {@link FileContext#open(Path, int)} except that Path f must be for this
  3489. file system.]]>
  3490. </doc>
  3491. </method>
  3492. <method name="setReplication" return="boolean"
  3493. abstract="true" native="false" synchronized="false"
  3494. static="false" final="false" visibility="public"
  3495. deprecated="not deprecated">
  3496. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3497. <param name="replication" type="short"/>
  3498. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3499. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3500. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3501. <exception name="IOException" type="java.io.IOException"/>
  3502. <doc>
  3503. <![CDATA[The specification of this method matches that of
  3504. {@link FileContext#setReplication(Path, short)} except that Path f must be
  3505. for this file system.]]>
  3506. </doc>
  3507. </method>
  3508. <method name="rename"
  3509. abstract="false" native="false" synchronized="false"
  3510. static="false" final="true" visibility="public"
  3511. deprecated="not deprecated">
  3512. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3513. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3514. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  3515. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3516. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3517. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3518. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3519. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3520. <exception name="IOException" type="java.io.IOException"/>
  3521. <doc>
  3522. <![CDATA[The specification of this method matches that of
  3523. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  3524. f must be for this file system.]]>
  3525. </doc>
  3526. </method>
  3527. <method name="renameInternal"
  3528. abstract="true" native="false" synchronized="false"
  3529. static="false" final="false" visibility="public"
  3530. deprecated="not deprecated">
  3531. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3532. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3533. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3534. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3535. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3536. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3537. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3538. <exception name="IOException" type="java.io.IOException"/>
  3539. <doc>
  3540. <![CDATA[The specification of this method matches that of
  3541. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  3542. f must be for this file system and NO OVERWRITE is performed.
  3543. File systems that do not have a built in overwrite need implement only this
  3544. method and can take advantage of the default impl of the other
  3545. {@link #renameInternal(Path, Path, boolean)}]]>
  3546. </doc>
  3547. </method>
  3548. <method name="renameInternal"
  3549. abstract="false" native="false" synchronized="false"
  3550. static="false" final="false" visibility="public"
  3551. deprecated="not deprecated">
  3552. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3553. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3554. <param name="overwrite" type="boolean"/>
  3555. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3556. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3557. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3558. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3559. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3560. <exception name="IOException" type="java.io.IOException"/>
  3561. <doc>
  3562. <![CDATA[The specification of this method matches that of
  3563. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  3564. f must be for this file system.]]>
  3565. </doc>
  3566. </method>
  3567. <method name="supportsSymlinks" return="boolean"
  3568. abstract="false" native="false" synchronized="false"
  3569. static="false" final="false" visibility="public"
  3570. deprecated="not deprecated">
  3571. <doc>
  3572. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  3573. @return true if filesystem supports symlinks]]>
  3574. </doc>
  3575. </method>
  3576. <method name="createSymlink"
  3577. abstract="false" native="false" synchronized="false"
  3578. static="false" final="false" visibility="public"
  3579. deprecated="not deprecated">
  3580. <param name="target" type="org.apache.hadoop.fs.Path"/>
  3581. <param name="link" type="org.apache.hadoop.fs.Path"/>
  3582. <param name="createParent" type="boolean"/>
  3583. <exception name="IOException" type="java.io.IOException"/>
  3584. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3585. <doc>
  3586. <![CDATA[The specification of this method matches that of
  3587. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  3588. </doc>
  3589. </method>
  3590. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  3591. abstract="false" native="false" synchronized="false"
  3592. static="false" final="false" visibility="public"
  3593. deprecated="not deprecated">
  3594. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3595. <exception name="IOException" type="java.io.IOException"/>
  3596. <doc>
  3597. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  3598. {@link FSLinkResolver}, and differs from the similarly named method
  3599. {@link FileContext#getLinkTarget(Path)}.
  3600. @throws IOException subclass implementations may throw IOException]]>
  3601. </doc>
  3602. </method>
  3603. <method name="setPermission"
  3604. abstract="true" native="false" synchronized="false"
  3605. static="false" final="false" visibility="public"
  3606. deprecated="not deprecated">
  3607. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3608. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3609. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3610. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3611. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3612. <exception name="IOException" type="java.io.IOException"/>
  3613. <doc>
  3614. <![CDATA[The specification of this method matches that of
  3615. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  3616. must be for this file system.]]>
  3617. </doc>
  3618. </method>
  3619. <method name="setOwner"
  3620. abstract="true" native="false" synchronized="false"
  3621. static="false" final="false" visibility="public"
  3622. deprecated="not deprecated">
  3623. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3624. <param name="username" type="java.lang.String"/>
  3625. <param name="groupname" type="java.lang.String"/>
  3626. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3627. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3628. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3629. <exception name="IOException" type="java.io.IOException"/>
  3630. <doc>
  3631. <![CDATA[The specification of this method matches that of
  3632. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  3633. be for this file system.]]>
  3634. </doc>
  3635. </method>
  3636. <method name="setTimes"
  3637. abstract="true" native="false" synchronized="false"
  3638. static="false" final="false" visibility="public"
  3639. deprecated="not deprecated">
  3640. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3641. <param name="mtime" type="long"/>
  3642. <param name="atime" type="long"/>
  3643. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3644. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3645. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3646. <exception name="IOException" type="java.io.IOException"/>
  3647. <doc>
  3648. <![CDATA[The specification of this method matches that of
  3649. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  3650. for this file system.]]>
  3651. </doc>
  3652. </method>
  3653. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3654. abstract="true" native="false" synchronized="false"
  3655. static="false" final="false" visibility="public"
  3656. deprecated="not deprecated">
  3657. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3658. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3659. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3660. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3661. <exception name="IOException" type="java.io.IOException"/>
  3662. <doc>
  3663. <![CDATA[The specification of this method matches that of
  3664. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  3665. this file system.]]>
  3666. </doc>
  3667. </method>
  3668. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3669. abstract="true" native="false" synchronized="false"
  3670. static="false" final="false" visibility="public"
  3671. deprecated="not deprecated">
  3672. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3673. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3674. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3675. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3676. <exception name="IOException" type="java.io.IOException"/>
  3677. <doc>
  3678. <![CDATA[The specification of this method matches that of
  3679. {@link FileContext#getFileStatus(Path)}
  3680. except that an UnresolvedLinkException may be thrown if a symlink is
  3681. encountered in the path.]]>
  3682. </doc>
  3683. </method>
  3684. <method name="access"
  3685. abstract="false" native="false" synchronized="false"
  3686. static="false" final="false" visibility="public"
  3687. deprecated="not deprecated">
  3688. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3689. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  3690. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3691. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3692. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3693. <exception name="IOException" type="java.io.IOException"/>
  3694. <doc>
  3695. <![CDATA[The specification of this method matches that of
  3696. {@link FileContext#access(Path, FsAction)}
  3697. except that an UnresolvedLinkException may be thrown if a symlink is
  3698. encountered in the path.]]>
  3699. </doc>
  3700. </method>
  3701. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  3702. abstract="false" native="false" synchronized="false"
  3703. static="false" final="false" visibility="public"
  3704. deprecated="not deprecated">
  3705. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3706. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3707. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3708. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3709. <exception name="IOException" type="java.io.IOException"/>
  3710. <doc>
  3711. <![CDATA[The specification of this method matches that of
  3712. {@link FileContext#getFileLinkStatus(Path)}
  3713. except that an UnresolvedLinkException may be thrown if a symlink is
  3714. encountered in the path leading up to the final path component.
  3715. If the file system does not support symlinks then the behavior is
  3716. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  3717. </doc>
  3718. </method>
  3719. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3720. abstract="true" native="false" synchronized="false"
  3721. static="false" final="false" visibility="public"
  3722. deprecated="not deprecated">
  3723. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3724. <param name="start" type="long"/>
  3725. <param name="len" type="long"/>
  3726. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3727. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3728. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3729. <exception name="IOException" type="java.io.IOException"/>
  3730. <doc>
  3731. <![CDATA[The specification of this method matches that of
  3732. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  3733. Path f must be for this file system.]]>
  3734. </doc>
  3735. </method>
  3736. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3737. abstract="false" native="false" synchronized="false"
  3738. static="false" final="false" visibility="public"
  3739. deprecated="not deprecated">
  3740. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3741. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3742. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3743. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3744. <exception name="IOException" type="java.io.IOException"/>
  3745. <doc>
  3746. <![CDATA[The specification of this method matches that of
  3747. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  3748. file system.]]>
  3749. </doc>
  3750. </method>
  3751. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3752. abstract="true" native="false" synchronized="false"
  3753. static="false" final="false" visibility="public"
  3754. deprecated="not deprecated">
  3755. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3756. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3757. <exception name="IOException" type="java.io.IOException"/>
  3758. <doc>
  3759. <![CDATA[The specification of this method matches that of
  3760. {@link FileContext#getFsStatus(Path)}.]]>
  3761. </doc>
  3762. </method>
  3763. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  3764. abstract="false" native="false" synchronized="false"
  3765. static="false" final="false" visibility="public"
  3766. deprecated="not deprecated">
  3767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3768. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3769. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3770. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3771. <exception name="IOException" type="java.io.IOException"/>
  3772. <doc>
  3773. <![CDATA[The specification of this method matches that of
  3774. {@link FileContext#listStatus(Path)} except that Path f must be for this
  3775. file system.]]>
  3776. </doc>
  3777. </method>
  3778. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3779. abstract="false" native="false" synchronized="false"
  3780. static="false" final="false" visibility="public"
  3781. deprecated="not deprecated">
  3782. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3783. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3784. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3785. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3786. <exception name="IOException" type="java.io.IOException"/>
  3787. <doc>
  3788. <![CDATA[The specification of this method matches that of
  3789. {@link FileContext#listLocatedStatus(Path)} except that Path f
  3790. must be for this file system.]]>
  3791. </doc>
  3792. </method>
  3793. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3794. abstract="true" 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. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3799. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3800. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3801. <exception name="IOException" type="java.io.IOException"/>
  3802. <doc>
  3803. <![CDATA[The specification of this method matches that of
  3804. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  3805. for this file system.]]>
  3806. </doc>
  3807. </method>
  3808. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  3809. abstract="false" native="false" synchronized="false"
  3810. static="false" final="false" visibility="public"
  3811. deprecated="not deprecated">
  3812. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3813. <exception name="IOException" type="java.io.IOException"/>
  3814. <doc>
  3815. <![CDATA[@return an iterator over the corrupt files under the given path
  3816. (may contain duplicates if a file has more than one corrupt block)
  3817. @throws IOException]]>
  3818. </doc>
  3819. </method>
  3820. <method name="setVerifyChecksum"
  3821. abstract="true" native="false" synchronized="false"
  3822. static="false" final="false" visibility="public"
  3823. deprecated="not deprecated">
  3824. <param name="verifyChecksum" type="boolean"/>
  3825. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3826. <exception name="IOException" type="java.io.IOException"/>
  3827. <doc>
  3828. <![CDATA[The specification of this method matches that of
  3829. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  3830. must be for this file system.]]>
  3831. </doc>
  3832. </method>
  3833. <method name="getCanonicalServiceName" return="java.lang.String"
  3834. abstract="false" native="false" synchronized="false"
  3835. static="false" final="false" visibility="public"
  3836. deprecated="not deprecated">
  3837. <doc>
  3838. <![CDATA[Get a canonical name for this file system.
  3839. @return a URI string that uniquely identifies this file system]]>
  3840. </doc>
  3841. </method>
  3842. <method name="getDelegationTokens" return="java.util.List"
  3843. abstract="false" native="false" synchronized="false"
  3844. static="false" final="false" visibility="public"
  3845. deprecated="not deprecated">
  3846. <param name="renewer" type="java.lang.String"/>
  3847. <exception name="IOException" type="java.io.IOException"/>
  3848. <doc>
  3849. <![CDATA[Get one or more delegation tokens associated with the filesystem. Normally
  3850. a file system returns a single delegation token. A file system that manages
  3851. multiple file systems underneath, could return set of delegation tokens for
  3852. all the file systems it manages
  3853. @param renewer the account name that is allowed to renew the token.
  3854. @return List of delegation tokens.
  3855. If delegation tokens not supported then return a list of size zero.
  3856. @throws IOException]]>
  3857. </doc>
  3858. </method>
  3859. <method name="modifyAclEntries"
  3860. abstract="false" native="false" synchronized="false"
  3861. static="false" final="false" visibility="public"
  3862. deprecated="not deprecated">
  3863. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3864. <param name="aclSpec" type="java.util.List"/>
  3865. <exception name="IOException" type="java.io.IOException"/>
  3866. <doc>
  3867. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  3868. entries or modify the permissions on existing ACL entries. All existing
  3869. ACL entries that are not specified in this call are retained without
  3870. changes. (Modifications are merged into the current ACL.)
  3871. @param path Path to modify
  3872. @param aclSpec List<AclEntry> describing modifications
  3873. @throws IOException if an ACL could not be modified]]>
  3874. </doc>
  3875. </method>
  3876. <method name="removeAclEntries"
  3877. abstract="false" native="false" synchronized="false"
  3878. static="false" final="false" visibility="public"
  3879. deprecated="not deprecated">
  3880. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3881. <param name="aclSpec" type="java.util.List"/>
  3882. <exception name="IOException" type="java.io.IOException"/>
  3883. <doc>
  3884. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  3885. retained.
  3886. @param path Path to modify
  3887. @param aclSpec List<AclEntry> describing entries to remove
  3888. @throws IOException if an ACL could not be modified]]>
  3889. </doc>
  3890. </method>
  3891. <method name="removeDefaultAcl"
  3892. abstract="false" native="false" synchronized="false"
  3893. static="false" final="false" visibility="public"
  3894. deprecated="not deprecated">
  3895. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3896. <exception name="IOException" type="java.io.IOException"/>
  3897. <doc>
  3898. <![CDATA[Removes all default ACL entries from files and directories.
  3899. @param path Path to modify
  3900. @throws IOException if an ACL could not be modified]]>
  3901. </doc>
  3902. </method>
  3903. <method name="removeAcl"
  3904. abstract="false" native="false" synchronized="false"
  3905. static="false" final="false" visibility="public"
  3906. deprecated="not deprecated">
  3907. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3908. <exception name="IOException" type="java.io.IOException"/>
  3909. <doc>
  3910. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  3911. for user, group, and others are retained for compatibility with permission
  3912. bits.
  3913. @param path Path to modify
  3914. @throws IOException if an ACL could not be removed]]>
  3915. </doc>
  3916. </method>
  3917. <method name="setAcl"
  3918. abstract="false" native="false" synchronized="false"
  3919. static="false" final="false" visibility="public"
  3920. deprecated="not deprecated">
  3921. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3922. <param name="aclSpec" type="java.util.List"/>
  3923. <exception name="IOException" type="java.io.IOException"/>
  3924. <doc>
  3925. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  3926. entries.
  3927. @param path Path to modify
  3928. @param aclSpec List<AclEntry> describing modifications, must include entries
  3929. for user, group, and others for compatibility with permission bits.
  3930. @throws IOException if an ACL could not be modified]]>
  3931. </doc>
  3932. </method>
  3933. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  3934. abstract="false" native="false" synchronized="false"
  3935. static="false" final="false" visibility="public"
  3936. deprecated="not deprecated">
  3937. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3938. <exception name="IOException" type="java.io.IOException"/>
  3939. <doc>
  3940. <![CDATA[Gets the ACLs of files and directories.
  3941. @param path Path to get
  3942. @return RemoteIterator<AclStatus> which returns each AclStatus
  3943. @throws IOException if an ACL could not be read]]>
  3944. </doc>
  3945. </method>
  3946. <method name="setXAttr"
  3947. abstract="false" native="false" synchronized="false"
  3948. static="false" final="false" visibility="public"
  3949. deprecated="not deprecated">
  3950. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3951. <param name="name" type="java.lang.String"/>
  3952. <param name="value" type="byte[]"/>
  3953. <exception name="IOException" type="java.io.IOException"/>
  3954. <doc>
  3955. <![CDATA[Set an xattr of a file or directory.
  3956. The name must be prefixed with the namespace followed by ".". For example,
  3957. "user.attr".
  3958. <p/>
  3959. Refer to the HDFS extended attributes user documentation for details.
  3960. @param path Path to modify
  3961. @param name xattr name.
  3962. @param value xattr value.
  3963. @throws IOException]]>
  3964. </doc>
  3965. </method>
  3966. <method name="setXAttr"
  3967. abstract="false" native="false" synchronized="false"
  3968. static="false" final="false" visibility="public"
  3969. deprecated="not deprecated">
  3970. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3971. <param name="name" type="java.lang.String"/>
  3972. <param name="value" type="byte[]"/>
  3973. <param name="flag" type="java.util.EnumSet"/>
  3974. <exception name="IOException" type="java.io.IOException"/>
  3975. <doc>
  3976. <![CDATA[Set an xattr of a file or directory.
  3977. The name must be prefixed with the namespace followed by ".". For example,
  3978. "user.attr".
  3979. <p/>
  3980. Refer to the HDFS extended attributes user documentation for details.
  3981. @param path Path to modify
  3982. @param name xattr name.
  3983. @param value xattr value.
  3984. @param flag xattr set flag
  3985. @throws IOException]]>
  3986. </doc>
  3987. </method>
  3988. <method name="getXAttr" return="byte[]"
  3989. abstract="false" native="false" synchronized="false"
  3990. static="false" final="false" visibility="public"
  3991. deprecated="not deprecated">
  3992. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3993. <param name="name" type="java.lang.String"/>
  3994. <exception name="IOException" type="java.io.IOException"/>
  3995. <doc>
  3996. <![CDATA[Get an xattr for a file or directory.
  3997. The name must be prefixed with the namespace followed by ".". For example,
  3998. "user.attr".
  3999. <p/>
  4000. Refer to the HDFS extended attributes user documentation for details.
  4001. @param path Path to get extended attribute
  4002. @param name xattr name.
  4003. @return byte[] xattr value.
  4004. @throws IOException]]>
  4005. </doc>
  4006. </method>
  4007. <method name="getXAttrs" return="java.util.Map"
  4008. abstract="false" native="false" synchronized="false"
  4009. static="false" final="false" visibility="public"
  4010. deprecated="not deprecated">
  4011. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4012. <exception name="IOException" type="java.io.IOException"/>
  4013. <doc>
  4014. <![CDATA[Get all of the xattrs for a file or directory.
  4015. Only those xattrs for which the logged-in user has permissions to view
  4016. are returned.
  4017. <p/>
  4018. Refer to the HDFS extended attributes user documentation for details.
  4019. @param path Path to get extended attributes
  4020. @return Map<String, byte[]> describing the XAttrs of the file or directory
  4021. @throws IOException]]>
  4022. </doc>
  4023. </method>
  4024. <method name="getXAttrs" return="java.util.Map"
  4025. abstract="false" native="false" synchronized="false"
  4026. static="false" final="false" visibility="public"
  4027. deprecated="not deprecated">
  4028. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4029. <param name="names" type="java.util.List"/>
  4030. <exception name="IOException" type="java.io.IOException"/>
  4031. <doc>
  4032. <![CDATA[Get all of the xattrs for a file or directory.
  4033. Only those xattrs for which the logged-in user has permissions to view
  4034. are returned.
  4035. <p/>
  4036. Refer to the HDFS extended attributes user documentation for details.
  4037. @param path Path to get extended attributes
  4038. @param names XAttr names.
  4039. @return Map<String, byte[]> describing the XAttrs of the file or directory
  4040. @throws IOException]]>
  4041. </doc>
  4042. </method>
  4043. <method name="listXAttrs" return="java.util.List"
  4044. abstract="false" native="false" synchronized="false"
  4045. static="false" final="false" visibility="public"
  4046. deprecated="not deprecated">
  4047. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4048. <exception name="IOException" type="java.io.IOException"/>
  4049. <doc>
  4050. <![CDATA[Get all of the xattr names for a file or directory.
  4051. Only the xattr names for which the logged-in user has permissions to view
  4052. are returned.
  4053. <p/>
  4054. Refer to the HDFS extended attributes user documentation for details.
  4055. @param path Path to get extended attributes
  4056. @return Map<String, byte[]> describing the XAttrs of the file or directory
  4057. @throws IOException]]>
  4058. </doc>
  4059. </method>
  4060. <method name="removeXAttr"
  4061. abstract="false" native="false" synchronized="false"
  4062. static="false" final="false" visibility="public"
  4063. deprecated="not deprecated">
  4064. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4065. <param name="name" type="java.lang.String"/>
  4066. <exception name="IOException" type="java.io.IOException"/>
  4067. <doc>
  4068. <![CDATA[Remove an xattr of a file or directory.
  4069. The name must be prefixed with the namespace followed by ".". For example,
  4070. "user.attr".
  4071. <p/>
  4072. Refer to the HDFS extended attributes user documentation for details.
  4073. @param path Path to remove extended attribute
  4074. @param name xattr name
  4075. @throws IOException]]>
  4076. </doc>
  4077. </method>
  4078. <method name="hashCode" return="int"
  4079. abstract="false" native="false" synchronized="false"
  4080. static="false" final="false" visibility="public"
  4081. deprecated="not deprecated">
  4082. </method>
  4083. <method name="equals" return="boolean"
  4084. abstract="false" native="false" synchronized="false"
  4085. static="false" final="false" visibility="public"
  4086. deprecated="not deprecated">
  4087. <param name="other" type="java.lang.Object"/>
  4088. </method>
  4089. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  4090. transient="false" volatile="false"
  4091. static="false" final="false" visibility="protected"
  4092. deprecated="not deprecated">
  4093. <doc>
  4094. <![CDATA[The statistics for this file system.]]>
  4095. </doc>
  4096. </field>
  4097. <doc>
  4098. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  4099. (analogous to the VFS of Unix). Applications do not access this class;
  4100. instead they access files across all file systems using {@link FileContext}.
  4101. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  4102. matches the "this" file system (ie same scheme and authority)
  4103. or a Slash-relative name that is assumed to be relative
  4104. to the root of the "this" file system .]]>
  4105. </doc>
  4106. </class>
  4107. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  4108. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  4109. <class name="AvroFSInput" extends="java.lang.Object"
  4110. abstract="false"
  4111. static="false" final="false" visibility="public"
  4112. deprecated="not deprecated">
  4113. <implements name="java.io.Closeable"/>
  4114. <implements name="org.apache.avro.file.SeekableInput"/>
  4115. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  4116. static="false" final="false" visibility="public"
  4117. deprecated="not deprecated">
  4118. <doc>
  4119. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  4120. </doc>
  4121. </constructor>
  4122. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  4123. static="false" final="false" visibility="public"
  4124. deprecated="not deprecated">
  4125. <exception name="IOException" type="java.io.IOException"/>
  4126. <doc>
  4127. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  4128. </doc>
  4129. </constructor>
  4130. <method name="length" return="long"
  4131. abstract="false" native="false" synchronized="false"
  4132. static="false" final="false" visibility="public"
  4133. deprecated="not deprecated">
  4134. </method>
  4135. <method name="read" return="int"
  4136. abstract="false" native="false" synchronized="false"
  4137. static="false" final="false" visibility="public"
  4138. deprecated="not deprecated">
  4139. <param name="b" type="byte[]"/>
  4140. <param name="off" type="int"/>
  4141. <param name="len" type="int"/>
  4142. <exception name="IOException" type="java.io.IOException"/>
  4143. </method>
  4144. <method name="seek"
  4145. abstract="false" native="false" synchronized="false"
  4146. static="false" final="false" visibility="public"
  4147. deprecated="not deprecated">
  4148. <param name="p" type="long"/>
  4149. <exception name="IOException" type="java.io.IOException"/>
  4150. </method>
  4151. <method name="tell" return="long"
  4152. abstract="false" native="false" synchronized="false"
  4153. static="false" final="false" visibility="public"
  4154. deprecated="not deprecated">
  4155. <exception name="IOException" type="java.io.IOException"/>
  4156. </method>
  4157. <method name="close"
  4158. abstract="false" native="false" synchronized="false"
  4159. static="false" final="false" visibility="public"
  4160. deprecated="not deprecated">
  4161. <exception name="IOException" type="java.io.IOException"/>
  4162. </method>
  4163. <doc>
  4164. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  4165. </doc>
  4166. </class>
  4167. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  4168. <!-- start class org.apache.hadoop.fs.BatchedRemoteIterator -->
  4169. <class name="BatchedRemoteIterator" extends="java.lang.Object"
  4170. abstract="true"
  4171. static="false" final="false" visibility="public"
  4172. deprecated="not deprecated">
  4173. <implements name="org.apache.hadoop.fs.RemoteIterator"/>
  4174. <constructor name="BatchedRemoteIterator" type="K"
  4175. static="false" final="false" visibility="public"
  4176. deprecated="not deprecated">
  4177. </constructor>
  4178. <method name="makeRequest" return="org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries"
  4179. abstract="true" native="false" synchronized="false"
  4180. static="false" final="false" visibility="public"
  4181. deprecated="not deprecated">
  4182. <param name="prevKey" type="K"/>
  4183. <exception name="IOException" type="java.io.IOException"/>
  4184. <doc>
  4185. <![CDATA[Perform the actual remote request.
  4186. @param prevKey The key to send.
  4187. @return A list of replies.]]>
  4188. </doc>
  4189. </method>
  4190. <method name="hasNext" return="boolean"
  4191. abstract="false" native="false" synchronized="false"
  4192. static="false" final="false" visibility="public"
  4193. deprecated="not deprecated">
  4194. <exception name="IOException" type="java.io.IOException"/>
  4195. </method>
  4196. <method name="elementToPrevKey" return="K"
  4197. abstract="true" native="false" synchronized="false"
  4198. static="false" final="false" visibility="public"
  4199. deprecated="not deprecated">
  4200. <param name="element" type="E"/>
  4201. <doc>
  4202. <![CDATA[Return the next list key associated with an element.]]>
  4203. </doc>
  4204. </method>
  4205. <method name="next" return="E"
  4206. abstract="false" native="false" synchronized="false"
  4207. static="false" final="false" visibility="public"
  4208. deprecated="not deprecated">
  4209. <exception name="IOException" type="java.io.IOException"/>
  4210. </method>
  4211. <doc>
  4212. <![CDATA[A RemoteIterator that fetches elements in batches.]]>
  4213. </doc>
  4214. </class>
  4215. <!-- end class org.apache.hadoop.fs.BatchedRemoteIterator -->
  4216. <!-- start interface org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries -->
  4217. <interface name="BatchedRemoteIterator.BatchedEntries" abstract="true"
  4218. static="true" final="false" visibility="public"
  4219. deprecated="not deprecated">
  4220. <method name="get" return="E"
  4221. abstract="false" native="false" synchronized="false"
  4222. static="false" final="false" visibility="public"
  4223. deprecated="not deprecated">
  4224. <param name="i" type="int"/>
  4225. </method>
  4226. <method name="size" return="int"
  4227. abstract="false" native="false" synchronized="false"
  4228. static="false" final="false" visibility="public"
  4229. deprecated="not deprecated">
  4230. </method>
  4231. <method name="hasMore" return="boolean"
  4232. abstract="false" native="false" synchronized="false"
  4233. static="false" final="false" visibility="public"
  4234. deprecated="not deprecated">
  4235. </method>
  4236. </interface>
  4237. <!-- end interface org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries -->
  4238. <!-- start class org.apache.hadoop.fs.BatchedRemoteIterator.BatchedListEntries -->
  4239. <class name="BatchedRemoteIterator.BatchedListEntries" extends="java.lang.Object"
  4240. abstract="false"
  4241. static="true" final="false" visibility="public"
  4242. deprecated="not deprecated">
  4243. <implements name="org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries"/>
  4244. <constructor name="BatchedRemoteIterator.BatchedListEntries" type="java.util.List, boolean"
  4245. static="false" final="false" visibility="public"
  4246. deprecated="not deprecated">
  4247. </constructor>
  4248. <method name="get" return="E"
  4249. abstract="false" native="false" synchronized="false"
  4250. static="false" final="false" visibility="public"
  4251. deprecated="not deprecated">
  4252. <param name="i" type="int"/>
  4253. </method>
  4254. <method name="size" return="int"
  4255. abstract="false" native="false" synchronized="false"
  4256. static="false" final="false" visibility="public"
  4257. deprecated="not deprecated">
  4258. </method>
  4259. <method name="hasMore" return="boolean"
  4260. abstract="false" native="false" synchronized="false"
  4261. static="false" final="false" visibility="public"
  4262. deprecated="not deprecated">
  4263. </method>
  4264. </class>
  4265. <!-- end class org.apache.hadoop.fs.BatchedRemoteIterator.BatchedListEntries -->
  4266. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  4267. <class name="BlockLocation" extends="java.lang.Object"
  4268. abstract="false"
  4269. static="false" final="false" visibility="public"
  4270. deprecated="not deprecated">
  4271. <constructor name="BlockLocation"
  4272. static="false" final="false" visibility="public"
  4273. deprecated="not deprecated">
  4274. <doc>
  4275. <![CDATA[Default Constructor]]>
  4276. </doc>
  4277. </constructor>
  4278. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  4279. static="false" final="false" visibility="public"
  4280. deprecated="not deprecated">
  4281. <doc>
  4282. <![CDATA[Copy constructor]]>
  4283. </doc>
  4284. </constructor>
  4285. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  4286. static="false" final="false" visibility="public"
  4287. deprecated="not deprecated">
  4288. <doc>
  4289. <![CDATA[Constructor with host, name, offset and length]]>
  4290. </doc>
  4291. </constructor>
  4292. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  4293. static="false" final="false" visibility="public"
  4294. deprecated="not deprecated">
  4295. <doc>
  4296. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  4297. </doc>
  4298. </constructor>
  4299. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  4300. static="false" final="false" visibility="public"
  4301. deprecated="not deprecated">
  4302. <doc>
  4303. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  4304. </doc>
  4305. </constructor>
  4306. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  4307. static="false" final="false" visibility="public"
  4308. deprecated="not deprecated">
  4309. <doc>
  4310. <![CDATA[Constructor with host, name, network topology, offset, length
  4311. and corrupt flag]]>
  4312. </doc>
  4313. </constructor>
  4314. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  4315. static="false" final="false" visibility="public"
  4316. deprecated="not deprecated">
  4317. </constructor>
  4318. <method name="getHosts" return="java.lang.String[]"
  4319. abstract="false" native="false" synchronized="false"
  4320. static="false" final="false" visibility="public"
  4321. deprecated="not deprecated">
  4322. <exception name="IOException" type="java.io.IOException"/>
  4323. <doc>
  4324. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  4325. </doc>
  4326. </method>
  4327. <method name="getCachedHosts" return="java.lang.String[]"
  4328. abstract="false" native="false" synchronized="false"
  4329. static="false" final="false" visibility="public"
  4330. deprecated="not deprecated">
  4331. <doc>
  4332. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  4333. </doc>
  4334. </method>
  4335. <method name="getNames" return="java.lang.String[]"
  4336. abstract="false" native="false" synchronized="false"
  4337. static="false" final="false" visibility="public"
  4338. deprecated="not deprecated">
  4339. <exception name="IOException" type="java.io.IOException"/>
  4340. <doc>
  4341. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  4342. </doc>
  4343. </method>
  4344. <method name="getTopologyPaths" return="java.lang.String[]"
  4345. abstract="false" native="false" synchronized="false"
  4346. static="false" final="false" visibility="public"
  4347. deprecated="not deprecated">
  4348. <exception name="IOException" type="java.io.IOException"/>
  4349. <doc>
  4350. <![CDATA[Get the list of network topology paths for each of the hosts.
  4351. The last component of the path is the "name" (IP:xferPort).]]>
  4352. </doc>
  4353. </method>
  4354. <method name="getOffset" return="long"
  4355. abstract="false" native="false" synchronized="false"
  4356. static="false" final="false" visibility="public"
  4357. deprecated="not deprecated">
  4358. <doc>
  4359. <![CDATA[Get the start offset of file associated with this block]]>
  4360. </doc>
  4361. </method>
  4362. <method name="getLength" return="long"
  4363. abstract="false" native="false" synchronized="false"
  4364. static="false" final="false" visibility="public"
  4365. deprecated="not deprecated">
  4366. <doc>
  4367. <![CDATA[Get the length of the block]]>
  4368. </doc>
  4369. </method>
  4370. <method name="isCorrupt" return="boolean"
  4371. abstract="false" native="false" synchronized="false"
  4372. static="false" final="false" visibility="public"
  4373. deprecated="not deprecated">
  4374. <doc>
  4375. <![CDATA[Get the corrupt flag.]]>
  4376. </doc>
  4377. </method>
  4378. <method name="setOffset"
  4379. abstract="false" native="false" synchronized="false"
  4380. static="false" final="false" visibility="public"
  4381. deprecated="not deprecated">
  4382. <param name="offset" type="long"/>
  4383. <doc>
  4384. <![CDATA[Set the start offset of file associated with this block]]>
  4385. </doc>
  4386. </method>
  4387. <method name="setLength"
  4388. abstract="false" native="false" synchronized="false"
  4389. static="false" final="false" visibility="public"
  4390. deprecated="not deprecated">
  4391. <param name="length" type="long"/>
  4392. <doc>
  4393. <![CDATA[Set the length of block]]>
  4394. </doc>
  4395. </method>
  4396. <method name="setCorrupt"
  4397. abstract="false" native="false" synchronized="false"
  4398. static="false" final="false" visibility="public"
  4399. deprecated="not deprecated">
  4400. <param name="corrupt" type="boolean"/>
  4401. <doc>
  4402. <![CDATA[Set the corrupt flag.]]>
  4403. </doc>
  4404. </method>
  4405. <method name="setHosts"
  4406. abstract="false" native="false" synchronized="false"
  4407. static="false" final="false" visibility="public"
  4408. deprecated="not deprecated">
  4409. <param name="hosts" type="java.lang.String[]"/>
  4410. <exception name="IOException" type="java.io.IOException"/>
  4411. <doc>
  4412. <![CDATA[Set the hosts hosting this block]]>
  4413. </doc>
  4414. </method>
  4415. <method name="setCachedHosts"
  4416. abstract="false" native="false" synchronized="false"
  4417. static="false" final="false" visibility="public"
  4418. deprecated="not deprecated">
  4419. <param name="cachedHosts" type="java.lang.String[]"/>
  4420. <doc>
  4421. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  4422. </doc>
  4423. </method>
  4424. <method name="setNames"
  4425. abstract="false" native="false" synchronized="false"
  4426. static="false" final="false" visibility="public"
  4427. deprecated="not deprecated">
  4428. <param name="names" type="java.lang.String[]"/>
  4429. <exception name="IOException" type="java.io.IOException"/>
  4430. <doc>
  4431. <![CDATA[Set the names (host:port) hosting this block]]>
  4432. </doc>
  4433. </method>
  4434. <method name="setTopologyPaths"
  4435. abstract="false" native="false" synchronized="false"
  4436. static="false" final="false" visibility="public"
  4437. deprecated="not deprecated">
  4438. <param name="topologyPaths" type="java.lang.String[]"/>
  4439. <exception name="IOException" type="java.io.IOException"/>
  4440. <doc>
  4441. <![CDATA[Set the network topology paths of the hosts]]>
  4442. </doc>
  4443. </method>
  4444. <method name="toString" return="java.lang.String"
  4445. abstract="false" native="false" synchronized="false"
  4446. static="false" final="false" visibility="public"
  4447. deprecated="not deprecated">
  4448. </method>
  4449. <doc>
  4450. <![CDATA[Represents the network location of a block, information about the hosts
  4451. that contain block replicas, and other block metadata (E.g. the file
  4452. offset associated with the block, length, whether it is corrupt, etc).]]>
  4453. </doc>
  4454. </class>
  4455. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  4456. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  4457. <interface name="ByteBufferReadable" abstract="true"
  4458. static="false" final="false" visibility="public"
  4459. deprecated="not deprecated">
  4460. <method name="read" return="int"
  4461. abstract="false" native="false" synchronized="false"
  4462. static="false" final="false" visibility="public"
  4463. deprecated="not deprecated">
  4464. <param name="buf" type="java.nio.ByteBuffer"/>
  4465. <exception name="IOException" type="java.io.IOException"/>
  4466. <doc>
  4467. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  4468. buf.limit(..) to control the size of the desired read.
  4469. <p/>
  4470. After a successful call, buf.position() and buf.limit() should be
  4471. unchanged, and therefore any data can be immediately read from buf.
  4472. buf.mark() may be cleared or updated.
  4473. <p/>
  4474. In the case of an exception, the values of buf.position() and buf.limit()
  4475. are undefined, and callers should be prepared to recover from this
  4476. eventuality.
  4477. <p/>
  4478. Many implementations will throw {@link UnsupportedOperationException}, so
  4479. callers that are not confident in support for this method from the
  4480. underlying filesystem should be prepared to handle that exception.
  4481. <p/>
  4482. Implementations should treat 0-length requests as legitimate, and must not
  4483. signal an error upon their receipt.
  4484. @param buf
  4485. the ByteBuffer to receive the results of the read operation. Up to
  4486. buf.limit() - buf.position() bytes may be read.
  4487. @return the number of bytes available to read from buf
  4488. @throws IOException
  4489. if there is some error performing the read]]>
  4490. </doc>
  4491. </method>
  4492. <doc>
  4493. <![CDATA[Implementers of this interface provide a read API that writes to a
  4494. ByteBuffer, not a byte[].]]>
  4495. </doc>
  4496. </interface>
  4497. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  4498. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  4499. <interface name="CanSetDropBehind" abstract="true"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. <method name="setDropBehind"
  4503. abstract="false" native="false" synchronized="false"
  4504. static="false" final="false" visibility="public"
  4505. deprecated="not deprecated">
  4506. <param name="dropCache" type="java.lang.Boolean"/>
  4507. <exception name="IOException" type="java.io.IOException"/>
  4508. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4509. <doc>
  4510. <![CDATA[Configure whether the stream should drop the cache.
  4511. @param dropCache Whether to drop the cache. null means to use the
  4512. default value.
  4513. @throws IOException If there was an error changing the dropBehind
  4514. setting.
  4515. UnsupportedOperationException If this stream doesn't support
  4516. setting the drop-behind.]]>
  4517. </doc>
  4518. </method>
  4519. </interface>
  4520. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  4521. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  4522. <interface name="CanSetReadahead" abstract="true"
  4523. static="false" final="false" visibility="public"
  4524. deprecated="not deprecated">
  4525. <method name="setReadahead"
  4526. abstract="false" native="false" synchronized="false"
  4527. static="false" final="false" visibility="public"
  4528. deprecated="not deprecated">
  4529. <param name="readahead" type="java.lang.Long"/>
  4530. <exception name="IOException" type="java.io.IOException"/>
  4531. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4532. <doc>
  4533. <![CDATA[Set the readahead on this stream.
  4534. @param readahead The readahead to use. null means to use the default.
  4535. @throws IOException If there was an error changing the dropBehind
  4536. setting.
  4537. UnsupportedOperationException If this stream doesn't support
  4538. setting readahead.]]>
  4539. </doc>
  4540. </method>
  4541. </interface>
  4542. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  4543. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  4544. <class name="ChecksumException" extends="java.io.IOException"
  4545. abstract="false"
  4546. static="false" final="false" visibility="public"
  4547. deprecated="not deprecated">
  4548. <constructor name="ChecksumException" type="java.lang.String, long"
  4549. static="false" final="false" visibility="public"
  4550. deprecated="not deprecated">
  4551. </constructor>
  4552. <method name="getPos" return="long"
  4553. abstract="false" native="false" synchronized="false"
  4554. static="false" final="false" visibility="public"
  4555. deprecated="not deprecated">
  4556. </method>
  4557. <doc>
  4558. <![CDATA[Thrown for checksum errors.]]>
  4559. </doc>
  4560. </class>
  4561. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  4562. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  4563. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  4564. abstract="true"
  4565. static="false" final="false" visibility="public"
  4566. deprecated="not deprecated">
  4567. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4568. static="false" final="false" visibility="public"
  4569. deprecated="not deprecated">
  4570. </constructor>
  4571. <method name="getApproxChkSumLength" return="double"
  4572. abstract="false" native="false" synchronized="false"
  4573. static="true" final="false" visibility="public"
  4574. deprecated="not deprecated">
  4575. <param name="size" type="long"/>
  4576. </method>
  4577. <method name="setConf"
  4578. abstract="false" native="false" synchronized="false"
  4579. static="false" final="false" visibility="public"
  4580. deprecated="not deprecated">
  4581. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4582. </method>
  4583. <method name="setVerifyChecksum"
  4584. abstract="false" native="false" synchronized="false"
  4585. static="false" final="false" visibility="public"
  4586. deprecated="not deprecated">
  4587. <param name="verifyChecksum" type="boolean"/>
  4588. <doc>
  4589. <![CDATA[Set whether to verify checksum.]]>
  4590. </doc>
  4591. </method>
  4592. <method name="setWriteChecksum"
  4593. abstract="false" native="false" synchronized="false"
  4594. static="false" final="false" visibility="public"
  4595. deprecated="not deprecated">
  4596. <param name="writeChecksum" type="boolean"/>
  4597. </method>
  4598. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  4599. abstract="false" native="false" synchronized="false"
  4600. static="false" final="false" visibility="public"
  4601. deprecated="not deprecated">
  4602. <doc>
  4603. <![CDATA[get the raw file system]]>
  4604. </doc>
  4605. </method>
  4606. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  4607. abstract="false" native="false" synchronized="false"
  4608. static="false" final="false" visibility="public"
  4609. deprecated="not deprecated">
  4610. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4611. <doc>
  4612. <![CDATA[Return the name of the checksum file associated with a file.]]>
  4613. </doc>
  4614. </method>
  4615. <method name="isChecksumFile" return="boolean"
  4616. abstract="false" native="false" synchronized="false"
  4617. static="true" final="false" visibility="public"
  4618. deprecated="not deprecated">
  4619. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4620. <doc>
  4621. <![CDATA[Return true iff file is a checksum file name.]]>
  4622. </doc>
  4623. </method>
  4624. <method name="getChecksumFileLength" return="long"
  4625. abstract="false" native="false" synchronized="false"
  4626. static="false" final="false" visibility="public"
  4627. deprecated="not deprecated">
  4628. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4629. <param name="fileSize" type="long"/>
  4630. <doc>
  4631. <![CDATA[Return the length of the checksum file given the size of the
  4632. actual file.]]>
  4633. </doc>
  4634. </method>
  4635. <method name="getBytesPerSum" return="int"
  4636. abstract="false" native="false" synchronized="false"
  4637. static="false" final="false" visibility="public"
  4638. deprecated="not deprecated">
  4639. <doc>
  4640. <![CDATA[Return the bytes Per Checksum]]>
  4641. </doc>
  4642. </method>
  4643. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4644. abstract="false" native="false" synchronized="false"
  4645. static="false" final="false" visibility="public"
  4646. deprecated="not deprecated">
  4647. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4648. <param name="bufferSize" type="int"/>
  4649. <exception name="IOException" type="java.io.IOException"/>
  4650. <doc>
  4651. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4652. @param f the file name to open
  4653. @param bufferSize the size of the buffer to be used.]]>
  4654. </doc>
  4655. </method>
  4656. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4657. abstract="false" native="false" synchronized="false"
  4658. static="false" final="false" visibility="public"
  4659. deprecated="not deprecated">
  4660. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4661. <param name="bufferSize" type="int"/>
  4662. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4663. <exception name="IOException" type="java.io.IOException"/>
  4664. </method>
  4665. <method name="getChecksumLength" return="long"
  4666. abstract="false" native="false" synchronized="false"
  4667. static="true" final="false" visibility="public"
  4668. deprecated="not deprecated">
  4669. <param name="size" type="long"/>
  4670. <param name="bytesPerSum" type="int"/>
  4671. <doc>
  4672. <![CDATA[Calculated the length of the checksum file in bytes.
  4673. @param size the length of the data file in bytes
  4674. @param bytesPerSum the number of bytes in a checksum block
  4675. @return the number of bytes in the checksum file]]>
  4676. </doc>
  4677. </method>
  4678. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4679. abstract="false" native="false" synchronized="false"
  4680. static="false" final="false" visibility="public"
  4681. deprecated="not deprecated">
  4682. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4683. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4684. <param name="overwrite" type="boolean"/>
  4685. <param name="bufferSize" type="int"/>
  4686. <param name="replication" type="short"/>
  4687. <param name="blockSize" type="long"/>
  4688. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4689. <exception name="IOException" type="java.io.IOException"/>
  4690. </method>
  4691. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  4692. abstract="false" native="false" synchronized="false"
  4693. static="false" final="false" visibility="public"
  4694. deprecated="not deprecated">
  4695. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4696. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4697. <param name="overwrite" type="boolean"/>
  4698. <param name="bufferSize" type="int"/>
  4699. <param name="replication" type="short"/>
  4700. <param name="blockSize" type="long"/>
  4701. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4702. <exception name="IOException" type="java.io.IOException"/>
  4703. </method>
  4704. <method name="setReplication" return="boolean"
  4705. abstract="false" native="false" synchronized="false"
  4706. static="false" final="false" visibility="public"
  4707. deprecated="not deprecated">
  4708. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4709. <param name="replication" type="short"/>
  4710. <exception name="IOException" type="java.io.IOException"/>
  4711. <doc>
  4712. <![CDATA[Set replication for an existing file.
  4713. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  4714. @param src file name
  4715. @param replication new replication
  4716. @throws IOException
  4717. @return true if successful;
  4718. false if file does not exist or is a directory]]>
  4719. </doc>
  4720. </method>
  4721. <method name="rename" return="boolean"
  4722. abstract="false" native="false" synchronized="false"
  4723. static="false" final="false" visibility="public"
  4724. deprecated="not deprecated">
  4725. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4726. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4727. <exception name="IOException" type="java.io.IOException"/>
  4728. <doc>
  4729. <![CDATA[Rename files/dirs]]>
  4730. </doc>
  4731. </method>
  4732. <method name="delete" return="boolean"
  4733. abstract="false" native="false" synchronized="false"
  4734. static="false" final="false" visibility="public"
  4735. deprecated="not deprecated">
  4736. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4737. <param name="recursive" type="boolean"/>
  4738. <exception name="IOException" type="java.io.IOException"/>
  4739. <doc>
  4740. <![CDATA[Implement the delete(Path, boolean) in checksum
  4741. file system.]]>
  4742. </doc>
  4743. </method>
  4744. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4745. abstract="false" native="false" synchronized="false"
  4746. static="false" final="false" visibility="public"
  4747. deprecated="not deprecated">
  4748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4749. <exception name="IOException" type="java.io.IOException"/>
  4750. <doc>
  4751. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4752. a directory.
  4753. @param f
  4754. given path
  4755. @return the statuses of the files/directories in the given path
  4756. @throws IOException]]>
  4757. </doc>
  4758. </method>
  4759. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  4760. abstract="false" native="false" synchronized="false"
  4761. static="false" final="false" visibility="public"
  4762. deprecated="not deprecated">
  4763. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4764. <exception name="IOException" type="java.io.IOException"/>
  4765. <doc>
  4766. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4767. a directory.
  4768. @param f
  4769. given path
  4770. @return the statuses of the files/directories in the given patch
  4771. @throws IOException]]>
  4772. </doc>
  4773. </method>
  4774. <method name="mkdirs" return="boolean"
  4775. abstract="false" native="false" synchronized="false"
  4776. static="false" final="false" visibility="public"
  4777. deprecated="not deprecated">
  4778. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4779. <exception name="IOException" type="java.io.IOException"/>
  4780. </method>
  4781. <method name="copyFromLocalFile"
  4782. abstract="false" native="false" synchronized="false"
  4783. static="false" final="false" visibility="public"
  4784. deprecated="not deprecated">
  4785. <param name="delSrc" type="boolean"/>
  4786. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4787. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4788. <exception name="IOException" type="java.io.IOException"/>
  4789. </method>
  4790. <method name="copyToLocalFile"
  4791. abstract="false" native="false" synchronized="false"
  4792. static="false" final="false" visibility="public"
  4793. deprecated="not deprecated">
  4794. <param name="delSrc" type="boolean"/>
  4795. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4796. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4797. <exception name="IOException" type="java.io.IOException"/>
  4798. <doc>
  4799. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4800. Copy it from FS control to the local dst name.]]>
  4801. </doc>
  4802. </method>
  4803. <method name="copyToLocalFile"
  4804. abstract="false" native="false" synchronized="false"
  4805. static="false" final="false" visibility="public"
  4806. deprecated="not deprecated">
  4807. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4808. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4809. <param name="copyCrc" type="boolean"/>
  4810. <exception name="IOException" type="java.io.IOException"/>
  4811. <doc>
  4812. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4813. Copy it from FS control to the local dst name.
  4814. If src and dst are directories, the copyCrc parameter
  4815. determines whether to copy CRC files.]]>
  4816. </doc>
  4817. </method>
  4818. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4819. abstract="false" native="false" synchronized="false"
  4820. static="false" final="false" visibility="public"
  4821. deprecated="not deprecated">
  4822. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4823. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4824. <exception name="IOException" type="java.io.IOException"/>
  4825. </method>
  4826. <method name="completeLocalOutput"
  4827. abstract="false" native="false" synchronized="false"
  4828. static="false" final="false" visibility="public"
  4829. deprecated="not deprecated">
  4830. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4831. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4832. <exception name="IOException" type="java.io.IOException"/>
  4833. </method>
  4834. <method name="reportChecksumFailure" return="boolean"
  4835. abstract="false" native="false" synchronized="false"
  4836. static="false" final="false" visibility="public"
  4837. deprecated="not deprecated">
  4838. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4839. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4840. <param name="inPos" type="long"/>
  4841. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4842. <param name="sumsPos" type="long"/>
  4843. <doc>
  4844. <![CDATA[Report a checksum error to the file system.
  4845. @param f the file name containing the error
  4846. @param in the stream open on the file
  4847. @param inPos the position of the beginning of the bad data in the file
  4848. @param sums the stream open on the checksum file
  4849. @param sumsPos the position of the beginning of the bad data in the checksum file
  4850. @return if retry is neccessary]]>
  4851. </doc>
  4852. </method>
  4853. <doc>
  4854. <![CDATA[Abstract Checksumed FileSystem.
  4855. It provide a basic implementation of a Checksumed FileSystem,
  4856. which creates a checksum file for each raw file.
  4857. It generates & verifies checksums at the client side.]]>
  4858. </doc>
  4859. </class>
  4860. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  4861. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4862. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  4863. abstract="false"
  4864. static="false" final="false" visibility="public"
  4865. deprecated="not deprecated">
  4866. <constructor name="CommonConfigurationKeysPublic"
  4867. static="false" final="false" visibility="public"
  4868. deprecated="not deprecated">
  4869. </constructor>
  4870. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  4871. transient="false" volatile="false"
  4872. static="true" final="true" visibility="public"
  4873. deprecated="not deprecated">
  4874. <doc>
  4875. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4876. </doc>
  4877. </field>
  4878. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  4879. transient="false" volatile="false"
  4880. static="true" final="true" visibility="public"
  4881. deprecated="not deprecated">
  4882. <doc>
  4883. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  4884. </doc>
  4885. </field>
  4886. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  4887. transient="false" volatile="false"
  4888. static="true" final="true" visibility="public"
  4889. deprecated="not deprecated">
  4890. <doc>
  4891. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4892. </doc>
  4893. </field>
  4894. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  4895. transient="false" volatile="false"
  4896. static="true" final="true" visibility="public"
  4897. deprecated="not deprecated">
  4898. <doc>
  4899. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  4900. </doc>
  4901. </field>
  4902. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  4903. transient="false" volatile="false"
  4904. static="true" final="true" visibility="public"
  4905. deprecated="not deprecated">
  4906. <doc>
  4907. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4908. </doc>
  4909. </field>
  4910. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  4911. transient="false" volatile="false"
  4912. static="true" final="true" visibility="public"
  4913. deprecated="not deprecated">
  4914. <doc>
  4915. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  4916. </doc>
  4917. </field>
  4918. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  4919. transient="false" volatile="false"
  4920. static="true" final="true" visibility="public"
  4921. deprecated="not deprecated">
  4922. <doc>
  4923. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4924. </doc>
  4925. </field>
  4926. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  4927. transient="false" volatile="false"
  4928. static="true" final="true" visibility="public"
  4929. deprecated="not deprecated">
  4930. <doc>
  4931. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  4932. </doc>
  4933. </field>
  4934. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  4935. transient="false" volatile="false"
  4936. static="true" final="true" visibility="public"
  4937. deprecated="not deprecated">
  4938. <doc>
  4939. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4940. </doc>
  4941. </field>
  4942. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  4943. transient="false" volatile="false"
  4944. static="true" final="true" visibility="public"
  4945. deprecated="not deprecated">
  4946. <doc>
  4947. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  4948. </doc>
  4949. </field>
  4950. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  4951. transient="false" volatile="false"
  4952. static="true" final="true" visibility="public"
  4953. deprecated="not deprecated">
  4954. <doc>
  4955. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4956. </doc>
  4957. </field>
  4958. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  4959. transient="false" volatile="false"
  4960. static="true" final="true" visibility="public"
  4961. deprecated="not deprecated">
  4962. <doc>
  4963. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  4964. </doc>
  4965. </field>
  4966. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4967. transient="false" volatile="false"
  4968. static="true" final="true" visibility="public"
  4969. deprecated="not deprecated">
  4970. <doc>
  4971. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4972. </doc>
  4973. </field>
  4974. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  4975. transient="false" volatile="false"
  4976. static="true" final="true" visibility="public"
  4977. deprecated="not deprecated">
  4978. <doc>
  4979. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4980. </doc>
  4981. </field>
  4982. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  4983. transient="false" volatile="false"
  4984. static="true" final="true" visibility="public"
  4985. deprecated="not deprecated">
  4986. <doc>
  4987. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4988. </doc>
  4989. </field>
  4990. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  4991. transient="false" volatile="false"
  4992. static="true" final="true" visibility="public"
  4993. deprecated="not deprecated">
  4994. <doc>
  4995. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4996. </doc>
  4997. </field>
  4998. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4999. transient="false" volatile="false"
  5000. static="true" final="true" visibility="public"
  5001. deprecated="not deprecated">
  5002. </field>
  5003. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  5004. transient="false" volatile="false"
  5005. static="true" final="true" visibility="public"
  5006. deprecated="not deprecated">
  5007. <doc>
  5008. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5009. </doc>
  5010. </field>
  5011. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  5012. transient="false" volatile="false"
  5013. static="true" final="true" visibility="public"
  5014. deprecated="not deprecated">
  5015. <doc>
  5016. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  5017. </doc>
  5018. </field>
  5019. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  5020. transient="false" volatile="false"
  5021. static="true" final="true" visibility="public"
  5022. deprecated="not deprecated">
  5023. <doc>
  5024. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  5025. </doc>
  5026. </field>
  5027. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  5028. transient="false" volatile="false"
  5029. static="true" final="true" visibility="public"
  5030. deprecated="not deprecated">
  5031. <doc>
  5032. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5033. </doc>
  5034. </field>
  5035. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  5036. transient="false" volatile="false"
  5037. static="true" final="true" visibility="public"
  5038. deprecated="not deprecated">
  5039. <doc>
  5040. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  5041. </doc>
  5042. </field>
  5043. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  5044. transient="false" volatile="false"
  5045. static="true" final="true" visibility="public"
  5046. deprecated="not deprecated">
  5047. <doc>
  5048. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5049. </doc>
  5050. </field>
  5051. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  5052. transient="false" volatile="false"
  5053. static="true" final="true" visibility="public"
  5054. deprecated="not deprecated">
  5055. <doc>
  5056. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5057. </doc>
  5058. </field>
  5059. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  5060. transient="false" volatile="false"
  5061. static="true" final="true" visibility="public"
  5062. deprecated="not deprecated">
  5063. <doc>
  5064. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5065. </doc>
  5066. </field>
  5067. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  5068. transient="false" volatile="false"
  5069. static="true" final="true" visibility="public"
  5070. deprecated="not deprecated">
  5071. <doc>
  5072. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5073. </doc>
  5074. </field>
  5075. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  5076. transient="false" volatile="false"
  5077. static="true" final="true" visibility="public"
  5078. deprecated="not deprecated">
  5079. <doc>
  5080. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  5081. </doc>
  5082. </field>
  5083. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  5084. transient="false" volatile="false"
  5085. static="true" final="true" visibility="public"
  5086. deprecated="not deprecated">
  5087. <doc>
  5088. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5089. </doc>
  5090. </field>
  5091. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  5092. transient="false" volatile="false"
  5093. static="true" final="true" visibility="public"
  5094. deprecated="not deprecated">
  5095. <doc>
  5096. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  5097. </doc>
  5098. </field>
  5099. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  5100. transient="false" volatile="false"
  5101. static="true" final="true" visibility="public"
  5102. deprecated="not deprecated">
  5103. <doc>
  5104. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5105. </doc>
  5106. </field>
  5107. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  5108. transient="false" volatile="false"
  5109. static="true" final="true" visibility="public"
  5110. deprecated="not deprecated">
  5111. <doc>
  5112. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  5113. </doc>
  5114. </field>
  5115. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  5116. transient="false" volatile="false"
  5117. static="true" final="true" visibility="public"
  5118. deprecated="not deprecated">
  5119. <doc>
  5120. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  5121. </doc>
  5122. </field>
  5123. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  5124. transient="false" volatile="false"
  5125. static="true" final="true" visibility="public"
  5126. deprecated="not deprecated">
  5127. <doc>
  5128. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5129. </doc>
  5130. </field>
  5131. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  5132. transient="false" volatile="false"
  5133. static="true" final="true" visibility="public"
  5134. deprecated="not deprecated">
  5135. <doc>
  5136. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  5137. </doc>
  5138. </field>
  5139. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  5140. transient="false" volatile="false"
  5141. static="true" final="true" visibility="public"
  5142. deprecated="not deprecated">
  5143. <doc>
  5144. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5145. </doc>
  5146. </field>
  5147. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  5148. transient="false" volatile="false"
  5149. static="true" final="true" visibility="public"
  5150. deprecated="not deprecated">
  5151. <doc>
  5152. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  5153. </doc>
  5154. </field>
  5155. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  5156. transient="false" volatile="false"
  5157. static="true" final="true" visibility="public"
  5158. deprecated="not deprecated">
  5159. <doc>
  5160. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5161. </doc>
  5162. </field>
  5163. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  5164. transient="false" volatile="false"
  5165. static="true" final="true" visibility="public"
  5166. deprecated="not deprecated">
  5167. <doc>
  5168. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  5169. </doc>
  5170. </field>
  5171. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  5172. transient="false" volatile="false"
  5173. static="true" final="true" visibility="public"
  5174. deprecated="not deprecated">
  5175. <doc>
  5176. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5177. </doc>
  5178. </field>
  5179. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  5180. transient="false" volatile="false"
  5181. static="true" final="true" visibility="public"
  5182. deprecated="not deprecated">
  5183. <doc>
  5184. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  5185. </doc>
  5186. </field>
  5187. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  5188. transient="false" volatile="false"
  5189. static="true" final="true" visibility="public"
  5190. deprecated="not deprecated">
  5191. <doc>
  5192. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5193. </doc>
  5194. </field>
  5195. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  5196. transient="false" volatile="false"
  5197. static="true" final="true" visibility="public"
  5198. deprecated="not deprecated">
  5199. <doc>
  5200. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  5201. </doc>
  5202. </field>
  5203. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  5204. transient="false" volatile="false"
  5205. static="true" final="true" visibility="public"
  5206. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  5207. in mapred-default.xml
  5208. See https://issues.apache.org/jira/browse/HADOOP-6801">
  5209. <doc>
  5210. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  5211. in mapred-default.xml
  5212. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  5213. </doc>
  5214. </field>
  5215. <field name="IO_SORT_MB_DEFAULT" type="int"
  5216. transient="false" volatile="false"
  5217. static="true" final="true" visibility="public"
  5218. deprecated="not deprecated">
  5219. <doc>
  5220. <![CDATA[Default value for IO_SORT_MB_DEFAULT]]>
  5221. </doc>
  5222. </field>
  5223. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  5224. transient="false" volatile="false"
  5225. static="true" final="true" visibility="public"
  5226. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  5227. in mapred-default.xml
  5228. See https://issues.apache.org/jira/browse/HADOOP-6801">
  5229. <doc>
  5230. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  5231. in mapred-default.xml
  5232. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  5233. </doc>
  5234. </field>
  5235. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  5236. transient="false" volatile="false"
  5237. static="true" final="true" visibility="public"
  5238. deprecated="not deprecated">
  5239. <doc>
  5240. <![CDATA[Default value for IO_SORT_FACTOR_DEFAULT]]>
  5241. </doc>
  5242. </field>
  5243. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  5244. transient="false" volatile="false"
  5245. static="true" final="true" visibility="public"
  5246. deprecated="not deprecated">
  5247. <doc>
  5248. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5249. </doc>
  5250. </field>
  5251. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  5252. transient="false" volatile="false"
  5253. static="true" final="true" visibility="public"
  5254. deprecated="not deprecated">
  5255. <doc>
  5256. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5257. </doc>
  5258. </field>
  5259. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  5260. transient="false" volatile="false"
  5261. static="true" final="true" visibility="public"
  5262. deprecated="not deprecated">
  5263. <doc>
  5264. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  5265. </doc>
  5266. </field>
  5267. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5268. transient="false" volatile="false"
  5269. static="true" final="true" visibility="public"
  5270. deprecated="not deprecated">
  5271. <doc>
  5272. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5273. </doc>
  5274. </field>
  5275. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  5276. transient="false" volatile="false"
  5277. static="true" final="true" visibility="public"
  5278. deprecated="not deprecated">
  5279. <doc>
  5280. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  5281. </doc>
  5282. </field>
  5283. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5284. transient="false" volatile="false"
  5285. static="true" final="true" visibility="public"
  5286. deprecated="not deprecated">
  5287. <doc>
  5288. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5289. </doc>
  5290. </field>
  5291. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  5292. transient="false" volatile="false"
  5293. static="true" final="true" visibility="public"
  5294. deprecated="not deprecated">
  5295. <doc>
  5296. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  5297. </doc>
  5298. </field>
  5299. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  5300. transient="false" volatile="false"
  5301. static="true" final="true" visibility="public"
  5302. deprecated="not deprecated">
  5303. <doc>
  5304. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5305. </doc>
  5306. </field>
  5307. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  5308. transient="false" volatile="false"
  5309. static="true" final="true" visibility="public"
  5310. deprecated="not deprecated">
  5311. <doc>
  5312. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  5313. </doc>
  5314. </field>
  5315. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  5316. transient="false" volatile="false"
  5317. static="true" final="true" visibility="public"
  5318. deprecated="not deprecated">
  5319. <doc>
  5320. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5321. </doc>
  5322. </field>
  5323. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  5324. transient="false" volatile="false"
  5325. static="true" final="true" visibility="public"
  5326. deprecated="not deprecated">
  5327. <doc>
  5328. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  5329. </doc>
  5330. </field>
  5331. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  5332. transient="false" volatile="false"
  5333. static="true" final="true" visibility="public"
  5334. deprecated="not deprecated">
  5335. <doc>
  5336. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5337. </doc>
  5338. </field>
  5339. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  5340. transient="false" volatile="false"
  5341. static="true" final="true" visibility="public"
  5342. deprecated="not deprecated">
  5343. <doc>
  5344. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  5345. </doc>
  5346. </field>
  5347. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  5348. transient="false" volatile="false"
  5349. static="true" final="true" visibility="public"
  5350. deprecated="not deprecated">
  5351. <doc>
  5352. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5353. </doc>
  5354. </field>
  5355. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  5356. transient="false" volatile="false"
  5357. static="true" final="true" visibility="public"
  5358. deprecated="not deprecated">
  5359. <doc>
  5360. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  5361. </doc>
  5362. </field>
  5363. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  5364. transient="false" volatile="false"
  5365. static="true" final="true" visibility="public"
  5366. deprecated="not deprecated">
  5367. <doc>
  5368. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5369. </doc>
  5370. </field>
  5371. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  5372. transient="false" volatile="false"
  5373. static="true" final="true" visibility="public"
  5374. deprecated="not deprecated">
  5375. <doc>
  5376. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  5377. </doc>
  5378. </field>
  5379. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  5380. transient="false" volatile="false"
  5381. static="true" final="true" visibility="public"
  5382. deprecated="not deprecated">
  5383. <doc>
  5384. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5385. </doc>
  5386. </field>
  5387. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  5388. transient="false" volatile="false"
  5389. static="true" final="true" visibility="public"
  5390. deprecated="not deprecated">
  5391. <doc>
  5392. <![CDATA[Defalt value for IPC_CLIENT_TCPNODELAY_KEY]]>
  5393. </doc>
  5394. </field>
  5395. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  5396. transient="false" volatile="false"
  5397. static="true" final="true" visibility="public"
  5398. deprecated="not deprecated">
  5399. <doc>
  5400. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5401. </doc>
  5402. </field>
  5403. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  5404. transient="false" volatile="false"
  5405. static="true" final="true" visibility="public"
  5406. deprecated="not deprecated">
  5407. <doc>
  5408. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  5409. </doc>
  5410. </field>
  5411. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  5412. transient="false" volatile="false"
  5413. static="true" final="true" visibility="public"
  5414. deprecated="not deprecated">
  5415. <doc>
  5416. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5417. </doc>
  5418. </field>
  5419. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  5420. transient="false" volatile="false"
  5421. static="true" final="true" visibility="public"
  5422. deprecated="not deprecated">
  5423. <doc>
  5424. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  5425. </doc>
  5426. </field>
  5427. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  5428. transient="false" volatile="false"
  5429. static="true" final="true" visibility="public"
  5430. deprecated="not deprecated">
  5431. <doc>
  5432. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5433. </doc>
  5434. </field>
  5435. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  5436. transient="false" volatile="false"
  5437. static="true" final="true" visibility="public"
  5438. deprecated="not deprecated">
  5439. <doc>
  5440. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  5441. </doc>
  5442. </field>
  5443. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  5444. transient="false" volatile="false"
  5445. static="true" final="true" visibility="public"
  5446. deprecated="not deprecated">
  5447. <doc>
  5448. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5449. </doc>
  5450. </field>
  5451. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  5452. transient="false" volatile="false"
  5453. static="true" final="true" visibility="public"
  5454. deprecated="not deprecated">
  5455. <doc>
  5456. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  5457. </doc>
  5458. </field>
  5459. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  5460. transient="false" volatile="false"
  5461. static="true" final="true" visibility="public"
  5462. deprecated="not deprecated">
  5463. <doc>
  5464. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5465. </doc>
  5466. </field>
  5467. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  5468. transient="false" volatile="false"
  5469. static="true" final="true" visibility="public"
  5470. deprecated="not deprecated">
  5471. </field>
  5472. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  5473. transient="false" volatile="false"
  5474. static="true" final="true" visibility="public"
  5475. deprecated="not deprecated">
  5476. <doc>
  5477. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5478. </doc>
  5479. </field>
  5480. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  5481. transient="false" volatile="false"
  5482. static="true" final="true" visibility="public"
  5483. deprecated="not deprecated">
  5484. <doc>
  5485. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5486. </doc>
  5487. </field>
  5488. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  5489. transient="false" volatile="false"
  5490. static="true" final="true" visibility="public"
  5491. deprecated="not deprecated">
  5492. <doc>
  5493. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  5494. </doc>
  5495. </field>
  5496. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  5497. transient="false" volatile="false"
  5498. static="true" final="true" visibility="public"
  5499. deprecated="not deprecated">
  5500. <doc>
  5501. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5502. </doc>
  5503. </field>
  5504. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  5505. transient="false" volatile="false"
  5506. static="true" final="true" visibility="public"
  5507. deprecated="not deprecated">
  5508. <doc>
  5509. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5510. </doc>
  5511. </field>
  5512. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  5513. transient="false" volatile="false"
  5514. static="true" final="true" visibility="public"
  5515. deprecated="not deprecated">
  5516. <doc>
  5517. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5518. </doc>
  5519. </field>
  5520. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  5521. transient="false" volatile="false"
  5522. static="true" final="true" visibility="public"
  5523. deprecated="not deprecated">
  5524. <doc>
  5525. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5526. </doc>
  5527. </field>
  5528. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  5529. transient="false" volatile="false"
  5530. static="true" final="true" visibility="public"
  5531. deprecated="not deprecated">
  5532. <doc>
  5533. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5534. </doc>
  5535. </field>
  5536. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  5537. transient="false" volatile="false"
  5538. static="true" final="true" visibility="public"
  5539. deprecated="not deprecated">
  5540. <doc>
  5541. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5542. </doc>
  5543. </field>
  5544. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  5545. transient="false" volatile="false"
  5546. static="true" final="true" visibility="public"
  5547. deprecated="not deprecated">
  5548. </field>
  5549. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5550. transient="false" volatile="false"
  5551. static="true" final="true" visibility="public"
  5552. deprecated="not deprecated">
  5553. <doc>
  5554. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5555. </doc>
  5556. </field>
  5557. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  5558. transient="false" volatile="false"
  5559. static="true" final="true" visibility="public"
  5560. deprecated="not deprecated">
  5561. <doc>
  5562. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5563. </doc>
  5564. </field>
  5565. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5566. transient="false" volatile="false"
  5567. static="true" final="true" visibility="public"
  5568. deprecated="not deprecated">
  5569. <doc>
  5570. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5571. </doc>
  5572. </field>
  5573. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5574. transient="false" volatile="false"
  5575. static="true" final="true" visibility="public"
  5576. deprecated="not deprecated">
  5577. <doc>
  5578. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5579. </doc>
  5580. </field>
  5581. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5582. transient="false" volatile="false"
  5583. static="true" final="true" visibility="public"
  5584. deprecated="not deprecated">
  5585. <doc>
  5586. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5587. </doc>
  5588. </field>
  5589. <field name="HADOOP_SSL_ENABLED_KEY" type="java.lang.String"
  5590. transient="false" volatile="false"
  5591. static="true" final="true" visibility="public"
  5592. deprecated="not deprecated">
  5593. </field>
  5594. <field name="HADOOP_SSL_ENABLED_DEFAULT" type="boolean"
  5595. transient="false" volatile="false"
  5596. static="true" final="true" visibility="public"
  5597. deprecated="not deprecated">
  5598. </field>
  5599. <field name="HTTP_POLICY_HTTP_ONLY" type="java.lang.String"
  5600. transient="false" volatile="false"
  5601. static="true" final="true" visibility="public"
  5602. deprecated="not deprecated">
  5603. </field>
  5604. <field name="HTTP_POLICY_HTTPS_ONLY" type="java.lang.String"
  5605. transient="false" volatile="false"
  5606. static="true" final="true" visibility="public"
  5607. deprecated="not deprecated">
  5608. </field>
  5609. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5610. transient="false" volatile="false"
  5611. static="true" final="true" visibility="public"
  5612. deprecated="not deprecated">
  5613. <doc>
  5614. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5615. </doc>
  5616. </field>
  5617. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5618. transient="false" volatile="false"
  5619. static="true" final="true" visibility="public"
  5620. deprecated="not deprecated">
  5621. <doc>
  5622. <![CDATA[Class to override Sasl Properties for a connection]]>
  5623. </doc>
  5624. </field>
  5625. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5626. transient="false" volatile="false"
  5627. static="true" final="true" visibility="public"
  5628. deprecated="not deprecated">
  5629. </field>
  5630. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  5631. transient="false" volatile="false"
  5632. static="true" final="true" visibility="public"
  5633. deprecated="not deprecated">
  5634. <doc>
  5635. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5636. </doc>
  5637. </field>
  5638. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5639. transient="false" volatile="false"
  5640. static="true" final="true" visibility="public"
  5641. deprecated="not deprecated">
  5642. </field>
  5643. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5644. transient="false" volatile="false"
  5645. static="true" final="true" visibility="public"
  5646. deprecated="not deprecated">
  5647. <doc>
  5648. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5649. </doc>
  5650. </field>
  5651. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  5652. transient="false" volatile="false"
  5653. static="true" final="true" visibility="public"
  5654. deprecated="not deprecated">
  5655. <doc>
  5656. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5657. </doc>
  5658. </field>
  5659. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  5660. transient="false" volatile="false"
  5661. static="true" final="true" visibility="public"
  5662. deprecated="not deprecated">
  5663. <doc>
  5664. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5665. </doc>
  5666. </field>
  5667. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5668. transient="false" volatile="false"
  5669. static="true" final="true" visibility="public"
  5670. deprecated="not deprecated">
  5671. <doc>
  5672. <![CDATA[Class to override Impersonation provider]]>
  5673. </doc>
  5674. </field>
  5675. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5676. transient="false" volatile="false"
  5677. static="true" final="true" visibility="public"
  5678. deprecated="not deprecated">
  5679. <doc>
  5680. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5681. </doc>
  5682. </field>
  5683. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5684. transient="false" volatile="false"
  5685. static="true" final="true" visibility="public"
  5686. deprecated="not deprecated">
  5687. <doc>
  5688. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5689. </doc>
  5690. </field>
  5691. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5692. transient="false" volatile="false"
  5693. static="true" final="true" visibility="public"
  5694. deprecated="not deprecated">
  5695. <doc>
  5696. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5697. </doc>
  5698. </field>
  5699. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5700. transient="false" volatile="false"
  5701. static="true" final="true" visibility="public"
  5702. deprecated="not deprecated">
  5703. <doc>
  5704. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5705. </doc>
  5706. </field>
  5707. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5708. transient="false" volatile="false"
  5709. static="true" final="true" visibility="public"
  5710. deprecated="not deprecated">
  5711. <doc>
  5712. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5713. </doc>
  5714. </field>
  5715. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5716. transient="false" volatile="false"
  5717. static="true" final="true" visibility="public"
  5718. deprecated="not deprecated">
  5719. <doc>
  5720. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5721. </doc>
  5722. </field>
  5723. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5724. transient="false" volatile="false"
  5725. static="true" final="true" visibility="public"
  5726. deprecated="not deprecated">
  5727. <doc>
  5728. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5729. </doc>
  5730. </field>
  5731. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5732. transient="false" volatile="false"
  5733. static="true" final="true" visibility="public"
  5734. deprecated="not deprecated">
  5735. <doc>
  5736. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5737. </doc>
  5738. </field>
  5739. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5740. transient="false" volatile="false"
  5741. static="true" final="true" visibility="public"
  5742. deprecated="not deprecated">
  5743. <doc>
  5744. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5745. </doc>
  5746. </field>
  5747. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5748. transient="false" volatile="false"
  5749. static="true" final="true" visibility="public"
  5750. deprecated="not deprecated">
  5751. <doc>
  5752. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5753. </doc>
  5754. </field>
  5755. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5756. transient="false" volatile="false"
  5757. static="true" final="true" visibility="public"
  5758. deprecated="not deprecated">
  5759. <doc>
  5760. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5761. </doc>
  5762. </field>
  5763. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  5764. transient="false" volatile="false"
  5765. static="true" final="true" visibility="public"
  5766. deprecated="not deprecated">
  5767. <doc>
  5768. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5769. </doc>
  5770. </field>
  5771. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  5772. transient="false" volatile="false"
  5773. static="true" final="true" visibility="public"
  5774. deprecated="not deprecated">
  5775. </field>
  5776. <doc>
  5777. <![CDATA[This class contains constants for configuration keys used
  5778. in the common code.
  5779. It includes all publicly documented configuration keys. In general
  5780. this class should not be used directly (use CommonConfigurationKeys
  5781. instead)]]>
  5782. </doc>
  5783. </class>
  5784. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5785. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5786. <class name="ContentSummary" extends="java.lang.Object"
  5787. abstract="false"
  5788. static="false" final="false" visibility="public"
  5789. deprecated="not deprecated">
  5790. <implements name="org.apache.hadoop.io.Writable"/>
  5791. <constructor name="ContentSummary"
  5792. static="false" final="false" visibility="public"
  5793. deprecated="not deprecated">
  5794. <doc>
  5795. <![CDATA[Constructor]]>
  5796. </doc>
  5797. </constructor>
  5798. <constructor name="ContentSummary" type="long, long, long"
  5799. static="false" final="false" visibility="public"
  5800. deprecated="not deprecated">
  5801. <doc>
  5802. <![CDATA[Constructor]]>
  5803. </doc>
  5804. </constructor>
  5805. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5806. static="false" final="false" visibility="public"
  5807. deprecated="not deprecated">
  5808. <doc>
  5809. <![CDATA[Constructor]]>
  5810. </doc>
  5811. </constructor>
  5812. <method name="getLength" return="long"
  5813. abstract="false" native="false" synchronized="false"
  5814. static="false" final="false" visibility="public"
  5815. deprecated="not deprecated">
  5816. <doc>
  5817. <![CDATA[@return the length]]>
  5818. </doc>
  5819. </method>
  5820. <method name="getDirectoryCount" return="long"
  5821. abstract="false" native="false" synchronized="false"
  5822. static="false" final="false" visibility="public"
  5823. deprecated="not deprecated">
  5824. <doc>
  5825. <![CDATA[@return the directory count]]>
  5826. </doc>
  5827. </method>
  5828. <method name="getFileCount" return="long"
  5829. abstract="false" native="false" synchronized="false"
  5830. static="false" final="false" visibility="public"
  5831. deprecated="not deprecated">
  5832. <doc>
  5833. <![CDATA[@return the file count]]>
  5834. </doc>
  5835. </method>
  5836. <method name="getQuota" return="long"
  5837. abstract="false" native="false" synchronized="false"
  5838. static="false" final="false" visibility="public"
  5839. deprecated="not deprecated">
  5840. <doc>
  5841. <![CDATA[Return the directory quota]]>
  5842. </doc>
  5843. </method>
  5844. <method name="getSpaceConsumed" return="long"
  5845. abstract="false" native="false" synchronized="false"
  5846. static="false" final="false" visibility="public"
  5847. deprecated="not deprecated">
  5848. <doc>
  5849. <![CDATA[Retuns (disk) space consumed]]>
  5850. </doc>
  5851. </method>
  5852. <method name="getSpaceQuota" return="long"
  5853. abstract="false" native="false" synchronized="false"
  5854. static="false" final="false" visibility="public"
  5855. deprecated="not deprecated">
  5856. <doc>
  5857. <![CDATA[Returns (disk) space quota]]>
  5858. </doc>
  5859. </method>
  5860. <method name="write"
  5861. abstract="false" native="false" synchronized="false"
  5862. static="false" final="false" visibility="public"
  5863. deprecated="not deprecated">
  5864. <param name="out" type="java.io.DataOutput"/>
  5865. <exception name="IOException" type="java.io.IOException"/>
  5866. </method>
  5867. <method name="readFields"
  5868. abstract="false" native="false" synchronized="false"
  5869. static="false" final="false" visibility="public"
  5870. deprecated="not deprecated">
  5871. <param name="in" type="java.io.DataInput"/>
  5872. <exception name="IOException" type="java.io.IOException"/>
  5873. </method>
  5874. <method name="getHeader" return="java.lang.String"
  5875. abstract="false" native="false" synchronized="false"
  5876. static="true" final="false" visibility="public"
  5877. deprecated="not deprecated">
  5878. <param name="qOption" type="boolean"/>
  5879. <doc>
  5880. <![CDATA[Return the header of the output.
  5881. if qOption is false, output directory count, file count, and content size;
  5882. if qOption is true, output quota and remaining quota as well.
  5883. @param qOption a flag indicating if quota needs to be printed or not
  5884. @return the header of the output]]>
  5885. </doc>
  5886. </method>
  5887. <method name="toString" return="java.lang.String"
  5888. abstract="false" native="false" synchronized="false"
  5889. static="false" final="false" visibility="public"
  5890. deprecated="not deprecated">
  5891. </method>
  5892. <method name="toString" return="java.lang.String"
  5893. abstract="false" native="false" synchronized="false"
  5894. static="false" final="false" visibility="public"
  5895. deprecated="not deprecated">
  5896. <param name="qOption" type="boolean"/>
  5897. <doc>
  5898. <![CDATA[Return the string representation of the object in the output format.
  5899. if qOption is false, output directory count, file count, and content size;
  5900. if qOption is true, output quota and remaining quota as well.
  5901. @param qOption a flag indicating if quota needs to be printed or not
  5902. @return the string representation of the object]]>
  5903. </doc>
  5904. </method>
  5905. <method name="toString" return="java.lang.String"
  5906. abstract="false" native="false" synchronized="false"
  5907. static="false" final="false" visibility="public"
  5908. deprecated="not deprecated">
  5909. <param name="qOption" type="boolean"/>
  5910. <param name="hOption" type="boolean"/>
  5911. <doc>
  5912. <![CDATA[Return the string representation of the object in the output format.
  5913. if qOption is false, output directory count, file count, and content size;
  5914. if qOption is true, output quota and remaining quota as well.
  5915. if hOption is false file sizes are returned in bytes
  5916. if hOption is true file sizes are returned in human readable
  5917. @param qOption a flag indicating if quota needs to be printed or not
  5918. @param hOption a flag indicating if human readable output if to be used
  5919. @return the string representation of the object]]>
  5920. </doc>
  5921. </method>
  5922. <doc>
  5923. <![CDATA[Store the summary of a content (a directory or a file).]]>
  5924. </doc>
  5925. </class>
  5926. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  5927. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  5928. <class name="CreateFlag" extends="java.lang.Enum"
  5929. abstract="false"
  5930. static="false" final="true" visibility="public"
  5931. deprecated="not deprecated">
  5932. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  5933. abstract="false" native="false" synchronized="false"
  5934. static="true" final="false" visibility="public"
  5935. deprecated="not deprecated">
  5936. </method>
  5937. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  5938. abstract="false" native="false" synchronized="false"
  5939. static="true" final="false" visibility="public"
  5940. deprecated="not deprecated">
  5941. <param name="name" type="java.lang.String"/>
  5942. </method>
  5943. <method name="validate"
  5944. abstract="false" native="false" synchronized="false"
  5945. static="true" final="false" visibility="public"
  5946. deprecated="not deprecated">
  5947. <param name="flag" type="java.util.EnumSet"/>
  5948. <doc>
  5949. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  5950. @param flag set of CreateFlag
  5951. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5952. </doc>
  5953. </method>
  5954. <method name="validate"
  5955. abstract="false" native="false" synchronized="false"
  5956. static="true" final="false" visibility="public"
  5957. deprecated="not deprecated">
  5958. <param name="path" type="java.lang.Object"/>
  5959. <param name="pathExists" type="boolean"/>
  5960. <param name="flag" type="java.util.EnumSet"/>
  5961. <exception name="IOException" type="java.io.IOException"/>
  5962. <doc>
  5963. <![CDATA[Validate the CreateFlag for create operation
  5964. @param path Object representing the path; usually String or {@link Path}
  5965. @param pathExists pass true if the path exists in the file system
  5966. @param flag set of CreateFlag
  5967. @throws IOException on error
  5968. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5969. </doc>
  5970. </method>
  5971. <doc>
  5972. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  5973. <code>
  5974. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  5975. <code>
  5976. <p>
  5977. Use the CreateFlag as follows:
  5978. <ol>
  5979. <li> CREATE - to create a file if it does not exist,
  5980. else throw FileAlreadyExists.</li>
  5981. <li> APPEND - to append to a file if it exists,
  5982. else throw FileNotFoundException.</li>
  5983. <li> OVERWRITE - to truncate a file if it exists,
  5984. else throw FileNotFoundException.</li>
  5985. <li> CREATE|APPEND - to create a file if it does not exist,
  5986. else append to an existing file.</li>
  5987. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  5988. else overwrite an existing file.</li>
  5989. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  5990. In addition {@link Syncable#hsync()} should be called after each write,
  5991. if true synchronous behavior is required.</li>
  5992. </ol>
  5993. Following combination is not valid and will result in
  5994. {@link HadoopIllegalArgumentException}:
  5995. <ol>
  5996. <li> APPEND|OVERWRITE</li>
  5997. <li> CREATE|APPEND|OVERWRITE</li>
  5998. </ol>]]>
  5999. </doc>
  6000. </class>
  6001. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  6002. <!-- start interface org.apache.hadoop.fs.DelegationTokenRenewer.Renewable -->
  6003. <interface name="DelegationTokenRenewer.Renewable" abstract="true"
  6004. static="true" final="false" visibility="public"
  6005. deprecated="not deprecated">
  6006. <method name="getRenewToken" return="org.apache.hadoop.security.token.Token"
  6007. abstract="false" native="false" synchronized="false"
  6008. static="false" final="false" visibility="public"
  6009. deprecated="not deprecated">
  6010. <doc>
  6011. <![CDATA[@return the renew token.]]>
  6012. </doc>
  6013. </method>
  6014. <method name="setDelegationToken"
  6015. abstract="false" native="false" synchronized="false"
  6016. static="false" final="false" visibility="public"
  6017. deprecated="not deprecated">
  6018. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  6019. <doc>
  6020. <![CDATA[Set delegation token.]]>
  6021. </doc>
  6022. </method>
  6023. <doc>
  6024. <![CDATA[The renewable interface used by the renewer.]]>
  6025. </doc>
  6026. </interface>
  6027. <!-- end interface org.apache.hadoop.fs.DelegationTokenRenewer.Renewable -->
  6028. <!-- start class org.apache.hadoop.fs.DelegationTokenRenewer.RenewAction -->
  6029. <class name="DelegationTokenRenewer.RenewAction" extends="java.lang.Object"
  6030. abstract="false"
  6031. static="true" final="false" visibility="public"
  6032. deprecated="not deprecated">
  6033. <implements name="java.util.concurrent.Delayed"/>
  6034. <method name="isValid" return="boolean"
  6035. abstract="false" native="false" synchronized="false"
  6036. static="false" final="false" visibility="public"
  6037. deprecated="not deprecated">
  6038. </method>
  6039. <method name="getDelay" return="long"
  6040. abstract="false" native="false" synchronized="false"
  6041. static="false" final="false" visibility="public"
  6042. deprecated="not deprecated">
  6043. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  6044. <doc>
  6045. <![CDATA[Get the delay until this event should happen.]]>
  6046. </doc>
  6047. </method>
  6048. <method name="compareTo" return="int"
  6049. abstract="false" native="false" synchronized="false"
  6050. static="false" final="false" visibility="public"
  6051. deprecated="not deprecated">
  6052. <param name="delayed" type="java.util.concurrent.Delayed"/>
  6053. </method>
  6054. <method name="hashCode" return="int"
  6055. abstract="false" native="false" synchronized="false"
  6056. static="false" final="false" visibility="public"
  6057. deprecated="not deprecated">
  6058. </method>
  6059. <method name="equals" return="boolean"
  6060. abstract="false" native="false" synchronized="false"
  6061. static="false" final="false" visibility="public"
  6062. deprecated="not deprecated">
  6063. <param name="that" type="java.lang.Object"/>
  6064. </method>
  6065. <method name="toString" return="java.lang.String"
  6066. abstract="false" native="false" synchronized="false"
  6067. static="false" final="false" visibility="public"
  6068. deprecated="not deprecated">
  6069. </method>
  6070. <doc>
  6071. <![CDATA[An action that will renew and replace the file system's delegation
  6072. tokens automatically.]]>
  6073. </doc>
  6074. </class>
  6075. <!-- end class org.apache.hadoop.fs.DelegationTokenRenewer.RenewAction -->
  6076. <!-- start class org.apache.hadoop.fs.DUHelper -->
  6077. <class name="DUHelper" extends="java.lang.Object"
  6078. abstract="false"
  6079. static="false" final="false" visibility="public"
  6080. deprecated="not deprecated">
  6081. <method name="getFolderUsage" return="long"
  6082. abstract="false" native="false" synchronized="false"
  6083. static="true" final="false" visibility="public"
  6084. deprecated="not deprecated">
  6085. <param name="folder" type="java.lang.String"/>
  6086. </method>
  6087. <method name="check" return="java.lang.String"
  6088. abstract="false" native="false" synchronized="false"
  6089. static="false" final="false" visibility="public"
  6090. deprecated="not deprecated">
  6091. <param name="folder" type="java.lang.String"/>
  6092. </method>
  6093. <method name="getFileCount" return="long"
  6094. abstract="false" native="false" synchronized="false"
  6095. static="false" final="false" visibility="public"
  6096. deprecated="not deprecated">
  6097. </method>
  6098. <method name="getUsage" return="double"
  6099. abstract="false" native="false" synchronized="false"
  6100. static="false" final="false" visibility="public"
  6101. deprecated="not deprecated">
  6102. </method>
  6103. <method name="main"
  6104. abstract="false" native="false" synchronized="false"
  6105. static="true" final="false" visibility="public"
  6106. deprecated="not deprecated">
  6107. <param name="args" type="java.lang.String[]"/>
  6108. </method>
  6109. </class>
  6110. <!-- end class org.apache.hadoop.fs.DUHelper -->
  6111. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6112. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  6113. abstract="false"
  6114. static="false" final="false" visibility="public"
  6115. deprecated="not deprecated">
  6116. <constructor name="FileAlreadyExistsException"
  6117. static="false" final="false" visibility="public"
  6118. deprecated="not deprecated">
  6119. </constructor>
  6120. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  6121. static="false" final="false" visibility="public"
  6122. deprecated="not deprecated">
  6123. </constructor>
  6124. <doc>
  6125. <![CDATA[Used when target file already exists for any operation and
  6126. is not configured to be overwritten.]]>
  6127. </doc>
  6128. </class>
  6129. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6130. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6131. <class name="FileChecksum" extends="java.lang.Object"
  6132. abstract="true"
  6133. static="false" final="false" visibility="public"
  6134. deprecated="not deprecated">
  6135. <implements name="org.apache.hadoop.io.Writable"/>
  6136. <constructor name="FileChecksum"
  6137. static="false" final="false" visibility="public"
  6138. deprecated="not deprecated">
  6139. </constructor>
  6140. <method name="getAlgorithmName" return="java.lang.String"
  6141. abstract="true" native="false" synchronized="false"
  6142. static="false" final="false" visibility="public"
  6143. deprecated="not deprecated">
  6144. <doc>
  6145. <![CDATA[The checksum algorithm name]]>
  6146. </doc>
  6147. </method>
  6148. <method name="getLength" return="int"
  6149. abstract="true" native="false" synchronized="false"
  6150. static="false" final="false" visibility="public"
  6151. deprecated="not deprecated">
  6152. <doc>
  6153. <![CDATA[The length of the checksum in bytes]]>
  6154. </doc>
  6155. </method>
  6156. <method name="getBytes" return="byte[]"
  6157. abstract="true" native="false" synchronized="false"
  6158. static="false" final="false" visibility="public"
  6159. deprecated="not deprecated">
  6160. <doc>
  6161. <![CDATA[The value of the checksum in bytes]]>
  6162. </doc>
  6163. </method>
  6164. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6165. abstract="false" native="false" synchronized="false"
  6166. static="false" final="false" visibility="public"
  6167. deprecated="not deprecated">
  6168. </method>
  6169. <method name="equals" return="boolean"
  6170. abstract="false" native="false" synchronized="false"
  6171. static="false" final="false" visibility="public"
  6172. deprecated="not deprecated">
  6173. <param name="other" type="java.lang.Object"/>
  6174. <doc>
  6175. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6176. </doc>
  6177. </method>
  6178. <method name="hashCode" return="int"
  6179. abstract="false" native="false" synchronized="false"
  6180. static="false" final="false" visibility="public"
  6181. deprecated="not deprecated">
  6182. </method>
  6183. <doc>
  6184. <![CDATA[An abstract class representing file checksums for files.]]>
  6185. </doc>
  6186. </class>
  6187. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6188. <!-- start class org.apache.hadoop.fs.FileContext -->
  6189. <class name="FileContext" extends="java.lang.Object"
  6190. abstract="false"
  6191. static="false" final="false" visibility="public"
  6192. deprecated="not deprecated">
  6193. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6194. abstract="false" native="false" synchronized="false"
  6195. static="false" final="false" visibility="protected"
  6196. deprecated="not deprecated">
  6197. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6198. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6199. <exception name="IOException" type="java.io.IOException"/>
  6200. <doc>
  6201. <![CDATA[Get the file system of supplied path.
  6202. @param absOrFqPath - absolute or fully qualified path
  6203. @return the file system of the path
  6204. @throws UnsupportedFileSystemException If the file system for
  6205. <code>absOrFqPath</code> is not supported.
  6206. @throws IOExcepton If the file system for <code>absOrFqPath</code> could
  6207. not be instantiated.]]>
  6208. </doc>
  6209. </method>
  6210. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6211. abstract="false" native="false" synchronized="false"
  6212. static="true" final="false" visibility="public"
  6213. deprecated="not deprecated">
  6214. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6215. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6216. <doc>
  6217. <![CDATA[Create a FileContext with specified FS as default using the specified
  6218. config.
  6219. @param defFS
  6220. @param aConf
  6221. @return new FileContext with specifed FS as default.]]>
  6222. </doc>
  6223. </method>
  6224. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6225. abstract="false" native="false" synchronized="false"
  6226. static="true" final="false" visibility="protected"
  6227. deprecated="not deprecated">
  6228. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6229. <doc>
  6230. <![CDATA[Create a FileContext for specified file system using the default config.
  6231. @param defaultFS
  6232. @return a FileContext with the specified AbstractFileSystem
  6233. as the default FS.]]>
  6234. </doc>
  6235. </method>
  6236. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6237. abstract="false" native="false" synchronized="false"
  6238. static="true" final="false" visibility="public"
  6239. deprecated="not deprecated">
  6240. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6241. <doc>
  6242. <![CDATA[Create a FileContext using the default config read from the
  6243. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6244. from core-defaults.xml in the release jar.
  6245. @throws UnsupportedFileSystemException If the file system from the default
  6246. configuration is not supported]]>
  6247. </doc>
  6248. </method>
  6249. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6250. abstract="false" native="false" synchronized="false"
  6251. static="true" final="false" visibility="public"
  6252. deprecated="not deprecated">
  6253. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6254. <doc>
  6255. <![CDATA[@return a FileContext for the local file system using the default config.
  6256. @throws UnsupportedFileSystemException If the file system for
  6257. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6258. </doc>
  6259. </method>
  6260. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6261. abstract="false" native="false" synchronized="false"
  6262. static="true" final="false" visibility="public"
  6263. deprecated="not deprecated">
  6264. <param name="defaultFsUri" type="java.net.URI"/>
  6265. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6266. <doc>
  6267. <![CDATA[Create a FileContext for specified URI using the default config.
  6268. @param defaultFsUri
  6269. @return a FileContext with the specified URI as the default FS.
  6270. @throws UnsupportedFileSystemException If the file system for
  6271. <code>defaultFsUri</code> is not supported]]>
  6272. </doc>
  6273. </method>
  6274. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6275. abstract="false" native="false" synchronized="false"
  6276. static="true" final="false" visibility="public"
  6277. deprecated="not deprecated">
  6278. <param name="defaultFsUri" type="java.net.URI"/>
  6279. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6280. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6281. <doc>
  6282. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6283. @param defaultFsUri
  6284. @param aConf
  6285. @return new FileContext for specified uri
  6286. @throws UnsupportedFileSystemException If the file system with specified is
  6287. not supported
  6288. @throws RuntimeException If the file system specified is supported but
  6289. could not be instantiated, or if login fails.]]>
  6290. </doc>
  6291. </method>
  6292. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6293. abstract="false" native="false" synchronized="false"
  6294. static="true" final="false" visibility="public"
  6295. deprecated="not deprecated">
  6296. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6297. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6298. <doc>
  6299. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6300. {@link #getFileContext(URI, Configuration)} instead of this one.
  6301. @param aConf
  6302. @return new FileContext
  6303. @throws UnsupportedFileSystemException If file system in the config
  6304. is not supported]]>
  6305. </doc>
  6306. </method>
  6307. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6308. abstract="false" native="false" synchronized="false"
  6309. static="true" final="false" visibility="public"
  6310. deprecated="not deprecated">
  6311. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6312. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6313. <doc>
  6314. <![CDATA[@param aConf - from which the FileContext is configured
  6315. @return a FileContext for the local file system using the specified config.
  6316. @throws UnsupportedFileSystemException If default file system in the config
  6317. is not supported]]>
  6318. </doc>
  6319. </method>
  6320. <method name="getDefaultFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  6321. abstract="false" native="false" synchronized="false"
  6322. static="false" final="false" visibility="public"
  6323. deprecated="not deprecated">
  6324. </method>
  6325. <method name="setWorkingDirectory"
  6326. abstract="false" native="false" synchronized="false"
  6327. static="false" final="false" visibility="public"
  6328. deprecated="not deprecated">
  6329. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6330. <exception name="IOException" type="java.io.IOException"/>
  6331. <doc>
  6332. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6333. directory feature is provided by simply prefixing relative names with the
  6334. working dir. Note this is different from Unix where the wd is actually set
  6335. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6336. better in a distributed environment that has multiple independent roots.
  6337. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6338. @param newWDir new working directory
  6339. @throws IOException
  6340. <br>
  6341. NewWdir can be one of:
  6342. <ul>
  6343. <li>relative path: "foo/bar";</li>
  6344. <li>absolute without scheme: "/foo/bar"</li>
  6345. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6346. </ul>
  6347. <br>
  6348. Illegal WDs:
  6349. <ul>
  6350. <li>relative with scheme: "xx:foo/bar"</li>
  6351. <li>non existent directory</li>
  6352. </ul>]]>
  6353. </doc>
  6354. </method>
  6355. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6356. abstract="false" native="false" synchronized="false"
  6357. static="false" final="false" visibility="public"
  6358. deprecated="not deprecated">
  6359. <doc>
  6360. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6361. </doc>
  6362. </method>
  6363. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6364. abstract="false" native="false" synchronized="false"
  6365. static="false" final="false" visibility="public"
  6366. deprecated="not deprecated">
  6367. <doc>
  6368. <![CDATA[Gets the ugi in the file-context
  6369. @return UserGroupInformation]]>
  6370. </doc>
  6371. </method>
  6372. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6373. abstract="false" native="false" synchronized="false"
  6374. static="false" final="false" visibility="public"
  6375. deprecated="not deprecated">
  6376. <doc>
  6377. <![CDATA[Return the current user's home directory in this file system.
  6378. The default implementation returns "/user/$USER/".
  6379. @return the home directory]]>
  6380. </doc>
  6381. </method>
  6382. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6383. abstract="false" native="false" synchronized="false"
  6384. static="false" final="false" visibility="public"
  6385. deprecated="not deprecated">
  6386. <doc>
  6387. <![CDATA[@return the umask of this FileContext]]>
  6388. </doc>
  6389. </method>
  6390. <method name="setUMask"
  6391. abstract="false" native="false" synchronized="false"
  6392. static="false" final="false" visibility="public"
  6393. deprecated="not deprecated">
  6394. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6395. <doc>
  6396. <![CDATA[Set umask to the supplied parameter.
  6397. @param newUmask the new umask]]>
  6398. </doc>
  6399. </method>
  6400. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6401. abstract="false" native="false" synchronized="false"
  6402. static="false" final="false" visibility="public"
  6403. deprecated="not deprecated">
  6404. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6405. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6406. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6407. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6408. <exception name="IOException" type="java.io.IOException"/>
  6409. <doc>
  6410. <![CDATA[Resolve the path following any symlinks or mount points
  6411. @param f to be resolved
  6412. @return fully qualified resolved path
  6413. @throws FileNotFoundException If <code>f</code> does not exist
  6414. @throws AccessControlException if access denied
  6415. @throws IOException If an IO Error occurred
  6416. Exceptions applicable to file systems accessed over RPC:
  6417. @throws RpcClientException If an exception occurred in the RPC client
  6418. @throws RpcServerException If an exception occurred in the RPC server
  6419. @throws UnexpectedServerException If server implementation throws
  6420. undeclared exception to RPC server
  6421. RuntimeExceptions:
  6422. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6423. </doc>
  6424. </method>
  6425. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6426. abstract="false" native="false" synchronized="false"
  6427. static="false" final="false" visibility="public"
  6428. deprecated="not deprecated">
  6429. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6430. <doc>
  6431. <![CDATA[Make the path fully qualified if it is isn't.
  6432. A Fully-qualified path has scheme and authority specified and an absolute
  6433. path.
  6434. Use the default file system and working dir in this FileContext to qualify.
  6435. @param path
  6436. @return qualified path]]>
  6437. </doc>
  6438. </method>
  6439. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6440. abstract="false" native="false" synchronized="false"
  6441. static="false" final="false" visibility="public"
  6442. deprecated="not deprecated">
  6443. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6444. <param name="createFlag" type="java.util.EnumSet"/>
  6445. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6446. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6447. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6448. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6449. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6450. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6451. <exception name="IOException" type="java.io.IOException"/>
  6452. <doc>
  6453. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6454. writing into the file.
  6455. @param f the file name to open
  6456. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6457. @param opts file creation options; see {@link Options.CreateOpts}.
  6458. <ul>
  6459. <li>Progress - to report progress on the operation - default null
  6460. <li>Permission - umask is applied against permisssion: default is
  6461. FsPermissions:getDefault()
  6462. <li>CreateParent - create missing parent path; default is to not
  6463. to create parents
  6464. <li>The defaults for the following are SS defaults of the file
  6465. server implementing the target path. Not all parameters make sense
  6466. for all kinds of file system - eg. localFS ignores Blocksize,
  6467. replication, checksum
  6468. <ul>
  6469. <li>BufferSize - buffersize used in FSDataOutputStream
  6470. <li>Blocksize - block size for file blocks
  6471. <li>ReplicationFactor - replication for blocks
  6472. <li>ChecksumParam - Checksum parameters. server default is used
  6473. if not specified.
  6474. </ul>
  6475. </ul>
  6476. @return {@link FSDataOutputStream} for created file
  6477. @throws AccessControlException If access is denied
  6478. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6479. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6480. and <code>createParent</code> is false
  6481. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6482. directory.
  6483. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6484. not supported
  6485. @throws IOException If an I/O error occurred
  6486. Exceptions applicable to file systems accessed over RPC:
  6487. @throws RpcClientException If an exception occurred in the RPC client
  6488. @throws RpcServerException If an exception occurred in the RPC server
  6489. @throws UnexpectedServerException If server implementation throws
  6490. undeclared exception to RPC server
  6491. RuntimeExceptions:
  6492. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6493. </doc>
  6494. </method>
  6495. <method name="mkdir"
  6496. abstract="false" native="false" synchronized="false"
  6497. static="false" final="false" visibility="public"
  6498. deprecated="not deprecated">
  6499. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6500. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6501. <param name="createParent" type="boolean"/>
  6502. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6503. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6504. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6505. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6506. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6507. <exception name="IOException" type="java.io.IOException"/>
  6508. <doc>
  6509. <![CDATA[Make(create) a directory and all the non-existent parents.
  6510. @param dir - the dir to make
  6511. @param permission - permissions is set permission&~umask
  6512. @param createParent - if true then missing parent dirs are created if false
  6513. then parent must exist
  6514. @throws AccessControlException If access is denied
  6515. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6516. exists
  6517. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6518. and <code>createParent</code> is false
  6519. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6520. directory
  6521. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6522. is not supported
  6523. @throws IOException If an I/O error occurred
  6524. Exceptions applicable to file systems accessed over RPC:
  6525. @throws RpcClientException If an exception occurred in the RPC client
  6526. @throws UnexpectedServerException If server implementation throws
  6527. undeclared exception to RPC server
  6528. RuntimeExceptions:
  6529. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6530. </doc>
  6531. </method>
  6532. <method name="delete" return="boolean"
  6533. abstract="false" native="false" synchronized="false"
  6534. static="false" final="false" visibility="public"
  6535. deprecated="not deprecated">
  6536. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6537. <param name="recursive" type="boolean"/>
  6538. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6539. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6540. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6541. <exception name="IOException" type="java.io.IOException"/>
  6542. <doc>
  6543. <![CDATA[Delete a file.
  6544. @param f the path to delete.
  6545. @param recursive if path is a directory and set to
  6546. true, the directory is deleted else throws an exception. In
  6547. case of a file the recursive can be set to either true or false.
  6548. @throws AccessControlException If access is denied
  6549. @throws FileNotFoundException If <code>f</code> does not exist
  6550. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6551. not supported
  6552. @throws IOException If an I/O error occurred
  6553. Exceptions applicable to file systems accessed over RPC:
  6554. @throws RpcClientException If an exception occurred in the RPC client
  6555. @throws RpcServerException If an exception occurred in the RPC server
  6556. @throws UnexpectedServerException If server implementation throws
  6557. undeclared exception to RPC server
  6558. RuntimeExceptions:
  6559. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6560. </doc>
  6561. </method>
  6562. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6563. abstract="false" native="false" synchronized="false"
  6564. static="false" final="false" visibility="public"
  6565. deprecated="not deprecated">
  6566. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6567. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6568. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6569. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6570. <exception name="IOException" type="java.io.IOException"/>
  6571. <doc>
  6572. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  6573. default buffersize.
  6574. @param f the file name to open
  6575. @throws AccessControlException If access is denied
  6576. @throws FileNotFoundException If file <code>f</code> does not exist
  6577. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6578. is not supported
  6579. @throws IOException If an I/O error occurred
  6580. Exceptions applicable to file systems accessed over RPC:
  6581. @throws RpcClientException If an exception occurred in the RPC client
  6582. @throws RpcServerException If an exception occurred in the RPC server
  6583. @throws UnexpectedServerException If server implementation throws
  6584. undeclared exception to RPC server]]>
  6585. </doc>
  6586. </method>
  6587. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6588. abstract="false" native="false" synchronized="false"
  6589. static="false" final="false" visibility="public"
  6590. deprecated="not deprecated">
  6591. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6592. <param name="bufferSize" type="int"/>
  6593. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6594. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6595. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6596. <exception name="IOException" type="java.io.IOException"/>
  6597. <doc>
  6598. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6599. @param f the file name to open
  6600. @param bufferSize the size of the buffer to be used.
  6601. @throws AccessControlException If access is denied
  6602. @throws FileNotFoundException If file <code>f</code> does not exist
  6603. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6604. not supported
  6605. @throws IOException If an I/O error occurred
  6606. Exceptions applicable to file systems accessed over RPC:
  6607. @throws RpcClientException If an exception occurred in the RPC client
  6608. @throws RpcServerException If an exception occurred in the RPC server
  6609. @throws UnexpectedServerException If server implementation throws
  6610. undeclared exception to RPC server]]>
  6611. </doc>
  6612. </method>
  6613. <method name="setReplication" return="boolean"
  6614. abstract="false" native="false" synchronized="false"
  6615. static="false" final="false" visibility="public"
  6616. deprecated="not deprecated">
  6617. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6618. <param name="replication" type="short"/>
  6619. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6620. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6621. <exception name="IOException" type="java.io.IOException"/>
  6622. <doc>
  6623. <![CDATA[Set replication for an existing file.
  6624. @param f file name
  6625. @param replication new replication
  6626. @return true if successful
  6627. @throws AccessControlException If access is denied
  6628. @throws FileNotFoundException If file <code>f</code> does not exist
  6629. @throws IOException If an I/O error occurred
  6630. Exceptions applicable to file systems accessed over RPC:
  6631. @throws RpcClientException If an exception occurred in the RPC client
  6632. @throws RpcServerException If an exception occurred in the RPC server
  6633. @throws UnexpectedServerException If server implementation throws
  6634. undeclared exception to RPC server]]>
  6635. </doc>
  6636. </method>
  6637. <method name="rename"
  6638. abstract="false" native="false" synchronized="false"
  6639. static="false" final="false" visibility="public"
  6640. deprecated="not deprecated">
  6641. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6642. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6643. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  6644. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6645. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6646. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6647. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6648. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6649. <exception name="IOException" type="java.io.IOException"/>
  6650. <doc>
  6651. <![CDATA[Renames Path src to Path dst
  6652. <ul>
  6653. <li
  6654. <li>Fails if src is a file and dst is a directory.
  6655. <li>Fails if src is a directory and dst is a file.
  6656. <li>Fails if the parent of dst does not exist or is a file.
  6657. </ul>
  6658. <p>
  6659. If OVERWRITE option is not passed as an argument, rename fails if the dst
  6660. already exists.
  6661. <p>
  6662. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  6663. it is a file or an empty directory. Rename fails if dst is a non-empty
  6664. directory.
  6665. <p>
  6666. Note that atomicity of rename is dependent on the file system
  6667. implementation. Please refer to the file system documentation for details
  6668. <p>
  6669. @param src path to be renamed
  6670. @param dst new path after rename
  6671. @throws AccessControlException If access is denied
  6672. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  6673. <code>options</options> has {@link Options.Rename#OVERWRITE}
  6674. option false.
  6675. @throws FileNotFoundException If <code>src</code> does not exist
  6676. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6677. directory
  6678. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6679. and <code>dst</code> is not supported
  6680. @throws IOException If an I/O error occurred
  6681. Exceptions applicable to file systems accessed over RPC:
  6682. @throws RpcClientException If an exception occurred in the RPC client
  6683. @throws RpcServerException If an exception occurred in the RPC server
  6684. @throws UnexpectedServerException If server implementation throws
  6685. undeclared exception to RPC server]]>
  6686. </doc>
  6687. </method>
  6688. <method name="setPermission"
  6689. abstract="false" native="false" synchronized="false"
  6690. static="false" final="false" visibility="public"
  6691. deprecated="not deprecated">
  6692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6693. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6694. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6695. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6696. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6697. <exception name="IOException" type="java.io.IOException"/>
  6698. <doc>
  6699. <![CDATA[Set permission of a path.
  6700. @param f
  6701. @param permission - the new absolute permission (umask is not applied)
  6702. @throws AccessControlException If access is denied
  6703. @throws FileNotFoundException If <code>f</code> does not exist
  6704. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6705. is not supported
  6706. @throws IOException If an I/O error occurred
  6707. Exceptions applicable to file systems accessed over RPC:
  6708. @throws RpcClientException If an exception occurred in the RPC client
  6709. @throws RpcServerException If an exception occurred in the RPC server
  6710. @throws UnexpectedServerException If server implementation throws
  6711. undeclared exception to RPC server]]>
  6712. </doc>
  6713. </method>
  6714. <method name="setOwner"
  6715. abstract="false" native="false" synchronized="false"
  6716. static="false" final="false" visibility="public"
  6717. deprecated="not deprecated">
  6718. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6719. <param name="username" type="java.lang.String"/>
  6720. <param name="groupname" type="java.lang.String"/>
  6721. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6722. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6723. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6724. <exception name="IOException" type="java.io.IOException"/>
  6725. <doc>
  6726. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6727. and groupname cannot both be null.
  6728. @param f The path
  6729. @param username If it is null, the original username remains unchanged.
  6730. @param groupname If it is null, the original groupname remains unchanged.
  6731. @throws AccessControlException If access is denied
  6732. @throws FileNotFoundException If <code>f</code> does not exist
  6733. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6734. not supported
  6735. @throws IOException If an I/O error occurred
  6736. Exceptions applicable to file systems accessed over RPC:
  6737. @throws RpcClientException If an exception occurred in the RPC client
  6738. @throws RpcServerException If an exception occurred in the RPC server
  6739. @throws UnexpectedServerException If server implementation throws
  6740. undeclared exception to RPC server
  6741. RuntimeExceptions:
  6742. @throws HadoopIllegalArgumentException If <code>username</code> or
  6743. <code>groupname</code> is invalid.]]>
  6744. </doc>
  6745. </method>
  6746. <method name="setTimes"
  6747. abstract="false" native="false" synchronized="false"
  6748. static="false" final="false" visibility="public"
  6749. deprecated="not deprecated">
  6750. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6751. <param name="mtime" type="long"/>
  6752. <param name="atime" type="long"/>
  6753. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6754. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6755. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6756. <exception name="IOException" type="java.io.IOException"/>
  6757. <doc>
  6758. <![CDATA[Set access time of a file.
  6759. @param f The path
  6760. @param mtime Set the modification time of this file.
  6761. The number of milliseconds since epoch (Jan 1, 1970).
  6762. A value of -1 means that this call should not set modification time.
  6763. @param atime Set the access time of this file.
  6764. The number of milliseconds since Jan 1, 1970.
  6765. A value of -1 means that this call should not set access time.
  6766. @throws AccessControlException If access is denied
  6767. @throws FileNotFoundException If <code>f</code> does not exist
  6768. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6769. not supported
  6770. @throws IOException If an I/O error occurred
  6771. Exceptions applicable to file systems accessed over RPC:
  6772. @throws RpcClientException If an exception occurred in the RPC client
  6773. @throws RpcServerException If an exception occurred in the RPC server
  6774. @throws UnexpectedServerException If server implementation throws
  6775. undeclared exception to RPC server]]>
  6776. </doc>
  6777. </method>
  6778. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6779. abstract="false" native="false" synchronized="false"
  6780. static="false" final="false" visibility="public"
  6781. deprecated="not deprecated">
  6782. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6783. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6784. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6785. <exception name="IOException" type="java.io.IOException"/>
  6786. <doc>
  6787. <![CDATA[Get the checksum of a file.
  6788. @param f file path
  6789. @return The file checksum. The default return value is null,
  6790. which indicates that no checksum algorithm is implemented
  6791. in the corresponding FileSystem.
  6792. @throws AccessControlException If access is denied
  6793. @throws FileNotFoundException If <code>f</code> does not exist
  6794. @throws IOException If an I/O error occurred
  6795. Exceptions applicable to file systems accessed over RPC:
  6796. @throws RpcClientException If an exception occurred in the RPC client
  6797. @throws RpcServerException If an exception occurred in the RPC server
  6798. @throws UnexpectedServerException If server implementation throws
  6799. undeclared exception to RPC server]]>
  6800. </doc>
  6801. </method>
  6802. <method name="setVerifyChecksum"
  6803. abstract="false" native="false" synchronized="false"
  6804. static="false" final="false" visibility="public"
  6805. deprecated="not deprecated">
  6806. <param name="verifyChecksum" type="boolean"/>
  6807. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6808. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6809. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6810. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6811. <exception name="IOException" type="java.io.IOException"/>
  6812. <doc>
  6813. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6814. This is only applicable if the
  6815. corresponding FileSystem supports checksum. By default doesn't do anything.
  6816. @param verifyChecksum
  6817. @param f set the verifyChecksum for the Filesystem containing this path
  6818. @throws AccessControlException If access is denied
  6819. @throws FileNotFoundException If <code>f</code> does not exist
  6820. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6821. not supported
  6822. @throws IOException If an I/O error occurred
  6823. Exceptions applicable to file systems accessed over RPC:
  6824. @throws RpcClientException If an exception occurred in the RPC client
  6825. @throws RpcServerException If an exception occurred in the RPC server
  6826. @throws UnexpectedServerException If server implementation throws
  6827. undeclared exception to RPC server]]>
  6828. </doc>
  6829. </method>
  6830. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6831. abstract="false" native="false" synchronized="false"
  6832. static="false" final="false" visibility="public"
  6833. deprecated="not deprecated">
  6834. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6835. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6836. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6837. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6838. <exception name="IOException" type="java.io.IOException"/>
  6839. <doc>
  6840. <![CDATA[Return a file status object that represents the path.
  6841. @param f The path we want information from
  6842. @return a FileStatus object
  6843. @throws AccessControlException If access is denied
  6844. @throws FileNotFoundException If <code>f</code> does not exist
  6845. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6846. not supported
  6847. @throws IOException If an I/O error occurred
  6848. Exceptions applicable to file systems accessed over RPC:
  6849. @throws RpcClientException If an exception occurred in the RPC client
  6850. @throws RpcServerException If an exception occurred in the RPC server
  6851. @throws UnexpectedServerException If server implementation throws
  6852. undeclared exception to RPC server]]>
  6853. </doc>
  6854. </method>
  6855. <method name="access"
  6856. abstract="false" native="false" synchronized="false"
  6857. static="false" final="false" visibility="public"
  6858. deprecated="not deprecated">
  6859. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6860. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  6861. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6862. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6863. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6864. <exception name="IOException" type="java.io.IOException"/>
  6865. <doc>
  6866. <![CDATA[Checks if the user can access a path. The mode specifies which access
  6867. checks to perform. If the requested permissions are granted, then the
  6868. method returns normally. If access is denied, then the method throws an
  6869. {@link AccessControlException}.
  6870. <p/>
  6871. The default implementation of this method calls {@link #getFileStatus(Path)}
  6872. and checks the returned permissions against the requested permissions.
  6873. Note that the getFileStatus call will be subject to authorization checks.
  6874. Typically, this requires search (execute) permissions on each directory in
  6875. the path's prefix, but this is implementation-defined. Any file system
  6876. that provides a richer authorization model (such as ACLs) may override the
  6877. default implementation so that it checks against that model instead.
  6878. <p>
  6879. In general, applications should avoid using this method, due to the risk of
  6880. time-of-check/time-of-use race conditions. The permissions on a file may
  6881. change immediately after the access call returns. Most applications should
  6882. prefer running specific file system actions as the desired user represented
  6883. by a {@link UserGroupInformation}.
  6884. @param path Path to check
  6885. @param mode type of access to check
  6886. @throws AccessControlException if access is denied
  6887. @throws FileNotFoundException if the path does not exist
  6888. @throws UnsupportedFileSystemException if file system for <code>path</code>
  6889. is not supported
  6890. @throws IOException see specific implementation
  6891. Exceptions applicable to file systems accessed over RPC:
  6892. @throws RpcClientException If an exception occurred in the RPC client
  6893. @throws RpcServerException If an exception occurred in the RPC server
  6894. @throws UnexpectedServerException If server implementation throws
  6895. undeclared exception to RPC server]]>
  6896. </doc>
  6897. </method>
  6898. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6899. abstract="false" native="false" synchronized="false"
  6900. static="false" final="false" visibility="public"
  6901. deprecated="not deprecated">
  6902. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6903. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6904. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6905. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6906. <exception name="IOException" type="java.io.IOException"/>
  6907. <doc>
  6908. <![CDATA[Return a file status object that represents the path. If the path
  6909. refers to a symlink then the FileStatus of the symlink is returned.
  6910. The behavior is equivalent to #getFileStatus() if the underlying
  6911. file system does not support symbolic links.
  6912. @param f The path we want information from.
  6913. @return A FileStatus object
  6914. @throws AccessControlException If access is denied
  6915. @throws FileNotFoundException If <code>f</code> does not exist
  6916. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6917. not supported
  6918. @throws IOException If an I/O error occurred]]>
  6919. </doc>
  6920. </method>
  6921. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  6922. abstract="false" native="false" synchronized="false"
  6923. static="false" final="false" visibility="public"
  6924. deprecated="not deprecated">
  6925. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6926. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6927. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6928. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6929. <exception name="IOException" type="java.io.IOException"/>
  6930. <doc>
  6931. <![CDATA[Returns the target of the given symbolic link as it was specified
  6932. when the link was created. Links in the path leading up to the
  6933. final path component are resolved transparently.
  6934. @param f the path to return the target of
  6935. @return The un-interpreted target of the symbolic link.
  6936. @throws AccessControlException If access is denied
  6937. @throws FileNotFoundException If path <code>f</code> does not exist
  6938. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6939. not supported
  6940. @throws IOException If the given path does not refer to a symlink
  6941. or an I/O error occurred]]>
  6942. </doc>
  6943. </method>
  6944. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6945. abstract="false" native="false" synchronized="false"
  6946. static="false" final="false" visibility="public"
  6947. deprecated="not deprecated">
  6948. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6949. <param name="start" type="long"/>
  6950. <param name="len" type="long"/>
  6951. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6952. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6953. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6954. <exception name="IOException" type="java.io.IOException"/>
  6955. <doc>
  6956. <![CDATA[Return blockLocation of the given file for the given offset and len.
  6957. For a nonexistent file or regions, null will be returned.
  6958. This call is most helpful with DFS, where it returns
  6959. hostnames of machines that contain the given file.
  6960. @param f - get blocklocations of this file
  6961. @param start position (byte offset)
  6962. @param len (in bytes)
  6963. @return block locations for given file at specified offset of len
  6964. @throws AccessControlException If access is denied
  6965. @throws FileNotFoundException If <code>f</code> does not exist
  6966. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6967. not supported
  6968. @throws IOException If an I/O error occurred
  6969. Exceptions applicable to file systems accessed over RPC:
  6970. @throws RpcClientException If an exception occurred in the RPC client
  6971. @throws RpcServerException If an exception occurred in the RPC server
  6972. @throws UnexpectedServerException If server implementation throws
  6973. undeclared exception to RPC server
  6974. RuntimeExceptions:
  6975. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6976. </doc>
  6977. </method>
  6978. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  6979. abstract="false" native="false" synchronized="false"
  6980. static="false" final="false" visibility="public"
  6981. deprecated="not deprecated">
  6982. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6983. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6984. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6985. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6986. <exception name="IOException" type="java.io.IOException"/>
  6987. <doc>
  6988. <![CDATA[Returns a status object describing the use and capacity of the
  6989. file system denoted by the Parh argument p.
  6990. If the file system has multiple partitions, the
  6991. use and capacity of the partition pointed to by the specified
  6992. path is reflected.
  6993. @param f Path for which status should be obtained. null means the
  6994. root partition of the default file system.
  6995. @return a FsStatus object
  6996. @throws AccessControlException If access is denied
  6997. @throws FileNotFoundException If <code>f</code> does not exist
  6998. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6999. not supported
  7000. @throws IOException If an I/O error occurred
  7001. Exceptions applicable to file systems accessed over RPC:
  7002. @throws RpcClientException If an exception occurred in the RPC client
  7003. @throws RpcServerException If an exception occurred in the RPC server
  7004. @throws UnexpectedServerException If server implementation throws
  7005. undeclared exception to RPC server]]>
  7006. </doc>
  7007. </method>
  7008. <method name="createSymlink"
  7009. abstract="false" native="false" synchronized="false"
  7010. static="false" final="false" visibility="public"
  7011. deprecated="not deprecated">
  7012. <param name="target" type="org.apache.hadoop.fs.Path"/>
  7013. <param name="link" type="org.apache.hadoop.fs.Path"/>
  7014. <param name="createParent" type="boolean"/>
  7015. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7016. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7017. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7018. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7019. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7020. <exception name="IOException" type="java.io.IOException"/>
  7021. <doc>
  7022. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  7023. the symlink exits, the user does not have permission to create symlink,
  7024. or the underlying file system does not support symlinks.
  7025. Symlink permissions are ignored, access to a symlink is determined by
  7026. the permissions of the symlink target.
  7027. Symlinks in paths leading up to the final path component are resolved
  7028. transparently. If the final path component refers to a symlink some
  7029. functions operate on the symlink itself, these are:
  7030. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  7031. - rename(src, dst) - If src refers to a symlink, the symlink is
  7032. renamed. If dst refers to a symlink, the symlink is over-written.
  7033. - getLinkTarget(f) - Returns the target of the symlink.
  7034. - getFileLinkStatus(f) - Returns a FileStatus object describing
  7035. the symlink.
  7036. Some functions, create() and mkdir(), expect the final path component
  7037. does not exist. If they are given a path that refers to a symlink that
  7038. does exist they behave as if the path referred to an existing file or
  7039. directory. All other functions fully resolve, ie follow, the symlink.
  7040. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  7041. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  7042. getFsStatus, getFileStatus, exists, and listStatus.
  7043. Symlink targets are stored as given to createSymlink, assuming the
  7044. underlying file system is capable of storing a fully qualified URI.
  7045. Dangling symlinks are permitted. FileContext supports four types of
  7046. symlink targets, and resolves them as follows
  7047. <pre>
  7048. Given a path referring to a symlink of form:
  7049. <---X--->
  7050. fs://host/A/B/link
  7051. <-----Y----->
  7052. In this path X is the scheme and authority that identify the file system,
  7053. and Y is the path leading up to the final path component "link". If Y is
  7054. a symlink itself then let Y' be the target of Y and X' be the scheme and
  7055. authority of Y'. Symlink targets may:
  7056. 1. Fully qualified URIs
  7057. fs://hostX/A/B/file Resolved according to the target file system.
  7058. 2. Partially qualified URIs (eg scheme but no host)
  7059. fs:///A/B/file Resolved according to the target file system. Eg resolving
  7060. a symlink to hdfs:///A results in an exception because
  7061. HDFS URIs must be fully qualified, while a symlink to
  7062. file:///A will not since Hadoop's local file systems
  7063. require partially qualified URIs.
  7064. 3. Relative paths
  7065. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  7066. is "../B/file" then [Y'][path] is hdfs://host/B/file
  7067. 4. Absolute paths
  7068. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  7069. is "/file" then [X][path] is hdfs://host/file
  7070. </pre>
  7071. @param target the target of the symbolic link
  7072. @param link the path to be created that points to target
  7073. @param createParent if true then missing parent dirs are created if
  7074. false then parent must exist
  7075. @throws AccessControlException If access is denied
  7076. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  7077. @throws FileNotFoundException If <code>target</code> does not exist
  7078. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  7079. directory.
  7080. @throws UnsupportedFileSystemException If file system for
  7081. <code>target</code> or <code>link</code> is not supported
  7082. @throws IOException If an I/O error occurred]]>
  7083. </doc>
  7084. </method>
  7085. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7086. abstract="false" native="false" synchronized="false"
  7087. static="false" final="false" visibility="public"
  7088. deprecated="not deprecated">
  7089. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7090. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7091. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7092. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7093. <exception name="IOException" type="java.io.IOException"/>
  7094. <doc>
  7095. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7096. a directory.
  7097. @param f is the path
  7098. @return an iterator that traverses statuses of the files/directories
  7099. in the given path
  7100. @throws AccessControlException If access is denied
  7101. @throws FileNotFoundException If <code>f</code> does not exist
  7102. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7103. not supported
  7104. @throws IOException If an I/O error occurred
  7105. Exceptions applicable to file systems accessed over RPC:
  7106. @throws RpcClientException If an exception occurred in the RPC client
  7107. @throws RpcServerException If an exception occurred in the RPC server
  7108. @throws UnexpectedServerException If server implementation throws
  7109. undeclared exception to RPC server]]>
  7110. </doc>
  7111. </method>
  7112. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  7113. abstract="false" native="false" synchronized="false"
  7114. static="false" final="false" visibility="public"
  7115. deprecated="not deprecated">
  7116. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7117. <exception name="IOException" type="java.io.IOException"/>
  7118. <doc>
  7119. <![CDATA[@return an iterator over the corrupt files under the given path
  7120. (may contain duplicates if a file has more than one corrupt block)
  7121. @throws IOException]]>
  7122. </doc>
  7123. </method>
  7124. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7125. abstract="false" native="false" synchronized="false"
  7126. static="false" final="false" visibility="public"
  7127. deprecated="not deprecated">
  7128. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7129. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7130. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7131. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7132. <exception name="IOException" type="java.io.IOException"/>
  7133. <doc>
  7134. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7135. a directory.
  7136. Return the file's status and block locations If the path is a file.
  7137. If a returned status is a file, it contains the file's block locations.
  7138. @param f is the path
  7139. @return an iterator that traverses statuses of the files/directories
  7140. in the given path
  7141. If any IO exception (for example the input directory gets deleted while
  7142. listing is being executed), next() or hasNext() of the returned iterator
  7143. may throw a RuntimeException with the io exception as the cause.
  7144. @throws AccessControlException If access is denied
  7145. @throws FileNotFoundException If <code>f</code> does not exist
  7146. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7147. not supported
  7148. @throws IOException If an I/O error occurred
  7149. Exceptions applicable to file systems accessed over RPC:
  7150. @throws RpcClientException If an exception occurred in the RPC client
  7151. @throws RpcServerException If an exception occurred in the RPC server
  7152. @throws UnexpectedServerException If server implementation throws
  7153. undeclared exception to RPC server]]>
  7154. </doc>
  7155. </method>
  7156. <method name="deleteOnExit" return="boolean"
  7157. abstract="false" native="false" synchronized="false"
  7158. static="false" final="false" visibility="public"
  7159. deprecated="not deprecated">
  7160. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7161. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7162. <exception name="IOException" type="java.io.IOException"/>
  7163. <doc>
  7164. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7165. @param f the existing path to delete.
  7166. @return true if deleteOnExit is successful, otherwise false.
  7167. @throws AccessControlException If access is denied
  7168. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7169. not supported
  7170. @throws IOException If an I/O error occurred
  7171. Exceptions applicable to file systems accessed over RPC:
  7172. @throws RpcClientException If an exception occurred in the RPC client
  7173. @throws RpcServerException If an exception occurred in the RPC server
  7174. @throws UnexpectedServerException If server implementation throws
  7175. undeclared exception to RPC server]]>
  7176. </doc>
  7177. </method>
  7178. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7179. abstract="false" native="false" synchronized="false"
  7180. static="false" final="false" visibility="public"
  7181. deprecated="not deprecated">
  7182. </method>
  7183. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7184. abstract="false" native="false" synchronized="false"
  7185. static="false" final="false" visibility="protected"
  7186. deprecated="not deprecated">
  7187. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7188. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7189. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7190. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7191. <exception name="IOException" type="java.io.IOException"/>
  7192. <doc>
  7193. <![CDATA[Resolves all symbolic links in the specified path.
  7194. Returns the new path object.]]>
  7195. </doc>
  7196. </method>
  7197. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7198. abstract="false" native="false" synchronized="false"
  7199. static="false" final="false" visibility="protected"
  7200. deprecated="not deprecated">
  7201. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7202. <exception name="IOException" type="java.io.IOException"/>
  7203. <doc>
  7204. <![CDATA[Resolves all symbolic links in the specified path leading up
  7205. to, but not including the final path component.
  7206. @param f path to resolve
  7207. @return the new path object.]]>
  7208. </doc>
  7209. </method>
  7210. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7211. abstract="false" native="false" synchronized="false"
  7212. static="true" final="false" visibility="public"
  7213. deprecated="not deprecated">
  7214. <param name="uri" type="java.net.URI"/>
  7215. <doc>
  7216. <![CDATA[Get the statistics for a particular file system
  7217. @param uri
  7218. the uri to lookup the statistics. Only scheme and authority part
  7219. of the uri are used as the key to store and lookup.
  7220. @return a statistics object]]>
  7221. </doc>
  7222. </method>
  7223. <method name="clearStatistics"
  7224. abstract="false" native="false" synchronized="false"
  7225. static="true" final="false" visibility="public"
  7226. deprecated="not deprecated">
  7227. <doc>
  7228. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7229. systems.]]>
  7230. </doc>
  7231. </method>
  7232. <method name="printStatistics"
  7233. abstract="false" native="false" synchronized="false"
  7234. static="true" final="false" visibility="public"
  7235. deprecated="not deprecated">
  7236. <doc>
  7237. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7238. scheme and authority.]]>
  7239. </doc>
  7240. </method>
  7241. <method name="getAllStatistics" return="java.util.Map"
  7242. abstract="false" native="false" synchronized="false"
  7243. static="true" final="false" visibility="public"
  7244. deprecated="not deprecated">
  7245. <doc>
  7246. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7247. consists of scheme and authority for the filesystem.]]>
  7248. </doc>
  7249. </method>
  7250. <method name="getDelegationTokens" return="java.util.List"
  7251. abstract="false" native="false" synchronized="false"
  7252. static="false" final="false" visibility="public"
  7253. deprecated="not deprecated">
  7254. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7255. <param name="renewer" type="java.lang.String"/>
  7256. <exception name="IOException" type="java.io.IOException"/>
  7257. <doc>
  7258. <![CDATA[Get delegation tokens for the file systems accessed for a given
  7259. path.
  7260. @param p Path for which delegations tokens are requested.
  7261. @param renewer the account name that is allowed to renew the token.
  7262. @return List of delegation tokens.
  7263. @throws IOException]]>
  7264. </doc>
  7265. </method>
  7266. <method name="modifyAclEntries"
  7267. abstract="false" native="false" synchronized="false"
  7268. static="false" final="false" visibility="public"
  7269. deprecated="not deprecated">
  7270. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7271. <param name="aclSpec" type="java.util.List"/>
  7272. <exception name="IOException" type="java.io.IOException"/>
  7273. <doc>
  7274. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7275. entries or modify the permissions on existing ACL entries. All existing
  7276. ACL entries that are not specified in this call are retained without
  7277. changes. (Modifications are merged into the current ACL.)
  7278. @param path Path to modify
  7279. @param aclSpec List<AclEntry> describing modifications
  7280. @throws IOException if an ACL could not be modified]]>
  7281. </doc>
  7282. </method>
  7283. <method name="removeAclEntries"
  7284. abstract="false" native="false" synchronized="false"
  7285. static="false" final="false" visibility="public"
  7286. deprecated="not deprecated">
  7287. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7288. <param name="aclSpec" type="java.util.List"/>
  7289. <exception name="IOException" type="java.io.IOException"/>
  7290. <doc>
  7291. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7292. retained.
  7293. @param path Path to modify
  7294. @param aclSpec List<AclEntry> describing entries to remove
  7295. @throws IOException if an ACL could not be modified]]>
  7296. </doc>
  7297. </method>
  7298. <method name="removeDefaultAcl"
  7299. abstract="false" native="false" synchronized="false"
  7300. static="false" final="false" visibility="public"
  7301. deprecated="not deprecated">
  7302. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7303. <exception name="IOException" type="java.io.IOException"/>
  7304. <doc>
  7305. <![CDATA[Removes all default ACL entries from files and directories.
  7306. @param path Path to modify
  7307. @throws IOException if an ACL could not be modified]]>
  7308. </doc>
  7309. </method>
  7310. <method name="removeAcl"
  7311. abstract="false" native="false" synchronized="false"
  7312. static="false" final="false" visibility="public"
  7313. deprecated="not deprecated">
  7314. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7315. <exception name="IOException" type="java.io.IOException"/>
  7316. <doc>
  7317. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7318. for user, group, and others are retained for compatibility with permission
  7319. bits.
  7320. @param path Path to modify
  7321. @throws IOException if an ACL could not be removed]]>
  7322. </doc>
  7323. </method>
  7324. <method name="setAcl"
  7325. abstract="false" native="false" synchronized="false"
  7326. static="false" final="false" visibility="public"
  7327. deprecated="not deprecated">
  7328. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7329. <param name="aclSpec" type="java.util.List"/>
  7330. <exception name="IOException" type="java.io.IOException"/>
  7331. <doc>
  7332. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7333. entries.
  7334. @param path Path to modify
  7335. @param aclSpec List<AclEntry> describing modifications, must include entries
  7336. for user, group, and others for compatibility with permission bits.
  7337. @throws IOException if an ACL could not be modified]]>
  7338. </doc>
  7339. </method>
  7340. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7341. abstract="false" native="false" synchronized="false"
  7342. static="false" final="false" visibility="public"
  7343. deprecated="not deprecated">
  7344. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7345. <exception name="IOException" type="java.io.IOException"/>
  7346. <doc>
  7347. <![CDATA[Gets the ACLs of files and directories.
  7348. @param path Path to get
  7349. @return RemoteIterator<AclStatus> which returns each AclStatus
  7350. @throws IOException if an ACL could not be read]]>
  7351. </doc>
  7352. </method>
  7353. <method name="setXAttr"
  7354. abstract="false" native="false" synchronized="false"
  7355. static="false" final="false" visibility="public"
  7356. deprecated="not deprecated">
  7357. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7358. <param name="name" type="java.lang.String"/>
  7359. <param name="value" type="byte[]"/>
  7360. <exception name="IOException" type="java.io.IOException"/>
  7361. <doc>
  7362. <![CDATA[Set an xattr of a file or directory.
  7363. The name must be prefixed with the namespace followed by ".". For example,
  7364. "user.attr".
  7365. <p/>
  7366. Refer to the HDFS extended attributes user documentation for details.
  7367. @param path Path to modify
  7368. @param name xattr name.
  7369. @param value xattr value.
  7370. @throws IOException]]>
  7371. </doc>
  7372. </method>
  7373. <method name="setXAttr"
  7374. abstract="false" native="false" synchronized="false"
  7375. static="false" final="false" visibility="public"
  7376. deprecated="not deprecated">
  7377. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7378. <param name="name" type="java.lang.String"/>
  7379. <param name="value" type="byte[]"/>
  7380. <param name="flag" type="java.util.EnumSet"/>
  7381. <exception name="IOException" type="java.io.IOException"/>
  7382. <doc>
  7383. <![CDATA[Set an xattr of a file or directory.
  7384. The name must be prefixed with the namespace followed by ".". For example,
  7385. "user.attr".
  7386. <p/>
  7387. Refer to the HDFS extended attributes user documentation for details.
  7388. @param path Path to modify
  7389. @param name xattr name.
  7390. @param value xattr value.
  7391. @param flag xattr set flag
  7392. @throws IOException]]>
  7393. </doc>
  7394. </method>
  7395. <method name="getXAttr" return="byte[]"
  7396. abstract="false" native="false" synchronized="false"
  7397. static="false" final="false" visibility="public"
  7398. deprecated="not deprecated">
  7399. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7400. <param name="name" type="java.lang.String"/>
  7401. <exception name="IOException" type="java.io.IOException"/>
  7402. <doc>
  7403. <![CDATA[Get an xattr for a file or directory.
  7404. The name must be prefixed with the namespace followed by ".". For example,
  7405. "user.attr".
  7406. <p/>
  7407. Refer to the HDFS extended attributes user documentation for details.
  7408. @param path Path to get extended attribute
  7409. @param name xattr name.
  7410. @return byte[] xattr value.
  7411. @throws IOException]]>
  7412. </doc>
  7413. </method>
  7414. <method name="getXAttrs" return="java.util.Map"
  7415. abstract="false" native="false" synchronized="false"
  7416. static="false" final="false" visibility="public"
  7417. deprecated="not deprecated">
  7418. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7419. <exception name="IOException" type="java.io.IOException"/>
  7420. <doc>
  7421. <![CDATA[Get all of the xattrs for a file or directory.
  7422. Only those xattrs for which the logged-in user has permissions to view
  7423. are returned.
  7424. <p/>
  7425. Refer to the HDFS extended attributes user documentation for details.
  7426. @param path Path to get extended attributes
  7427. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7428. @throws IOException]]>
  7429. </doc>
  7430. </method>
  7431. <method name="getXAttrs" return="java.util.Map"
  7432. abstract="false" native="false" synchronized="false"
  7433. static="false" final="false" visibility="public"
  7434. deprecated="not deprecated">
  7435. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7436. <param name="names" type="java.util.List"/>
  7437. <exception name="IOException" type="java.io.IOException"/>
  7438. <doc>
  7439. <![CDATA[Get all of the xattrs for a file or directory.
  7440. Only those xattrs for which the logged-in user has permissions to view
  7441. are returned.
  7442. <p/>
  7443. Refer to the HDFS extended attributes user documentation for details.
  7444. @param path Path to get extended attributes
  7445. @param names XAttr names.
  7446. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7447. @throws IOException]]>
  7448. </doc>
  7449. </method>
  7450. <method name="removeXAttr"
  7451. abstract="false" native="false" synchronized="false"
  7452. static="false" final="false" visibility="public"
  7453. deprecated="not deprecated">
  7454. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7455. <param name="name" type="java.lang.String"/>
  7456. <exception name="IOException" type="java.io.IOException"/>
  7457. <doc>
  7458. <![CDATA[Remove an xattr of a file or directory.
  7459. The name must be prefixed with the namespace followed by ".". For example,
  7460. "user.attr".
  7461. <p/>
  7462. Refer to the HDFS extended attributes user documentation for details.
  7463. @param path Path to remove extended attribute
  7464. @param name xattr name
  7465. @throws IOException]]>
  7466. </doc>
  7467. </method>
  7468. <method name="listXAttrs" return="java.util.List"
  7469. abstract="false" native="false" synchronized="false"
  7470. static="false" final="false" visibility="public"
  7471. deprecated="not deprecated">
  7472. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7473. <exception name="IOException" type="java.io.IOException"/>
  7474. <doc>
  7475. <![CDATA[Get all of the xattr names for a file or directory.
  7476. Only those xattr names which the logged-in user has permissions to view
  7477. are returned.
  7478. <p/>
  7479. Refer to the HDFS extended attributes user documentation for details.
  7480. @param path Path to get extended attributes
  7481. @return List<String> of the XAttr names of the file or directory
  7482. @throws IOException]]>
  7483. </doc>
  7484. </method>
  7485. <field name="LOG" type="org.apache.commons.logging.Log"
  7486. transient="false" volatile="false"
  7487. static="true" final="true" visibility="public"
  7488. deprecated="not deprecated">
  7489. </field>
  7490. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7491. transient="false" volatile="false"
  7492. static="true" final="true" visibility="public"
  7493. deprecated="not deprecated">
  7494. <doc>
  7495. <![CDATA[Default permission for directory and symlink
  7496. In previous versions, this default permission was also used to
  7497. create files, so files created end up with ugo+x permission.
  7498. See HADOOP-9155 for detail.
  7499. Two new constants are added to solve this, please use
  7500. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  7501. {@link FileContext#FILE_DEFAULT_PERM} for file.
  7502. This constant is kept for compatibility.]]>
  7503. </doc>
  7504. </field>
  7505. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7506. transient="false" volatile="false"
  7507. static="true" final="true" visibility="public"
  7508. deprecated="not deprecated">
  7509. <doc>
  7510. <![CDATA[Default permission for directory]]>
  7511. </doc>
  7512. </field>
  7513. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7514. transient="false" volatile="false"
  7515. static="true" final="true" visibility="public"
  7516. deprecated="not deprecated">
  7517. <doc>
  7518. <![CDATA[Default permission for file]]>
  7519. </doc>
  7520. </field>
  7521. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  7522. transient="false" volatile="false"
  7523. static="true" final="true" visibility="public"
  7524. deprecated="not deprecated">
  7525. <doc>
  7526. <![CDATA[Priority of the FileContext shutdown hook.]]>
  7527. </doc>
  7528. </field>
  7529. <doc>
  7530. <![CDATA[The FileContext class provides an interface to the application writer for
  7531. using the Hadoop file system.
  7532. It provides a set of methods for the usual operation: create, open,
  7533. list, etc
  7534. <p>
  7535. <b> *** Path Names *** </b>
  7536. <p>
  7537. The Hadoop file system supports a URI name space and URI names.
  7538. It offers a forest of file systems that can be referenced using fully
  7539. qualified URIs.
  7540. Two common Hadoop file systems implementations are
  7541. <ul>
  7542. <li> the local file system: file:///path
  7543. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  7544. </ul>
  7545. While URI names are very flexible, it requires knowing the name or address
  7546. of the server. For convenience one often wants to access the default system
  7547. in one's environment without knowing its name/address. This has an
  7548. additional benefit that it allows one to change one's default fs
  7549. (e.g. admin moves application from cluster1 to cluster2).
  7550. <p>
  7551. To facilitate this, Hadoop supports a notion of a default file system.
  7552. The user can set his default file system, although this is
  7553. typically set up for you in your environment via your default config.
  7554. A default file system implies a default scheme and authority; slash-relative
  7555. names (such as /for/bar) are resolved relative to that default FS.
  7556. Similarly a user can also have working-directory-relative names (i.e. names
  7557. not starting with a slash). While the working directory is generally in the
  7558. same default FS, the wd can be in a different FS.
  7559. <p>
  7560. Hence Hadoop path names can be one of:
  7561. <ul>
  7562. <li> fully qualified URI: scheme://authority/path
  7563. <li> slash relative names: /path relative to the default file system
  7564. <li> wd-relative names: path relative to the working dir
  7565. </ul>
  7566. Relative paths with scheme (scheme:foo/bar) are illegal.
  7567. <p>
  7568. <b>****The Role of the FileContext and configuration defaults****</b>
  7569. <p>
  7570. The FileContext provides file namespace context for resolving file names;
  7571. it also contains the umask for permissions, In that sense it is like the
  7572. per-process file-related state in Unix system.
  7573. These two properties
  7574. <ul>
  7575. <li> default file system i.e your slash)
  7576. <li> umask
  7577. </ul>
  7578. in general, are obtained from the default configuration file
  7579. in your environment, (@see {@link Configuration}).
  7580. No other configuration parameters are obtained from the default config as
  7581. far as the file context layer is concerned. All file system instances
  7582. (i.e. deployments of file systems) have default properties; we call these
  7583. server side (SS) defaults. Operation like create allow one to select many
  7584. properties: either pass them in as explicit parameters or use
  7585. the SS properties.
  7586. <p>
  7587. The file system related SS defaults are
  7588. <ul>
  7589. <li> the home directory (default is "/user/userName")
  7590. <li> the initial wd (only for local fs)
  7591. <li> replication factor
  7592. <li> block size
  7593. <li> buffer size
  7594. <li> encryptDataTransfer
  7595. <li> checksum option. (checksumType and bytesPerChecksum)
  7596. </ul>
  7597. <p>
  7598. <b> *** Usage Model for the FileContext class *** </b>
  7599. <p>
  7600. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  7601. Unspecified values come from core-defaults.xml in the release jar.
  7602. <ul>
  7603. <li> myFContext = FileContext.getFileContext(); // uses the default config
  7604. // which has your default FS
  7605. <li> myFContext.create(path, ...);
  7606. <li> myFContext.setWorkingDir(path)
  7607. <li> myFContext.open (path, ...);
  7608. </ul>
  7609. Example 2: Get a FileContext with a specific URI as the default FS
  7610. <ul>
  7611. <li> myFContext = FileContext.getFileContext(URI)
  7612. <li> myFContext.create(path, ...);
  7613. ...
  7614. </ul>
  7615. Example 3: FileContext with local file system as the default
  7616. <ul>
  7617. <li> myFContext = FileContext.getLocalFSFileContext()
  7618. <li> myFContext.create(path, ...);
  7619. <li> ...
  7620. </ul>
  7621. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7622. Generally you should not need use a config unless you are doing
  7623. <ul>
  7624. <li> configX = someConfigSomeOnePassedToYou.
  7625. <li> myFContext = getFileContext(configX); // configX is not changed,
  7626. // is passed down
  7627. <li> myFContext.create(path, ...);
  7628. <li>...
  7629. </ul>]]>
  7630. </doc>
  7631. </class>
  7632. <!-- end class org.apache.hadoop.fs.FileContext -->
  7633. <!-- start class org.apache.hadoop.fs.FileContext.Util -->
  7634. <class name="FileContext.Util" extends="java.lang.Object"
  7635. abstract="false"
  7636. static="false" final="false" visibility="public"
  7637. deprecated="not deprecated">
  7638. <constructor name="FileContext.Util"
  7639. static="false" final="false" visibility="public"
  7640. deprecated="not deprecated">
  7641. </constructor>
  7642. <method name="exists" return="boolean"
  7643. abstract="false" native="false" synchronized="false"
  7644. static="false" final="false" visibility="public"
  7645. deprecated="not deprecated">
  7646. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7647. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7648. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7649. <exception name="IOException" type="java.io.IOException"/>
  7650. <doc>
  7651. <![CDATA[Does the file exist?
  7652. Note: Avoid using this method if you already have FileStatus in hand.
  7653. Instead reuse the FileStatus
  7654. @param f the file or dir to be checked
  7655. @throws AccessControlException If access is denied
  7656. @throws IOException If an I/O error occurred
  7657. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7658. not supported
  7659. Exceptions applicable to file systems accessed over RPC:
  7660. @throws RpcClientException If an exception occurred in the RPC client
  7661. @throws RpcServerException If an exception occurred in the RPC server
  7662. @throws UnexpectedServerException If server implementation throws
  7663. undeclared exception to RPC server]]>
  7664. </doc>
  7665. </method>
  7666. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  7667. abstract="false" native="false" synchronized="false"
  7668. static="false" final="false" visibility="public"
  7669. deprecated="not deprecated">
  7670. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7671. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7672. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7673. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7674. <exception name="IOException" type="java.io.IOException"/>
  7675. <doc>
  7676. <![CDATA[Return the {@link ContentSummary} of path f.
  7677. @param f path
  7678. @return the {@link ContentSummary} of path f.
  7679. @throws AccessControlException If access is denied
  7680. @throws FileNotFoundException If <code>f</code> does not exist
  7681. @throws UnsupportedFileSystemException If file system for
  7682. <code>f</code> is not supported
  7683. @throws IOException If an I/O error occurred
  7684. Exceptions applicable to file systems accessed over RPC:
  7685. @throws RpcClientException If an exception occurred in the RPC client
  7686. @throws RpcServerException If an exception occurred in the RPC server
  7687. @throws UnexpectedServerException If server implementation throws
  7688. undeclared exception to RPC server]]>
  7689. </doc>
  7690. </method>
  7691. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7692. abstract="false" native="false" synchronized="false"
  7693. static="false" final="false" visibility="public"
  7694. deprecated="not deprecated">
  7695. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  7696. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7697. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7698. <exception name="IOException" type="java.io.IOException"/>
  7699. <doc>
  7700. <![CDATA[See {@link #listStatus(Path[], PathFilter)}]]>
  7701. </doc>
  7702. </method>
  7703. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7704. abstract="false" native="false" synchronized="false"
  7705. static="false" final="false" visibility="public"
  7706. deprecated="not deprecated">
  7707. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7708. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  7709. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7710. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7711. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7712. <exception name="IOException" type="java.io.IOException"/>
  7713. <doc>
  7714. <![CDATA[Filter files/directories in the given path using the user-supplied path
  7715. filter.
  7716. @param f is the path name
  7717. @param filter is the user-supplied path filter
  7718. @return an array of FileStatus objects for the files under the given path
  7719. after applying the filter
  7720. @throws AccessControlException If access is denied
  7721. @throws FileNotFoundException If <code>f</code> does not exist
  7722. @throws UnsupportedFileSystemException If file system for
  7723. <code>pathPattern</code> is not supported
  7724. @throws IOException If an I/O error occurred
  7725. Exceptions applicable to file systems accessed over RPC:
  7726. @throws RpcClientException If an exception occurred in the RPC client
  7727. @throws RpcServerException If an exception occurred in the RPC server
  7728. @throws UnexpectedServerException If server implementation throws
  7729. undeclared exception to RPC server]]>
  7730. </doc>
  7731. </method>
  7732. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7733. abstract="false" native="false" synchronized="false"
  7734. static="false" final="false" visibility="public"
  7735. deprecated="not deprecated">
  7736. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  7737. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  7738. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7739. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7740. <exception name="IOException" type="java.io.IOException"/>
  7741. <doc>
  7742. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  7743. path filter.
  7744. @param files is a list of paths
  7745. @param filter is the filter
  7746. @return a list of statuses for the files under the given paths after
  7747. applying the filter
  7748. @throws AccessControlException If access is denied
  7749. @throws FileNotFoundException If a file in <code>files</code> does not
  7750. exist
  7751. @throws IOException If an I/O error occurred
  7752. Exceptions applicable to file systems accessed over RPC:
  7753. @throws RpcClientException If an exception occurred in the RPC client
  7754. @throws RpcServerException If an exception occurred in the RPC server
  7755. @throws UnexpectedServerException If server implementation throws
  7756. undeclared exception to RPC server]]>
  7757. </doc>
  7758. </method>
  7759. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7760. abstract="false" native="false" synchronized="false"
  7761. static="false" final="false" visibility="public"
  7762. deprecated="not deprecated">
  7763. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7764. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7765. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7766. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7767. <exception name="IOException" type="java.io.IOException"/>
  7768. <doc>
  7769. <![CDATA[List the statuses of the files/directories in the given path
  7770. if the path is a directory.
  7771. @param f is the path
  7772. @return an array that contains statuses of the files/directories
  7773. in the given path
  7774. @throws AccessControlException If access is denied
  7775. @throws FileNotFoundException If <code>f</code> does not exist
  7776. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7777. not supported
  7778. @throws IOException If an I/O error occurred
  7779. Exceptions applicable to file systems accessed over RPC:
  7780. @throws RpcClientException If an exception occurred in the RPC client
  7781. @throws RpcServerException If an exception occurred in the RPC server
  7782. @throws UnexpectedServerException If server implementation throws
  7783. undeclared exception to RPC server]]>
  7784. </doc>
  7785. </method>
  7786. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  7787. abstract="false" native="false" synchronized="false"
  7788. static="false" final="false" visibility="public"
  7789. deprecated="not deprecated">
  7790. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7791. <param name="recursive" type="boolean"/>
  7792. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7793. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7794. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7795. <exception name="IOException" type="java.io.IOException"/>
  7796. <doc>
  7797. <![CDATA[List the statuses and block locations of the files in the given path.
  7798. If the path is a directory,
  7799. if recursive is false, returns files in the directory;
  7800. if recursive is true, return files in the subtree rooted at the path.
  7801. The subtree is traversed in the depth-first order.
  7802. If the path is a file, return the file's status and block locations.
  7803. Files across symbolic links are also returned.
  7804. @param f is the path
  7805. @param recursive if the subdirectories need to be traversed recursively
  7806. @return an iterator that traverses statuses of the files
  7807. If any IO exception (for example a sub-directory gets deleted while
  7808. listing is being executed), next() or hasNext() of the returned iterator
  7809. may throw a RuntimeException with the IO exception as the cause.
  7810. @throws AccessControlException If access is denied
  7811. @throws FileNotFoundException If <code>f</code> does not exist
  7812. @throws UnsupportedFileSystemException If file system for <code>f</code>
  7813. is not supported
  7814. @throws IOException If an I/O error occurred
  7815. Exceptions applicable to file systems accessed over RPC:
  7816. @throws RpcClientException If an exception occurred in the RPC client
  7817. @throws RpcServerException If an exception occurred in the RPC server
  7818. @throws UnexpectedServerException If server implementation throws
  7819. undeclared exception to RPC server]]>
  7820. </doc>
  7821. </method>
  7822. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7823. abstract="false" native="false" synchronized="false"
  7824. static="false" final="false" visibility="public"
  7825. deprecated="not deprecated">
  7826. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  7827. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7828. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7829. <exception name="IOException" type="java.io.IOException"/>
  7830. <doc>
  7831. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  7832. files. Results are sorted by their names.
  7833. <p>
  7834. A filename pattern is composed of <i>regular</i> characters and
  7835. <i>special pattern matching</i> characters, which are:
  7836. <dl>
  7837. <dd>
  7838. <dl>
  7839. <p>
  7840. <dt> <tt> ? </tt>
  7841. <dd> Matches any single character.
  7842. <p>
  7843. <dt> <tt> * </tt>
  7844. <dd> Matches zero or more characters.
  7845. <p>
  7846. <dt> <tt> [<i>abc</i>] </tt>
  7847. <dd> Matches a single character from character set
  7848. <tt>{<i>a,b,c</i>}</tt>.
  7849. <p>
  7850. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  7851. <dd> Matches a single character from the character range
  7852. <tt>{<i>a...b</i>}</tt>. Note: character <tt><i>a</i></tt> must be
  7853. lexicographically less than or equal to character <tt><i>b</i></tt>.
  7854. <p>
  7855. <dt> <tt> [^<i>a</i>] </tt>
  7856. <dd> Matches a single char that is not from character set or range
  7857. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  7858. immediately to the right of the opening bracket.
  7859. <p>
  7860. <dt> <tt> \<i>c</i> </tt>
  7861. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  7862. <p>
  7863. <dt> <tt> {ab,cd} </tt>
  7864. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  7865. <p>
  7866. <dt> <tt> {ab,c{de,fh}} </tt>
  7867. <dd> Matches a string from string set <tt>{<i>ab, cde, cfh</i>}</tt>
  7868. </dl>
  7869. </dd>
  7870. </dl>
  7871. @param pathPattern a regular expression specifying a pth pattern
  7872. @return an array of paths that match the path pattern
  7873. @throws AccessControlException If access is denied
  7874. @throws UnsupportedFileSystemException If file system for
  7875. <code>pathPattern</code> is not supported
  7876. @throws IOException If an I/O error occurred
  7877. Exceptions applicable to file systems accessed over RPC:
  7878. @throws RpcClientException If an exception occurred in the RPC client
  7879. @throws RpcServerException If an exception occurred in the RPC server
  7880. @throws UnexpectedServerException If server implementation throws
  7881. undeclared exception to RPC server]]>
  7882. </doc>
  7883. </method>
  7884. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7885. abstract="false" native="false" synchronized="false"
  7886. static="false" final="false" visibility="public"
  7887. deprecated="not deprecated">
  7888. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  7889. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  7890. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7891. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7892. <exception name="IOException" type="java.io.IOException"/>
  7893. <doc>
  7894. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  7895. and is accepted by the user-supplied path filter. Results are sorted by
  7896. their path names.
  7897. Return null if pathPattern has no glob and the path does not exist.
  7898. Return an empty array if pathPattern has a glob and no path matches it.
  7899. @param pathPattern regular expression specifying the path pattern
  7900. @param filter user-supplied path filter
  7901. @return an array of FileStatus objects
  7902. @throws AccessControlException If access is denied
  7903. @throws UnsupportedFileSystemException If file system for
  7904. <code>pathPattern</code> is not supported
  7905. @throws IOException If an I/O error occurred
  7906. Exceptions applicable to file systems accessed over RPC:
  7907. @throws RpcClientException If an exception occurred in the RPC client
  7908. @throws RpcServerException If an exception occurred in the RPC server
  7909. @throws UnexpectedServerException If server implementation throws
  7910. undeclared exception to RPC server]]>
  7911. </doc>
  7912. </method>
  7913. <method name="copy" return="boolean"
  7914. abstract="false" native="false" synchronized="false"
  7915. static="false" final="false" visibility="public"
  7916. deprecated="not deprecated">
  7917. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7918. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7919. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7920. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7921. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7922. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7923. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7924. <exception name="IOException" type="java.io.IOException"/>
  7925. <doc>
  7926. <![CDATA[Copy file from src to dest. See
  7927. {@link #copy(Path, Path, boolean, boolean)}]]>
  7928. </doc>
  7929. </method>
  7930. <method name="copy" return="boolean"
  7931. abstract="false" native="false" synchronized="false"
  7932. static="false" final="false" visibility="public"
  7933. deprecated="not deprecated">
  7934. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7935. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7936. <param name="deleteSource" type="boolean"/>
  7937. <param name="overwrite" type="boolean"/>
  7938. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7939. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7940. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7941. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7942. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7943. <exception name="IOException" type="java.io.IOException"/>
  7944. <doc>
  7945. <![CDATA[Copy from src to dst, optionally deleting src and overwriting dst.
  7946. @param src
  7947. @param dst
  7948. @param deleteSource - delete src if true
  7949. @param overwrite overwrite dst if true; throw IOException if dst exists
  7950. and overwrite is false.
  7951. @return true if copy is successful
  7952. @throws AccessControlException If access is denied
  7953. @throws FileAlreadyExistsException If <code>dst</code> already exists
  7954. @throws FileNotFoundException If <code>src</code> does not exist
  7955. @throws ParentNotDirectoryException If parent of <code>dst</code> is not
  7956. a directory
  7957. @throws UnsupportedFileSystemException If file system for
  7958. <code>src</code> or <code>dst</code> is not supported
  7959. @throws IOException If an I/O error occurred
  7960. Exceptions applicable to file systems accessed over RPC:
  7961. @throws RpcClientException If an exception occurred in the RPC client
  7962. @throws RpcServerException If an exception occurred in the RPC server
  7963. @throws UnexpectedServerException If server implementation throws
  7964. undeclared exception to RPC server
  7965. RuntimeExceptions:
  7966. @throws InvalidPathException If path <code>dst</code> is invalid]]>
  7967. </doc>
  7968. </method>
  7969. <doc>
  7970. <![CDATA[Utility/library methods built over the basic FileContext methods.
  7971. Since this are library functions, the oprtation are not atomic
  7972. and some of them may partially complete if other threads are making
  7973. changes to the same part of the name space.]]>
  7974. </doc>
  7975. </class>
  7976. <!-- end class org.apache.hadoop.fs.FileContext.Util -->
  7977. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7978. <class name="FileStatus" extends="java.lang.Object"
  7979. abstract="false"
  7980. static="false" final="false" visibility="public"
  7981. deprecated="not deprecated">
  7982. <implements name="org.apache.hadoop.io.Writable"/>
  7983. <implements name="java.lang.Comparable"/>
  7984. <constructor name="FileStatus"
  7985. static="false" final="false" visibility="public"
  7986. deprecated="not deprecated">
  7987. </constructor>
  7988. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7989. static="false" final="false" visibility="public"
  7990. deprecated="not deprecated">
  7991. </constructor>
  7992. <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"
  7993. static="false" final="false" visibility="public"
  7994. deprecated="not deprecated">
  7995. <doc>
  7996. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7997. </doc>
  7998. </constructor>
  7999. <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"
  8000. static="false" final="false" visibility="public"
  8001. deprecated="not deprecated">
  8002. </constructor>
  8003. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  8004. static="false" final="false" visibility="public"
  8005. deprecated="not deprecated">
  8006. <exception name="IOException" type="java.io.IOException"/>
  8007. <doc>
  8008. <![CDATA[Copy constructor.
  8009. @param other FileStatus to copy]]>
  8010. </doc>
  8011. </constructor>
  8012. <method name="getLen" return="long"
  8013. abstract="false" native="false" synchronized="false"
  8014. static="false" final="false" visibility="public"
  8015. deprecated="not deprecated">
  8016. <doc>
  8017. <![CDATA[Get the length of this file, in bytes.
  8018. @return the length of this file, in bytes.]]>
  8019. </doc>
  8020. </method>
  8021. <method name="isFile" return="boolean"
  8022. abstract="false" native="false" synchronized="false"
  8023. static="false" final="false" visibility="public"
  8024. deprecated="not deprecated">
  8025. <doc>
  8026. <![CDATA[Is this a file?
  8027. @return true if this is a file]]>
  8028. </doc>
  8029. </method>
  8030. <method name="isDirectory" return="boolean"
  8031. abstract="false" native="false" synchronized="false"
  8032. static="false" final="false" visibility="public"
  8033. deprecated="not deprecated">
  8034. <doc>
  8035. <![CDATA[Is this a directory?
  8036. @return true if this is a directory]]>
  8037. </doc>
  8038. </method>
  8039. <method name="isDir" return="boolean"
  8040. abstract="false" native="false" synchronized="false"
  8041. static="false" final="false" visibility="public"
  8042. deprecated="Use {@link FileStatus#isFile()},
  8043. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8044. instead.">
  8045. <doc>
  8046. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  8047. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8048. @return true if this is a directory.
  8049. @deprecated Use {@link FileStatus#isFile()},
  8050. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8051. instead.]]>
  8052. </doc>
  8053. </method>
  8054. <method name="isSymlink" return="boolean"
  8055. abstract="false" native="false" synchronized="false"
  8056. static="false" final="false" visibility="public"
  8057. deprecated="not deprecated">
  8058. <doc>
  8059. <![CDATA[Is this a symbolic link?
  8060. @return true if this is a symbolic link]]>
  8061. </doc>
  8062. </method>
  8063. <method name="getBlockSize" return="long"
  8064. abstract="false" native="false" synchronized="false"
  8065. static="false" final="false" visibility="public"
  8066. deprecated="not deprecated">
  8067. <doc>
  8068. <![CDATA[Get the block size of the file.
  8069. @return the number of bytes]]>
  8070. </doc>
  8071. </method>
  8072. <method name="getReplication" return="short"
  8073. abstract="false" native="false" synchronized="false"
  8074. static="false" final="false" visibility="public"
  8075. deprecated="not deprecated">
  8076. <doc>
  8077. <![CDATA[Get the replication factor of a file.
  8078. @return the replication factor of a file.]]>
  8079. </doc>
  8080. </method>
  8081. <method name="getModificationTime" return="long"
  8082. abstract="false" native="false" synchronized="false"
  8083. static="false" final="false" visibility="public"
  8084. deprecated="not deprecated">
  8085. <doc>
  8086. <![CDATA[Get the modification time of the file.
  8087. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  8088. </doc>
  8089. </method>
  8090. <method name="getAccessTime" return="long"
  8091. abstract="false" native="false" synchronized="false"
  8092. static="false" final="false" visibility="public"
  8093. deprecated="not deprecated">
  8094. <doc>
  8095. <![CDATA[Get the access time of the file.
  8096. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  8097. </doc>
  8098. </method>
  8099. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  8100. abstract="false" native="false" synchronized="false"
  8101. static="false" final="false" visibility="public"
  8102. deprecated="not deprecated">
  8103. <doc>
  8104. <![CDATA[Get FsPermission associated with the file.
  8105. @return permssion. If a filesystem does not have a notion of permissions
  8106. or if permissions could not be determined, then default
  8107. permissions equivalent of "rwxrwxrwx" is returned.]]>
  8108. </doc>
  8109. </method>
  8110. <method name="isEncrypted" return="boolean"
  8111. abstract="false" native="false" synchronized="false"
  8112. static="false" final="false" visibility="public"
  8113. deprecated="not deprecated">
  8114. <doc>
  8115. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  8116. @return true if the underlying file is encrypted.]]>
  8117. </doc>
  8118. </method>
  8119. <method name="getOwner" return="java.lang.String"
  8120. abstract="false" native="false" synchronized="false"
  8121. static="false" final="false" visibility="public"
  8122. deprecated="not deprecated">
  8123. <doc>
  8124. <![CDATA[Get the owner of the file.
  8125. @return owner of the file. The string could be empty if there is no
  8126. notion of owner of a file in a filesystem or if it could not
  8127. be determined (rare).]]>
  8128. </doc>
  8129. </method>
  8130. <method name="getGroup" return="java.lang.String"
  8131. abstract="false" native="false" synchronized="false"
  8132. static="false" final="false" visibility="public"
  8133. deprecated="not deprecated">
  8134. <doc>
  8135. <![CDATA[Get the group associated with the file.
  8136. @return group for the file. The string could be empty if there is no
  8137. notion of group of a file in a filesystem or if it could not
  8138. be determined (rare).]]>
  8139. </doc>
  8140. </method>
  8141. <method name="getPath" return="org.apache.hadoop.fs.Path"
  8142. abstract="false" native="false" synchronized="false"
  8143. static="false" final="false" visibility="public"
  8144. deprecated="not deprecated">
  8145. </method>
  8146. <method name="setPath"
  8147. abstract="false" native="false" synchronized="false"
  8148. static="false" final="false" visibility="public"
  8149. deprecated="not deprecated">
  8150. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8151. </method>
  8152. <method name="setPermission"
  8153. abstract="false" native="false" synchronized="false"
  8154. static="false" final="false" visibility="protected"
  8155. deprecated="not deprecated">
  8156. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8157. <doc>
  8158. <![CDATA[Sets permission.
  8159. @param permission if permission is null, default value is set]]>
  8160. </doc>
  8161. </method>
  8162. <method name="setOwner"
  8163. abstract="false" native="false" synchronized="false"
  8164. static="false" final="false" visibility="protected"
  8165. deprecated="not deprecated">
  8166. <param name="owner" type="java.lang.String"/>
  8167. <doc>
  8168. <![CDATA[Sets owner.
  8169. @param owner if it is null, default value is set]]>
  8170. </doc>
  8171. </method>
  8172. <method name="setGroup"
  8173. abstract="false" native="false" synchronized="false"
  8174. static="false" final="false" visibility="protected"
  8175. deprecated="not deprecated">
  8176. <param name="group" type="java.lang.String"/>
  8177. <doc>
  8178. <![CDATA[Sets group.
  8179. @param group if it is null, default value is set]]>
  8180. </doc>
  8181. </method>
  8182. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  8183. abstract="false" native="false" synchronized="false"
  8184. static="false" final="false" visibility="public"
  8185. deprecated="not deprecated">
  8186. <exception name="IOException" type="java.io.IOException"/>
  8187. <doc>
  8188. <![CDATA[@return The contents of the symbolic link.]]>
  8189. </doc>
  8190. </method>
  8191. <method name="setSymlink"
  8192. abstract="false" native="false" synchronized="false"
  8193. static="false" final="false" visibility="public"
  8194. deprecated="not deprecated">
  8195. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8196. </method>
  8197. <method name="write"
  8198. abstract="false" native="false" synchronized="false"
  8199. static="false" final="false" visibility="public"
  8200. deprecated="not deprecated">
  8201. <param name="out" type="java.io.DataOutput"/>
  8202. <exception name="IOException" type="java.io.IOException"/>
  8203. </method>
  8204. <method name="readFields"
  8205. abstract="false" native="false" synchronized="false"
  8206. static="false" final="false" visibility="public"
  8207. deprecated="not deprecated">
  8208. <param name="in" type="java.io.DataInput"/>
  8209. <exception name="IOException" type="java.io.IOException"/>
  8210. </method>
  8211. <method name="compareTo" return="int"
  8212. abstract="false" native="false" synchronized="false"
  8213. static="false" final="false" visibility="public"
  8214. deprecated="not deprecated">
  8215. <param name="o" type="java.lang.Object"/>
  8216. <doc>
  8217. <![CDATA[Compare this object to another object
  8218. @param o the object to be compared.
  8219. @return a negative integer, zero, or a positive integer as this object
  8220. is less than, equal to, or greater than the specified object.
  8221. @throws ClassCastException if the specified object's is not of
  8222. type FileStatus]]>
  8223. </doc>
  8224. </method>
  8225. <method name="equals" return="boolean"
  8226. abstract="false" native="false" synchronized="false"
  8227. static="false" final="false" visibility="public"
  8228. deprecated="not deprecated">
  8229. <param name="o" type="java.lang.Object"/>
  8230. <doc>
  8231. <![CDATA[Compare if this object is equal to another object
  8232. @param o the object to be compared.
  8233. @return true if two file status has the same path name; false if not.]]>
  8234. </doc>
  8235. </method>
  8236. <method name="hashCode" return="int"
  8237. abstract="false" native="false" synchronized="false"
  8238. static="false" final="false" visibility="public"
  8239. deprecated="not deprecated">
  8240. <doc>
  8241. <![CDATA[Returns a hash code value for the object, which is defined as
  8242. the hash code of the path name.
  8243. @return a hash code value for the path name.]]>
  8244. </doc>
  8245. </method>
  8246. <method name="toString" return="java.lang.String"
  8247. abstract="false" native="false" synchronized="false"
  8248. static="false" final="false" visibility="public"
  8249. deprecated="not deprecated">
  8250. </method>
  8251. <doc>
  8252. <![CDATA[Interface that represents the client side information for a file.]]>
  8253. </doc>
  8254. </class>
  8255. <!-- end class org.apache.hadoop.fs.FileStatus -->
  8256. <!-- start class org.apache.hadoop.fs.FileSystem -->
  8257. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  8258. abstract="true"
  8259. static="false" final="false" visibility="public"
  8260. deprecated="not deprecated">
  8261. <implements name="java.io.Closeable"/>
  8262. <constructor name="FileSystem"
  8263. static="false" final="false" visibility="protected"
  8264. deprecated="not deprecated">
  8265. </constructor>
  8266. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8267. abstract="false" native="false" synchronized="false"
  8268. static="true" final="false" visibility="public"
  8269. deprecated="not deprecated">
  8270. <param name="uri" type="java.net.URI"/>
  8271. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8272. <param name="user" type="java.lang.String"/>
  8273. <exception name="IOException" type="java.io.IOException"/>
  8274. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8275. <doc>
  8276. <![CDATA[Get a filesystem instance based on the uri, the passed
  8277. configuration and the user
  8278. @param uri of the filesystem
  8279. @param conf the configuration to use
  8280. @param user to perform the get as
  8281. @return the filesystem instance
  8282. @throws IOException
  8283. @throws InterruptedException]]>
  8284. </doc>
  8285. </method>
  8286. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8287. abstract="false" native="false" synchronized="false"
  8288. static="true" final="false" visibility="public"
  8289. deprecated="not deprecated">
  8290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8291. <exception name="IOException" type="java.io.IOException"/>
  8292. <doc>
  8293. <![CDATA[Returns the configured filesystem implementation.
  8294. @param conf the configuration to use]]>
  8295. </doc>
  8296. </method>
  8297. <method name="getDefaultUri" return="java.net.URI"
  8298. abstract="false" native="false" synchronized="false"
  8299. static="true" final="false" visibility="public"
  8300. deprecated="not deprecated">
  8301. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8302. <doc>
  8303. <![CDATA[Get the default filesystem URI from a configuration.
  8304. @param conf the configuration to use
  8305. @return the uri of the default filesystem]]>
  8306. </doc>
  8307. </method>
  8308. <method name="setDefaultUri"
  8309. abstract="false" native="false" synchronized="false"
  8310. static="true" final="false" visibility="public"
  8311. deprecated="not deprecated">
  8312. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8313. <param name="uri" type="java.net.URI"/>
  8314. <doc>
  8315. <![CDATA[Set the default filesystem URI in a configuration.
  8316. @param conf the configuration to alter
  8317. @param uri the new default filesystem uri]]>
  8318. </doc>
  8319. </method>
  8320. <method name="setDefaultUri"
  8321. abstract="false" native="false" synchronized="false"
  8322. static="true" final="false" visibility="public"
  8323. deprecated="not deprecated">
  8324. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8325. <param name="uri" type="java.lang.String"/>
  8326. <doc>
  8327. <![CDATA[Set the default filesystem URI in a configuration.
  8328. @param conf the configuration to alter
  8329. @param uri the new default filesystem uri]]>
  8330. </doc>
  8331. </method>
  8332. <method name="initialize"
  8333. abstract="false" native="false" synchronized="false"
  8334. static="false" final="false" visibility="public"
  8335. deprecated="not deprecated">
  8336. <param name="name" type="java.net.URI"/>
  8337. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8338. <exception name="IOException" type="java.io.IOException"/>
  8339. <doc>
  8340. <![CDATA[Called after a new FileSystem instance is constructed.
  8341. @param name a uri whose authority section names the host, port, etc.
  8342. for this FileSystem
  8343. @param conf the configuration]]>
  8344. </doc>
  8345. </method>
  8346. <method name="getScheme" return="java.lang.String"
  8347. abstract="false" native="false" synchronized="false"
  8348. static="false" final="false" visibility="public"
  8349. deprecated="not deprecated">
  8350. <doc>
  8351. <![CDATA[Return the protocol scheme for the FileSystem.
  8352. <p/>
  8353. This implementation throws an <code>UnsupportedOperationException</code>.
  8354. @return the protocol scheme for the FileSystem.]]>
  8355. </doc>
  8356. </method>
  8357. <method name="getUri" return="java.net.URI"
  8358. abstract="true" native="false" synchronized="false"
  8359. static="false" final="false" visibility="public"
  8360. deprecated="not deprecated">
  8361. <doc>
  8362. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  8363. </doc>
  8364. </method>
  8365. <method name="getCanonicalUri" return="java.net.URI"
  8366. abstract="false" native="false" synchronized="false"
  8367. static="false" final="false" visibility="protected"
  8368. deprecated="not deprecated">
  8369. <doc>
  8370. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  8371. The default implementation simply calls {@link #canonicalizeUri(URI)}
  8372. on the filesystem's own URI, so subclasses typically only need to
  8373. implement that method.
  8374. @see #canonicalizeUri(URI)]]>
  8375. </doc>
  8376. </method>
  8377. <method name="canonicalizeUri" return="java.net.URI"
  8378. abstract="false" native="false" synchronized="false"
  8379. static="false" final="false" visibility="protected"
  8380. deprecated="not deprecated">
  8381. <param name="uri" type="java.net.URI"/>
  8382. <doc>
  8383. <![CDATA[Canonicalize the given URI.
  8384. This is filesystem-dependent, but may for example consist of
  8385. canonicalizing the hostname using DNS and adding the default
  8386. port if not specified.
  8387. The default implementation simply fills in the default port if
  8388. not specified and if the filesystem has a default port.
  8389. @return URI
  8390. @see NetUtils#getCanonicalUri(URI, int)]]>
  8391. </doc>
  8392. </method>
  8393. <method name="getDefaultPort" return="int"
  8394. abstract="false" native="false" synchronized="false"
  8395. static="false" final="false" visibility="protected"
  8396. deprecated="not deprecated">
  8397. <doc>
  8398. <![CDATA[Get the default port for this file system.
  8399. @return the default port or 0 if there isn't one]]>
  8400. </doc>
  8401. </method>
  8402. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  8403. abstract="false" native="false" synchronized="false"
  8404. static="true" final="false" visibility="protected"
  8405. deprecated="not deprecated">
  8406. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  8407. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8408. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8409. <exception name="IOException" type="java.io.IOException"/>
  8410. </method>
  8411. <method name="getCanonicalServiceName" return="java.lang.String"
  8412. abstract="false" native="false" synchronized="false"
  8413. static="false" final="false" visibility="public"
  8414. deprecated="not deprecated">
  8415. <doc>
  8416. <![CDATA[Get a canonical service name for this file system. The token cache is
  8417. the only user of the canonical service name, and uses it to lookup this
  8418. filesystem's service tokens.
  8419. If file system provides a token of its own then it must have a canonical
  8420. name, otherwise canonical name can be null.
  8421. Default Impl: If the file system has child file systems
  8422. (such as an embedded file system) then it is assumed that the fs has no
  8423. tokens of its own and hence returns a null name; otherwise a service
  8424. name is built using Uri and port.
  8425. @return a service string that uniquely identifies this file system, null
  8426. if the filesystem does not implement tokens
  8427. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  8428. </doc>
  8429. </method>
  8430. <method name="getName" return="java.lang.String"
  8431. abstract="false" native="false" synchronized="false"
  8432. static="false" final="false" visibility="public"
  8433. deprecated="call #getUri() instead.">
  8434. <doc>
  8435. <![CDATA[@deprecated call #getUri() instead.]]>
  8436. </doc>
  8437. </method>
  8438. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8439. abstract="false" native="false" synchronized="false"
  8440. static="true" final="false" visibility="public"
  8441. deprecated="call #get(URI,Configuration) instead.">
  8442. <param name="name" type="java.lang.String"/>
  8443. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8444. <exception name="IOException" type="java.io.IOException"/>
  8445. <doc>
  8446. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  8447. </doc>
  8448. </method>
  8449. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8450. abstract="false" native="false" synchronized="false"
  8451. static="true" final="false" visibility="public"
  8452. deprecated="not deprecated">
  8453. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8454. <exception name="IOException" type="java.io.IOException"/>
  8455. <doc>
  8456. <![CDATA[Get the local file system.
  8457. @param conf the configuration to configure the file system with
  8458. @return a LocalFileSystem]]>
  8459. </doc>
  8460. </method>
  8461. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8462. abstract="false" native="false" synchronized="false"
  8463. static="true" final="false" visibility="public"
  8464. deprecated="not deprecated">
  8465. <param name="uri" type="java.net.URI"/>
  8466. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8467. <exception name="IOException" type="java.io.IOException"/>
  8468. <doc>
  8469. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  8470. of the URI determines a configuration property name,
  8471. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  8472. The entire URI is passed to the FileSystem instance's initialize method.]]>
  8473. </doc>
  8474. </method>
  8475. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8476. abstract="false" native="false" synchronized="false"
  8477. static="true" final="false" visibility="public"
  8478. deprecated="not deprecated">
  8479. <param name="uri" type="java.net.URI"/>
  8480. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8481. <param name="user" type="java.lang.String"/>
  8482. <exception name="IOException" type="java.io.IOException"/>
  8483. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8484. <doc>
  8485. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8486. passed user. Internally invokes {@link #newInstance(URI, Configuration)}
  8487. @param uri of the filesystem
  8488. @param conf the configuration to use
  8489. @param user to perform the get as
  8490. @return filesystem instance
  8491. @throws IOException
  8492. @throws InterruptedException]]>
  8493. </doc>
  8494. </method>
  8495. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8496. abstract="false" native="false" synchronized="false"
  8497. static="true" final="false" visibility="public"
  8498. deprecated="not deprecated">
  8499. <param name="uri" type="java.net.URI"/>
  8500. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8501. <exception name="IOException" type="java.io.IOException"/>
  8502. <doc>
  8503. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  8504. of the URI determines a configuration property name,
  8505. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  8506. The entire URI is passed to the FileSystem instance's initialize method.
  8507. This always returns a new FileSystem object.]]>
  8508. </doc>
  8509. </method>
  8510. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8511. abstract="false" native="false" synchronized="false"
  8512. static="true" final="false" visibility="public"
  8513. deprecated="not deprecated">
  8514. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8515. <exception name="IOException" type="java.io.IOException"/>
  8516. <doc>
  8517. <![CDATA[Returns a unique configured filesystem implementation.
  8518. This always returns a new FileSystem object.
  8519. @param conf the configuration to use]]>
  8520. </doc>
  8521. </method>
  8522. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8523. abstract="false" native="false" synchronized="false"
  8524. static="true" final="false" visibility="public"
  8525. deprecated="not deprecated">
  8526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8527. <exception name="IOException" type="java.io.IOException"/>
  8528. <doc>
  8529. <![CDATA[Get a unique local file system object
  8530. @param conf the configuration to configure the file system with
  8531. @return a LocalFileSystem
  8532. This always returns a new FileSystem object.]]>
  8533. </doc>
  8534. </method>
  8535. <method name="closeAll"
  8536. abstract="false" native="false" synchronized="false"
  8537. static="true" final="false" visibility="public"
  8538. deprecated="not deprecated">
  8539. <exception name="IOException" type="java.io.IOException"/>
  8540. <doc>
  8541. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  8542. used anymore.
  8543. @throws IOException]]>
  8544. </doc>
  8545. </method>
  8546. <method name="closeAllForUGI"
  8547. abstract="false" native="false" synchronized="false"
  8548. static="true" final="false" visibility="public"
  8549. deprecated="not deprecated">
  8550. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8551. <exception name="IOException" type="java.io.IOException"/>
  8552. <doc>
  8553. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  8554. are not used anymore.
  8555. @param ugi user group info to close
  8556. @throws IOException]]>
  8557. </doc>
  8558. </method>
  8559. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8560. abstract="false" native="false" synchronized="false"
  8561. static="false" final="false" visibility="public"
  8562. deprecated="not deprecated">
  8563. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8564. <doc>
  8565. <![CDATA[Make sure that a path specifies a FileSystem.
  8566. @param path to use]]>
  8567. </doc>
  8568. </method>
  8569. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  8570. abstract="false" native="false" synchronized="false"
  8571. static="false" final="false" visibility="public"
  8572. deprecated="not deprecated">
  8573. <param name="renewer" type="java.lang.String"/>
  8574. <exception name="IOException" type="java.io.IOException"/>
  8575. <doc>
  8576. <![CDATA[Get a new delegation token for this file system.
  8577. This is an internal method that should have been declared protected
  8578. but wasn't historically.
  8579. Callers should use {@link #addDelegationTokens(String, Credentials)}
  8580. @param renewer the account name that is allowed to renew the token.
  8581. @return a new delegation token
  8582. @throws IOException]]>
  8583. </doc>
  8584. </method>
  8585. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  8586. abstract="false" native="false" synchronized="false"
  8587. static="false" final="false" visibility="public"
  8588. deprecated="not deprecated">
  8589. <param name="renewer" type="java.lang.String"/>
  8590. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  8591. <exception name="IOException" type="java.io.IOException"/>
  8592. <doc>
  8593. <![CDATA[Obtain all delegation tokens used by this FileSystem that are not
  8594. already present in the given Credentials. Existing tokens will neither
  8595. be verified as valid nor having the given renewer. Missing tokens will
  8596. be acquired and added to the given Credentials.
  8597. Default Impl: works for simple fs with its own token
  8598. and also for an embedded fs whose tokens are those of its
  8599. children file system (i.e. the embedded fs has not tokens of its
  8600. own).
  8601. @param renewer the user allowed to renew the delegation tokens
  8602. @param credentials cache in which to add new delegation tokens
  8603. @return list of new delegation tokens
  8604. @throws IOException]]>
  8605. </doc>
  8606. </method>
  8607. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  8608. abstract="false" native="false" synchronized="false"
  8609. static="false" final="false" visibility="public"
  8610. deprecated="not deprecated">
  8611. <doc>
  8612. <![CDATA[Get all the immediate child FileSystems embedded in this FileSystem.
  8613. It does not recurse and get grand children. If a FileSystem
  8614. has multiple child FileSystems, then it should return a unique list
  8615. of those FileSystems. Default is to return null to signify no children.
  8616. @return FileSystems used by this FileSystem]]>
  8617. </doc>
  8618. </method>
  8619. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8620. abstract="false" native="false" synchronized="false"
  8621. static="true" final="false" visibility="public"
  8622. deprecated="not deprecated">
  8623. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8624. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8625. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8626. <exception name="IOException" type="java.io.IOException"/>
  8627. <doc>
  8628. <![CDATA[create a file with the provided permission
  8629. The permission of the file is set to be the provided permission as in
  8630. setPermission, not permission&~umask
  8631. It is implemented using two RPCs. It is understood that it is inefficient,
  8632. but the implementation is thread-safe. The other option is to change the
  8633. value of umask in configuration to be 0, but it is not thread-safe.
  8634. @param fs file system handle
  8635. @param file the name of the file to be created
  8636. @param permission the permission of the file
  8637. @return an output stream
  8638. @throws IOException]]>
  8639. </doc>
  8640. </method>
  8641. <method name="mkdirs" return="boolean"
  8642. abstract="false" native="false" synchronized="false"
  8643. static="true" final="false" visibility="public"
  8644. deprecated="not deprecated">
  8645. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8646. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8647. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8648. <exception name="IOException" type="java.io.IOException"/>
  8649. <doc>
  8650. <![CDATA[create a directory with the provided permission
  8651. The permission of the directory is set to be the provided permission as in
  8652. setPermission, not permission&~umask
  8653. @see #create(FileSystem, Path, FsPermission)
  8654. @param fs file system handle
  8655. @param dir the name of the directory to be created
  8656. @param permission the permission of the directory
  8657. @return true if the directory creation succeeds; false otherwise
  8658. @throws IOException]]>
  8659. </doc>
  8660. </method>
  8661. <method name="checkPath"
  8662. abstract="false" native="false" synchronized="false"
  8663. static="false" final="false" visibility="protected"
  8664. deprecated="not deprecated">
  8665. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8666. <doc>
  8667. <![CDATA[Check that a Path belongs to this FileSystem.
  8668. @param path to check]]>
  8669. </doc>
  8670. </method>
  8671. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8672. abstract="false" native="false" synchronized="false"
  8673. static="false" final="false" visibility="public"
  8674. deprecated="not deprecated">
  8675. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8676. <param name="start" type="long"/>
  8677. <param name="len" type="long"/>
  8678. <exception name="IOException" type="java.io.IOException"/>
  8679. <doc>
  8680. <![CDATA[Return an array containing hostnames, offset and size of
  8681. portions of the given file. For a nonexistent
  8682. file or regions, null will be returned.
  8683. This call is most helpful with DFS, where it returns
  8684. hostnames of machines that contain the given file.
  8685. The FileSystem will simply return an elt containing 'localhost'.
  8686. @param file FilesStatus to get data from
  8687. @param start offset into the given file
  8688. @param len length for which to get locations for]]>
  8689. </doc>
  8690. </method>
  8691. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8692. abstract="false" native="false" synchronized="false"
  8693. static="false" final="false" visibility="public"
  8694. deprecated="not deprecated">
  8695. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8696. <param name="start" type="long"/>
  8697. <param name="len" type="long"/>
  8698. <exception name="IOException" type="java.io.IOException"/>
  8699. <doc>
  8700. <![CDATA[Return an array containing hostnames, offset and size of
  8701. portions of the given file. For a nonexistent
  8702. file or regions, null will be returned.
  8703. This call is most helpful with DFS, where it returns
  8704. hostnames of machines that contain the given file.
  8705. The FileSystem will simply return an elt containing 'localhost'.
  8706. @param p path is used to identify an FS since an FS could have
  8707. another FS that it could be delegating the call to
  8708. @param start offset into the given file
  8709. @param len length for which to get locations for]]>
  8710. </doc>
  8711. </method>
  8712. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8713. abstract="false" native="false" synchronized="false"
  8714. static="false" final="false" visibility="public"
  8715. deprecated="use {@link #getServerDefaults(Path)} instead">
  8716. <exception name="IOException" type="java.io.IOException"/>
  8717. <doc>
  8718. <![CDATA[Return a set of server default configuration values
  8719. @return server default configuration values
  8720. @throws IOException
  8721. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  8722. </doc>
  8723. </method>
  8724. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8725. abstract="false" native="false" synchronized="false"
  8726. static="false" final="false" visibility="public"
  8727. deprecated="not deprecated">
  8728. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8729. <exception name="IOException" type="java.io.IOException"/>
  8730. <doc>
  8731. <![CDATA[Return a set of server default configuration values
  8732. @param p path is used to identify an FS since an FS could have
  8733. another FS that it could be delegating the call to
  8734. @return server default configuration values
  8735. @throws IOException]]>
  8736. </doc>
  8737. </method>
  8738. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  8739. abstract="false" native="false" synchronized="false"
  8740. static="false" final="false" visibility="public"
  8741. deprecated="not deprecated">
  8742. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8743. <exception name="IOException" type="java.io.IOException"/>
  8744. <doc>
  8745. <![CDATA[Return the fully-qualified path of path f resolving the path
  8746. through any symlinks or mount point
  8747. @param p path to be resolved
  8748. @return fully qualified path
  8749. @throws FileNotFoundException]]>
  8750. </doc>
  8751. </method>
  8752. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8753. abstract="true" native="false" synchronized="false"
  8754. static="false" final="false" visibility="public"
  8755. deprecated="not deprecated">
  8756. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8757. <param name="bufferSize" type="int"/>
  8758. <exception name="IOException" type="java.io.IOException"/>
  8759. <doc>
  8760. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8761. @param f the file name to open
  8762. @param bufferSize the size of the buffer to be used.]]>
  8763. </doc>
  8764. </method>
  8765. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8766. abstract="false" native="false" synchronized="false"
  8767. static="false" final="false" visibility="public"
  8768. deprecated="not deprecated">
  8769. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8770. <exception name="IOException" type="java.io.IOException"/>
  8771. <doc>
  8772. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8773. @param f the file to open]]>
  8774. </doc>
  8775. </method>
  8776. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8777. abstract="false" native="false" synchronized="false"
  8778. static="false" final="false" visibility="public"
  8779. deprecated="not deprecated">
  8780. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8781. <exception name="IOException" type="java.io.IOException"/>
  8782. <doc>
  8783. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8784. Files are overwritten by default.
  8785. @param f the file to create]]>
  8786. </doc>
  8787. </method>
  8788. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8789. abstract="false" native="false" synchronized="false"
  8790. static="false" final="false" visibility="public"
  8791. deprecated="not deprecated">
  8792. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8793. <param name="overwrite" type="boolean"/>
  8794. <exception name="IOException" type="java.io.IOException"/>
  8795. <doc>
  8796. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8797. @param f the file to create
  8798. @param overwrite if a file with this name already exists, then if true,
  8799. the file will be overwritten, and if false an exception will be thrown.]]>
  8800. </doc>
  8801. </method>
  8802. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8803. abstract="false" native="false" synchronized="false"
  8804. static="false" final="false" visibility="public"
  8805. deprecated="not deprecated">
  8806. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8807. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8808. <exception name="IOException" type="java.io.IOException"/>
  8809. <doc>
  8810. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8811. reporting.
  8812. Files are overwritten by default.
  8813. @param f the file to create
  8814. @param progress to report progress]]>
  8815. </doc>
  8816. </method>
  8817. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8818. abstract="false" native="false" synchronized="false"
  8819. static="false" final="false" visibility="public"
  8820. deprecated="not deprecated">
  8821. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8822. <param name="replication" type="short"/>
  8823. <exception name="IOException" type="java.io.IOException"/>
  8824. <doc>
  8825. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8826. Files are overwritten by default.
  8827. @param f the file to create
  8828. @param replication the replication factor]]>
  8829. </doc>
  8830. </method>
  8831. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8832. abstract="false" native="false" synchronized="false"
  8833. static="false" final="false" visibility="public"
  8834. deprecated="not deprecated">
  8835. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8836. <param name="replication" type="short"/>
  8837. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8838. <exception name="IOException" type="java.io.IOException"/>
  8839. <doc>
  8840. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8841. reporting.
  8842. Files are overwritten by default.
  8843. @param f the file to create
  8844. @param replication the replication factor
  8845. @param progress to report progress]]>
  8846. </doc>
  8847. </method>
  8848. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8849. abstract="false" native="false" synchronized="false"
  8850. static="false" final="false" visibility="public"
  8851. deprecated="not deprecated">
  8852. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8853. <param name="overwrite" type="boolean"/>
  8854. <param name="bufferSize" type="int"/>
  8855. <exception name="IOException" type="java.io.IOException"/>
  8856. <doc>
  8857. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8858. @param f the file name to create
  8859. @param overwrite if a file with this name already exists, then if true,
  8860. the file will be overwritten, and if false an error will be thrown.
  8861. @param bufferSize the size of the buffer to be used.]]>
  8862. </doc>
  8863. </method>
  8864. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8865. abstract="false" native="false" synchronized="false"
  8866. static="false" final="false" visibility="public"
  8867. deprecated="not deprecated">
  8868. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8869. <param name="overwrite" type="boolean"/>
  8870. <param name="bufferSize" type="int"/>
  8871. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8872. <exception name="IOException" type="java.io.IOException"/>
  8873. <doc>
  8874. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8875. reporting.
  8876. @param f the path of the file to open
  8877. @param overwrite if a file with this name already exists, then if true,
  8878. the file will be overwritten, and if false an error will be thrown.
  8879. @param bufferSize the size of the buffer to be used.]]>
  8880. </doc>
  8881. </method>
  8882. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8883. abstract="false" native="false" synchronized="false"
  8884. static="false" final="false" visibility="public"
  8885. deprecated="not deprecated">
  8886. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8887. <param name="overwrite" type="boolean"/>
  8888. <param name="bufferSize" type="int"/>
  8889. <param name="replication" type="short"/>
  8890. <param name="blockSize" type="long"/>
  8891. <exception name="IOException" type="java.io.IOException"/>
  8892. <doc>
  8893. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8894. @param f the file name to open
  8895. @param overwrite if a file with this name already exists, then if true,
  8896. the file will be overwritten, and if false an error will be thrown.
  8897. @param bufferSize the size of the buffer to be used.
  8898. @param replication required block replication for the file.]]>
  8899. </doc>
  8900. </method>
  8901. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8902. abstract="false" native="false" synchronized="false"
  8903. static="false" final="false" visibility="public"
  8904. deprecated="not deprecated">
  8905. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8906. <param name="overwrite" type="boolean"/>
  8907. <param name="bufferSize" type="int"/>
  8908. <param name="replication" type="short"/>
  8909. <param name="blockSize" type="long"/>
  8910. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8911. <exception name="IOException" type="java.io.IOException"/>
  8912. <doc>
  8913. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8914. reporting.
  8915. @param f the file name to open
  8916. @param overwrite if a file with this name already exists, then if true,
  8917. the file will be overwritten, and if false an error will be thrown.
  8918. @param bufferSize the size of the buffer to be used.
  8919. @param replication required block replication for the file.]]>
  8920. </doc>
  8921. </method>
  8922. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8923. abstract="true" native="false" synchronized="false"
  8924. static="false" final="false" visibility="public"
  8925. deprecated="not deprecated">
  8926. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8927. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8928. <param name="overwrite" type="boolean"/>
  8929. <param name="bufferSize" type="int"/>
  8930. <param name="replication" type="short"/>
  8931. <param name="blockSize" type="long"/>
  8932. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8933. <exception name="IOException" type="java.io.IOException"/>
  8934. <doc>
  8935. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8936. reporting.
  8937. @param f the file name to open
  8938. @param permission
  8939. @param overwrite if a file with this name already exists, then if true,
  8940. the file will be overwritten, and if false an error will be thrown.
  8941. @param bufferSize the size of the buffer to be used.
  8942. @param replication required block replication for the file.
  8943. @param blockSize
  8944. @param progress
  8945. @throws IOException
  8946. @see #setPermission(Path, FsPermission)]]>
  8947. </doc>
  8948. </method>
  8949. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8950. abstract="false" native="false" synchronized="false"
  8951. static="false" final="false" visibility="public"
  8952. deprecated="not deprecated">
  8953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8954. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8955. <param name="flags" type="java.util.EnumSet"/>
  8956. <param name="bufferSize" type="int"/>
  8957. <param name="replication" type="short"/>
  8958. <param name="blockSize" type="long"/>
  8959. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8960. <exception name="IOException" type="java.io.IOException"/>
  8961. <doc>
  8962. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8963. reporting.
  8964. @param f the file name to open
  8965. @param permission
  8966. @param flags {@link CreateFlag}s to use for this stream.
  8967. @param bufferSize the size of the buffer to be used.
  8968. @param replication required block replication for the file.
  8969. @param blockSize
  8970. @param progress
  8971. @throws IOException
  8972. @see #setPermission(Path, FsPermission)]]>
  8973. </doc>
  8974. </method>
  8975. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8976. abstract="false" native="false" synchronized="false"
  8977. static="false" final="false" visibility="public"
  8978. deprecated="not deprecated">
  8979. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8980. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8981. <param name="flags" type="java.util.EnumSet"/>
  8982. <param name="bufferSize" type="int"/>
  8983. <param name="replication" type="short"/>
  8984. <param name="blockSize" type="long"/>
  8985. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8986. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8987. <exception name="IOException" type="java.io.IOException"/>
  8988. <doc>
  8989. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  8990. checksum option
  8991. @param f the file name to open
  8992. @param permission
  8993. @param flags {@link CreateFlag}s to use for this stream.
  8994. @param bufferSize the size of the buffer to be used.
  8995. @param replication required block replication for the file.
  8996. @param blockSize
  8997. @param progress
  8998. @param checksumOpt checksum parameter. If null, the values
  8999. found in conf will be used.
  9000. @throws IOException
  9001. @see #setPermission(Path, FsPermission)]]>
  9002. </doc>
  9003. </method>
  9004. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  9005. abstract="false" native="false" synchronized="false"
  9006. static="false" final="false" visibility="protected"
  9007. deprecated="not deprecated">
  9008. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9009. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9010. <param name="flag" type="java.util.EnumSet"/>
  9011. <param name="bufferSize" type="int"/>
  9012. <param name="replication" type="short"/>
  9013. <param name="blockSize" type="long"/>
  9014. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9015. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9016. <exception name="IOException" type="java.io.IOException"/>
  9017. </method>
  9018. <method name="primitiveMkdir" return="boolean"
  9019. abstract="false" native="false" synchronized="false"
  9020. static="false" final="false" visibility="protected"
  9021. deprecated="not deprecated">
  9022. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9023. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9024. <exception name="IOException" type="java.io.IOException"/>
  9025. <doc>
  9026. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9027. It has been added to support the FileContext that processes the permission
  9028. with umask before calling this method.
  9029. This a temporary method added to support the transition from FileSystem
  9030. to FileContext for user applications.]]>
  9031. </doc>
  9032. </method>
  9033. <method name="primitiveMkdir"
  9034. abstract="false" native="false" synchronized="false"
  9035. static="false" final="false" visibility="protected"
  9036. deprecated="not deprecated">
  9037. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9038. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9039. <param name="createParent" type="boolean"/>
  9040. <exception name="IOException" type="java.io.IOException"/>
  9041. <doc>
  9042. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9043. It has been added to support the FileContext that processes the permission
  9044. with umask before calling this method.
  9045. This a temporary method added to support the transition from FileSystem
  9046. to FileContext for user applications.]]>
  9047. </doc>
  9048. </method>
  9049. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9050. abstract="false" native="false" synchronized="false"
  9051. static="false" final="false" visibility="public"
  9052. deprecated="API only for 0.20-append">
  9053. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9054. <param name="overwrite" type="boolean"/>
  9055. <param name="bufferSize" type="int"/>
  9056. <param name="replication" type="short"/>
  9057. <param name="blockSize" type="long"/>
  9058. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9059. <exception name="IOException" type="java.io.IOException"/>
  9060. <doc>
  9061. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9062. reporting. Same as create(), except fails if parent directory doesn't
  9063. already exist.
  9064. @param f the file name to open
  9065. @param overwrite if a file with this name already exists, then if true,
  9066. the file will be overwritten, and if false an error will be thrown.
  9067. @param bufferSize the size of the buffer to be used.
  9068. @param replication required block replication for the file.
  9069. @param blockSize
  9070. @param progress
  9071. @throws IOException
  9072. @see #setPermission(Path, FsPermission)
  9073. @deprecated API only for 0.20-append]]>
  9074. </doc>
  9075. </method>
  9076. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9077. abstract="false" native="false" synchronized="false"
  9078. static="false" final="false" visibility="public"
  9079. deprecated="API only for 0.20-append">
  9080. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9081. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9082. <param name="overwrite" type="boolean"/>
  9083. <param name="bufferSize" type="int"/>
  9084. <param name="replication" type="short"/>
  9085. <param name="blockSize" type="long"/>
  9086. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9087. <exception name="IOException" type="java.io.IOException"/>
  9088. <doc>
  9089. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9090. reporting. Same as create(), except fails if parent directory doesn't
  9091. already exist.
  9092. @param f the file name to open
  9093. @param permission
  9094. @param overwrite if a file with this name already exists, then if true,
  9095. the file will be overwritten, and if false an error will be thrown.
  9096. @param bufferSize the size of the buffer to be used.
  9097. @param replication required block replication for the file.
  9098. @param blockSize
  9099. @param progress
  9100. @throws IOException
  9101. @see #setPermission(Path, FsPermission)
  9102. @deprecated API only for 0.20-append]]>
  9103. </doc>
  9104. </method>
  9105. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9106. abstract="false" native="false" synchronized="false"
  9107. static="false" final="false" visibility="public"
  9108. deprecated="API only for 0.20-append">
  9109. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9110. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9111. <param name="flags" type="java.util.EnumSet"/>
  9112. <param name="bufferSize" type="int"/>
  9113. <param name="replication" type="short"/>
  9114. <param name="blockSize" type="long"/>
  9115. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9116. <exception name="IOException" type="java.io.IOException"/>
  9117. <doc>
  9118. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9119. reporting. Same as create(), except fails if parent directory doesn't
  9120. already exist.
  9121. @param f the file name to open
  9122. @param permission
  9123. @param flags {@link CreateFlag}s to use for this stream.
  9124. @param bufferSize the size of the buffer to be used.
  9125. @param replication required block replication for the file.
  9126. @param blockSize
  9127. @param progress
  9128. @throws IOException
  9129. @see #setPermission(Path, FsPermission)
  9130. @deprecated API only for 0.20-append]]>
  9131. </doc>
  9132. </method>
  9133. <method name="createNewFile" return="boolean"
  9134. abstract="false" native="false" synchronized="false"
  9135. static="false" final="false" visibility="public"
  9136. deprecated="not deprecated">
  9137. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9138. <exception name="IOException" type="java.io.IOException"/>
  9139. <doc>
  9140. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  9141. create fails, or if it already existed, return false.
  9142. @param f path to use for create]]>
  9143. </doc>
  9144. </method>
  9145. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9146. abstract="false" native="false" synchronized="false"
  9147. static="false" final="false" visibility="public"
  9148. deprecated="not deprecated">
  9149. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9150. <exception name="IOException" type="java.io.IOException"/>
  9151. <doc>
  9152. <![CDATA[Append to an existing file (optional operation).
  9153. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  9154. @param f the existing file to be appended.
  9155. @throws IOException]]>
  9156. </doc>
  9157. </method>
  9158. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9159. abstract="false" native="false" synchronized="false"
  9160. static="false" final="false" visibility="public"
  9161. deprecated="not deprecated">
  9162. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9163. <param name="bufferSize" type="int"/>
  9164. <exception name="IOException" type="java.io.IOException"/>
  9165. <doc>
  9166. <![CDATA[Append to an existing file (optional operation).
  9167. Same as append(f, bufferSize, null).
  9168. @param f the existing file to be appended.
  9169. @param bufferSize the size of the buffer to be used.
  9170. @throws IOException]]>
  9171. </doc>
  9172. </method>
  9173. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9174. abstract="true" native="false" synchronized="false"
  9175. static="false" final="false" visibility="public"
  9176. deprecated="not deprecated">
  9177. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9178. <param name="bufferSize" type="int"/>
  9179. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9180. <exception name="IOException" type="java.io.IOException"/>
  9181. <doc>
  9182. <![CDATA[Append to an existing file (optional operation).
  9183. @param f the existing file to be appended.
  9184. @param bufferSize the size of the buffer to be used.
  9185. @param progress for reporting progress if it is not null.
  9186. @throws IOException]]>
  9187. </doc>
  9188. </method>
  9189. <method name="concat"
  9190. abstract="false" native="false" synchronized="false"
  9191. static="false" final="false" visibility="public"
  9192. deprecated="not deprecated">
  9193. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  9194. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  9195. <exception name="IOException" type="java.io.IOException"/>
  9196. <doc>
  9197. <![CDATA[Concat existing files together.
  9198. @param trg the path to the target destination.
  9199. @param psrcs the paths to the sources to use for the concatenation.
  9200. @throws IOException]]>
  9201. </doc>
  9202. </method>
  9203. <method name="getReplication" return="short"
  9204. abstract="false" native="false" synchronized="false"
  9205. static="false" final="false" visibility="public"
  9206. deprecated="Use getFileStatus() instead">
  9207. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9208. <exception name="IOException" type="java.io.IOException"/>
  9209. <doc>
  9210. <![CDATA[Get replication.
  9211. @deprecated Use getFileStatus() instead
  9212. @param src file name
  9213. @return file replication
  9214. @throws IOException]]>
  9215. </doc>
  9216. </method>
  9217. <method name="setReplication" return="boolean"
  9218. abstract="false" native="false" synchronized="false"
  9219. static="false" final="false" visibility="public"
  9220. deprecated="not deprecated">
  9221. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9222. <param name="replication" type="short"/>
  9223. <exception name="IOException" type="java.io.IOException"/>
  9224. <doc>
  9225. <![CDATA[Set replication for an existing file.
  9226. @param src file name
  9227. @param replication new replication
  9228. @throws IOException
  9229. @return true if successful;
  9230. false if file does not exist or is a directory]]>
  9231. </doc>
  9232. </method>
  9233. <method name="rename" return="boolean"
  9234. abstract="true" native="false" synchronized="false"
  9235. static="false" final="false" visibility="public"
  9236. deprecated="not deprecated">
  9237. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9238. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9239. <exception name="IOException" type="java.io.IOException"/>
  9240. <doc>
  9241. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  9242. or remote DFS.
  9243. @param src path to be renamed
  9244. @param dst new path after rename
  9245. @throws IOException on failure
  9246. @return true if rename is successful]]>
  9247. </doc>
  9248. </method>
  9249. <method name="rename"
  9250. abstract="false" native="false" synchronized="false"
  9251. static="false" final="false" visibility="protected"
  9252. deprecated="not deprecated">
  9253. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9254. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9255. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  9256. <exception name="IOException" type="java.io.IOException"/>
  9257. <doc>
  9258. <![CDATA[Renames Path src to Path dst
  9259. <ul>
  9260. <li
  9261. <li>Fails if src is a file and dst is a directory.
  9262. <li>Fails if src is a directory and dst is a file.
  9263. <li>Fails if the parent of dst does not exist or is a file.
  9264. </ul>
  9265. <p>
  9266. If OVERWRITE option is not passed as an argument, rename fails
  9267. if the dst already exists.
  9268. <p>
  9269. If OVERWRITE option is passed as an argument, rename overwrites
  9270. the dst if it is a file or an empty directory. Rename fails if dst is
  9271. a non-empty directory.
  9272. <p>
  9273. Note that atomicity of rename is dependent on the file system
  9274. implementation. Please refer to the file system documentation for
  9275. details. This default implementation is non atomic.
  9276. <p>
  9277. This method is deprecated since it is a temporary method added to
  9278. support the transition from FileSystem to FileContext for user
  9279. applications.
  9280. @param src path to be renamed
  9281. @param dst new path after rename
  9282. @throws IOException on failure]]>
  9283. </doc>
  9284. </method>
  9285. <method name="delete" return="boolean"
  9286. abstract="false" native="false" synchronized="false"
  9287. static="false" final="false" visibility="public"
  9288. deprecated="Use {@link #delete(Path, boolean)} instead.">
  9289. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9290. <exception name="IOException" type="java.io.IOException"/>
  9291. <doc>
  9292. <![CDATA[Delete a file
  9293. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  9294. </doc>
  9295. </method>
  9296. <method name="delete" return="boolean"
  9297. abstract="true" native="false" synchronized="false"
  9298. static="false" final="false" visibility="public"
  9299. deprecated="not deprecated">
  9300. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9301. <param name="recursive" type="boolean"/>
  9302. <exception name="IOException" type="java.io.IOException"/>
  9303. <doc>
  9304. <![CDATA[Delete a file.
  9305. @param f the path to delete.
  9306. @param recursive if path is a directory and set to
  9307. true, the directory is deleted else throws an exception. In
  9308. case of a file the recursive can be set to either true or false.
  9309. @return true if delete is successful else false.
  9310. @throws IOException]]>
  9311. </doc>
  9312. </method>
  9313. <method name="deleteOnExit" return="boolean"
  9314. abstract="false" native="false" synchronized="false"
  9315. static="false" final="false" visibility="public"
  9316. deprecated="not deprecated">
  9317. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9318. <exception name="IOException" type="java.io.IOException"/>
  9319. <doc>
  9320. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  9321. When the JVM shuts down,
  9322. all FileSystem objects will be closed automatically.
  9323. Then,
  9324. the marked path will be deleted as a result of closing the FileSystem.
  9325. The path has to exist in the file system.
  9326. @param f the path to delete.
  9327. @return true if deleteOnExit is successful, otherwise false.
  9328. @throws IOException]]>
  9329. </doc>
  9330. </method>
  9331. <method name="cancelDeleteOnExit" return="boolean"
  9332. abstract="false" native="false" synchronized="false"
  9333. static="false" final="false" visibility="public"
  9334. deprecated="not deprecated">
  9335. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9336. <doc>
  9337. <![CDATA[Cancel the deletion of the path when the FileSystem is closed
  9338. @param f the path to cancel deletion]]>
  9339. </doc>
  9340. </method>
  9341. <method name="processDeleteOnExit"
  9342. abstract="false" native="false" synchronized="false"
  9343. static="false" final="false" visibility="protected"
  9344. deprecated="not deprecated">
  9345. <doc>
  9346. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  9347. deletes all files in the specified paths.]]>
  9348. </doc>
  9349. </method>
  9350. <method name="exists" return="boolean"
  9351. abstract="false" native="false" synchronized="false"
  9352. static="false" final="false" visibility="public"
  9353. deprecated="not deprecated">
  9354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9355. <exception name="IOException" type="java.io.IOException"/>
  9356. <doc>
  9357. <![CDATA[Check if exists.
  9358. @param f source file]]>
  9359. </doc>
  9360. </method>
  9361. <method name="isDirectory" return="boolean"
  9362. abstract="false" native="false" synchronized="false"
  9363. static="false" final="false" visibility="public"
  9364. deprecated="not deprecated">
  9365. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9366. <exception name="IOException" type="java.io.IOException"/>
  9367. <doc>
  9368. <![CDATA[True iff the named path is a directory.
  9369. Note: Avoid using this method. Instead reuse the FileStatus
  9370. returned by getFileStatus() or listStatus() methods.
  9371. @param f path to check]]>
  9372. </doc>
  9373. </method>
  9374. <method name="isFile" return="boolean"
  9375. abstract="false" native="false" synchronized="false"
  9376. static="false" final="false" visibility="public"
  9377. deprecated="not deprecated">
  9378. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9379. <exception name="IOException" type="java.io.IOException"/>
  9380. <doc>
  9381. <![CDATA[True iff the named path is a regular file.
  9382. Note: Avoid using this method. Instead reuse the FileStatus
  9383. returned by getFileStatus() or listStatus() methods.
  9384. @param f path to check]]>
  9385. </doc>
  9386. </method>
  9387. <method name="getLength" return="long"
  9388. abstract="false" native="false" synchronized="false"
  9389. static="false" final="false" visibility="public"
  9390. deprecated="Use getFileStatus() instead">
  9391. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9392. <exception name="IOException" type="java.io.IOException"/>
  9393. <doc>
  9394. <![CDATA[@deprecated Use getFileStatus() instead]]>
  9395. </doc>
  9396. </method>
  9397. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9398. abstract="false" native="false" synchronized="false"
  9399. static="false" final="false" visibility="public"
  9400. deprecated="not deprecated">
  9401. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9402. <exception name="IOException" type="java.io.IOException"/>
  9403. <doc>
  9404. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9405. @param f path to use]]>
  9406. </doc>
  9407. </method>
  9408. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9409. abstract="true" native="false" synchronized="false"
  9410. static="false" final="false" visibility="public"
  9411. deprecated="not deprecated">
  9412. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9413. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9414. <exception name="IOException" type="java.io.IOException"/>
  9415. <doc>
  9416. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9417. a directory.
  9418. @param f given path
  9419. @return the statuses of the files/directories in the given patch
  9420. @throws FileNotFoundException when the path does not exist;
  9421. IOException see specific implementation]]>
  9422. </doc>
  9423. </method>
  9424. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9425. abstract="false" native="false" synchronized="false"
  9426. static="false" final="false" visibility="public"
  9427. deprecated="not deprecated">
  9428. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9429. <exception name="IOException" type="java.io.IOException"/>
  9430. <doc>
  9431. <![CDATA[@return an iterator over the corrupt files under the given path
  9432. (may contain duplicates if a file has more than one corrupt block)
  9433. @throws IOException]]>
  9434. </doc>
  9435. </method>
  9436. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9437. abstract="false" native="false" synchronized="false"
  9438. static="false" final="false" visibility="public"
  9439. deprecated="not deprecated">
  9440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9441. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9442. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9443. <exception name="IOException" type="java.io.IOException"/>
  9444. <doc>
  9445. <![CDATA[Filter files/directories in the given path using the user-supplied path
  9446. filter.
  9447. @param f
  9448. a path name
  9449. @param filter
  9450. the user-supplied path filter
  9451. @return an array of FileStatus objects for the files under the given path
  9452. after applying the filter
  9453. @throws FileNotFoundException when the path does not exist;
  9454. IOException see specific implementation]]>
  9455. </doc>
  9456. </method>
  9457. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9458. abstract="false" native="false" synchronized="false"
  9459. static="false" final="false" visibility="public"
  9460. deprecated="not deprecated">
  9461. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9462. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9463. <exception name="IOException" type="java.io.IOException"/>
  9464. <doc>
  9465. <![CDATA[Filter files/directories in the given list of paths using default
  9466. path filter.
  9467. @param files
  9468. a list of paths
  9469. @return a list of statuses for the files under the given paths after
  9470. applying the filter default Path filter
  9471. @throws FileNotFoundException when the path does not exist;
  9472. IOException see specific implementation]]>
  9473. </doc>
  9474. </method>
  9475. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9476. abstract="false" native="false" synchronized="false"
  9477. static="false" final="false" visibility="public"
  9478. deprecated="not deprecated">
  9479. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9480. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9481. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9482. <exception name="IOException" type="java.io.IOException"/>
  9483. <doc>
  9484. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  9485. path filter.
  9486. @param files
  9487. a list of paths
  9488. @param filter
  9489. the user-supplied path filter
  9490. @return a list of statuses for the files under the given paths after
  9491. applying the filter
  9492. @throws FileNotFoundException when the path does not exist;
  9493. IOException see specific implementation]]>
  9494. </doc>
  9495. </method>
  9496. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9497. abstract="false" native="false" synchronized="false"
  9498. static="false" final="false" visibility="public"
  9499. deprecated="not deprecated">
  9500. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9501. <exception name="IOException" type="java.io.IOException"/>
  9502. <doc>
  9503. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  9504. files. Results are sorted by their names.
  9505. <p>
  9506. A filename pattern is composed of <i>regular</i> characters and
  9507. <i>special pattern matching</i> characters, which are:
  9508. <dl>
  9509. <dd>
  9510. <dl>
  9511. <p>
  9512. <dt> <tt> ? </tt>
  9513. <dd> Matches any single character.
  9514. <p>
  9515. <dt> <tt> * </tt>
  9516. <dd> Matches zero or more characters.
  9517. <p>
  9518. <dt> <tt> [<i>abc</i>] </tt>
  9519. <dd> Matches a single character from character set
  9520. <tt>{<i>a,b,c</i>}</tt>.
  9521. <p>
  9522. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  9523. <dd> Matches a single character from the character range
  9524. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  9525. lexicographically less than or equal to character <tt><i>b</i></tt>.
  9526. <p>
  9527. <dt> <tt> [^<i>a</i>] </tt>
  9528. <dd> Matches a single character that is not from character set or range
  9529. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  9530. immediately to the right of the opening bracket.
  9531. <p>
  9532. <dt> <tt> \<i>c</i> </tt>
  9533. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  9534. <p>
  9535. <dt> <tt> {ab,cd} </tt>
  9536. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  9537. <p>
  9538. <dt> <tt> {ab,c{de,fh}} </tt>
  9539. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  9540. </dl>
  9541. </dd>
  9542. </dl>
  9543. @param pathPattern a regular expression specifying a pth pattern
  9544. @return an array of paths that match the path pattern
  9545. @throws IOException]]>
  9546. </doc>
  9547. </method>
  9548. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9549. abstract="false" native="false" synchronized="false"
  9550. static="false" final="false" visibility="public"
  9551. deprecated="not deprecated">
  9552. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9553. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9554. <exception name="IOException" type="java.io.IOException"/>
  9555. <doc>
  9556. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  9557. and is accepted by the user-supplied path filter. Results are sorted by
  9558. their path names.
  9559. Return null if pathPattern has no glob and the path does not exist.
  9560. Return an empty array if pathPattern has a glob and no path matches it.
  9561. @param pathPattern
  9562. a regular expression specifying the path pattern
  9563. @param filter
  9564. a user-supplied path filter
  9565. @return an array of FileStatus objects
  9566. @throws IOException if any I/O error occurs when fetching file status]]>
  9567. </doc>
  9568. </method>
  9569. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9570. abstract="false" native="false" synchronized="false"
  9571. static="false" final="false" visibility="public"
  9572. deprecated="not deprecated">
  9573. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9574. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9575. <exception name="IOException" type="java.io.IOException"/>
  9576. <doc>
  9577. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9578. a directory.
  9579. Return the file's status and block locations If the path is a file.
  9580. If a returned status is a file, it contains the file's block locations.
  9581. @param f is the path
  9582. @return an iterator that traverses statuses of the files/directories
  9583. in the given path
  9584. @throws FileNotFoundException If <code>f</code> does not exist
  9585. @throws IOException If an I/O error occurred]]>
  9586. </doc>
  9587. </method>
  9588. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9589. abstract="false" native="false" synchronized="false"
  9590. static="false" final="false" visibility="protected"
  9591. deprecated="not deprecated">
  9592. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9593. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9594. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9595. <exception name="IOException" type="java.io.IOException"/>
  9596. <doc>
  9597. <![CDATA[Listing a directory
  9598. The returned results include its block location if it is a file
  9599. The results are filtered by the given path filter
  9600. @param f a path
  9601. @param filter a path filter
  9602. @return an iterator that traverses statuses of the files/directories
  9603. in the given path
  9604. @throws FileNotFoundException if <code>f</code> does not exist
  9605. @throws IOException if any I/O error occurred]]>
  9606. </doc>
  9607. </method>
  9608. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  9609. abstract="false" native="false" synchronized="false"
  9610. static="false" final="false" visibility="public"
  9611. deprecated="not deprecated">
  9612. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9613. <param name="recursive" type="boolean"/>
  9614. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9615. <exception name="IOException" type="java.io.IOException"/>
  9616. <doc>
  9617. <![CDATA[List the statuses and block locations of the files in the given path.
  9618. If the path is a directory,
  9619. if recursive is false, returns files in the directory;
  9620. if recursive is true, return files in the subtree rooted at the path.
  9621. If the path is a file, return the file's status and block locations.
  9622. @param f is the path
  9623. @param recursive if the subdirectories need to be traversed recursively
  9624. @return an iterator that traverses statuses of the files
  9625. @throws FileNotFoundException when the path does not exist;
  9626. IOException see specific implementation]]>
  9627. </doc>
  9628. </method>
  9629. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9630. abstract="false" native="false" synchronized="false"
  9631. static="false" final="false" visibility="public"
  9632. deprecated="not deprecated">
  9633. <doc>
  9634. <![CDATA[Return the current user's home directory in this filesystem.
  9635. The default implementation returns "/user/$USER/".]]>
  9636. </doc>
  9637. </method>
  9638. <method name="setWorkingDirectory"
  9639. abstract="true" native="false" synchronized="false"
  9640. static="false" final="false" visibility="public"
  9641. deprecated="not deprecated">
  9642. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  9643. <doc>
  9644. <![CDATA[Set the current working directory for the given file system. All relative
  9645. paths will be resolved relative to it.
  9646. @param new_dir]]>
  9647. </doc>
  9648. </method>
  9649. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9650. abstract="true" native="false" synchronized="false"
  9651. static="false" final="false" visibility="public"
  9652. deprecated="not deprecated">
  9653. <doc>
  9654. <![CDATA[Get the current working directory for the given file system
  9655. @return the directory pathname]]>
  9656. </doc>
  9657. </method>
  9658. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9659. abstract="false" native="false" synchronized="false"
  9660. static="false" final="false" visibility="protected"
  9661. deprecated="not deprecated">
  9662. <doc>
  9663. <![CDATA[Note: with the new FilesContext class, getWorkingDirectory()
  9664. will be removed.
  9665. The working directory is implemented in FilesContext.
  9666. Some file systems like LocalFileSystem have an initial workingDir
  9667. that we use as the starting workingDir. For other file systems
  9668. like HDFS there is no built in notion of an initial workingDir.
  9669. @return if there is built in notion of workingDir then it
  9670. is returned; else a null is returned.]]>
  9671. </doc>
  9672. </method>
  9673. <method name="mkdirs" return="boolean"
  9674. abstract="false" native="false" synchronized="false"
  9675. static="false" final="false" visibility="public"
  9676. deprecated="not deprecated">
  9677. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9678. <exception name="IOException" type="java.io.IOException"/>
  9679. <doc>
  9680. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  9681. </doc>
  9682. </method>
  9683. <method name="mkdirs" return="boolean"
  9684. abstract="true" native="false" synchronized="false"
  9685. static="false" final="false" visibility="public"
  9686. deprecated="not deprecated">
  9687. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9688. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9689. <exception name="IOException" type="java.io.IOException"/>
  9690. <doc>
  9691. <![CDATA[Make the given file and all non-existent parents into
  9692. directories. Has the semantics of Unix 'mkdir -p'.
  9693. Existence of the directory hierarchy is not an error.
  9694. @param f path to create
  9695. @param permission to apply to f]]>
  9696. </doc>
  9697. </method>
  9698. <method name="copyFromLocalFile"
  9699. abstract="false" native="false" synchronized="false"
  9700. static="false" final="false" visibility="public"
  9701. deprecated="not deprecated">
  9702. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9703. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9704. <exception name="IOException" type="java.io.IOException"/>
  9705. <doc>
  9706. <![CDATA[The src file is on the local disk. Add it to FS at
  9707. the given dst name and the source is kept intact afterwards
  9708. @param src path
  9709. @param dst path]]>
  9710. </doc>
  9711. </method>
  9712. <method name="moveFromLocalFile"
  9713. abstract="false" native="false" synchronized="false"
  9714. static="false" final="false" visibility="public"
  9715. deprecated="not deprecated">
  9716. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9717. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9718. <exception name="IOException" type="java.io.IOException"/>
  9719. <doc>
  9720. <![CDATA[The src files is on the local disk. Add it to FS at
  9721. the given dst name, removing the source afterwards.
  9722. @param srcs path
  9723. @param dst path]]>
  9724. </doc>
  9725. </method>
  9726. <method name="moveFromLocalFile"
  9727. abstract="false" native="false" synchronized="false"
  9728. static="false" final="false" visibility="public"
  9729. deprecated="not deprecated">
  9730. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9731. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9732. <exception name="IOException" type="java.io.IOException"/>
  9733. <doc>
  9734. <![CDATA[The src file is on the local disk. Add it to FS at
  9735. the given dst name, removing the source afterwards.
  9736. @param src path
  9737. @param dst path]]>
  9738. </doc>
  9739. </method>
  9740. <method name="copyFromLocalFile"
  9741. abstract="false" native="false" synchronized="false"
  9742. static="false" final="false" visibility="public"
  9743. deprecated="not deprecated">
  9744. <param name="delSrc" type="boolean"/>
  9745. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9746. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9747. <exception name="IOException" type="java.io.IOException"/>
  9748. <doc>
  9749. <![CDATA[The src file is on the local disk. Add it to FS at
  9750. the given dst name.
  9751. delSrc indicates if the source should be removed
  9752. @param delSrc whether to delete the src
  9753. @param src path
  9754. @param dst path]]>
  9755. </doc>
  9756. </method>
  9757. <method name="copyFromLocalFile"
  9758. abstract="false" native="false" synchronized="false"
  9759. static="false" final="false" visibility="public"
  9760. deprecated="not deprecated">
  9761. <param name="delSrc" type="boolean"/>
  9762. <param name="overwrite" type="boolean"/>
  9763. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9764. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9765. <exception name="IOException" type="java.io.IOException"/>
  9766. <doc>
  9767. <![CDATA[The src files are on the local disk. Add it to FS at
  9768. the given dst name.
  9769. delSrc indicates if the source should be removed
  9770. @param delSrc whether to delete the src
  9771. @param overwrite whether to overwrite an existing file
  9772. @param srcs array of paths which are source
  9773. @param dst path]]>
  9774. </doc>
  9775. </method>
  9776. <method name="copyFromLocalFile"
  9777. abstract="false" native="false" synchronized="false"
  9778. static="false" final="false" visibility="public"
  9779. deprecated="not deprecated">
  9780. <param name="delSrc" type="boolean"/>
  9781. <param name="overwrite" type="boolean"/>
  9782. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9783. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9784. <exception name="IOException" type="java.io.IOException"/>
  9785. <doc>
  9786. <![CDATA[The src file is on the local disk. Add it to FS at
  9787. the given dst name.
  9788. delSrc indicates if the source should be removed
  9789. @param delSrc whether to delete the src
  9790. @param overwrite whether to overwrite an existing file
  9791. @param src path
  9792. @param dst path]]>
  9793. </doc>
  9794. </method>
  9795. <method name="copyToLocalFile"
  9796. abstract="false" native="false" synchronized="false"
  9797. static="false" final="false" visibility="public"
  9798. deprecated="not deprecated">
  9799. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9800. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9801. <exception name="IOException" type="java.io.IOException"/>
  9802. <doc>
  9803. <![CDATA[The src file is under FS, and the dst is on the local disk.
  9804. Copy it from FS control to the local dst name.
  9805. @param src path
  9806. @param dst path]]>
  9807. </doc>
  9808. </method>
  9809. <method name="moveToLocalFile"
  9810. abstract="false" native="false" synchronized="false"
  9811. static="false" final="false" visibility="public"
  9812. deprecated="not deprecated">
  9813. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9814. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9815. <exception name="IOException" type="java.io.IOException"/>
  9816. <doc>
  9817. <![CDATA[The src file is under FS, and the dst is on the local disk.
  9818. Copy it from FS control to the local dst name.
  9819. Remove the source afterwards
  9820. @param src path
  9821. @param dst path]]>
  9822. </doc>
  9823. </method>
  9824. <method name="copyToLocalFile"
  9825. abstract="false" native="false" synchronized="false"
  9826. static="false" final="false" visibility="public"
  9827. deprecated="not deprecated">
  9828. <param name="delSrc" type="boolean"/>
  9829. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9830. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9831. <exception name="IOException" type="java.io.IOException"/>
  9832. <doc>
  9833. <![CDATA[The src file is under FS, and the dst is on the local disk.
  9834. Copy it from FS control to the local dst name.
  9835. delSrc indicates if the src will be removed or not.
  9836. @param delSrc whether to delete the src
  9837. @param src path
  9838. @param dst path]]>
  9839. </doc>
  9840. </method>
  9841. <method name="copyToLocalFile"
  9842. abstract="false" native="false" synchronized="false"
  9843. static="false" final="false" visibility="public"
  9844. deprecated="not deprecated">
  9845. <param name="delSrc" type="boolean"/>
  9846. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9847. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9848. <param name="useRawLocalFileSystem" type="boolean"/>
  9849. <exception name="IOException" type="java.io.IOException"/>
  9850. <doc>
  9851. <![CDATA[The src file is under FS, and the dst is on the local disk. Copy it from FS
  9852. control to the local dst name. delSrc indicates if the src will be removed
  9853. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  9854. as local file system or not. RawLocalFileSystem is non crc file system.So,
  9855. It will not create any crc files at local.
  9856. @param delSrc
  9857. whether to delete the src
  9858. @param src
  9859. path
  9860. @param dst
  9861. path
  9862. @param useRawLocalFileSystem
  9863. whether to use RawLocalFileSystem as local file system or not.
  9864. @throws IOException
  9865. - if any IO error]]>
  9866. </doc>
  9867. </method>
  9868. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9869. abstract="false" native="false" synchronized="false"
  9870. static="false" final="false" visibility="public"
  9871. deprecated="not deprecated">
  9872. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9873. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9874. <exception name="IOException" type="java.io.IOException"/>
  9875. <doc>
  9876. <![CDATA[Returns a local File that the user can write output to. The caller
  9877. provides both the eventual FS target name and the local working
  9878. file. If the FS is local, we write directly into the target. If
  9879. the FS is remote, we write into the tmp local area.
  9880. @param fsOutputFile path of output file
  9881. @param tmpLocalFile path of local tmp file]]>
  9882. </doc>
  9883. </method>
  9884. <method name="completeLocalOutput"
  9885. abstract="false" native="false" synchronized="false"
  9886. static="false" final="false" visibility="public"
  9887. deprecated="not deprecated">
  9888. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9889. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9890. <exception name="IOException" type="java.io.IOException"/>
  9891. <doc>
  9892. <![CDATA[Called when we're all done writing to the target. A local FS will
  9893. do nothing, because we've written to exactly the right place. A remote
  9894. FS will copy the contents of tmpLocalFile to the correct target at
  9895. fsOutputFile.
  9896. @param fsOutputFile path of output file
  9897. @param tmpLocalFile path to local tmp file]]>
  9898. </doc>
  9899. </method>
  9900. <method name="close"
  9901. abstract="false" native="false" synchronized="false"
  9902. static="false" final="false" visibility="public"
  9903. deprecated="not deprecated">
  9904. <exception name="IOException" type="java.io.IOException"/>
  9905. <doc>
  9906. <![CDATA[No more filesystem operations are needed. Will
  9907. release any held locks.]]>
  9908. </doc>
  9909. </method>
  9910. <method name="getUsed" return="long"
  9911. abstract="false" native="false" synchronized="false"
  9912. static="false" final="false" visibility="public"
  9913. deprecated="not deprecated">
  9914. <exception name="IOException" type="java.io.IOException"/>
  9915. <doc>
  9916. <![CDATA[Return the total size of all files in the filesystem.]]>
  9917. </doc>
  9918. </method>
  9919. <method name="getBlockSize" return="long"
  9920. abstract="false" native="false" synchronized="false"
  9921. static="false" final="false" visibility="public"
  9922. deprecated="Use getFileStatus() instead">
  9923. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9924. <exception name="IOException" type="java.io.IOException"/>
  9925. <doc>
  9926. <![CDATA[@deprecated Use getFileStatus() instead]]>
  9927. </doc>
  9928. </method>
  9929. <method name="getDefaultBlockSize" return="long"
  9930. abstract="false" native="false" synchronized="false"
  9931. static="false" final="false" visibility="public"
  9932. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  9933. <doc>
  9934. <![CDATA[Return the number of bytes that large input files should be optimally
  9935. be split into to minimize i/o time.
  9936. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  9937. </doc>
  9938. </method>
  9939. <method name="getDefaultBlockSize" return="long"
  9940. abstract="false" native="false" synchronized="false"
  9941. static="false" final="false" visibility="public"
  9942. deprecated="not deprecated">
  9943. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9944. <doc>
  9945. <![CDATA[Return the number of bytes that large input files should be optimally
  9946. be split into to minimize i/o time. The given path will be used to
  9947. locate the actual filesystem. The full path does not have to exist.
  9948. @param f path of file
  9949. @return the default block size for the path's filesystem]]>
  9950. </doc>
  9951. </method>
  9952. <method name="getDefaultReplication" return="short"
  9953. abstract="false" native="false" synchronized="false"
  9954. static="false" final="false" visibility="public"
  9955. deprecated="use {@link #getDefaultReplication(Path)} instead">
  9956. <doc>
  9957. <![CDATA[Get the default replication.
  9958. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  9959. </doc>
  9960. </method>
  9961. <method name="getDefaultReplication" return="short"
  9962. abstract="false" native="false" synchronized="false"
  9963. static="false" final="false" visibility="public"
  9964. deprecated="not deprecated">
  9965. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9966. <doc>
  9967. <![CDATA[Get the default replication for a path. The given path will be used to
  9968. locate the actual filesystem. The full path does not have to exist.
  9969. @param path of the file
  9970. @return default replication for the path's filesystem]]>
  9971. </doc>
  9972. </method>
  9973. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9974. abstract="true" native="false" synchronized="false"
  9975. static="false" final="false" visibility="public"
  9976. deprecated="not deprecated">
  9977. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9978. <exception name="IOException" type="java.io.IOException"/>
  9979. <doc>
  9980. <![CDATA[Return a file status object that represents the path.
  9981. @param f The path we want information from
  9982. @return a FileStatus object
  9983. @throws FileNotFoundException when the path does not exist;
  9984. IOException see specific implementation]]>
  9985. </doc>
  9986. </method>
  9987. <method name="access"
  9988. abstract="false" native="false" synchronized="false"
  9989. static="false" final="false" visibility="public"
  9990. deprecated="not deprecated">
  9991. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9992. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  9993. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9994. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9995. <exception name="IOException" type="java.io.IOException"/>
  9996. <doc>
  9997. <![CDATA[Checks if the user can access a path. The mode specifies which access
  9998. checks to perform. If the requested permissions are granted, then the
  9999. method returns normally. If access is denied, then the method throws an
  10000. {@link AccessControlException}.
  10001. <p/>
  10002. The default implementation of this method calls {@link #getFileStatus(Path)}
  10003. and checks the returned permissions against the requested permissions.
  10004. Note that the getFileStatus call will be subject to authorization checks.
  10005. Typically, this requires search (execute) permissions on each directory in
  10006. the path's prefix, but this is implementation-defined. Any file system
  10007. that provides a richer authorization model (such as ACLs) may override the
  10008. default implementation so that it checks against that model instead.
  10009. <p>
  10010. In general, applications should avoid using this method, due to the risk of
  10011. time-of-check/time-of-use race conditions. The permissions on a file may
  10012. change immediately after the access call returns. Most applications should
  10013. prefer running specific file system actions as the desired user represented
  10014. by a {@link UserGroupInformation}.
  10015. @param path Path to check
  10016. @param mode type of access to check
  10017. @throws AccessControlException if access is denied
  10018. @throws FileNotFoundException if the path does not exist
  10019. @throws IOException see specific implementation]]>
  10020. </doc>
  10021. </method>
  10022. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  10023. abstract="false" native="false" synchronized="false"
  10024. static="false" final="false" visibility="protected"
  10025. deprecated="not deprecated">
  10026. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10027. <doc>
  10028. <![CDATA[See {@link FileContext#fixRelativePart}]]>
  10029. </doc>
  10030. </method>
  10031. <method name="createSymlink"
  10032. abstract="false" native="false" synchronized="false"
  10033. static="false" final="false" visibility="public"
  10034. deprecated="not deprecated">
  10035. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10036. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10037. <param name="createParent" type="boolean"/>
  10038. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10039. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10040. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10041. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10042. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10043. <exception name="IOException" type="java.io.IOException"/>
  10044. <doc>
  10045. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}]]>
  10046. </doc>
  10047. </method>
  10048. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10049. abstract="false" native="false" synchronized="false"
  10050. static="false" final="false" visibility="public"
  10051. deprecated="not deprecated">
  10052. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10053. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10054. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10055. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10056. <exception name="IOException" type="java.io.IOException"/>
  10057. <doc>
  10058. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}]]>
  10059. </doc>
  10060. </method>
  10061. <method name="supportsSymlinks" return="boolean"
  10062. abstract="false" native="false" synchronized="false"
  10063. static="false" final="false" visibility="public"
  10064. deprecated="not deprecated">
  10065. <doc>
  10066. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}]]>
  10067. </doc>
  10068. </method>
  10069. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10070. abstract="false" native="false" synchronized="false"
  10071. static="false" final="false" visibility="public"
  10072. deprecated="not deprecated">
  10073. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10074. <exception name="IOException" type="java.io.IOException"/>
  10075. <doc>
  10076. <![CDATA[See {@link FileContext#getLinkTarget(Path)}]]>
  10077. </doc>
  10078. </method>
  10079. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10080. abstract="false" native="false" synchronized="false"
  10081. static="false" final="false" visibility="protected"
  10082. deprecated="not deprecated">
  10083. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10084. <exception name="IOException" type="java.io.IOException"/>
  10085. <doc>
  10086. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}]]>
  10087. </doc>
  10088. </method>
  10089. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10090. abstract="false" native="false" synchronized="false"
  10091. static="false" final="false" visibility="public"
  10092. deprecated="not deprecated">
  10093. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10094. <exception name="IOException" type="java.io.IOException"/>
  10095. <doc>
  10096. <![CDATA[Get the checksum of a file.
  10097. @param f The file path
  10098. @return The file checksum. The default return value is null,
  10099. which indicates that no checksum algorithm is implemented
  10100. in the corresponding FileSystem.]]>
  10101. </doc>
  10102. </method>
  10103. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10104. abstract="false" native="false" synchronized="false"
  10105. static="false" final="false" visibility="public"
  10106. deprecated="not deprecated">
  10107. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10108. <param name="length" type="long"/>
  10109. <exception name="IOException" type="java.io.IOException"/>
  10110. <doc>
  10111. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  10112. specific length.
  10113. @param f The file path
  10114. @param length The length of the file range for checksum calculation
  10115. @return The file checksum.]]>
  10116. </doc>
  10117. </method>
  10118. <method name="setVerifyChecksum"
  10119. abstract="false" native="false" synchronized="false"
  10120. static="false" final="false" visibility="public"
  10121. deprecated="not deprecated">
  10122. <param name="verifyChecksum" type="boolean"/>
  10123. <doc>
  10124. <![CDATA[Set the verify checksum flag. This is only applicable if the
  10125. corresponding FileSystem supports checksum. By default doesn't do anything.
  10126. @param verifyChecksum]]>
  10127. </doc>
  10128. </method>
  10129. <method name="setWriteChecksum"
  10130. abstract="false" native="false" synchronized="false"
  10131. static="false" final="false" visibility="public"
  10132. deprecated="not deprecated">
  10133. <param name="writeChecksum" type="boolean"/>
  10134. <doc>
  10135. <![CDATA[Set the write checksum flag. This is only applicable if the
  10136. corresponding FileSystem supports checksum. By default doesn't do anything.
  10137. @param writeChecksum]]>
  10138. </doc>
  10139. </method>
  10140. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10141. abstract="false" native="false" synchronized="false"
  10142. static="false" final="false" visibility="public"
  10143. deprecated="not deprecated">
  10144. <exception name="IOException" type="java.io.IOException"/>
  10145. <doc>
  10146. <![CDATA[Returns a status object describing the use and capacity of the
  10147. file system. If the file system has multiple partitions, the
  10148. use and capacity of the root partition is reflected.
  10149. @return a FsStatus object
  10150. @throws IOException
  10151. see specific implementation]]>
  10152. </doc>
  10153. </method>
  10154. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10155. abstract="false" native="false" synchronized="false"
  10156. static="false" final="false" visibility="public"
  10157. deprecated="not deprecated">
  10158. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10159. <exception name="IOException" type="java.io.IOException"/>
  10160. <doc>
  10161. <![CDATA[Returns a status object describing the use and capacity of the
  10162. file system. If the file system has multiple partitions, the
  10163. use and capacity of the partition pointed to by the specified
  10164. path is reflected.
  10165. @param p Path for which status should be obtained. null means
  10166. the default partition.
  10167. @return a FsStatus object
  10168. @throws IOException
  10169. see specific implementation]]>
  10170. </doc>
  10171. </method>
  10172. <method name="setPermission"
  10173. abstract="false" native="false" synchronized="false"
  10174. static="false" final="false" visibility="public"
  10175. deprecated="not deprecated">
  10176. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10177. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10178. <exception name="IOException" type="java.io.IOException"/>
  10179. <doc>
  10180. <![CDATA[Set permission of a path.
  10181. @param p
  10182. @param permission]]>
  10183. </doc>
  10184. </method>
  10185. <method name="setOwner"
  10186. abstract="false" native="false" synchronized="false"
  10187. static="false" final="false" visibility="public"
  10188. deprecated="not deprecated">
  10189. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10190. <param name="username" type="java.lang.String"/>
  10191. <param name="groupname" type="java.lang.String"/>
  10192. <exception name="IOException" type="java.io.IOException"/>
  10193. <doc>
  10194. <![CDATA[Set owner of a path (i.e. a file or a directory).
  10195. The parameters username and groupname cannot both be null.
  10196. @param p The path
  10197. @param username If it is null, the original username remains unchanged.
  10198. @param groupname If it is null, the original groupname remains unchanged.]]>
  10199. </doc>
  10200. </method>
  10201. <method name="setTimes"
  10202. abstract="false" native="false" synchronized="false"
  10203. static="false" final="false" visibility="public"
  10204. deprecated="not deprecated">
  10205. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10206. <param name="mtime" type="long"/>
  10207. <param name="atime" type="long"/>
  10208. <exception name="IOException" type="java.io.IOException"/>
  10209. <doc>
  10210. <![CDATA[Set access time of a file
  10211. @param p The path
  10212. @param mtime Set the modification time of this file.
  10213. The number of milliseconds since Jan 1, 1970.
  10214. A value of -1 means that this call should not set modification time.
  10215. @param atime Set the access time of this file.
  10216. The number of milliseconds since Jan 1, 1970.
  10217. A value of -1 means that this call should not set access time.]]>
  10218. </doc>
  10219. </method>
  10220. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10221. abstract="false" native="false" synchronized="false"
  10222. static="false" final="true" visibility="public"
  10223. deprecated="not deprecated">
  10224. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10225. <exception name="IOException" type="java.io.IOException"/>
  10226. <doc>
  10227. <![CDATA[Create a snapshot with a default name.
  10228. @param path The directory where snapshots will be taken.
  10229. @return the snapshot path.]]>
  10230. </doc>
  10231. </method>
  10232. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10233. abstract="false" native="false" synchronized="false"
  10234. static="false" final="false" visibility="public"
  10235. deprecated="not deprecated">
  10236. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10237. <param name="snapshotName" type="java.lang.String"/>
  10238. <exception name="IOException" type="java.io.IOException"/>
  10239. <doc>
  10240. <![CDATA[Create a snapshot
  10241. @param path The directory where snapshots will be taken.
  10242. @param snapshotName The name of the snapshot
  10243. @return the snapshot path.]]>
  10244. </doc>
  10245. </method>
  10246. <method name="renameSnapshot"
  10247. abstract="false" native="false" synchronized="false"
  10248. static="false" final="false" visibility="public"
  10249. deprecated="not deprecated">
  10250. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10251. <param name="snapshotOldName" type="java.lang.String"/>
  10252. <param name="snapshotNewName" type="java.lang.String"/>
  10253. <exception name="IOException" type="java.io.IOException"/>
  10254. <doc>
  10255. <![CDATA[Rename a snapshot
  10256. @param path The directory path where the snapshot was taken
  10257. @param snapshotOldName Old name of the snapshot
  10258. @param snapshotNewName New name of the snapshot
  10259. @throws IOException]]>
  10260. </doc>
  10261. </method>
  10262. <method name="deleteSnapshot"
  10263. abstract="false" native="false" synchronized="false"
  10264. static="false" final="false" visibility="public"
  10265. deprecated="not deprecated">
  10266. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10267. <param name="snapshotName" type="java.lang.String"/>
  10268. <exception name="IOException" type="java.io.IOException"/>
  10269. <doc>
  10270. <![CDATA[Delete a snapshot of a directory
  10271. @param path The directory that the to-be-deleted snapshot belongs to
  10272. @param snapshotName The name of the snapshot]]>
  10273. </doc>
  10274. </method>
  10275. <method name="modifyAclEntries"
  10276. abstract="false" native="false" synchronized="false"
  10277. static="false" final="false" visibility="public"
  10278. deprecated="not deprecated">
  10279. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10280. <param name="aclSpec" type="java.util.List"/>
  10281. <exception name="IOException" type="java.io.IOException"/>
  10282. <doc>
  10283. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10284. entries or modify the permissions on existing ACL entries. All existing
  10285. ACL entries that are not specified in this call are retained without
  10286. changes. (Modifications are merged into the current ACL.)
  10287. @param path Path to modify
  10288. @param aclSpec List<AclEntry> describing modifications
  10289. @throws IOException if an ACL could not be modified]]>
  10290. </doc>
  10291. </method>
  10292. <method name="removeAclEntries"
  10293. abstract="false" native="false" synchronized="false"
  10294. static="false" final="false" visibility="public"
  10295. deprecated="not deprecated">
  10296. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10297. <param name="aclSpec" type="java.util.List"/>
  10298. <exception name="IOException" type="java.io.IOException"/>
  10299. <doc>
  10300. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  10301. retained.
  10302. @param path Path to modify
  10303. @param aclSpec List<AclEntry> describing entries to remove
  10304. @throws IOException if an ACL could not be modified]]>
  10305. </doc>
  10306. </method>
  10307. <method name="removeDefaultAcl"
  10308. abstract="false" native="false" synchronized="false"
  10309. static="false" final="false" visibility="public"
  10310. deprecated="not deprecated">
  10311. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10312. <exception name="IOException" type="java.io.IOException"/>
  10313. <doc>
  10314. <![CDATA[Removes all default ACL entries from files and directories.
  10315. @param path Path to modify
  10316. @throws IOException if an ACL could not be modified]]>
  10317. </doc>
  10318. </method>
  10319. <method name="removeAcl"
  10320. abstract="false" native="false" synchronized="false"
  10321. static="false" final="false" visibility="public"
  10322. deprecated="not deprecated">
  10323. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10324. <exception name="IOException" type="java.io.IOException"/>
  10325. <doc>
  10326. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  10327. for user, group, and others are retained for compatibility with permission
  10328. bits.
  10329. @param path Path to modify
  10330. @throws IOException if an ACL could not be removed]]>
  10331. </doc>
  10332. </method>
  10333. <method name="setAcl"
  10334. abstract="false" native="false" synchronized="false"
  10335. static="false" final="false" visibility="public"
  10336. deprecated="not deprecated">
  10337. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10338. <param name="aclSpec" type="java.util.List"/>
  10339. <exception name="IOException" type="java.io.IOException"/>
  10340. <doc>
  10341. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  10342. entries.
  10343. @param path Path to modify
  10344. @param aclSpec List<AclEntry> describing modifications, must include entries
  10345. for user, group, and others for compatibility with permission bits.
  10346. @throws IOException if an ACL could not be modified]]>
  10347. </doc>
  10348. </method>
  10349. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  10350. abstract="false" native="false" synchronized="false"
  10351. static="false" final="false" visibility="public"
  10352. deprecated="not deprecated">
  10353. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10354. <exception name="IOException" type="java.io.IOException"/>
  10355. <doc>
  10356. <![CDATA[Gets the ACL of a file or directory.
  10357. @param path Path to get
  10358. @return AclStatus describing the ACL of the file or directory
  10359. @throws IOException if an ACL could not be read]]>
  10360. </doc>
  10361. </method>
  10362. <method name="setXAttr"
  10363. abstract="false" native="false" synchronized="false"
  10364. static="false" final="false" visibility="public"
  10365. deprecated="not deprecated">
  10366. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10367. <param name="name" type="java.lang.String"/>
  10368. <param name="value" type="byte[]"/>
  10369. <exception name="IOException" type="java.io.IOException"/>
  10370. <doc>
  10371. <![CDATA[Set an xattr of a file or directory.
  10372. The name must be prefixed with the namespace followed by ".". For example,
  10373. "user.attr".
  10374. <p/>
  10375. Refer to the HDFS extended attributes user documentation for details.
  10376. @param path Path to modify
  10377. @param name xattr name.
  10378. @param value xattr value.
  10379. @throws IOException]]>
  10380. </doc>
  10381. </method>
  10382. <method name="setXAttr"
  10383. abstract="false" native="false" synchronized="false"
  10384. static="false" final="false" visibility="public"
  10385. deprecated="not deprecated">
  10386. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10387. <param name="name" type="java.lang.String"/>
  10388. <param name="value" type="byte[]"/>
  10389. <param name="flag" type="java.util.EnumSet"/>
  10390. <exception name="IOException" type="java.io.IOException"/>
  10391. <doc>
  10392. <![CDATA[Set an xattr of a file or directory.
  10393. The name must be prefixed with the namespace followed by ".". For example,
  10394. "user.attr".
  10395. <p/>
  10396. Refer to the HDFS extended attributes user documentation for details.
  10397. @param path Path to modify
  10398. @param name xattr name.
  10399. @param value xattr value.
  10400. @param flag xattr set flag
  10401. @throws IOException]]>
  10402. </doc>
  10403. </method>
  10404. <method name="getXAttr" return="byte[]"
  10405. abstract="false" native="false" synchronized="false"
  10406. static="false" final="false" visibility="public"
  10407. deprecated="not deprecated">
  10408. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10409. <param name="name" type="java.lang.String"/>
  10410. <exception name="IOException" type="java.io.IOException"/>
  10411. <doc>
  10412. <![CDATA[Get an xattr name and value for a file or directory.
  10413. The name must be prefixed with the namespace followed by ".". For example,
  10414. "user.attr".
  10415. <p/>
  10416. Refer to the HDFS extended attributes user documentation for details.
  10417. @param path Path to get extended attribute
  10418. @param name xattr name.
  10419. @return byte[] xattr value.
  10420. @throws IOException]]>
  10421. </doc>
  10422. </method>
  10423. <method name="getXAttrs" return="java.util.Map"
  10424. abstract="false" native="false" synchronized="false"
  10425. static="false" final="false" visibility="public"
  10426. deprecated="not deprecated">
  10427. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10428. <exception name="IOException" type="java.io.IOException"/>
  10429. <doc>
  10430. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  10431. Only those xattrs which the logged-in user has permissions to view
  10432. are returned.
  10433. <p/>
  10434. Refer to the HDFS extended attributes user documentation for details.
  10435. @param path Path to get extended attributes
  10436. @return Map<String, byte[]> describing the XAttrs of the file or directory
  10437. @throws IOException]]>
  10438. </doc>
  10439. </method>
  10440. <method name="getXAttrs" return="java.util.Map"
  10441. abstract="false" native="false" synchronized="false"
  10442. static="false" final="false" visibility="public"
  10443. deprecated="not deprecated">
  10444. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10445. <param name="names" type="java.util.List"/>
  10446. <exception name="IOException" type="java.io.IOException"/>
  10447. <doc>
  10448. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  10449. Only those xattrs which the logged-in user has permissions to view
  10450. are returned.
  10451. <p/>
  10452. Refer to the HDFS extended attributes user documentation for details.
  10453. @param path Path to get extended attributes
  10454. @param names XAttr names.
  10455. @return Map<String, byte[]> describing the XAttrs of the file or directory
  10456. @throws IOException]]>
  10457. </doc>
  10458. </method>
  10459. <method name="listXAttrs" return="java.util.List"
  10460. abstract="false" native="false" synchronized="false"
  10461. static="false" final="false" visibility="public"
  10462. deprecated="not deprecated">
  10463. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10464. <exception name="IOException" type="java.io.IOException"/>
  10465. <doc>
  10466. <![CDATA[Get all of the xattr names for a file or directory.
  10467. Only those xattr names which the logged-in user has permissions to view
  10468. are returned.
  10469. <p/>
  10470. Refer to the HDFS extended attributes user documentation for details.
  10471. @param path Path to get extended attributes
  10472. @return List<String> of the XAttr names of the file or directory
  10473. @throws IOException]]>
  10474. </doc>
  10475. </method>
  10476. <method name="removeXAttr"
  10477. abstract="false" native="false" synchronized="false"
  10478. static="false" final="false" visibility="public"
  10479. deprecated="not deprecated">
  10480. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10481. <param name="name" type="java.lang.String"/>
  10482. <exception name="IOException" type="java.io.IOException"/>
  10483. <doc>
  10484. <![CDATA[Remove an xattr of a file or directory.
  10485. The name must be prefixed with the namespace followed by ".". For example,
  10486. "user.attr".
  10487. <p/>
  10488. Refer to the HDFS extended attributes user documentation for details.
  10489. @param path Path to remove extended attribute
  10490. @param name xattr name
  10491. @throws IOException]]>
  10492. </doc>
  10493. </method>
  10494. <method name="getFileSystemClass" return="java.lang.Class"
  10495. abstract="false" native="false" synchronized="false"
  10496. static="true" final="false" visibility="public"
  10497. deprecated="not deprecated">
  10498. <param name="scheme" type="java.lang.String"/>
  10499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10500. <exception name="IOException" type="java.io.IOException"/>
  10501. </method>
  10502. <method name="getStatistics" return="java.util.Map"
  10503. abstract="false" native="false" synchronized="true"
  10504. static="true" final="false" visibility="public"
  10505. deprecated="use {@link #getAllStatistics} instead">
  10506. <doc>
  10507. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  10508. @return a Map having a key as URI scheme and value as Statistics object
  10509. @deprecated use {@link #getAllStatistics} instead]]>
  10510. </doc>
  10511. </method>
  10512. <method name="getAllStatistics" return="java.util.List"
  10513. abstract="false" native="false" synchronized="true"
  10514. static="true" final="false" visibility="public"
  10515. deprecated="not deprecated">
  10516. <doc>
  10517. <![CDATA[Return the FileSystem classes that have Statistics]]>
  10518. </doc>
  10519. </method>
  10520. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  10521. abstract="false" native="false" synchronized="true"
  10522. static="true" final="false" visibility="public"
  10523. deprecated="not deprecated">
  10524. <param name="scheme" type="java.lang.String"/>
  10525. <param name="cls" type="java.lang.Class"/>
  10526. <doc>
  10527. <![CDATA[Get the statistics for a particular file system
  10528. @param cls the class to lookup
  10529. @return a statistics object]]>
  10530. </doc>
  10531. </method>
  10532. <method name="clearStatistics"
  10533. abstract="false" native="false" synchronized="true"
  10534. static="true" final="false" visibility="public"
  10535. deprecated="not deprecated">
  10536. <doc>
  10537. <![CDATA[Reset all statistics for all file systems]]>
  10538. </doc>
  10539. </method>
  10540. <method name="printStatistics"
  10541. abstract="false" native="false" synchronized="true"
  10542. static="true" final="false" visibility="public"
  10543. deprecated="not deprecated">
  10544. <exception name="IOException" type="java.io.IOException"/>
  10545. <doc>
  10546. <![CDATA[Print all statistics for all file systems]]>
  10547. </doc>
  10548. </method>
  10549. <method name="areSymlinksEnabled" return="boolean"
  10550. abstract="false" native="false" synchronized="false"
  10551. static="true" final="false" visibility="public"
  10552. deprecated="not deprecated">
  10553. </method>
  10554. <method name="enableSymlinks"
  10555. abstract="false" native="false" synchronized="false"
  10556. static="true" final="false" visibility="public"
  10557. deprecated="not deprecated">
  10558. </method>
  10559. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  10560. transient="false" volatile="false"
  10561. static="true" final="true" visibility="public"
  10562. deprecated="not deprecated">
  10563. </field>
  10564. <field name="DEFAULT_FS" type="java.lang.String"
  10565. transient="false" volatile="false"
  10566. static="true" final="true" visibility="public"
  10567. deprecated="not deprecated">
  10568. </field>
  10569. <field name="LOG" type="org.apache.commons.logging.Log"
  10570. transient="false" volatile="false"
  10571. static="true" final="true" visibility="public"
  10572. deprecated="not deprecated">
  10573. </field>
  10574. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  10575. transient="false" volatile="false"
  10576. static="true" final="true" visibility="public"
  10577. deprecated="not deprecated">
  10578. <doc>
  10579. <![CDATA[Priority of the FileSystem shutdown hook.]]>
  10580. </doc>
  10581. </field>
  10582. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  10583. transient="false" volatile="false"
  10584. static="false" final="false" visibility="protected"
  10585. deprecated="not deprecated">
  10586. <doc>
  10587. <![CDATA[The statistics for this file system.]]>
  10588. </doc>
  10589. </field>
  10590. <doc>
  10591. <![CDATA[An abstract base class for a fairly generic filesystem. It
  10592. may be implemented as a distributed filesystem, or as a "local"
  10593. one that reflects the locally-connected disk. The local version
  10594. exists for small Hadoop instances and for testing.
  10595. <p>
  10596. All user code that may potentially use the Hadoop Distributed
  10597. File System should be written to use a FileSystem object. The
  10598. Hadoop DFS is a multi-machine system that appears as a single
  10599. disk. It's useful because of its fault tolerance and potentially
  10600. very large capacity.
  10601. <p>
  10602. The local implementation is {@link LocalFileSystem} and distributed
  10603. implementation is DistributedFileSystem.]]>
  10604. </doc>
  10605. </class>
  10606. <!-- end class org.apache.hadoop.fs.FileSystem -->
  10607. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  10608. <class name="FileSystem.Statistics" extends="java.lang.Object"
  10609. abstract="false"
  10610. static="true" final="true" visibility="public"
  10611. deprecated="not deprecated">
  10612. <constructor name="FileSystem.Statistics" type="java.lang.String"
  10613. static="false" final="false" visibility="public"
  10614. deprecated="not deprecated">
  10615. </constructor>
  10616. <constructor name="FileSystem.Statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  10617. static="false" final="false" visibility="public"
  10618. deprecated="not deprecated">
  10619. <doc>
  10620. <![CDATA[Copy constructor.
  10621. @param other The input Statistics object which is cloned.]]>
  10622. </doc>
  10623. </constructor>
  10624. <method name="getThreadStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData"
  10625. abstract="false" native="false" synchronized="false"
  10626. static="false" final="false" visibility="public"
  10627. deprecated="not deprecated">
  10628. <doc>
  10629. <![CDATA[Get or create the thread-local data associated with the current thread.]]>
  10630. </doc>
  10631. </method>
  10632. <method name="incrementBytesRead"
  10633. abstract="false" native="false" synchronized="false"
  10634. static="false" final="false" visibility="public"
  10635. deprecated="not deprecated">
  10636. <param name="newBytes" type="long"/>
  10637. <doc>
  10638. <![CDATA[Increment the bytes read in the statistics
  10639. @param newBytes the additional bytes read]]>
  10640. </doc>
  10641. </method>
  10642. <method name="incrementBytesWritten"
  10643. abstract="false" native="false" synchronized="false"
  10644. static="false" final="false" visibility="public"
  10645. deprecated="not deprecated">
  10646. <param name="newBytes" type="long"/>
  10647. <doc>
  10648. <![CDATA[Increment the bytes written in the statistics
  10649. @param newBytes the additional bytes written]]>
  10650. </doc>
  10651. </method>
  10652. <method name="incrementReadOps"
  10653. abstract="false" native="false" synchronized="false"
  10654. static="false" final="false" visibility="public"
  10655. deprecated="not deprecated">
  10656. <param name="count" type="int"/>
  10657. <doc>
  10658. <![CDATA[Increment the number of read operations
  10659. @param count number of read operations]]>
  10660. </doc>
  10661. </method>
  10662. <method name="incrementLargeReadOps"
  10663. abstract="false" native="false" synchronized="false"
  10664. static="false" final="false" visibility="public"
  10665. deprecated="not deprecated">
  10666. <param name="count" type="int"/>
  10667. <doc>
  10668. <![CDATA[Increment the number of large read operations
  10669. @param count number of large read operations]]>
  10670. </doc>
  10671. </method>
  10672. <method name="incrementWriteOps"
  10673. abstract="false" native="false" synchronized="false"
  10674. static="false" final="false" visibility="public"
  10675. deprecated="not deprecated">
  10676. <param name="count" type="int"/>
  10677. <doc>
  10678. <![CDATA[Increment the number of write operations
  10679. @param count number of write operations]]>
  10680. </doc>
  10681. </method>
  10682. <method name="getBytesRead" return="long"
  10683. abstract="false" native="false" synchronized="false"
  10684. static="false" final="false" visibility="public"
  10685. deprecated="not deprecated">
  10686. <doc>
  10687. <![CDATA[Get the total number of bytes read
  10688. @return the number of bytes]]>
  10689. </doc>
  10690. </method>
  10691. <method name="getBytesWritten" return="long"
  10692. abstract="false" native="false" synchronized="false"
  10693. static="false" final="false" visibility="public"
  10694. deprecated="not deprecated">
  10695. <doc>
  10696. <![CDATA[Get the total number of bytes written
  10697. @return the number of bytes]]>
  10698. </doc>
  10699. </method>
  10700. <method name="getReadOps" return="int"
  10701. abstract="false" native="false" synchronized="false"
  10702. static="false" final="false" visibility="public"
  10703. deprecated="not deprecated">
  10704. <doc>
  10705. <![CDATA[Get the number of file system read operations such as list files
  10706. @return number of read operations]]>
  10707. </doc>
  10708. </method>
  10709. <method name="getLargeReadOps" return="int"
  10710. abstract="false" native="false" synchronized="false"
  10711. static="false" final="false" visibility="public"
  10712. deprecated="not deprecated">
  10713. <doc>
  10714. <![CDATA[Get the number of large file system read operations such as list files
  10715. under a large directory
  10716. @return number of large read operations]]>
  10717. </doc>
  10718. </method>
  10719. <method name="getWriteOps" return="int"
  10720. abstract="false" native="false" synchronized="false"
  10721. static="false" final="false" visibility="public"
  10722. deprecated="not deprecated">
  10723. <doc>
  10724. <![CDATA[Get the number of file system write operations such as create, append
  10725. rename etc.
  10726. @return number of write operations]]>
  10727. </doc>
  10728. </method>
  10729. <method name="toString" return="java.lang.String"
  10730. abstract="false" native="false" synchronized="false"
  10731. static="false" final="false" visibility="public"
  10732. deprecated="not deprecated">
  10733. </method>
  10734. <method name="reset"
  10735. abstract="false" native="false" synchronized="false"
  10736. static="false" final="false" visibility="public"
  10737. deprecated="not deprecated">
  10738. <doc>
  10739. <![CDATA[Resets all statistics to 0.
  10740. In order to reset, we add up all the thread-local statistics data, and
  10741. set rootData to the negative of that.
  10742. This may seem like a counterintuitive way to reset the statsitics. Why
  10743. can't we just zero out all the thread-local data? Well, thread-local
  10744. data can only be modified by the thread that owns it. If we tried to
  10745. modify the thread-local data from this thread, our modification might get
  10746. interleaved with a read-modify-write operation done by the thread that
  10747. owns the data. That would result in our update getting lost.
  10748. The approach used here avoids this problem because it only ever reads
  10749. (not writes) the thread-local data. Both reads and writes to rootData
  10750. are done under the lock, so we're free to modify rootData from any thread
  10751. that holds the lock.]]>
  10752. </doc>
  10753. </method>
  10754. <method name="getScheme" return="java.lang.String"
  10755. abstract="false" native="false" synchronized="false"
  10756. static="false" final="false" visibility="public"
  10757. deprecated="not deprecated">
  10758. <doc>
  10759. <![CDATA[Get the uri scheme associated with this statistics object.
  10760. @return the schema associated with this set of statistics]]>
  10761. </doc>
  10762. </method>
  10763. <doc>
  10764. <![CDATA[Tracks statistics about how many reads, writes, and so forth have been
  10765. done in a FileSystem.
  10766. Since there is only one of these objects per FileSystem, there will
  10767. typically be many threads writing to this object. Almost every operation
  10768. on an open file will involve a write to this object. In contrast, reading
  10769. statistics is done infrequently by most programs, and not at all by others.
  10770. Hence, this is optimized for writes.
  10771. Each thread writes to its own thread-local area of memory. This removes
  10772. contention and allows us to scale up to many, many threads. To read
  10773. statistics, the reader thread totals up the contents of all of the
  10774. thread-local data areas.]]>
  10775. </doc>
  10776. </class>
  10777. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  10778. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData -->
  10779. <class name="FileSystem.Statistics.StatisticsData" extends="java.lang.Object"
  10780. abstract="false"
  10781. static="true" final="false" visibility="public"
  10782. deprecated="not deprecated">
  10783. <method name="toString" return="java.lang.String"
  10784. abstract="false" native="false" synchronized="false"
  10785. static="false" final="false" visibility="public"
  10786. deprecated="not deprecated">
  10787. </method>
  10788. <method name="getBytesRead" return="long"
  10789. abstract="false" native="false" synchronized="false"
  10790. static="false" final="false" visibility="public"
  10791. deprecated="not deprecated">
  10792. </method>
  10793. <method name="getBytesWritten" return="long"
  10794. abstract="false" native="false" synchronized="false"
  10795. static="false" final="false" visibility="public"
  10796. deprecated="not deprecated">
  10797. </method>
  10798. <method name="getReadOps" return="int"
  10799. abstract="false" native="false" synchronized="false"
  10800. static="false" final="false" visibility="public"
  10801. deprecated="not deprecated">
  10802. </method>
  10803. <method name="getLargeReadOps" return="int"
  10804. abstract="false" native="false" synchronized="false"
  10805. static="false" final="false" visibility="public"
  10806. deprecated="not deprecated">
  10807. </method>
  10808. <method name="getWriteOps" return="int"
  10809. abstract="false" native="false" synchronized="false"
  10810. static="false" final="false" visibility="public"
  10811. deprecated="not deprecated">
  10812. </method>
  10813. <doc>
  10814. <![CDATA[Statistics data.
  10815. There is only a single writer to thread-local StatisticsData objects.
  10816. Hence, volatile is adequate here-- we do not need AtomicLong or similar
  10817. to prevent lost updates.
  10818. The Java specification guarantees that updates to volatile longs will
  10819. be perceived as atomic with respect to other threads, which is all we
  10820. need.]]>
  10821. </doc>
  10822. </class>
  10823. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData -->
  10824. <!-- start class org.apache.hadoop.fs.FileUtil -->
  10825. <class name="FileUtil" extends="java.lang.Object"
  10826. abstract="false"
  10827. static="false" final="false" visibility="public"
  10828. deprecated="not deprecated">
  10829. <constructor name="FileUtil"
  10830. static="false" final="false" visibility="public"
  10831. deprecated="not deprecated">
  10832. </constructor>
  10833. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10834. abstract="false" native="false" synchronized="false"
  10835. static="true" final="false" visibility="public"
  10836. deprecated="not deprecated">
  10837. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10838. <doc>
  10839. <![CDATA[convert an array of FileStatus to an array of Path
  10840. @param stats
  10841. an array of FileStatus objects
  10842. @return an array of paths corresponding to the input]]>
  10843. </doc>
  10844. </method>
  10845. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10846. abstract="false" native="false" synchronized="false"
  10847. static="true" final="false" visibility="public"
  10848. deprecated="not deprecated">
  10849. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10850. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10851. <doc>
  10852. <![CDATA[convert an array of FileStatus to an array of Path.
  10853. If stats if null, return path
  10854. @param stats
  10855. an array of FileStatus objects
  10856. @param path
  10857. default path to return in stats is null
  10858. @return an array of paths corresponding to the input]]>
  10859. </doc>
  10860. </method>
  10861. <method name="fullyDelete" return="boolean"
  10862. abstract="false" native="false" synchronized="false"
  10863. static="true" final="false" visibility="public"
  10864. deprecated="not deprecated">
  10865. <param name="dir" type="java.io.File"/>
  10866. <doc>
  10867. <![CDATA[Delete a directory and all its contents. If
  10868. we return false, the directory may be partially-deleted.
  10869. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10870. to by the symlink is not deleted.
  10871. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10872. pointed to by symlink is not deleted.
  10873. (3) If dir is a normal file, it is deleted.
  10874. (4) If dir is a normal directory, then dir and all its contents recursively
  10875. are deleted.]]>
  10876. </doc>
  10877. </method>
  10878. <method name="fullyDelete" return="boolean"
  10879. abstract="false" native="false" synchronized="false"
  10880. static="true" final="false" visibility="public"
  10881. deprecated="not deprecated">
  10882. <param name="dir" type="java.io.File"/>
  10883. <param name="tryGrantPermissions" type="boolean"/>
  10884. <doc>
  10885. <![CDATA[Delete a directory and all its contents. If
  10886. we return false, the directory may be partially-deleted.
  10887. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10888. to by the symlink is not deleted.
  10889. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10890. pointed to by symlink is not deleted.
  10891. (3) If dir is a normal file, it is deleted.
  10892. (4) If dir is a normal directory, then dir and all its contents recursively
  10893. are deleted.
  10894. @param dir the file or directory to be deleted
  10895. @param tryGrantPermissions true if permissions should be modified to delete a file.
  10896. @return true on success false on failure.]]>
  10897. </doc>
  10898. </method>
  10899. <method name="readLink" return="java.lang.String"
  10900. abstract="false" native="false" synchronized="false"
  10901. static="true" final="false" visibility="public"
  10902. deprecated="not deprecated">
  10903. <param name="f" type="java.io.File"/>
  10904. <doc>
  10905. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  10906. the given path does not refer to a symlink or there is an error
  10907. accessing the symlink.
  10908. @param f File representing the symbolic link.
  10909. @return The target of the symbolic link, empty string on error or if not
  10910. a symlink.]]>
  10911. </doc>
  10912. </method>
  10913. <method name="fullyDeleteContents" return="boolean"
  10914. abstract="false" native="false" synchronized="false"
  10915. static="true" final="false" visibility="public"
  10916. deprecated="not deprecated">
  10917. <param name="dir" type="java.io.File"/>
  10918. <doc>
  10919. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10920. we return false, the directory may be partially-deleted.
  10921. If dir is a symlink to a directory, all the contents of the actual
  10922. directory pointed to by dir will be deleted.]]>
  10923. </doc>
  10924. </method>
  10925. <method name="fullyDeleteContents" return="boolean"
  10926. abstract="false" native="false" synchronized="false"
  10927. static="true" final="false" visibility="public"
  10928. deprecated="not deprecated">
  10929. <param name="dir" type="java.io.File"/>
  10930. <param name="tryGrantPermissions" type="boolean"/>
  10931. <doc>
  10932. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10933. we return false, the directory may be partially-deleted.
  10934. If dir is a symlink to a directory, all the contents of the actual
  10935. directory pointed to by dir will be deleted.
  10936. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  10937. and all the underlying directories before trying to delete their contents.]]>
  10938. </doc>
  10939. </method>
  10940. <method name="fullyDelete"
  10941. abstract="false" native="false" synchronized="false"
  10942. static="true" final="false" visibility="public"
  10943. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  10944. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10945. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10946. <exception name="IOException" type="java.io.IOException"/>
  10947. <doc>
  10948. <![CDATA[Recursively delete a directory.
  10949. @param fs {@link FileSystem} on which the path is present
  10950. @param dir directory to recursively delete
  10951. @throws IOException
  10952. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  10953. </doc>
  10954. </method>
  10955. <method name="copy" return="boolean"
  10956. abstract="false" native="false" synchronized="false"
  10957. static="true" final="false" visibility="public"
  10958. deprecated="not deprecated">
  10959. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10960. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10961. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10962. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10963. <param name="deleteSource" type="boolean"/>
  10964. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10965. <exception name="IOException" type="java.io.IOException"/>
  10966. <doc>
  10967. <![CDATA[Copy files between FileSystems.]]>
  10968. </doc>
  10969. </method>
  10970. <method name="copy" return="boolean"
  10971. abstract="false" native="false" synchronized="false"
  10972. static="true" final="false" visibility="public"
  10973. deprecated="not deprecated">
  10974. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10975. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10976. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10977. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10978. <param name="deleteSource" type="boolean"/>
  10979. <param name="overwrite" type="boolean"/>
  10980. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10981. <exception name="IOException" type="java.io.IOException"/>
  10982. </method>
  10983. <method name="copy" return="boolean"
  10984. abstract="false" native="false" synchronized="false"
  10985. static="true" final="false" visibility="public"
  10986. deprecated="not deprecated">
  10987. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10988. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10989. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10990. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10991. <param name="deleteSource" type="boolean"/>
  10992. <param name="overwrite" type="boolean"/>
  10993. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10994. <exception name="IOException" type="java.io.IOException"/>
  10995. <doc>
  10996. <![CDATA[Copy files between FileSystems.]]>
  10997. </doc>
  10998. </method>
  10999. <method name="copy" return="boolean"
  11000. abstract="false" native="false" synchronized="false"
  11001. static="true" final="false" visibility="public"
  11002. deprecated="not deprecated">
  11003. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11004. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  11005. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11006. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11007. <param name="deleteSource" type="boolean"/>
  11008. <param name="overwrite" type="boolean"/>
  11009. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11010. <exception name="IOException" type="java.io.IOException"/>
  11011. <doc>
  11012. <![CDATA[Copy files between FileSystems.]]>
  11013. </doc>
  11014. </method>
  11015. <method name="copyMerge" return="boolean"
  11016. abstract="false" native="false" synchronized="false"
  11017. static="true" final="false" visibility="public"
  11018. deprecated="not deprecated">
  11019. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11020. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  11021. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11022. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  11023. <param name="deleteSource" type="boolean"/>
  11024. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11025. <param name="addString" type="java.lang.String"/>
  11026. <exception name="IOException" type="java.io.IOException"/>
  11027. <doc>
  11028. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  11029. </doc>
  11030. </method>
  11031. <method name="copy" return="boolean"
  11032. abstract="false" native="false" synchronized="false"
  11033. static="true" final="false" visibility="public"
  11034. deprecated="not deprecated">
  11035. <param name="src" type="java.io.File"/>
  11036. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11037. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11038. <param name="deleteSource" type="boolean"/>
  11039. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11040. <exception name="IOException" type="java.io.IOException"/>
  11041. <doc>
  11042. <![CDATA[Copy local files to a FileSystem.]]>
  11043. </doc>
  11044. </method>
  11045. <method name="copy" return="boolean"
  11046. abstract="false" native="false" synchronized="false"
  11047. static="true" final="false" visibility="public"
  11048. deprecated="not deprecated">
  11049. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11050. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11051. <param name="dst" type="java.io.File"/>
  11052. <param name="deleteSource" type="boolean"/>
  11053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11054. <exception name="IOException" type="java.io.IOException"/>
  11055. <doc>
  11056. <![CDATA[Copy FileSystem files to local files.]]>
  11057. </doc>
  11058. </method>
  11059. <method name="makeShellPath" return="java.lang.String"
  11060. abstract="false" native="false" synchronized="false"
  11061. static="true" final="false" visibility="public"
  11062. deprecated="not deprecated">
  11063. <param name="filename" type="java.lang.String"/>
  11064. <exception name="IOException" type="java.io.IOException"/>
  11065. <doc>
  11066. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11067. @param filename The filename to convert
  11068. @return The unix pathname
  11069. @throws IOException on windows, there can be problems with the subprocess]]>
  11070. </doc>
  11071. </method>
  11072. <method name="makeShellPath" return="java.lang.String"
  11073. abstract="false" native="false" synchronized="false"
  11074. static="true" final="false" visibility="public"
  11075. deprecated="not deprecated">
  11076. <param name="file" type="java.io.File"/>
  11077. <exception name="IOException" type="java.io.IOException"/>
  11078. <doc>
  11079. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11080. @param file The filename to convert
  11081. @return The unix pathname
  11082. @throws IOException on windows, there can be problems with the subprocess]]>
  11083. </doc>
  11084. </method>
  11085. <method name="makeShellPath" return="java.lang.String"
  11086. abstract="false" native="false" synchronized="false"
  11087. static="true" final="false" visibility="public"
  11088. deprecated="not deprecated">
  11089. <param name="file" type="java.io.File"/>
  11090. <param name="makeCanonicalPath" type="boolean"/>
  11091. <exception name="IOException" type="java.io.IOException"/>
  11092. <doc>
  11093. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11094. @param file The filename to convert
  11095. @param makeCanonicalPath
  11096. Whether to make canonical path for the file passed
  11097. @return The unix pathname
  11098. @throws IOException on windows, there can be problems with the subprocess]]>
  11099. </doc>
  11100. </method>
  11101. <method name="getDU" return="long"
  11102. abstract="false" native="false" synchronized="false"
  11103. static="true" final="false" visibility="public"
  11104. deprecated="not deprecated">
  11105. <param name="dir" type="java.io.File"/>
  11106. <doc>
  11107. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  11108. implementation.
  11109. @param dir
  11110. The input dir to get the disk space of this local dir
  11111. @return The total disk space of the input local directory]]>
  11112. </doc>
  11113. </method>
  11114. <method name="unZip"
  11115. abstract="false" native="false" synchronized="false"
  11116. static="true" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <param name="inFile" type="java.io.File"/>
  11119. <param name="unzipDir" type="java.io.File"/>
  11120. <exception name="IOException" type="java.io.IOException"/>
  11121. <doc>
  11122. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  11123. passed as the second parameter
  11124. @param inFile The zip file as input
  11125. @param unzipDir The unzip directory where to unzip the zip file.
  11126. @throws IOException]]>
  11127. </doc>
  11128. </method>
  11129. <method name="unTar"
  11130. abstract="false" native="false" synchronized="false"
  11131. static="true" final="false" visibility="public"
  11132. deprecated="not deprecated">
  11133. <param name="inFile" type="java.io.File"/>
  11134. <param name="untarDir" type="java.io.File"/>
  11135. <exception name="IOException" type="java.io.IOException"/>
  11136. <doc>
  11137. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11138. passed as the second parameter
  11139. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11140. @param inFile The tar file as input.
  11141. @param untarDir The untar directory where to untar the tar file.
  11142. @throws IOException]]>
  11143. </doc>
  11144. </method>
  11145. <method name="symLink" return="int"
  11146. abstract="false" native="false" synchronized="false"
  11147. static="true" final="false" visibility="public"
  11148. deprecated="not deprecated">
  11149. <param name="target" type="java.lang.String"/>
  11150. <param name="linkname" type="java.lang.String"/>
  11151. <exception name="IOException" type="java.io.IOException"/>
  11152. <doc>
  11153. <![CDATA[Create a soft link between a src and destination
  11154. only on a local disk. HDFS does not support this.
  11155. On Windows, when symlink creation fails due to security
  11156. setting, we will log a warning. The return code in this
  11157. case is 2.
  11158. @param target the target for symlink
  11159. @param linkname the symlink
  11160. @return 0 on success]]>
  11161. </doc>
  11162. </method>
  11163. <method name="chmod" return="int"
  11164. abstract="false" native="false" synchronized="false"
  11165. static="true" final="false" visibility="public"
  11166. deprecated="not deprecated">
  11167. <param name="filename" type="java.lang.String"/>
  11168. <param name="perm" type="java.lang.String"/>
  11169. <exception name="IOException" type="java.io.IOException"/>
  11170. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11171. <doc>
  11172. <![CDATA[Change the permissions on a filename.
  11173. @param filename the name of the file to change
  11174. @param perm the permission string
  11175. @return the exit code from the command
  11176. @throws IOException
  11177. @throws InterruptedException]]>
  11178. </doc>
  11179. </method>
  11180. <method name="chmod" return="int"
  11181. abstract="false" native="false" synchronized="false"
  11182. static="true" final="false" visibility="public"
  11183. deprecated="not deprecated">
  11184. <param name="filename" type="java.lang.String"/>
  11185. <param name="perm" type="java.lang.String"/>
  11186. <param name="recursive" type="boolean"/>
  11187. <exception name="IOException" type="java.io.IOException"/>
  11188. <doc>
  11189. <![CDATA[Change the permissions on a file / directory, recursively, if
  11190. needed.
  11191. @param filename name of the file whose permissions are to change
  11192. @param perm permission string
  11193. @param recursive true, if permissions should be changed recursively
  11194. @return the exit code from the command.
  11195. @throws IOException]]>
  11196. </doc>
  11197. </method>
  11198. <method name="setOwner"
  11199. abstract="false" native="false" synchronized="false"
  11200. static="true" final="false" visibility="public"
  11201. deprecated="not deprecated">
  11202. <param name="file" type="java.io.File"/>
  11203. <param name="username" type="java.lang.String"/>
  11204. <param name="groupname" type="java.lang.String"/>
  11205. <exception name="IOException" type="java.io.IOException"/>
  11206. <doc>
  11207. <![CDATA[Set the ownership on a file / directory. User name and group name
  11208. cannot both be null.
  11209. @param file the file to change
  11210. @param username the new user owner name
  11211. @param groupname the new group owner name
  11212. @throws IOException]]>
  11213. </doc>
  11214. </method>
  11215. <method name="setReadable" return="boolean"
  11216. abstract="false" native="false" synchronized="false"
  11217. static="true" final="false" visibility="public"
  11218. deprecated="not deprecated">
  11219. <param name="f" type="java.io.File"/>
  11220. <param name="readable" type="boolean"/>
  11221. <doc>
  11222. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  11223. File#setReadable does not work as expected on Windows.
  11224. @param f input file
  11225. @param readable
  11226. @return true on success, false otherwise]]>
  11227. </doc>
  11228. </method>
  11229. <method name="setWritable" return="boolean"
  11230. abstract="false" native="false" synchronized="false"
  11231. static="true" final="false" visibility="public"
  11232. deprecated="not deprecated">
  11233. <param name="f" type="java.io.File"/>
  11234. <param name="writable" type="boolean"/>
  11235. <doc>
  11236. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  11237. File#setWritable does not work as expected on Windows.
  11238. @param f input file
  11239. @param writable
  11240. @return true on success, false otherwise]]>
  11241. </doc>
  11242. </method>
  11243. <method name="setExecutable" return="boolean"
  11244. abstract="false" native="false" synchronized="false"
  11245. static="true" final="false" visibility="public"
  11246. deprecated="not deprecated">
  11247. <param name="f" type="java.io.File"/>
  11248. <param name="executable" type="boolean"/>
  11249. <doc>
  11250. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  11251. File#setExecutable does not work as expected on Windows.
  11252. Note: revoking execute permission on folders does not have the same
  11253. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  11254. a file within that folder will still succeed on Windows.
  11255. @param f input file
  11256. @param executable
  11257. @return true on success, false otherwise]]>
  11258. </doc>
  11259. </method>
  11260. <method name="canRead" return="boolean"
  11261. abstract="false" native="false" synchronized="false"
  11262. static="true" final="false" visibility="public"
  11263. deprecated="not deprecated">
  11264. <param name="f" type="java.io.File"/>
  11265. <doc>
  11266. <![CDATA[Platform independent implementation for {@link File#canRead()}
  11267. @param f input file
  11268. @return On Unix, same as {@link File#canRead()}
  11269. On Windows, true if process has read access on the path]]>
  11270. </doc>
  11271. </method>
  11272. <method name="canWrite" return="boolean"
  11273. abstract="false" native="false" synchronized="false"
  11274. static="true" final="false" visibility="public"
  11275. deprecated="not deprecated">
  11276. <param name="f" type="java.io.File"/>
  11277. <doc>
  11278. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  11279. @param f input file
  11280. @return On Unix, same as {@link File#canWrite()}
  11281. On Windows, true if process has write access on the path]]>
  11282. </doc>
  11283. </method>
  11284. <method name="canExecute" return="boolean"
  11285. abstract="false" native="false" synchronized="false"
  11286. static="true" final="false" visibility="public"
  11287. deprecated="not deprecated">
  11288. <param name="f" type="java.io.File"/>
  11289. <doc>
  11290. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  11291. @param f input file
  11292. @return On Unix, same as {@link File#canExecute()}
  11293. On Windows, true if process has execute access on the path]]>
  11294. </doc>
  11295. </method>
  11296. <method name="setPermission"
  11297. abstract="false" native="false" synchronized="false"
  11298. static="true" final="false" visibility="public"
  11299. deprecated="not deprecated">
  11300. <param name="f" type="java.io.File"/>
  11301. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11302. <exception name="IOException" type="java.io.IOException"/>
  11303. <doc>
  11304. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  11305. of forking if group == other.
  11306. @param f the file to change
  11307. @param permission the new permissions
  11308. @throws IOException]]>
  11309. </doc>
  11310. </method>
  11311. <method name="createLocalTempFile" return="java.io.File"
  11312. abstract="false" native="false" synchronized="false"
  11313. static="true" final="true" visibility="public"
  11314. deprecated="not deprecated">
  11315. <param name="basefile" type="java.io.File"/>
  11316. <param name="prefix" type="java.lang.String"/>
  11317. <param name="isDeleteOnExit" type="boolean"/>
  11318. <exception name="IOException" type="java.io.IOException"/>
  11319. <doc>
  11320. <![CDATA[Create a tmp file for a base file.
  11321. @param basefile the base file of the tmp
  11322. @param prefix file name prefix of tmp
  11323. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  11324. @return a newly created tmp file
  11325. @exception IOException If a tmp file cannot created
  11326. @see java.io.File#createTempFile(String, String, File)
  11327. @see java.io.File#deleteOnExit()]]>
  11328. </doc>
  11329. </method>
  11330. <method name="replaceFile"
  11331. abstract="false" native="false" synchronized="false"
  11332. static="true" final="false" visibility="public"
  11333. deprecated="not deprecated">
  11334. <param name="src" type="java.io.File"/>
  11335. <param name="target" type="java.io.File"/>
  11336. <exception name="IOException" type="java.io.IOException"/>
  11337. <doc>
  11338. <![CDATA[Move the src file to the name specified by target.
  11339. @param src the source file
  11340. @param target the target file
  11341. @exception IOException If this operation fails]]>
  11342. </doc>
  11343. </method>
  11344. <method name="listFiles" return="java.io.File[]"
  11345. abstract="false" native="false" synchronized="false"
  11346. static="true" final="false" visibility="public"
  11347. deprecated="not deprecated">
  11348. <param name="dir" type="java.io.File"/>
  11349. <exception name="IOException" type="java.io.IOException"/>
  11350. <doc>
  11351. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  11352. when a dir is not a directory or for any I/O error. Instead of having
  11353. null check everywhere File#listFiles() is used, we will add utility API
  11354. to get around this problem. For the majority of cases where we prefer
  11355. an IOException to be thrown.
  11356. @param dir directory for which listing should be performed
  11357. @return list of files or empty list
  11358. @exception IOException for invalid directory or for a bad disk.]]>
  11359. </doc>
  11360. </method>
  11361. <method name="list" return="java.lang.String[]"
  11362. abstract="false" native="false" synchronized="false"
  11363. static="true" final="false" visibility="public"
  11364. deprecated="not deprecated">
  11365. <param name="dir" type="java.io.File"/>
  11366. <exception name="IOException" type="java.io.IOException"/>
  11367. <doc>
  11368. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  11369. when a dir is not a directory or for any I/O error. Instead of having
  11370. null check everywhere File#list() is used, we will add utility API
  11371. to get around this problem. For the majority of cases where we prefer
  11372. an IOException to be thrown.
  11373. @param dir directory for which listing should be performed
  11374. @return list of file names or empty string list
  11375. @exception IOException for invalid directory or for a bad disk.]]>
  11376. </doc>
  11377. </method>
  11378. <method name="createJarWithClassPath" return="java.lang.String[]"
  11379. abstract="false" native="false" synchronized="false"
  11380. static="true" final="false" visibility="public"
  11381. deprecated="not deprecated">
  11382. <param name="inputClassPath" type="java.lang.String"/>
  11383. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11384. <param name="callerEnv" type="java.util.Map"/>
  11385. <exception name="IOException" type="java.io.IOException"/>
  11386. </method>
  11387. <method name="createJarWithClassPath" return="java.lang.String[]"
  11388. abstract="false" native="false" synchronized="false"
  11389. static="true" final="false" visibility="public"
  11390. deprecated="not deprecated">
  11391. <param name="inputClassPath" type="java.lang.String"/>
  11392. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11393. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  11394. <param name="callerEnv" type="java.util.Map"/>
  11395. <exception name="IOException" type="java.io.IOException"/>
  11396. <doc>
  11397. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  11398. that references all specified entries.
  11399. Some platforms may have an upper limit on command line length. For example,
  11400. the maximum command line length on Windows is 8191 characters, but the
  11401. length of the classpath may exceed this. To work around this limitation,
  11402. use this method to create a small intermediate jar with a manifest that
  11403. contains the full classpath. It returns the absolute path to the new jar,
  11404. which the caller may set as the classpath for a new process.
  11405. Environment variable evaluation is not supported within a jar manifest, so
  11406. this method expands environment variables before inserting classpath entries
  11407. to the manifest. The method parses environment variables according to
  11408. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  11409. environment variables are case-insensitive. For example, %VAR% and %var%
  11410. evaluate to the same value.
  11411. Specifying the classpath in a jar manifest does not support wildcards, so
  11412. this method expands wildcards internally. Any classpath entry that ends
  11413. with * is translated to all files at that path with extension .jar or .JAR.
  11414. @param inputClassPath String input classpath to bundle into the jar manifest
  11415. @param pwd Path to working directory to save jar
  11416. @param targetDir path to where the jar execution will have its working dir
  11417. @param callerEnv Map<String, String> caller's environment variables to use
  11418. for expansion
  11419. @return String[] with absolute path to new jar in position 0 and
  11420. unexpanded wild card entry path in position 1
  11421. @throws IOException if there is an I/O error while writing the jar file]]>
  11422. </doc>
  11423. </method>
  11424. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  11425. transient="false" volatile="false"
  11426. static="true" final="true" visibility="public"
  11427. deprecated="not deprecated">
  11428. </field>
  11429. <doc>
  11430. <![CDATA[A collection of file-processing util methods]]>
  11431. </doc>
  11432. </class>
  11433. <!-- end class org.apache.hadoop.fs.FileUtil -->
  11434. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  11435. <class name="FileUtil.HardLink" extends="org.apache.hadoop.fs.HardLink"
  11436. abstract="false"
  11437. static="true" final="false" visibility="public"
  11438. deprecated="Use {@link org.apache.hadoop.fs.HardLink}">
  11439. <constructor name="FileUtil.HardLink"
  11440. static="false" final="false" visibility="public"
  11441. deprecated="not deprecated">
  11442. </constructor>
  11443. <doc>
  11444. <![CDATA[Class for creating hardlinks.
  11445. Supports Unix, WindXP.
  11446. @deprecated Use {@link org.apache.hadoop.fs.HardLink}]]>
  11447. </doc>
  11448. </class>
  11449. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  11450. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  11451. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11452. abstract="false"
  11453. static="false" final="false" visibility="public"
  11454. deprecated="not deprecated">
  11455. <constructor name="FilterFileSystem"
  11456. static="false" final="false" visibility="public"
  11457. deprecated="not deprecated">
  11458. </constructor>
  11459. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11460. static="false" final="false" visibility="public"
  11461. deprecated="not deprecated">
  11462. </constructor>
  11463. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11464. abstract="false" native="false" synchronized="false"
  11465. static="false" final="false" visibility="public"
  11466. deprecated="not deprecated">
  11467. <doc>
  11468. <![CDATA[Get the raw file system
  11469. @return FileSystem being filtered]]>
  11470. </doc>
  11471. </method>
  11472. <method name="initialize"
  11473. abstract="false" native="false" synchronized="false"
  11474. static="false" final="false" visibility="public"
  11475. deprecated="not deprecated">
  11476. <param name="name" type="java.net.URI"/>
  11477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11478. <exception name="IOException" type="java.io.IOException"/>
  11479. <doc>
  11480. <![CDATA[Called after a new FileSystem instance is constructed.
  11481. @param name a uri whose authority section names the host, port, etc.
  11482. for this FileSystem
  11483. @param conf the configuration]]>
  11484. </doc>
  11485. </method>
  11486. <method name="getUri" return="java.net.URI"
  11487. abstract="false" native="false" synchronized="false"
  11488. static="false" final="false" visibility="public"
  11489. deprecated="not deprecated">
  11490. <doc>
  11491. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  11492. </doc>
  11493. </method>
  11494. <method name="getCanonicalUri" return="java.net.URI"
  11495. abstract="false" native="false" synchronized="false"
  11496. static="false" final="false" visibility="protected"
  11497. deprecated="not deprecated">
  11498. </method>
  11499. <method name="canonicalizeUri" return="java.net.URI"
  11500. abstract="false" native="false" synchronized="false"
  11501. static="false" final="false" visibility="protected"
  11502. deprecated="not deprecated">
  11503. <param name="uri" type="java.net.URI"/>
  11504. </method>
  11505. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  11506. abstract="false" native="false" synchronized="false"
  11507. static="false" final="false" visibility="public"
  11508. deprecated="not deprecated">
  11509. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11510. <doc>
  11511. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  11512. </doc>
  11513. </method>
  11514. <method name="checkPath"
  11515. abstract="false" native="false" synchronized="false"
  11516. static="false" final="false" visibility="protected"
  11517. deprecated="not deprecated">
  11518. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11519. <doc>
  11520. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  11521. </doc>
  11522. </method>
  11523. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  11524. abstract="false" native="false" synchronized="false"
  11525. static="false" final="false" visibility="public"
  11526. deprecated="not deprecated">
  11527. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  11528. <param name="start" type="long"/>
  11529. <param name="len" type="long"/>
  11530. <exception name="IOException" type="java.io.IOException"/>
  11531. </method>
  11532. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  11533. abstract="false" native="false" synchronized="false"
  11534. static="false" final="false" visibility="public"
  11535. deprecated="not deprecated">
  11536. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11537. <exception name="IOException" type="java.io.IOException"/>
  11538. </method>
  11539. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11540. abstract="false" native="false" synchronized="false"
  11541. static="false" final="false" visibility="public"
  11542. deprecated="not deprecated">
  11543. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11544. <param name="bufferSize" type="int"/>
  11545. <exception name="IOException" type="java.io.IOException"/>
  11546. <doc>
  11547. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  11548. @param f the file name to open
  11549. @param bufferSize the size of the buffer to be used.]]>
  11550. </doc>
  11551. </method>
  11552. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11553. abstract="false" native="false" synchronized="false"
  11554. static="false" final="false" visibility="public"
  11555. deprecated="not deprecated">
  11556. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11557. <param name="bufferSize" type="int"/>
  11558. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11559. <exception name="IOException" type="java.io.IOException"/>
  11560. </method>
  11561. <method name="concat"
  11562. abstract="false" native="false" synchronized="false"
  11563. static="false" final="false" visibility="public"
  11564. deprecated="not deprecated">
  11565. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11566. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  11567. <exception name="IOException" type="java.io.IOException"/>
  11568. </method>
  11569. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11570. abstract="false" native="false" synchronized="false"
  11571. static="false" final="false" visibility="public"
  11572. deprecated="not deprecated">
  11573. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11574. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11575. <param name="overwrite" type="boolean"/>
  11576. <param name="bufferSize" type="int"/>
  11577. <param name="replication" type="short"/>
  11578. <param name="blockSize" type="long"/>
  11579. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11580. <exception name="IOException" type="java.io.IOException"/>
  11581. </method>
  11582. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11583. abstract="false" native="false" synchronized="false"
  11584. static="false" final="false" visibility="public"
  11585. deprecated="not deprecated">
  11586. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11587. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11588. <param name="flags" type="java.util.EnumSet"/>
  11589. <param name="bufferSize" type="int"/>
  11590. <param name="replication" type="short"/>
  11591. <param name="blockSize" type="long"/>
  11592. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11593. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11594. <exception name="IOException" type="java.io.IOException"/>
  11595. </method>
  11596. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  11597. abstract="false" native="false" synchronized="false"
  11598. static="false" final="false" visibility="public"
  11599. deprecated="not deprecated">
  11600. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11601. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11602. <param name="flags" type="java.util.EnumSet"/>
  11603. <param name="bufferSize" type="int"/>
  11604. <param name="replication" type="short"/>
  11605. <param name="blockSize" type="long"/>
  11606. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11607. <exception name="IOException" type="java.io.IOException"/>
  11608. </method>
  11609. <method name="setReplication" return="boolean"
  11610. abstract="false" native="false" synchronized="false"
  11611. static="false" final="false" visibility="public"
  11612. deprecated="not deprecated">
  11613. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11614. <param name="replication" type="short"/>
  11615. <exception name="IOException" type="java.io.IOException"/>
  11616. <doc>
  11617. <![CDATA[Set replication for an existing file.
  11618. @param src file name
  11619. @param replication new replication
  11620. @throws IOException
  11621. @return true if successful;
  11622. false if file does not exist or is a directory]]>
  11623. </doc>
  11624. </method>
  11625. <method name="rename" return="boolean"
  11626. abstract="false" native="false" synchronized="false"
  11627. static="false" final="false" visibility="public"
  11628. deprecated="not deprecated">
  11629. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11630. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11631. <exception name="IOException" type="java.io.IOException"/>
  11632. <doc>
  11633. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  11634. or remote DFS.]]>
  11635. </doc>
  11636. </method>
  11637. <method name="delete" return="boolean"
  11638. abstract="false" native="false" synchronized="false"
  11639. static="false" final="false" visibility="public"
  11640. deprecated="not deprecated">
  11641. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11642. <param name="recursive" type="boolean"/>
  11643. <exception name="IOException" type="java.io.IOException"/>
  11644. <doc>
  11645. <![CDATA[Delete a file]]>
  11646. </doc>
  11647. </method>
  11648. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11649. abstract="false" native="false" synchronized="false"
  11650. static="false" final="false" visibility="public"
  11651. deprecated="not deprecated">
  11652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11653. <exception name="IOException" type="java.io.IOException"/>
  11654. <doc>
  11655. <![CDATA[List files in a directory.]]>
  11656. </doc>
  11657. </method>
  11658. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  11659. abstract="false" native="false" synchronized="false"
  11660. static="false" final="false" visibility="public"
  11661. deprecated="not deprecated">
  11662. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11663. <exception name="IOException" type="java.io.IOException"/>
  11664. </method>
  11665. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11666. abstract="false" native="false" synchronized="false"
  11667. static="false" final="false" visibility="public"
  11668. deprecated="not deprecated">
  11669. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11670. <exception name="IOException" type="java.io.IOException"/>
  11671. <doc>
  11672. <![CDATA[List files and its block locations in a directory.]]>
  11673. </doc>
  11674. </method>
  11675. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11676. abstract="false" native="false" synchronized="false"
  11677. static="false" final="false" visibility="public"
  11678. deprecated="not deprecated">
  11679. </method>
  11680. <method name="setWorkingDirectory"
  11681. abstract="false" native="false" synchronized="false"
  11682. static="false" final="false" visibility="public"
  11683. deprecated="not deprecated">
  11684. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11685. <doc>
  11686. <![CDATA[Set the current working directory for the given file system. All relative
  11687. paths will be resolved relative to it.
  11688. @param newDir]]>
  11689. </doc>
  11690. </method>
  11691. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11692. abstract="false" native="false" synchronized="false"
  11693. static="false" final="false" visibility="public"
  11694. deprecated="not deprecated">
  11695. <doc>
  11696. <![CDATA[Get the current working directory for the given file system
  11697. @return the directory pathname]]>
  11698. </doc>
  11699. </method>
  11700. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11701. abstract="false" native="false" synchronized="false"
  11702. static="false" final="false" visibility="protected"
  11703. deprecated="not deprecated">
  11704. </method>
  11705. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11706. abstract="false" native="false" synchronized="false"
  11707. static="false" final="false" visibility="public"
  11708. deprecated="not deprecated">
  11709. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11710. <exception name="IOException" type="java.io.IOException"/>
  11711. </method>
  11712. <method name="mkdirs" return="boolean"
  11713. abstract="false" native="false" synchronized="false"
  11714. static="false" final="false" visibility="public"
  11715. deprecated="not deprecated">
  11716. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11717. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11718. <exception name="IOException" type="java.io.IOException"/>
  11719. </method>
  11720. <method name="copyFromLocalFile"
  11721. abstract="false" native="false" synchronized="false"
  11722. static="false" final="false" visibility="public"
  11723. deprecated="not deprecated">
  11724. <param name="delSrc" type="boolean"/>
  11725. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11726. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11727. <exception name="IOException" type="java.io.IOException"/>
  11728. <doc>
  11729. <![CDATA[The src file is on the local disk. Add it to FS at
  11730. the given dst name.
  11731. delSrc indicates if the source should be removed]]>
  11732. </doc>
  11733. </method>
  11734. <method name="copyFromLocalFile"
  11735. abstract="false" native="false" synchronized="false"
  11736. static="false" final="false" visibility="public"
  11737. deprecated="not deprecated">
  11738. <param name="delSrc" type="boolean"/>
  11739. <param name="overwrite" type="boolean"/>
  11740. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11741. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11742. <exception name="IOException" type="java.io.IOException"/>
  11743. <doc>
  11744. <![CDATA[The src files are on the local disk. Add it to FS at
  11745. the given dst name.
  11746. delSrc indicates if the source should be removed]]>
  11747. </doc>
  11748. </method>
  11749. <method name="copyFromLocalFile"
  11750. abstract="false" native="false" synchronized="false"
  11751. static="false" final="false" visibility="public"
  11752. deprecated="not deprecated">
  11753. <param name="delSrc" type="boolean"/>
  11754. <param name="overwrite" type="boolean"/>
  11755. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11756. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11757. <exception name="IOException" type="java.io.IOException"/>
  11758. <doc>
  11759. <![CDATA[The src file is on the local disk. Add it to FS at
  11760. the given dst name.
  11761. delSrc indicates if the source should be removed]]>
  11762. </doc>
  11763. </method>
  11764. <method name="copyToLocalFile"
  11765. abstract="false" native="false" synchronized="false"
  11766. static="false" final="false" visibility="public"
  11767. deprecated="not deprecated">
  11768. <param name="delSrc" type="boolean"/>
  11769. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11770. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11771. <exception name="IOException" type="java.io.IOException"/>
  11772. <doc>
  11773. <![CDATA[The src file is under FS, and the dst is on the local disk.
  11774. Copy it from FS control to the local dst name.
  11775. delSrc indicates if the src will be removed or not.]]>
  11776. </doc>
  11777. </method>
  11778. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11779. abstract="false" native="false" synchronized="false"
  11780. static="false" final="false" visibility="public"
  11781. deprecated="not deprecated">
  11782. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11783. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11784. <exception name="IOException" type="java.io.IOException"/>
  11785. <doc>
  11786. <![CDATA[Returns a local File that the user can write output to. The caller
  11787. provides both the eventual FS target name and the local working
  11788. file. If the FS is local, we write directly into the target. If
  11789. the FS is remote, we write into the tmp local area.]]>
  11790. </doc>
  11791. </method>
  11792. <method name="completeLocalOutput"
  11793. abstract="false" native="false" synchronized="false"
  11794. static="false" final="false" visibility="public"
  11795. deprecated="not deprecated">
  11796. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11797. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11798. <exception name="IOException" type="java.io.IOException"/>
  11799. <doc>
  11800. <![CDATA[Called when we're all done writing to the target. A local FS will
  11801. do nothing, because we've written to exactly the right place. A remote
  11802. FS will copy the contents of tmpLocalFile to the correct target at
  11803. fsOutputFile.]]>
  11804. </doc>
  11805. </method>
  11806. <method name="getUsed" return="long"
  11807. abstract="false" native="false" synchronized="false"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <exception name="IOException" type="java.io.IOException"/>
  11811. <doc>
  11812. <![CDATA[Return the total size of all files in the filesystem.]]>
  11813. </doc>
  11814. </method>
  11815. <method name="getDefaultBlockSize" return="long"
  11816. abstract="false" native="false" synchronized="false"
  11817. static="false" final="false" visibility="public"
  11818. deprecated="not deprecated">
  11819. </method>
  11820. <method name="getDefaultReplication" return="short"
  11821. abstract="false" native="false" synchronized="false"
  11822. static="false" final="false" visibility="public"
  11823. deprecated="not deprecated">
  11824. </method>
  11825. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11826. abstract="false" native="false" synchronized="false"
  11827. static="false" final="false" visibility="public"
  11828. deprecated="not deprecated">
  11829. <exception name="IOException" type="java.io.IOException"/>
  11830. </method>
  11831. <method name="getDefaultBlockSize" return="long"
  11832. abstract="false" native="false" synchronized="false"
  11833. static="false" final="false" visibility="public"
  11834. deprecated="not deprecated">
  11835. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11836. </method>
  11837. <method name="getDefaultReplication" return="short"
  11838. abstract="false" native="false" synchronized="false"
  11839. static="false" final="false" visibility="public"
  11840. deprecated="not deprecated">
  11841. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11842. </method>
  11843. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11844. abstract="false" native="false" synchronized="false"
  11845. static="false" final="false" visibility="public"
  11846. deprecated="not deprecated">
  11847. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11848. <exception name="IOException" type="java.io.IOException"/>
  11849. </method>
  11850. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11851. abstract="false" native="false" synchronized="false"
  11852. static="false" final="false" visibility="public"
  11853. deprecated="not deprecated">
  11854. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11855. <exception name="IOException" type="java.io.IOException"/>
  11856. <doc>
  11857. <![CDATA[Get file status.]]>
  11858. </doc>
  11859. </method>
  11860. <method name="access"
  11861. abstract="false" native="false" synchronized="false"
  11862. static="false" final="false" visibility="public"
  11863. deprecated="not deprecated">
  11864. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11865. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  11866. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11867. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11868. <exception name="IOException" type="java.io.IOException"/>
  11869. </method>
  11870. <method name="createSymlink"
  11871. abstract="false" native="false" synchronized="false"
  11872. static="false" final="false" visibility="public"
  11873. deprecated="not deprecated">
  11874. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11875. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11876. <param name="createParent" type="boolean"/>
  11877. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11878. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  11879. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11880. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  11881. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11882. <exception name="IOException" type="java.io.IOException"/>
  11883. </method>
  11884. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11885. abstract="false" native="false" synchronized="false"
  11886. static="false" final="false" visibility="public"
  11887. deprecated="not deprecated">
  11888. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11889. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11890. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11891. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11892. <exception name="IOException" type="java.io.IOException"/>
  11893. </method>
  11894. <method name="supportsSymlinks" return="boolean"
  11895. abstract="false" native="false" synchronized="false"
  11896. static="false" final="false" visibility="public"
  11897. deprecated="not deprecated">
  11898. </method>
  11899. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11900. abstract="false" native="false" synchronized="false"
  11901. static="false" final="false" visibility="public"
  11902. deprecated="not deprecated">
  11903. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11904. <exception name="IOException" type="java.io.IOException"/>
  11905. </method>
  11906. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  11907. abstract="false" native="false" synchronized="false"
  11908. static="false" final="false" visibility="protected"
  11909. deprecated="not deprecated">
  11910. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11911. <exception name="IOException" type="java.io.IOException"/>
  11912. </method>
  11913. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11914. abstract="false" native="false" synchronized="false"
  11915. static="false" final="false" visibility="public"
  11916. deprecated="not deprecated">
  11917. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11918. <exception name="IOException" type="java.io.IOException"/>
  11919. </method>
  11920. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11921. abstract="false" native="false" synchronized="false"
  11922. static="false" final="false" visibility="public"
  11923. deprecated="not deprecated">
  11924. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11925. <param name="length" type="long"/>
  11926. <exception name="IOException" type="java.io.IOException"/>
  11927. </method>
  11928. <method name="setVerifyChecksum"
  11929. abstract="false" native="false" synchronized="false"
  11930. static="false" final="false" visibility="public"
  11931. deprecated="not deprecated">
  11932. <param name="verifyChecksum" type="boolean"/>
  11933. </method>
  11934. <method name="setWriteChecksum"
  11935. abstract="false" native="false" synchronized="false"
  11936. static="false" final="false" visibility="public"
  11937. deprecated="not deprecated">
  11938. <param name="writeChecksum" type="boolean"/>
  11939. </method>
  11940. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11941. abstract="false" native="false" synchronized="false"
  11942. static="false" final="false" visibility="public"
  11943. deprecated="not deprecated">
  11944. </method>
  11945. <method name="close"
  11946. abstract="false" native="false" synchronized="false"
  11947. static="false" final="false" visibility="public"
  11948. deprecated="not deprecated">
  11949. <exception name="IOException" type="java.io.IOException"/>
  11950. </method>
  11951. <method name="setOwner"
  11952. abstract="false" native="false" synchronized="false"
  11953. static="false" final="false" visibility="public"
  11954. deprecated="not deprecated">
  11955. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11956. <param name="username" type="java.lang.String"/>
  11957. <param name="groupname" type="java.lang.String"/>
  11958. <exception name="IOException" type="java.io.IOException"/>
  11959. </method>
  11960. <method name="setTimes"
  11961. abstract="false" native="false" synchronized="false"
  11962. static="false" final="false" visibility="public"
  11963. deprecated="not deprecated">
  11964. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11965. <param name="mtime" type="long"/>
  11966. <param name="atime" type="long"/>
  11967. <exception name="IOException" type="java.io.IOException"/>
  11968. </method>
  11969. <method name="setPermission"
  11970. abstract="false" native="false" synchronized="false"
  11971. static="false" final="false" visibility="public"
  11972. deprecated="not deprecated">
  11973. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11974. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11975. <exception name="IOException" type="java.io.IOException"/>
  11976. </method>
  11977. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  11978. abstract="false" native="false" synchronized="false"
  11979. static="false" final="false" visibility="protected"
  11980. deprecated="not deprecated">
  11981. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11982. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11983. <param name="flag" type="java.util.EnumSet"/>
  11984. <param name="bufferSize" type="int"/>
  11985. <param name="replication" type="short"/>
  11986. <param name="blockSize" type="long"/>
  11987. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11988. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11989. <exception name="IOException" type="java.io.IOException"/>
  11990. </method>
  11991. <method name="primitiveMkdir" return="boolean"
  11992. abstract="false" native="false" synchronized="false"
  11993. static="false" final="false" visibility="protected"
  11994. deprecated="not deprecated">
  11995. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11996. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11997. <exception name="IOException" type="java.io.IOException"/>
  11998. </method>
  11999. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  12000. abstract="false" native="false" synchronized="false"
  12001. static="false" final="false" visibility="public"
  12002. deprecated="not deprecated">
  12003. </method>
  12004. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  12005. abstract="false" native="false" synchronized="false"
  12006. static="false" final="false" visibility="public"
  12007. deprecated="not deprecated">
  12008. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12009. <param name="snapshotName" type="java.lang.String"/>
  12010. <exception name="IOException" type="java.io.IOException"/>
  12011. </method>
  12012. <method name="renameSnapshot"
  12013. abstract="false" native="false" synchronized="false"
  12014. static="false" final="false" visibility="public"
  12015. deprecated="not deprecated">
  12016. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12017. <param name="snapshotOldName" type="java.lang.String"/>
  12018. <param name="snapshotNewName" type="java.lang.String"/>
  12019. <exception name="IOException" type="java.io.IOException"/>
  12020. </method>
  12021. <method name="deleteSnapshot"
  12022. abstract="false" native="false" synchronized="false"
  12023. static="false" final="false" visibility="public"
  12024. deprecated="not deprecated">
  12025. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12026. <param name="snapshotName" type="java.lang.String"/>
  12027. <exception name="IOException" type="java.io.IOException"/>
  12028. </method>
  12029. <method name="modifyAclEntries"
  12030. abstract="false" native="false" synchronized="false"
  12031. static="false" final="false" visibility="public"
  12032. deprecated="not deprecated">
  12033. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12034. <param name="aclSpec" type="java.util.List"/>
  12035. <exception name="IOException" type="java.io.IOException"/>
  12036. </method>
  12037. <method name="removeAclEntries"
  12038. abstract="false" native="false" synchronized="false"
  12039. static="false" final="false" visibility="public"
  12040. deprecated="not deprecated">
  12041. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12042. <param name="aclSpec" type="java.util.List"/>
  12043. <exception name="IOException" type="java.io.IOException"/>
  12044. </method>
  12045. <method name="removeDefaultAcl"
  12046. abstract="false" native="false" synchronized="false"
  12047. static="false" final="false" visibility="public"
  12048. deprecated="not deprecated">
  12049. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12050. <exception name="IOException" type="java.io.IOException"/>
  12051. </method>
  12052. <method name="removeAcl"
  12053. abstract="false" native="false" synchronized="false"
  12054. static="false" final="false" visibility="public"
  12055. deprecated="not deprecated">
  12056. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12057. <exception name="IOException" type="java.io.IOException"/>
  12058. </method>
  12059. <method name="setAcl"
  12060. abstract="false" native="false" synchronized="false"
  12061. static="false" final="false" visibility="public"
  12062. deprecated="not deprecated">
  12063. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12064. <param name="aclSpec" type="java.util.List"/>
  12065. <exception name="IOException" type="java.io.IOException"/>
  12066. </method>
  12067. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  12068. abstract="false" native="false" synchronized="false"
  12069. static="false" final="false" visibility="public"
  12070. deprecated="not deprecated">
  12071. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12072. <exception name="IOException" type="java.io.IOException"/>
  12073. </method>
  12074. <method name="setXAttr"
  12075. abstract="false" native="false" synchronized="false"
  12076. static="false" final="false" visibility="public"
  12077. deprecated="not deprecated">
  12078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12079. <param name="name" type="java.lang.String"/>
  12080. <param name="value" type="byte[]"/>
  12081. <exception name="IOException" type="java.io.IOException"/>
  12082. </method>
  12083. <method name="setXAttr"
  12084. abstract="false" native="false" synchronized="false"
  12085. static="false" final="false" visibility="public"
  12086. deprecated="not deprecated">
  12087. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12088. <param name="name" type="java.lang.String"/>
  12089. <param name="value" type="byte[]"/>
  12090. <param name="flag" type="java.util.EnumSet"/>
  12091. <exception name="IOException" type="java.io.IOException"/>
  12092. </method>
  12093. <method name="getXAttr" return="byte[]"
  12094. abstract="false" native="false" synchronized="false"
  12095. static="false" final="false" visibility="public"
  12096. deprecated="not deprecated">
  12097. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12098. <param name="name" type="java.lang.String"/>
  12099. <exception name="IOException" type="java.io.IOException"/>
  12100. </method>
  12101. <method name="getXAttrs" return="java.util.Map"
  12102. abstract="false" native="false" synchronized="false"
  12103. static="false" final="false" visibility="public"
  12104. deprecated="not deprecated">
  12105. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12106. <exception name="IOException" type="java.io.IOException"/>
  12107. </method>
  12108. <method name="getXAttrs" return="java.util.Map"
  12109. abstract="false" native="false" synchronized="false"
  12110. static="false" final="false" visibility="public"
  12111. deprecated="not deprecated">
  12112. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12113. <param name="names" type="java.util.List"/>
  12114. <exception name="IOException" type="java.io.IOException"/>
  12115. </method>
  12116. <method name="listXAttrs" return="java.util.List"
  12117. abstract="false" native="false" synchronized="false"
  12118. static="false" final="false" visibility="public"
  12119. deprecated="not deprecated">
  12120. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12121. <exception name="IOException" type="java.io.IOException"/>
  12122. </method>
  12123. <method name="removeXAttr"
  12124. abstract="false" native="false" synchronized="false"
  12125. static="false" final="false" visibility="public"
  12126. deprecated="not deprecated">
  12127. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12128. <param name="name" type="java.lang.String"/>
  12129. <exception name="IOException" type="java.io.IOException"/>
  12130. </method>
  12131. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  12132. transient="false" volatile="false"
  12133. static="false" final="false" visibility="protected"
  12134. deprecated="not deprecated">
  12135. </field>
  12136. <field name="swapScheme" type="java.lang.String"
  12137. transient="false" volatile="false"
  12138. static="false" final="false" visibility="protected"
  12139. deprecated="not deprecated">
  12140. </field>
  12141. <doc>
  12142. <![CDATA[A <code>FilterFileSystem</code> contains
  12143. some other file system, which it uses as
  12144. its basic file system, possibly transforming
  12145. the data along the way or providing additional
  12146. functionality. The class <code>FilterFileSystem</code>
  12147. itself simply overrides all methods of
  12148. <code>FileSystem</code> with versions that
  12149. pass all requests to the contained file
  12150. system. Subclasses of <code>FilterFileSystem</code>
  12151. may further override some of these methods
  12152. and may also provide additional methods
  12153. and fields.]]>
  12154. </doc>
  12155. </class>
  12156. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  12157. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  12158. <interface name="FsConstants" abstract="true"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <field name="LOCAL_FS_URI" type="java.net.URI"
  12162. transient="false" volatile="false"
  12163. static="true" final="true" visibility="public"
  12164. deprecated="not deprecated">
  12165. </field>
  12166. <field name="FTP_SCHEME" type="java.lang.String"
  12167. transient="false" volatile="false"
  12168. static="true" final="true" visibility="public"
  12169. deprecated="not deprecated">
  12170. </field>
  12171. <field name="MAX_PATH_LINKS" type="int"
  12172. transient="false" volatile="false"
  12173. static="true" final="true" visibility="public"
  12174. deprecated="not deprecated">
  12175. </field>
  12176. <field name="VIEWFS_URI" type="java.net.URI"
  12177. transient="false" volatile="false"
  12178. static="true" final="true" visibility="public"
  12179. deprecated="not deprecated">
  12180. <doc>
  12181. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  12182. </doc>
  12183. </field>
  12184. <field name="VIEWFS_SCHEME" type="java.lang.String"
  12185. transient="false" volatile="false"
  12186. static="true" final="true" visibility="public"
  12187. deprecated="not deprecated">
  12188. </field>
  12189. <doc>
  12190. <![CDATA[FileSystem related constants.]]>
  12191. </doc>
  12192. </interface>
  12193. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  12194. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  12195. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  12196. abstract="false"
  12197. static="false" final="false" visibility="public"
  12198. deprecated="not deprecated">
  12199. <implements name="org.apache.hadoop.fs.Seekable"/>
  12200. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12201. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  12202. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  12203. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12204. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  12205. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  12206. <constructor name="FSDataInputStream" type="java.io.InputStream"
  12207. static="false" final="false" visibility="public"
  12208. deprecated="not deprecated">
  12209. </constructor>
  12210. <method name="seek"
  12211. abstract="false" native="false" synchronized="true"
  12212. static="false" final="false" visibility="public"
  12213. deprecated="not deprecated">
  12214. <param name="desired" type="long"/>
  12215. <exception name="IOException" type="java.io.IOException"/>
  12216. <doc>
  12217. <![CDATA[Seek to the given offset.
  12218. @param desired offset to seek to]]>
  12219. </doc>
  12220. </method>
  12221. <method name="getPos" return="long"
  12222. abstract="false" native="false" synchronized="false"
  12223. static="false" final="false" visibility="public"
  12224. deprecated="not deprecated">
  12225. <exception name="IOException" type="java.io.IOException"/>
  12226. <doc>
  12227. <![CDATA[Get the current position in the input stream.
  12228. @return current position in the input stream]]>
  12229. </doc>
  12230. </method>
  12231. <method name="read" return="int"
  12232. abstract="false" native="false" synchronized="false"
  12233. static="false" final="false" visibility="public"
  12234. deprecated="not deprecated">
  12235. <param name="position" type="long"/>
  12236. <param name="buffer" type="byte[]"/>
  12237. <param name="offset" type="int"/>
  12238. <param name="length" type="int"/>
  12239. <exception name="IOException" type="java.io.IOException"/>
  12240. <doc>
  12241. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12242. @param position position in the input stream to seek
  12243. @param buffer buffer into which data is read
  12244. @param offset offset into the buffer in which data is written
  12245. @param length maximum number of bytes to read
  12246. @return total number of bytes read into the buffer, or <code>-1</code>
  12247. if there is no more data because the end of the stream has been
  12248. reached]]>
  12249. </doc>
  12250. </method>
  12251. <method name="readFully"
  12252. abstract="false" native="false" synchronized="false"
  12253. static="false" final="false" visibility="public"
  12254. deprecated="not deprecated">
  12255. <param name="position" type="long"/>
  12256. <param name="buffer" type="byte[]"/>
  12257. <param name="offset" type="int"/>
  12258. <param name="length" type="int"/>
  12259. <exception name="IOException" type="java.io.IOException"/>
  12260. <doc>
  12261. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12262. Continues to read until <code>length</code> bytes have been read.
  12263. @param position position in the input stream to seek
  12264. @param buffer buffer into which data is read
  12265. @param offset offset into the buffer in which data is written
  12266. @param length the number of bytes to read
  12267. @throws EOFException If the end of stream is reached while reading.
  12268. If an exception is thrown an undetermined number
  12269. of bytes in the buffer may have been written.]]>
  12270. </doc>
  12271. </method>
  12272. <method name="readFully"
  12273. abstract="false" native="false" synchronized="false"
  12274. static="false" final="false" visibility="public"
  12275. deprecated="not deprecated">
  12276. <param name="position" type="long"/>
  12277. <param name="buffer" type="byte[]"/>
  12278. <exception name="IOException" type="java.io.IOException"/>
  12279. <doc>
  12280. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  12281. </doc>
  12282. </method>
  12283. <method name="seekToNewSource" return="boolean"
  12284. abstract="false" native="false" synchronized="false"
  12285. static="false" final="false" visibility="public"
  12286. deprecated="not deprecated">
  12287. <param name="targetPos" type="long"/>
  12288. <exception name="IOException" type="java.io.IOException"/>
  12289. <doc>
  12290. <![CDATA[Seek to the given position on an alternate copy of the data.
  12291. @param targetPos position to seek to
  12292. @return true if a new source is found, false otherwise]]>
  12293. </doc>
  12294. </method>
  12295. <method name="getWrappedStream" return="java.io.InputStream"
  12296. abstract="false" native="false" synchronized="false"
  12297. static="false" final="false" visibility="public"
  12298. deprecated="not deprecated">
  12299. <doc>
  12300. <![CDATA[Get a reference to the wrapped input stream. Used by unit tests.
  12301. @return the underlying input stream]]>
  12302. </doc>
  12303. </method>
  12304. <method name="read" return="int"
  12305. abstract="false" native="false" synchronized="false"
  12306. static="false" final="false" visibility="public"
  12307. deprecated="not deprecated">
  12308. <param name="buf" type="java.nio.ByteBuffer"/>
  12309. <exception name="IOException" type="java.io.IOException"/>
  12310. </method>
  12311. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  12312. abstract="false" native="false" synchronized="false"
  12313. static="false" final="false" visibility="public"
  12314. deprecated="not deprecated">
  12315. <exception name="IOException" type="java.io.IOException"/>
  12316. </method>
  12317. <method name="setReadahead"
  12318. abstract="false" native="false" synchronized="false"
  12319. static="false" final="false" visibility="public"
  12320. deprecated="not deprecated">
  12321. <param name="readahead" type="java.lang.Long"/>
  12322. <exception name="IOException" type="java.io.IOException"/>
  12323. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12324. </method>
  12325. <method name="setDropBehind"
  12326. abstract="false" native="false" synchronized="false"
  12327. static="false" final="false" visibility="public"
  12328. deprecated="not deprecated">
  12329. <param name="dropBehind" type="java.lang.Boolean"/>
  12330. <exception name="IOException" type="java.io.IOException"/>
  12331. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12332. </method>
  12333. <method name="read" return="java.nio.ByteBuffer"
  12334. abstract="false" native="false" synchronized="false"
  12335. static="false" final="false" visibility="public"
  12336. deprecated="not deprecated">
  12337. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12338. <param name="maxLength" type="int"/>
  12339. <param name="opts" type="java.util.EnumSet"/>
  12340. <exception name="IOException" type="java.io.IOException"/>
  12341. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12342. </method>
  12343. <method name="read" return="java.nio.ByteBuffer"
  12344. abstract="false" native="false" synchronized="false"
  12345. static="false" final="true" visibility="public"
  12346. deprecated="not deprecated">
  12347. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12348. <param name="maxLength" type="int"/>
  12349. <exception name="IOException" type="java.io.IOException"/>
  12350. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12351. </method>
  12352. <method name="releaseBuffer"
  12353. abstract="false" native="false" synchronized="false"
  12354. static="false" final="false" visibility="public"
  12355. deprecated="not deprecated">
  12356. <param name="buffer" type="java.nio.ByteBuffer"/>
  12357. </method>
  12358. <doc>
  12359. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  12360. and buffers input through a {@link BufferedInputStream}.]]>
  12361. </doc>
  12362. </class>
  12363. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  12364. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  12365. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  12366. abstract="false"
  12367. static="false" final="false" visibility="public"
  12368. deprecated="not deprecated">
  12369. <implements name="org.apache.hadoop.fs.Syncable"/>
  12370. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12371. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  12372. static="false" final="false" visibility="public"
  12373. deprecated="not deprecated">
  12374. <exception name="IOException" type="java.io.IOException"/>
  12375. </constructor>
  12376. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  12377. static="false" final="false" visibility="public"
  12378. deprecated="not deprecated">
  12379. <exception name="IOException" type="java.io.IOException"/>
  12380. </constructor>
  12381. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  12382. static="false" final="false" visibility="public"
  12383. deprecated="not deprecated">
  12384. <exception name="IOException" type="java.io.IOException"/>
  12385. </constructor>
  12386. <method name="getPos" return="long"
  12387. abstract="false" native="false" synchronized="false"
  12388. static="false" final="false" visibility="public"
  12389. deprecated="not deprecated">
  12390. <exception name="IOException" type="java.io.IOException"/>
  12391. <doc>
  12392. <![CDATA[Get the current position in the output stream.
  12393. @return the current position in the output stream]]>
  12394. </doc>
  12395. </method>
  12396. <method name="close"
  12397. abstract="false" native="false" synchronized="false"
  12398. static="false" final="false" visibility="public"
  12399. deprecated="not deprecated">
  12400. <exception name="IOException" type="java.io.IOException"/>
  12401. <doc>
  12402. <![CDATA[Close the underlying output stream.]]>
  12403. </doc>
  12404. </method>
  12405. <method name="getWrappedStream" return="java.io.OutputStream"
  12406. abstract="false" native="false" synchronized="false"
  12407. static="false" final="false" visibility="public"
  12408. deprecated="not deprecated">
  12409. <doc>
  12410. <![CDATA[Get a reference to the wrapped output stream.
  12411. @return the underlying output stream]]>
  12412. </doc>
  12413. </method>
  12414. <method name="sync"
  12415. abstract="false" native="false" synchronized="false"
  12416. static="false" final="false" visibility="public"
  12417. deprecated="not deprecated">
  12418. <exception name="IOException" type="java.io.IOException"/>
  12419. </method>
  12420. <method name="hflush"
  12421. abstract="false" native="false" synchronized="false"
  12422. static="false" final="false" visibility="public"
  12423. deprecated="not deprecated">
  12424. <exception name="IOException" type="java.io.IOException"/>
  12425. </method>
  12426. <method name="hsync"
  12427. abstract="false" native="false" synchronized="false"
  12428. static="false" final="false" visibility="public"
  12429. deprecated="not deprecated">
  12430. <exception name="IOException" type="java.io.IOException"/>
  12431. </method>
  12432. <method name="setDropBehind"
  12433. abstract="false" native="false" synchronized="false"
  12434. static="false" final="false" visibility="public"
  12435. deprecated="not deprecated">
  12436. <param name="dropBehind" type="java.lang.Boolean"/>
  12437. <exception name="IOException" type="java.io.IOException"/>
  12438. </method>
  12439. <doc>
  12440. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  12441. </doc>
  12442. </class>
  12443. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  12444. <!-- start class org.apache.hadoop.fs.FSError -->
  12445. <class name="FSError" extends="java.lang.Error"
  12446. abstract="false"
  12447. static="false" final="false" visibility="public"
  12448. deprecated="not deprecated">
  12449. <doc>
  12450. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  12451. in the native filesystem.]]>
  12452. </doc>
  12453. </class>
  12454. <!-- end class org.apache.hadoop.fs.FSError -->
  12455. <!-- start class org.apache.hadoop.fs.FSExceptionMessages -->
  12456. <class name="FSExceptionMessages" extends="java.lang.Object"
  12457. abstract="false"
  12458. static="false" final="false" visibility="public"
  12459. deprecated="not deprecated">
  12460. <constructor name="FSExceptionMessages"
  12461. static="false" final="false" visibility="public"
  12462. deprecated="not deprecated">
  12463. </constructor>
  12464. <field name="STREAM_IS_CLOSED" type="java.lang.String"
  12465. transient="false" volatile="false"
  12466. static="true" final="true" visibility="public"
  12467. deprecated="not deprecated">
  12468. <doc>
  12469. <![CDATA[The operation failed because the stream is closed: {@value}]]>
  12470. </doc>
  12471. </field>
  12472. <field name="NEGATIVE_SEEK" type="java.lang.String"
  12473. transient="false" volatile="false"
  12474. static="true" final="true" visibility="public"
  12475. deprecated="not deprecated">
  12476. <doc>
  12477. <![CDATA[Negative offset seek forbidden : {@value}]]>
  12478. </doc>
  12479. </field>
  12480. <field name="CANNOT_SEEK_PAST_EOF" type="java.lang.String"
  12481. transient="false" volatile="false"
  12482. static="true" final="true" visibility="public"
  12483. deprecated="not deprecated">
  12484. <doc>
  12485. <![CDATA[Seeks : {@value}]]>
  12486. </doc>
  12487. </field>
  12488. <doc>
  12489. <![CDATA[Standard strings to use in exception messages in filesystems
  12490. HDFS is used as the reference source of the strings]]>
  12491. </doc>
  12492. </class>
  12493. <!-- end class org.apache.hadoop.fs.FSExceptionMessages -->
  12494. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  12495. <class name="FsServerDefaults" extends="java.lang.Object"
  12496. abstract="false"
  12497. static="false" final="false" visibility="public"
  12498. deprecated="not deprecated">
  12499. <implements name="org.apache.hadoop.io.Writable"/>
  12500. <constructor name="FsServerDefaults"
  12501. static="false" final="false" visibility="public"
  12502. deprecated="not deprecated">
  12503. </constructor>
  12504. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  12505. static="false" final="false" visibility="public"
  12506. deprecated="not deprecated">
  12507. </constructor>
  12508. <method name="getBlockSize" return="long"
  12509. abstract="false" native="false" synchronized="false"
  12510. static="false" final="false" visibility="public"
  12511. deprecated="not deprecated">
  12512. </method>
  12513. <method name="getBytesPerChecksum" return="int"
  12514. abstract="false" native="false" synchronized="false"
  12515. static="false" final="false" visibility="public"
  12516. deprecated="not deprecated">
  12517. </method>
  12518. <method name="getWritePacketSize" return="int"
  12519. abstract="false" native="false" synchronized="false"
  12520. static="false" final="false" visibility="public"
  12521. deprecated="not deprecated">
  12522. </method>
  12523. <method name="getReplication" return="short"
  12524. abstract="false" native="false" synchronized="false"
  12525. static="false" final="false" visibility="public"
  12526. deprecated="not deprecated">
  12527. </method>
  12528. <method name="getFileBufferSize" return="int"
  12529. abstract="false" native="false" synchronized="false"
  12530. static="false" final="false" visibility="public"
  12531. deprecated="not deprecated">
  12532. </method>
  12533. <method name="getEncryptDataTransfer" return="boolean"
  12534. abstract="false" native="false" synchronized="false"
  12535. static="false" final="false" visibility="public"
  12536. deprecated="not deprecated">
  12537. </method>
  12538. <method name="getTrashInterval" return="long"
  12539. abstract="false" native="false" synchronized="false"
  12540. static="false" final="false" visibility="public"
  12541. deprecated="not deprecated">
  12542. </method>
  12543. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  12544. abstract="false" native="false" synchronized="false"
  12545. static="false" final="false" visibility="public"
  12546. deprecated="not deprecated">
  12547. </method>
  12548. <method name="write"
  12549. abstract="false" native="false" synchronized="false"
  12550. static="false" final="false" visibility="public"
  12551. deprecated="not deprecated">
  12552. <param name="out" type="java.io.DataOutput"/>
  12553. <exception name="IOException" type="java.io.IOException"/>
  12554. </method>
  12555. <method name="readFields"
  12556. abstract="false" native="false" synchronized="false"
  12557. static="false" final="false" visibility="public"
  12558. deprecated="not deprecated">
  12559. <param name="in" type="java.io.DataInput"/>
  12560. <exception name="IOException" type="java.io.IOException"/>
  12561. </method>
  12562. <doc>
  12563. <![CDATA[Provides server default configuration values to clients.]]>
  12564. </doc>
  12565. </class>
  12566. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  12567. <!-- start class org.apache.hadoop.fs.FsShell.Help -->
  12568. <class name="FsShell.Help" extends="org.apache.hadoop.fs.shell.FsCommand"
  12569. abstract="false"
  12570. static="false" final="false" visibility="protected"
  12571. deprecated="not deprecated">
  12572. <constructor name="FsShell.Help"
  12573. static="false" final="false" visibility="protected"
  12574. deprecated="not deprecated">
  12575. </constructor>
  12576. <method name="processRawArguments"
  12577. abstract="false" native="false" synchronized="false"
  12578. static="false" final="false" visibility="protected"
  12579. deprecated="not deprecated">
  12580. <param name="args" type="java.util.LinkedList"/>
  12581. </method>
  12582. <field name="NAME" type="java.lang.String"
  12583. transient="false" volatile="false"
  12584. static="true" final="true" visibility="public"
  12585. deprecated="not deprecated">
  12586. </field>
  12587. <field name="USAGE" type="java.lang.String"
  12588. transient="false" volatile="false"
  12589. static="true" final="true" visibility="public"
  12590. deprecated="not deprecated">
  12591. </field>
  12592. <field name="DESCRIPTION" type="java.lang.String"
  12593. transient="false" volatile="false"
  12594. static="true" final="true" visibility="public"
  12595. deprecated="not deprecated">
  12596. </field>
  12597. <doc>
  12598. <![CDATA[Displays short usage of commands sans the long description]]>
  12599. </doc>
  12600. </class>
  12601. <!-- end class org.apache.hadoop.fs.FsShell.Help -->
  12602. <!-- start class org.apache.hadoop.fs.FsShell.Usage -->
  12603. <class name="FsShell.Usage" extends="org.apache.hadoop.fs.shell.FsCommand"
  12604. abstract="false"
  12605. static="false" final="false" visibility="protected"
  12606. deprecated="not deprecated">
  12607. <constructor name="FsShell.Usage"
  12608. static="false" final="false" visibility="protected"
  12609. deprecated="not deprecated">
  12610. </constructor>
  12611. <method name="processRawArguments"
  12612. abstract="false" native="false" synchronized="false"
  12613. static="false" final="false" visibility="protected"
  12614. deprecated="not deprecated">
  12615. <param name="args" type="java.util.LinkedList"/>
  12616. </method>
  12617. <field name="NAME" type="java.lang.String"
  12618. transient="false" volatile="false"
  12619. static="true" final="true" visibility="public"
  12620. deprecated="not deprecated">
  12621. </field>
  12622. <field name="USAGE" type="java.lang.String"
  12623. transient="false" volatile="false"
  12624. static="true" final="true" visibility="public"
  12625. deprecated="not deprecated">
  12626. </field>
  12627. <field name="DESCRIPTION" type="java.lang.String"
  12628. transient="false" volatile="false"
  12629. static="true" final="true" visibility="public"
  12630. deprecated="not deprecated">
  12631. </field>
  12632. <doc>
  12633. <![CDATA[Display help for commands with their short usage and long description]]>
  12634. </doc>
  12635. </class>
  12636. <!-- end class org.apache.hadoop.fs.FsShell.Usage -->
  12637. <!-- start class org.apache.hadoop.fs.FsShellPermissions.Chgrp -->
  12638. <class name="FsShellPermissions.Chgrp" extends="org.apache.hadoop.fs.FsShellPermissions.Chown"
  12639. abstract="false"
  12640. static="true" final="false" visibility="public"
  12641. deprecated="not deprecated">
  12642. <constructor name="FsShellPermissions.Chgrp"
  12643. static="false" final="false" visibility="public"
  12644. deprecated="not deprecated">
  12645. </constructor>
  12646. <method name="parseOwnerGroup"
  12647. abstract="false" native="false" synchronized="false"
  12648. static="false" final="false" visibility="protected"
  12649. deprecated="not deprecated">
  12650. <param name="groupStr" type="java.lang.String"/>
  12651. </method>
  12652. <field name="NAME" type="java.lang.String"
  12653. transient="false" volatile="false"
  12654. static="true" final="true" visibility="public"
  12655. deprecated="not deprecated">
  12656. </field>
  12657. <field name="USAGE" type="java.lang.String"
  12658. transient="false" volatile="false"
  12659. static="true" final="true" visibility="public"
  12660. deprecated="not deprecated">
  12661. </field>
  12662. <field name="DESCRIPTION" type="java.lang.String"
  12663. transient="false" volatile="false"
  12664. static="true" final="true" visibility="public"
  12665. deprecated="not deprecated">
  12666. </field>
  12667. <doc>
  12668. <![CDATA[Used to change group of files]]>
  12669. </doc>
  12670. </class>
  12671. <!-- end class org.apache.hadoop.fs.FsShellPermissions.Chgrp -->
  12672. <!-- start class org.apache.hadoop.fs.FsShellPermissions.Chmod -->
  12673. <class name="FsShellPermissions.Chmod" extends="org.apache.hadoop.fs.FsShellPermissions"
  12674. abstract="false"
  12675. static="true" final="false" visibility="public"
  12676. deprecated="not deprecated">
  12677. <constructor name="FsShellPermissions.Chmod"
  12678. static="false" final="false" visibility="public"
  12679. deprecated="not deprecated">
  12680. </constructor>
  12681. <method name="processOptions"
  12682. abstract="false" native="false" synchronized="false"
  12683. static="false" final="false" visibility="protected"
  12684. deprecated="not deprecated">
  12685. <param name="args" type="java.util.LinkedList"/>
  12686. <exception name="IOException" type="java.io.IOException"/>
  12687. </method>
  12688. <method name="processPath"
  12689. abstract="false" native="false" synchronized="false"
  12690. static="false" final="false" visibility="protected"
  12691. deprecated="not deprecated">
  12692. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  12693. <exception name="IOException" type="java.io.IOException"/>
  12694. </method>
  12695. <field name="NAME" type="java.lang.String"
  12696. transient="false" volatile="false"
  12697. static="true" final="true" visibility="public"
  12698. deprecated="not deprecated">
  12699. </field>
  12700. <field name="USAGE" type="java.lang.String"
  12701. transient="false" volatile="false"
  12702. static="true" final="true" visibility="public"
  12703. deprecated="not deprecated">
  12704. </field>
  12705. <field name="DESCRIPTION" type="java.lang.String"
  12706. transient="false" volatile="false"
  12707. static="true" final="true" visibility="public"
  12708. deprecated="not deprecated">
  12709. </field>
  12710. <field name="pp" type="org.apache.hadoop.fs.permission.ChmodParser"
  12711. transient="false" volatile="false"
  12712. static="false" final="false" visibility="protected"
  12713. deprecated="not deprecated">
  12714. </field>
  12715. <doc>
  12716. <![CDATA[The pattern is almost as flexible as mode allowed by chmod shell command.
  12717. The main restriction is that we recognize only rwxXt. To reduce errors we
  12718. also enforce octal mode specifications of either 3 digits without a sticky
  12719. bit setting or four digits with a sticky bit setting.]]>
  12720. </doc>
  12721. </class>
  12722. <!-- end class org.apache.hadoop.fs.FsShellPermissions.Chmod -->
  12723. <!-- start class org.apache.hadoop.fs.FsShellPermissions.Chown -->
  12724. <class name="FsShellPermissions.Chown" extends="org.apache.hadoop.fs.FsShellPermissions"
  12725. abstract="false"
  12726. static="true" final="false" visibility="public"
  12727. deprecated="not deprecated">
  12728. <constructor name="FsShellPermissions.Chown"
  12729. static="false" final="false" visibility="public"
  12730. deprecated="not deprecated">
  12731. </constructor>
  12732. <method name="processOptions"
  12733. abstract="false" native="false" synchronized="false"
  12734. static="false" final="false" visibility="protected"
  12735. deprecated="not deprecated">
  12736. <param name="args" type="java.util.LinkedList"/>
  12737. <exception name="IOException" type="java.io.IOException"/>
  12738. </method>
  12739. <method name="parseOwnerGroup"
  12740. abstract="false" native="false" synchronized="false"
  12741. static="false" final="false" visibility="protected"
  12742. deprecated="not deprecated">
  12743. <param name="ownerStr" type="java.lang.String"/>
  12744. <doc>
  12745. <![CDATA[Parse the first argument into an owner and group
  12746. @param ownerStr string describing new ownership]]>
  12747. </doc>
  12748. </method>
  12749. <method name="processPath"
  12750. abstract="false" native="false" synchronized="false"
  12751. static="false" final="false" visibility="protected"
  12752. deprecated="not deprecated">
  12753. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  12754. <exception name="IOException" type="java.io.IOException"/>
  12755. </method>
  12756. <field name="NAME" type="java.lang.String"
  12757. transient="false" volatile="false"
  12758. static="true" final="true" visibility="public"
  12759. deprecated="not deprecated">
  12760. </field>
  12761. <field name="USAGE" type="java.lang.String"
  12762. transient="false" volatile="false"
  12763. static="true" final="true" visibility="public"
  12764. deprecated="not deprecated">
  12765. </field>
  12766. <field name="DESCRIPTION" type="java.lang.String"
  12767. transient="false" volatile="false"
  12768. static="true" final="true" visibility="public"
  12769. deprecated="not deprecated">
  12770. </field>
  12771. <field name="owner" type="java.lang.String"
  12772. transient="false" volatile="false"
  12773. static="false" final="false" visibility="protected"
  12774. deprecated="not deprecated">
  12775. </field>
  12776. <field name="group" type="java.lang.String"
  12777. transient="false" volatile="false"
  12778. static="false" final="false" visibility="protected"
  12779. deprecated="not deprecated">
  12780. </field>
  12781. <doc>
  12782. <![CDATA[Used to change owner and/or group of files]]>
  12783. </doc>
  12784. </class>
  12785. <!-- end class org.apache.hadoop.fs.FsShellPermissions.Chown -->
  12786. <!-- start class org.apache.hadoop.fs.FsStatus -->
  12787. <class name="FsStatus" extends="java.lang.Object"
  12788. abstract="false"
  12789. static="false" final="false" visibility="public"
  12790. deprecated="not deprecated">
  12791. <implements name="org.apache.hadoop.io.Writable"/>
  12792. <constructor name="FsStatus" type="long, long, long"
  12793. static="false" final="false" visibility="public"
  12794. deprecated="not deprecated">
  12795. <doc>
  12796. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  12797. </doc>
  12798. </constructor>
  12799. <method name="getCapacity" return="long"
  12800. abstract="false" native="false" synchronized="false"
  12801. static="false" final="false" visibility="public"
  12802. deprecated="not deprecated">
  12803. <doc>
  12804. <![CDATA[Return the capacity in bytes of the file system]]>
  12805. </doc>
  12806. </method>
  12807. <method name="getUsed" return="long"
  12808. abstract="false" native="false" synchronized="false"
  12809. static="false" final="false" visibility="public"
  12810. deprecated="not deprecated">
  12811. <doc>
  12812. <![CDATA[Return the number of bytes used on the file system]]>
  12813. </doc>
  12814. </method>
  12815. <method name="getRemaining" return="long"
  12816. abstract="false" native="false" synchronized="false"
  12817. static="false" final="false" visibility="public"
  12818. deprecated="not deprecated">
  12819. <doc>
  12820. <![CDATA[Return the number of remaining bytes on the file system]]>
  12821. </doc>
  12822. </method>
  12823. <method name="write"
  12824. abstract="false" native="false" synchronized="false"
  12825. static="false" final="false" visibility="public"
  12826. deprecated="not deprecated">
  12827. <param name="out" type="java.io.DataOutput"/>
  12828. <exception name="IOException" type="java.io.IOException"/>
  12829. </method>
  12830. <method name="readFields"
  12831. abstract="false" native="false" synchronized="false"
  12832. static="false" final="false" visibility="public"
  12833. deprecated="not deprecated">
  12834. <param name="in" type="java.io.DataInput"/>
  12835. <exception name="IOException" type="java.io.IOException"/>
  12836. </method>
  12837. <doc>
  12838. <![CDATA[This class is used to represent the capacity, free and used space on a
  12839. {@link FileSystem}.]]>
  12840. </doc>
  12841. </class>
  12842. <!-- end class org.apache.hadoop.fs.FsStatus -->
  12843. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  12844. <class name="GlobFilter" extends="java.lang.Object"
  12845. abstract="false"
  12846. static="false" final="false" visibility="public"
  12847. deprecated="not deprecated">
  12848. <implements name="org.apache.hadoop.fs.PathFilter"/>
  12849. <constructor name="GlobFilter" type="java.lang.String"
  12850. static="false" final="false" visibility="public"
  12851. deprecated="not deprecated">
  12852. <exception name="IOException" type="java.io.IOException"/>
  12853. <doc>
  12854. <![CDATA[Creates a glob filter with the specified file pattern.
  12855. @param filePattern the file pattern.
  12856. @throws IOException thrown if the file pattern is incorrect.]]>
  12857. </doc>
  12858. </constructor>
  12859. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  12860. static="false" final="false" visibility="public"
  12861. deprecated="not deprecated">
  12862. <exception name="IOException" type="java.io.IOException"/>
  12863. <doc>
  12864. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  12865. @param filePattern the file pattern.
  12866. @param filter user filter in addition to the glob pattern.
  12867. @throws IOException thrown if the file pattern is incorrect.]]>
  12868. </doc>
  12869. </constructor>
  12870. <method name="accept" return="boolean"
  12871. abstract="false" native="false" synchronized="false"
  12872. static="false" final="false" visibility="public"
  12873. deprecated="not deprecated">
  12874. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12875. </method>
  12876. <doc>
  12877. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  12878. </doc>
  12879. </class>
  12880. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  12881. <!-- start class org.apache.hadoop.fs.HardLink -->
  12882. <class name="HardLink" extends="java.lang.Object"
  12883. abstract="false"
  12884. static="false" final="false" visibility="public"
  12885. deprecated="not deprecated">
  12886. <constructor name="HardLink"
  12887. static="false" final="false" visibility="public"
  12888. deprecated="not deprecated">
  12889. </constructor>
  12890. <method name="getLinkMultArgLength" return="int"
  12891. abstract="false" native="false" synchronized="false"
  12892. static="true" final="false" visibility="protected"
  12893. deprecated="not deprecated">
  12894. <param name="fileDir" type="java.io.File"/>
  12895. <param name="fileBaseNames" type="java.lang.String[]"/>
  12896. <param name="linkDir" type="java.io.File"/>
  12897. <exception name="IOException" type="java.io.IOException"/>
  12898. <doc>
  12899. <![CDATA[Calculate the nominal length of all contributors to the total
  12900. commandstring length, including fixed overhead of the OS-dependent
  12901. command. It's protected rather than private, to assist unit testing,
  12902. but real clients are not expected to need it -- see the way
  12903. createHardLinkMult() uses it internally so the user doesn't need to worry
  12904. about it.
  12905. @param fileDir - source directory, parent of fileBaseNames
  12906. @param fileBaseNames - array of path-less file names, relative
  12907. to the source directory
  12908. @param linkDir - target directory where the hardlinks will be put
  12909. @return - total data length (must not exceed maxAllowedCmdArgLength)
  12910. @throws IOException]]>
  12911. </doc>
  12912. </method>
  12913. <method name="getMaxAllowedCmdArgLength" return="int"
  12914. abstract="false" native="false" synchronized="false"
  12915. static="true" final="false" visibility="protected"
  12916. deprecated="not deprecated">
  12917. <doc>
  12918. <![CDATA[Return this private value for use by unit tests.
  12919. Shell commands are not allowed to have a total string length
  12920. exceeding this size.]]>
  12921. </doc>
  12922. </method>
  12923. <method name="createHardLink"
  12924. abstract="false" native="false" synchronized="false"
  12925. static="true" final="false" visibility="public"
  12926. deprecated="not deprecated">
  12927. <param name="file" type="java.io.File"/>
  12928. <param name="linkName" type="java.io.File"/>
  12929. <exception name="IOException" type="java.io.IOException"/>
  12930. <doc>
  12931. <![CDATA[Creates a hardlink
  12932. @param file - existing source file
  12933. @param linkName - desired target link file]]>
  12934. </doc>
  12935. </method>
  12936. <method name="createHardLinkMult"
  12937. abstract="false" native="false" synchronized="false"
  12938. static="true" final="false" visibility="public"
  12939. deprecated="not deprecated">
  12940. <param name="parentDir" type="java.io.File"/>
  12941. <param name="fileBaseNames" type="java.lang.String[]"/>
  12942. <param name="linkDir" type="java.io.File"/>
  12943. <exception name="IOException" type="java.io.IOException"/>
  12944. <doc>
  12945. <![CDATA[Creates hardlinks from multiple existing files within one parent
  12946. directory, into one target directory.
  12947. @param parentDir - directory containing source files
  12948. @param fileBaseNames - list of path-less file names, as returned by
  12949. parentDir.list()
  12950. @param linkDir - where the hardlinks should be put. It must already exist.
  12951. If the list of files is too long (overflows maxAllowedCmdArgLength),
  12952. we will automatically split it into multiple invocations of the
  12953. underlying method.]]>
  12954. </doc>
  12955. </method>
  12956. <method name="createHardLinkMult" return="int"
  12957. abstract="false" native="false" synchronized="false"
  12958. static="true" final="false" visibility="protected"
  12959. deprecated="not deprecated">
  12960. <param name="parentDir" type="java.io.File"/>
  12961. <param name="fileBaseNames" type="java.lang.String[]"/>
  12962. <param name="linkDir" type="java.io.File"/>
  12963. <param name="maxLength" type="int"/>
  12964. <exception name="IOException" type="java.io.IOException"/>
  12965. </method>
  12966. <method name="getLinkCount" return="int"
  12967. abstract="false" native="false" synchronized="false"
  12968. static="true" final="false" visibility="public"
  12969. deprecated="not deprecated">
  12970. <param name="fileName" type="java.io.File"/>
  12971. <exception name="IOException" type="java.io.IOException"/>
  12972. <doc>
  12973. <![CDATA[Retrieves the number of links to the specified file.]]>
  12974. </doc>
  12975. </method>
  12976. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  12977. transient="false" volatile="false"
  12978. static="false" final="true" visibility="public"
  12979. deprecated="not deprecated">
  12980. </field>
  12981. <doc>
  12982. <![CDATA[Class for creating hardlinks.
  12983. Supports Unix/Linux, Windows via winutils , and Mac OS X.
  12984. The HardLink class was formerly a static inner class of FSUtil,
  12985. and the methods provided were blatantly non-thread-safe.
  12986. To enable volume-parallel Update snapshots, we now provide static
  12987. threadsafe methods that allocate new buffer string arrays
  12988. upon each call. We also provide an API to hardlink all files in a
  12989. directory with a single command, which is up to 128 times more
  12990. efficient - and minimizes the impact of the extra buffer creations.]]>
  12991. </doc>
  12992. </class>
  12993. <!-- end class org.apache.hadoop.fs.HardLink -->
  12994. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  12995. <class name="HardLink.LinkStats" extends="java.lang.Object"
  12996. abstract="false"
  12997. static="true" final="false" visibility="public"
  12998. deprecated="not deprecated">
  12999. <constructor name="HardLink.LinkStats"
  13000. static="false" final="false" visibility="public"
  13001. deprecated="not deprecated">
  13002. </constructor>
  13003. <method name="clear"
  13004. abstract="false" native="false" synchronized="false"
  13005. static="false" final="false" visibility="public"
  13006. deprecated="not deprecated">
  13007. </method>
  13008. <method name="report" return="java.lang.String"
  13009. abstract="false" native="false" synchronized="false"
  13010. static="false" final="false" visibility="public"
  13011. deprecated="not deprecated">
  13012. </method>
  13013. <field name="countDirs" type="int"
  13014. transient="false" volatile="false"
  13015. static="false" final="false" visibility="public"
  13016. deprecated="not deprecated">
  13017. </field>
  13018. <field name="countSingleLinks" type="int"
  13019. transient="false" volatile="false"
  13020. static="false" final="false" visibility="public"
  13021. deprecated="not deprecated">
  13022. </field>
  13023. <field name="countMultLinks" type="int"
  13024. transient="false" volatile="false"
  13025. static="false" final="false" visibility="public"
  13026. deprecated="not deprecated">
  13027. </field>
  13028. <field name="countFilesMultLinks" type="int"
  13029. transient="false" volatile="false"
  13030. static="false" final="false" visibility="public"
  13031. deprecated="not deprecated">
  13032. </field>
  13033. <field name="countEmptyDirs" type="int"
  13034. transient="false" volatile="false"
  13035. static="false" final="false" visibility="public"
  13036. deprecated="not deprecated">
  13037. </field>
  13038. <field name="countPhysicalFileCopies" type="int"
  13039. transient="false" volatile="false"
  13040. static="false" final="false" visibility="public"
  13041. deprecated="not deprecated">
  13042. </field>
  13043. <doc>
  13044. <![CDATA[HardLink statistics counters and methods.
  13045. Not multi-thread safe, obviously.
  13046. Init is called during HardLink instantiation, above.
  13047. These are intended for use by knowledgeable clients, not internally,
  13048. because many of the internal methods are static and can't update these
  13049. per-instance counters.]]>
  13050. </doc>
  13051. </class>
  13052. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  13053. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  13054. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13055. abstract="false"
  13056. static="false" final="false" visibility="public"
  13057. deprecated="not deprecated">
  13058. <constructor name="HarFileSystem"
  13059. static="false" final="false" visibility="public"
  13060. deprecated="not deprecated">
  13061. <doc>
  13062. <![CDATA[public construction of harfilesystem]]>
  13063. </doc>
  13064. </constructor>
  13065. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13066. static="false" final="false" visibility="public"
  13067. deprecated="not deprecated">
  13068. <doc>
  13069. <![CDATA[Constructor to create a HarFileSystem with an
  13070. underlying filesystem.
  13071. @param fs underlying file system]]>
  13072. </doc>
  13073. </constructor>
  13074. <method name="getScheme" return="java.lang.String"
  13075. abstract="false" native="false" synchronized="false"
  13076. static="false" final="false" visibility="public"
  13077. deprecated="not deprecated">
  13078. <doc>
  13079. <![CDATA[Return the protocol scheme for the FileSystem.
  13080. <p/>
  13081. @return <code>har</code>]]>
  13082. </doc>
  13083. </method>
  13084. <method name="initialize"
  13085. abstract="false" native="false" synchronized="false"
  13086. static="false" final="false" visibility="public"
  13087. deprecated="not deprecated">
  13088. <param name="name" type="java.net.URI"/>
  13089. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13090. <exception name="IOException" type="java.io.IOException"/>
  13091. <doc>
  13092. <![CDATA[Initialize a Har filesystem per har archive. The
  13093. archive home directory is the top level directory
  13094. in the filesystem that contains the HAR archive.
  13095. Be careful with this method, you do not want to go
  13096. on creating new Filesystem instances per call to
  13097. path.getFileSystem().
  13098. the uri of Har is
  13099. har://underlyingfsscheme-host:port/archivepath.
  13100. or
  13101. har:///archivepath. This assumes the underlying filesystem
  13102. to be used in case not specified.]]>
  13103. </doc>
  13104. </method>
  13105. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13106. abstract="false" native="false" synchronized="false"
  13107. static="false" final="false" visibility="public"
  13108. deprecated="not deprecated">
  13109. </method>
  13110. <method name="getHarVersion" return="int"
  13111. abstract="false" native="false" synchronized="false"
  13112. static="false" final="false" visibility="public"
  13113. deprecated="not deprecated">
  13114. <exception name="IOException" type="java.io.IOException"/>
  13115. </method>
  13116. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13117. abstract="false" native="false" synchronized="false"
  13118. static="false" final="false" visibility="public"
  13119. deprecated="not deprecated">
  13120. <doc>
  13121. <![CDATA[return the top level archive.]]>
  13122. </doc>
  13123. </method>
  13124. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13125. abstract="false" native="false" synchronized="false"
  13126. static="false" final="false" visibility="public"
  13127. deprecated="not deprecated">
  13128. </method>
  13129. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  13130. abstract="false" native="false" synchronized="false"
  13131. static="false" final="false" visibility="public"
  13132. deprecated="not deprecated">
  13133. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13134. <exception name="IOException" type="java.io.IOException"/>
  13135. </method>
  13136. <method name="getCanonicalUri" return="java.net.URI"
  13137. abstract="false" native="false" synchronized="false"
  13138. static="false" final="false" visibility="protected"
  13139. deprecated="not deprecated">
  13140. <doc>
  13141. <![CDATA[Used for delegation token related functionality. Must delegate to
  13142. underlying file system.]]>
  13143. </doc>
  13144. </method>
  13145. <method name="canonicalizeUri" return="java.net.URI"
  13146. abstract="false" native="false" synchronized="false"
  13147. static="false" final="false" visibility="protected"
  13148. deprecated="not deprecated">
  13149. <param name="uri" type="java.net.URI"/>
  13150. </method>
  13151. <method name="getUri" return="java.net.URI"
  13152. abstract="false" native="false" synchronized="false"
  13153. static="false" final="false" visibility="public"
  13154. deprecated="not deprecated">
  13155. <doc>
  13156. <![CDATA[Returns the uri of this filesystem.
  13157. The uri is of the form
  13158. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  13159. </doc>
  13160. </method>
  13161. <method name="checkPath"
  13162. abstract="false" native="false" synchronized="false"
  13163. static="false" final="false" visibility="protected"
  13164. deprecated="not deprecated">
  13165. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13166. </method>
  13167. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  13168. abstract="false" native="false" synchronized="false"
  13169. static="false" final="false" visibility="public"
  13170. deprecated="not deprecated">
  13171. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13172. <exception name="IOException" type="java.io.IOException"/>
  13173. </method>
  13174. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  13175. abstract="false" native="false" synchronized="false"
  13176. static="false" final="false" visibility="public"
  13177. deprecated="not deprecated">
  13178. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13179. </method>
  13180. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13181. abstract="false" native="false" synchronized="false"
  13182. static="false" final="false" visibility="public"
  13183. deprecated="not deprecated">
  13184. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  13185. <param name="start" type="long"/>
  13186. <param name="len" type="long"/>
  13187. <exception name="IOException" type="java.io.IOException"/>
  13188. <doc>
  13189. <![CDATA[Get block locations from the underlying fs and fix their
  13190. offsets and lengths.
  13191. @param file the input file status to get block locations
  13192. @param start the start of the desired range in the contained file
  13193. @param len the length of the desired range
  13194. @return block locations for this segment of file
  13195. @throws IOException]]>
  13196. </doc>
  13197. </method>
  13198. <method name="getHarHash" return="int"
  13199. abstract="false" native="false" synchronized="false"
  13200. static="true" final="false" visibility="public"
  13201. deprecated="not deprecated">
  13202. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13203. <doc>
  13204. <![CDATA[the hash of the path p inside the filesystem
  13205. @param p the path in the harfilesystem
  13206. @return the hash code of the path.]]>
  13207. </doc>
  13208. </method>
  13209. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13210. abstract="false" native="false" synchronized="false"
  13211. static="false" final="false" visibility="public"
  13212. deprecated="not deprecated">
  13213. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13214. <exception name="IOException" type="java.io.IOException"/>
  13215. <doc>
  13216. <![CDATA[return the filestatus of files in har archive.
  13217. The permission returned are that of the archive
  13218. index files. The permissions are not persisted
  13219. while creating a hadoop archive.
  13220. @param f the path in har filesystem
  13221. @return filestatus.
  13222. @throws IOException]]>
  13223. </doc>
  13224. </method>
  13225. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13226. abstract="false" native="false" synchronized="false"
  13227. static="false" final="false" visibility="public"
  13228. deprecated="not deprecated">
  13229. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13230. <param name="length" type="long"/>
  13231. <doc>
  13232. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  13233. </doc>
  13234. </method>
  13235. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13236. abstract="false" native="false" synchronized="false"
  13237. static="false" final="false" visibility="public"
  13238. deprecated="not deprecated">
  13239. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13240. <param name="bufferSize" type="int"/>
  13241. <exception name="IOException" type="java.io.IOException"/>
  13242. <doc>
  13243. <![CDATA[Returns a har input stream which fakes end of
  13244. file. It reads the index files to get the part
  13245. file name and the size and start of the file.]]>
  13246. </doc>
  13247. </method>
  13248. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  13249. abstract="false" native="false" synchronized="false"
  13250. static="false" final="false" visibility="public"
  13251. deprecated="not deprecated">
  13252. <doc>
  13253. <![CDATA[Used for delegation token related functionality. Must delegate to
  13254. underlying file system.]]>
  13255. </doc>
  13256. </method>
  13257. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13258. abstract="false" native="false" synchronized="false"
  13259. static="false" final="false" visibility="public"
  13260. deprecated="not deprecated">
  13261. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13262. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13263. <param name="overwrite" type="boolean"/>
  13264. <param name="bufferSize" type="int"/>
  13265. <param name="replication" type="short"/>
  13266. <param name="blockSize" type="long"/>
  13267. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13268. <exception name="IOException" type="java.io.IOException"/>
  13269. </method>
  13270. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13271. abstract="false" native="false" synchronized="false"
  13272. static="false" final="false" visibility="public"
  13273. deprecated="not deprecated">
  13274. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13275. <param name="overwrite" type="boolean"/>
  13276. <param name="bufferSize" type="int"/>
  13277. <param name="replication" type="short"/>
  13278. <param name="blockSize" type="long"/>
  13279. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13280. <exception name="IOException" type="java.io.IOException"/>
  13281. </method>
  13282. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13283. abstract="false" native="false" synchronized="false"
  13284. static="false" final="false" visibility="public"
  13285. deprecated="not deprecated">
  13286. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13287. <param name="bufferSize" type="int"/>
  13288. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13289. <exception name="IOException" type="java.io.IOException"/>
  13290. </method>
  13291. <method name="close"
  13292. abstract="false" native="false" synchronized="false"
  13293. static="false" final="false" visibility="public"
  13294. deprecated="not deprecated">
  13295. <exception name="IOException" type="java.io.IOException"/>
  13296. </method>
  13297. <method name="setReplication" return="boolean"
  13298. abstract="false" native="false" synchronized="false"
  13299. static="false" final="false" visibility="public"
  13300. deprecated="not deprecated">
  13301. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13302. <param name="replication" type="short"/>
  13303. <exception name="IOException" type="java.io.IOException"/>
  13304. <doc>
  13305. <![CDATA[Not implemented.]]>
  13306. </doc>
  13307. </method>
  13308. <method name="rename" return="boolean"
  13309. abstract="false" native="false" synchronized="false"
  13310. static="false" final="false" visibility="public"
  13311. deprecated="not deprecated">
  13312. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13313. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13314. <exception name="IOException" type="java.io.IOException"/>
  13315. </method>
  13316. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13317. abstract="false" native="false" synchronized="false"
  13318. static="false" final="false" visibility="public"
  13319. deprecated="not deprecated">
  13320. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13321. <exception name="IOException" type="java.io.IOException"/>
  13322. </method>
  13323. <method name="delete" return="boolean"
  13324. abstract="false" native="false" synchronized="false"
  13325. static="false" final="false" visibility="public"
  13326. deprecated="not deprecated">
  13327. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13328. <param name="recursive" type="boolean"/>
  13329. <exception name="IOException" type="java.io.IOException"/>
  13330. <doc>
  13331. <![CDATA[Not implemented.]]>
  13332. </doc>
  13333. </method>
  13334. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13335. abstract="false" native="false" synchronized="false"
  13336. static="false" final="false" visibility="public"
  13337. deprecated="not deprecated">
  13338. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13339. <exception name="IOException" type="java.io.IOException"/>
  13340. <doc>
  13341. <![CDATA[liststatus returns the children of a directory
  13342. after looking up the index files.]]>
  13343. </doc>
  13344. </method>
  13345. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13346. abstract="false" native="false" synchronized="false"
  13347. static="false" final="false" visibility="public"
  13348. deprecated="not deprecated">
  13349. <doc>
  13350. <![CDATA[return the top level archive path.]]>
  13351. </doc>
  13352. </method>
  13353. <method name="setWorkingDirectory"
  13354. abstract="false" native="false" synchronized="false"
  13355. static="false" final="false" visibility="public"
  13356. deprecated="not deprecated">
  13357. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13358. </method>
  13359. <method name="mkdirs" return="boolean"
  13360. abstract="false" native="false" synchronized="false"
  13361. static="false" final="false" visibility="public"
  13362. deprecated="not deprecated">
  13363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13364. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13365. <exception name="IOException" type="java.io.IOException"/>
  13366. <doc>
  13367. <![CDATA[not implemented.]]>
  13368. </doc>
  13369. </method>
  13370. <method name="copyFromLocalFile"
  13371. abstract="false" native="false" synchronized="false"
  13372. static="false" final="false" visibility="public"
  13373. deprecated="not deprecated">
  13374. <param name="delSrc" type="boolean"/>
  13375. <param name="overwrite" type="boolean"/>
  13376. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13377. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13378. <exception name="IOException" type="java.io.IOException"/>
  13379. <doc>
  13380. <![CDATA[not implemented.]]>
  13381. </doc>
  13382. </method>
  13383. <method name="copyFromLocalFile"
  13384. abstract="false" native="false" synchronized="false"
  13385. static="false" final="false" visibility="public"
  13386. deprecated="not deprecated">
  13387. <param name="delSrc" type="boolean"/>
  13388. <param name="overwrite" type="boolean"/>
  13389. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  13390. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13391. <exception name="IOException" type="java.io.IOException"/>
  13392. </method>
  13393. <method name="copyToLocalFile"
  13394. abstract="false" native="false" synchronized="false"
  13395. static="false" final="false" visibility="public"
  13396. deprecated="not deprecated">
  13397. <param name="delSrc" type="boolean"/>
  13398. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13399. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13400. <exception name="IOException" type="java.io.IOException"/>
  13401. <doc>
  13402. <![CDATA[copies the file in the har filesystem to a local file.]]>
  13403. </doc>
  13404. </method>
  13405. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  13406. abstract="false" native="false" synchronized="false"
  13407. static="false" final="false" visibility="public"
  13408. deprecated="not deprecated">
  13409. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13410. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13411. <exception name="IOException" type="java.io.IOException"/>
  13412. <doc>
  13413. <![CDATA[not implemented.]]>
  13414. </doc>
  13415. </method>
  13416. <method name="completeLocalOutput"
  13417. abstract="false" native="false" synchronized="false"
  13418. static="false" final="false" visibility="public"
  13419. deprecated="not deprecated">
  13420. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13421. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13422. <exception name="IOException" type="java.io.IOException"/>
  13423. <doc>
  13424. <![CDATA[not implemented.]]>
  13425. </doc>
  13426. </method>
  13427. <method name="setOwner"
  13428. abstract="false" native="false" synchronized="false"
  13429. static="false" final="false" visibility="public"
  13430. deprecated="not deprecated">
  13431. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13432. <param name="username" type="java.lang.String"/>
  13433. <param name="groupname" type="java.lang.String"/>
  13434. <exception name="IOException" type="java.io.IOException"/>
  13435. <doc>
  13436. <![CDATA[not implemented.]]>
  13437. </doc>
  13438. </method>
  13439. <method name="setTimes"
  13440. abstract="false" native="false" synchronized="false"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13444. <param name="mtime" type="long"/>
  13445. <param name="atime" type="long"/>
  13446. <exception name="IOException" type="java.io.IOException"/>
  13447. </method>
  13448. <method name="setPermission"
  13449. abstract="false" native="false" synchronized="false"
  13450. static="false" final="false" visibility="public"
  13451. deprecated="not deprecated">
  13452. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13453. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13454. <exception name="IOException" type="java.io.IOException"/>
  13455. <doc>
  13456. <![CDATA[Not implemented.]]>
  13457. </doc>
  13458. </method>
  13459. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13460. abstract="false" native="false" synchronized="false"
  13461. static="false" final="false" visibility="public"
  13462. deprecated="not deprecated">
  13463. <exception name="IOException" type="java.io.IOException"/>
  13464. </method>
  13465. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13466. abstract="false" native="false" synchronized="false"
  13467. static="false" final="false" visibility="public"
  13468. deprecated="not deprecated">
  13469. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13470. <exception name="IOException" type="java.io.IOException"/>
  13471. </method>
  13472. <method name="getUsed" return="long"
  13473. abstract="false" native="false" synchronized="false"
  13474. static="false" final="false" visibility="public"
  13475. deprecated="not deprecated">
  13476. <exception name="IOException" type="java.io.IOException"/>
  13477. </method>
  13478. <method name="getDefaultBlockSize" return="long"
  13479. abstract="false" native="false" synchronized="false"
  13480. static="false" final="false" visibility="public"
  13481. deprecated="not deprecated">
  13482. </method>
  13483. <method name="getDefaultBlockSize" return="long"
  13484. abstract="false" native="false" synchronized="false"
  13485. static="false" final="false" visibility="public"
  13486. deprecated="not deprecated">
  13487. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13488. </method>
  13489. <method name="getDefaultReplication" return="short"
  13490. abstract="false" native="false" synchronized="false"
  13491. static="false" final="false" visibility="public"
  13492. deprecated="not deprecated">
  13493. </method>
  13494. <method name="getDefaultReplication" return="short"
  13495. abstract="false" native="false" synchronized="false"
  13496. static="false" final="false" visibility="public"
  13497. deprecated="not deprecated">
  13498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13499. </method>
  13500. <field name="METADATA_CACHE_ENTRIES_KEY" type="java.lang.String"
  13501. transient="false" volatile="false"
  13502. static="true" final="true" visibility="public"
  13503. deprecated="not deprecated">
  13504. </field>
  13505. <field name="METADATA_CACHE_ENTRIES_DEFAULT" type="int"
  13506. transient="false" volatile="false"
  13507. static="true" final="true" visibility="public"
  13508. deprecated="not deprecated">
  13509. </field>
  13510. <field name="VERSION" type="int"
  13511. transient="false" volatile="false"
  13512. static="true" final="true" visibility="public"
  13513. deprecated="not deprecated">
  13514. </field>
  13515. <doc>
  13516. <![CDATA[This is an implementation of the Hadoop Archive
  13517. Filesystem. This archive Filesystem has index files
  13518. of the form _index* and has contents of the form
  13519. part-*. The index files store the indexes of the
  13520. real files. The index files are of the form _masterindex
  13521. and _index. The master index is a level of indirection
  13522. in to the index file to make the look ups faster. the index
  13523. file is sorted with hash code of the paths that it contains
  13524. and the master index contains pointers to the positions in
  13525. index for ranges of hashcodes.]]>
  13526. </doc>
  13527. </class>
  13528. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  13529. <!-- start class org.apache.hadoop.fs.HarFs -->
  13530. <class name="HarFs" extends="org.apache.hadoop.fs.DelegateToFileSystem"
  13531. abstract="false"
  13532. static="false" final="false" visibility="public"
  13533. deprecated="not deprecated">
  13534. <method name="getUriDefaultPort" return="int"
  13535. abstract="false" native="false" synchronized="false"
  13536. static="false" final="false" visibility="public"
  13537. deprecated="not deprecated">
  13538. </method>
  13539. </class>
  13540. <!-- end class org.apache.hadoop.fs.HarFs -->
  13541. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  13542. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  13543. abstract="false"
  13544. static="false" final="false" visibility="public"
  13545. deprecated="not deprecated">
  13546. <constructor name="InvalidPathException" type="java.lang.String"
  13547. static="false" final="false" visibility="public"
  13548. deprecated="not deprecated">
  13549. <doc>
  13550. <![CDATA[Constructs exception with the specified detail message.
  13551. @param path invalid path.]]>
  13552. </doc>
  13553. </constructor>
  13554. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  13555. static="false" final="false" visibility="public"
  13556. deprecated="not deprecated">
  13557. <doc>
  13558. <![CDATA[Constructs exception with the specified detail message.
  13559. @param path invalid path.
  13560. @param reason Reason <code>path</code> is invalid]]>
  13561. </doc>
  13562. </constructor>
  13563. <doc>
  13564. <![CDATA[Path string is invalid either because it has invalid characters or due to
  13565. other file system specific reasons.]]>
  13566. </doc>
  13567. </class>
  13568. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  13569. <!-- start class org.apache.hadoop.fs.InvalidRequestException -->
  13570. <class name="InvalidRequestException" extends="java.io.IOException"
  13571. abstract="false"
  13572. static="false" final="false" visibility="public"
  13573. deprecated="not deprecated">
  13574. <constructor name="InvalidRequestException" type="java.lang.String"
  13575. static="false" final="false" visibility="public"
  13576. deprecated="not deprecated">
  13577. </constructor>
  13578. <doc>
  13579. <![CDATA[Thrown when the user makes a malformed request, for example missing required
  13580. parameters or parameters that are not valid.]]>
  13581. </doc>
  13582. </class>
  13583. <!-- end class org.apache.hadoop.fs.InvalidRequestException -->
  13584. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  13585. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  13586. abstract="false"
  13587. static="false" final="false" visibility="public"
  13588. deprecated="not deprecated">
  13589. <constructor name="LocalFileSystem"
  13590. static="false" final="false" visibility="public"
  13591. deprecated="not deprecated">
  13592. </constructor>
  13593. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13594. static="false" final="false" visibility="public"
  13595. deprecated="not deprecated">
  13596. </constructor>
  13597. <method name="initialize"
  13598. abstract="false" native="false" synchronized="false"
  13599. static="false" final="false" visibility="public"
  13600. deprecated="not deprecated">
  13601. <param name="name" type="java.net.URI"/>
  13602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13603. <exception name="IOException" type="java.io.IOException"/>
  13604. </method>
  13605. <method name="getScheme" return="java.lang.String"
  13606. abstract="false" native="false" synchronized="false"
  13607. static="false" final="false" visibility="public"
  13608. deprecated="not deprecated">
  13609. <doc>
  13610. <![CDATA[Return the protocol scheme for the FileSystem.
  13611. <p/>
  13612. @return <code>file</code>]]>
  13613. </doc>
  13614. </method>
  13615. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  13616. abstract="false" native="false" synchronized="false"
  13617. static="false" final="false" visibility="public"
  13618. deprecated="not deprecated">
  13619. </method>
  13620. <method name="pathToFile" return="java.io.File"
  13621. abstract="false" native="false" synchronized="false"
  13622. static="false" final="false" visibility="public"
  13623. deprecated="not deprecated">
  13624. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13625. <doc>
  13626. <![CDATA[Convert a path to a File.]]>
  13627. </doc>
  13628. </method>
  13629. <method name="copyFromLocalFile"
  13630. abstract="false" native="false" synchronized="false"
  13631. static="false" final="false" visibility="public"
  13632. deprecated="not deprecated">
  13633. <param name="delSrc" type="boolean"/>
  13634. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13635. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13636. <exception name="IOException" type="java.io.IOException"/>
  13637. </method>
  13638. <method name="copyToLocalFile"
  13639. abstract="false" native="false" synchronized="false"
  13640. static="false" final="false" visibility="public"
  13641. deprecated="not deprecated">
  13642. <param name="delSrc" type="boolean"/>
  13643. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13644. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13645. <exception name="IOException" type="java.io.IOException"/>
  13646. </method>
  13647. <method name="reportChecksumFailure" return="boolean"
  13648. abstract="false" native="false" synchronized="false"
  13649. static="false" final="false" visibility="public"
  13650. deprecated="not deprecated">
  13651. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13652. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13653. <param name="inPos" type="long"/>
  13654. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13655. <param name="sumsPos" type="long"/>
  13656. <doc>
  13657. <![CDATA[Moves files to a bad file directory on the same device, so that their
  13658. storage will not be reused.]]>
  13659. </doc>
  13660. </method>
  13661. <method name="supportsSymlinks" return="boolean"
  13662. abstract="false" native="false" synchronized="false"
  13663. static="false" final="false" visibility="public"
  13664. deprecated="not deprecated">
  13665. </method>
  13666. <method name="createSymlink"
  13667. abstract="false" native="false" synchronized="false"
  13668. static="false" final="false" visibility="public"
  13669. deprecated="not deprecated">
  13670. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13671. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13672. <param name="createParent" type="boolean"/>
  13673. <exception name="IOException" type="java.io.IOException"/>
  13674. </method>
  13675. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13676. abstract="false" native="false" synchronized="false"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13680. <exception name="IOException" type="java.io.IOException"/>
  13681. </method>
  13682. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13683. abstract="false" native="false" synchronized="false"
  13684. static="false" final="false" visibility="public"
  13685. deprecated="not deprecated">
  13686. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13687. <exception name="IOException" type="java.io.IOException"/>
  13688. </method>
  13689. <doc>
  13690. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  13691. </doc>
  13692. </class>
  13693. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  13694. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  13695. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  13696. abstract="false"
  13697. static="false" final="false" visibility="public"
  13698. deprecated="not deprecated">
  13699. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  13700. static="false" final="false" visibility="public"
  13701. deprecated="not deprecated">
  13702. <exception name="IOException" type="java.io.IOException"/>
  13703. <doc>
  13704. <![CDATA[Constructor
  13705. @param stat a file status
  13706. @param locations a file's block locations]]>
  13707. </doc>
  13708. </constructor>
  13709. <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[]"
  13710. static="false" final="false" visibility="public"
  13711. deprecated="not deprecated">
  13712. <doc>
  13713. <![CDATA[Constructor
  13714. @param length a file's length
  13715. @param isdir if the path is a directory
  13716. @param block_replication the file's replication factor
  13717. @param blocksize a file's block size
  13718. @param modification_time a file's modification time
  13719. @param access_time a file's access time
  13720. @param permission a file's permission
  13721. @param owner a file's owner
  13722. @param group a file's group
  13723. @param symlink symlink if the path is a symbolic link
  13724. @param path the path's qualified name
  13725. @param locations a file's block locations]]>
  13726. </doc>
  13727. </constructor>
  13728. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13729. abstract="false" native="false" synchronized="false"
  13730. static="false" final="false" visibility="public"
  13731. deprecated="not deprecated">
  13732. <doc>
  13733. <![CDATA[Get the file's block locations
  13734. @return the file's block locations]]>
  13735. </doc>
  13736. </method>
  13737. <method name="compareTo" return="int"
  13738. abstract="false" native="false" synchronized="false"
  13739. static="false" final="false" visibility="public"
  13740. deprecated="not deprecated">
  13741. <param name="o" type="java.lang.Object"/>
  13742. <doc>
  13743. <![CDATA[Compare this object to another object
  13744. @param o the object to be compared.
  13745. @return a negative integer, zero, or a positive integer as this object
  13746. is less than, equal to, or greater than the specified object.
  13747. @throws ClassCastException if the specified object's is not of
  13748. type FileStatus]]>
  13749. </doc>
  13750. </method>
  13751. <method name="equals" return="boolean"
  13752. abstract="false" native="false" synchronized="false"
  13753. static="false" final="false" visibility="public"
  13754. deprecated="not deprecated">
  13755. <param name="o" type="java.lang.Object"/>
  13756. <doc>
  13757. <![CDATA[Compare if this object is equal to another object
  13758. @param o the object to be compared.
  13759. @return true if two file status has the same path name; false if not.]]>
  13760. </doc>
  13761. </method>
  13762. <method name="hashCode" return="int"
  13763. abstract="false" native="false" synchronized="false"
  13764. static="false" final="false" visibility="public"
  13765. deprecated="not deprecated">
  13766. <doc>
  13767. <![CDATA[Returns a hash code value for the object, which is defined as
  13768. the hash code of the path name.
  13769. @return a hash code value for the path name.]]>
  13770. </doc>
  13771. </method>
  13772. <doc>
  13773. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  13774. </doc>
  13775. </class>
  13776. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  13777. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32CastagnoliFileChecksum -->
  13778. <class name="MD5MD5CRC32CastagnoliFileChecksum" extends="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  13779. abstract="false"
  13780. static="false" final="false" visibility="public"
  13781. deprecated="not deprecated">
  13782. <constructor name="MD5MD5CRC32CastagnoliFileChecksum"
  13783. static="false" final="false" visibility="public"
  13784. deprecated="not deprecated">
  13785. <doc>
  13786. <![CDATA[Same as this(0, 0, null)]]>
  13787. </doc>
  13788. </constructor>
  13789. <constructor name="MD5MD5CRC32CastagnoliFileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  13790. static="false" final="false" visibility="public"
  13791. deprecated="not deprecated">
  13792. <doc>
  13793. <![CDATA[Create a MD5FileChecksum]]>
  13794. </doc>
  13795. </constructor>
  13796. <method name="getCrcType" return="org.apache.hadoop.util.DataChecksum.Type"
  13797. abstract="false" native="false" synchronized="false"
  13798. static="false" final="false" visibility="public"
  13799. deprecated="not deprecated">
  13800. </method>
  13801. <doc>
  13802. <![CDATA[For CRC32 with the Castagnoli polynomial]]>
  13803. </doc>
  13804. </class>
  13805. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32CastagnoliFileChecksum -->
  13806. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32GzipFileChecksum -->
  13807. <class name="MD5MD5CRC32GzipFileChecksum" extends="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  13808. abstract="false"
  13809. static="false" final="false" visibility="public"
  13810. deprecated="not deprecated">
  13811. <constructor name="MD5MD5CRC32GzipFileChecksum"
  13812. static="false" final="false" visibility="public"
  13813. deprecated="not deprecated">
  13814. <doc>
  13815. <![CDATA[Same as this(0, 0, null)]]>
  13816. </doc>
  13817. </constructor>
  13818. <constructor name="MD5MD5CRC32GzipFileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  13819. static="false" final="false" visibility="public"
  13820. deprecated="not deprecated">
  13821. <doc>
  13822. <![CDATA[Create a MD5FileChecksum]]>
  13823. </doc>
  13824. </constructor>
  13825. <method name="getCrcType" return="org.apache.hadoop.util.DataChecksum.Type"
  13826. abstract="false" native="false" synchronized="false"
  13827. static="false" final="false" visibility="public"
  13828. deprecated="not deprecated">
  13829. </method>
  13830. <doc>
  13831. <![CDATA[For CRC32 with the Gzip polynomial]]>
  13832. </doc>
  13833. </class>
  13834. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32GzipFileChecksum -->
  13835. <!-- start class org.apache.hadoop.fs.Options -->
  13836. <class name="Options" extends="java.lang.Object"
  13837. abstract="false"
  13838. static="false" final="true" visibility="public"
  13839. deprecated="not deprecated">
  13840. <constructor name="Options"
  13841. static="false" final="false" visibility="public"
  13842. deprecated="not deprecated">
  13843. </constructor>
  13844. <doc>
  13845. <![CDATA[This class contains options related to file system operations.]]>
  13846. </doc>
  13847. </class>
  13848. <!-- end class org.apache.hadoop.fs.Options -->
  13849. <!-- start class org.apache.hadoop.fs.Options.ChecksumOpt -->
  13850. <class name="Options.ChecksumOpt" extends="java.lang.Object"
  13851. abstract="false"
  13852. static="true" final="false" visibility="public"
  13853. deprecated="not deprecated">
  13854. <constructor name="Options.ChecksumOpt"
  13855. static="false" final="false" visibility="public"
  13856. deprecated="not deprecated">
  13857. <doc>
  13858. <![CDATA[Create a uninitialized one]]>
  13859. </doc>
  13860. </constructor>
  13861. <constructor name="Options.ChecksumOpt" type="org.apache.hadoop.util.DataChecksum.Type, int"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <doc>
  13865. <![CDATA[Normal ctor
  13866. @param type checksum type
  13867. @param size bytes per checksum]]>
  13868. </doc>
  13869. </constructor>
  13870. <method name="getBytesPerChecksum" return="int"
  13871. abstract="false" native="false" synchronized="false"
  13872. static="false" final="false" visibility="public"
  13873. deprecated="not deprecated">
  13874. </method>
  13875. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  13876. abstract="false" native="false" synchronized="false"
  13877. static="false" final="false" visibility="public"
  13878. deprecated="not deprecated">
  13879. </method>
  13880. <method name="toString" return="java.lang.String"
  13881. abstract="false" native="false" synchronized="false"
  13882. static="false" final="false" visibility="public"
  13883. deprecated="not deprecated">
  13884. </method>
  13885. <method name="createDisabled" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  13886. abstract="false" native="false" synchronized="false"
  13887. static="true" final="false" visibility="public"
  13888. deprecated="not deprecated">
  13889. <doc>
  13890. <![CDATA[Create a ChecksumOpts that disables checksum]]>
  13891. </doc>
  13892. </method>
  13893. <method name="processChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  13894. abstract="false" native="false" synchronized="false"
  13895. static="true" final="false" visibility="public"
  13896. deprecated="not deprecated">
  13897. <param name="defaultOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13898. <param name="userOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13899. <param name="userBytesPerChecksum" type="int"/>
  13900. <doc>
  13901. <![CDATA[A helper method for processing user input and default value to
  13902. create a combined checksum option. This is a bit complicated because
  13903. bytesPerChecksum is kept for backward compatibility.
  13904. @param defaultOpt Default checksum option
  13905. @param userOpt User-specified checksum option. Ignored if null.
  13906. @param userBytesPerChecksum User-specified bytesPerChecksum
  13907. Ignored if < 0.]]>
  13908. </doc>
  13909. </method>
  13910. <method name="processChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  13911. abstract="false" native="false" synchronized="false"
  13912. static="true" final="false" visibility="public"
  13913. deprecated="not deprecated">
  13914. <param name="defaultOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13915. <param name="userOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13916. <doc>
  13917. <![CDATA[A helper method for processing user input and default value to
  13918. create a combined checksum option.
  13919. @param defaultOpt Default checksum option
  13920. @param userOpt User-specified checksum option]]>
  13921. </doc>
  13922. </method>
  13923. <doc>
  13924. <![CDATA[This is used in FileSystem and FileContext to specify checksum options.]]>
  13925. </doc>
  13926. </class>
  13927. <!-- end class org.apache.hadoop.fs.Options.ChecksumOpt -->
  13928. <!-- start class org.apache.hadoop.fs.Options.CreateOpts -->
  13929. <class name="Options.CreateOpts" extends="java.lang.Object"
  13930. abstract="false"
  13931. static="true" final="false" visibility="public"
  13932. deprecated="not deprecated">
  13933. <method name="blockSize" return="org.apache.hadoop.fs.Options.CreateOpts.BlockSize"
  13934. abstract="false" native="false" synchronized="false"
  13935. static="true" final="false" visibility="public"
  13936. deprecated="not deprecated">
  13937. <param name="bs" type="long"/>
  13938. </method>
  13939. <method name="bufferSize" return="org.apache.hadoop.fs.Options.CreateOpts.BufferSize"
  13940. abstract="false" native="false" synchronized="false"
  13941. static="true" final="false" visibility="public"
  13942. deprecated="not deprecated">
  13943. <param name="bs" type="int"/>
  13944. </method>
  13945. <method name="repFac" return="org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor"
  13946. abstract="false" native="false" synchronized="false"
  13947. static="true" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. <param name="rf" type="short"/>
  13950. </method>
  13951. <method name="bytesPerChecksum" return="org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum"
  13952. abstract="false" native="false" synchronized="false"
  13953. static="true" final="false" visibility="public"
  13954. deprecated="not deprecated">
  13955. <param name="crc" type="short"/>
  13956. </method>
  13957. <method name="checksumParam" return="org.apache.hadoop.fs.Options.CreateOpts.ChecksumParam"
  13958. abstract="false" native="false" synchronized="false"
  13959. static="true" final="false" visibility="public"
  13960. deprecated="not deprecated">
  13961. <param name="csumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13962. </method>
  13963. <method name="perms" return="org.apache.hadoop.fs.Options.CreateOpts.Perms"
  13964. abstract="false" native="false" synchronized="false"
  13965. static="true" final="false" visibility="public"
  13966. deprecated="not deprecated">
  13967. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13968. </method>
  13969. <method name="createParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  13970. abstract="false" native="false" synchronized="false"
  13971. static="true" final="false" visibility="public"
  13972. deprecated="not deprecated">
  13973. </method>
  13974. <method name="donotCreateParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  13975. abstract="false" native="false" synchronized="false"
  13976. static="true" final="false" visibility="public"
  13977. deprecated="not deprecated">
  13978. </method>
  13979. <doc>
  13980. <![CDATA[Class to support the varargs for create() options.]]>
  13981. </doc>
  13982. </class>
  13983. <!-- end class org.apache.hadoop.fs.Options.CreateOpts -->
  13984. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  13985. <class name="Options.CreateOpts.BlockSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  13986. abstract="false"
  13987. static="true" final="false" visibility="public"
  13988. deprecated="not deprecated">
  13989. <constructor name="Options.CreateOpts.BlockSize" type="long"
  13990. static="false" final="false" visibility="protected"
  13991. deprecated="not deprecated">
  13992. </constructor>
  13993. <method name="getValue" return="long"
  13994. abstract="false" native="false" synchronized="false"
  13995. static="false" final="false" visibility="public"
  13996. deprecated="not deprecated">
  13997. </method>
  13998. </class>
  13999. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  14000. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  14001. <class name="Options.CreateOpts.BufferSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14002. abstract="false"
  14003. static="true" final="false" visibility="public"
  14004. deprecated="not deprecated">
  14005. <constructor name="Options.CreateOpts.BufferSize" type="int"
  14006. static="false" final="false" visibility="protected"
  14007. deprecated="not deprecated">
  14008. </constructor>
  14009. <method name="getValue" return="int"
  14010. abstract="false" native="false" synchronized="false"
  14011. static="false" final="false" visibility="public"
  14012. deprecated="not deprecated">
  14013. </method>
  14014. </class>
  14015. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  14016. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  14017. <class name="Options.CreateOpts.BytesPerChecksum" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14018. abstract="false"
  14019. static="true" final="false" visibility="public"
  14020. deprecated="not deprecated">
  14021. <constructor name="Options.CreateOpts.BytesPerChecksum" type="short"
  14022. static="false" final="false" visibility="protected"
  14023. deprecated="not deprecated">
  14024. </constructor>
  14025. <method name="getValue" return="int"
  14026. abstract="false" native="false" synchronized="false"
  14027. static="false" final="false" visibility="public"
  14028. deprecated="not deprecated">
  14029. </method>
  14030. <doc>
  14031. <![CDATA[This is not needed if ChecksumParam is specified.]]>
  14032. </doc>
  14033. </class>
  14034. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  14035. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.ChecksumParam -->
  14036. <class name="Options.CreateOpts.ChecksumParam" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14037. abstract="false"
  14038. static="true" final="false" visibility="public"
  14039. deprecated="not deprecated">
  14040. <constructor name="Options.CreateOpts.ChecksumParam" type="org.apache.hadoop.fs.Options.ChecksumOpt"
  14041. static="false" final="false" visibility="protected"
  14042. deprecated="not deprecated">
  14043. </constructor>
  14044. <method name="getValue" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14045. abstract="false" native="false" synchronized="false"
  14046. static="false" final="false" visibility="public"
  14047. deprecated="not deprecated">
  14048. </method>
  14049. </class>
  14050. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.ChecksumParam -->
  14051. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  14052. <class name="Options.CreateOpts.CreateParent" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14053. abstract="false"
  14054. static="true" final="false" visibility="public"
  14055. deprecated="not deprecated">
  14056. <constructor name="Options.CreateOpts.CreateParent" type="boolean"
  14057. static="false" final="false" visibility="protected"
  14058. deprecated="not deprecated">
  14059. </constructor>
  14060. <method name="getValue" return="boolean"
  14061. abstract="false" native="false" synchronized="false"
  14062. static="false" final="false" visibility="public"
  14063. deprecated="not deprecated">
  14064. </method>
  14065. </class>
  14066. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  14067. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  14068. <class name="Options.CreateOpts.Perms" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14069. abstract="false"
  14070. static="true" final="false" visibility="public"
  14071. deprecated="not deprecated">
  14072. <constructor name="Options.CreateOpts.Perms" type="org.apache.hadoop.fs.permission.FsPermission"
  14073. static="false" final="false" visibility="protected"
  14074. deprecated="not deprecated">
  14075. </constructor>
  14076. <method name="getValue" return="org.apache.hadoop.fs.permission.FsPermission"
  14077. abstract="false" native="false" synchronized="false"
  14078. static="false" final="false" visibility="public"
  14079. deprecated="not deprecated">
  14080. </method>
  14081. </class>
  14082. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  14083. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  14084. <class name="Options.CreateOpts.Progress" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14085. abstract="false"
  14086. static="true" final="false" visibility="public"
  14087. deprecated="not deprecated">
  14088. <constructor name="Options.CreateOpts.Progress" type="org.apache.hadoop.util.Progressable"
  14089. static="false" final="false" visibility="protected"
  14090. deprecated="not deprecated">
  14091. </constructor>
  14092. <method name="getValue" return="org.apache.hadoop.util.Progressable"
  14093. abstract="false" native="false" synchronized="false"
  14094. static="false" final="false" visibility="public"
  14095. deprecated="not deprecated">
  14096. </method>
  14097. </class>
  14098. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  14099. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  14100. <class name="Options.CreateOpts.ReplicationFactor" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14101. abstract="false"
  14102. static="true" final="false" visibility="public"
  14103. deprecated="not deprecated">
  14104. <constructor name="Options.CreateOpts.ReplicationFactor" type="short"
  14105. static="false" final="false" visibility="protected"
  14106. deprecated="not deprecated">
  14107. </constructor>
  14108. <method name="getValue" return="short"
  14109. abstract="false" native="false" synchronized="false"
  14110. static="false" final="false" visibility="public"
  14111. deprecated="not deprecated">
  14112. </method>
  14113. </class>
  14114. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  14115. <!-- start class org.apache.hadoop.fs.Options.Rename -->
  14116. <class name="Options.Rename" extends="java.lang.Enum"
  14117. abstract="false"
  14118. static="true" final="true" visibility="public"
  14119. deprecated="not deprecated">
  14120. <method name="values" return="org.apache.hadoop.fs.Options.Rename[]"
  14121. abstract="false" native="false" synchronized="false"
  14122. static="true" final="false" visibility="public"
  14123. deprecated="not deprecated">
  14124. </method>
  14125. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  14126. abstract="false" native="false" synchronized="false"
  14127. static="true" final="false" visibility="public"
  14128. deprecated="not deprecated">
  14129. <param name="name" type="java.lang.String"/>
  14130. </method>
  14131. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  14132. abstract="false" native="false" synchronized="false"
  14133. static="true" final="false" visibility="public"
  14134. deprecated="not deprecated">
  14135. <param name="code" type="byte"/>
  14136. </method>
  14137. <method name="value" return="byte"
  14138. abstract="false" native="false" synchronized="false"
  14139. static="false" final="false" visibility="public"
  14140. deprecated="not deprecated">
  14141. </method>
  14142. <doc>
  14143. <![CDATA[Enum to support the varargs for rename() options]]>
  14144. </doc>
  14145. </class>
  14146. <!-- end class org.apache.hadoop.fs.Options.Rename -->
  14147. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14148. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  14149. abstract="false"
  14150. static="false" final="false" visibility="public"
  14151. deprecated="not deprecated">
  14152. <constructor name="ParentNotDirectoryException"
  14153. static="false" final="false" visibility="public"
  14154. deprecated="not deprecated">
  14155. </constructor>
  14156. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  14157. static="false" final="false" visibility="public"
  14158. deprecated="not deprecated">
  14159. </constructor>
  14160. <doc>
  14161. <![CDATA[Indicates that the parent of specified Path is not a directory
  14162. as expected.]]>
  14163. </doc>
  14164. </class>
  14165. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14166. <!-- start class org.apache.hadoop.fs.Path -->
  14167. <class name="Path" extends="java.lang.Object"
  14168. abstract="false"
  14169. static="false" final="false" visibility="public"
  14170. deprecated="not deprecated">
  14171. <implements name="java.lang.Comparable"/>
  14172. <constructor name="Path" type="java.lang.String, java.lang.String"
  14173. static="false" final="false" visibility="public"
  14174. deprecated="not deprecated">
  14175. <doc>
  14176. <![CDATA[Resolve a child path against a parent path.]]>
  14177. </doc>
  14178. </constructor>
  14179. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  14180. static="false" final="false" visibility="public"
  14181. deprecated="not deprecated">
  14182. <doc>
  14183. <![CDATA[Resolve a child path against a parent path.]]>
  14184. </doc>
  14185. </constructor>
  14186. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  14187. static="false" final="false" visibility="public"
  14188. deprecated="not deprecated">
  14189. <doc>
  14190. <![CDATA[Resolve a child path against a parent path.]]>
  14191. </doc>
  14192. </constructor>
  14193. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  14194. static="false" final="false" visibility="public"
  14195. deprecated="not deprecated">
  14196. <doc>
  14197. <![CDATA[Resolve a child path against a parent path.]]>
  14198. </doc>
  14199. </constructor>
  14200. <constructor name="Path" type="java.lang.String"
  14201. static="false" final="false" visibility="public"
  14202. deprecated="not deprecated">
  14203. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14204. <doc>
  14205. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  14206. unescaped elements and some additional normalization.]]>
  14207. </doc>
  14208. </constructor>
  14209. <constructor name="Path" type="java.net.URI"
  14210. static="false" final="false" visibility="public"
  14211. deprecated="not deprecated">
  14212. <doc>
  14213. <![CDATA[Construct a path from a URI]]>
  14214. </doc>
  14215. </constructor>
  14216. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  14217. static="false" final="false" visibility="public"
  14218. deprecated="not deprecated">
  14219. <doc>
  14220. <![CDATA[Construct a Path from components.]]>
  14221. </doc>
  14222. </constructor>
  14223. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  14224. abstract="false" native="false" synchronized="false"
  14225. static="true" final="false" visibility="public"
  14226. deprecated="not deprecated">
  14227. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14228. </method>
  14229. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  14230. abstract="false" native="false" synchronized="false"
  14231. static="true" final="false" visibility="public"
  14232. deprecated="not deprecated">
  14233. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  14234. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  14235. <doc>
  14236. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  14237. The returned path has the scheme and authority of the first path. On
  14238. Windows, the drive specification in the second path is discarded.
  14239. @param path1 Path first path
  14240. @param path2 Path second path, to be appended relative to path1
  14241. @return Path merged path]]>
  14242. </doc>
  14243. </method>
  14244. <method name="isWindowsAbsolutePath" return="boolean"
  14245. abstract="false" native="false" synchronized="false"
  14246. static="true" final="false" visibility="public"
  14247. deprecated="not deprecated">
  14248. <param name="pathString" type="java.lang.String"/>
  14249. <param name="slashed" type="boolean"/>
  14250. <doc>
  14251. <![CDATA[Determine whether a given path string represents an absolute path on
  14252. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  14253. @param pathString Supplies the path string to evaluate.
  14254. @param slashed true if the given path is prefixed with "/".
  14255. @return true if the supplied path looks like an absolute path with a Windows
  14256. drive-specifier.]]>
  14257. </doc>
  14258. </method>
  14259. <method name="toUri" return="java.net.URI"
  14260. abstract="false" native="false" synchronized="false"
  14261. static="false" final="false" visibility="public"
  14262. deprecated="not deprecated">
  14263. <doc>
  14264. <![CDATA[Convert this to a URI.]]>
  14265. </doc>
  14266. </method>
  14267. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  14268. abstract="false" native="false" synchronized="false"
  14269. static="false" final="false" visibility="public"
  14270. deprecated="not deprecated">
  14271. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14272. <exception name="IOException" type="java.io.IOException"/>
  14273. <doc>
  14274. <![CDATA[Return the FileSystem that owns this Path.]]>
  14275. </doc>
  14276. </method>
  14277. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  14278. abstract="false" native="false" synchronized="false"
  14279. static="false" final="false" visibility="public"
  14280. deprecated="not deprecated">
  14281. <doc>
  14282. <![CDATA[Is an absolute path (ie a slash relative path part)
  14283. AND a scheme is null AND authority is null.]]>
  14284. </doc>
  14285. </method>
  14286. <method name="isUriPathAbsolute" return="boolean"
  14287. abstract="false" native="false" synchronized="false"
  14288. static="false" final="false" visibility="public"
  14289. deprecated="not deprecated">
  14290. <doc>
  14291. <![CDATA[True if the path component (i.e. directory) of this URI is absolute.]]>
  14292. </doc>
  14293. </method>
  14294. <method name="isAbsolute" return="boolean"
  14295. abstract="false" native="false" synchronized="false"
  14296. static="false" final="false" visibility="public"
  14297. deprecated="not deprecated">
  14298. <doc>
  14299. <![CDATA[There is some ambiguity here. An absolute path is a slash
  14300. relative name without a scheme or an authority.
  14301. So either this method was incorrectly named or its
  14302. implementation is incorrect. This method returns true
  14303. even if there is a scheme and authority.]]>
  14304. </doc>
  14305. </method>
  14306. <method name="isRoot" return="boolean"
  14307. abstract="false" native="false" synchronized="false"
  14308. static="false" final="false" visibility="public"
  14309. deprecated="not deprecated">
  14310. <doc>
  14311. <![CDATA[@return true if and only if this path represents the root of a file system]]>
  14312. </doc>
  14313. </method>
  14314. <method name="getName" return="java.lang.String"
  14315. abstract="false" native="false" synchronized="false"
  14316. static="false" final="false" visibility="public"
  14317. deprecated="not deprecated">
  14318. <doc>
  14319. <![CDATA[Returns the final component of this path.]]>
  14320. </doc>
  14321. </method>
  14322. <method name="getParent" return="org.apache.hadoop.fs.Path"
  14323. abstract="false" native="false" synchronized="false"
  14324. static="false" final="false" visibility="public"
  14325. deprecated="not deprecated">
  14326. <doc>
  14327. <![CDATA[Returns the parent of a path or null if at root.]]>
  14328. </doc>
  14329. </method>
  14330. <method name="suffix" return="org.apache.hadoop.fs.Path"
  14331. abstract="false" native="false" synchronized="false"
  14332. static="false" final="false" visibility="public"
  14333. deprecated="not deprecated">
  14334. <param name="suffix" type="java.lang.String"/>
  14335. <doc>
  14336. <![CDATA[Adds a suffix to the final name in the path.]]>
  14337. </doc>
  14338. </method>
  14339. <method name="toString" return="java.lang.String"
  14340. abstract="false" native="false" synchronized="false"
  14341. static="false" final="false" visibility="public"
  14342. deprecated="not deprecated">
  14343. </method>
  14344. <method name="equals" return="boolean"
  14345. abstract="false" native="false" synchronized="false"
  14346. static="false" final="false" visibility="public"
  14347. deprecated="not deprecated">
  14348. <param name="o" type="java.lang.Object"/>
  14349. </method>
  14350. <method name="hashCode" return="int"
  14351. abstract="false" native="false" synchronized="false"
  14352. static="false" final="false" visibility="public"
  14353. deprecated="not deprecated">
  14354. </method>
  14355. <method name="compareTo" return="int"
  14356. abstract="false" native="false" synchronized="false"
  14357. static="false" final="false" visibility="public"
  14358. deprecated="not deprecated">
  14359. <param name="o" type="java.lang.Object"/>
  14360. </method>
  14361. <method name="depth" return="int"
  14362. abstract="false" native="false" synchronized="false"
  14363. static="false" final="false" visibility="public"
  14364. deprecated="not deprecated">
  14365. <doc>
  14366. <![CDATA[Return the number of elements in this path.]]>
  14367. </doc>
  14368. </method>
  14369. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  14370. abstract="false" native="false" synchronized="false"
  14371. static="false" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14374. <doc>
  14375. <![CDATA[Returns a qualified path object.
  14376. Deprecated - use {@link #makeQualified(URI, Path)}]]>
  14377. </doc>
  14378. </method>
  14379. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  14380. abstract="false" native="false" synchronized="false"
  14381. static="false" final="false" visibility="public"
  14382. deprecated="not deprecated">
  14383. <param name="defaultUri" type="java.net.URI"/>
  14384. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  14385. <doc>
  14386. <![CDATA[Returns a qualified path object.]]>
  14387. </doc>
  14388. </method>
  14389. <field name="SEPARATOR" type="java.lang.String"
  14390. transient="false" volatile="false"
  14391. static="true" final="true" visibility="public"
  14392. deprecated="not deprecated">
  14393. <doc>
  14394. <![CDATA[The directory separator, a slash.]]>
  14395. </doc>
  14396. </field>
  14397. <field name="SEPARATOR_CHAR" type="char"
  14398. transient="false" volatile="false"
  14399. static="true" final="true" visibility="public"
  14400. deprecated="not deprecated">
  14401. </field>
  14402. <field name="CUR_DIR" type="java.lang.String"
  14403. transient="false" volatile="false"
  14404. static="true" final="true" visibility="public"
  14405. deprecated="not deprecated">
  14406. </field>
  14407. <field name="WINDOWS" type="boolean"
  14408. transient="false" volatile="false"
  14409. static="true" final="true" visibility="public"
  14410. deprecated="not deprecated">
  14411. </field>
  14412. <doc>
  14413. <![CDATA[Names a file or directory in a {@link FileSystem}.
  14414. Path strings use slash as the directory separator. A path string is
  14415. absolute if it begins with a slash.]]>
  14416. </doc>
  14417. </class>
  14418. <!-- end class org.apache.hadoop.fs.Path -->
  14419. <!-- start class org.apache.hadoop.fs.PathAccessDeniedException -->
  14420. <class name="PathAccessDeniedException" extends="org.apache.hadoop.fs.PathIOException"
  14421. abstract="false"
  14422. static="false" final="false" visibility="public"
  14423. deprecated="not deprecated">
  14424. <constructor name="PathAccessDeniedException" type="java.lang.String"
  14425. static="false" final="false" visibility="public"
  14426. deprecated="not deprecated">
  14427. <doc>
  14428. <![CDATA[@param path for the exception]]>
  14429. </doc>
  14430. </constructor>
  14431. <doc>
  14432. <![CDATA[EACCES]]>
  14433. </doc>
  14434. </class>
  14435. <!-- end class org.apache.hadoop.fs.PathAccessDeniedException -->
  14436. <!-- start class org.apache.hadoop.fs.PathExistsException -->
  14437. <class name="PathExistsException" extends="org.apache.hadoop.fs.PathIOException"
  14438. abstract="false"
  14439. static="false" final="false" visibility="public"
  14440. deprecated="not deprecated">
  14441. <constructor name="PathExistsException" type="java.lang.String"
  14442. static="false" final="false" visibility="public"
  14443. deprecated="not deprecated">
  14444. <doc>
  14445. <![CDATA[@param path for the exception]]>
  14446. </doc>
  14447. </constructor>
  14448. <constructor name="PathExistsException" type="java.lang.String, java.lang.String"
  14449. static="false" final="false" visibility="protected"
  14450. deprecated="not deprecated">
  14451. </constructor>
  14452. <doc>
  14453. <![CDATA[Exception corresponding to File Exists - EEXISTS]]>
  14454. </doc>
  14455. </class>
  14456. <!-- end class org.apache.hadoop.fs.PathExistsException -->
  14457. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  14458. <interface name="PathFilter" abstract="true"
  14459. static="false" final="false" visibility="public"
  14460. deprecated="not deprecated">
  14461. <method name="accept" return="boolean"
  14462. abstract="false" native="false" synchronized="false"
  14463. static="false" final="false" visibility="public"
  14464. deprecated="not deprecated">
  14465. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14466. <doc>
  14467. <![CDATA[Tests whether or not the specified abstract pathname should be
  14468. included in a pathname list.
  14469. @param path The abstract pathname to be tested
  14470. @return <code>true</code> if and only if <code>pathname</code>
  14471. should be included]]>
  14472. </doc>
  14473. </method>
  14474. </interface>
  14475. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  14476. <!-- start class org.apache.hadoop.fs.PathIOException -->
  14477. <class name="PathIOException" extends="java.io.IOException"
  14478. abstract="false"
  14479. static="false" final="false" visibility="public"
  14480. deprecated="not deprecated">
  14481. <constructor name="PathIOException" type="java.lang.String"
  14482. static="false" final="false" visibility="public"
  14483. deprecated="not deprecated">
  14484. <doc>
  14485. <![CDATA[Constructor a generic I/O error exception
  14486. @param path for the exception]]>
  14487. </doc>
  14488. </constructor>
  14489. <constructor name="PathIOException" type="java.lang.String, java.lang.Throwable"
  14490. static="false" final="false" visibility="public"
  14491. deprecated="not deprecated">
  14492. <doc>
  14493. <![CDATA[Appends the text of a Throwable to the default error message
  14494. @param path for the exception
  14495. @param cause a throwable to extract the error message]]>
  14496. </doc>
  14497. </constructor>
  14498. <constructor name="PathIOException" type="java.lang.String, java.lang.String"
  14499. static="false" final="false" visibility="public"
  14500. deprecated="not deprecated">
  14501. <doc>
  14502. <![CDATA[Avoid using this method. Use a subclass of PathIOException if
  14503. possible.
  14504. @param path for the exception
  14505. @param error custom string to use an the error text]]>
  14506. </doc>
  14507. </constructor>
  14508. <constructor name="PathIOException" type="java.lang.String, java.lang.String, java.lang.Throwable"
  14509. static="false" final="false" visibility="protected"
  14510. deprecated="not deprecated">
  14511. </constructor>
  14512. <method name="getMessage" return="java.lang.String"
  14513. abstract="false" native="false" synchronized="false"
  14514. static="false" final="false" visibility="public"
  14515. deprecated="not deprecated">
  14516. <doc>
  14517. <![CDATA[Format:
  14518. cmd: {operation} `path' {to `target'}: error string]]>
  14519. </doc>
  14520. </method>
  14521. <method name="getPath" return="org.apache.hadoop.fs.Path"
  14522. abstract="false" native="false" synchronized="false"
  14523. static="false" final="false" visibility="public"
  14524. deprecated="not deprecated">
  14525. <doc>
  14526. <![CDATA[@return Path that generated the exception]]>
  14527. </doc>
  14528. </method>
  14529. <method name="getTargetPath" return="org.apache.hadoop.fs.Path"
  14530. abstract="false" native="false" synchronized="false"
  14531. static="false" final="false" visibility="public"
  14532. deprecated="not deprecated">
  14533. <doc>
  14534. <![CDATA[@return Path if the operation involved copying or moving, else null]]>
  14535. </doc>
  14536. </method>
  14537. <method name="setOperation"
  14538. abstract="false" native="false" synchronized="false"
  14539. static="false" final="false" visibility="public"
  14540. deprecated="not deprecated">
  14541. <param name="operation" type="java.lang.String"/>
  14542. <doc>
  14543. <![CDATA[Optional operation that will preface the path
  14544. @param operation a string]]>
  14545. </doc>
  14546. </method>
  14547. <method name="setTargetPath"
  14548. abstract="false" native="false" synchronized="false"
  14549. static="false" final="false" visibility="public"
  14550. deprecated="not deprecated">
  14551. <param name="targetPath" type="java.lang.String"/>
  14552. <doc>
  14553. <![CDATA[Optional path if the exception involved two paths, ex. a copy operation
  14554. @param targetPath the of the operation]]>
  14555. </doc>
  14556. </method>
  14557. <doc>
  14558. <![CDATA[Exceptions based on standard posix/linux style exceptions for path related
  14559. errors. Returns an exception with the format "path: standard error string".
  14560. This exception corresponds to Error Input/ouput(EIO)]]>
  14561. </doc>
  14562. </class>
  14563. <!-- end class org.apache.hadoop.fs.PathIOException -->
  14564. <!-- start class org.apache.hadoop.fs.PathIsDirectoryException -->
  14565. <class name="PathIsDirectoryException" extends="org.apache.hadoop.fs.PathExistsException"
  14566. abstract="false"
  14567. static="false" final="false" visibility="public"
  14568. deprecated="not deprecated">
  14569. <constructor name="PathIsDirectoryException" type="java.lang.String"
  14570. static="false" final="false" visibility="public"
  14571. deprecated="not deprecated">
  14572. <doc>
  14573. <![CDATA[@param path for the exception]]>
  14574. </doc>
  14575. </constructor>
  14576. <doc>
  14577. <![CDATA[EISDIR]]>
  14578. </doc>
  14579. </class>
  14580. <!-- end class org.apache.hadoop.fs.PathIsDirectoryException -->
  14581. <!-- start class org.apache.hadoop.fs.PathIsNotDirectoryException -->
  14582. <class name="PathIsNotDirectoryException" extends="org.apache.hadoop.fs.PathExistsException"
  14583. abstract="false"
  14584. static="false" final="false" visibility="public"
  14585. deprecated="not deprecated">
  14586. <constructor name="PathIsNotDirectoryException" type="java.lang.String"
  14587. static="false" final="false" visibility="public"
  14588. deprecated="not deprecated">
  14589. <doc>
  14590. <![CDATA[@param path for the exception]]>
  14591. </doc>
  14592. </constructor>
  14593. <doc>
  14594. <![CDATA[ENOTDIR]]>
  14595. </doc>
  14596. </class>
  14597. <!-- end class org.apache.hadoop.fs.PathIsNotDirectoryException -->
  14598. <!-- start class org.apache.hadoop.fs.PathIsNotEmptyDirectoryException -->
  14599. <class name="PathIsNotEmptyDirectoryException" extends="org.apache.hadoop.fs.PathExistsException"
  14600. abstract="false"
  14601. static="false" final="false" visibility="public"
  14602. deprecated="not deprecated">
  14603. <constructor name="PathIsNotEmptyDirectoryException" type="java.lang.String"
  14604. static="false" final="false" visibility="public"
  14605. deprecated="not deprecated">
  14606. <doc>
  14607. <![CDATA[@param path for the exception]]>
  14608. </doc>
  14609. </constructor>
  14610. <doc>
  14611. <![CDATA[Generated by rm commands]]>
  14612. </doc>
  14613. </class>
  14614. <!-- end class org.apache.hadoop.fs.PathIsNotEmptyDirectoryException -->
  14615. <!-- start class org.apache.hadoop.fs.PathNotFoundException -->
  14616. <class name="PathNotFoundException" extends="org.apache.hadoop.fs.PathIOException"
  14617. abstract="false"
  14618. static="false" final="false" visibility="public"
  14619. deprecated="not deprecated">
  14620. <constructor name="PathNotFoundException" type="java.lang.String"
  14621. static="false" final="false" visibility="public"
  14622. deprecated="not deprecated">
  14623. <doc>
  14624. <![CDATA[@param path for the exception]]>
  14625. </doc>
  14626. </constructor>
  14627. <doc>
  14628. <![CDATA[Exception corresponding to Permission denied - ENOENT]]>
  14629. </doc>
  14630. </class>
  14631. <!-- end class org.apache.hadoop.fs.PathNotFoundException -->
  14632. <!-- start class org.apache.hadoop.fs.PathOperationException -->
  14633. <class name="PathOperationException" extends="org.apache.hadoop.fs.PathExistsException"
  14634. abstract="false"
  14635. static="false" final="false" visibility="public"
  14636. deprecated="not deprecated">
  14637. <constructor name="PathOperationException" type="java.lang.String"
  14638. static="false" final="false" visibility="public"
  14639. deprecated="not deprecated">
  14640. <doc>
  14641. <![CDATA[@param path for the exception]]>
  14642. </doc>
  14643. </constructor>
  14644. <doc>
  14645. <![CDATA[ENOTSUP]]>
  14646. </doc>
  14647. </class>
  14648. <!-- end class org.apache.hadoop.fs.PathOperationException -->
  14649. <!-- start class org.apache.hadoop.fs.PathPermissionException -->
  14650. <class name="PathPermissionException" extends="org.apache.hadoop.fs.PathIOException"
  14651. abstract="false"
  14652. static="false" final="false" visibility="public"
  14653. deprecated="not deprecated">
  14654. <constructor name="PathPermissionException" type="java.lang.String"
  14655. static="false" final="false" visibility="public"
  14656. deprecated="not deprecated">
  14657. <doc>
  14658. <![CDATA[@param path for the exception]]>
  14659. </doc>
  14660. </constructor>
  14661. <doc>
  14662. <![CDATA[Exception corresponding to Operation Not Permitted - EPERM]]>
  14663. </doc>
  14664. </class>
  14665. <!-- end class org.apache.hadoop.fs.PathPermissionException -->
  14666. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  14667. <interface name="PositionedReadable" abstract="true"
  14668. static="false" final="false" visibility="public"
  14669. deprecated="not deprecated">
  14670. <method name="read" return="int"
  14671. abstract="false" native="false" synchronized="false"
  14672. static="false" final="false" visibility="public"
  14673. deprecated="not deprecated">
  14674. <param name="position" type="long"/>
  14675. <param name="buffer" type="byte[]"/>
  14676. <param name="offset" type="int"/>
  14677. <param name="length" type="int"/>
  14678. <exception name="IOException" type="java.io.IOException"/>
  14679. <doc>
  14680. <![CDATA[Read upto the specified number of bytes, from a given
  14681. position within a file, and return the number of bytes read. This does not
  14682. change the current offset of a file, and is thread-safe.]]>
  14683. </doc>
  14684. </method>
  14685. <method name="readFully"
  14686. abstract="false" native="false" synchronized="false"
  14687. static="false" final="false" visibility="public"
  14688. deprecated="not deprecated">
  14689. <param name="position" type="long"/>
  14690. <param name="buffer" type="byte[]"/>
  14691. <param name="offset" type="int"/>
  14692. <param name="length" type="int"/>
  14693. <exception name="IOException" type="java.io.IOException"/>
  14694. <doc>
  14695. <![CDATA[Read the specified number of bytes, from a given
  14696. position within a file. This does not
  14697. change the current offset of a file, and is thread-safe.]]>
  14698. </doc>
  14699. </method>
  14700. <method name="readFully"
  14701. abstract="false" native="false" synchronized="false"
  14702. static="false" final="false" visibility="public"
  14703. deprecated="not deprecated">
  14704. <param name="position" type="long"/>
  14705. <param name="buffer" type="byte[]"/>
  14706. <exception name="IOException" type="java.io.IOException"/>
  14707. <doc>
  14708. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  14709. position within a file. This does not
  14710. change the current offset of a file, and is thread-safe.]]>
  14711. </doc>
  14712. </method>
  14713. <doc>
  14714. <![CDATA[Stream that permits positional reading.]]>
  14715. </doc>
  14716. </interface>
  14717. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  14718. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  14719. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14720. abstract="false"
  14721. static="false" final="false" visibility="public"
  14722. deprecated="not deprecated">
  14723. <constructor name="RawLocalFileSystem"
  14724. static="false" final="false" visibility="public"
  14725. deprecated="not deprecated">
  14726. </constructor>
  14727. <method name="useStatIfAvailable"
  14728. abstract="false" native="false" synchronized="false"
  14729. static="true" final="false" visibility="public"
  14730. deprecated="not deprecated">
  14731. </method>
  14732. <method name="pathToFile" return="java.io.File"
  14733. abstract="false" native="false" synchronized="false"
  14734. static="false" final="false" visibility="public"
  14735. deprecated="not deprecated">
  14736. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14737. <doc>
  14738. <![CDATA[Convert a path to a File.]]>
  14739. </doc>
  14740. </method>
  14741. <method name="getUri" return="java.net.URI"
  14742. abstract="false" native="false" synchronized="false"
  14743. static="false" final="false" visibility="public"
  14744. deprecated="not deprecated">
  14745. </method>
  14746. <method name="initialize"
  14747. abstract="false" native="false" synchronized="false"
  14748. static="false" final="false" visibility="public"
  14749. deprecated="not deprecated">
  14750. <param name="uri" type="java.net.URI"/>
  14751. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14752. <exception name="IOException" type="java.io.IOException"/>
  14753. </method>
  14754. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14755. abstract="false" native="false" synchronized="false"
  14756. static="false" final="false" visibility="public"
  14757. deprecated="not deprecated">
  14758. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14759. <param name="bufferSize" type="int"/>
  14760. <exception name="IOException" type="java.io.IOException"/>
  14761. </method>
  14762. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14763. abstract="false" native="false" synchronized="false"
  14764. static="false" final="false" visibility="public"
  14765. deprecated="not deprecated">
  14766. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14767. <param name="bufferSize" type="int"/>
  14768. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14769. <exception name="IOException" type="java.io.IOException"/>
  14770. </method>
  14771. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14772. abstract="false" native="false" synchronized="false"
  14773. static="false" final="false" visibility="public"
  14774. deprecated="not deprecated">
  14775. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14776. <param name="overwrite" type="boolean"/>
  14777. <param name="bufferSize" type="int"/>
  14778. <param name="replication" type="short"/>
  14779. <param name="blockSize" type="long"/>
  14780. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14781. <exception name="IOException" type="java.io.IOException"/>
  14782. </method>
  14783. <method name="createOutputStream" return="java.io.OutputStream"
  14784. abstract="false" native="false" synchronized="false"
  14785. static="false" final="false" visibility="protected"
  14786. deprecated="not deprecated">
  14787. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14788. <param name="append" type="boolean"/>
  14789. <exception name="IOException" type="java.io.IOException"/>
  14790. </method>
  14791. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14792. abstract="false" native="false" synchronized="false"
  14793. static="false" final="false" visibility="public"
  14794. deprecated="not deprecated">
  14795. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14796. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14797. <param name="flags" type="java.util.EnumSet"/>
  14798. <param name="bufferSize" type="int"/>
  14799. <param name="replication" type="short"/>
  14800. <param name="blockSize" type="long"/>
  14801. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14802. <exception name="IOException" type="java.io.IOException"/>
  14803. </method>
  14804. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14805. abstract="false" native="false" synchronized="false"
  14806. static="false" final="false" visibility="public"
  14807. deprecated="not deprecated">
  14808. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14809. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14810. <param name="overwrite" type="boolean"/>
  14811. <param name="bufferSize" type="int"/>
  14812. <param name="replication" type="short"/>
  14813. <param name="blockSize" type="long"/>
  14814. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14815. <exception name="IOException" type="java.io.IOException"/>
  14816. </method>
  14817. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14818. abstract="false" native="false" synchronized="false"
  14819. static="false" final="false" visibility="public"
  14820. deprecated="not deprecated">
  14821. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14822. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14823. <param name="overwrite" type="boolean"/>
  14824. <param name="bufferSize" type="int"/>
  14825. <param name="replication" type="short"/>
  14826. <param name="blockSize" type="long"/>
  14827. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14828. <exception name="IOException" type="java.io.IOException"/>
  14829. </method>
  14830. <method name="rename" return="boolean"
  14831. abstract="false" native="false" synchronized="false"
  14832. static="false" final="false" visibility="public"
  14833. deprecated="not deprecated">
  14834. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14835. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14836. <exception name="IOException" type="java.io.IOException"/>
  14837. </method>
  14838. <method name="delete" return="boolean"
  14839. abstract="false" native="false" synchronized="false"
  14840. static="false" final="false" visibility="public"
  14841. deprecated="not deprecated">
  14842. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14843. <param name="recursive" type="boolean"/>
  14844. <exception name="IOException" type="java.io.IOException"/>
  14845. <doc>
  14846. <![CDATA[Delete the given path to a file or directory.
  14847. @param p the path to delete
  14848. @param recursive to delete sub-directories
  14849. @return true if the file or directory and all its contents were deleted
  14850. @throws IOException if p is non-empty and recursive is false]]>
  14851. </doc>
  14852. </method>
  14853. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  14854. abstract="false" native="false" synchronized="false"
  14855. static="false" final="false" visibility="public"
  14856. deprecated="not deprecated">
  14857. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14858. <exception name="IOException" type="java.io.IOException"/>
  14859. </method>
  14860. <method name="mkOneDir" return="boolean"
  14861. abstract="false" native="false" synchronized="false"
  14862. static="false" final="false" visibility="protected"
  14863. deprecated="not deprecated">
  14864. <param name="p2f" type="java.io.File"/>
  14865. <exception name="IOException" type="java.io.IOException"/>
  14866. </method>
  14867. <method name="mkdirs" return="boolean"
  14868. abstract="false" native="false" synchronized="false"
  14869. static="false" final="false" visibility="public"
  14870. deprecated="not deprecated">
  14871. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14872. <exception name="IOException" type="java.io.IOException"/>
  14873. <doc>
  14874. <![CDATA[Creates the specified directory hierarchy. Does not
  14875. treat existence as an error.]]>
  14876. </doc>
  14877. </method>
  14878. <method name="mkdirs" return="boolean"
  14879. abstract="false" native="false" synchronized="false"
  14880. static="false" final="false" visibility="public"
  14881. deprecated="not deprecated">
  14882. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14883. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14884. <exception name="IOException" type="java.io.IOException"/>
  14885. </method>
  14886. <method name="primitiveMkdir" return="boolean"
  14887. abstract="false" native="false" synchronized="false"
  14888. static="false" final="false" visibility="protected"
  14889. deprecated="not deprecated">
  14890. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14891. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14892. <exception name="IOException" type="java.io.IOException"/>
  14893. </method>
  14894. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  14895. abstract="false" native="false" synchronized="false"
  14896. static="false" final="false" visibility="public"
  14897. deprecated="not deprecated">
  14898. </method>
  14899. <method name="setWorkingDirectory"
  14900. abstract="false" native="false" synchronized="false"
  14901. static="false" final="false" visibility="public"
  14902. deprecated="not deprecated">
  14903. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  14904. <doc>
  14905. <![CDATA[Set the working directory to the given directory.]]>
  14906. </doc>
  14907. </method>
  14908. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14909. abstract="false" native="false" synchronized="false"
  14910. static="false" final="false" visibility="public"
  14911. deprecated="not deprecated">
  14912. </method>
  14913. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14914. abstract="false" native="false" synchronized="false"
  14915. static="false" final="false" visibility="protected"
  14916. deprecated="not deprecated">
  14917. </method>
  14918. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  14919. abstract="false" native="false" synchronized="false"
  14920. static="false" final="false" visibility="public"
  14921. deprecated="not deprecated">
  14922. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14923. <exception name="IOException" type="java.io.IOException"/>
  14924. </method>
  14925. <method name="moveFromLocalFile"
  14926. abstract="false" native="false" synchronized="false"
  14927. static="false" final="false" visibility="public"
  14928. deprecated="not deprecated">
  14929. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14930. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14931. <exception name="IOException" type="java.io.IOException"/>
  14932. </method>
  14933. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  14934. abstract="false" native="false" synchronized="false"
  14935. static="false" final="false" visibility="public"
  14936. deprecated="not deprecated">
  14937. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  14938. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  14939. <exception name="IOException" type="java.io.IOException"/>
  14940. </method>
  14941. <method name="completeLocalOutput"
  14942. abstract="false" native="false" synchronized="false"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  14946. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  14947. <exception name="IOException" type="java.io.IOException"/>
  14948. </method>
  14949. <method name="close"
  14950. abstract="false" native="false" synchronized="false"
  14951. static="false" final="false" visibility="public"
  14952. deprecated="not deprecated">
  14953. <exception name="IOException" type="java.io.IOException"/>
  14954. </method>
  14955. <method name="toString" return="java.lang.String"
  14956. abstract="false" native="false" synchronized="false"
  14957. static="false" final="false" visibility="public"
  14958. deprecated="not deprecated">
  14959. </method>
  14960. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  14961. abstract="false" native="false" synchronized="false"
  14962. static="false" final="false" visibility="public"
  14963. deprecated="not deprecated">
  14964. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14965. <exception name="IOException" type="java.io.IOException"/>
  14966. </method>
  14967. <method name="setOwner"
  14968. abstract="false" native="false" synchronized="false"
  14969. static="false" final="false" visibility="public"
  14970. deprecated="not deprecated">
  14971. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14972. <param name="username" type="java.lang.String"/>
  14973. <param name="groupname" type="java.lang.String"/>
  14974. <exception name="IOException" type="java.io.IOException"/>
  14975. <doc>
  14976. <![CDATA[Use the command chown to set owner.]]>
  14977. </doc>
  14978. </method>
  14979. <method name="setPermission"
  14980. abstract="false" native="false" synchronized="false"
  14981. static="false" final="false" visibility="public"
  14982. deprecated="not deprecated">
  14983. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14984. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14985. <exception name="IOException" type="java.io.IOException"/>
  14986. <doc>
  14987. <![CDATA[Use the command chmod to set permission.]]>
  14988. </doc>
  14989. </method>
  14990. <method name="setTimes"
  14991. abstract="false" native="false" synchronized="false"
  14992. static="false" final="false" visibility="public"
  14993. deprecated="not deprecated">
  14994. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14995. <param name="mtime" type="long"/>
  14996. <param name="atime" type="long"/>
  14997. <exception name="IOException" type="java.io.IOException"/>
  14998. <doc>
  14999. <![CDATA[Sets the {@link Path}'s last modified time <em>only</em> to the given
  15000. valid time.
  15001. @param mtime the modification time to set (only if greater than zero).
  15002. @param atime currently ignored.
  15003. @throws IOException if setting the last modified time fails.]]>
  15004. </doc>
  15005. </method>
  15006. <method name="supportsSymlinks" return="boolean"
  15007. abstract="false" native="false" synchronized="false"
  15008. static="false" final="false" visibility="public"
  15009. deprecated="not deprecated">
  15010. </method>
  15011. <method name="createSymlink"
  15012. abstract="false" native="false" synchronized="false"
  15013. static="false" final="false" visibility="public"
  15014. deprecated="not deprecated">
  15015. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15016. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15017. <param name="createParent" type="boolean"/>
  15018. <exception name="IOException" type="java.io.IOException"/>
  15019. </method>
  15020. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  15021. abstract="false" native="false" synchronized="false"
  15022. static="false" final="false" visibility="public"
  15023. deprecated="not deprecated">
  15024. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15025. <exception name="IOException" type="java.io.IOException"/>
  15026. <doc>
  15027. <![CDATA[Return a FileStatus representing the given path. If the path refers
  15028. to a symlink return a FileStatus representing the link rather than
  15029. the object the link refers to.]]>
  15030. </doc>
  15031. </method>
  15032. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15033. abstract="false" native="false" synchronized="false"
  15034. static="false" final="false" visibility="public"
  15035. deprecated="not deprecated">
  15036. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15037. <exception name="IOException" type="java.io.IOException"/>
  15038. </method>
  15039. <doc>
  15040. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  15041. </doc>
  15042. </class>
  15043. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  15044. <!-- start class org.apache.hadoop.fs.ReadOption -->
  15045. <class name="ReadOption" extends="java.lang.Enum"
  15046. abstract="false"
  15047. static="false" final="true" visibility="public"
  15048. deprecated="not deprecated">
  15049. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  15050. abstract="false" native="false" synchronized="false"
  15051. static="true" final="false" visibility="public"
  15052. deprecated="not deprecated">
  15053. </method>
  15054. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  15055. abstract="false" native="false" synchronized="false"
  15056. static="true" final="false" visibility="public"
  15057. deprecated="not deprecated">
  15058. <param name="name" type="java.lang.String"/>
  15059. </method>
  15060. <doc>
  15061. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  15062. </doc>
  15063. </class>
  15064. <!-- end class org.apache.hadoop.fs.ReadOption -->
  15065. <!-- start interface org.apache.hadoop.fs.RemoteIterator -->
  15066. <interface name="RemoteIterator" abstract="true"
  15067. static="false" final="false" visibility="public"
  15068. deprecated="not deprecated">
  15069. <method name="hasNext" return="boolean"
  15070. abstract="false" native="false" synchronized="false"
  15071. static="false" final="false" visibility="public"
  15072. deprecated="not deprecated">
  15073. <exception name="IOException" type="java.io.IOException"/>
  15074. <doc>
  15075. <![CDATA[Returns <tt>true</tt> if the iteration has more elements.
  15076. @return <tt>true</tt> if the iterator has more elements.
  15077. @throws IOException if any IO error occurs]]>
  15078. </doc>
  15079. </method>
  15080. <method name="next" return="E"
  15081. abstract="false" native="false" synchronized="false"
  15082. static="false" final="false" visibility="public"
  15083. deprecated="not deprecated">
  15084. <exception name="IOException" type="java.io.IOException"/>
  15085. <doc>
  15086. <![CDATA[Returns the next element in the iteration.
  15087. @return the next element in the iteration.
  15088. @throws NoSuchElementException iteration has no more elements.
  15089. @throws IOException if any IO error occurs]]>
  15090. </doc>
  15091. </method>
  15092. <doc>
  15093. <![CDATA[An iterator over a collection whose elements need to be fetched remotely]]>
  15094. </doc>
  15095. </interface>
  15096. <!-- end interface org.apache.hadoop.fs.RemoteIterator -->
  15097. <!-- start interface org.apache.hadoop.fs.Seekable -->
  15098. <interface name="Seekable" abstract="true"
  15099. static="false" final="false" visibility="public"
  15100. deprecated="not deprecated">
  15101. <method name="seek"
  15102. abstract="false" native="false" synchronized="false"
  15103. static="false" final="false" visibility="public"
  15104. deprecated="not deprecated">
  15105. <param name="pos" type="long"/>
  15106. <exception name="IOException" type="java.io.IOException"/>
  15107. <doc>
  15108. <![CDATA[Seek to the given offset from the start of the file.
  15109. The next read() will be from that location. Can't
  15110. seek past the end of the file.]]>
  15111. </doc>
  15112. </method>
  15113. <method name="getPos" return="long"
  15114. abstract="false" native="false" synchronized="false"
  15115. static="false" final="false" visibility="public"
  15116. deprecated="not deprecated">
  15117. <exception name="IOException" type="java.io.IOException"/>
  15118. <doc>
  15119. <![CDATA[Return the current offset from the start of the file]]>
  15120. </doc>
  15121. </method>
  15122. <method name="seekToNewSource" return="boolean"
  15123. abstract="false" native="false" synchronized="false"
  15124. static="false" final="false" visibility="public"
  15125. deprecated="not deprecated">
  15126. <param name="targetPos" type="long"/>
  15127. <exception name="IOException" type="java.io.IOException"/>
  15128. <doc>
  15129. <![CDATA[Seeks a different copy of the data. Returns true if
  15130. found a new source, false otherwise.]]>
  15131. </doc>
  15132. </method>
  15133. <doc>
  15134. <![CDATA[Stream that permits seeking.]]>
  15135. </doc>
  15136. </interface>
  15137. <!-- end interface org.apache.hadoop.fs.Seekable -->
  15138. <!-- start interface org.apache.hadoop.fs.Syncable -->
  15139. <interface name="Syncable" abstract="true"
  15140. static="false" final="false" visibility="public"
  15141. deprecated="not deprecated">
  15142. <method name="sync"
  15143. abstract="false" native="false" synchronized="false"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  15146. <exception name="IOException" type="java.io.IOException"/>
  15147. <doc>
  15148. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  15149. @see #hflush()]]>
  15150. </doc>
  15151. </method>
  15152. <method name="hflush"
  15153. abstract="false" native="false" synchronized="false"
  15154. static="false" final="false" visibility="public"
  15155. deprecated="not deprecated">
  15156. <exception name="IOException" type="java.io.IOException"/>
  15157. <doc>
  15158. <![CDATA[Flush out the data in client's user buffer. After the return of
  15159. this call, new readers will see the data.
  15160. @throws IOException if any error occurs]]>
  15161. </doc>
  15162. </method>
  15163. <method name="hsync"
  15164. abstract="false" native="false" synchronized="false"
  15165. static="false" final="false" visibility="public"
  15166. deprecated="not deprecated">
  15167. <exception name="IOException" type="java.io.IOException"/>
  15168. <doc>
  15169. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  15170. all the way to the disk device (but the disk may have it in its cache).
  15171. @throws IOException if error occurs]]>
  15172. </doc>
  15173. </method>
  15174. <doc>
  15175. <![CDATA[This interface for flush/sync operation.]]>
  15176. </doc>
  15177. </interface>
  15178. <!-- end interface org.apache.hadoop.fs.Syncable -->
  15179. <!-- start class org.apache.hadoop.fs.Trash -->
  15180. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  15181. abstract="false"
  15182. static="false" final="false" visibility="public"
  15183. deprecated="not deprecated">
  15184. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  15185. static="false" final="false" visibility="public"
  15186. deprecated="not deprecated">
  15187. <exception name="IOException" type="java.io.IOException"/>
  15188. <doc>
  15189. <![CDATA[Construct a trash can accessor.
  15190. @param conf a Configuration]]>
  15191. </doc>
  15192. </constructor>
  15193. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  15194. static="false" final="false" visibility="public"
  15195. deprecated="not deprecated">
  15196. <exception name="IOException" type="java.io.IOException"/>
  15197. <doc>
  15198. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  15199. @param fs the FileSystem
  15200. @param conf a Configuration]]>
  15201. </doc>
  15202. </constructor>
  15203. <method name="moveToAppropriateTrash" return="boolean"
  15204. abstract="false" native="false" synchronized="false"
  15205. static="true" final="false" visibility="public"
  15206. deprecated="not deprecated">
  15207. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15208. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15209. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15210. <exception name="IOException" type="java.io.IOException"/>
  15211. <doc>
  15212. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  15213. trashbin in the actual volume of the path p being deleted.
  15214. Hence we get the file system of the fully-qualified resolved-path and
  15215. then move the path p to the trashbin in that volume,
  15216. @param fs - the filesystem of path p
  15217. @param p - the path being deleted - to be moved to trasg
  15218. @param conf - configuration
  15219. @return false if the item is already in the trash or trash is disabled
  15220. @throws IOException on error]]>
  15221. </doc>
  15222. </method>
  15223. <method name="isEnabled" return="boolean"
  15224. abstract="false" native="false" synchronized="false"
  15225. static="false" final="false" visibility="public"
  15226. deprecated="not deprecated">
  15227. <doc>
  15228. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  15229. </doc>
  15230. </method>
  15231. <method name="moveToTrash" return="boolean"
  15232. abstract="false" native="false" synchronized="false"
  15233. static="false" final="false" visibility="public"
  15234. deprecated="not deprecated">
  15235. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15236. <exception name="IOException" type="java.io.IOException"/>
  15237. <doc>
  15238. <![CDATA[Move a file or directory to the current trash directory.
  15239. @return false if the item is already in the trash or trash is disabled]]>
  15240. </doc>
  15241. </method>
  15242. <method name="checkpoint"
  15243. abstract="false" native="false" synchronized="false"
  15244. static="false" final="false" visibility="public"
  15245. deprecated="not deprecated">
  15246. <exception name="IOException" type="java.io.IOException"/>
  15247. <doc>
  15248. <![CDATA[Create a trash checkpoint.]]>
  15249. </doc>
  15250. </method>
  15251. <method name="expunge"
  15252. abstract="false" native="false" synchronized="false"
  15253. static="false" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <exception name="IOException" type="java.io.IOException"/>
  15256. <doc>
  15257. <![CDATA[Delete old checkpoint(s).]]>
  15258. </doc>
  15259. </method>
  15260. <method name="getEmptier" return="java.lang.Runnable"
  15261. abstract="false" native="false" synchronized="false"
  15262. static="false" final="false" visibility="public"
  15263. deprecated="not deprecated">
  15264. <exception name="IOException" type="java.io.IOException"/>
  15265. <doc>
  15266. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15267. users, intended to be run by the superuser.]]>
  15268. </doc>
  15269. </method>
  15270. <doc>
  15271. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  15272. See the implementation of the configured TrashPolicy for more
  15273. details.]]>
  15274. </doc>
  15275. </class>
  15276. <!-- end class org.apache.hadoop.fs.Trash -->
  15277. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  15278. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  15279. abstract="true"
  15280. static="false" final="false" visibility="public"
  15281. deprecated="not deprecated">
  15282. <constructor name="TrashPolicy"
  15283. static="false" final="false" visibility="public"
  15284. deprecated="not deprecated">
  15285. </constructor>
  15286. <method name="initialize"
  15287. abstract="true" native="false" synchronized="false"
  15288. static="false" final="false" visibility="public"
  15289. deprecated="not deprecated">
  15290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15291. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15292. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15293. <doc>
  15294. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15295. implementations
  15296. @param conf the configuration to be used
  15297. @param fs the filesystem to be used
  15298. @param home the home directory]]>
  15299. </doc>
  15300. </method>
  15301. <method name="isEnabled" return="boolean"
  15302. abstract="true" native="false" synchronized="false"
  15303. static="false" final="false" visibility="public"
  15304. deprecated="not deprecated">
  15305. <doc>
  15306. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem]]>
  15307. </doc>
  15308. </method>
  15309. <method name="moveToTrash" return="boolean"
  15310. abstract="true" native="false" synchronized="false"
  15311. static="false" final="false" visibility="public"
  15312. deprecated="not deprecated">
  15313. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15314. <exception name="IOException" type="java.io.IOException"/>
  15315. <doc>
  15316. <![CDATA[Move a file or directory to the current trash directory.
  15317. @return false if the item is already in the trash or trash is disabled]]>
  15318. </doc>
  15319. </method>
  15320. <method name="createCheckpoint"
  15321. abstract="true" native="false" synchronized="false"
  15322. static="false" final="false" visibility="public"
  15323. deprecated="not deprecated">
  15324. <exception name="IOException" type="java.io.IOException"/>
  15325. <doc>
  15326. <![CDATA[Create a trash checkpoint.]]>
  15327. </doc>
  15328. </method>
  15329. <method name="deleteCheckpoint"
  15330. abstract="true" native="false" synchronized="false"
  15331. static="false" final="false" visibility="public"
  15332. deprecated="not deprecated">
  15333. <exception name="IOException" type="java.io.IOException"/>
  15334. <doc>
  15335. <![CDATA[Delete old trash checkpoint(s).]]>
  15336. </doc>
  15337. </method>
  15338. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15339. abstract="true" native="false" synchronized="false"
  15340. static="false" final="false" visibility="public"
  15341. deprecated="not deprecated">
  15342. <doc>
  15343. <![CDATA[Get the current working directory of the Trash Policy]]>
  15344. </doc>
  15345. </method>
  15346. <method name="getEmptier" return="java.lang.Runnable"
  15347. abstract="true" native="false" synchronized="false"
  15348. static="false" final="false" visibility="public"
  15349. deprecated="not deprecated">
  15350. <exception name="IOException" type="java.io.IOException"/>
  15351. <doc>
  15352. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15353. users, intended to be run by the superuser.]]>
  15354. </doc>
  15355. </method>
  15356. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15357. abstract="false" native="false" synchronized="false"
  15358. static="true" final="false" visibility="public"
  15359. deprecated="not deprecated">
  15360. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15361. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15362. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15363. <doc>
  15364. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15365. of the configuration parameter fs.trash.classname.
  15366. @param conf the configuration to be used
  15367. @param fs the file system to be used
  15368. @param home the home directory
  15369. @return an instance of TrashPolicy]]>
  15370. </doc>
  15371. </method>
  15372. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  15373. transient="false" volatile="false"
  15374. static="false" final="false" visibility="protected"
  15375. deprecated="not deprecated">
  15376. </field>
  15377. <field name="trash" type="org.apache.hadoop.fs.Path"
  15378. transient="false" volatile="false"
  15379. static="false" final="false" visibility="protected"
  15380. deprecated="not deprecated">
  15381. </field>
  15382. <field name="deletionInterval" type="long"
  15383. transient="false" volatile="false"
  15384. static="false" final="false" visibility="protected"
  15385. deprecated="not deprecated">
  15386. </field>
  15387. <doc>
  15388. <![CDATA[This interface is used for implementing different Trash policies.
  15389. Provides factory method to create instances of the configured Trash policy.]]>
  15390. </doc>
  15391. </class>
  15392. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  15393. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15394. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  15395. abstract="false"
  15396. static="false" final="false" visibility="public"
  15397. deprecated="not deprecated">
  15398. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  15399. static="false" final="false" visibility="public"
  15400. deprecated="not deprecated">
  15401. <doc>
  15402. <![CDATA[Constructs exception with the specified detail message.
  15403. @param message exception message.]]>
  15404. </doc>
  15405. </constructor>
  15406. <doc>
  15407. <![CDATA[File system for a given file system name/scheme is not supported]]>
  15408. </doc>
  15409. </class>
  15410. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15411. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  15412. <class name="XAttrCodec" extends="java.lang.Enum"
  15413. abstract="false"
  15414. static="false" final="true" visibility="public"
  15415. deprecated="not deprecated">
  15416. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  15417. abstract="false" native="false" synchronized="false"
  15418. static="true" final="false" visibility="public"
  15419. deprecated="not deprecated">
  15420. </method>
  15421. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  15422. abstract="false" native="false" synchronized="false"
  15423. static="true" final="false" visibility="public"
  15424. deprecated="not deprecated">
  15425. <param name="name" type="java.lang.String"/>
  15426. </method>
  15427. <method name="decodeValue" return="byte[]"
  15428. abstract="false" native="false" synchronized="false"
  15429. static="true" final="false" visibility="public"
  15430. deprecated="not deprecated">
  15431. <param name="value" type="java.lang.String"/>
  15432. <exception name="IOException" type="java.io.IOException"/>
  15433. <doc>
  15434. <![CDATA[Decode string representation of a value and check whether it's
  15435. encoded. If the given string begins with 0x or 0X, it expresses
  15436. a hexadecimal number. If the given string begins with 0s or 0S,
  15437. base64 encoding is expected. If the given string is enclosed in
  15438. double quotes, the inner string is treated as text. Otherwise
  15439. the given string is treated as text.
  15440. @param value string representation of the value.
  15441. @return byte[] the value
  15442. @throws IOException]]>
  15443. </doc>
  15444. </method>
  15445. <method name="encodeValue" return="java.lang.String"
  15446. abstract="false" native="false" synchronized="false"
  15447. static="true" final="false" visibility="public"
  15448. deprecated="not deprecated">
  15449. <param name="value" type="byte[]"/>
  15450. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  15451. <exception name="IOException" type="java.io.IOException"/>
  15452. <doc>
  15453. <![CDATA[Encode byte[] value to string representation with encoding.
  15454. Values encoded as text strings are enclosed in double quotes (\"),
  15455. while strings encoded as hexadecimal and base64 are prefixed with
  15456. 0x and 0s, respectively.
  15457. @param value byte[] value
  15458. @param encoding
  15459. @return String string representation of value
  15460. @throws IOException]]>
  15461. </doc>
  15462. </method>
  15463. <doc>
  15464. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  15465. covert byte[] to some kind of string representation or convert back.
  15466. String representation is convenient for display and input. For example
  15467. display in screen as shell response and json response, input as http
  15468. or shell parameter.]]>
  15469. </doc>
  15470. </class>
  15471. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  15472. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  15473. <class name="XAttrSetFlag" extends="java.lang.Enum"
  15474. abstract="false"
  15475. static="false" final="true" visibility="public"
  15476. deprecated="not deprecated">
  15477. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  15478. abstract="false" native="false" synchronized="false"
  15479. static="true" final="false" visibility="public"
  15480. deprecated="not deprecated">
  15481. </method>
  15482. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  15483. abstract="false" native="false" synchronized="false"
  15484. static="true" final="false" visibility="public"
  15485. deprecated="not deprecated">
  15486. <param name="name" type="java.lang.String"/>
  15487. </method>
  15488. <method name="validate"
  15489. abstract="false" native="false" synchronized="false"
  15490. static="true" final="false" visibility="public"
  15491. deprecated="not deprecated">
  15492. <param name="xAttrName" type="java.lang.String"/>
  15493. <param name="xAttrExists" type="boolean"/>
  15494. <param name="flag" type="java.util.EnumSet"/>
  15495. <exception name="IOException" type="java.io.IOException"/>
  15496. </method>
  15497. </class>
  15498. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  15499. <!-- start class org.apache.hadoop.fs.ZeroCopyUnavailableException -->
  15500. <class name="ZeroCopyUnavailableException" extends="java.io.IOException"
  15501. abstract="false"
  15502. static="false" final="false" visibility="public"
  15503. deprecated="not deprecated">
  15504. <constructor name="ZeroCopyUnavailableException" type="java.lang.String"
  15505. static="false" final="false" visibility="public"
  15506. deprecated="not deprecated">
  15507. </constructor>
  15508. <constructor name="ZeroCopyUnavailableException" type="java.lang.String, java.lang.Exception"
  15509. static="false" final="false" visibility="public"
  15510. deprecated="not deprecated">
  15511. </constructor>
  15512. <constructor name="ZeroCopyUnavailableException" type="java.lang.Exception"
  15513. static="false" final="false" visibility="public"
  15514. deprecated="not deprecated">
  15515. </constructor>
  15516. </class>
  15517. <!-- end class org.apache.hadoop.fs.ZeroCopyUnavailableException -->
  15518. <doc>
  15519. <![CDATA[An abstract file system API.]]>
  15520. </doc>
  15521. </package>
  15522. <package name="org.apache.hadoop.fs.crypto">
  15523. <!-- start class org.apache.hadoop.fs.crypto.CryptoFSDataInputStream -->
  15524. <class name="CryptoFSDataInputStream" extends="org.apache.hadoop.fs.FSDataInputStream"
  15525. abstract="false"
  15526. static="false" final="false" visibility="public"
  15527. deprecated="not deprecated">
  15528. <constructor name="CryptoFSDataInputStream" type="org.apache.hadoop.fs.FSDataInputStream, org.apache.hadoop.crypto.CryptoCodec, int, byte[], byte[]"
  15529. static="false" final="false" visibility="public"
  15530. deprecated="not deprecated">
  15531. <exception name="IOException" type="java.io.IOException"/>
  15532. </constructor>
  15533. <constructor name="CryptoFSDataInputStream" type="org.apache.hadoop.fs.FSDataInputStream, org.apache.hadoop.crypto.CryptoCodec, byte[], byte[]"
  15534. static="false" final="false" visibility="public"
  15535. deprecated="not deprecated">
  15536. <exception name="IOException" type="java.io.IOException"/>
  15537. </constructor>
  15538. </class>
  15539. <!-- end class org.apache.hadoop.fs.crypto.CryptoFSDataInputStream -->
  15540. <!-- start class org.apache.hadoop.fs.crypto.CryptoFSDataOutputStream -->
  15541. <class name="CryptoFSDataOutputStream" extends="org.apache.hadoop.fs.FSDataOutputStream"
  15542. abstract="false"
  15543. static="false" final="false" visibility="public"
  15544. deprecated="not deprecated">
  15545. <constructor name="CryptoFSDataOutputStream" type="org.apache.hadoop.fs.FSDataOutputStream, org.apache.hadoop.crypto.CryptoCodec, int, byte[], byte[]"
  15546. static="false" final="false" visibility="public"
  15547. deprecated="not deprecated">
  15548. <exception name="IOException" type="java.io.IOException"/>
  15549. </constructor>
  15550. <constructor name="CryptoFSDataOutputStream" type="org.apache.hadoop.fs.FSDataOutputStream, org.apache.hadoop.crypto.CryptoCodec, byte[], byte[]"
  15551. static="false" final="false" visibility="public"
  15552. deprecated="not deprecated">
  15553. <exception name="IOException" type="java.io.IOException"/>
  15554. </constructor>
  15555. <method name="getPos" return="long"
  15556. abstract="false" native="false" synchronized="false"
  15557. static="false" final="false" visibility="public"
  15558. deprecated="not deprecated">
  15559. <exception name="IOException" type="java.io.IOException"/>
  15560. </method>
  15561. </class>
  15562. <!-- end class org.apache.hadoop.fs.crypto.CryptoFSDataOutputStream -->
  15563. </package>
  15564. <package name="org.apache.hadoop.fs.ftp">
  15565. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  15566. <class name="FTPException" extends="java.lang.RuntimeException"
  15567. abstract="false"
  15568. static="false" final="false" visibility="public"
  15569. deprecated="not deprecated">
  15570. <constructor name="FTPException" type="java.lang.String"
  15571. static="false" final="false" visibility="public"
  15572. deprecated="not deprecated">
  15573. </constructor>
  15574. <constructor name="FTPException" type="java.lang.Throwable"
  15575. static="false" final="false" visibility="public"
  15576. deprecated="not deprecated">
  15577. </constructor>
  15578. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  15579. static="false" final="false" visibility="public"
  15580. deprecated="not deprecated">
  15581. </constructor>
  15582. <doc>
  15583. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  15584. </doc>
  15585. </class>
  15586. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  15587. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  15588. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  15589. abstract="false"
  15590. static="false" final="false" visibility="public"
  15591. deprecated="not deprecated">
  15592. <constructor name="FTPFileSystem"
  15593. static="false" final="false" visibility="public"
  15594. deprecated="not deprecated">
  15595. </constructor>
  15596. <method name="getScheme" return="java.lang.String"
  15597. abstract="false" native="false" synchronized="false"
  15598. static="false" final="false" visibility="public"
  15599. deprecated="not deprecated">
  15600. <doc>
  15601. <![CDATA[Return the protocol scheme for the FileSystem.
  15602. <p/>
  15603. @return <code>ftp</code>]]>
  15604. </doc>
  15605. </method>
  15606. <method name="initialize"
  15607. abstract="false" native="false" synchronized="false"
  15608. static="false" final="false" visibility="public"
  15609. deprecated="not deprecated">
  15610. <param name="uri" type="java.net.URI"/>
  15611. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15612. <exception name="IOException" type="java.io.IOException"/>
  15613. </method>
  15614. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15615. abstract="false" native="false" synchronized="false"
  15616. static="false" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15619. <param name="bufferSize" type="int"/>
  15620. <exception name="IOException" type="java.io.IOException"/>
  15621. </method>
  15622. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15623. abstract="false" native="false" synchronized="false"
  15624. static="false" final="false" visibility="public"
  15625. deprecated="not deprecated">
  15626. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15627. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15628. <param name="overwrite" type="boolean"/>
  15629. <param name="bufferSize" type="int"/>
  15630. <param name="replication" type="short"/>
  15631. <param name="blockSize" type="long"/>
  15632. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15633. <exception name="IOException" type="java.io.IOException"/>
  15634. <doc>
  15635. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  15636. this class or else the invocation will block.]]>
  15637. </doc>
  15638. </method>
  15639. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  15640. abstract="false" native="false" synchronized="false"
  15641. static="false" final="false" visibility="public"
  15642. deprecated="not deprecated">
  15643. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15644. <param name="bufferSize" type="int"/>
  15645. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15646. <exception name="IOException" type="java.io.IOException"/>
  15647. <doc>
  15648. <![CDATA[This optional operation is not yet supported.]]>
  15649. </doc>
  15650. </method>
  15651. <method name="delete" return="boolean"
  15652. abstract="false" native="false" synchronized="false"
  15653. static="false" final="false" visibility="public"
  15654. deprecated="not deprecated">
  15655. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15656. <param name="recursive" type="boolean"/>
  15657. <exception name="IOException" type="java.io.IOException"/>
  15658. </method>
  15659. <method name="getUri" return="java.net.URI"
  15660. abstract="false" native="false" synchronized="false"
  15661. static="false" final="false" visibility="public"
  15662. deprecated="not deprecated">
  15663. </method>
  15664. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15665. abstract="false" native="false" synchronized="false"
  15666. static="false" final="false" visibility="public"
  15667. deprecated="not deprecated">
  15668. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15669. <exception name="IOException" type="java.io.IOException"/>
  15670. </method>
  15671. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15672. abstract="false" native="false" synchronized="false"
  15673. static="false" final="false" visibility="public"
  15674. deprecated="not deprecated">
  15675. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15676. <exception name="IOException" type="java.io.IOException"/>
  15677. </method>
  15678. <method name="mkdirs" return="boolean"
  15679. abstract="false" native="false" synchronized="false"
  15680. static="false" final="false" visibility="public"
  15681. deprecated="not deprecated">
  15682. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15683. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15684. <exception name="IOException" type="java.io.IOException"/>
  15685. </method>
  15686. <method name="rename" return="boolean"
  15687. abstract="false" native="false" synchronized="false"
  15688. static="false" final="false" visibility="public"
  15689. deprecated="not deprecated">
  15690. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15691. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15692. <exception name="IOException" type="java.io.IOException"/>
  15693. </method>
  15694. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15695. abstract="false" native="false" synchronized="false"
  15696. static="false" final="false" visibility="public"
  15697. deprecated="not deprecated">
  15698. </method>
  15699. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15700. abstract="false" native="false" synchronized="false"
  15701. static="false" final="false" visibility="public"
  15702. deprecated="not deprecated">
  15703. </method>
  15704. <method name="setWorkingDirectory"
  15705. abstract="false" native="false" synchronized="false"
  15706. static="false" final="false" visibility="public"
  15707. deprecated="not deprecated">
  15708. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15709. </method>
  15710. <field name="LOG" type="org.apache.commons.logging.Log"
  15711. transient="false" volatile="false"
  15712. static="true" final="true" visibility="public"
  15713. deprecated="not deprecated">
  15714. </field>
  15715. <field name="DEFAULT_BUFFER_SIZE" type="int"
  15716. transient="false" volatile="false"
  15717. static="true" final="true" visibility="public"
  15718. deprecated="not deprecated">
  15719. </field>
  15720. <field name="DEFAULT_BLOCK_SIZE" type="int"
  15721. transient="false" volatile="false"
  15722. static="true" final="true" visibility="public"
  15723. deprecated="not deprecated">
  15724. </field>
  15725. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  15726. transient="false" volatile="false"
  15727. static="true" final="true" visibility="public"
  15728. deprecated="not deprecated">
  15729. </field>
  15730. <field name="FS_FTP_HOST" type="java.lang.String"
  15731. transient="false" volatile="false"
  15732. static="true" final="true" visibility="public"
  15733. deprecated="not deprecated">
  15734. </field>
  15735. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  15736. transient="false" volatile="false"
  15737. static="true" final="true" visibility="public"
  15738. deprecated="not deprecated">
  15739. </field>
  15740. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  15741. transient="false" volatile="false"
  15742. static="true" final="true" visibility="public"
  15743. deprecated="not deprecated">
  15744. </field>
  15745. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  15746. transient="false" volatile="false"
  15747. static="true" final="true" visibility="public"
  15748. deprecated="not deprecated">
  15749. </field>
  15750. <doc>
  15751. <![CDATA[<p>
  15752. A {@link FileSystem} backed by an FTP client provided by <a
  15753. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  15754. </p>]]>
  15755. </doc>
  15756. </class>
  15757. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  15758. </package>
  15759. <package name="org.apache.hadoop.fs.permission">
  15760. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  15761. <class name="AccessControlException" extends="java.io.IOException"
  15762. abstract="false"
  15763. static="false" final="false" visibility="public"
  15764. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  15765. instead.">
  15766. <constructor name="AccessControlException"
  15767. static="false" final="false" visibility="public"
  15768. deprecated="not deprecated">
  15769. <doc>
  15770. <![CDATA[Default constructor is needed for unwrapping from
  15771. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  15772. </doc>
  15773. </constructor>
  15774. <constructor name="AccessControlException" type="java.lang.String"
  15775. static="false" final="false" visibility="public"
  15776. deprecated="not deprecated">
  15777. <doc>
  15778. <![CDATA[Constructs an {@link AccessControlException}
  15779. with the specified detail message.
  15780. @param s the detail message.]]>
  15781. </doc>
  15782. </constructor>
  15783. <constructor name="AccessControlException" type="java.lang.Throwable"
  15784. static="false" final="false" visibility="public"
  15785. deprecated="not deprecated">
  15786. <doc>
  15787. <![CDATA[Constructs a new exception with the specified cause and a detail
  15788. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  15789. typically contains the class and detail message of <tt>cause</tt>).
  15790. @param cause the cause (which is saved for later retrieval by the
  15791. {@link #getCause()} method). (A <tt>null</tt> value is
  15792. permitted, and indicates that the cause is nonexistent or
  15793. unknown.)]]>
  15794. </doc>
  15795. </constructor>
  15796. <doc>
  15797. <![CDATA[An exception class for access control related issues.
  15798. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  15799. instead.]]>
  15800. </doc>
  15801. </class>
  15802. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  15803. <!-- start class org.apache.hadoop.fs.permission.AclEntry -->
  15804. <class name="AclEntry" extends="java.lang.Object"
  15805. abstract="false"
  15806. static="false" final="false" visibility="public"
  15807. deprecated="not deprecated">
  15808. <method name="getType" return="org.apache.hadoop.fs.permission.AclEntryType"
  15809. abstract="false" native="false" synchronized="false"
  15810. static="false" final="false" visibility="public"
  15811. deprecated="not deprecated">
  15812. <doc>
  15813. <![CDATA[Returns the ACL entry type.
  15814. @return AclEntryType ACL entry type]]>
  15815. </doc>
  15816. </method>
  15817. <method name="getName" return="java.lang.String"
  15818. abstract="false" native="false" synchronized="false"
  15819. static="false" final="false" visibility="public"
  15820. deprecated="not deprecated">
  15821. <doc>
  15822. <![CDATA[Returns the optional ACL entry name.
  15823. @return String ACL entry name, or null if undefined]]>
  15824. </doc>
  15825. </method>
  15826. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsAction"
  15827. abstract="false" native="false" synchronized="false"
  15828. static="false" final="false" visibility="public"
  15829. deprecated="not deprecated">
  15830. <doc>
  15831. <![CDATA[Returns the set of permissions in the ACL entry.
  15832. @return FsAction set of permissions in the ACL entry]]>
  15833. </doc>
  15834. </method>
  15835. <method name="getScope" return="org.apache.hadoop.fs.permission.AclEntryScope"
  15836. abstract="false" native="false" synchronized="false"
  15837. static="false" final="false" visibility="public"
  15838. deprecated="not deprecated">
  15839. <doc>
  15840. <![CDATA[Returns the scope of the ACL entry.
  15841. @return AclEntryScope scope of the ACL entry]]>
  15842. </doc>
  15843. </method>
  15844. <method name="equals" return="boolean"
  15845. abstract="false" native="false" synchronized="false"
  15846. static="false" final="false" visibility="public"
  15847. deprecated="not deprecated">
  15848. <param name="o" type="java.lang.Object"/>
  15849. </method>
  15850. <method name="hashCode" return="int"
  15851. abstract="false" native="false" synchronized="false"
  15852. static="false" final="false" visibility="public"
  15853. deprecated="not deprecated">
  15854. </method>
  15855. <method name="toString" return="java.lang.String"
  15856. abstract="false" native="false" synchronized="false"
  15857. static="false" final="false" visibility="public"
  15858. deprecated="not deprecated">
  15859. </method>
  15860. <method name="parseAclSpec" return="java.util.List"
  15861. abstract="false" native="false" synchronized="false"
  15862. static="true" final="false" visibility="public"
  15863. deprecated="not deprecated">
  15864. <param name="aclSpec" type="java.lang.String"/>
  15865. <param name="includePermission" type="boolean"/>
  15866. <doc>
  15867. <![CDATA[Parses a string representation of an ACL spec into a list of AclEntry
  15868. objects. Example: "user::rwx,user:foo:rw-,group::r--,other::---"
  15869. @param aclSpec
  15870. String representation of an ACL spec.
  15871. @param includePermission
  15872. for setAcl operations this will be true. i.e. AclSpec should
  15873. include permissions.<br>
  15874. But for removeAcl operation it will be false. i.e. AclSpec should
  15875. not contain permissions.<br>
  15876. Example: "user:foo,group:bar"
  15877. @return Returns list of {@link AclEntry} parsed]]>
  15878. </doc>
  15879. </method>
  15880. <method name="parseAclEntry" return="org.apache.hadoop.fs.permission.AclEntry"
  15881. abstract="false" native="false" synchronized="false"
  15882. static="true" final="false" visibility="public"
  15883. deprecated="not deprecated">
  15884. <param name="aclStr" type="java.lang.String"/>
  15885. <param name="includePermission" type="boolean"/>
  15886. <doc>
  15887. <![CDATA[Parses a string representation of an ACL into a AclEntry object.<br>
  15888. @param aclStr
  15889. String representation of an ACL.<br>
  15890. Example: "user:foo:rw-"
  15891. @param includePermission
  15892. for setAcl operations this will be true. i.e. Acl should include
  15893. permissions.<br>
  15894. But for removeAcl operation it will be false. i.e. Acl should not
  15895. contain permissions.<br>
  15896. Example: "user:foo,group:bar,mask::"
  15897. @return Returns an {@link AclEntry} object]]>
  15898. </doc>
  15899. </method>
  15900. <method name="aclSpecToString" return="java.lang.String"
  15901. abstract="false" native="false" synchronized="false"
  15902. static="true" final="false" visibility="public"
  15903. deprecated="not deprecated">
  15904. <param name="aclSpec" type="java.util.List"/>
  15905. <doc>
  15906. <![CDATA[Convert a List of AclEntries into a string - the reverse of parseAclSpec.
  15907. @param aclSpec List of AclEntries to convert
  15908. @return String representation of aclSpec]]>
  15909. </doc>
  15910. </method>
  15911. <doc>
  15912. <![CDATA[Defines a single entry in an ACL. An ACL entry has a type (user, group,
  15913. mask, or other), an optional name (referring to a specific user or group), a
  15914. set of permissions (any combination of read, write and execute), and a scope
  15915. (access or default). AclEntry instances are immutable. Use a {@link Builder}
  15916. to create a new instance.]]>
  15917. </doc>
  15918. </class>
  15919. <!-- end class org.apache.hadoop.fs.permission.AclEntry -->
  15920. <!-- start class org.apache.hadoop.fs.permission.AclEntry.Builder -->
  15921. <class name="AclEntry.Builder" extends="java.lang.Object"
  15922. abstract="false"
  15923. static="true" final="false" visibility="public"
  15924. deprecated="not deprecated">
  15925. <constructor name="AclEntry.Builder"
  15926. static="false" final="false" visibility="public"
  15927. deprecated="not deprecated">
  15928. </constructor>
  15929. <method name="setType" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  15930. abstract="false" native="false" synchronized="false"
  15931. static="false" final="false" visibility="public"
  15932. deprecated="not deprecated">
  15933. <param name="type" type="org.apache.hadoop.fs.permission.AclEntryType"/>
  15934. <doc>
  15935. <![CDATA[Sets the ACL entry type.
  15936. @param type AclEntryType ACL entry type
  15937. @return Builder this builder, for call chaining]]>
  15938. </doc>
  15939. </method>
  15940. <method name="setName" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  15941. abstract="false" native="false" synchronized="false"
  15942. static="false" final="false" visibility="public"
  15943. deprecated="not deprecated">
  15944. <param name="name" type="java.lang.String"/>
  15945. <doc>
  15946. <![CDATA[Sets the optional ACL entry name.
  15947. @param name String optional ACL entry name
  15948. @return Builder this builder, for call chaining]]>
  15949. </doc>
  15950. </method>
  15951. <method name="setPermission" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  15952. abstract="false" native="false" synchronized="false"
  15953. static="false" final="false" visibility="public"
  15954. deprecated="not deprecated">
  15955. <param name="permission" type="org.apache.hadoop.fs.permission.FsAction"/>
  15956. <doc>
  15957. <![CDATA[Sets the set of permissions in the ACL entry.
  15958. @param permission FsAction set of permissions in the ACL entry
  15959. @return Builder this builder, for call chaining]]>
  15960. </doc>
  15961. </method>
  15962. <method name="setScope" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  15963. abstract="false" native="false" synchronized="false"
  15964. static="false" final="false" visibility="public"
  15965. deprecated="not deprecated">
  15966. <param name="scope" type="org.apache.hadoop.fs.permission.AclEntryScope"/>
  15967. <doc>
  15968. <![CDATA[Sets the scope of the ACL entry. If this method is not called, then the
  15969. builder assumes {@link AclEntryScope#ACCESS}.
  15970. @param scope AclEntryScope scope of the ACL entry
  15971. @return Builder this builder, for call chaining]]>
  15972. </doc>
  15973. </method>
  15974. <method name="build" return="org.apache.hadoop.fs.permission.AclEntry"
  15975. abstract="false" native="false" synchronized="false"
  15976. static="false" final="false" visibility="public"
  15977. deprecated="not deprecated">
  15978. <doc>
  15979. <![CDATA[Builds a new AclEntry populated with the set properties.
  15980. @return AclEntry new AclEntry]]>
  15981. </doc>
  15982. </method>
  15983. <doc>
  15984. <![CDATA[Builder for creating new AclEntry instances.]]>
  15985. </doc>
  15986. </class>
  15987. <!-- end class org.apache.hadoop.fs.permission.AclEntry.Builder -->
  15988. <!-- start class org.apache.hadoop.fs.permission.AclEntryScope -->
  15989. <class name="AclEntryScope" extends="java.lang.Enum"
  15990. abstract="false"
  15991. static="false" final="true" visibility="public"
  15992. deprecated="not deprecated">
  15993. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryScope[]"
  15994. abstract="false" native="false" synchronized="false"
  15995. static="true" final="false" visibility="public"
  15996. deprecated="not deprecated">
  15997. </method>
  15998. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryScope"
  15999. abstract="false" native="false" synchronized="false"
  16000. static="true" final="false" visibility="public"
  16001. deprecated="not deprecated">
  16002. <param name="name" type="java.lang.String"/>
  16003. </method>
  16004. <doc>
  16005. <![CDATA[Specifies the scope or intended usage of an ACL entry.]]>
  16006. </doc>
  16007. </class>
  16008. <!-- end class org.apache.hadoop.fs.permission.AclEntryScope -->
  16009. <!-- start class org.apache.hadoop.fs.permission.AclEntryType -->
  16010. <class name="AclEntryType" extends="java.lang.Enum"
  16011. abstract="false"
  16012. static="false" final="true" visibility="public"
  16013. deprecated="not deprecated">
  16014. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryType[]"
  16015. abstract="false" native="false" synchronized="false"
  16016. static="true" final="false" visibility="public"
  16017. deprecated="not deprecated">
  16018. </method>
  16019. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryType"
  16020. abstract="false" native="false" synchronized="false"
  16021. static="true" final="false" visibility="public"
  16022. deprecated="not deprecated">
  16023. <param name="name" type="java.lang.String"/>
  16024. </method>
  16025. <doc>
  16026. <![CDATA[Specifies the type of an ACL entry.]]>
  16027. </doc>
  16028. </class>
  16029. <!-- end class org.apache.hadoop.fs.permission.AclEntryType -->
  16030. <!-- start class org.apache.hadoop.fs.permission.AclStatus -->
  16031. <class name="AclStatus" extends="java.lang.Object"
  16032. abstract="false"
  16033. static="false" final="false" visibility="public"
  16034. deprecated="not deprecated">
  16035. <method name="getOwner" return="java.lang.String"
  16036. abstract="false" native="false" synchronized="false"
  16037. static="false" final="false" visibility="public"
  16038. deprecated="not deprecated">
  16039. <doc>
  16040. <![CDATA[Returns the file owner.
  16041. @return String file owner]]>
  16042. </doc>
  16043. </method>
  16044. <method name="getGroup" return="java.lang.String"
  16045. abstract="false" native="false" synchronized="false"
  16046. static="false" final="false" visibility="public"
  16047. deprecated="not deprecated">
  16048. <doc>
  16049. <![CDATA[Returns the file group.
  16050. @return String file group]]>
  16051. </doc>
  16052. </method>
  16053. <method name="isStickyBit" return="boolean"
  16054. abstract="false" native="false" synchronized="false"
  16055. static="false" final="false" visibility="public"
  16056. deprecated="not deprecated">
  16057. <doc>
  16058. <![CDATA[Returns the sticky bit.
  16059. @return boolean sticky bit]]>
  16060. </doc>
  16061. </method>
  16062. <method name="getEntries" return="java.util.List"
  16063. abstract="false" native="false" synchronized="false"
  16064. static="false" final="false" visibility="public"
  16065. deprecated="not deprecated">
  16066. <doc>
  16067. <![CDATA[Returns the list of all ACL entries, ordered by their natural ordering.
  16068. @return List<AclEntry> unmodifiable ordered list of all ACL entries]]>
  16069. </doc>
  16070. </method>
  16071. <method name="equals" return="boolean"
  16072. abstract="false" native="false" synchronized="false"
  16073. static="false" final="false" visibility="public"
  16074. deprecated="not deprecated">
  16075. <param name="o" type="java.lang.Object"/>
  16076. </method>
  16077. <method name="hashCode" return="int"
  16078. abstract="false" native="false" synchronized="false"
  16079. static="false" final="false" visibility="public"
  16080. deprecated="not deprecated">
  16081. </method>
  16082. <method name="toString" return="java.lang.String"
  16083. abstract="false" native="false" synchronized="false"
  16084. static="false" final="false" visibility="public"
  16085. deprecated="not deprecated">
  16086. </method>
  16087. <doc>
  16088. <![CDATA[An AclStatus contains the ACL information of a specific file. AclStatus
  16089. instances are immutable. Use a {@link Builder} to create a new instance.]]>
  16090. </doc>
  16091. </class>
  16092. <!-- end class org.apache.hadoop.fs.permission.AclStatus -->
  16093. <!-- start class org.apache.hadoop.fs.permission.AclStatus.Builder -->
  16094. <class name="AclStatus.Builder" extends="java.lang.Object"
  16095. abstract="false"
  16096. static="true" final="false" visibility="public"
  16097. deprecated="not deprecated">
  16098. <constructor name="AclStatus.Builder"
  16099. static="false" final="false" visibility="public"
  16100. deprecated="not deprecated">
  16101. </constructor>
  16102. <method name="owner" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16103. abstract="false" native="false" synchronized="false"
  16104. static="false" final="false" visibility="public"
  16105. deprecated="not deprecated">
  16106. <param name="owner" type="java.lang.String"/>
  16107. <doc>
  16108. <![CDATA[Sets the file owner.
  16109. @param owner String file owner
  16110. @return Builder this builder, for call chaining]]>
  16111. </doc>
  16112. </method>
  16113. <method name="group" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16114. abstract="false" native="false" synchronized="false"
  16115. static="false" final="false" visibility="public"
  16116. deprecated="not deprecated">
  16117. <param name="group" type="java.lang.String"/>
  16118. <doc>
  16119. <![CDATA[Sets the file group.
  16120. @param group String file group
  16121. @return Builder this builder, for call chaining]]>
  16122. </doc>
  16123. </method>
  16124. <method name="addEntry" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16125. abstract="false" native="false" synchronized="false"
  16126. static="false" final="false" visibility="public"
  16127. deprecated="not deprecated">
  16128. <param name="e" type="org.apache.hadoop.fs.permission.AclEntry"/>
  16129. <doc>
  16130. <![CDATA[Adds an ACL entry.
  16131. @param e AclEntry entry to add
  16132. @return Builder this builder, for call chaining]]>
  16133. </doc>
  16134. </method>
  16135. <method name="addEntries" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16136. abstract="false" native="false" synchronized="false"
  16137. static="false" final="false" visibility="public"
  16138. deprecated="not deprecated">
  16139. <param name="entries" type="java.lang.Iterable"/>
  16140. <doc>
  16141. <![CDATA[Adds a list of ACL entries.
  16142. @param entries AclEntry entries to add
  16143. @return Builder this builder, for call chaining]]>
  16144. </doc>
  16145. </method>
  16146. <method name="stickyBit" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16147. abstract="false" native="false" synchronized="false"
  16148. static="false" final="false" visibility="public"
  16149. deprecated="not deprecated">
  16150. <param name="stickyBit" type="boolean"/>
  16151. <doc>
  16152. <![CDATA[Sets sticky bit. If this method is not called, then the builder assumes
  16153. false.
  16154. @param stickyBit
  16155. boolean sticky bit
  16156. @return Builder this builder, for call chaining]]>
  16157. </doc>
  16158. </method>
  16159. <method name="build" return="org.apache.hadoop.fs.permission.AclStatus"
  16160. abstract="false" native="false" synchronized="false"
  16161. static="false" final="false" visibility="public"
  16162. deprecated="not deprecated">
  16163. <doc>
  16164. <![CDATA[Builds a new AclStatus populated with the set properties.
  16165. @return AclStatus new AclStatus]]>
  16166. </doc>
  16167. </method>
  16168. <doc>
  16169. <![CDATA[Builder for creating new Acl instances.]]>
  16170. </doc>
  16171. </class>
  16172. <!-- end class org.apache.hadoop.fs.permission.AclStatus.Builder -->
  16173. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  16174. <class name="FsAction" extends="java.lang.Enum"
  16175. abstract="false"
  16176. static="false" final="true" visibility="public"
  16177. deprecated="not deprecated">
  16178. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  16179. abstract="false" native="false" synchronized="false"
  16180. static="true" final="false" visibility="public"
  16181. deprecated="not deprecated">
  16182. </method>
  16183. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  16184. abstract="false" native="false" synchronized="false"
  16185. static="true" final="false" visibility="public"
  16186. deprecated="not deprecated">
  16187. <param name="name" type="java.lang.String"/>
  16188. </method>
  16189. <method name="implies" return="boolean"
  16190. abstract="false" native="false" synchronized="false"
  16191. static="false" final="false" visibility="public"
  16192. deprecated="not deprecated">
  16193. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  16194. <doc>
  16195. <![CDATA[Return true if this action implies that action.
  16196. @param that]]>
  16197. </doc>
  16198. </method>
  16199. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  16200. abstract="false" native="false" synchronized="false"
  16201. static="false" final="false" visibility="public"
  16202. deprecated="not deprecated">
  16203. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  16204. <doc>
  16205. <![CDATA[AND operation.]]>
  16206. </doc>
  16207. </method>
  16208. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  16209. abstract="false" native="false" synchronized="false"
  16210. static="false" final="false" visibility="public"
  16211. deprecated="not deprecated">
  16212. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  16213. <doc>
  16214. <![CDATA[OR operation.]]>
  16215. </doc>
  16216. </method>
  16217. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  16218. abstract="false" native="false" synchronized="false"
  16219. static="false" final="false" visibility="public"
  16220. deprecated="not deprecated">
  16221. <doc>
  16222. <![CDATA[NOT operation.]]>
  16223. </doc>
  16224. </method>
  16225. <method name="getFsAction" return="org.apache.hadoop.fs.permission.FsAction"
  16226. abstract="false" native="false" synchronized="false"
  16227. static="true" final="false" visibility="public"
  16228. deprecated="not deprecated">
  16229. <param name="permission" type="java.lang.String"/>
  16230. <doc>
  16231. <![CDATA[Get the FsAction enum for String representation of permissions
  16232. @param permission
  16233. 3-character string representation of permission. ex: rwx
  16234. @return Returns FsAction enum if the corresponding FsAction exists for permission.
  16235. Otherwise returns null]]>
  16236. </doc>
  16237. </method>
  16238. <field name="SYMBOL" type="java.lang.String"
  16239. transient="false" volatile="false"
  16240. static="false" final="true" visibility="public"
  16241. deprecated="not deprecated">
  16242. <doc>
  16243. <![CDATA[Symbolic representation]]>
  16244. </doc>
  16245. </field>
  16246. <doc>
  16247. <![CDATA[File system actions, e.g. read, write, etc.]]>
  16248. </doc>
  16249. </class>
  16250. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  16251. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  16252. <class name="FsPermission" extends="java.lang.Object"
  16253. abstract="false"
  16254. static="false" final="false" visibility="public"
  16255. deprecated="not deprecated">
  16256. <implements name="org.apache.hadoop.io.Writable"/>
  16257. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  16258. static="false" final="false" visibility="public"
  16259. deprecated="not deprecated">
  16260. <doc>
  16261. <![CDATA[Construct by the given {@link FsAction}.
  16262. @param u user action
  16263. @param g group action
  16264. @param o other action]]>
  16265. </doc>
  16266. </constructor>
  16267. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  16268. static="false" final="false" visibility="public"
  16269. deprecated="not deprecated">
  16270. </constructor>
  16271. <constructor name="FsPermission" type="short"
  16272. static="false" final="false" visibility="public"
  16273. deprecated="not deprecated">
  16274. <doc>
  16275. <![CDATA[Construct by the given mode.
  16276. @param mode
  16277. @see #toShort()]]>
  16278. </doc>
  16279. </constructor>
  16280. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  16281. static="false" final="false" visibility="public"
  16282. deprecated="not deprecated">
  16283. <doc>
  16284. <![CDATA[Copy constructor
  16285. @param other other permission]]>
  16286. </doc>
  16287. </constructor>
  16288. <constructor name="FsPermission" type="java.lang.String"
  16289. static="false" final="false" visibility="public"
  16290. deprecated="not deprecated">
  16291. <doc>
  16292. <![CDATA[Construct by given mode, either in octal or symbolic format.
  16293. @param mode mode as a string, either in octal or symbolic format
  16294. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  16295. </doc>
  16296. </constructor>
  16297. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  16298. abstract="false" native="false" synchronized="false"
  16299. static="true" final="false" visibility="public"
  16300. deprecated="not deprecated">
  16301. <param name="permission" type="short"/>
  16302. <doc>
  16303. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  16304. </doc>
  16305. </method>
  16306. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  16307. abstract="false" native="false" synchronized="false"
  16308. static="false" final="false" visibility="public"
  16309. deprecated="not deprecated">
  16310. <doc>
  16311. <![CDATA[Return user {@link FsAction}.]]>
  16312. </doc>
  16313. </method>
  16314. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  16315. abstract="false" native="false" synchronized="false"
  16316. static="false" final="false" visibility="public"
  16317. deprecated="not deprecated">
  16318. <doc>
  16319. <![CDATA[Return group {@link FsAction}.]]>
  16320. </doc>
  16321. </method>
  16322. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  16323. abstract="false" native="false" synchronized="false"
  16324. static="false" final="false" visibility="public"
  16325. deprecated="not deprecated">
  16326. <doc>
  16327. <![CDATA[Return other {@link FsAction}.]]>
  16328. </doc>
  16329. </method>
  16330. <method name="fromShort"
  16331. abstract="false" native="false" synchronized="false"
  16332. static="false" final="false" visibility="public"
  16333. deprecated="not deprecated">
  16334. <param name="n" type="short"/>
  16335. </method>
  16336. <method name="write"
  16337. abstract="false" native="false" synchronized="false"
  16338. static="false" final="false" visibility="public"
  16339. deprecated="not deprecated">
  16340. <param name="out" type="java.io.DataOutput"/>
  16341. <exception name="IOException" type="java.io.IOException"/>
  16342. </method>
  16343. <method name="readFields"
  16344. abstract="false" native="false" synchronized="false"
  16345. static="false" final="false" visibility="public"
  16346. deprecated="not deprecated">
  16347. <param name="in" type="java.io.DataInput"/>
  16348. <exception name="IOException" type="java.io.IOException"/>
  16349. </method>
  16350. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  16351. abstract="false" native="false" synchronized="false"
  16352. static="true" final="false" visibility="public"
  16353. deprecated="not deprecated">
  16354. <param name="in" type="java.io.DataInput"/>
  16355. <exception name="IOException" type="java.io.IOException"/>
  16356. <doc>
  16357. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  16358. </doc>
  16359. </method>
  16360. <method name="toShort" return="short"
  16361. abstract="false" native="false" synchronized="false"
  16362. static="false" final="false" visibility="public"
  16363. deprecated="not deprecated">
  16364. <doc>
  16365. <![CDATA[Encode the object to a short.]]>
  16366. </doc>
  16367. </method>
  16368. <method name="toExtendedShort" return="short"
  16369. abstract="false" native="false" synchronized="false"
  16370. static="false" final="false" visibility="public"
  16371. deprecated="not deprecated">
  16372. <doc>
  16373. <![CDATA[Encodes the object to a short. Unlike {@link #toShort()}, this method may
  16374. return values outside the fixed range 00000 - 01777 if extended features
  16375. are encoded into this permission, such as the ACL bit.
  16376. @return short extended short representation of this permission]]>
  16377. </doc>
  16378. </method>
  16379. <method name="equals" return="boolean"
  16380. abstract="false" native="false" synchronized="false"
  16381. static="false" final="false" visibility="public"
  16382. deprecated="not deprecated">
  16383. <param name="obj" type="java.lang.Object"/>
  16384. </method>
  16385. <method name="hashCode" return="int"
  16386. abstract="false" native="false" synchronized="false"
  16387. static="false" final="false" visibility="public"
  16388. deprecated="not deprecated">
  16389. </method>
  16390. <method name="toString" return="java.lang.String"
  16391. abstract="false" native="false" synchronized="false"
  16392. static="false" final="false" visibility="public"
  16393. deprecated="not deprecated">
  16394. </method>
  16395. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  16396. abstract="false" native="false" synchronized="false"
  16397. static="false" final="false" visibility="public"
  16398. deprecated="not deprecated">
  16399. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16400. <doc>
  16401. <![CDATA[Apply a umask to this permission and return a new one.
  16402. The umask is used by create, mkdir, and other Hadoop filesystem operations.
  16403. The mode argument for these operations is modified by removing the bits
  16404. which are set in the umask. Thus, the umask limits the permissions which
  16405. newly created files and directories get.
  16406. @param umask The umask to use
  16407. @return The effective permission]]>
  16408. </doc>
  16409. </method>
  16410. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  16411. abstract="false" native="false" synchronized="false"
  16412. static="true" final="false" visibility="public"
  16413. deprecated="not deprecated">
  16414. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16415. <doc>
  16416. <![CDATA[Get the user file creation mask (umask)
  16417. {@code UMASK_LABEL} config param has umask value that is either symbolic
  16418. or octal.
  16419. Symbolic umask is applied relative to file mode creation mask;
  16420. the permission op characters '+' clears the corresponding bit in the mask,
  16421. '-' sets bits in the mask.
  16422. Octal umask, the specified bits are set in the file mode creation mask.
  16423. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  16424. </doc>
  16425. </method>
  16426. <method name="getStickyBit" return="boolean"
  16427. abstract="false" native="false" synchronized="false"
  16428. static="false" final="false" visibility="public"
  16429. deprecated="not deprecated">
  16430. </method>
  16431. <method name="getAclBit" return="boolean"
  16432. abstract="false" native="false" synchronized="false"
  16433. static="false" final="false" visibility="public"
  16434. deprecated="not deprecated">
  16435. <doc>
  16436. <![CDATA[Returns true if there is also an ACL (access control list).
  16437. @return boolean true if there is also an ACL (access control list).]]>
  16438. </doc>
  16439. </method>
  16440. <method name="getEncryptedBit" return="boolean"
  16441. abstract="false" native="false" synchronized="false"
  16442. static="false" final="false" visibility="public"
  16443. deprecated="not deprecated">
  16444. <doc>
  16445. <![CDATA[Returns true if the file is encrypted or directory is in an encryption zone]]>
  16446. </doc>
  16447. </method>
  16448. <method name="setUMask"
  16449. abstract="false" native="false" synchronized="false"
  16450. static="true" final="false" visibility="public"
  16451. deprecated="not deprecated">
  16452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16453. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16454. <doc>
  16455. <![CDATA[Set the user file creation mask (umask)]]>
  16456. </doc>
  16457. </method>
  16458. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16459. abstract="false" native="false" synchronized="false"
  16460. static="true" final="false" visibility="public"
  16461. deprecated="not deprecated">
  16462. <doc>
  16463. <![CDATA[Get the default permission for directory and symlink.
  16464. In previous versions, this default permission was also used to
  16465. create files, so files created end up with ugo+x permission.
  16466. See HADOOP-9155 for detail.
  16467. Two new methods are added to solve this, please use
  16468. {@link FsPermission#getDirDefault()} for directory, and use
  16469. {@link FsPermission#getFileDefault()} for file.
  16470. This method is kept for compatibility.]]>
  16471. </doc>
  16472. </method>
  16473. <method name="getDirDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16474. abstract="false" native="false" synchronized="false"
  16475. static="true" final="false" visibility="public"
  16476. deprecated="not deprecated">
  16477. <doc>
  16478. <![CDATA[Get the default permission for directory.]]>
  16479. </doc>
  16480. </method>
  16481. <method name="getFileDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16482. abstract="false" native="false" synchronized="false"
  16483. static="true" final="false" visibility="public"
  16484. deprecated="not deprecated">
  16485. <doc>
  16486. <![CDATA[Get the default permission for file.]]>
  16487. </doc>
  16488. </method>
  16489. <method name="getCachePoolDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16490. abstract="false" native="false" synchronized="false"
  16491. static="true" final="false" visibility="public"
  16492. deprecated="not deprecated">
  16493. <doc>
  16494. <![CDATA[Get the default permission for cache pools.]]>
  16495. </doc>
  16496. </method>
  16497. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  16498. abstract="false" native="false" synchronized="false"
  16499. static="true" final="false" visibility="public"
  16500. deprecated="not deprecated">
  16501. <param name="unixSymbolicPermission" type="java.lang.String"/>
  16502. <doc>
  16503. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  16504. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  16505. </doc>
  16506. </method>
  16507. <field name="MAX_PERMISSION_LENGTH" type="int"
  16508. transient="false" volatile="false"
  16509. static="true" final="true" visibility="public"
  16510. deprecated="not deprecated">
  16511. <doc>
  16512. <![CDATA[Maximum acceptable length of a permission string to parse]]>
  16513. </doc>
  16514. </field>
  16515. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  16516. transient="false" volatile="false"
  16517. static="true" final="true" visibility="public"
  16518. deprecated="not deprecated">
  16519. <doc>
  16520. <![CDATA[umask property label deprecated key and code in getUMask method
  16521. to accommodate it may be removed in version .23]]>
  16522. </doc>
  16523. </field>
  16524. <field name="UMASK_LABEL" type="java.lang.String"
  16525. transient="false" volatile="false"
  16526. static="true" final="true" visibility="public"
  16527. deprecated="not deprecated">
  16528. </field>
  16529. <field name="DEFAULT_UMASK" type="int"
  16530. transient="false" volatile="false"
  16531. static="true" final="true" visibility="public"
  16532. deprecated="not deprecated">
  16533. </field>
  16534. <doc>
  16535. <![CDATA[A class for file/directory permissions.]]>
  16536. </doc>
  16537. </class>
  16538. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  16539. </package>
  16540. <package name="org.apache.hadoop.fs.viewfs">
  16541. <!-- start class org.apache.hadoop.fs.viewfs.ConfigUtil -->
  16542. <class name="ConfigUtil" extends="java.lang.Object"
  16543. abstract="false"
  16544. static="false" final="false" visibility="public"
  16545. deprecated="not deprecated">
  16546. <constructor name="ConfigUtil"
  16547. static="false" final="false" visibility="public"
  16548. deprecated="not deprecated">
  16549. </constructor>
  16550. <method name="getConfigViewFsPrefix" return="java.lang.String"
  16551. abstract="false" native="false" synchronized="false"
  16552. static="true" final="false" visibility="public"
  16553. deprecated="not deprecated">
  16554. <param name="mountTableName" type="java.lang.String"/>
  16555. <doc>
  16556. <![CDATA[Get the config variable prefix for the specified mount table
  16557. @param mountTableName - the name of the mount table
  16558. @return the config variable prefix for the specified mount table]]>
  16559. </doc>
  16560. </method>
  16561. <method name="getConfigViewFsPrefix" return="java.lang.String"
  16562. abstract="false" native="false" synchronized="false"
  16563. static="true" final="false" visibility="public"
  16564. deprecated="not deprecated">
  16565. <doc>
  16566. <![CDATA[Get the config variable prefix for the default mount table
  16567. @return the config variable prefix for the default mount table]]>
  16568. </doc>
  16569. </method>
  16570. <method name="addLink"
  16571. abstract="false" native="false" synchronized="false"
  16572. static="true" final="false" visibility="public"
  16573. deprecated="not deprecated">
  16574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16575. <param name="mountTableName" type="java.lang.String"/>
  16576. <param name="src" type="java.lang.String"/>
  16577. <param name="target" type="java.net.URI"/>
  16578. <doc>
  16579. <![CDATA[Add a link to the config for the specified mount table
  16580. @param conf - add the link to this conf
  16581. @param mountTableName
  16582. @param src - the src path name
  16583. @param target - the target URI link]]>
  16584. </doc>
  16585. </method>
  16586. <method name="addLink"
  16587. abstract="false" native="false" synchronized="false"
  16588. static="true" final="false" visibility="public"
  16589. deprecated="not deprecated">
  16590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16591. <param name="src" type="java.lang.String"/>
  16592. <param name="target" type="java.net.URI"/>
  16593. <doc>
  16594. <![CDATA[Add a link to the config for the default mount table
  16595. @param conf - add the link to this conf
  16596. @param src - the src path name
  16597. @param target - the target URI link]]>
  16598. </doc>
  16599. </method>
  16600. <method name="setHomeDirConf"
  16601. abstract="false" native="false" synchronized="false"
  16602. static="true" final="false" visibility="public"
  16603. deprecated="not deprecated">
  16604. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16605. <param name="homedir" type="java.lang.String"/>
  16606. <doc>
  16607. <![CDATA[Add config variable for homedir for default mount table
  16608. @param conf - add to this conf
  16609. @param homedir - the home dir path starting with slash]]>
  16610. </doc>
  16611. </method>
  16612. <method name="setHomeDirConf"
  16613. abstract="false" native="false" synchronized="false"
  16614. static="true" final="false" visibility="public"
  16615. deprecated="not deprecated">
  16616. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16617. <param name="mountTableName" type="java.lang.String"/>
  16618. <param name="homedir" type="java.lang.String"/>
  16619. <doc>
  16620. <![CDATA[Add config variable for homedir the specified mount table
  16621. @param conf - add to this conf
  16622. @param homedir - the home dir path starting with slash]]>
  16623. </doc>
  16624. </method>
  16625. <method name="getHomeDirValue" return="java.lang.String"
  16626. abstract="false" native="false" synchronized="false"
  16627. static="true" final="false" visibility="public"
  16628. deprecated="not deprecated">
  16629. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16630. <doc>
  16631. <![CDATA[Get the value of the home dir conf value for default mount table
  16632. @param conf - from this conf
  16633. @return home dir value, null if variable is not in conf]]>
  16634. </doc>
  16635. </method>
  16636. <method name="getHomeDirValue" return="java.lang.String"
  16637. abstract="false" native="false" synchronized="false"
  16638. static="true" final="false" visibility="public"
  16639. deprecated="not deprecated">
  16640. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16641. <param name="mountTableName" type="java.lang.String"/>
  16642. <doc>
  16643. <![CDATA[Get the value of the home dir conf value for specfied mount table
  16644. @param conf - from this conf
  16645. @param mountTableName - the mount table
  16646. @return home dir value, null if variable is not in conf]]>
  16647. </doc>
  16648. </method>
  16649. <doc>
  16650. <![CDATA[Utilities for config variables of the viewFs See {@link ViewFs}]]>
  16651. </doc>
  16652. </class>
  16653. <!-- end class org.apache.hadoop.fs.viewfs.ConfigUtil -->
  16654. <!-- start interface org.apache.hadoop.fs.viewfs.Constants -->
  16655. <interface name="Constants" abstract="true"
  16656. static="false" final="false" visibility="public"
  16657. deprecated="not deprecated">
  16658. <field name="CONFIG_VIEWFS_PREFIX" type="java.lang.String"
  16659. transient="false" volatile="false"
  16660. static="true" final="true" visibility="public"
  16661. deprecated="not deprecated">
  16662. <doc>
  16663. <![CDATA[Prefix for the config variable prefix for the ViewFs mount-table]]>
  16664. </doc>
  16665. </field>
  16666. <field name="CONFIG_VIEWFS_HOMEDIR" type="java.lang.String"
  16667. transient="false" volatile="false"
  16668. static="true" final="true" visibility="public"
  16669. deprecated="not deprecated">
  16670. <doc>
  16671. <![CDATA[Prefix for the home dir for the mount table - if not specified
  16672. then the hadoop default value (/user) is used.]]>
  16673. </doc>
  16674. </field>
  16675. <field name="CONFIG_VIEWFS_DEFAULT_MOUNT_TABLE" type="java.lang.String"
  16676. transient="false" volatile="false"
  16677. static="true" final="true" visibility="public"
  16678. deprecated="not deprecated">
  16679. <doc>
  16680. <![CDATA[Config variable name for the default mount table.]]>
  16681. </doc>
  16682. </field>
  16683. <field name="CONFIG_VIEWFS_PREFIX_DEFAULT_MOUNT_TABLE" type="java.lang.String"
  16684. transient="false" volatile="false"
  16685. static="true" final="true" visibility="public"
  16686. deprecated="not deprecated">
  16687. <doc>
  16688. <![CDATA[Config variable full prefix for the default mount table.]]>
  16689. </doc>
  16690. </field>
  16691. <field name="CONFIG_VIEWFS_LINK" type="java.lang.String"
  16692. transient="false" volatile="false"
  16693. static="true" final="true" visibility="public"
  16694. deprecated="not deprecated">
  16695. <doc>
  16696. <![CDATA[Config variable for specifying a simple link]]>
  16697. </doc>
  16698. </field>
  16699. <field name="CONFIG_VIEWFS_LINK_MERGE" type="java.lang.String"
  16700. transient="false" volatile="false"
  16701. static="true" final="true" visibility="public"
  16702. deprecated="not deprecated">
  16703. <doc>
  16704. <![CDATA[Config variable for specifying a merge link]]>
  16705. </doc>
  16706. </field>
  16707. <field name="CONFIG_VIEWFS_LINK_MERGE_SLASH" type="java.lang.String"
  16708. transient="false" volatile="false"
  16709. static="true" final="true" visibility="public"
  16710. deprecated="not deprecated">
  16711. <doc>
  16712. <![CDATA[Config variable for specifying a merge of the root of the mount-table
  16713. with the root of another file system.]]>
  16714. </doc>
  16715. </field>
  16716. <field name="PERMISSION_555" type="org.apache.hadoop.fs.permission.FsPermission"
  16717. transient="false" volatile="false"
  16718. static="true" final="true" visibility="public"
  16719. deprecated="not deprecated">
  16720. </field>
  16721. <doc>
  16722. <![CDATA[Config variable prefixes for ViewFs -
  16723. see {@link org.apache.hadoop.fs.viewfs.ViewFs} for examples.
  16724. The mount table is specified in the config using these prefixes.
  16725. See {@link org.apache.hadoop.fs.viewfs.ConfigUtil} for convenience lib.]]>
  16726. </doc>
  16727. </interface>
  16728. <!-- end interface org.apache.hadoop.fs.viewfs.Constants -->
  16729. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  16730. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  16731. abstract="false"
  16732. static="false" final="false" visibility="public"
  16733. deprecated="not deprecated">
  16734. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  16735. static="false" final="false" visibility="public"
  16736. deprecated="not deprecated">
  16737. </constructor>
  16738. <constructor name="NotInMountpointException" type="java.lang.String"
  16739. static="false" final="false" visibility="public"
  16740. deprecated="not deprecated">
  16741. </constructor>
  16742. <method name="getMessage" return="java.lang.String"
  16743. abstract="false" native="false" synchronized="false"
  16744. static="false" final="false" visibility="public"
  16745. deprecated="not deprecated">
  16746. </method>
  16747. <doc>
  16748. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  16749. Exception class used in cases where the given path is not mounted
  16750. through viewfs.]]>
  16751. </doc>
  16752. </class>
  16753. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  16754. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  16755. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  16756. abstract="false"
  16757. static="false" final="false" visibility="public"
  16758. deprecated="not deprecated">
  16759. <constructor name="ViewFileSystem"
  16760. static="false" final="false" visibility="public"
  16761. deprecated="not deprecated">
  16762. <exception name="IOException" type="java.io.IOException"/>
  16763. <doc>
  16764. <![CDATA[This is the constructor with the signature needed by
  16765. {@link FileSystem#createFileSystem(URI, Configuration)}
  16766. After this constructor is called initialize() is called.
  16767. @throws IOException]]>
  16768. </doc>
  16769. </constructor>
  16770. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  16771. static="false" final="false" visibility="public"
  16772. deprecated="not deprecated">
  16773. <exception name="IOException" type="java.io.IOException"/>
  16774. <doc>
  16775. <![CDATA[Convenience Constructor for apps to call directly
  16776. @param conf
  16777. @throws IOException]]>
  16778. </doc>
  16779. </constructor>
  16780. <method name="getScheme" return="java.lang.String"
  16781. abstract="false" native="false" synchronized="false"
  16782. static="false" final="false" visibility="public"
  16783. deprecated="not deprecated">
  16784. <doc>
  16785. <![CDATA[Return the protocol scheme for the FileSystem.
  16786. <p/>
  16787. @return <code>viewfs</code>]]>
  16788. </doc>
  16789. </method>
  16790. <method name="initialize"
  16791. abstract="false" native="false" synchronized="false"
  16792. static="false" final="false" visibility="public"
  16793. deprecated="not deprecated">
  16794. <param name="theUri" type="java.net.URI"/>
  16795. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16796. <exception name="IOException" type="java.io.IOException"/>
  16797. <doc>
  16798. <![CDATA[Called after a new FileSystem instance is constructed.
  16799. @param theUri a uri whose authority section names the host, port, etc. for
  16800. this FileSystem
  16801. @param conf the configuration]]>
  16802. </doc>
  16803. </method>
  16804. <method name="getTrashCanLocation" return="org.apache.hadoop.fs.Path"
  16805. abstract="false" native="false" synchronized="false"
  16806. static="false" final="false" visibility="public"
  16807. deprecated="not deprecated">
  16808. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16809. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16810. </method>
  16811. <method name="getUri" return="java.net.URI"
  16812. abstract="false" native="false" synchronized="false"
  16813. static="false" final="false" visibility="public"
  16814. deprecated="not deprecated">
  16815. </method>
  16816. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  16817. abstract="false" native="false" synchronized="false"
  16818. static="false" final="false" visibility="public"
  16819. deprecated="not deprecated">
  16820. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16821. <exception name="IOException" type="java.io.IOException"/>
  16822. </method>
  16823. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16824. abstract="false" native="false" synchronized="false"
  16825. static="false" final="false" visibility="public"
  16826. deprecated="not deprecated">
  16827. </method>
  16828. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  16829. abstract="false" native="false" synchronized="false"
  16830. static="false" final="false" visibility="public"
  16831. deprecated="not deprecated">
  16832. </method>
  16833. <method name="setWorkingDirectory"
  16834. abstract="false" native="false" synchronized="false"
  16835. static="false" final="false" visibility="public"
  16836. deprecated="not deprecated">
  16837. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  16838. </method>
  16839. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  16840. abstract="false" native="false" synchronized="false"
  16841. static="false" final="false" visibility="public"
  16842. deprecated="not deprecated">
  16843. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16844. <param name="bufferSize" type="int"/>
  16845. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16846. <exception name="IOException" type="java.io.IOException"/>
  16847. </method>
  16848. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  16849. abstract="false" native="false" synchronized="false"
  16850. static="false" final="false" visibility="public"
  16851. deprecated="not deprecated">
  16852. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16853. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16854. <param name="flags" type="java.util.EnumSet"/>
  16855. <param name="bufferSize" type="int"/>
  16856. <param name="replication" type="short"/>
  16857. <param name="blockSize" type="long"/>
  16858. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16859. <exception name="IOException" type="java.io.IOException"/>
  16860. </method>
  16861. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  16862. abstract="false" native="false" synchronized="false"
  16863. static="false" final="false" visibility="public"
  16864. deprecated="not deprecated">
  16865. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16866. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16867. <param name="overwrite" type="boolean"/>
  16868. <param name="bufferSize" type="int"/>
  16869. <param name="replication" type="short"/>
  16870. <param name="blockSize" type="long"/>
  16871. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16872. <exception name="IOException" type="java.io.IOException"/>
  16873. </method>
  16874. <method name="delete" return="boolean"
  16875. abstract="false" native="false" synchronized="false"
  16876. static="false" final="false" visibility="public"
  16877. deprecated="not deprecated">
  16878. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16879. <param name="recursive" type="boolean"/>
  16880. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16881. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16882. <exception name="IOException" type="java.io.IOException"/>
  16883. </method>
  16884. <method name="delete" return="boolean"
  16885. abstract="false" native="false" synchronized="false"
  16886. static="false" final="false" visibility="public"
  16887. deprecated="not deprecated">
  16888. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16889. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16890. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16891. <exception name="IOException" type="java.io.IOException"/>
  16892. </method>
  16893. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  16894. abstract="false" native="false" synchronized="false"
  16895. static="false" final="false" visibility="public"
  16896. deprecated="not deprecated">
  16897. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  16898. <param name="start" type="long"/>
  16899. <param name="len" type="long"/>
  16900. <exception name="IOException" type="java.io.IOException"/>
  16901. </method>
  16902. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  16903. abstract="false" native="false" synchronized="false"
  16904. static="false" final="false" visibility="public"
  16905. deprecated="not deprecated">
  16906. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16907. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16908. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16909. <exception name="IOException" type="java.io.IOException"/>
  16910. </method>
  16911. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16912. abstract="false" native="false" synchronized="false"
  16913. static="false" final="false" visibility="public"
  16914. deprecated="not deprecated">
  16915. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16916. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16917. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16918. <exception name="IOException" type="java.io.IOException"/>
  16919. </method>
  16920. <method name="access"
  16921. abstract="false" native="false" synchronized="false"
  16922. static="false" final="false" visibility="public"
  16923. deprecated="not deprecated">
  16924. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16925. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  16926. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16927. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16928. <exception name="IOException" type="java.io.IOException"/>
  16929. </method>
  16930. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16931. abstract="false" native="false" synchronized="false"
  16932. static="false" final="false" visibility="public"
  16933. deprecated="not deprecated">
  16934. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16935. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16936. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16937. <exception name="IOException" type="java.io.IOException"/>
  16938. </method>
  16939. <method name="mkdirs" return="boolean"
  16940. abstract="false" native="false" synchronized="false"
  16941. static="false" final="false" visibility="public"
  16942. deprecated="not deprecated">
  16943. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  16944. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16945. <exception name="IOException" type="java.io.IOException"/>
  16946. </method>
  16947. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16948. abstract="false" native="false" synchronized="false"
  16949. static="false" final="false" visibility="public"
  16950. deprecated="not deprecated">
  16951. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16952. <param name="bufferSize" type="int"/>
  16953. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16954. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16955. <exception name="IOException" type="java.io.IOException"/>
  16956. </method>
  16957. <method name="rename" return="boolean"
  16958. abstract="false" native="false" synchronized="false"
  16959. static="false" final="false" visibility="public"
  16960. deprecated="not deprecated">
  16961. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16962. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16963. <exception name="IOException" type="java.io.IOException"/>
  16964. </method>
  16965. <method name="setOwner"
  16966. abstract="false" native="false" synchronized="false"
  16967. static="false" final="false" visibility="public"
  16968. deprecated="not deprecated">
  16969. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16970. <param name="username" type="java.lang.String"/>
  16971. <param name="groupname" type="java.lang.String"/>
  16972. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16973. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16974. <exception name="IOException" type="java.io.IOException"/>
  16975. </method>
  16976. <method name="setPermission"
  16977. abstract="false" native="false" synchronized="false"
  16978. static="false" final="false" visibility="public"
  16979. deprecated="not deprecated">
  16980. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16981. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16982. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16983. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16984. <exception name="IOException" type="java.io.IOException"/>
  16985. </method>
  16986. <method name="setReplication" return="boolean"
  16987. abstract="false" native="false" synchronized="false"
  16988. static="false" final="false" visibility="public"
  16989. deprecated="not deprecated">
  16990. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16991. <param name="replication" type="short"/>
  16992. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16993. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16994. <exception name="IOException" type="java.io.IOException"/>
  16995. </method>
  16996. <method name="setTimes"
  16997. abstract="false" native="false" synchronized="false"
  16998. static="false" final="false" visibility="public"
  16999. deprecated="not deprecated">
  17000. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17001. <param name="mtime" type="long"/>
  17002. <param name="atime" type="long"/>
  17003. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17004. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17005. <exception name="IOException" type="java.io.IOException"/>
  17006. </method>
  17007. <method name="modifyAclEntries"
  17008. abstract="false" native="false" synchronized="false"
  17009. static="false" final="false" visibility="public"
  17010. deprecated="not deprecated">
  17011. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17012. <param name="aclSpec" type="java.util.List"/>
  17013. <exception name="IOException" type="java.io.IOException"/>
  17014. </method>
  17015. <method name="removeAclEntries"
  17016. abstract="false" native="false" synchronized="false"
  17017. static="false" final="false" visibility="public"
  17018. deprecated="not deprecated">
  17019. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17020. <param name="aclSpec" type="java.util.List"/>
  17021. <exception name="IOException" type="java.io.IOException"/>
  17022. </method>
  17023. <method name="removeDefaultAcl"
  17024. abstract="false" native="false" synchronized="false"
  17025. static="false" final="false" visibility="public"
  17026. deprecated="not deprecated">
  17027. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17028. <exception name="IOException" type="java.io.IOException"/>
  17029. </method>
  17030. <method name="removeAcl"
  17031. abstract="false" native="false" synchronized="false"
  17032. static="false" final="false" visibility="public"
  17033. deprecated="not deprecated">
  17034. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17035. <exception name="IOException" type="java.io.IOException"/>
  17036. </method>
  17037. <method name="setAcl"
  17038. abstract="false" native="false" synchronized="false"
  17039. static="false" final="false" visibility="public"
  17040. deprecated="not deprecated">
  17041. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17042. <param name="aclSpec" type="java.util.List"/>
  17043. <exception name="IOException" type="java.io.IOException"/>
  17044. </method>
  17045. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  17046. abstract="false" native="false" synchronized="false"
  17047. static="false" final="false" visibility="public"
  17048. deprecated="not deprecated">
  17049. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17050. <exception name="IOException" type="java.io.IOException"/>
  17051. </method>
  17052. <method name="setXAttr"
  17053. abstract="false" native="false" synchronized="false"
  17054. static="false" final="false" visibility="public"
  17055. deprecated="not deprecated">
  17056. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17057. <param name="name" type="java.lang.String"/>
  17058. <param name="value" type="byte[]"/>
  17059. <param name="flag" type="java.util.EnumSet"/>
  17060. <exception name="IOException" type="java.io.IOException"/>
  17061. </method>
  17062. <method name="getXAttr" return="byte[]"
  17063. abstract="false" native="false" synchronized="false"
  17064. static="false" final="false" visibility="public"
  17065. deprecated="not deprecated">
  17066. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17067. <param name="name" type="java.lang.String"/>
  17068. <exception name="IOException" type="java.io.IOException"/>
  17069. </method>
  17070. <method name="getXAttrs" return="java.util.Map"
  17071. abstract="false" native="false" synchronized="false"
  17072. static="false" final="false" visibility="public"
  17073. deprecated="not deprecated">
  17074. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17075. <exception name="IOException" type="java.io.IOException"/>
  17076. </method>
  17077. <method name="getXAttrs" return="java.util.Map"
  17078. abstract="false" native="false" synchronized="false"
  17079. static="false" final="false" visibility="public"
  17080. deprecated="not deprecated">
  17081. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17082. <param name="names" type="java.util.List"/>
  17083. <exception name="IOException" type="java.io.IOException"/>
  17084. </method>
  17085. <method name="listXAttrs" return="java.util.List"
  17086. abstract="false" native="false" synchronized="false"
  17087. static="false" final="false" visibility="public"
  17088. deprecated="not deprecated">
  17089. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17090. <exception name="IOException" type="java.io.IOException"/>
  17091. </method>
  17092. <method name="removeXAttr"
  17093. abstract="false" native="false" synchronized="false"
  17094. static="false" final="false" visibility="public"
  17095. deprecated="not deprecated">
  17096. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17097. <param name="name" type="java.lang.String"/>
  17098. <exception name="IOException" type="java.io.IOException"/>
  17099. </method>
  17100. <method name="setVerifyChecksum"
  17101. abstract="false" native="false" synchronized="false"
  17102. static="false" final="false" visibility="public"
  17103. deprecated="not deprecated">
  17104. <param name="verifyChecksum" type="boolean"/>
  17105. </method>
  17106. <method name="getDefaultBlockSize" return="long"
  17107. abstract="false" native="false" synchronized="false"
  17108. static="false" final="false" visibility="public"
  17109. deprecated="not deprecated">
  17110. </method>
  17111. <method name="getDefaultReplication" return="short"
  17112. abstract="false" native="false" synchronized="false"
  17113. static="false" final="false" visibility="public"
  17114. deprecated="not deprecated">
  17115. </method>
  17116. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  17117. abstract="false" native="false" synchronized="false"
  17118. static="false" final="false" visibility="public"
  17119. deprecated="not deprecated">
  17120. <exception name="IOException" type="java.io.IOException"/>
  17121. </method>
  17122. <method name="getDefaultBlockSize" return="long"
  17123. abstract="false" native="false" synchronized="false"
  17124. static="false" final="false" visibility="public"
  17125. deprecated="not deprecated">
  17126. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17127. </method>
  17128. <method name="getDefaultReplication" return="short"
  17129. abstract="false" native="false" synchronized="false"
  17130. static="false" final="false" visibility="public"
  17131. deprecated="not deprecated">
  17132. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17133. </method>
  17134. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  17135. abstract="false" native="false" synchronized="false"
  17136. static="false" final="false" visibility="public"
  17137. deprecated="not deprecated">
  17138. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17139. <exception name="IOException" type="java.io.IOException"/>
  17140. </method>
  17141. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  17142. abstract="false" native="false" synchronized="false"
  17143. static="false" final="false" visibility="public"
  17144. deprecated="not deprecated">
  17145. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17146. <exception name="IOException" type="java.io.IOException"/>
  17147. </method>
  17148. <method name="setWriteChecksum"
  17149. abstract="false" native="false" synchronized="false"
  17150. static="false" final="false" visibility="public"
  17151. deprecated="not deprecated">
  17152. <param name="writeChecksum" type="boolean"/>
  17153. </method>
  17154. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  17155. abstract="false" native="false" synchronized="false"
  17156. static="false" final="false" visibility="public"
  17157. deprecated="not deprecated">
  17158. </method>
  17159. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  17160. abstract="false" native="false" synchronized="false"
  17161. static="false" final="false" visibility="public"
  17162. deprecated="not deprecated">
  17163. </method>
  17164. <doc>
  17165. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  17166. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  17167. </doc>
  17168. </class>
  17169. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  17170. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint -->
  17171. <class name="ViewFileSystem.MountPoint" extends="java.lang.Object"
  17172. abstract="false"
  17173. static="true" final="false" visibility="public"
  17174. deprecated="not deprecated">
  17175. </class>
  17176. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint -->
  17177. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  17178. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  17179. abstract="false"
  17180. static="false" final="false" visibility="public"
  17181. deprecated="not deprecated">
  17182. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  17183. static="false" final="false" visibility="public"
  17184. deprecated="not deprecated">
  17185. <exception name="IOException" type="java.io.IOException"/>
  17186. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  17187. </constructor>
  17188. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  17189. abstract="false" native="false" synchronized="false"
  17190. static="false" final="false" visibility="public"
  17191. deprecated="not deprecated">
  17192. <exception name="IOException" type="java.io.IOException"/>
  17193. </method>
  17194. <method name="getUriDefaultPort" return="int"
  17195. abstract="false" native="false" synchronized="false"
  17196. static="false" final="false" visibility="public"
  17197. deprecated="not deprecated">
  17198. </method>
  17199. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  17200. abstract="false" native="false" synchronized="false"
  17201. static="false" final="false" visibility="public"
  17202. deprecated="not deprecated">
  17203. </method>
  17204. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  17205. abstract="false" native="false" synchronized="false"
  17206. static="false" final="false" visibility="public"
  17207. deprecated="not deprecated">
  17208. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17209. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17210. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17211. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17212. <exception name="IOException" type="java.io.IOException"/>
  17213. </method>
  17214. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  17215. abstract="false" native="false" synchronized="false"
  17216. static="false" final="false" visibility="public"
  17217. deprecated="not deprecated">
  17218. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17219. <param name="flag" type="java.util.EnumSet"/>
  17220. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17221. <param name="bufferSize" type="int"/>
  17222. <param name="replication" type="short"/>
  17223. <param name="blockSize" type="long"/>
  17224. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  17225. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  17226. <param name="createParent" type="boolean"/>
  17227. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17228. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  17229. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17230. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  17231. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  17232. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17233. <exception name="IOException" type="java.io.IOException"/>
  17234. </method>
  17235. <method name="delete" return="boolean"
  17236. abstract="false" native="false" synchronized="false"
  17237. static="false" final="false" visibility="public"
  17238. deprecated="not deprecated">
  17239. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17240. <param name="recursive" type="boolean"/>
  17241. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17242. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17243. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17244. <exception name="IOException" type="java.io.IOException"/>
  17245. </method>
  17246. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  17247. abstract="false" native="false" synchronized="false"
  17248. static="false" final="false" visibility="public"
  17249. deprecated="not deprecated">
  17250. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17251. <param name="start" type="long"/>
  17252. <param name="len" type="long"/>
  17253. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17254. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17255. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17256. <exception name="IOException" type="java.io.IOException"/>
  17257. </method>
  17258. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  17259. abstract="false" native="false" synchronized="false"
  17260. static="false" final="false" visibility="public"
  17261. deprecated="not deprecated">
  17262. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17263. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17264. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17265. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17266. <exception name="IOException" type="java.io.IOException"/>
  17267. </method>
  17268. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  17269. abstract="false" native="false" synchronized="false"
  17270. static="false" final="false" visibility="public"
  17271. deprecated="not deprecated">
  17272. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17273. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17274. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17275. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17276. <exception name="IOException" type="java.io.IOException"/>
  17277. </method>
  17278. <method name="access"
  17279. abstract="false" native="false" synchronized="false"
  17280. static="false" final="false" visibility="public"
  17281. deprecated="not deprecated">
  17282. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17283. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  17284. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17285. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17286. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17287. <exception name="IOException" type="java.io.IOException"/>
  17288. </method>
  17289. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  17290. abstract="false" native="false" synchronized="false"
  17291. static="false" final="false" visibility="public"
  17292. deprecated="not deprecated">
  17293. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17294. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17295. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17296. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  17297. <exception name="IOException" type="java.io.IOException"/>
  17298. </method>
  17299. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  17300. abstract="false" native="false" synchronized="false"
  17301. static="false" final="false" visibility="public"
  17302. deprecated="not deprecated">
  17303. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17304. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17305. <exception name="IOException" type="java.io.IOException"/>
  17306. </method>
  17307. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  17308. abstract="false" native="false" synchronized="false"
  17309. static="false" final="false" visibility="public"
  17310. deprecated="not deprecated">
  17311. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17312. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17313. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17314. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17315. <exception name="IOException" type="java.io.IOException"/>
  17316. </method>
  17317. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  17318. abstract="false" native="false" synchronized="false"
  17319. static="false" final="false" visibility="public"
  17320. deprecated="not deprecated">
  17321. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17322. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17323. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17324. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17325. <exception name="IOException" type="java.io.IOException"/>
  17326. </method>
  17327. <method name="mkdir"
  17328. abstract="false" native="false" synchronized="false"
  17329. static="false" final="false" visibility="public"
  17330. deprecated="not deprecated">
  17331. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  17332. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17333. <param name="createParent" type="boolean"/>
  17334. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17335. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  17336. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17337. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17338. <exception name="IOException" type="java.io.IOException"/>
  17339. </method>
  17340. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  17341. abstract="false" native="false" synchronized="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17345. <param name="bufferSize" type="int"/>
  17346. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17347. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17348. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17349. <exception name="IOException" type="java.io.IOException"/>
  17350. </method>
  17351. <method name="renameInternal"
  17352. abstract="false" native="false" synchronized="false"
  17353. static="false" final="false" visibility="public"
  17354. deprecated="not deprecated">
  17355. <param name="src" type="org.apache.hadoop.fs.Path"/>
  17356. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  17357. <param name="overwrite" type="boolean"/>
  17358. <exception name="IOException" type="java.io.IOException"/>
  17359. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17360. </method>
  17361. <method name="renameInternal"
  17362. abstract="false" native="false" synchronized="false"
  17363. static="false" final="false" visibility="public"
  17364. deprecated="not deprecated">
  17365. <param name="src" type="org.apache.hadoop.fs.Path"/>
  17366. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  17367. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17368. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  17369. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17370. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  17371. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17372. <exception name="IOException" type="java.io.IOException"/>
  17373. </method>
  17374. <method name="supportsSymlinks" return="boolean"
  17375. abstract="false" native="false" synchronized="false"
  17376. static="false" final="false" visibility="public"
  17377. deprecated="not deprecated">
  17378. </method>
  17379. <method name="createSymlink"
  17380. abstract="false" native="false" synchronized="false"
  17381. static="false" final="false" visibility="public"
  17382. deprecated="not deprecated">
  17383. <param name="target" type="org.apache.hadoop.fs.Path"/>
  17384. <param name="link" type="org.apache.hadoop.fs.Path"/>
  17385. <param name="createParent" type="boolean"/>
  17386. <exception name="IOException" type="java.io.IOException"/>
  17387. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17388. </method>
  17389. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  17390. abstract="false" native="false" synchronized="false"
  17391. static="false" final="false" visibility="public"
  17392. deprecated="not deprecated">
  17393. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17394. <exception name="IOException" type="java.io.IOException"/>
  17395. </method>
  17396. <method name="setOwner"
  17397. abstract="false" native="false" synchronized="false"
  17398. static="false" final="false" visibility="public"
  17399. deprecated="not deprecated">
  17400. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17401. <param name="username" type="java.lang.String"/>
  17402. <param name="groupname" type="java.lang.String"/>
  17403. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17404. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17405. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17406. <exception name="IOException" type="java.io.IOException"/>
  17407. </method>
  17408. <method name="setPermission"
  17409. abstract="false" native="false" synchronized="false"
  17410. static="false" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17413. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17414. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17415. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17416. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17417. <exception name="IOException" type="java.io.IOException"/>
  17418. </method>
  17419. <method name="setReplication" return="boolean"
  17420. abstract="false" native="false" synchronized="false"
  17421. static="false" final="false" visibility="public"
  17422. deprecated="not deprecated">
  17423. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17424. <param name="replication" type="short"/>
  17425. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17426. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17427. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17428. <exception name="IOException" type="java.io.IOException"/>
  17429. </method>
  17430. <method name="setTimes"
  17431. abstract="false" native="false" synchronized="false"
  17432. static="false" final="false" visibility="public"
  17433. deprecated="not deprecated">
  17434. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17435. <param name="mtime" type="long"/>
  17436. <param name="atime" type="long"/>
  17437. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17438. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17439. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  17440. <exception name="IOException" type="java.io.IOException"/>
  17441. </method>
  17442. <method name="setVerifyChecksum"
  17443. abstract="false" native="false" synchronized="false"
  17444. static="false" final="false" visibility="public"
  17445. deprecated="not deprecated">
  17446. <param name="verifyChecksum" type="boolean"/>
  17447. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17448. <exception name="IOException" type="java.io.IOException"/>
  17449. </method>
  17450. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  17451. abstract="false" native="false" synchronized="false"
  17452. static="false" final="false" visibility="public"
  17453. deprecated="not deprecated">
  17454. </method>
  17455. <method name="getDelegationTokens" return="java.util.List"
  17456. abstract="false" native="false" synchronized="false"
  17457. static="false" final="false" visibility="public"
  17458. deprecated="not deprecated">
  17459. <param name="renewer" type="java.lang.String"/>
  17460. <exception name="IOException" type="java.io.IOException"/>
  17461. </method>
  17462. <method name="isValidName" return="boolean"
  17463. abstract="false" native="false" synchronized="false"
  17464. static="false" final="false" visibility="public"
  17465. deprecated="not deprecated">
  17466. <param name="src" type="java.lang.String"/>
  17467. </method>
  17468. <method name="modifyAclEntries"
  17469. abstract="false" native="false" synchronized="false"
  17470. static="false" final="false" visibility="public"
  17471. deprecated="not deprecated">
  17472. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17473. <param name="aclSpec" type="java.util.List"/>
  17474. <exception name="IOException" type="java.io.IOException"/>
  17475. </method>
  17476. <method name="removeAclEntries"
  17477. abstract="false" native="false" synchronized="false"
  17478. static="false" final="false" visibility="public"
  17479. deprecated="not deprecated">
  17480. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17481. <param name="aclSpec" type="java.util.List"/>
  17482. <exception name="IOException" type="java.io.IOException"/>
  17483. </method>
  17484. <method name="removeDefaultAcl"
  17485. abstract="false" native="false" synchronized="false"
  17486. static="false" final="false" visibility="public"
  17487. deprecated="not deprecated">
  17488. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17489. <exception name="IOException" type="java.io.IOException"/>
  17490. </method>
  17491. <method name="removeAcl"
  17492. abstract="false" native="false" synchronized="false"
  17493. static="false" final="false" visibility="public"
  17494. deprecated="not deprecated">
  17495. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17496. <exception name="IOException" type="java.io.IOException"/>
  17497. </method>
  17498. <method name="setAcl"
  17499. abstract="false" native="false" synchronized="false"
  17500. static="false" final="false" visibility="public"
  17501. deprecated="not deprecated">
  17502. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17503. <param name="aclSpec" type="java.util.List"/>
  17504. <exception name="IOException" type="java.io.IOException"/>
  17505. </method>
  17506. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  17507. abstract="false" native="false" synchronized="false"
  17508. static="false" final="false" visibility="public"
  17509. deprecated="not deprecated">
  17510. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17511. <exception name="IOException" type="java.io.IOException"/>
  17512. </method>
  17513. <method name="setXAttr"
  17514. abstract="false" native="false" synchronized="false"
  17515. static="false" final="false" visibility="public"
  17516. deprecated="not deprecated">
  17517. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17518. <param name="name" type="java.lang.String"/>
  17519. <param name="value" type="byte[]"/>
  17520. <param name="flag" type="java.util.EnumSet"/>
  17521. <exception name="IOException" type="java.io.IOException"/>
  17522. </method>
  17523. <method name="getXAttr" return="byte[]"
  17524. abstract="false" native="false" synchronized="false"
  17525. static="false" final="false" visibility="public"
  17526. deprecated="not deprecated">
  17527. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17528. <param name="name" type="java.lang.String"/>
  17529. <exception name="IOException" type="java.io.IOException"/>
  17530. </method>
  17531. <method name="getXAttrs" return="java.util.Map"
  17532. abstract="false" native="false" synchronized="false"
  17533. static="false" final="false" visibility="public"
  17534. deprecated="not deprecated">
  17535. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17536. <exception name="IOException" type="java.io.IOException"/>
  17537. </method>
  17538. <method name="getXAttrs" return="java.util.Map"
  17539. abstract="false" native="false" synchronized="false"
  17540. static="false" final="false" visibility="public"
  17541. deprecated="not deprecated">
  17542. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17543. <param name="names" type="java.util.List"/>
  17544. <exception name="IOException" type="java.io.IOException"/>
  17545. </method>
  17546. <method name="listXAttrs" return="java.util.List"
  17547. abstract="false" native="false" synchronized="false"
  17548. static="false" final="false" visibility="public"
  17549. deprecated="not deprecated">
  17550. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17551. <exception name="IOException" type="java.io.IOException"/>
  17552. </method>
  17553. <method name="removeXAttr"
  17554. abstract="false" native="false" synchronized="false"
  17555. static="false" final="false" visibility="public"
  17556. deprecated="not deprecated">
  17557. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17558. <param name="name" type="java.lang.String"/>
  17559. <exception name="IOException" type="java.io.IOException"/>
  17560. </method>
  17561. <doc>
  17562. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  17563. mount table. The viewFs file system is implemented completely in memory on
  17564. the client side. The client-side mount table allows a client to provide a
  17565. customized view of a file system namespace that is composed from
  17566. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  17567. For example one could have a mount table that provides links such as
  17568. <ul>
  17569. <li> /user -> hdfs://nnContainingUserDir/user
  17570. <li> /project/foo -> hdfs://nnProject1/projects/foo
  17571. <li> /project/bar -> hdfs://nnProject2/projects/bar
  17572. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  17573. </ul>
  17574. ViewFs is specified with the following URI: <b>viewfs:///</b>
  17575. <p>
  17576. To use viewfs one would typically set the default file system in the
  17577. config (i.e. fs.default.name< = viewfs:///) along with the
  17578. mount table config variables as described below.
  17579. <p>
  17580. <b> ** Config variables to specify the mount table entries ** </b>
  17581. <p>
  17582. The file system is initialized from the standard Hadoop config through
  17583. config variables.
  17584. See {@link FsConstants} for URI and Scheme constants;
  17585. See {@link Constants} for config var constants;
  17586. see {@link ConfigUtil} for convenient lib.
  17587. <p>
  17588. All the mount table config entries for view fs are prefixed by
  17589. <b>fs.viewfs.mounttable.</b>
  17590. For example the above example can be specified with the following
  17591. config variables:
  17592. <ul>
  17593. <li> fs.viewfs.mounttable.default.link./user=
  17594. hdfs://nnContainingUserDir/user
  17595. <li> fs.viewfs.mounttable.default.link./project/foo=
  17596. hdfs://nnProject1/projects/foo
  17597. <li> fs.viewfs.mounttable.default.link./project/bar=
  17598. hdfs://nnProject2/projects/bar
  17599. <li> fs.viewfs.mounttable.default.link./tmp=
  17600. hdfs://nnTmp/privateTmpForUserXXX
  17601. </ul>
  17602. The default mount table (when no authority is specified) is
  17603. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  17604. The authority component of a URI can be used to specify a different mount
  17605. table. For example,
  17606. <ul>
  17607. <li> viewfs://sanjayMountable/
  17608. </ul>
  17609. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  17610. <p>
  17611. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  17612. <p>
  17613. One can also use "MergeMounts" to merge several directories (this is
  17614. sometimes called union-mounts or junction-mounts in the literature.
  17615. For example of the home directories are stored on say two file systems
  17616. (because they do not fit on one) then one could specify a mount
  17617. entry such as following merges two dirs:
  17618. <ul>
  17619. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  17620. </ul>
  17621. Such a mergeLink can be specified with the following config var where ","
  17622. is used as the separator for each of links to be merged:
  17623. <ul>
  17624. <li> fs.viewfs.mounttable.default.linkMerge./user=
  17625. hdfs://nnUser1/user,hdfs://nnUser1/user
  17626. </ul>
  17627. A special case of the merge mount is where mount table's root is merged
  17628. with the root (slash) of another file system:
  17629. <ul>
  17630. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  17631. </ul>
  17632. In this cases the root of the mount table is merged with the root of
  17633. <b>hdfs://nn99/ </b>]]>
  17634. </doc>
  17635. </class>
  17636. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  17637. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs.MountPoint -->
  17638. <class name="ViewFs.MountPoint" extends="java.lang.Object"
  17639. abstract="false"
  17640. static="true" final="false" visibility="public"
  17641. deprecated="not deprecated">
  17642. </class>
  17643. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs.MountPoint -->
  17644. </package>
  17645. <package name="org.apache.hadoop.ha">
  17646. <!-- start class org.apache.hadoop.ha.ActiveStandbyElector.ActiveNotFoundException -->
  17647. <class name="ActiveStandbyElector.ActiveNotFoundException" extends="java.lang.Exception"
  17648. abstract="false"
  17649. static="true" final="false" visibility="public"
  17650. deprecated="not deprecated">
  17651. <constructor name="ActiveStandbyElector.ActiveNotFoundException"
  17652. static="false" final="false" visibility="public"
  17653. deprecated="not deprecated">
  17654. </constructor>
  17655. <doc>
  17656. <![CDATA[Exception thrown when there is no active leader]]>
  17657. </doc>
  17658. </class>
  17659. <!-- end class org.apache.hadoop.ha.ActiveStandbyElector.ActiveNotFoundException -->
  17660. <!-- start interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback -->
  17661. <interface name="ActiveStandbyElector.ActiveStandbyElectorCallback" abstract="true"
  17662. static="true" final="false" visibility="public"
  17663. deprecated="not deprecated">
  17664. <method name="becomeActive"
  17665. abstract="false" native="false" synchronized="false"
  17666. static="false" final="false" visibility="public"
  17667. deprecated="not deprecated">
  17668. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  17669. <doc>
  17670. <![CDATA[This method is called when the app becomes the active leader.
  17671. If the service fails to become active, it should throw
  17672. ServiceFailedException. This will cause the elector to
  17673. sleep for a short period, then re-join the election.
  17674. Callback implementations are expected to manage their own
  17675. timeouts (e.g. when making an RPC to a remote node).]]>
  17676. </doc>
  17677. </method>
  17678. <method name="becomeStandby"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="false" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <doc>
  17683. <![CDATA[This method is called when the app becomes a standby]]>
  17684. </doc>
  17685. </method>
  17686. <method name="enterNeutralMode"
  17687. abstract="false" native="false" synchronized="false"
  17688. static="false" final="false" visibility="public"
  17689. deprecated="not deprecated">
  17690. <doc>
  17691. <![CDATA[If the elector gets disconnected from Zookeeper and does not know about
  17692. the lock state, then it will notify the service via the enterNeutralMode
  17693. interface. The service may choose to ignore this or stop doing state
  17694. changing operations. Upon reconnection, the elector verifies the leader
  17695. status and calls back on the becomeActive and becomeStandby app
  17696. interfaces. <br/>
  17697. Zookeeper disconnects can happen due to network issues or loss of
  17698. Zookeeper quorum. Thus enterNeutralMode can be used to guard against
  17699. split-brain issues. In such situations it might be prudent to call
  17700. becomeStandby too. However, such state change operations might be
  17701. expensive and enterNeutralMode can help guard against doing that for
  17702. transient issues.]]>
  17703. </doc>
  17704. </method>
  17705. <method name="notifyFatalError"
  17706. abstract="false" native="false" synchronized="false"
  17707. static="false" final="false" visibility="public"
  17708. deprecated="not deprecated">
  17709. <param name="errorMessage" type="java.lang.String"/>
  17710. <doc>
  17711. <![CDATA[If there is any fatal error (e.g. wrong ACL's, unexpected Zookeeper
  17712. errors or Zookeeper persistent unavailability) then notifyFatalError is
  17713. called to notify the app about it.]]>
  17714. </doc>
  17715. </method>
  17716. <method name="fenceOldActive"
  17717. abstract="false" native="false" synchronized="false"
  17718. static="false" final="false" visibility="public"
  17719. deprecated="not deprecated">
  17720. <param name="oldActiveData" type="byte[]"/>
  17721. <doc>
  17722. <![CDATA[If an old active has failed, rather than exited gracefully, then
  17723. the new active may need to take some fencing actions against it
  17724. before proceeding with failover.
  17725. @param oldActiveData the application data provided by the prior active]]>
  17726. </doc>
  17727. </method>
  17728. <doc>
  17729. <![CDATA[Callback interface to interact with the ActiveStandbyElector object. <br/>
  17730. The application will be notified with a callback only on state changes
  17731. (i.e. there will never be successive calls to becomeActive without an
  17732. intermediate call to enterNeutralMode). <br/>
  17733. The callbacks will be running on Zookeeper client library threads. The
  17734. application should return from these callbacks quickly so as not to impede
  17735. Zookeeper client library performance and notifications. The app will
  17736. typically remember the state change and return from the callback. It will
  17737. then proceed with implementing actions around that state change. It is
  17738. possible to be called back again while these actions are in flight and the
  17739. app should handle this scenario.]]>
  17740. </doc>
  17741. </interface>
  17742. <!-- end interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback -->
  17743. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  17744. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  17745. abstract="false"
  17746. static="false" final="false" visibility="public"
  17747. deprecated="not deprecated">
  17748. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  17749. static="false" final="false" visibility="public"
  17750. deprecated="not deprecated">
  17751. </constructor>
  17752. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  17753. static="false" final="false" visibility="public"
  17754. deprecated="not deprecated">
  17755. </constructor>
  17756. <doc>
  17757. <![CDATA[Indicates that the operator has specified an invalid configuration
  17758. for fencing methods.]]>
  17759. </doc>
  17760. </class>
  17761. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  17762. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  17763. <class name="FailoverFailedException" extends="java.lang.Exception"
  17764. abstract="false"
  17765. static="false" final="false" visibility="public"
  17766. deprecated="not deprecated">
  17767. <constructor name="FailoverFailedException" type="java.lang.String"
  17768. static="false" final="false" visibility="public"
  17769. deprecated="not deprecated">
  17770. </constructor>
  17771. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  17772. static="false" final="false" visibility="public"
  17773. deprecated="not deprecated">
  17774. </constructor>
  17775. <doc>
  17776. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  17777. </doc>
  17778. </class>
  17779. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  17780. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  17781. <interface name="FenceMethod" abstract="true"
  17782. static="false" final="false" visibility="public"
  17783. deprecated="not deprecated">
  17784. <method name="checkArgs"
  17785. abstract="false" native="false" synchronized="false"
  17786. static="false" final="false" visibility="public"
  17787. deprecated="not deprecated">
  17788. <param name="args" type="java.lang.String"/>
  17789. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  17790. <doc>
  17791. <![CDATA[Verify that the given fencing method's arguments are valid.
  17792. @param args the arguments provided in the configuration. This may
  17793. be null if the operator did not configure any arguments.
  17794. @throws BadFencingConfigurationException if the arguments are invalid]]>
  17795. </doc>
  17796. </method>
  17797. <method name="tryFence" return="boolean"
  17798. abstract="false" native="false" synchronized="false"
  17799. static="false" final="false" visibility="public"
  17800. deprecated="not deprecated">
  17801. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  17802. <param name="args" type="java.lang.String"/>
  17803. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  17804. <doc>
  17805. <![CDATA[Attempt to fence the target node.
  17806. @param serviceAddr the address (host:ipcport) of the service to fence
  17807. @param args the configured arguments, which were checked at startup by
  17808. {@link #checkArgs(String)}
  17809. @return true if fencing was successful, false if unsuccessful or
  17810. indeterminate
  17811. @throws BadFencingConfigurationException if the configuration was
  17812. determined to be invalid only at runtime]]>
  17813. </doc>
  17814. </method>
  17815. <doc>
  17816. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  17817. another node from making continued progress. This might be implemented
  17818. by killing a process on the other node, by denying the other node's
  17819. access to shared storage, or by accessing a PDU to cut the other node's
  17820. power.
  17821. <p>
  17822. Since these methods are often vendor- or device-specific, operators
  17823. may implement this interface in order to achieve fencing.
  17824. <p>
  17825. Fencing is configured by the operator as an ordered list of methods to
  17826. attempt. Each method will be tried in turn, and the next in the list
  17827. will only be attempted if the previous one fails. See {@link NodeFencer}
  17828. for more information.
  17829. <p>
  17830. If an implementation also implements {@link Configurable} then its
  17831. <code>setConf</code> method will be called upon instantiation.]]>
  17832. </doc>
  17833. </interface>
  17834. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  17835. <!-- start class org.apache.hadoop.ha.HAAdmin.UsageInfo -->
  17836. <class name="HAAdmin.UsageInfo" extends="java.lang.Object"
  17837. abstract="false"
  17838. static="true" final="false" visibility="protected"
  17839. deprecated="not deprecated">
  17840. <constructor name="HAAdmin.UsageInfo" type="java.lang.String, java.lang.String"
  17841. static="false" final="false" visibility="public"
  17842. deprecated="not deprecated">
  17843. </constructor>
  17844. <field name="args" type="java.lang.String"
  17845. transient="false" volatile="false"
  17846. static="false" final="true" visibility="public"
  17847. deprecated="not deprecated">
  17848. </field>
  17849. <field name="help" type="java.lang.String"
  17850. transient="false" volatile="false"
  17851. static="false" final="true" visibility="public"
  17852. deprecated="not deprecated">
  17853. </field>
  17854. </class>
  17855. <!-- end class org.apache.hadoop.ha.HAAdmin.UsageInfo -->
  17856. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  17857. <interface name="HAServiceProtocol" abstract="true"
  17858. static="false" final="false" visibility="public"
  17859. deprecated="not deprecated">
  17860. <method name="monitorHealth"
  17861. abstract="false" native="false" synchronized="false"
  17862. static="false" final="false" visibility="public"
  17863. deprecated="not deprecated">
  17864. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  17865. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17866. <exception name="IOException" type="java.io.IOException"/>
  17867. <doc>
  17868. <![CDATA[Monitor the health of service. This periodically called by the HA
  17869. frameworks to monitor the health of the service.
  17870. Service is expected to perform checks to ensure it is functional.
  17871. If the service is not healthy due to failure or partial failure,
  17872. it is expected to throw {@link HealthCheckFailedException}.
  17873. The definition of service not healthy is left to the service.
  17874. Note that when health check of an Active service fails,
  17875. failover to standby may be done.
  17876. @throws HealthCheckFailedException
  17877. if the health check of a service fails.
  17878. @throws AccessControlException
  17879. if access is denied.
  17880. @throws IOException
  17881. if other errors happen]]>
  17882. </doc>
  17883. </method>
  17884. <method name="transitionToActive"
  17885. abstract="false" native="false" synchronized="false"
  17886. static="false" final="false" visibility="public"
  17887. deprecated="not deprecated">
  17888. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17889. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  17890. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17891. <exception name="IOException" type="java.io.IOException"/>
  17892. <doc>
  17893. <![CDATA[Request service to transition to active state. No operation, if the
  17894. service is already in active state.
  17895. @throws ServiceFailedException
  17896. if transition from standby to active fails.
  17897. @throws AccessControlException
  17898. if access is denied.
  17899. @throws IOException
  17900. if other errors happen]]>
  17901. </doc>
  17902. </method>
  17903. <method name="transitionToStandby"
  17904. abstract="false" native="false" synchronized="false"
  17905. static="false" final="false" visibility="public"
  17906. deprecated="not deprecated">
  17907. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17908. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  17909. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17910. <exception name="IOException" type="java.io.IOException"/>
  17911. <doc>
  17912. <![CDATA[Request service to transition to standby state. No operation, if the
  17913. service is already in standby state.
  17914. @throws ServiceFailedException
  17915. if transition from active to standby fails.
  17916. @throws AccessControlException
  17917. if access is denied.
  17918. @throws IOException
  17919. if other errors happen]]>
  17920. </doc>
  17921. </method>
  17922. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  17923. abstract="false" native="false" synchronized="false"
  17924. static="false" final="false" visibility="public"
  17925. deprecated="not deprecated">
  17926. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17927. <exception name="IOException" type="java.io.IOException"/>
  17928. <doc>
  17929. <![CDATA[Return the current status of the service. The status indicates
  17930. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  17931. some additional information. {@see HAServiceStatus}
  17932. @throws AccessControlException
  17933. if access is denied.
  17934. @throws IOException
  17935. if other errors happen]]>
  17936. </doc>
  17937. </method>
  17938. <field name="versionID" type="long"
  17939. transient="false" volatile="false"
  17940. static="true" final="true" visibility="public"
  17941. deprecated="not deprecated">
  17942. <doc>
  17943. <![CDATA[Initial version of the protocol]]>
  17944. </doc>
  17945. </field>
  17946. <doc>
  17947. <![CDATA[Protocol interface that provides High Availability related primitives to
  17948. monitor and fail-over the service.
  17949. This interface could be used by HA frameworks to manage the service.]]>
  17950. </doc>
  17951. </interface>
  17952. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  17953. <!-- start class org.apache.hadoop.ha.HAServiceProtocol.HAServiceState -->
  17954. <class name="HAServiceProtocol.HAServiceState" extends="java.lang.Enum"
  17955. abstract="false"
  17956. static="true" final="true" visibility="public"
  17957. deprecated="not deprecated">
  17958. <method name="values" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState[]"
  17959. abstract="false" native="false" synchronized="false"
  17960. static="true" final="false" visibility="public"
  17961. deprecated="not deprecated">
  17962. </method>
  17963. <method name="valueOf" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  17964. abstract="false" native="false" synchronized="false"
  17965. static="true" final="false" visibility="public"
  17966. deprecated="not deprecated">
  17967. <param name="name" type="java.lang.String"/>
  17968. </method>
  17969. <method name="toString" return="java.lang.String"
  17970. abstract="false" native="false" synchronized="false"
  17971. static="false" final="false" visibility="public"
  17972. deprecated="not deprecated">
  17973. </method>
  17974. <doc>
  17975. <![CDATA[An HA service may be in active or standby state. During startup, it is in
  17976. an unknown INITIALIZING state. During shutdown, it is in the STOPPING state
  17977. and can no longer return to active/standby states.]]>
  17978. </doc>
  17979. </class>
  17980. <!-- end class org.apache.hadoop.ha.HAServiceProtocol.HAServiceState -->
  17981. <!-- start class org.apache.hadoop.ha.HAServiceProtocol.RequestSource -->
  17982. <class name="HAServiceProtocol.RequestSource" extends="java.lang.Enum"
  17983. abstract="false"
  17984. static="true" final="true" visibility="public"
  17985. deprecated="not deprecated">
  17986. <method name="values" return="org.apache.hadoop.ha.HAServiceProtocol.RequestSource[]"
  17987. abstract="false" native="false" synchronized="false"
  17988. static="true" final="false" visibility="public"
  17989. deprecated="not deprecated">
  17990. </method>
  17991. <method name="valueOf" return="org.apache.hadoop.ha.HAServiceProtocol.RequestSource"
  17992. abstract="false" native="false" synchronized="false"
  17993. static="true" final="false" visibility="public"
  17994. deprecated="not deprecated">
  17995. <param name="name" type="java.lang.String"/>
  17996. </method>
  17997. </class>
  17998. <!-- end class org.apache.hadoop.ha.HAServiceProtocol.RequestSource -->
  17999. <!-- start class org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo -->
  18000. <class name="HAServiceProtocol.StateChangeRequestInfo" extends="java.lang.Object"
  18001. abstract="false"
  18002. static="true" final="false" visibility="public"
  18003. deprecated="not deprecated">
  18004. <constructor name="HAServiceProtocol.StateChangeRequestInfo" type="org.apache.hadoop.ha.HAServiceProtocol.RequestSource"
  18005. static="false" final="false" visibility="public"
  18006. deprecated="not deprecated">
  18007. </constructor>
  18008. <method name="getSource" return="org.apache.hadoop.ha.HAServiceProtocol.RequestSource"
  18009. abstract="false" native="false" synchronized="false"
  18010. static="false" final="false" visibility="public"
  18011. deprecated="not deprecated">
  18012. </method>
  18013. <doc>
  18014. <![CDATA[Information describing the source for a request to change state.
  18015. This is used to differentiate requests from automatic vs CLI
  18016. failover controllers, and in the future may include epoch
  18017. information.]]>
  18018. </doc>
  18019. </class>
  18020. <!-- end class org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo -->
  18021. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  18022. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  18023. abstract="false"
  18024. static="false" final="false" visibility="public"
  18025. deprecated="not deprecated">
  18026. <constructor name="HAServiceProtocolHelper"
  18027. static="false" final="false" visibility="public"
  18028. deprecated="not deprecated">
  18029. </constructor>
  18030. <method name="monitorHealth"
  18031. abstract="false" native="false" synchronized="false"
  18032. static="true" final="false" visibility="public"
  18033. deprecated="not deprecated">
  18034. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  18035. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  18036. <exception name="IOException" type="java.io.IOException"/>
  18037. </method>
  18038. <method name="transitionToActive"
  18039. abstract="false" native="false" synchronized="false"
  18040. static="true" final="false" visibility="public"
  18041. deprecated="not deprecated">
  18042. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  18043. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  18044. <exception name="IOException" type="java.io.IOException"/>
  18045. </method>
  18046. <method name="transitionToStandby"
  18047. abstract="false" native="false" synchronized="false"
  18048. static="true" final="false" visibility="public"
  18049. deprecated="not deprecated">
  18050. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  18051. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  18052. <exception name="IOException" type="java.io.IOException"/>
  18053. </method>
  18054. <doc>
  18055. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  18056. unwraps the {@link RemoteException} to specific exceptions.]]>
  18057. </doc>
  18058. </class>
  18059. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  18060. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  18061. <class name="HAServiceTarget" extends="java.lang.Object"
  18062. abstract="true"
  18063. static="false" final="false" visibility="public"
  18064. deprecated="not deprecated">
  18065. <constructor name="HAServiceTarget"
  18066. static="false" final="false" visibility="public"
  18067. deprecated="not deprecated">
  18068. </constructor>
  18069. <method name="getAddress" return="java.net.InetSocketAddress"
  18070. abstract="true" native="false" synchronized="false"
  18071. static="false" final="false" visibility="public"
  18072. deprecated="not deprecated">
  18073. <doc>
  18074. <![CDATA[@return the IPC address of the target node.]]>
  18075. </doc>
  18076. </method>
  18077. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  18078. abstract="true" native="false" synchronized="false"
  18079. static="false" final="false" visibility="public"
  18080. deprecated="not deprecated">
  18081. <doc>
  18082. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  18083. </doc>
  18084. </method>
  18085. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  18086. abstract="true" native="false" synchronized="false"
  18087. static="false" final="false" visibility="public"
  18088. deprecated="not deprecated">
  18089. <doc>
  18090. <![CDATA[@return a Fencer implementation configured for this target node]]>
  18091. </doc>
  18092. </method>
  18093. <method name="checkFencingConfigured"
  18094. abstract="true" native="false" synchronized="false"
  18095. static="false" final="false" visibility="public"
  18096. deprecated="not deprecated">
  18097. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  18098. <doc>
  18099. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  18100. appears to be invalid. This is divorced from the above
  18101. {@link #getFencer()} method so that the configuration can be checked
  18102. during the pre-flight phase of failover.]]>
  18103. </doc>
  18104. </method>
  18105. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  18106. abstract="false" native="false" synchronized="false"
  18107. static="false" final="false" visibility="public"
  18108. deprecated="not deprecated">
  18109. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18110. <param name="timeoutMs" type="int"/>
  18111. <exception name="IOException" type="java.io.IOException"/>
  18112. <doc>
  18113. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  18114. </doc>
  18115. </method>
  18116. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  18117. abstract="false" native="false" synchronized="false"
  18118. static="false" final="false" visibility="public"
  18119. deprecated="not deprecated">
  18120. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18121. <param name="timeoutMs" type="int"/>
  18122. <exception name="IOException" type="java.io.IOException"/>
  18123. <doc>
  18124. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  18125. </doc>
  18126. </method>
  18127. <method name="getFencingParameters" return="java.util.Map"
  18128. abstract="false" native="false" synchronized="false"
  18129. static="false" final="true" visibility="public"
  18130. deprecated="not deprecated">
  18131. </method>
  18132. <method name="addFencingParameters"
  18133. abstract="false" native="false" synchronized="false"
  18134. static="false" final="false" visibility="protected"
  18135. deprecated="not deprecated">
  18136. <param name="ret" type="java.util.Map"/>
  18137. <doc>
  18138. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  18139. expose to fencing implementations/scripts. Fencing methods are free
  18140. to use this map as they see fit -- notably, the shell script
  18141. implementation takes each entry, prepends 'target_', substitutes
  18142. '_' for '.', and adds it to the environment of the script.
  18143. Subclass implementations should be sure to delegate to the superclass
  18144. implementation as well as adding their own keys.
  18145. @param ret map which can be mutated to pass parameters to the fencer]]>
  18146. </doc>
  18147. </method>
  18148. <method name="isAutoFailoverEnabled" return="boolean"
  18149. abstract="false" native="false" synchronized="false"
  18150. static="false" final="false" visibility="public"
  18151. deprecated="not deprecated">
  18152. <doc>
  18153. <![CDATA[@return true if auto failover should be considered enabled]]>
  18154. </doc>
  18155. </method>
  18156. <doc>
  18157. <![CDATA[Represents a target of the client side HA administration commands.]]>
  18158. </doc>
  18159. </class>
  18160. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  18161. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  18162. <class name="HealthCheckFailedException" extends="java.io.IOException"
  18163. abstract="false"
  18164. static="false" final="false" visibility="public"
  18165. deprecated="not deprecated">
  18166. <constructor name="HealthCheckFailedException" type="java.lang.String"
  18167. static="false" final="false" visibility="public"
  18168. deprecated="not deprecated">
  18169. </constructor>
  18170. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  18171. static="false" final="false" visibility="public"
  18172. deprecated="not deprecated">
  18173. </constructor>
  18174. <doc>
  18175. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  18176. </doc>
  18177. </class>
  18178. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  18179. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  18180. <class name="ServiceFailedException" extends="java.io.IOException"
  18181. abstract="false"
  18182. static="false" final="false" visibility="public"
  18183. deprecated="not deprecated">
  18184. <constructor name="ServiceFailedException" type="java.lang.String"
  18185. static="false" final="false" visibility="public"
  18186. deprecated="not deprecated">
  18187. </constructor>
  18188. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  18189. static="false" final="false" visibility="public"
  18190. deprecated="not deprecated">
  18191. </constructor>
  18192. <doc>
  18193. <![CDATA[Exception thrown to indicate that an operation performed
  18194. to modify the state of a service or application failed.]]>
  18195. </doc>
  18196. </class>
  18197. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  18198. <!-- start class org.apache.hadoop.ha.ShellCommandFencer -->
  18199. <class name="ShellCommandFencer" extends="org.apache.hadoop.conf.Configured"
  18200. abstract="false"
  18201. static="false" final="false" visibility="public"
  18202. deprecated="not deprecated">
  18203. <implements name="org.apache.hadoop.ha.FenceMethod"/>
  18204. <constructor name="ShellCommandFencer"
  18205. static="false" final="false" visibility="public"
  18206. deprecated="not deprecated">
  18207. </constructor>
  18208. <method name="checkArgs"
  18209. abstract="false" native="false" synchronized="false"
  18210. static="false" final="false" visibility="public"
  18211. deprecated="not deprecated">
  18212. <param name="args" type="java.lang.String"/>
  18213. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  18214. </method>
  18215. <method name="tryFence" return="boolean"
  18216. abstract="false" native="false" synchronized="false"
  18217. static="false" final="false" visibility="public"
  18218. deprecated="not deprecated">
  18219. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  18220. <param name="cmd" type="java.lang.String"/>
  18221. </method>
  18222. <doc>
  18223. <![CDATA[Fencing method that runs a shell command. It should be specified
  18224. in the fencing configuration like:<br>
  18225. <code>
  18226. shell(/path/to/my/script.sh arg1 arg2 ...)
  18227. </code><br>
  18228. The string between '(' and ')' is passed directly to a bash shell
  18229. (cmd.exe on Windows) and may not include any closing parentheses.<p>
  18230. The shell command will be run with an environment set up to contain
  18231. all of the current Hadoop configuration variables, with the '_' character
  18232. replacing any '.' characters in the configuration keys.<p>
  18233. If the shell command returns an exit code of 0, the fencing is
  18234. determined to be successful. If it returns any other exit code, the
  18235. fencing was not successful and the next fencing method in the list
  18236. will be attempted.<p>
  18237. <em>Note:</em> this fencing method does not implement any timeout.
  18238. If timeouts are necessary, they should be implemented in the shell
  18239. script itself (eg by forking a subshell to kill its parent in
  18240. some number of seconds).]]>
  18241. </doc>
  18242. </class>
  18243. <!-- end class org.apache.hadoop.ha.ShellCommandFencer -->
  18244. <!-- start class org.apache.hadoop.ha.SshFenceByTcpPort -->
  18245. <class name="SshFenceByTcpPort" extends="org.apache.hadoop.conf.Configured"
  18246. abstract="false"
  18247. static="false" final="false" visibility="public"
  18248. deprecated="not deprecated">
  18249. <implements name="org.apache.hadoop.ha.FenceMethod"/>
  18250. <constructor name="SshFenceByTcpPort"
  18251. static="false" final="false" visibility="public"
  18252. deprecated="not deprecated">
  18253. </constructor>
  18254. <method name="checkArgs"
  18255. abstract="false" native="false" synchronized="false"
  18256. static="false" final="false" visibility="public"
  18257. deprecated="not deprecated">
  18258. <param name="argStr" type="java.lang.String"/>
  18259. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  18260. <doc>
  18261. <![CDATA[Verify that the argument, if given, in the conf is parseable.]]>
  18262. </doc>
  18263. </method>
  18264. <method name="tryFence" return="boolean"
  18265. abstract="false" native="false" synchronized="false"
  18266. static="false" final="false" visibility="public"
  18267. deprecated="not deprecated">
  18268. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  18269. <param name="argsStr" type="java.lang.String"/>
  18270. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  18271. </method>
  18272. <doc>
  18273. <![CDATA[This fencing implementation sshes to the target node and uses
  18274. <code>fuser</code> to kill the process listening on the service's
  18275. TCP port. This is more accurate than using "jps" since it doesn't
  18276. require parsing, and will work even if there are multiple service
  18277. processes running on the same machine.<p>
  18278. It returns a successful status code if:
  18279. <ul>
  18280. <li><code>fuser</code> indicates it successfully killed a process, <em>or</em>
  18281. <li><code>nc -z</code> indicates that nothing is listening on the target port
  18282. </ul>
  18283. <p>
  18284. This fencing mechanism is configured as following in the fencing method
  18285. list:
  18286. <code>sshfence([[username][:ssh-port]])</code>
  18287. where the optional argument specifies the username and port to use
  18288. with ssh.
  18289. <p>
  18290. In order to achieve passwordless SSH, the operator must also configure
  18291. <code>dfs.ha.fencing.ssh.private-key-files<code> to point to an
  18292. SSH key that has passphrase-less access to the given username and host.]]>
  18293. </doc>
  18294. </class>
  18295. <!-- end class org.apache.hadoop.ha.SshFenceByTcpPort -->
  18296. </package>
  18297. <package name="org.apache.hadoop.ha.protocolPB">
  18298. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  18299. <interface name="HAServiceProtocolPB" abstract="true"
  18300. static="false" final="false" visibility="public"
  18301. deprecated="not deprecated">
  18302. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  18303. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  18304. </interface>
  18305. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  18306. <!-- start class org.apache.hadoop.ha.protocolPB.ZKFCProtocolClientSideTranslatorPB -->
  18307. <class name="ZKFCProtocolClientSideTranslatorPB" extends="java.lang.Object"
  18308. abstract="false"
  18309. static="false" final="false" visibility="public"
  18310. deprecated="not deprecated">
  18311. <implements name="org.apache.hadoop.ha.ZKFCProtocol"/>
  18312. <implements name="java.io.Closeable"/>
  18313. <implements name="org.apache.hadoop.ipc.ProtocolTranslator"/>
  18314. <constructor name="ZKFCProtocolClientSideTranslatorPB" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory, int"
  18315. static="false" final="false" visibility="public"
  18316. deprecated="not deprecated">
  18317. <exception name="IOException" type="java.io.IOException"/>
  18318. </constructor>
  18319. <method name="cedeActive"
  18320. abstract="false" native="false" synchronized="false"
  18321. static="false" final="false" visibility="public"
  18322. deprecated="not deprecated">
  18323. <param name="millisToCede" type="int"/>
  18324. <exception name="IOException" type="java.io.IOException"/>
  18325. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18326. </method>
  18327. <method name="gracefulFailover"
  18328. abstract="false" native="false" synchronized="false"
  18329. static="false" final="false" visibility="public"
  18330. deprecated="not deprecated">
  18331. <exception name="IOException" type="java.io.IOException"/>
  18332. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18333. </method>
  18334. <method name="close"
  18335. abstract="false" native="false" synchronized="false"
  18336. static="false" final="false" visibility="public"
  18337. deprecated="not deprecated">
  18338. </method>
  18339. <method name="getUnderlyingProxyObject" return="java.lang.Object"
  18340. abstract="false" native="false" synchronized="false"
  18341. static="false" final="false" visibility="public"
  18342. deprecated="not deprecated">
  18343. </method>
  18344. </class>
  18345. <!-- end class org.apache.hadoop.ha.protocolPB.ZKFCProtocolClientSideTranslatorPB -->
  18346. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  18347. <interface name="ZKFCProtocolPB" abstract="true"
  18348. static="false" final="false" visibility="public"
  18349. deprecated="not deprecated">
  18350. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  18351. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  18352. </interface>
  18353. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  18354. </package>
  18355. <package name="org.apache.hadoop.http.lib">
  18356. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  18357. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  18358. abstract="false"
  18359. static="false" final="false" visibility="public"
  18360. deprecated="not deprecated">
  18361. <constructor name="StaticUserWebFilter"
  18362. static="false" final="false" visibility="public"
  18363. deprecated="not deprecated">
  18364. </constructor>
  18365. <method name="initFilter"
  18366. abstract="false" native="false" synchronized="false"
  18367. static="false" final="false" visibility="public"
  18368. deprecated="not deprecated">
  18369. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  18370. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18371. </method>
  18372. <doc>
  18373. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  18374. so that the web UI is usable for a secure cluster without authentication.]]>
  18375. </doc>
  18376. </class>
  18377. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  18378. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  18379. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  18380. abstract="false"
  18381. static="true" final="false" visibility="public"
  18382. deprecated="not deprecated">
  18383. <implements name="javax.servlet.Filter"/>
  18384. <constructor name="StaticUserWebFilter.StaticUserFilter"
  18385. static="false" final="false" visibility="public"
  18386. deprecated="not deprecated">
  18387. </constructor>
  18388. <method name="destroy"
  18389. abstract="false" native="false" synchronized="false"
  18390. static="false" final="false" visibility="public"
  18391. deprecated="not deprecated">
  18392. </method>
  18393. <method name="doFilter"
  18394. abstract="false" native="false" synchronized="false"
  18395. static="false" final="false" visibility="public"
  18396. deprecated="not deprecated">
  18397. <param name="request" type="javax.servlet.ServletRequest"/>
  18398. <param name="response" type="javax.servlet.ServletResponse"/>
  18399. <param name="chain" type="javax.servlet.FilterChain"/>
  18400. <exception name="IOException" type="java.io.IOException"/>
  18401. <exception name="ServletException" type="javax.servlet.ServletException"/>
  18402. </method>
  18403. <method name="init"
  18404. abstract="false" native="false" synchronized="false"
  18405. static="false" final="false" visibility="public"
  18406. deprecated="not deprecated">
  18407. <param name="conf" type="javax.servlet.FilterConfig"/>
  18408. <exception name="ServletException" type="javax.servlet.ServletException"/>
  18409. </method>
  18410. </class>
  18411. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  18412. <doc>
  18413. <![CDATA[This package provides user-selectable (via configuration) classes that add
  18414. functionality to the web UI. They are configured as a list of classes in the
  18415. configuration parameter <b>hadoop.http.filter.initializers</b>.
  18416. <ul>
  18417. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  18418. users a static configured user.
  18419. </ul>]]>
  18420. </doc>
  18421. </package>
  18422. <package name="org.apache.hadoop.io">
  18423. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  18424. <class name="AbstractMapWritable" extends="java.lang.Object"
  18425. abstract="true"
  18426. static="false" final="false" visibility="public"
  18427. deprecated="not deprecated">
  18428. <implements name="org.apache.hadoop.io.Writable"/>
  18429. <implements name="org.apache.hadoop.conf.Configurable"/>
  18430. <constructor name="AbstractMapWritable"
  18431. static="false" final="false" visibility="protected"
  18432. deprecated="not deprecated">
  18433. <doc>
  18434. <![CDATA[constructor.]]>
  18435. </doc>
  18436. </constructor>
  18437. <method name="addToMap"
  18438. abstract="false" native="false" synchronized="true"
  18439. static="false" final="false" visibility="protected"
  18440. deprecated="not deprecated">
  18441. <param name="clazz" type="java.lang.Class"/>
  18442. <doc>
  18443. <![CDATA[Add a Class to the maps if it is not already present.]]>
  18444. </doc>
  18445. </method>
  18446. <method name="getClass" return="java.lang.Class"
  18447. abstract="false" native="false" synchronized="false"
  18448. static="false" final="false" visibility="protected"
  18449. deprecated="not deprecated">
  18450. <param name="id" type="byte"/>
  18451. <doc>
  18452. <![CDATA[@return the Class class for the specified id]]>
  18453. </doc>
  18454. </method>
  18455. <method name="getId" return="byte"
  18456. abstract="false" native="false" synchronized="false"
  18457. static="false" final="false" visibility="protected"
  18458. deprecated="not deprecated">
  18459. <param name="clazz" type="java.lang.Class"/>
  18460. <doc>
  18461. <![CDATA[@return the id for the specified Class]]>
  18462. </doc>
  18463. </method>
  18464. <method name="copy"
  18465. abstract="false" native="false" synchronized="true"
  18466. static="false" final="false" visibility="protected"
  18467. deprecated="not deprecated">
  18468. <param name="other" type="org.apache.hadoop.io.Writable"/>
  18469. <doc>
  18470. <![CDATA[Used by child copy constructors.]]>
  18471. </doc>
  18472. </method>
  18473. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18474. abstract="false" native="false" synchronized="false"
  18475. static="false" final="false" visibility="public"
  18476. deprecated="not deprecated">
  18477. <doc>
  18478. <![CDATA[@return the conf]]>
  18479. </doc>
  18480. </method>
  18481. <method name="setConf"
  18482. abstract="false" native="false" synchronized="false"
  18483. static="false" final="false" visibility="public"
  18484. deprecated="not deprecated">
  18485. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18486. <doc>
  18487. <![CDATA[@param conf the conf to set]]>
  18488. </doc>
  18489. </method>
  18490. <method name="write"
  18491. abstract="false" native="false" synchronized="false"
  18492. static="false" final="false" visibility="public"
  18493. deprecated="not deprecated">
  18494. <param name="out" type="java.io.DataOutput"/>
  18495. <exception name="IOException" type="java.io.IOException"/>
  18496. </method>
  18497. <method name="readFields"
  18498. abstract="false" native="false" synchronized="false"
  18499. static="false" final="false" visibility="public"
  18500. deprecated="not deprecated">
  18501. <param name="in" type="java.io.DataInput"/>
  18502. <exception name="IOException" type="java.io.IOException"/>
  18503. </method>
  18504. <doc>
  18505. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  18506. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  18507. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  18508. maps travel with the class instead of being static.
  18509. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  18510. in any specific map instance.]]>
  18511. </doc>
  18512. </class>
  18513. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  18514. <!-- start class org.apache.hadoop.io.ArrayFile -->
  18515. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  18516. abstract="false"
  18517. static="false" final="false" visibility="public"
  18518. deprecated="not deprecated">
  18519. <constructor name="ArrayFile"
  18520. static="false" final="false" visibility="protected"
  18521. deprecated="not deprecated">
  18522. </constructor>
  18523. <doc>
  18524. <![CDATA[A dense file-based mapping from integers to values.]]>
  18525. </doc>
  18526. </class>
  18527. <!-- end class org.apache.hadoop.io.ArrayFile -->
  18528. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  18529. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  18530. abstract="false"
  18531. static="true" final="false" visibility="public"
  18532. deprecated="not deprecated">
  18533. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  18534. static="false" final="false" visibility="public"
  18535. deprecated="not deprecated">
  18536. <exception name="IOException" type="java.io.IOException"/>
  18537. <doc>
  18538. <![CDATA[Construct an array reader for the named file.]]>
  18539. </doc>
  18540. </constructor>
  18541. <method name="seek"
  18542. abstract="false" native="false" synchronized="true"
  18543. static="false" final="false" visibility="public"
  18544. deprecated="not deprecated">
  18545. <param name="n" type="long"/>
  18546. <exception name="IOException" type="java.io.IOException"/>
  18547. <doc>
  18548. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  18549. </doc>
  18550. </method>
  18551. <method name="next" return="org.apache.hadoop.io.Writable"
  18552. abstract="false" native="false" synchronized="true"
  18553. static="false" final="false" visibility="public"
  18554. deprecated="not deprecated">
  18555. <param name="value" type="org.apache.hadoop.io.Writable"/>
  18556. <exception name="IOException" type="java.io.IOException"/>
  18557. <doc>
  18558. <![CDATA[Read and return the next value in the file.]]>
  18559. </doc>
  18560. </method>
  18561. <method name="key" return="long"
  18562. abstract="false" native="false" synchronized="true"
  18563. static="false" final="false" visibility="public"
  18564. deprecated="not deprecated">
  18565. <exception name="IOException" type="java.io.IOException"/>
  18566. <doc>
  18567. <![CDATA[Returns the key associated with the most recent call to {@link
  18568. #seek(long)}, {@link #next(Writable)}, or {@link
  18569. #get(long,Writable)}.]]>
  18570. </doc>
  18571. </method>
  18572. <method name="get" return="org.apache.hadoop.io.Writable"
  18573. abstract="false" native="false" synchronized="true"
  18574. static="false" final="false" visibility="public"
  18575. deprecated="not deprecated">
  18576. <param name="n" type="long"/>
  18577. <param name="value" type="org.apache.hadoop.io.Writable"/>
  18578. <exception name="IOException" type="java.io.IOException"/>
  18579. <doc>
  18580. <![CDATA[Return the <code>n</code>th value in the file.]]>
  18581. </doc>
  18582. </method>
  18583. <doc>
  18584. <![CDATA[Provide access to an existing array file.]]>
  18585. </doc>
  18586. </class>
  18587. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  18588. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  18589. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  18590. abstract="false"
  18591. static="true" final="false" visibility="public"
  18592. deprecated="not deprecated">
  18593. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  18594. static="false" final="false" visibility="public"
  18595. deprecated="not deprecated">
  18596. <exception name="IOException" type="java.io.IOException"/>
  18597. <doc>
  18598. <![CDATA[Create the named file for values of the named class.]]>
  18599. </doc>
  18600. </constructor>
  18601. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  18602. static="false" final="false" visibility="public"
  18603. deprecated="not deprecated">
  18604. <exception name="IOException" type="java.io.IOException"/>
  18605. <doc>
  18606. <![CDATA[Create the named file for values of the named class.]]>
  18607. </doc>
  18608. </constructor>
  18609. <method name="append"
  18610. abstract="false" native="false" synchronized="true"
  18611. static="false" final="false" visibility="public"
  18612. deprecated="not deprecated">
  18613. <param name="value" type="org.apache.hadoop.io.Writable"/>
  18614. <exception name="IOException" type="java.io.IOException"/>
  18615. <doc>
  18616. <![CDATA[Append a value to the file.]]>
  18617. </doc>
  18618. </method>
  18619. <doc>
  18620. <![CDATA[Write a new array file.]]>
  18621. </doc>
  18622. </class>
  18623. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  18624. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  18625. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  18626. abstract="false"
  18627. static="false" final="false" visibility="public"
  18628. deprecated="not deprecated">
  18629. <implements name="org.apache.hadoop.io.Writable"/>
  18630. <constructor name="ArrayPrimitiveWritable"
  18631. static="false" final="false" visibility="public"
  18632. deprecated="not deprecated">
  18633. <doc>
  18634. <![CDATA[Construct an empty instance, for use during Writable read]]>
  18635. </doc>
  18636. </constructor>
  18637. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  18638. static="false" final="false" visibility="public"
  18639. deprecated="not deprecated">
  18640. <doc>
  18641. <![CDATA[Construct an instance of known type but no value yet
  18642. for use with type-specific wrapper classes]]>
  18643. </doc>
  18644. </constructor>
  18645. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  18646. static="false" final="false" visibility="public"
  18647. deprecated="not deprecated">
  18648. <doc>
  18649. <![CDATA[Wrap an existing array of primitives
  18650. @param value - array of primitives]]>
  18651. </doc>
  18652. </constructor>
  18653. <method name="get" return="java.lang.Object"
  18654. abstract="false" native="false" synchronized="false"
  18655. static="false" final="false" visibility="public"
  18656. deprecated="not deprecated">
  18657. <doc>
  18658. <![CDATA[Get the original array.
  18659. Client must cast it back to type componentType[]
  18660. (or may use type-specific wrapper classes).
  18661. @return - original array as Object]]>
  18662. </doc>
  18663. </method>
  18664. <method name="getComponentType" return="java.lang.Class"
  18665. abstract="false" native="false" synchronized="false"
  18666. static="false" final="false" visibility="public"
  18667. deprecated="not deprecated">
  18668. </method>
  18669. <method name="getDeclaredComponentType" return="java.lang.Class"
  18670. abstract="false" native="false" synchronized="false"
  18671. static="false" final="false" visibility="public"
  18672. deprecated="not deprecated">
  18673. </method>
  18674. <method name="isDeclaredComponentType" return="boolean"
  18675. abstract="false" native="false" synchronized="false"
  18676. static="false" final="false" visibility="public"
  18677. deprecated="not deprecated">
  18678. <param name="componentType" type="java.lang.Class"/>
  18679. </method>
  18680. <method name="set"
  18681. abstract="false" native="false" synchronized="false"
  18682. static="false" final="false" visibility="public"
  18683. deprecated="not deprecated">
  18684. <param name="value" type="java.lang.Object"/>
  18685. </method>
  18686. <method name="write"
  18687. abstract="false" native="false" synchronized="false"
  18688. static="false" final="false" visibility="public"
  18689. deprecated="not deprecated">
  18690. <param name="out" type="java.io.DataOutput"/>
  18691. <exception name="IOException" type="java.io.IOException"/>
  18692. </method>
  18693. <method name="readFields"
  18694. abstract="false" native="false" synchronized="false"
  18695. static="false" final="false" visibility="public"
  18696. deprecated="not deprecated">
  18697. <param name="in" type="java.io.DataInput"/>
  18698. <exception name="IOException" type="java.io.IOException"/>
  18699. </method>
  18700. <doc>
  18701. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  18702. an array of primitives (e.g., int[], long[], etc.), with optimized
  18703. wire format, and without creating new objects per element.
  18704. This is a wrapper class only; it does not make a copy of the
  18705. underlying array.]]>
  18706. </doc>
  18707. </class>
  18708. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  18709. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  18710. <class name="ArrayWritable" extends="java.lang.Object"
  18711. abstract="false"
  18712. static="false" final="false" visibility="public"
  18713. deprecated="not deprecated">
  18714. <implements name="org.apache.hadoop.io.Writable"/>
  18715. <constructor name="ArrayWritable" type="java.lang.Class"
  18716. static="false" final="false" visibility="public"
  18717. deprecated="not deprecated">
  18718. </constructor>
  18719. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  18720. static="false" final="false" visibility="public"
  18721. deprecated="not deprecated">
  18722. </constructor>
  18723. <constructor name="ArrayWritable" type="java.lang.String[]"
  18724. static="false" final="false" visibility="public"
  18725. deprecated="not deprecated">
  18726. </constructor>
  18727. <method name="getValueClass" return="java.lang.Class"
  18728. abstract="false" native="false" synchronized="false"
  18729. static="false" final="false" visibility="public"
  18730. deprecated="not deprecated">
  18731. </method>
  18732. <method name="toStrings" return="java.lang.String[]"
  18733. abstract="false" native="false" synchronized="false"
  18734. static="false" final="false" visibility="public"
  18735. deprecated="not deprecated">
  18736. </method>
  18737. <method name="toArray" return="java.lang.Object"
  18738. abstract="false" native="false" synchronized="false"
  18739. static="false" final="false" visibility="public"
  18740. deprecated="not deprecated">
  18741. </method>
  18742. <method name="set"
  18743. abstract="false" native="false" synchronized="false"
  18744. static="false" final="false" visibility="public"
  18745. deprecated="not deprecated">
  18746. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  18747. </method>
  18748. <method name="get" return="org.apache.hadoop.io.Writable[]"
  18749. abstract="false" native="false" synchronized="false"
  18750. static="false" final="false" visibility="public"
  18751. deprecated="not deprecated">
  18752. </method>
  18753. <method name="readFields"
  18754. abstract="false" native="false" synchronized="false"
  18755. static="false" final="false" visibility="public"
  18756. deprecated="not deprecated">
  18757. <param name="in" type="java.io.DataInput"/>
  18758. <exception name="IOException" type="java.io.IOException"/>
  18759. </method>
  18760. <method name="write"
  18761. abstract="false" native="false" synchronized="false"
  18762. static="false" final="false" visibility="public"
  18763. deprecated="not deprecated">
  18764. <param name="out" type="java.io.DataOutput"/>
  18765. <exception name="IOException" type="java.io.IOException"/>
  18766. </method>
  18767. <doc>
  18768. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  18769. writable must all be instances of the same class. If this writable will be
  18770. the input for a Reducer, you will need to create a subclass that sets the
  18771. value to be of the proper type.
  18772. For example:
  18773. <code>
  18774. public class IntArrayWritable extends ArrayWritable {
  18775. public IntArrayWritable() {
  18776. super(IntWritable.class);
  18777. }
  18778. }
  18779. </code>]]>
  18780. </doc>
  18781. </class>
  18782. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  18783. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  18784. <class name="BinaryComparable" extends="java.lang.Object"
  18785. abstract="true"
  18786. static="false" final="false" visibility="public"
  18787. deprecated="not deprecated">
  18788. <implements name="java.lang.Comparable"/>
  18789. <constructor name="BinaryComparable"
  18790. static="false" final="false" visibility="public"
  18791. deprecated="not deprecated">
  18792. </constructor>
  18793. <method name="getLength" return="int"
  18794. abstract="true" native="false" synchronized="false"
  18795. static="false" final="false" visibility="public"
  18796. deprecated="not deprecated">
  18797. <doc>
  18798. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  18799. </doc>
  18800. </method>
  18801. <method name="getBytes" return="byte[]"
  18802. abstract="true" native="false" synchronized="false"
  18803. static="false" final="false" visibility="public"
  18804. deprecated="not deprecated">
  18805. <doc>
  18806. <![CDATA[Return representative byte array for this instance.]]>
  18807. </doc>
  18808. </method>
  18809. <method name="compareTo" return="int"
  18810. abstract="false" native="false" synchronized="false"
  18811. static="false" final="false" visibility="public"
  18812. deprecated="not deprecated">
  18813. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  18814. <doc>
  18815. <![CDATA[Compare bytes from {#getBytes()}.
  18816. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  18817. </doc>
  18818. </method>
  18819. <method name="compareTo" return="int"
  18820. abstract="false" native="false" synchronized="false"
  18821. static="false" final="false" visibility="public"
  18822. deprecated="not deprecated">
  18823. <param name="other" type="byte[]"/>
  18824. <param name="off" type="int"/>
  18825. <param name="len" type="int"/>
  18826. <doc>
  18827. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  18828. </doc>
  18829. </method>
  18830. <method name="equals" return="boolean"
  18831. abstract="false" native="false" synchronized="false"
  18832. static="false" final="false" visibility="public"
  18833. deprecated="not deprecated">
  18834. <param name="other" type="java.lang.Object"/>
  18835. <doc>
  18836. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  18837. </doc>
  18838. </method>
  18839. <method name="hashCode" return="int"
  18840. abstract="false" native="false" synchronized="false"
  18841. static="false" final="false" visibility="public"
  18842. deprecated="not deprecated">
  18843. <doc>
  18844. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  18845. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  18846. </doc>
  18847. </method>
  18848. <doc>
  18849. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  18850. types supporting ordering/permutation by a representative set of bytes.]]>
  18851. </doc>
  18852. </class>
  18853. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  18854. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  18855. <class name="BloomMapFile" extends="java.lang.Object"
  18856. abstract="false"
  18857. static="false" final="false" visibility="public"
  18858. deprecated="not deprecated">
  18859. <constructor name="BloomMapFile"
  18860. static="false" final="false" visibility="public"
  18861. deprecated="not deprecated">
  18862. </constructor>
  18863. <method name="delete"
  18864. abstract="false" native="false" synchronized="false"
  18865. static="true" final="false" visibility="public"
  18866. deprecated="not deprecated">
  18867. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18868. <param name="name" type="java.lang.String"/>
  18869. <exception name="IOException" type="java.io.IOException"/>
  18870. </method>
  18871. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  18872. transient="false" volatile="false"
  18873. static="true" final="true" visibility="public"
  18874. deprecated="not deprecated">
  18875. </field>
  18876. <field name="HASH_COUNT" type="int"
  18877. transient="false" volatile="false"
  18878. static="true" final="true" visibility="public"
  18879. deprecated="not deprecated">
  18880. </field>
  18881. <doc>
  18882. <![CDATA[This class extends {@link MapFile} and provides very much the same
  18883. functionality. However, it uses dynamic Bloom filters to provide
  18884. quick membership test for keys, and it offers a fast version of
  18885. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  18886. case of sparsely populated MapFile-s.]]>
  18887. </doc>
  18888. </class>
  18889. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  18890. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  18891. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  18892. abstract="false"
  18893. static="true" final="false" visibility="public"
  18894. deprecated="not deprecated">
  18895. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  18896. static="false" final="false" visibility="public"
  18897. deprecated="not deprecated">
  18898. <exception name="IOException" type="java.io.IOException"/>
  18899. </constructor>
  18900. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  18901. static="false" final="false" visibility="public"
  18902. deprecated="not deprecated">
  18903. <exception name="IOException" type="java.io.IOException"/>
  18904. </constructor>
  18905. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  18906. static="false" final="false" visibility="public"
  18907. deprecated="not deprecated">
  18908. <exception name="IOException" type="java.io.IOException"/>
  18909. </constructor>
  18910. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  18911. static="false" final="false" visibility="public"
  18912. deprecated="not deprecated">
  18913. <exception name="IOException" type="java.io.IOException"/>
  18914. </constructor>
  18915. <method name="probablyHasKey" return="boolean"
  18916. abstract="false" native="false" synchronized="false"
  18917. static="false" final="false" visibility="public"
  18918. deprecated="not deprecated">
  18919. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  18920. <exception name="IOException" type="java.io.IOException"/>
  18921. <doc>
  18922. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  18923. performed using a Bloom filter, so the result has always non-zero
  18924. probability of false positives.
  18925. @param key key to check
  18926. @return false iff key doesn't exist, true if key probably exists.
  18927. @throws IOException]]>
  18928. </doc>
  18929. </method>
  18930. <method name="get" return="org.apache.hadoop.io.Writable"
  18931. abstract="false" native="false" synchronized="true"
  18932. static="false" final="false" visibility="public"
  18933. deprecated="not deprecated">
  18934. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  18935. <param name="val" type="org.apache.hadoop.io.Writable"/>
  18936. <exception name="IOException" type="java.io.IOException"/>
  18937. <doc>
  18938. <![CDATA[Fast version of the
  18939. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  18940. it checks the Bloom filter for the existence of the key, and only if
  18941. present it performs the real get operation. This yields significant
  18942. performance improvements for get operations on sparsely populated files.]]>
  18943. </doc>
  18944. </method>
  18945. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  18946. abstract="false" native="false" synchronized="false"
  18947. static="false" final="false" visibility="public"
  18948. deprecated="not deprecated">
  18949. <doc>
  18950. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  18951. @return a Bloom filter (see {@link Filter})]]>
  18952. </doc>
  18953. </method>
  18954. </class>
  18955. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  18956. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  18957. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  18958. abstract="false"
  18959. static="true" final="false" visibility="public"
  18960. deprecated="not deprecated">
  18961. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  18962. static="false" final="false" visibility="public"
  18963. deprecated="not deprecated">
  18964. <exception name="IOException" type="java.io.IOException"/>
  18965. </constructor>
  18966. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  18967. static="false" final="false" visibility="public"
  18968. deprecated="not deprecated">
  18969. <exception name="IOException" type="java.io.IOException"/>
  18970. </constructor>
  18971. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  18972. static="false" final="false" visibility="public"
  18973. deprecated="not deprecated">
  18974. <exception name="IOException" type="java.io.IOException"/>
  18975. </constructor>
  18976. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  18977. static="false" final="false" visibility="public"
  18978. deprecated="not deprecated">
  18979. <exception name="IOException" type="java.io.IOException"/>
  18980. </constructor>
  18981. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  18982. static="false" final="false" visibility="public"
  18983. deprecated="not deprecated">
  18984. <exception name="IOException" type="java.io.IOException"/>
  18985. </constructor>
  18986. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  18987. static="false" final="false" visibility="public"
  18988. deprecated="not deprecated">
  18989. <exception name="IOException" type="java.io.IOException"/>
  18990. </constructor>
  18991. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  18992. static="false" final="false" visibility="public"
  18993. deprecated="not deprecated">
  18994. <exception name="IOException" type="java.io.IOException"/>
  18995. </constructor>
  18996. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  18997. static="false" final="false" visibility="public"
  18998. deprecated="not deprecated">
  18999. <exception name="IOException" type="java.io.IOException"/>
  19000. </constructor>
  19001. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, org.apache.hadoop.io.SequenceFile.Writer.Option[]"
  19002. static="false" final="false" visibility="public"
  19003. deprecated="not deprecated">
  19004. <exception name="IOException" type="java.io.IOException"/>
  19005. </constructor>
  19006. <method name="append"
  19007. abstract="false" native="false" synchronized="true"
  19008. static="false" final="false" visibility="public"
  19009. deprecated="not deprecated">
  19010. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  19011. <param name="val" type="org.apache.hadoop.io.Writable"/>
  19012. <exception name="IOException" type="java.io.IOException"/>
  19013. </method>
  19014. <method name="close"
  19015. abstract="false" native="false" synchronized="true"
  19016. static="false" final="false" visibility="public"
  19017. deprecated="not deprecated">
  19018. <exception name="IOException" type="java.io.IOException"/>
  19019. </method>
  19020. </class>
  19021. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  19022. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  19023. <class name="BooleanWritable" extends="java.lang.Object"
  19024. abstract="false"
  19025. static="false" final="false" visibility="public"
  19026. deprecated="not deprecated">
  19027. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19028. <constructor name="BooleanWritable"
  19029. static="false" final="false" visibility="public"
  19030. deprecated="not deprecated">
  19031. </constructor>
  19032. <constructor name="BooleanWritable" type="boolean"
  19033. static="false" final="false" visibility="public"
  19034. deprecated="not deprecated">
  19035. </constructor>
  19036. <method name="set"
  19037. abstract="false" native="false" synchronized="false"
  19038. static="false" final="false" visibility="public"
  19039. deprecated="not deprecated">
  19040. <param name="value" type="boolean"/>
  19041. <doc>
  19042. <![CDATA[Set the value of the BooleanWritable]]>
  19043. </doc>
  19044. </method>
  19045. <method name="get" return="boolean"
  19046. abstract="false" native="false" synchronized="false"
  19047. static="false" final="false" visibility="public"
  19048. deprecated="not deprecated">
  19049. <doc>
  19050. <![CDATA[Returns the value of the BooleanWritable]]>
  19051. </doc>
  19052. </method>
  19053. <method name="readFields"
  19054. abstract="false" native="false" synchronized="false"
  19055. static="false" final="false" visibility="public"
  19056. deprecated="not deprecated">
  19057. <param name="in" type="java.io.DataInput"/>
  19058. <exception name="IOException" type="java.io.IOException"/>
  19059. </method>
  19060. <method name="write"
  19061. abstract="false" native="false" synchronized="false"
  19062. static="false" final="false" visibility="public"
  19063. deprecated="not deprecated">
  19064. <param name="out" type="java.io.DataOutput"/>
  19065. <exception name="IOException" type="java.io.IOException"/>
  19066. </method>
  19067. <method name="equals" return="boolean"
  19068. abstract="false" native="false" synchronized="false"
  19069. static="false" final="false" visibility="public"
  19070. deprecated="not deprecated">
  19071. <param name="o" type="java.lang.Object"/>
  19072. </method>
  19073. <method name="hashCode" return="int"
  19074. abstract="false" native="false" synchronized="false"
  19075. static="false" final="false" visibility="public"
  19076. deprecated="not deprecated">
  19077. </method>
  19078. <method name="compareTo" return="int"
  19079. abstract="false" native="false" synchronized="false"
  19080. static="false" final="false" visibility="public"
  19081. deprecated="not deprecated">
  19082. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  19083. </method>
  19084. <method name="toString" return="java.lang.String"
  19085. abstract="false" native="false" synchronized="false"
  19086. static="false" final="false" visibility="public"
  19087. deprecated="not deprecated">
  19088. </method>
  19089. <doc>
  19090. <![CDATA[A WritableComparable for booleans.]]>
  19091. </doc>
  19092. </class>
  19093. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  19094. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  19095. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  19096. abstract="false"
  19097. static="true" final="false" visibility="public"
  19098. deprecated="not deprecated">
  19099. <constructor name="BooleanWritable.Comparator"
  19100. static="false" final="false" visibility="public"
  19101. deprecated="not deprecated">
  19102. </constructor>
  19103. <method name="compare" return="int"
  19104. abstract="false" native="false" synchronized="false"
  19105. static="false" final="false" visibility="public"
  19106. deprecated="not deprecated">
  19107. <param name="b1" type="byte[]"/>
  19108. <param name="s1" type="int"/>
  19109. <param name="l1" type="int"/>
  19110. <param name="b2" type="byte[]"/>
  19111. <param name="s2" type="int"/>
  19112. <param name="l2" type="int"/>
  19113. </method>
  19114. <doc>
  19115. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  19116. </doc>
  19117. </class>
  19118. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  19119. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  19120. <interface name="ByteBufferPool" abstract="true"
  19121. static="false" final="false" visibility="public"
  19122. deprecated="not deprecated">
  19123. <method name="getBuffer" return="java.nio.ByteBuffer"
  19124. abstract="false" native="false" synchronized="false"
  19125. static="false" final="false" visibility="public"
  19126. deprecated="not deprecated">
  19127. <param name="direct" type="boolean"/>
  19128. <param name="length" type="int"/>
  19129. <doc>
  19130. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  19131. removing a buffer from its internal cache, or by allocating a
  19132. new buffer.
  19133. @param direct Whether the buffer should be direct.
  19134. @param length The minimum length the buffer will have.
  19135. @return A new ByteBuffer. This ByteBuffer must be direct.
  19136. Its capacity can be less than what was requested, but
  19137. must be at least 1 byte.]]>
  19138. </doc>
  19139. </method>
  19140. <method name="putBuffer"
  19141. abstract="false" native="false" synchronized="false"
  19142. static="false" final="false" visibility="public"
  19143. deprecated="not deprecated">
  19144. <param name="buffer" type="java.nio.ByteBuffer"/>
  19145. <doc>
  19146. <![CDATA[Release a buffer back to the pool.
  19147. The pool may choose to put this buffer into its cache.
  19148. @param buffer a direct bytebuffer]]>
  19149. </doc>
  19150. </method>
  19151. </interface>
  19152. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  19153. <!-- start class org.apache.hadoop.io.BytesWritable -->
  19154. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  19155. abstract="false"
  19156. static="false" final="false" visibility="public"
  19157. deprecated="not deprecated">
  19158. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19159. <constructor name="BytesWritable"
  19160. static="false" final="false" visibility="public"
  19161. deprecated="not deprecated">
  19162. <doc>
  19163. <![CDATA[Create a zero-size sequence.]]>
  19164. </doc>
  19165. </constructor>
  19166. <constructor name="BytesWritable" type="byte[]"
  19167. static="false" final="false" visibility="public"
  19168. deprecated="not deprecated">
  19169. <doc>
  19170. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  19171. @param bytes This array becomes the backing storage for the object.]]>
  19172. </doc>
  19173. </constructor>
  19174. <constructor name="BytesWritable" type="byte[], int"
  19175. static="false" final="false" visibility="public"
  19176. deprecated="not deprecated">
  19177. <doc>
  19178. <![CDATA[Create a BytesWritable using the byte array as the initial value
  19179. and length as the length. Use this constructor if the array is larger
  19180. than the value it represents.
  19181. @param bytes This array becomes the backing storage for the object.
  19182. @param length The number of bytes to use from array.]]>
  19183. </doc>
  19184. </constructor>
  19185. <method name="copyBytes" return="byte[]"
  19186. abstract="false" native="false" synchronized="false"
  19187. static="false" final="false" visibility="public"
  19188. deprecated="not deprecated">
  19189. <doc>
  19190. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  19191. See {@link #getBytes()} for faster access to the underlying array.]]>
  19192. </doc>
  19193. </method>
  19194. <method name="getBytes" return="byte[]"
  19195. abstract="false" native="false" synchronized="false"
  19196. static="false" final="false" visibility="public"
  19197. deprecated="not deprecated">
  19198. <doc>
  19199. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  19200. if you need the returned array to be precisely the length of the data.
  19201. @return The data is only valid between 0 and getLength() - 1.]]>
  19202. </doc>
  19203. </method>
  19204. <method name="get" return="byte[]"
  19205. abstract="false" native="false" synchronized="false"
  19206. static="false" final="false" visibility="public"
  19207. deprecated="Use {@link #getBytes()} instead.">
  19208. <doc>
  19209. <![CDATA[Get the data from the BytesWritable.
  19210. @deprecated Use {@link #getBytes()} instead.]]>
  19211. </doc>
  19212. </method>
  19213. <method name="getLength" return="int"
  19214. abstract="false" native="false" synchronized="false"
  19215. static="false" final="false" visibility="public"
  19216. deprecated="not deprecated">
  19217. <doc>
  19218. <![CDATA[Get the current size of the buffer.]]>
  19219. </doc>
  19220. </method>
  19221. <method name="getSize" return="int"
  19222. abstract="false" native="false" synchronized="false"
  19223. static="false" final="false" visibility="public"
  19224. deprecated="Use {@link #getLength()} instead.">
  19225. <doc>
  19226. <![CDATA[Get the current size of the buffer.
  19227. @deprecated Use {@link #getLength()} instead.]]>
  19228. </doc>
  19229. </method>
  19230. <method name="setSize"
  19231. abstract="false" native="false" synchronized="false"
  19232. static="false" final="false" visibility="public"
  19233. deprecated="not deprecated">
  19234. <param name="size" type="int"/>
  19235. <doc>
  19236. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  19237. and any new values are undefined. The capacity is changed if it is
  19238. necessary.
  19239. @param size The new number of bytes]]>
  19240. </doc>
  19241. </method>
  19242. <method name="getCapacity" return="int"
  19243. abstract="false" native="false" synchronized="false"
  19244. static="false" final="false" visibility="public"
  19245. deprecated="not deprecated">
  19246. <doc>
  19247. <![CDATA[Get the capacity, which is the maximum size that could handled without
  19248. resizing the backing storage.
  19249. @return The number of bytes]]>
  19250. </doc>
  19251. </method>
  19252. <method name="setCapacity"
  19253. abstract="false" native="false" synchronized="false"
  19254. static="false" final="false" visibility="public"
  19255. deprecated="not deprecated">
  19256. <param name="new_cap" type="int"/>
  19257. <doc>
  19258. <![CDATA[Change the capacity of the backing storage.
  19259. The data is preserved.
  19260. @param new_cap The new capacity in bytes.]]>
  19261. </doc>
  19262. </method>
  19263. <method name="set"
  19264. abstract="false" native="false" synchronized="false"
  19265. static="false" final="false" visibility="public"
  19266. deprecated="not deprecated">
  19267. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  19268. <doc>
  19269. <![CDATA[Set the BytesWritable to the contents of the given newData.
  19270. @param newData the value to set this BytesWritable to.]]>
  19271. </doc>
  19272. </method>
  19273. <method name="set"
  19274. abstract="false" native="false" synchronized="false"
  19275. static="false" final="false" visibility="public"
  19276. deprecated="not deprecated">
  19277. <param name="newData" type="byte[]"/>
  19278. <param name="offset" type="int"/>
  19279. <param name="length" type="int"/>
  19280. <doc>
  19281. <![CDATA[Set the value to a copy of the given byte range
  19282. @param newData the new values to copy in
  19283. @param offset the offset in newData to start at
  19284. @param length the number of bytes to copy]]>
  19285. </doc>
  19286. </method>
  19287. <method name="readFields"
  19288. abstract="false" native="false" synchronized="false"
  19289. static="false" final="false" visibility="public"
  19290. deprecated="not deprecated">
  19291. <param name="in" type="java.io.DataInput"/>
  19292. <exception name="IOException" type="java.io.IOException"/>
  19293. </method>
  19294. <method name="write"
  19295. abstract="false" native="false" synchronized="false"
  19296. static="false" final="false" visibility="public"
  19297. deprecated="not deprecated">
  19298. <param name="out" type="java.io.DataOutput"/>
  19299. <exception name="IOException" type="java.io.IOException"/>
  19300. </method>
  19301. <method name="hashCode" return="int"
  19302. abstract="false" native="false" synchronized="false"
  19303. static="false" final="false" visibility="public"
  19304. deprecated="not deprecated">
  19305. </method>
  19306. <method name="equals" return="boolean"
  19307. abstract="false" native="false" synchronized="false"
  19308. static="false" final="false" visibility="public"
  19309. deprecated="not deprecated">
  19310. <param name="right_obj" type="java.lang.Object"/>
  19311. <doc>
  19312. <![CDATA[Are the two byte sequences equal?]]>
  19313. </doc>
  19314. </method>
  19315. <method name="toString" return="java.lang.String"
  19316. abstract="false" native="false" synchronized="false"
  19317. static="false" final="false" visibility="public"
  19318. deprecated="not deprecated">
  19319. <doc>
  19320. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  19321. </doc>
  19322. </method>
  19323. <doc>
  19324. <![CDATA[A byte sequence that is usable as a key or value.
  19325. It is resizable and distinguishes between the size of the sequence and
  19326. the current capacity. The hash function is the front of the md5 of the
  19327. buffer. The sort order is the same as memcmp.]]>
  19328. </doc>
  19329. </class>
  19330. <!-- end class org.apache.hadoop.io.BytesWritable -->
  19331. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  19332. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  19333. abstract="false"
  19334. static="true" final="false" visibility="public"
  19335. deprecated="not deprecated">
  19336. <constructor name="BytesWritable.Comparator"
  19337. static="false" final="false" visibility="public"
  19338. deprecated="not deprecated">
  19339. </constructor>
  19340. <method name="compare" return="int"
  19341. abstract="false" native="false" synchronized="false"
  19342. static="false" final="false" visibility="public"
  19343. deprecated="not deprecated">
  19344. <param name="b1" type="byte[]"/>
  19345. <param name="s1" type="int"/>
  19346. <param name="l1" type="int"/>
  19347. <param name="b2" type="byte[]"/>
  19348. <param name="s2" type="int"/>
  19349. <param name="l2" type="int"/>
  19350. <doc>
  19351. <![CDATA[Compare the buffers in serialized form.]]>
  19352. </doc>
  19353. </method>
  19354. <doc>
  19355. <![CDATA[A Comparator optimized for BytesWritable.]]>
  19356. </doc>
  19357. </class>
  19358. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  19359. <!-- start class org.apache.hadoop.io.ByteWritable -->
  19360. <class name="ByteWritable" extends="java.lang.Object"
  19361. abstract="false"
  19362. static="false" final="false" visibility="public"
  19363. deprecated="not deprecated">
  19364. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19365. <constructor name="ByteWritable"
  19366. static="false" final="false" visibility="public"
  19367. deprecated="not deprecated">
  19368. </constructor>
  19369. <constructor name="ByteWritable" type="byte"
  19370. static="false" final="false" visibility="public"
  19371. deprecated="not deprecated">
  19372. </constructor>
  19373. <method name="set"
  19374. abstract="false" native="false" synchronized="false"
  19375. static="false" final="false" visibility="public"
  19376. deprecated="not deprecated">
  19377. <param name="value" type="byte"/>
  19378. <doc>
  19379. <![CDATA[Set the value of this ByteWritable.]]>
  19380. </doc>
  19381. </method>
  19382. <method name="get" return="byte"
  19383. abstract="false" native="false" synchronized="false"
  19384. static="false" final="false" visibility="public"
  19385. deprecated="not deprecated">
  19386. <doc>
  19387. <![CDATA[Return the value of this ByteWritable.]]>
  19388. </doc>
  19389. </method>
  19390. <method name="readFields"
  19391. abstract="false" native="false" synchronized="false"
  19392. static="false" final="false" visibility="public"
  19393. deprecated="not deprecated">
  19394. <param name="in" type="java.io.DataInput"/>
  19395. <exception name="IOException" type="java.io.IOException"/>
  19396. </method>
  19397. <method name="write"
  19398. abstract="false" native="false" synchronized="false"
  19399. static="false" final="false" visibility="public"
  19400. deprecated="not deprecated">
  19401. <param name="out" type="java.io.DataOutput"/>
  19402. <exception name="IOException" type="java.io.IOException"/>
  19403. </method>
  19404. <method name="equals" return="boolean"
  19405. abstract="false" native="false" synchronized="false"
  19406. static="false" final="false" visibility="public"
  19407. deprecated="not deprecated">
  19408. <param name="o" type="java.lang.Object"/>
  19409. <doc>
  19410. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  19411. </doc>
  19412. </method>
  19413. <method name="hashCode" return="int"
  19414. abstract="false" native="false" synchronized="false"
  19415. static="false" final="false" visibility="public"
  19416. deprecated="not deprecated">
  19417. </method>
  19418. <method name="compareTo" return="int"
  19419. abstract="false" native="false" synchronized="false"
  19420. static="false" final="false" visibility="public"
  19421. deprecated="not deprecated">
  19422. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  19423. <doc>
  19424. <![CDATA[Compares two ByteWritables.]]>
  19425. </doc>
  19426. </method>
  19427. <method name="toString" return="java.lang.String"
  19428. abstract="false" native="false" synchronized="false"
  19429. static="false" final="false" visibility="public"
  19430. deprecated="not deprecated">
  19431. </method>
  19432. <doc>
  19433. <![CDATA[A WritableComparable for a single byte.]]>
  19434. </doc>
  19435. </class>
  19436. <!-- end class org.apache.hadoop.io.ByteWritable -->
  19437. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  19438. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  19439. abstract="false"
  19440. static="true" final="false" visibility="public"
  19441. deprecated="not deprecated">
  19442. <constructor name="ByteWritable.Comparator"
  19443. static="false" final="false" visibility="public"
  19444. deprecated="not deprecated">
  19445. </constructor>
  19446. <method name="compare" return="int"
  19447. abstract="false" native="false" synchronized="false"
  19448. static="false" final="false" visibility="public"
  19449. deprecated="not deprecated">
  19450. <param name="b1" type="byte[]"/>
  19451. <param name="s1" type="int"/>
  19452. <param name="l1" type="int"/>
  19453. <param name="b2" type="byte[]"/>
  19454. <param name="s2" type="int"/>
  19455. <param name="l2" type="int"/>
  19456. </method>
  19457. <doc>
  19458. <![CDATA[A Comparator optimized for ByteWritable.]]>
  19459. </doc>
  19460. </class>
  19461. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  19462. <!-- start interface org.apache.hadoop.io.Closeable -->
  19463. <interface name="Closeable" abstract="true"
  19464. static="false" final="false" visibility="public"
  19465. deprecated="use java.io.Closeable">
  19466. <implements name="java.io.Closeable"/>
  19467. <doc>
  19468. <![CDATA[@deprecated use java.io.Closeable]]>
  19469. </doc>
  19470. </interface>
  19471. <!-- end interface org.apache.hadoop.io.Closeable -->
  19472. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  19473. <class name="CompressedWritable" extends="java.lang.Object"
  19474. abstract="true"
  19475. static="false" final="false" visibility="public"
  19476. deprecated="not deprecated">
  19477. <implements name="org.apache.hadoop.io.Writable"/>
  19478. <constructor name="CompressedWritable"
  19479. static="false" final="false" visibility="public"
  19480. deprecated="not deprecated">
  19481. </constructor>
  19482. <method name="readFields"
  19483. abstract="false" native="false" synchronized="false"
  19484. static="false" final="true" visibility="public"
  19485. deprecated="not deprecated">
  19486. <param name="in" type="java.io.DataInput"/>
  19487. <exception name="IOException" type="java.io.IOException"/>
  19488. </method>
  19489. <method name="ensureInflated"
  19490. abstract="false" native="false" synchronized="false"
  19491. static="false" final="false" visibility="protected"
  19492. deprecated="not deprecated">
  19493. <doc>
  19494. <![CDATA[Must be called by all methods which access fields to ensure that the data
  19495. has been uncompressed.]]>
  19496. </doc>
  19497. </method>
  19498. <method name="readFieldsCompressed"
  19499. abstract="true" native="false" synchronized="false"
  19500. static="false" final="false" visibility="protected"
  19501. deprecated="not deprecated">
  19502. <param name="in" type="java.io.DataInput"/>
  19503. <exception name="IOException" type="java.io.IOException"/>
  19504. <doc>
  19505. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  19506. </doc>
  19507. </method>
  19508. <method name="write"
  19509. abstract="false" native="false" synchronized="false"
  19510. static="false" final="true" visibility="public"
  19511. deprecated="not deprecated">
  19512. <param name="out" type="java.io.DataOutput"/>
  19513. <exception name="IOException" type="java.io.IOException"/>
  19514. </method>
  19515. <method name="writeCompressed"
  19516. abstract="true" native="false" synchronized="false"
  19517. static="false" final="false" visibility="protected"
  19518. deprecated="not deprecated">
  19519. <param name="out" type="java.io.DataOutput"/>
  19520. <exception name="IOException" type="java.io.IOException"/>
  19521. <doc>
  19522. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  19523. </doc>
  19524. </method>
  19525. <doc>
  19526. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  19527. inflate on field access. This is useful for large objects whose fields are
  19528. not be altered during a map or reduce operation: leaving the field data
  19529. compressed makes copying the instance from one file to another much
  19530. faster.]]>
  19531. </doc>
  19532. </class>
  19533. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  19534. <!-- start class org.apache.hadoop.io.DataInputByteBuffer -->
  19535. <class name="DataInputByteBuffer" extends="java.io.DataInputStream"
  19536. abstract="false"
  19537. static="false" final="false" visibility="public"
  19538. deprecated="not deprecated">
  19539. <constructor name="DataInputByteBuffer"
  19540. static="false" final="false" visibility="public"
  19541. deprecated="not deprecated">
  19542. </constructor>
  19543. <method name="reset"
  19544. abstract="false" native="false" synchronized="false"
  19545. static="false" final="false" visibility="public"
  19546. deprecated="not deprecated">
  19547. <param name="input" type="java.nio.ByteBuffer[]"/>
  19548. </method>
  19549. <method name="getData" return="java.nio.ByteBuffer[]"
  19550. abstract="false" native="false" synchronized="false"
  19551. static="false" final="false" visibility="public"
  19552. deprecated="not deprecated">
  19553. </method>
  19554. <method name="getPosition" return="int"
  19555. abstract="false" native="false" synchronized="false"
  19556. static="false" final="false" visibility="public"
  19557. deprecated="not deprecated">
  19558. </method>
  19559. <method name="getLength" return="int"
  19560. abstract="false" native="false" synchronized="false"
  19561. static="false" final="false" visibility="public"
  19562. deprecated="not deprecated">
  19563. </method>
  19564. </class>
  19565. <!-- end class org.apache.hadoop.io.DataInputByteBuffer -->
  19566. <!-- start class org.apache.hadoop.io.DataOutputByteBuffer -->
  19567. <class name="DataOutputByteBuffer" extends="java.io.DataOutputStream"
  19568. abstract="false"
  19569. static="false" final="false" visibility="public"
  19570. deprecated="not deprecated">
  19571. <constructor name="DataOutputByteBuffer"
  19572. static="false" final="false" visibility="public"
  19573. deprecated="not deprecated">
  19574. </constructor>
  19575. <constructor name="DataOutputByteBuffer" type="int"
  19576. static="false" final="false" visibility="public"
  19577. deprecated="not deprecated">
  19578. </constructor>
  19579. <constructor name="DataOutputByteBuffer" type="int, boolean"
  19580. static="false" final="false" visibility="public"
  19581. deprecated="not deprecated">
  19582. </constructor>
  19583. <method name="getData" return="java.nio.ByteBuffer[]"
  19584. abstract="false" native="false" synchronized="false"
  19585. static="false" final="false" visibility="public"
  19586. deprecated="not deprecated">
  19587. </method>
  19588. <method name="getLength" return="int"
  19589. abstract="false" native="false" synchronized="false"
  19590. static="false" final="false" visibility="public"
  19591. deprecated="not deprecated">
  19592. </method>
  19593. <method name="reset"
  19594. abstract="false" native="false" synchronized="false"
  19595. static="false" final="false" visibility="public"
  19596. deprecated="not deprecated">
  19597. </method>
  19598. </class>
  19599. <!-- end class org.apache.hadoop.io.DataOutputByteBuffer -->
  19600. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  19601. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  19602. abstract="false"
  19603. static="false" final="false" visibility="public"
  19604. deprecated="not deprecated">
  19605. <method name="constructOutputStream" return="java.io.OutputStream"
  19606. abstract="false" native="false" synchronized="false"
  19607. static="true" final="false" visibility="public"
  19608. deprecated="not deprecated">
  19609. <param name="out" type="java.io.DataOutput"/>
  19610. <doc>
  19611. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  19612. is already an OutputStream, simply returns it. Otherwise, wraps
  19613. it in an OutputStream.
  19614. @param out the DataOutput to wrap
  19615. @return an OutputStream instance that outputs to 'out']]>
  19616. </doc>
  19617. </method>
  19618. <method name="write"
  19619. abstract="false" native="false" synchronized="false"
  19620. static="false" final="false" visibility="public"
  19621. deprecated="not deprecated">
  19622. <param name="b" type="int"/>
  19623. <exception name="IOException" type="java.io.IOException"/>
  19624. </method>
  19625. <method name="write"
  19626. abstract="false" native="false" synchronized="false"
  19627. static="false" final="false" visibility="public"
  19628. deprecated="not deprecated">
  19629. <param name="b" type="byte[]"/>
  19630. <param name="off" type="int"/>
  19631. <param name="len" type="int"/>
  19632. <exception name="IOException" type="java.io.IOException"/>
  19633. </method>
  19634. <method name="write"
  19635. abstract="false" native="false" synchronized="false"
  19636. static="false" final="false" visibility="public"
  19637. deprecated="not deprecated">
  19638. <param name="b" type="byte[]"/>
  19639. <exception name="IOException" type="java.io.IOException"/>
  19640. </method>
  19641. <doc>
  19642. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  19643. </doc>
  19644. </class>
  19645. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  19646. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  19647. <class name="DefaultStringifier" extends="java.lang.Object"
  19648. abstract="false"
  19649. static="false" final="false" visibility="public"
  19650. deprecated="not deprecated">
  19651. <implements name="org.apache.hadoop.io.Stringifier"/>
  19652. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  19653. static="false" final="false" visibility="public"
  19654. deprecated="not deprecated">
  19655. </constructor>
  19656. <method name="fromString" return="T"
  19657. abstract="false" native="false" synchronized="false"
  19658. static="false" final="false" visibility="public"
  19659. deprecated="not deprecated">
  19660. <param name="str" type="java.lang.String"/>
  19661. <exception name="IOException" type="java.io.IOException"/>
  19662. </method>
  19663. <method name="toString" return="java.lang.String"
  19664. abstract="false" native="false" synchronized="false"
  19665. static="false" final="false" visibility="public"
  19666. deprecated="not deprecated">
  19667. <param name="obj" type="T"/>
  19668. <exception name="IOException" type="java.io.IOException"/>
  19669. </method>
  19670. <method name="close"
  19671. abstract="false" native="false" synchronized="false"
  19672. static="false" final="false" visibility="public"
  19673. deprecated="not deprecated">
  19674. <exception name="IOException" type="java.io.IOException"/>
  19675. </method>
  19676. <method name="store"
  19677. abstract="false" native="false" synchronized="false"
  19678. static="true" final="false" visibility="public"
  19679. deprecated="not deprecated">
  19680. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19681. <param name="item" type="K"/>
  19682. <param name="keyName" type="java.lang.String"/>
  19683. <exception name="IOException" type="java.io.IOException"/>
  19684. <doc>
  19685. <![CDATA[Stores the item in the configuration with the given keyName.
  19686. @param <K> the class of the item
  19687. @param conf the configuration to store
  19688. @param item the object to be stored
  19689. @param keyName the name of the key to use
  19690. @throws IOException : forwards Exceptions from the underlying
  19691. {@link Serialization} classes.]]>
  19692. </doc>
  19693. </method>
  19694. <method name="load" return="K"
  19695. abstract="false" native="false" synchronized="false"
  19696. static="true" final="false" visibility="public"
  19697. deprecated="not deprecated">
  19698. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19699. <param name="keyName" type="java.lang.String"/>
  19700. <param name="itemClass" type="java.lang.Class"/>
  19701. <exception name="IOException" type="java.io.IOException"/>
  19702. <doc>
  19703. <![CDATA[Restores the object from the configuration.
  19704. @param <K> the class of the item
  19705. @param conf the configuration to use
  19706. @param keyName the name of the key to use
  19707. @param itemClass the class of the item
  19708. @return restored object
  19709. @throws IOException : forwards Exceptions from the underlying
  19710. {@link Serialization} classes.]]>
  19711. </doc>
  19712. </method>
  19713. <method name="storeArray"
  19714. abstract="false" native="false" synchronized="false"
  19715. static="true" final="false" visibility="public"
  19716. deprecated="not deprecated">
  19717. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19718. <param name="items" type="K[]"/>
  19719. <param name="keyName" type="java.lang.String"/>
  19720. <exception name="IOException" type="java.io.IOException"/>
  19721. <doc>
  19722. <![CDATA[Stores the array of items in the configuration with the given keyName.
  19723. @param <K> the class of the item
  19724. @param conf the configuration to use
  19725. @param items the objects to be stored
  19726. @param keyName the name of the key to use
  19727. @throws IndexOutOfBoundsException if the items array is empty
  19728. @throws IOException : forwards Exceptions from the underlying
  19729. {@link Serialization} classes.]]>
  19730. </doc>
  19731. </method>
  19732. <method name="loadArray" return="K[]"
  19733. abstract="false" native="false" synchronized="false"
  19734. static="true" final="false" visibility="public"
  19735. deprecated="not deprecated">
  19736. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19737. <param name="keyName" type="java.lang.String"/>
  19738. <param name="itemClass" type="java.lang.Class"/>
  19739. <exception name="IOException" type="java.io.IOException"/>
  19740. <doc>
  19741. <![CDATA[Restores the array of objects from the configuration.
  19742. @param <K> the class of the item
  19743. @param conf the configuration to use
  19744. @param keyName the name of the key to use
  19745. @param itemClass the class of the item
  19746. @return restored object
  19747. @throws IOException : forwards Exceptions from the underlying
  19748. {@link Serialization} classes.]]>
  19749. </doc>
  19750. </method>
  19751. <doc>
  19752. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  19753. interface which stringifies the objects using base64 encoding of the
  19754. serialized version of the objects. The {@link Serializer} and
  19755. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  19756. <br>
  19757. DefaultStringifier offers convenience methods to store/load objects to/from
  19758. the configuration.
  19759. @param <T> the class of the objects to stringify]]>
  19760. </doc>
  19761. </class>
  19762. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  19763. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  19764. <class name="DoubleWritable" extends="java.lang.Object"
  19765. abstract="false"
  19766. static="false" final="false" visibility="public"
  19767. deprecated="not deprecated">
  19768. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19769. <constructor name="DoubleWritable"
  19770. static="false" final="false" visibility="public"
  19771. deprecated="not deprecated">
  19772. </constructor>
  19773. <constructor name="DoubleWritable" type="double"
  19774. static="false" final="false" visibility="public"
  19775. deprecated="not deprecated">
  19776. </constructor>
  19777. <method name="readFields"
  19778. abstract="false" native="false" synchronized="false"
  19779. static="false" final="false" visibility="public"
  19780. deprecated="not deprecated">
  19781. <param name="in" type="java.io.DataInput"/>
  19782. <exception name="IOException" type="java.io.IOException"/>
  19783. </method>
  19784. <method name="write"
  19785. abstract="false" native="false" synchronized="false"
  19786. static="false" final="false" visibility="public"
  19787. deprecated="not deprecated">
  19788. <param name="out" type="java.io.DataOutput"/>
  19789. <exception name="IOException" type="java.io.IOException"/>
  19790. </method>
  19791. <method name="set"
  19792. abstract="false" native="false" synchronized="false"
  19793. static="false" final="false" visibility="public"
  19794. deprecated="not deprecated">
  19795. <param name="value" type="double"/>
  19796. </method>
  19797. <method name="get" return="double"
  19798. abstract="false" native="false" synchronized="false"
  19799. static="false" final="false" visibility="public"
  19800. deprecated="not deprecated">
  19801. </method>
  19802. <method name="equals" return="boolean"
  19803. abstract="false" native="false" synchronized="false"
  19804. static="false" final="false" visibility="public"
  19805. deprecated="not deprecated">
  19806. <param name="o" type="java.lang.Object"/>
  19807. <doc>
  19808. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  19809. </doc>
  19810. </method>
  19811. <method name="hashCode" return="int"
  19812. abstract="false" native="false" synchronized="false"
  19813. static="false" final="false" visibility="public"
  19814. deprecated="not deprecated">
  19815. </method>
  19816. <method name="compareTo" return="int"
  19817. abstract="false" native="false" synchronized="false"
  19818. static="false" final="false" visibility="public"
  19819. deprecated="not deprecated">
  19820. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  19821. </method>
  19822. <method name="toString" return="java.lang.String"
  19823. abstract="false" native="false" synchronized="false"
  19824. static="false" final="false" visibility="public"
  19825. deprecated="not deprecated">
  19826. </method>
  19827. <doc>
  19828. <![CDATA[Writable for Double values.]]>
  19829. </doc>
  19830. </class>
  19831. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  19832. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  19833. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  19834. abstract="false"
  19835. static="true" final="false" visibility="public"
  19836. deprecated="not deprecated">
  19837. <constructor name="DoubleWritable.Comparator"
  19838. static="false" final="false" visibility="public"
  19839. deprecated="not deprecated">
  19840. </constructor>
  19841. <method name="compare" return="int"
  19842. abstract="false" native="false" synchronized="false"
  19843. static="false" final="false" visibility="public"
  19844. deprecated="not deprecated">
  19845. <param name="b1" type="byte[]"/>
  19846. <param name="s1" type="int"/>
  19847. <param name="l1" type="int"/>
  19848. <param name="b2" type="byte[]"/>
  19849. <param name="s2" type="int"/>
  19850. <param name="l2" type="int"/>
  19851. </method>
  19852. <doc>
  19853. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  19854. </doc>
  19855. </class>
  19856. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  19857. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  19858. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  19859. abstract="false"
  19860. static="false" final="true" visibility="public"
  19861. deprecated="not deprecated">
  19862. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  19863. <constructor name="ElasticByteBufferPool"
  19864. static="false" final="false" visibility="public"
  19865. deprecated="not deprecated">
  19866. </constructor>
  19867. <method name="getBuffer" return="java.nio.ByteBuffer"
  19868. abstract="false" native="false" synchronized="true"
  19869. static="false" final="false" visibility="public"
  19870. deprecated="not deprecated">
  19871. <param name="direct" type="boolean"/>
  19872. <param name="length" type="int"/>
  19873. </method>
  19874. <method name="putBuffer"
  19875. abstract="false" native="false" synchronized="true"
  19876. static="false" final="false" visibility="public"
  19877. deprecated="not deprecated">
  19878. <param name="buffer" type="java.nio.ByteBuffer"/>
  19879. </method>
  19880. <doc>
  19881. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  19882. It also caches ByteBuffers after they're released. It will always return
  19883. the smallest cached buffer with at least the capacity you request.
  19884. We don't try to do anything clever here like try to limit the maximum cache
  19885. size.]]>
  19886. </doc>
  19887. </class>
  19888. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  19889. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  19890. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  19891. abstract="false"
  19892. static="false" final="false" visibility="public"
  19893. deprecated="not deprecated">
  19894. <implements name="org.apache.hadoop.io.Writable"/>
  19895. <implements name="org.apache.hadoop.conf.Configurable"/>
  19896. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  19897. static="false" final="false" visibility="public"
  19898. deprecated="not deprecated">
  19899. <doc>
  19900. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  19901. its size is zero, the <tt>elementType</tt> argument must not be null. If
  19902. the argument <tt>value</tt>'s size is bigger than zero, the argument
  19903. <tt>elementType</tt> is not be used.
  19904. @param value
  19905. @param elementType]]>
  19906. </doc>
  19907. </constructor>
  19908. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  19909. static="false" final="false" visibility="public"
  19910. deprecated="not deprecated">
  19911. <doc>
  19912. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  19913. or empty.
  19914. @param value]]>
  19915. </doc>
  19916. </constructor>
  19917. <method name="iterator" return="java.util.Iterator"
  19918. abstract="false" native="false" synchronized="false"
  19919. static="false" final="false" visibility="public"
  19920. deprecated="not deprecated">
  19921. </method>
  19922. <method name="size" return="int"
  19923. abstract="false" native="false" synchronized="false"
  19924. static="false" final="false" visibility="public"
  19925. deprecated="not deprecated">
  19926. </method>
  19927. <method name="add" return="boolean"
  19928. abstract="false" native="false" synchronized="false"
  19929. static="false" final="false" visibility="public"
  19930. deprecated="not deprecated">
  19931. <param name="e" type="E"/>
  19932. </method>
  19933. <method name="set"
  19934. abstract="false" native="false" synchronized="false"
  19935. static="false" final="false" visibility="public"
  19936. deprecated="not deprecated">
  19937. <param name="value" type="java.util.EnumSet"/>
  19938. <param name="elementType" type="java.lang.Class"/>
  19939. <doc>
  19940. <![CDATA[reset the EnumSetWritable with specified
  19941. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  19942. is null or its size is zero, the <tt>elementType</tt> argument must not be
  19943. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  19944. argument <tt>elementType</tt> is not be used.
  19945. @param value
  19946. @param elementType]]>
  19947. </doc>
  19948. </method>
  19949. <method name="get" return="java.util.EnumSet"
  19950. abstract="false" native="false" synchronized="false"
  19951. static="false" final="false" visibility="public"
  19952. deprecated="not deprecated">
  19953. <doc>
  19954. <![CDATA[Return the value of this EnumSetWritable.]]>
  19955. </doc>
  19956. </method>
  19957. <method name="readFields"
  19958. abstract="false" native="false" synchronized="false"
  19959. static="false" final="false" visibility="public"
  19960. deprecated="not deprecated">
  19961. <param name="in" type="java.io.DataInput"/>
  19962. <exception name="IOException" type="java.io.IOException"/>
  19963. </method>
  19964. <method name="write"
  19965. abstract="false" native="false" synchronized="false"
  19966. static="false" final="false" visibility="public"
  19967. deprecated="not deprecated">
  19968. <param name="out" type="java.io.DataOutput"/>
  19969. <exception name="IOException" type="java.io.IOException"/>
  19970. </method>
  19971. <method name="equals" return="boolean"
  19972. abstract="false" native="false" synchronized="false"
  19973. static="false" final="false" visibility="public"
  19974. deprecated="not deprecated">
  19975. <param name="o" type="java.lang.Object"/>
  19976. <doc>
  19977. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  19978. or both are null.]]>
  19979. </doc>
  19980. </method>
  19981. <method name="getElementType" return="java.lang.Class"
  19982. abstract="false" native="false" synchronized="false"
  19983. static="false" final="false" visibility="public"
  19984. deprecated="not deprecated">
  19985. <doc>
  19986. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  19987. may return null.
  19988. @return the element class]]>
  19989. </doc>
  19990. </method>
  19991. <method name="hashCode" return="int"
  19992. abstract="false" native="false" synchronized="false"
  19993. static="false" final="false" visibility="public"
  19994. deprecated="not deprecated">
  19995. </method>
  19996. <method name="toString" return="java.lang.String"
  19997. abstract="false" native="false" synchronized="false"
  19998. static="false" final="false" visibility="public"
  19999. deprecated="not deprecated">
  20000. </method>
  20001. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20002. abstract="false" native="false" synchronized="false"
  20003. static="false" final="false" visibility="public"
  20004. deprecated="not deprecated">
  20005. </method>
  20006. <method name="setConf"
  20007. abstract="false" native="false" synchronized="false"
  20008. static="false" final="false" visibility="public"
  20009. deprecated="not deprecated">
  20010. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20011. </method>
  20012. <doc>
  20013. <![CDATA[A Writable wrapper for EnumSet.]]>
  20014. </doc>
  20015. </class>
  20016. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  20017. <!-- start class org.apache.hadoop.io.FloatWritable -->
  20018. <class name="FloatWritable" extends="java.lang.Object"
  20019. abstract="false"
  20020. static="false" final="false" visibility="public"
  20021. deprecated="not deprecated">
  20022. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20023. <constructor name="FloatWritable"
  20024. static="false" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. </constructor>
  20027. <constructor name="FloatWritable" type="float"
  20028. static="false" final="false" visibility="public"
  20029. deprecated="not deprecated">
  20030. </constructor>
  20031. <method name="set"
  20032. abstract="false" native="false" synchronized="false"
  20033. static="false" final="false" visibility="public"
  20034. deprecated="not deprecated">
  20035. <param name="value" type="float"/>
  20036. <doc>
  20037. <![CDATA[Set the value of this FloatWritable.]]>
  20038. </doc>
  20039. </method>
  20040. <method name="get" return="float"
  20041. abstract="false" native="false" synchronized="false"
  20042. static="false" final="false" visibility="public"
  20043. deprecated="not deprecated">
  20044. <doc>
  20045. <![CDATA[Return the value of this FloatWritable.]]>
  20046. </doc>
  20047. </method>
  20048. <method name="readFields"
  20049. abstract="false" native="false" synchronized="false"
  20050. static="false" final="false" visibility="public"
  20051. deprecated="not deprecated">
  20052. <param name="in" type="java.io.DataInput"/>
  20053. <exception name="IOException" type="java.io.IOException"/>
  20054. </method>
  20055. <method name="write"
  20056. abstract="false" native="false" synchronized="false"
  20057. static="false" final="false" visibility="public"
  20058. deprecated="not deprecated">
  20059. <param name="out" type="java.io.DataOutput"/>
  20060. <exception name="IOException" type="java.io.IOException"/>
  20061. </method>
  20062. <method name="equals" return="boolean"
  20063. abstract="false" native="false" synchronized="false"
  20064. static="false" final="false" visibility="public"
  20065. deprecated="not deprecated">
  20066. <param name="o" type="java.lang.Object"/>
  20067. <doc>
  20068. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  20069. </doc>
  20070. </method>
  20071. <method name="hashCode" return="int"
  20072. abstract="false" native="false" synchronized="false"
  20073. static="false" final="false" visibility="public"
  20074. deprecated="not deprecated">
  20075. </method>
  20076. <method name="compareTo" return="int"
  20077. abstract="false" native="false" synchronized="false"
  20078. static="false" final="false" visibility="public"
  20079. deprecated="not deprecated">
  20080. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  20081. <doc>
  20082. <![CDATA[Compares two FloatWritables.]]>
  20083. </doc>
  20084. </method>
  20085. <method name="toString" return="java.lang.String"
  20086. abstract="false" native="false" synchronized="false"
  20087. static="false" final="false" visibility="public"
  20088. deprecated="not deprecated">
  20089. </method>
  20090. <doc>
  20091. <![CDATA[A WritableComparable for floats.]]>
  20092. </doc>
  20093. </class>
  20094. <!-- end class org.apache.hadoop.io.FloatWritable -->
  20095. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  20096. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  20097. abstract="false"
  20098. static="true" final="false" visibility="public"
  20099. deprecated="not deprecated">
  20100. <constructor name="FloatWritable.Comparator"
  20101. static="false" final="false" visibility="public"
  20102. deprecated="not deprecated">
  20103. </constructor>
  20104. <method name="compare" return="int"
  20105. abstract="false" native="false" synchronized="false"
  20106. static="false" final="false" visibility="public"
  20107. deprecated="not deprecated">
  20108. <param name="b1" type="byte[]"/>
  20109. <param name="s1" type="int"/>
  20110. <param name="l1" type="int"/>
  20111. <param name="b2" type="byte[]"/>
  20112. <param name="s2" type="int"/>
  20113. <param name="l2" type="int"/>
  20114. </method>
  20115. <doc>
  20116. <![CDATA[A Comparator optimized for FloatWritable.]]>
  20117. </doc>
  20118. </class>
  20119. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  20120. <!-- start class org.apache.hadoop.io.GenericWritable -->
  20121. <class name="GenericWritable" extends="java.lang.Object"
  20122. abstract="true"
  20123. static="false" final="false" visibility="public"
  20124. deprecated="not deprecated">
  20125. <implements name="org.apache.hadoop.io.Writable"/>
  20126. <implements name="org.apache.hadoop.conf.Configurable"/>
  20127. <constructor name="GenericWritable"
  20128. static="false" final="false" visibility="public"
  20129. deprecated="not deprecated">
  20130. </constructor>
  20131. <method name="set"
  20132. abstract="false" native="false" synchronized="false"
  20133. static="false" final="false" visibility="public"
  20134. deprecated="not deprecated">
  20135. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  20136. <doc>
  20137. <![CDATA[Set the instance that is wrapped.
  20138. @param obj]]>
  20139. </doc>
  20140. </method>
  20141. <method name="get" return="org.apache.hadoop.io.Writable"
  20142. abstract="false" native="false" synchronized="false"
  20143. static="false" final="false" visibility="public"
  20144. deprecated="not deprecated">
  20145. <doc>
  20146. <![CDATA[Return the wrapped instance.]]>
  20147. </doc>
  20148. </method>
  20149. <method name="toString" return="java.lang.String"
  20150. abstract="false" native="false" synchronized="false"
  20151. static="false" final="false" visibility="public"
  20152. deprecated="not deprecated">
  20153. </method>
  20154. <method name="readFields"
  20155. abstract="false" native="false" synchronized="false"
  20156. static="false" final="false" visibility="public"
  20157. deprecated="not deprecated">
  20158. <param name="in" type="java.io.DataInput"/>
  20159. <exception name="IOException" type="java.io.IOException"/>
  20160. </method>
  20161. <method name="write"
  20162. abstract="false" native="false" synchronized="false"
  20163. static="false" final="false" visibility="public"
  20164. deprecated="not deprecated">
  20165. <param name="out" type="java.io.DataOutput"/>
  20166. <exception name="IOException" type="java.io.IOException"/>
  20167. </method>
  20168. <method name="getTypes" return="java.lang.Class[]"
  20169. abstract="true" native="false" synchronized="false"
  20170. static="false" final="false" visibility="protected"
  20171. deprecated="not deprecated">
  20172. <doc>
  20173. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  20174. to return a constant array of classes.]]>
  20175. </doc>
  20176. </method>
  20177. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20178. abstract="false" native="false" synchronized="false"
  20179. static="false" final="false" visibility="public"
  20180. deprecated="not deprecated">
  20181. </method>
  20182. <method name="setConf"
  20183. abstract="false" native="false" synchronized="false"
  20184. static="false" final="false" visibility="public"
  20185. deprecated="not deprecated">
  20186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20187. </method>
  20188. <doc>
  20189. <![CDATA[A wrapper for Writable instances.
  20190. <p>
  20191. When two sequence files, which have same Key type but different Value
  20192. types, are mapped out to reduce, multiple Value types is not allowed.
  20193. In this case, this class can help you wrap instances with different types.
  20194. </p>
  20195. <p>
  20196. Compared with <code>ObjectWritable</code>, this class is much more effective,
  20197. because <code>ObjectWritable</code> will append the class declaration as a String
  20198. into the output file in every Key-Value pair.
  20199. </p>
  20200. <p>
  20201. Generic Writable implements {@link Configurable} interface, so that it will be
  20202. configured by the framework. The configuration is passed to the wrapped objects
  20203. implementing {@link Configurable} interface <i>before deserialization</i>.
  20204. </p>
  20205. how to use it: <br>
  20206. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  20207. 2. Implements the abstract method <code>getTypes()</code>, defines
  20208. the classes which will be wrapped in GenericObject in application.
  20209. Attention: this classes defined in <code>getTypes()</code> method, must
  20210. implement <code>Writable</code> interface.
  20211. <br><br>
  20212. The code looks like this:
  20213. <blockquote><pre>
  20214. public class GenericObject extends GenericWritable {
  20215. private static Class[] CLASSES = {
  20216. ClassType1.class,
  20217. ClassType2.class,
  20218. ClassType3.class,
  20219. };
  20220. protected Class[] getTypes() {
  20221. return CLASSES;
  20222. }
  20223. }
  20224. </pre></blockquote>
  20225. @since Nov 8, 2006]]>
  20226. </doc>
  20227. </class>
  20228. <!-- end class org.apache.hadoop.io.GenericWritable -->
  20229. <!-- start class org.apache.hadoop.io.IntWritable -->
  20230. <class name="IntWritable" extends="java.lang.Object"
  20231. abstract="false"
  20232. static="false" final="false" visibility="public"
  20233. deprecated="not deprecated">
  20234. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20235. <constructor name="IntWritable"
  20236. static="false" final="false" visibility="public"
  20237. deprecated="not deprecated">
  20238. </constructor>
  20239. <constructor name="IntWritable" type="int"
  20240. static="false" final="false" visibility="public"
  20241. deprecated="not deprecated">
  20242. </constructor>
  20243. <method name="set"
  20244. abstract="false" native="false" synchronized="false"
  20245. static="false" final="false" visibility="public"
  20246. deprecated="not deprecated">
  20247. <param name="value" type="int"/>
  20248. <doc>
  20249. <![CDATA[Set the value of this IntWritable.]]>
  20250. </doc>
  20251. </method>
  20252. <method name="get" return="int"
  20253. abstract="false" native="false" synchronized="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <doc>
  20257. <![CDATA[Return the value of this IntWritable.]]>
  20258. </doc>
  20259. </method>
  20260. <method name="readFields"
  20261. abstract="false" native="false" synchronized="false"
  20262. static="false" final="false" visibility="public"
  20263. deprecated="not deprecated">
  20264. <param name="in" type="java.io.DataInput"/>
  20265. <exception name="IOException" type="java.io.IOException"/>
  20266. </method>
  20267. <method name="write"
  20268. abstract="false" native="false" synchronized="false"
  20269. static="false" final="false" visibility="public"
  20270. deprecated="not deprecated">
  20271. <param name="out" type="java.io.DataOutput"/>
  20272. <exception name="IOException" type="java.io.IOException"/>
  20273. </method>
  20274. <method name="equals" return="boolean"
  20275. abstract="false" native="false" synchronized="false"
  20276. static="false" final="false" visibility="public"
  20277. deprecated="not deprecated">
  20278. <param name="o" type="java.lang.Object"/>
  20279. <doc>
  20280. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  20281. </doc>
  20282. </method>
  20283. <method name="hashCode" return="int"
  20284. abstract="false" native="false" synchronized="false"
  20285. static="false" final="false" visibility="public"
  20286. deprecated="not deprecated">
  20287. </method>
  20288. <method name="compareTo" return="int"
  20289. abstract="false" native="false" synchronized="false"
  20290. static="false" final="false" visibility="public"
  20291. deprecated="not deprecated">
  20292. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  20293. <doc>
  20294. <![CDATA[Compares two IntWritables.]]>
  20295. </doc>
  20296. </method>
  20297. <method name="toString" return="java.lang.String"
  20298. abstract="false" native="false" synchronized="false"
  20299. static="false" final="false" visibility="public"
  20300. deprecated="not deprecated">
  20301. </method>
  20302. <doc>
  20303. <![CDATA[A WritableComparable for ints.]]>
  20304. </doc>
  20305. </class>
  20306. <!-- end class org.apache.hadoop.io.IntWritable -->
  20307. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  20308. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  20309. abstract="false"
  20310. static="true" final="false" visibility="public"
  20311. deprecated="not deprecated">
  20312. <constructor name="IntWritable.Comparator"
  20313. static="false" final="false" visibility="public"
  20314. deprecated="not deprecated">
  20315. </constructor>
  20316. <method name="compare" return="int"
  20317. abstract="false" native="false" synchronized="false"
  20318. static="false" final="false" visibility="public"
  20319. deprecated="not deprecated">
  20320. <param name="b1" type="byte[]"/>
  20321. <param name="s1" type="int"/>
  20322. <param name="l1" type="int"/>
  20323. <param name="b2" type="byte[]"/>
  20324. <param name="s2" type="int"/>
  20325. <param name="l2" type="int"/>
  20326. </method>
  20327. <doc>
  20328. <![CDATA[A Comparator optimized for IntWritable.]]>
  20329. </doc>
  20330. </class>
  20331. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  20332. <!-- start class org.apache.hadoop.io.IOUtils -->
  20333. <class name="IOUtils" extends="java.lang.Object"
  20334. abstract="false"
  20335. static="false" final="false" visibility="public"
  20336. deprecated="not deprecated">
  20337. <constructor name="IOUtils"
  20338. static="false" final="false" visibility="public"
  20339. deprecated="not deprecated">
  20340. </constructor>
  20341. <method name="copyBytes"
  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.InputStream"/>
  20346. <param name="out" type="java.io.OutputStream"/>
  20347. <param name="buffSize" type="int"/>
  20348. <param name="close" type="boolean"/>
  20349. <exception name="IOException" type="java.io.IOException"/>
  20350. <doc>
  20351. <![CDATA[Copies from one stream to another.
  20352. @param in InputStrem to read from
  20353. @param out OutputStream to write to
  20354. @param buffSize the size of the buffer
  20355. @param close whether or not close the InputStream and
  20356. OutputStream at the end. The streams are closed in the finally clause.]]>
  20357. </doc>
  20358. </method>
  20359. <method name="copyBytes"
  20360. abstract="false" native="false" synchronized="false"
  20361. static="true" final="false" visibility="public"
  20362. deprecated="not deprecated">
  20363. <param name="in" type="java.io.InputStream"/>
  20364. <param name="out" type="java.io.OutputStream"/>
  20365. <param name="buffSize" type="int"/>
  20366. <exception name="IOException" type="java.io.IOException"/>
  20367. <doc>
  20368. <![CDATA[Copies from one stream to another.
  20369. @param in InputStrem to read from
  20370. @param out OutputStream to write to
  20371. @param buffSize the size of the buffer]]>
  20372. </doc>
  20373. </method>
  20374. <method name="copyBytes"
  20375. abstract="false" native="false" synchronized="false"
  20376. static="true" final="false" visibility="public"
  20377. deprecated="not deprecated">
  20378. <param name="in" type="java.io.InputStream"/>
  20379. <param name="out" type="java.io.OutputStream"/>
  20380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20381. <exception name="IOException" type="java.io.IOException"/>
  20382. <doc>
  20383. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  20384. at the end</strong>.
  20385. @param in InputStrem to read from
  20386. @param out OutputStream to write to
  20387. @param conf the Configuration object]]>
  20388. </doc>
  20389. </method>
  20390. <method name="copyBytes"
  20391. abstract="false" native="false" synchronized="false"
  20392. static="true" final="false" visibility="public"
  20393. deprecated="not deprecated">
  20394. <param name="in" type="java.io.InputStream"/>
  20395. <param name="out" type="java.io.OutputStream"/>
  20396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20397. <param name="close" type="boolean"/>
  20398. <exception name="IOException" type="java.io.IOException"/>
  20399. <doc>
  20400. <![CDATA[Copies from one stream to another.
  20401. @param in InputStream to read from
  20402. @param out OutputStream to write to
  20403. @param conf the Configuration object
  20404. @param close whether or not close the InputStream and
  20405. OutputStream at the end. The streams are closed in the finally clause.]]>
  20406. </doc>
  20407. </method>
  20408. <method name="copyBytes"
  20409. abstract="false" native="false" synchronized="false"
  20410. static="true" final="false" visibility="public"
  20411. deprecated="not deprecated">
  20412. <param name="in" type="java.io.InputStream"/>
  20413. <param name="out" type="java.io.OutputStream"/>
  20414. <param name="count" type="long"/>
  20415. <param name="close" type="boolean"/>
  20416. <exception name="IOException" type="java.io.IOException"/>
  20417. <doc>
  20418. <![CDATA[Copies count bytes from one stream to another.
  20419. @param in InputStream to read from
  20420. @param out OutputStream to write to
  20421. @param count number of bytes to copy
  20422. @param close whether to close the streams
  20423. @throws IOException if bytes can not be read or written]]>
  20424. </doc>
  20425. </method>
  20426. <method name="wrappedReadForCompressedData" return="int"
  20427. abstract="false" native="false" synchronized="false"
  20428. static="true" final="false" visibility="public"
  20429. deprecated="not deprecated">
  20430. <param name="is" type="java.io.InputStream"/>
  20431. <param name="buf" type="byte[]"/>
  20432. <param name="off" type="int"/>
  20433. <param name="len" type="int"/>
  20434. <exception name="IOException" type="java.io.IOException"/>
  20435. <doc>
  20436. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  20437. thrown by the underlying stream (either IO or decompression-related), and
  20438. re-throws as an IOException.
  20439. @param is - InputStream to be read from
  20440. @param buf - buffer the data is read into
  20441. @param off - offset within buf
  20442. @param len - amount of data to be read
  20443. @return number of bytes read]]>
  20444. </doc>
  20445. </method>
  20446. <method name="readFully"
  20447. abstract="false" native="false" synchronized="false"
  20448. static="true" final="false" visibility="public"
  20449. deprecated="not deprecated">
  20450. <param name="in" type="java.io.InputStream"/>
  20451. <param name="buf" type="byte[]"/>
  20452. <param name="off" type="int"/>
  20453. <param name="len" type="int"/>
  20454. <exception name="IOException" type="java.io.IOException"/>
  20455. <doc>
  20456. <![CDATA[Reads len bytes in a loop.
  20457. @param in InputStream to read from
  20458. @param buf The buffer to fill
  20459. @param off offset from the buffer
  20460. @param len the length of bytes to read
  20461. @throws IOException if it could not read requested number of bytes
  20462. for any reason (including EOF)]]>
  20463. </doc>
  20464. </method>
  20465. <method name="skipFully"
  20466. abstract="false" native="false" synchronized="false"
  20467. static="true" final="false" visibility="public"
  20468. deprecated="not deprecated">
  20469. <param name="in" type="java.io.InputStream"/>
  20470. <param name="len" type="long"/>
  20471. <exception name="IOException" type="java.io.IOException"/>
  20472. <doc>
  20473. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  20474. @param in The InputStream to skip bytes from
  20475. @param len number of bytes to skip.
  20476. @throws IOException if it could not skip requested number of bytes
  20477. for any reason (including EOF)]]>
  20478. </doc>
  20479. </method>
  20480. <method name="cleanup"
  20481. abstract="false" native="false" synchronized="false"
  20482. static="true" final="false" visibility="public"
  20483. deprecated="not deprecated">
  20484. <param name="log" type="org.apache.commons.logging.Log"/>
  20485. <param name="closeables" type="java.io.Closeable[]"/>
  20486. <doc>
  20487. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  20488. null pointers. Must only be used for cleanup in exception handlers.
  20489. @param log the log to record problems to at debug level. Can be null.
  20490. @param closeables the objects to close]]>
  20491. </doc>
  20492. </method>
  20493. <method name="closeStream"
  20494. abstract="false" native="false" synchronized="false"
  20495. static="true" final="false" visibility="public"
  20496. deprecated="not deprecated">
  20497. <param name="stream" type="java.io.Closeable"/>
  20498. <doc>
  20499. <![CDATA[Closes the stream ignoring {@link IOException}.
  20500. Must only be called in cleaning up from exception handlers.
  20501. @param stream the Stream to close]]>
  20502. </doc>
  20503. </method>
  20504. <method name="closeSocket"
  20505. abstract="false" native="false" synchronized="false"
  20506. static="true" final="false" visibility="public"
  20507. deprecated="not deprecated">
  20508. <param name="sock" type="java.net.Socket"/>
  20509. <doc>
  20510. <![CDATA[Closes the socket ignoring {@link IOException}
  20511. @param sock the Socket to close]]>
  20512. </doc>
  20513. </method>
  20514. <method name="writeFully"
  20515. abstract="false" native="false" synchronized="false"
  20516. static="true" final="false" visibility="public"
  20517. deprecated="not deprecated">
  20518. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  20519. <param name="buf" type="java.nio.ByteBuffer"/>
  20520. <exception name="IOException" type="java.io.IOException"/>
  20521. <doc>
  20522. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  20523. @param bc The WritableByteChannel to write to
  20524. @param buf The input buffer
  20525. @throws IOException On I/O error]]>
  20526. </doc>
  20527. </method>
  20528. <method name="writeFully"
  20529. abstract="false" native="false" synchronized="false"
  20530. static="true" final="false" visibility="public"
  20531. deprecated="not deprecated">
  20532. <param name="fc" type="java.nio.channels.FileChannel"/>
  20533. <param name="buf" type="java.nio.ByteBuffer"/>
  20534. <param name="offset" type="long"/>
  20535. <exception name="IOException" type="java.io.IOException"/>
  20536. <doc>
  20537. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  20538. handling short writes.
  20539. @param fc The FileChannel to write to
  20540. @param buf The input buffer
  20541. @param offset The offset in the file to start writing at
  20542. @throws IOException On I/O error]]>
  20543. </doc>
  20544. </method>
  20545. <doc>
  20546. <![CDATA[An utility class for I/O related functionality.]]>
  20547. </doc>
  20548. </class>
  20549. <!-- end class org.apache.hadoop.io.IOUtils -->
  20550. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  20551. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  20552. abstract="false"
  20553. static="true" final="false" visibility="public"
  20554. deprecated="not deprecated">
  20555. <constructor name="IOUtils.NullOutputStream"
  20556. static="false" final="false" visibility="public"
  20557. deprecated="not deprecated">
  20558. </constructor>
  20559. <method name="write"
  20560. abstract="false" native="false" synchronized="false"
  20561. static="false" final="false" visibility="public"
  20562. deprecated="not deprecated">
  20563. <param name="b" type="byte[]"/>
  20564. <param name="off" type="int"/>
  20565. <param name="len" type="int"/>
  20566. <exception name="IOException" type="java.io.IOException"/>
  20567. </method>
  20568. <method name="write"
  20569. abstract="false" native="false" synchronized="false"
  20570. static="false" final="false" visibility="public"
  20571. deprecated="not deprecated">
  20572. <param name="b" type="int"/>
  20573. <exception name="IOException" type="java.io.IOException"/>
  20574. </method>
  20575. <doc>
  20576. <![CDATA[The /dev/null of OutputStreams.]]>
  20577. </doc>
  20578. </class>
  20579. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  20580. <!-- start class org.apache.hadoop.io.LongWritable -->
  20581. <class name="LongWritable" extends="java.lang.Object"
  20582. abstract="false"
  20583. static="false" final="false" visibility="public"
  20584. deprecated="not deprecated">
  20585. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20586. <constructor name="LongWritable"
  20587. static="false" final="false" visibility="public"
  20588. deprecated="not deprecated">
  20589. </constructor>
  20590. <constructor name="LongWritable" type="long"
  20591. static="false" final="false" visibility="public"
  20592. deprecated="not deprecated">
  20593. </constructor>
  20594. <method name="set"
  20595. abstract="false" native="false" synchronized="false"
  20596. static="false" final="false" visibility="public"
  20597. deprecated="not deprecated">
  20598. <param name="value" type="long"/>
  20599. <doc>
  20600. <![CDATA[Set the value of this LongWritable.]]>
  20601. </doc>
  20602. </method>
  20603. <method name="get" return="long"
  20604. abstract="false" native="false" synchronized="false"
  20605. static="false" final="false" visibility="public"
  20606. deprecated="not deprecated">
  20607. <doc>
  20608. <![CDATA[Return the value of this LongWritable.]]>
  20609. </doc>
  20610. </method>
  20611. <method name="readFields"
  20612. abstract="false" native="false" synchronized="false"
  20613. static="false" final="false" visibility="public"
  20614. deprecated="not deprecated">
  20615. <param name="in" type="java.io.DataInput"/>
  20616. <exception name="IOException" type="java.io.IOException"/>
  20617. </method>
  20618. <method name="write"
  20619. abstract="false" native="false" synchronized="false"
  20620. static="false" final="false" visibility="public"
  20621. deprecated="not deprecated">
  20622. <param name="out" type="java.io.DataOutput"/>
  20623. <exception name="IOException" type="java.io.IOException"/>
  20624. </method>
  20625. <method name="equals" return="boolean"
  20626. abstract="false" native="false" synchronized="false"
  20627. static="false" final="false" visibility="public"
  20628. deprecated="not deprecated">
  20629. <param name="o" type="java.lang.Object"/>
  20630. <doc>
  20631. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  20632. </doc>
  20633. </method>
  20634. <method name="hashCode" return="int"
  20635. abstract="false" native="false" synchronized="false"
  20636. static="false" final="false" visibility="public"
  20637. deprecated="not deprecated">
  20638. </method>
  20639. <method name="compareTo" return="int"
  20640. abstract="false" native="false" synchronized="false"
  20641. static="false" final="false" visibility="public"
  20642. deprecated="not deprecated">
  20643. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  20644. <doc>
  20645. <![CDATA[Compares two LongWritables.]]>
  20646. </doc>
  20647. </method>
  20648. <method name="toString" return="java.lang.String"
  20649. abstract="false" native="false" synchronized="false"
  20650. static="false" final="false" visibility="public"
  20651. deprecated="not deprecated">
  20652. </method>
  20653. <doc>
  20654. <![CDATA[A WritableComparable for longs.]]>
  20655. </doc>
  20656. </class>
  20657. <!-- end class org.apache.hadoop.io.LongWritable -->
  20658. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  20659. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  20660. abstract="false"
  20661. static="true" final="false" visibility="public"
  20662. deprecated="not deprecated">
  20663. <constructor name="LongWritable.Comparator"
  20664. static="false" final="false" visibility="public"
  20665. deprecated="not deprecated">
  20666. </constructor>
  20667. <method name="compare" return="int"
  20668. abstract="false" native="false" synchronized="false"
  20669. static="false" final="false" visibility="public"
  20670. deprecated="not deprecated">
  20671. <param name="b1" type="byte[]"/>
  20672. <param name="s1" type="int"/>
  20673. <param name="l1" type="int"/>
  20674. <param name="b2" type="byte[]"/>
  20675. <param name="s2" type="int"/>
  20676. <param name="l2" type="int"/>
  20677. </method>
  20678. <doc>
  20679. <![CDATA[A Comparator optimized for LongWritable.]]>
  20680. </doc>
  20681. </class>
  20682. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  20683. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  20684. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  20685. abstract="false"
  20686. static="true" final="false" visibility="public"
  20687. deprecated="not deprecated">
  20688. <constructor name="LongWritable.DecreasingComparator"
  20689. static="false" final="false" visibility="public"
  20690. deprecated="not deprecated">
  20691. </constructor>
  20692. <method name="compare" return="int"
  20693. abstract="false" native="false" synchronized="false"
  20694. static="false" final="false" visibility="public"
  20695. deprecated="not deprecated">
  20696. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  20697. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  20698. </method>
  20699. <method name="compare" return="int"
  20700. abstract="false" native="false" synchronized="false"
  20701. static="false" final="false" visibility="public"
  20702. deprecated="not deprecated">
  20703. <param name="b1" type="byte[]"/>
  20704. <param name="s1" type="int"/>
  20705. <param name="l1" type="int"/>
  20706. <param name="b2" type="byte[]"/>
  20707. <param name="s2" type="int"/>
  20708. <param name="l2" type="int"/>
  20709. </method>
  20710. <doc>
  20711. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  20712. </doc>
  20713. </class>
  20714. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  20715. <!-- start class org.apache.hadoop.io.MapFile -->
  20716. <class name="MapFile" extends="java.lang.Object"
  20717. abstract="false"
  20718. static="false" final="false" visibility="public"
  20719. deprecated="not deprecated">
  20720. <constructor name="MapFile"
  20721. static="false" final="false" visibility="protected"
  20722. deprecated="not deprecated">
  20723. </constructor>
  20724. <method name="rename"
  20725. abstract="false" native="false" synchronized="false"
  20726. static="true" final="false" visibility="public"
  20727. deprecated="not deprecated">
  20728. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20729. <param name="oldName" type="java.lang.String"/>
  20730. <param name="newName" type="java.lang.String"/>
  20731. <exception name="IOException" type="java.io.IOException"/>
  20732. <doc>
  20733. <![CDATA[Renames an existing map directory.]]>
  20734. </doc>
  20735. </method>
  20736. <method name="delete"
  20737. abstract="false" native="false" synchronized="false"
  20738. static="true" final="false" visibility="public"
  20739. deprecated="not deprecated">
  20740. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20741. <param name="name" type="java.lang.String"/>
  20742. <exception name="IOException" type="java.io.IOException"/>
  20743. <doc>
  20744. <![CDATA[Deletes the named map file.]]>
  20745. </doc>
  20746. </method>
  20747. <method name="fix" return="long"
  20748. abstract="false" native="false" synchronized="false"
  20749. static="true" final="false" visibility="public"
  20750. deprecated="not deprecated">
  20751. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20752. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  20753. <param name="keyClass" type="java.lang.Class"/>
  20754. <param name="valueClass" type="java.lang.Class"/>
  20755. <param name="dryrun" type="boolean"/>
  20756. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20757. <exception name="Exception" type="java.lang.Exception"/>
  20758. <doc>
  20759. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  20760. @param fs filesystem
  20761. @param dir directory containing the MapFile data and index
  20762. @param keyClass key class (has to be a subclass of Writable)
  20763. @param valueClass value class (has to be a subclass of Writable)
  20764. @param dryrun do not perform any changes, just report what needs to be done
  20765. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  20766. @throws Exception]]>
  20767. </doc>
  20768. </method>
  20769. <method name="main"
  20770. abstract="false" native="false" synchronized="false"
  20771. static="true" final="false" visibility="public"
  20772. deprecated="not deprecated">
  20773. <param name="args" type="java.lang.String[]"/>
  20774. <exception name="Exception" type="java.lang.Exception"/>
  20775. </method>
  20776. <field name="INDEX_FILE_NAME" type="java.lang.String"
  20777. transient="false" volatile="false"
  20778. static="true" final="true" visibility="public"
  20779. deprecated="not deprecated">
  20780. <doc>
  20781. <![CDATA[The name of the index file.]]>
  20782. </doc>
  20783. </field>
  20784. <field name="DATA_FILE_NAME" type="java.lang.String"
  20785. transient="false" volatile="false"
  20786. static="true" final="true" visibility="public"
  20787. deprecated="not deprecated">
  20788. <doc>
  20789. <![CDATA[The name of the data file.]]>
  20790. </doc>
  20791. </field>
  20792. <doc>
  20793. <![CDATA[A file-based map from keys to values.
  20794. <p>A map is a directory containing two files, the <code>data</code> file,
  20795. containing all keys and values in the map, and a smaller <code>index</code>
  20796. file, containing a fraction of the keys. The fraction is determined by
  20797. {@link Writer#getIndexInterval()}.
  20798. <p>The index file is read entirely into memory. Thus key implementations
  20799. should try to keep themselves small.
  20800. <p>Map files are created by adding entries in-order. To maintain a large
  20801. database, perform updates by copying the previous version of a database and
  20802. merging in a sorted change list, to create a new version of the database in
  20803. a new file. Sorting large change lists can be done with {@link
  20804. SequenceFile.Sorter}.]]>
  20805. </doc>
  20806. </class>
  20807. <!-- end class org.apache.hadoop.io.MapFile -->
  20808. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  20809. <class name="MapFile.Reader" extends="java.lang.Object"
  20810. abstract="false"
  20811. static="true" final="false" visibility="public"
  20812. deprecated="not deprecated">
  20813. <implements name="java.io.Closeable"/>
  20814. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  20815. static="false" final="false" visibility="public"
  20816. deprecated="not deprecated">
  20817. <exception name="IOException" type="java.io.IOException"/>
  20818. </constructor>
  20819. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  20820. static="false" final="false" visibility="public"
  20821. deprecated="deprecated, no comment">
  20822. <exception name="IOException" type="java.io.IOException"/>
  20823. <doc>
  20824. <![CDATA[Construct a map reader for the named map.
  20825. @deprecated]]>
  20826. </doc>
  20827. </constructor>
  20828. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  20829. static="false" final="false" visibility="public"
  20830. deprecated="deprecated, no comment">
  20831. <exception name="IOException" type="java.io.IOException"/>
  20832. <doc>
  20833. <![CDATA[Construct a map reader for the named map using the named comparator.
  20834. @deprecated]]>
  20835. </doc>
  20836. </constructor>
  20837. <method name="getKeyClass" return="java.lang.Class"
  20838. abstract="false" native="false" synchronized="false"
  20839. static="false" final="false" visibility="public"
  20840. deprecated="not deprecated">
  20841. <doc>
  20842. <![CDATA[Returns the class of keys in this file.]]>
  20843. </doc>
  20844. </method>
  20845. <method name="getValueClass" return="java.lang.Class"
  20846. abstract="false" native="false" synchronized="false"
  20847. static="false" final="false" visibility="public"
  20848. deprecated="not deprecated">
  20849. <doc>
  20850. <![CDATA[Returns the class of values in this file.]]>
  20851. </doc>
  20852. </method>
  20853. <method name="comparator" return="org.apache.hadoop.io.MapFile.Reader.Option"
  20854. abstract="false" native="false" synchronized="false"
  20855. static="true" final="false" visibility="public"
  20856. deprecated="not deprecated">
  20857. <param name="value" type="org.apache.hadoop.io.WritableComparator"/>
  20858. </method>
  20859. <method name="open"
  20860. abstract="false" native="false" synchronized="true"
  20861. static="false" final="false" visibility="protected"
  20862. deprecated="not deprecated">
  20863. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  20864. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  20865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20866. <param name="options" type="org.apache.hadoop.io.SequenceFile.Reader.Option[]"/>
  20867. <exception name="IOException" type="java.io.IOException"/>
  20868. </method>
  20869. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  20870. abstract="false" native="false" synchronized="false"
  20871. static="false" final="false" visibility="protected"
  20872. deprecated="not deprecated">
  20873. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  20874. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20875. <param name="options" type="org.apache.hadoop.io.SequenceFile.Reader.Option[]"/>
  20876. <exception name="IOException" type="java.io.IOException"/>
  20877. <doc>
  20878. <![CDATA[Override this method to specialize the type of
  20879. {@link SequenceFile.Reader} returned.]]>
  20880. </doc>
  20881. </method>
  20882. <method name="reset"
  20883. abstract="false" native="false" synchronized="true"
  20884. static="false" final="false" visibility="public"
  20885. deprecated="not deprecated">
  20886. <exception name="IOException" type="java.io.IOException"/>
  20887. <doc>
  20888. <![CDATA[Re-positions the reader before its first key.]]>
  20889. </doc>
  20890. </method>
  20891. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  20892. abstract="false" native="false" synchronized="true"
  20893. static="false" final="false" visibility="public"
  20894. deprecated="not deprecated">
  20895. <exception name="IOException" type="java.io.IOException"/>
  20896. <doc>
  20897. <![CDATA[Get the key at approximately the middle of the file. Or null if the
  20898. file is empty.]]>
  20899. </doc>
  20900. </method>
  20901. <method name="finalKey"
  20902. abstract="false" native="false" synchronized="true"
  20903. static="false" final="false" visibility="public"
  20904. deprecated="not deprecated">
  20905. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20906. <exception name="IOException" type="java.io.IOException"/>
  20907. <doc>
  20908. <![CDATA[Reads the final key from the file.
  20909. @param key key to read into]]>
  20910. </doc>
  20911. </method>
  20912. <method name="seek" return="boolean"
  20913. abstract="false" native="false" synchronized="true"
  20914. static="false" final="false" visibility="public"
  20915. deprecated="not deprecated">
  20916. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20917. <exception name="IOException" type="java.io.IOException"/>
  20918. <doc>
  20919. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  20920. first entry after the named key. Returns true iff the named key exists
  20921. in this map.]]>
  20922. </doc>
  20923. </method>
  20924. <method name="next" return="boolean"
  20925. abstract="false" native="false" synchronized="true"
  20926. static="false" final="false" visibility="public"
  20927. deprecated="not deprecated">
  20928. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20929. <param name="val" type="org.apache.hadoop.io.Writable"/>
  20930. <exception name="IOException" type="java.io.IOException"/>
  20931. <doc>
  20932. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  20933. <code>val</code>. Returns true if such a pair exists and false when at
  20934. the end of the map]]>
  20935. </doc>
  20936. </method>
  20937. <method name="get" return="org.apache.hadoop.io.Writable"
  20938. abstract="false" native="false" synchronized="true"
  20939. static="false" final="false" visibility="public"
  20940. deprecated="not deprecated">
  20941. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20942. <param name="val" type="org.apache.hadoop.io.Writable"/>
  20943. <exception name="IOException" type="java.io.IOException"/>
  20944. <doc>
  20945. <![CDATA[Return the value for the named key, or null if none exists.]]>
  20946. </doc>
  20947. </method>
  20948. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  20949. abstract="false" native="false" synchronized="true"
  20950. static="false" final="false" visibility="public"
  20951. deprecated="not deprecated">
  20952. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20953. <param name="val" type="org.apache.hadoop.io.Writable"/>
  20954. <exception name="IOException" type="java.io.IOException"/>
  20955. <doc>
  20956. <![CDATA[Finds the record that is the closest match to the specified key.
  20957. Returns <code>key</code> or if it does not exist, at the first entry
  20958. after the named key.
  20959. - * @param key - key that we're trying to find
  20960. - * @param val - data value if key is found
  20961. - * @return - the key that was the closest match or null if eof.]]>
  20962. </doc>
  20963. </method>
  20964. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  20965. abstract="false" native="false" synchronized="true"
  20966. static="false" final="false" visibility="public"
  20967. deprecated="not deprecated">
  20968. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20969. <param name="val" type="org.apache.hadoop.io.Writable"/>
  20970. <param name="before" type="boolean"/>
  20971. <exception name="IOException" type="java.io.IOException"/>
  20972. <doc>
  20973. <![CDATA[Finds the record that is the closest match to the specified key.
  20974. @param key - key that we're trying to find
  20975. @param val - data value if key is found
  20976. @param before - IF true, and <code>key</code> does not exist, return
  20977. the first entry that falls just before the <code>key</code>. Otherwise,
  20978. return the record that sorts just after.
  20979. @return - the key that was the closest match or null if eof.]]>
  20980. </doc>
  20981. </method>
  20982. <method name="close"
  20983. abstract="false" native="false" synchronized="true"
  20984. static="false" final="false" visibility="public"
  20985. deprecated="not deprecated">
  20986. <exception name="IOException" type="java.io.IOException"/>
  20987. <doc>
  20988. <![CDATA[Close the map.]]>
  20989. </doc>
  20990. </method>
  20991. <doc>
  20992. <![CDATA[Provide access to an existing map.]]>
  20993. </doc>
  20994. </class>
  20995. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  20996. <!-- start interface org.apache.hadoop.io.MapFile.Reader.Option -->
  20997. <interface name="MapFile.Reader.Option" abstract="true"
  20998. static="true" final="false" visibility="public"
  20999. deprecated="not deprecated">
  21000. <implements name="org.apache.hadoop.io.SequenceFile.Reader.Option"/>
  21001. </interface>
  21002. <!-- end interface org.apache.hadoop.io.MapFile.Reader.Option -->
  21003. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  21004. <class name="MapFile.Writer" extends="java.lang.Object"
  21005. abstract="false"
  21006. static="true" final="false" visibility="public"
  21007. deprecated="not deprecated">
  21008. <implements name="java.io.Closeable"/>
  21009. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  21010. static="false" final="false" visibility="public"
  21011. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  21012. <exception name="IOException" type="java.io.IOException"/>
  21013. <doc>
  21014. <![CDATA[Create the named map for keys of the named class.
  21015. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  21016. </doc>
  21017. </constructor>
  21018. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  21019. static="false" final="false" visibility="public"
  21020. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  21021. <exception name="IOException" type="java.io.IOException"/>
  21022. <doc>
  21023. <![CDATA[Create the named map for keys of the named class.
  21024. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  21025. </doc>
  21026. </constructor>
  21027. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  21028. static="false" final="false" visibility="public"
  21029. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  21030. <exception name="IOException" type="java.io.IOException"/>
  21031. <doc>
  21032. <![CDATA[Create the named map for keys of the named class.
  21033. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  21034. </doc>
  21035. </constructor>
  21036. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  21037. static="false" final="false" visibility="public"
  21038. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  21039. <exception name="IOException" type="java.io.IOException"/>
  21040. <doc>
  21041. <![CDATA[Create the named map for keys of the named class.
  21042. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  21043. </doc>
  21044. </constructor>
  21045. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  21046. static="false" final="false" visibility="public"
  21047. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  21048. <exception name="IOException" type="java.io.IOException"/>
  21049. <doc>
  21050. <![CDATA[Create the named map using the named key comparator.
  21051. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  21052. </doc>
  21053. </constructor>
  21054. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  21055. static="false" final="false" visibility="public"
  21056. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  21057. <exception name="IOException" type="java.io.IOException"/>
  21058. <doc>
  21059. <![CDATA[Create the named map using the named key comparator.
  21060. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  21061. </doc>
  21062. </constructor>
  21063. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  21064. static="false" final="false" visibility="public"
  21065. deprecated="Use Writer(Configuration, Path, Option...)} instead.">
  21066. <exception name="IOException" type="java.io.IOException"/>
  21067. <doc>
  21068. <![CDATA[Create the named map using the named key comparator.
  21069. @deprecated Use Writer(Configuration, Path, Option...)} instead.]]>
  21070. </doc>
  21071. </constructor>
  21072. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  21073. static="false" final="false" visibility="public"
  21074. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  21075. <exception name="IOException" type="java.io.IOException"/>
  21076. <doc>
  21077. <![CDATA[Create the named map using the named key comparator.
  21078. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  21079. </doc>
  21080. </constructor>
  21081. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, org.apache.hadoop.io.SequenceFile.Writer.Option[]"
  21082. static="false" final="false" visibility="public"
  21083. deprecated="not deprecated">
  21084. <exception name="IOException" type="java.io.IOException"/>
  21085. </constructor>
  21086. <method name="keyClass" return="org.apache.hadoop.io.MapFile.Writer.Option"
  21087. abstract="false" native="false" synchronized="false"
  21088. static="true" final="false" visibility="public"
  21089. deprecated="not deprecated">
  21090. <param name="value" type="java.lang.Class"/>
  21091. </method>
  21092. <method name="comparator" return="org.apache.hadoop.io.MapFile.Writer.Option"
  21093. abstract="false" native="false" synchronized="false"
  21094. static="true" final="false" visibility="public"
  21095. deprecated="not deprecated">
  21096. <param name="value" type="org.apache.hadoop.io.WritableComparator"/>
  21097. </method>
  21098. <method name="valueClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  21099. abstract="false" native="false" synchronized="false"
  21100. static="true" final="false" visibility="public"
  21101. deprecated="not deprecated">
  21102. <param name="value" type="java.lang.Class"/>
  21103. </method>
  21104. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  21105. abstract="false" native="false" synchronized="false"
  21106. static="true" final="false" visibility="public"
  21107. deprecated="not deprecated">
  21108. <param name="type" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  21109. </method>
  21110. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  21111. abstract="false" native="false" synchronized="false"
  21112. static="true" final="false" visibility="public"
  21113. deprecated="not deprecated">
  21114. <param name="type" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  21115. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  21116. </method>
  21117. <method name="progressable" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  21118. abstract="false" native="false" synchronized="false"
  21119. static="true" final="false" visibility="public"
  21120. deprecated="not deprecated">
  21121. <param name="value" type="org.apache.hadoop.util.Progressable"/>
  21122. </method>
  21123. <method name="getIndexInterval" return="int"
  21124. abstract="false" native="false" synchronized="false"
  21125. static="false" final="false" visibility="public"
  21126. deprecated="not deprecated">
  21127. <doc>
  21128. <![CDATA[The number of entries that are added before an index entry is added.]]>
  21129. </doc>
  21130. </method>
  21131. <method name="setIndexInterval"
  21132. abstract="false" native="false" synchronized="false"
  21133. static="false" final="false" visibility="public"
  21134. deprecated="not deprecated">
  21135. <param name="interval" type="int"/>
  21136. <doc>
  21137. <![CDATA[Sets the index interval.
  21138. @see #getIndexInterval()]]>
  21139. </doc>
  21140. </method>
  21141. <method name="setIndexInterval"
  21142. abstract="false" native="false" synchronized="false"
  21143. static="true" final="false" visibility="public"
  21144. deprecated="not deprecated">
  21145. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21146. <param name="interval" type="int"/>
  21147. <doc>
  21148. <![CDATA[Sets the index interval and stores it in conf
  21149. @see #getIndexInterval()]]>
  21150. </doc>
  21151. </method>
  21152. <method name="close"
  21153. abstract="false" native="false" synchronized="true"
  21154. static="false" final="false" visibility="public"
  21155. deprecated="not deprecated">
  21156. <exception name="IOException" type="java.io.IOException"/>
  21157. <doc>
  21158. <![CDATA[Close the map.]]>
  21159. </doc>
  21160. </method>
  21161. <method name="append"
  21162. abstract="false" native="false" synchronized="true"
  21163. static="false" final="false" visibility="public"
  21164. deprecated="not deprecated">
  21165. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  21166. <param name="val" type="org.apache.hadoop.io.Writable"/>
  21167. <exception name="IOException" type="java.io.IOException"/>
  21168. <doc>
  21169. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  21170. to the previous key added to the map.]]>
  21171. </doc>
  21172. </method>
  21173. <doc>
  21174. <![CDATA[Writes a new map.]]>
  21175. </doc>
  21176. </class>
  21177. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  21178. <!-- start interface org.apache.hadoop.io.MapFile.Writer.Option -->
  21179. <interface name="MapFile.Writer.Option" abstract="true"
  21180. static="true" final="false" visibility="public"
  21181. deprecated="not deprecated">
  21182. <implements name="org.apache.hadoop.io.SequenceFile.Writer.Option"/>
  21183. </interface>
  21184. <!-- end interface org.apache.hadoop.io.MapFile.Writer.Option -->
  21185. <!-- start class org.apache.hadoop.io.MapWritable -->
  21186. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  21187. abstract="false"
  21188. static="false" final="false" visibility="public"
  21189. deprecated="not deprecated">
  21190. <implements name="java.util.Map"/>
  21191. <constructor name="MapWritable"
  21192. static="false" final="false" visibility="public"
  21193. deprecated="not deprecated">
  21194. <doc>
  21195. <![CDATA[Default constructor.]]>
  21196. </doc>
  21197. </constructor>
  21198. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  21199. static="false" final="false" visibility="public"
  21200. deprecated="not deprecated">
  21201. <doc>
  21202. <![CDATA[Copy constructor.
  21203. @param other the map to copy from]]>
  21204. </doc>
  21205. </constructor>
  21206. <method name="clear"
  21207. abstract="false" native="false" synchronized="false"
  21208. static="false" final="false" visibility="public"
  21209. deprecated="not deprecated">
  21210. </method>
  21211. <method name="containsKey" return="boolean"
  21212. abstract="false" native="false" synchronized="false"
  21213. static="false" final="false" visibility="public"
  21214. deprecated="not deprecated">
  21215. <param name="key" type="java.lang.Object"/>
  21216. </method>
  21217. <method name="containsValue" return="boolean"
  21218. abstract="false" native="false" synchronized="false"
  21219. static="false" final="false" visibility="public"
  21220. deprecated="not deprecated">
  21221. <param name="value" type="java.lang.Object"/>
  21222. </method>
  21223. <method name="entrySet" return="java.util.Set"
  21224. abstract="false" native="false" synchronized="false"
  21225. static="false" final="false" visibility="public"
  21226. deprecated="not deprecated">
  21227. </method>
  21228. <method name="equals" return="boolean"
  21229. abstract="false" native="false" synchronized="false"
  21230. static="false" final="false" visibility="public"
  21231. deprecated="not deprecated">
  21232. <param name="obj" type="java.lang.Object"/>
  21233. </method>
  21234. <method name="get" return="org.apache.hadoop.io.Writable"
  21235. abstract="false" native="false" synchronized="false"
  21236. static="false" final="false" visibility="public"
  21237. deprecated="not deprecated">
  21238. <param name="key" type="java.lang.Object"/>
  21239. </method>
  21240. <method name="hashCode" return="int"
  21241. abstract="false" native="false" synchronized="false"
  21242. static="false" final="false" visibility="public"
  21243. deprecated="not deprecated">
  21244. </method>
  21245. <method name="isEmpty" return="boolean"
  21246. abstract="false" native="false" synchronized="false"
  21247. static="false" final="false" visibility="public"
  21248. deprecated="not deprecated">
  21249. </method>
  21250. <method name="keySet" return="java.util.Set"
  21251. abstract="false" native="false" synchronized="false"
  21252. static="false" final="false" visibility="public"
  21253. deprecated="not deprecated">
  21254. </method>
  21255. <method name="put" return="org.apache.hadoop.io.Writable"
  21256. abstract="false" native="false" synchronized="false"
  21257. static="false" final="false" visibility="public"
  21258. deprecated="not deprecated">
  21259. <param name="key" type="org.apache.hadoop.io.Writable"/>
  21260. <param name="value" type="org.apache.hadoop.io.Writable"/>
  21261. </method>
  21262. <method name="putAll"
  21263. abstract="false" native="false" synchronized="false"
  21264. static="false" final="false" visibility="public"
  21265. deprecated="not deprecated">
  21266. <param name="t" type="java.util.Map"/>
  21267. </method>
  21268. <method name="remove" return="org.apache.hadoop.io.Writable"
  21269. abstract="false" native="false" synchronized="false"
  21270. static="false" final="false" visibility="public"
  21271. deprecated="not deprecated">
  21272. <param name="key" type="java.lang.Object"/>
  21273. </method>
  21274. <method name="size" return="int"
  21275. abstract="false" native="false" synchronized="false"
  21276. static="false" final="false" visibility="public"
  21277. deprecated="not deprecated">
  21278. </method>
  21279. <method name="values" return="java.util.Collection"
  21280. abstract="false" native="false" synchronized="false"
  21281. static="false" final="false" visibility="public"
  21282. deprecated="not deprecated">
  21283. </method>
  21284. <method name="write"
  21285. abstract="false" native="false" synchronized="false"
  21286. static="false" final="false" visibility="public"
  21287. deprecated="not deprecated">
  21288. <param name="out" type="java.io.DataOutput"/>
  21289. <exception name="IOException" type="java.io.IOException"/>
  21290. </method>
  21291. <method name="readFields"
  21292. abstract="false" native="false" synchronized="false"
  21293. static="false" final="false" visibility="public"
  21294. deprecated="not deprecated">
  21295. <param name="in" type="java.io.DataInput"/>
  21296. <exception name="IOException" type="java.io.IOException"/>
  21297. </method>
  21298. <doc>
  21299. <![CDATA[A Writable Map.]]>
  21300. </doc>
  21301. </class>
  21302. <!-- end class org.apache.hadoop.io.MapWritable -->
  21303. <!-- start class org.apache.hadoop.io.MD5Hash -->
  21304. <class name="MD5Hash" extends="java.lang.Object"
  21305. abstract="false"
  21306. static="false" final="false" visibility="public"
  21307. deprecated="not deprecated">
  21308. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21309. <constructor name="MD5Hash"
  21310. static="false" final="false" visibility="public"
  21311. deprecated="not deprecated">
  21312. <doc>
  21313. <![CDATA[Constructs an MD5Hash.]]>
  21314. </doc>
  21315. </constructor>
  21316. <constructor name="MD5Hash" type="java.lang.String"
  21317. static="false" final="false" visibility="public"
  21318. deprecated="not deprecated">
  21319. <doc>
  21320. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  21321. </doc>
  21322. </constructor>
  21323. <constructor name="MD5Hash" type="byte[]"
  21324. static="false" final="false" visibility="public"
  21325. deprecated="not deprecated">
  21326. <doc>
  21327. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  21328. </doc>
  21329. </constructor>
  21330. <method name="readFields"
  21331. abstract="false" native="false" synchronized="false"
  21332. static="false" final="false" visibility="public"
  21333. deprecated="not deprecated">
  21334. <param name="in" type="java.io.DataInput"/>
  21335. <exception name="IOException" type="java.io.IOException"/>
  21336. </method>
  21337. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  21338. abstract="false" native="false" synchronized="false"
  21339. static="true" final="false" visibility="public"
  21340. deprecated="not deprecated">
  21341. <param name="in" type="java.io.DataInput"/>
  21342. <exception name="IOException" type="java.io.IOException"/>
  21343. <doc>
  21344. <![CDATA[Constructs, reads and returns an instance.]]>
  21345. </doc>
  21346. </method>
  21347. <method name="write"
  21348. abstract="false" native="false" synchronized="false"
  21349. static="false" final="false" visibility="public"
  21350. deprecated="not deprecated">
  21351. <param name="out" type="java.io.DataOutput"/>
  21352. <exception name="IOException" type="java.io.IOException"/>
  21353. </method>
  21354. <method name="set"
  21355. abstract="false" native="false" synchronized="false"
  21356. static="false" final="false" visibility="public"
  21357. deprecated="not deprecated">
  21358. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  21359. <doc>
  21360. <![CDATA[Copy the contents of another instance into this instance.]]>
  21361. </doc>
  21362. </method>
  21363. <method name="getDigest" return="byte[]"
  21364. abstract="false" native="false" synchronized="false"
  21365. static="false" final="false" visibility="public"
  21366. deprecated="not deprecated">
  21367. <doc>
  21368. <![CDATA[Returns the digest bytes.]]>
  21369. </doc>
  21370. </method>
  21371. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21372. abstract="false" native="false" synchronized="false"
  21373. static="true" final="false" visibility="public"
  21374. deprecated="not deprecated">
  21375. <param name="data" type="byte[]"/>
  21376. <doc>
  21377. <![CDATA[Construct a hash value for a byte array.]]>
  21378. </doc>
  21379. </method>
  21380. <method name="getDigester" return="java.security.MessageDigest"
  21381. abstract="false" native="false" synchronized="false"
  21382. static="true" final="false" visibility="public"
  21383. deprecated="not deprecated">
  21384. <doc>
  21385. <![CDATA[Create a thread local MD5 digester]]>
  21386. </doc>
  21387. </method>
  21388. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21389. abstract="false" native="false" synchronized="false"
  21390. static="true" final="false" visibility="public"
  21391. deprecated="not deprecated">
  21392. <param name="in" type="java.io.InputStream"/>
  21393. <exception name="IOException" type="java.io.IOException"/>
  21394. <doc>
  21395. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  21396. </doc>
  21397. </method>
  21398. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21399. abstract="false" native="false" synchronized="false"
  21400. static="true" final="false" visibility="public"
  21401. deprecated="not deprecated">
  21402. <param name="data" type="byte[]"/>
  21403. <param name="start" type="int"/>
  21404. <param name="len" type="int"/>
  21405. <doc>
  21406. <![CDATA[Construct a hash value for a byte array.]]>
  21407. </doc>
  21408. </method>
  21409. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21410. abstract="false" native="false" synchronized="false"
  21411. static="true" final="false" visibility="public"
  21412. deprecated="not deprecated">
  21413. <param name="string" type="java.lang.String"/>
  21414. <doc>
  21415. <![CDATA[Construct a hash value for a String.]]>
  21416. </doc>
  21417. </method>
  21418. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  21419. abstract="false" native="false" synchronized="false"
  21420. static="true" final="false" visibility="public"
  21421. deprecated="not deprecated">
  21422. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  21423. <doc>
  21424. <![CDATA[Construct a hash value for a String.]]>
  21425. </doc>
  21426. </method>
  21427. <method name="halfDigest" return="long"
  21428. abstract="false" native="false" synchronized="false"
  21429. static="false" final="false" visibility="public"
  21430. deprecated="not deprecated">
  21431. <doc>
  21432. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  21433. </doc>
  21434. </method>
  21435. <method name="quarterDigest" return="int"
  21436. abstract="false" native="false" synchronized="false"
  21437. static="false" final="false" visibility="public"
  21438. deprecated="not deprecated">
  21439. <doc>
  21440. <![CDATA[Return a 32-bit digest of the MD5.
  21441. @return the first 4 bytes of the md5]]>
  21442. </doc>
  21443. </method>
  21444. <method name="equals" return="boolean"
  21445. abstract="false" native="false" synchronized="false"
  21446. static="false" final="false" visibility="public"
  21447. deprecated="not deprecated">
  21448. <param name="o" type="java.lang.Object"/>
  21449. <doc>
  21450. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  21451. same values.]]>
  21452. </doc>
  21453. </method>
  21454. <method name="hashCode" return="int"
  21455. abstract="false" native="false" synchronized="false"
  21456. static="false" final="false" visibility="public"
  21457. deprecated="not deprecated">
  21458. <doc>
  21459. <![CDATA[Returns a hash code value for this object.
  21460. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  21461. </doc>
  21462. </method>
  21463. <method name="compareTo" return="int"
  21464. abstract="false" native="false" synchronized="false"
  21465. static="false" final="false" visibility="public"
  21466. deprecated="not deprecated">
  21467. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  21468. <doc>
  21469. <![CDATA[Compares this object with the specified object for order.]]>
  21470. </doc>
  21471. </method>
  21472. <method name="toString" return="java.lang.String"
  21473. abstract="false" native="false" synchronized="false"
  21474. static="false" final="false" visibility="public"
  21475. deprecated="not deprecated">
  21476. <doc>
  21477. <![CDATA[Returns a string representation of this object.]]>
  21478. </doc>
  21479. </method>
  21480. <method name="setDigest"
  21481. abstract="false" native="false" synchronized="false"
  21482. static="false" final="false" visibility="public"
  21483. deprecated="not deprecated">
  21484. <param name="hex" type="java.lang.String"/>
  21485. <doc>
  21486. <![CDATA[Sets the digest value from a hex string.]]>
  21487. </doc>
  21488. </method>
  21489. <field name="MD5_LEN" type="int"
  21490. transient="false" volatile="false"
  21491. static="true" final="true" visibility="public"
  21492. deprecated="not deprecated">
  21493. </field>
  21494. <doc>
  21495. <![CDATA[A Writable for MD5 hash values.]]>
  21496. </doc>
  21497. </class>
  21498. <!-- end class org.apache.hadoop.io.MD5Hash -->
  21499. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  21500. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  21501. abstract="false"
  21502. static="true" final="false" visibility="public"
  21503. deprecated="not deprecated">
  21504. <constructor name="MD5Hash.Comparator"
  21505. static="false" final="false" visibility="public"
  21506. deprecated="not deprecated">
  21507. </constructor>
  21508. <method name="compare" return="int"
  21509. abstract="false" native="false" synchronized="false"
  21510. static="false" final="false" visibility="public"
  21511. deprecated="not deprecated">
  21512. <param name="b1" type="byte[]"/>
  21513. <param name="s1" type="int"/>
  21514. <param name="l1" type="int"/>
  21515. <param name="b2" type="byte[]"/>
  21516. <param name="s2" type="int"/>
  21517. <param name="l2" type="int"/>
  21518. </method>
  21519. <doc>
  21520. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  21521. </doc>
  21522. </class>
  21523. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  21524. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  21525. <class name="MultipleIOException" extends="java.io.IOException"
  21526. abstract="false"
  21527. static="false" final="false" visibility="public"
  21528. deprecated="not deprecated">
  21529. <method name="getExceptions" return="java.util.List"
  21530. abstract="false" native="false" synchronized="false"
  21531. static="false" final="false" visibility="public"
  21532. deprecated="not deprecated">
  21533. <doc>
  21534. <![CDATA[@return the underlying exceptions]]>
  21535. </doc>
  21536. </method>
  21537. <method name="createIOException" return="java.io.IOException"
  21538. abstract="false" native="false" synchronized="false"
  21539. static="true" final="false" visibility="public"
  21540. deprecated="not deprecated">
  21541. <param name="exceptions" type="java.util.List"/>
  21542. <doc>
  21543. <![CDATA[A convenient method to create an {@link IOException}.]]>
  21544. </doc>
  21545. </method>
  21546. <doc>
  21547. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  21548. </doc>
  21549. </class>
  21550. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  21551. <!-- start class org.apache.hadoop.io.NullWritable -->
  21552. <class name="NullWritable" extends="java.lang.Object"
  21553. abstract="false"
  21554. static="false" final="false" visibility="public"
  21555. deprecated="not deprecated">
  21556. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21557. <method name="get" return="org.apache.hadoop.io.NullWritable"
  21558. abstract="false" native="false" synchronized="false"
  21559. static="true" final="false" visibility="public"
  21560. deprecated="not deprecated">
  21561. <doc>
  21562. <![CDATA[Returns the single instance of this class.]]>
  21563. </doc>
  21564. </method>
  21565. <method name="toString" return="java.lang.String"
  21566. abstract="false" native="false" synchronized="false"
  21567. static="false" final="false" visibility="public"
  21568. deprecated="not deprecated">
  21569. </method>
  21570. <method name="hashCode" return="int"
  21571. abstract="false" native="false" synchronized="false"
  21572. static="false" final="false" visibility="public"
  21573. deprecated="not deprecated">
  21574. </method>
  21575. <method name="compareTo" return="int"
  21576. abstract="false" native="false" synchronized="false"
  21577. static="false" final="false" visibility="public"
  21578. deprecated="not deprecated">
  21579. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  21580. </method>
  21581. <method name="equals" return="boolean"
  21582. abstract="false" native="false" synchronized="false"
  21583. static="false" final="false" visibility="public"
  21584. deprecated="not deprecated">
  21585. <param name="other" type="java.lang.Object"/>
  21586. </method>
  21587. <method name="readFields"
  21588. abstract="false" native="false" synchronized="false"
  21589. static="false" final="false" visibility="public"
  21590. deprecated="not deprecated">
  21591. <param name="in" type="java.io.DataInput"/>
  21592. <exception name="IOException" type="java.io.IOException"/>
  21593. </method>
  21594. <method name="write"
  21595. abstract="false" native="false" synchronized="false"
  21596. static="false" final="false" visibility="public"
  21597. deprecated="not deprecated">
  21598. <param name="out" type="java.io.DataOutput"/>
  21599. <exception name="IOException" type="java.io.IOException"/>
  21600. </method>
  21601. <doc>
  21602. <![CDATA[Singleton Writable with no data.]]>
  21603. </doc>
  21604. </class>
  21605. <!-- end class org.apache.hadoop.io.NullWritable -->
  21606. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  21607. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  21608. abstract="false"
  21609. static="true" final="false" visibility="public"
  21610. deprecated="not deprecated">
  21611. <constructor name="NullWritable.Comparator"
  21612. static="false" final="false" visibility="public"
  21613. deprecated="not deprecated">
  21614. </constructor>
  21615. <method name="compare" return="int"
  21616. abstract="false" native="false" synchronized="false"
  21617. static="false" final="false" visibility="public"
  21618. deprecated="not deprecated">
  21619. <param name="b1" type="byte[]"/>
  21620. <param name="s1" type="int"/>
  21621. <param name="l1" type="int"/>
  21622. <param name="b2" type="byte[]"/>
  21623. <param name="s2" type="int"/>
  21624. <param name="l2" type="int"/>
  21625. <doc>
  21626. <![CDATA[Compare the buffers in serialized form.]]>
  21627. </doc>
  21628. </method>
  21629. <doc>
  21630. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  21631. </doc>
  21632. </class>
  21633. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  21634. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  21635. <class name="ObjectWritable" extends="java.lang.Object"
  21636. abstract="false"
  21637. static="false" final="false" visibility="public"
  21638. deprecated="not deprecated">
  21639. <implements name="org.apache.hadoop.io.Writable"/>
  21640. <implements name="org.apache.hadoop.conf.Configurable"/>
  21641. <constructor name="ObjectWritable"
  21642. static="false" final="false" visibility="public"
  21643. deprecated="not deprecated">
  21644. </constructor>
  21645. <constructor name="ObjectWritable" type="java.lang.Object"
  21646. static="false" final="false" visibility="public"
  21647. deprecated="not deprecated">
  21648. </constructor>
  21649. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  21650. static="false" final="false" visibility="public"
  21651. deprecated="not deprecated">
  21652. </constructor>
  21653. <method name="get" return="java.lang.Object"
  21654. abstract="false" native="false" synchronized="false"
  21655. static="false" final="false" visibility="public"
  21656. deprecated="not deprecated">
  21657. <doc>
  21658. <![CDATA[Return the instance, or null if none.]]>
  21659. </doc>
  21660. </method>
  21661. <method name="getDeclaredClass" return="java.lang.Class"
  21662. abstract="false" native="false" synchronized="false"
  21663. static="false" final="false" visibility="public"
  21664. deprecated="not deprecated">
  21665. <doc>
  21666. <![CDATA[Return the class this is meant to be.]]>
  21667. </doc>
  21668. </method>
  21669. <method name="set"
  21670. abstract="false" native="false" synchronized="false"
  21671. static="false" final="false" visibility="public"
  21672. deprecated="not deprecated">
  21673. <param name="instance" type="java.lang.Object"/>
  21674. <doc>
  21675. <![CDATA[Reset the instance.]]>
  21676. </doc>
  21677. </method>
  21678. <method name="toString" return="java.lang.String"
  21679. abstract="false" native="false" synchronized="false"
  21680. static="false" final="false" visibility="public"
  21681. deprecated="not deprecated">
  21682. </method>
  21683. <method name="readFields"
  21684. abstract="false" native="false" synchronized="false"
  21685. static="false" final="false" visibility="public"
  21686. deprecated="not deprecated">
  21687. <param name="in" type="java.io.DataInput"/>
  21688. <exception name="IOException" type="java.io.IOException"/>
  21689. </method>
  21690. <method name="write"
  21691. abstract="false" native="false" synchronized="false"
  21692. static="false" final="false" visibility="public"
  21693. deprecated="not deprecated">
  21694. <param name="out" type="java.io.DataOutput"/>
  21695. <exception name="IOException" type="java.io.IOException"/>
  21696. </method>
  21697. <method name="writeObject"
  21698. abstract="false" native="false" synchronized="false"
  21699. static="true" final="false" visibility="public"
  21700. deprecated="not deprecated">
  21701. <param name="out" type="java.io.DataOutput"/>
  21702. <param name="instance" type="java.lang.Object"/>
  21703. <param name="declaredClass" type="java.lang.Class"/>
  21704. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21705. <exception name="IOException" type="java.io.IOException"/>
  21706. <doc>
  21707. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  21708. the preceding.]]>
  21709. </doc>
  21710. </method>
  21711. <method name="writeObject"
  21712. abstract="false" native="false" synchronized="false"
  21713. static="true" final="false" visibility="public"
  21714. deprecated="not deprecated">
  21715. <param name="out" type="java.io.DataOutput"/>
  21716. <param name="instance" type="java.lang.Object"/>
  21717. <param name="declaredClass" type="java.lang.Class"/>
  21718. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21719. <param name="allowCompactArrays" type="boolean"/>
  21720. <exception name="IOException" type="java.io.IOException"/>
  21721. <doc>
  21722. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  21723. the preceding.
  21724. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  21725. usages. Set false for inter-cluster, File, and other persisted output
  21726. usages, to preserve the ability to interchange files with other clusters
  21727. that may not be running the same version of software. Sometime in ~2013
  21728. we can consider removing this parameter and always using the compact format.]]>
  21729. </doc>
  21730. </method>
  21731. <method name="readObject" return="java.lang.Object"
  21732. abstract="false" native="false" synchronized="false"
  21733. static="true" final="false" visibility="public"
  21734. deprecated="not deprecated">
  21735. <param name="in" type="java.io.DataInput"/>
  21736. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21737. <exception name="IOException" type="java.io.IOException"/>
  21738. <doc>
  21739. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  21740. the preceding.]]>
  21741. </doc>
  21742. </method>
  21743. <method name="readObject" return="java.lang.Object"
  21744. abstract="false" native="false" synchronized="false"
  21745. static="true" final="false" visibility="public"
  21746. deprecated="not deprecated">
  21747. <param name="in" type="java.io.DataInput"/>
  21748. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  21749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21750. <exception name="IOException" type="java.io.IOException"/>
  21751. <doc>
  21752. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  21753. the preceding.]]>
  21754. </doc>
  21755. </method>
  21756. <method name="loadClass" return="java.lang.Class"
  21757. abstract="false" native="false" synchronized="false"
  21758. static="true" final="false" visibility="public"
  21759. deprecated="not deprecated">
  21760. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21761. <param name="className" type="java.lang.String"/>
  21762. <doc>
  21763. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  21764. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  21765. try load it directly.]]>
  21766. </doc>
  21767. </method>
  21768. <method name="setConf"
  21769. abstract="false" native="false" synchronized="false"
  21770. static="false" final="false" visibility="public"
  21771. deprecated="not deprecated">
  21772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21773. </method>
  21774. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21775. abstract="false" native="false" synchronized="false"
  21776. static="false" final="false" visibility="public"
  21777. deprecated="not deprecated">
  21778. </method>
  21779. <doc>
  21780. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  21781. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  21782. </doc>
  21783. </class>
  21784. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  21785. <!-- start interface org.apache.hadoop.io.RawComparator -->
  21786. <interface name="RawComparator" abstract="true"
  21787. static="false" final="false" visibility="public"
  21788. deprecated="not deprecated">
  21789. <implements name="java.util.Comparator"/>
  21790. <method name="compare" return="int"
  21791. abstract="false" native="false" synchronized="false"
  21792. static="false" final="false" visibility="public"
  21793. deprecated="not deprecated">
  21794. <param name="b1" type="byte[]"/>
  21795. <param name="s1" type="int"/>
  21796. <param name="l1" type="int"/>
  21797. <param name="b2" type="byte[]"/>
  21798. <param name="s2" type="int"/>
  21799. <param name="l2" type="int"/>
  21800. <doc>
  21801. <![CDATA[Compare two objects in binary.
  21802. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  21803. @param b1 The first byte array.
  21804. @param s1 The position index in b1. The object under comparison's starting index.
  21805. @param l1 The length of the object in b1.
  21806. @param b2 The second byte array.
  21807. @param s2 The position index in b2. The object under comparison's starting index.
  21808. @param l2 The length of the object under comparison in b2.
  21809. @return An integer result of the comparison.]]>
  21810. </doc>
  21811. </method>
  21812. <doc>
  21813. <![CDATA[<p>
  21814. A {@link Comparator} that operates directly on byte representations of
  21815. objects.
  21816. </p>
  21817. @param <T>
  21818. @see DeserializerComparator]]>
  21819. </doc>
  21820. </interface>
  21821. <!-- end interface org.apache.hadoop.io.RawComparator -->
  21822. <!-- start interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  21823. <interface name="ReadaheadPool.ReadaheadRequest" abstract="true"
  21824. static="true" final="false" visibility="public"
  21825. deprecated="not deprecated">
  21826. <method name="cancel"
  21827. abstract="false" native="false" synchronized="false"
  21828. static="false" final="false" visibility="public"
  21829. deprecated="not deprecated">
  21830. <doc>
  21831. <![CDATA[Cancels the request for readahead. This should be used
  21832. if the reader no longer needs the requested data, <em>before</em>
  21833. closing the related file descriptor.
  21834. It is safe to use even if the readahead request has already
  21835. been fulfilled.]]>
  21836. </doc>
  21837. </method>
  21838. <method name="getOffset" return="long"
  21839. abstract="false" native="false" synchronized="false"
  21840. static="false" final="false" visibility="public"
  21841. deprecated="not deprecated">
  21842. <doc>
  21843. <![CDATA[@return the requested offset]]>
  21844. </doc>
  21845. </method>
  21846. <method name="getLength" return="long"
  21847. abstract="false" native="false" synchronized="false"
  21848. static="false" final="false" visibility="public"
  21849. deprecated="not deprecated">
  21850. <doc>
  21851. <![CDATA[@return the requested length]]>
  21852. </doc>
  21853. </method>
  21854. <doc>
  21855. <![CDATA[An outstanding readahead request that has been submitted to
  21856. the pool. This request may be pending or may have been
  21857. completed.]]>
  21858. </doc>
  21859. </interface>
  21860. <!-- end interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  21861. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  21862. <class name="SecureIOUtils" extends="java.lang.Object"
  21863. abstract="false"
  21864. static="false" final="false" visibility="public"
  21865. deprecated="not deprecated">
  21866. <constructor name="SecureIOUtils"
  21867. static="false" final="false" visibility="public"
  21868. deprecated="not deprecated">
  21869. </constructor>
  21870. <method name="openForRandomRead" return="java.io.RandomAccessFile"
  21871. abstract="false" native="false" synchronized="false"
  21872. static="true" final="false" visibility="public"
  21873. deprecated="not deprecated">
  21874. <param name="f" type="java.io.File"/>
  21875. <param name="mode" type="java.lang.String"/>
  21876. <param name="expectedOwner" type="java.lang.String"/>
  21877. <param name="expectedGroup" type="java.lang.String"/>
  21878. <exception name="IOException" type="java.io.IOException"/>
  21879. <doc>
  21880. <![CDATA[Open the given File for random read access, verifying the expected user/
  21881. group constraints if security is enabled.
  21882. Note that this function provides no additional security checks if hadoop
  21883. security is disabled, since doing the checks would be too expensive when
  21884. native libraries are not available.
  21885. @param f file that we are trying to open
  21886. @param mode mode in which we want to open the random access file
  21887. @param expectedOwner the expected user owner for the file
  21888. @param expectedGroup the expected group owner for the file
  21889. @throws IOException if an IO error occurred or if the user/group does
  21890. not match when security is enabled.]]>
  21891. </doc>
  21892. </method>
  21893. <method name="forceSecureOpenForRandomRead" return="java.io.RandomAccessFile"
  21894. abstract="false" native="false" synchronized="false"
  21895. static="true" final="false" visibility="protected"
  21896. deprecated="not deprecated">
  21897. <param name="f" type="java.io.File"/>
  21898. <param name="mode" type="java.lang.String"/>
  21899. <param name="expectedOwner" type="java.lang.String"/>
  21900. <param name="expectedGroup" type="java.lang.String"/>
  21901. <exception name="IOException" type="java.io.IOException"/>
  21902. <doc>
  21903. <![CDATA[Same as openForRandomRead except that it will run even if security is off.
  21904. This is used by unit tests.]]>
  21905. </doc>
  21906. </method>
  21907. <method name="openFSDataInputStream" return="org.apache.hadoop.fs.FSDataInputStream"
  21908. abstract="false" native="false" synchronized="false"
  21909. static="true" final="false" visibility="public"
  21910. deprecated="not deprecated">
  21911. <param name="file" type="java.io.File"/>
  21912. <param name="expectedOwner" type="java.lang.String"/>
  21913. <param name="expectedGroup" type="java.lang.String"/>
  21914. <exception name="IOException" type="java.io.IOException"/>
  21915. <doc>
  21916. <![CDATA[Opens the {@link FSDataInputStream} on the requested file on local file
  21917. system, verifying the expected user/group constraints if security is
  21918. enabled.
  21919. @param file absolute path of the file
  21920. @param expectedOwner the expected user owner for the file
  21921. @param expectedGroup the expected group owner for the file
  21922. @throws IOException if an IO Error occurred or the user/group does not
  21923. match if security is enabled]]>
  21924. </doc>
  21925. </method>
  21926. <method name="forceSecureOpenFSDataInputStream" return="org.apache.hadoop.fs.FSDataInputStream"
  21927. abstract="false" native="false" synchronized="false"
  21928. static="true" final="false" visibility="protected"
  21929. deprecated="not deprecated">
  21930. <param name="file" type="java.io.File"/>
  21931. <param name="expectedOwner" type="java.lang.String"/>
  21932. <param name="expectedGroup" type="java.lang.String"/>
  21933. <exception name="IOException" type="java.io.IOException"/>
  21934. <doc>
  21935. <![CDATA[Same as openFSDataInputStream except that it will run even if security is
  21936. off. This is used by unit tests.]]>
  21937. </doc>
  21938. </method>
  21939. <method name="openForRead" return="java.io.FileInputStream"
  21940. abstract="false" native="false" synchronized="false"
  21941. static="true" final="false" visibility="public"
  21942. deprecated="not deprecated">
  21943. <param name="f" type="java.io.File"/>
  21944. <param name="expectedOwner" type="java.lang.String"/>
  21945. <param name="expectedGroup" type="java.lang.String"/>
  21946. <exception name="IOException" type="java.io.IOException"/>
  21947. <doc>
  21948. <![CDATA[Open the given File for read access, verifying the expected user/group
  21949. constraints if security is enabled.
  21950. Note that this function provides no additional checks if Hadoop
  21951. security is disabled, since doing the checks would be too expensive
  21952. when native libraries are not available.
  21953. @param f the file that we are trying to open
  21954. @param expectedOwner the expected user owner for the file
  21955. @param expectedGroup the expected group owner for the file
  21956. @throws IOException if an IO Error occurred, or security is enabled and
  21957. the user/group does not match]]>
  21958. </doc>
  21959. </method>
  21960. <method name="forceSecureOpenForRead" return="java.io.FileInputStream"
  21961. abstract="false" native="false" synchronized="false"
  21962. static="true" final="false" visibility="protected"
  21963. deprecated="not deprecated">
  21964. <param name="f" type="java.io.File"/>
  21965. <param name="expectedOwner" type="java.lang.String"/>
  21966. <param name="expectedGroup" type="java.lang.String"/>
  21967. <exception name="IOException" type="java.io.IOException"/>
  21968. <doc>
  21969. <![CDATA[Same as openForRead() except that it will run even if security is off.
  21970. This is used by unit tests.]]>
  21971. </doc>
  21972. </method>
  21973. <method name="createForWrite" return="java.io.FileOutputStream"
  21974. abstract="false" native="false" synchronized="false"
  21975. static="true" final="false" visibility="public"
  21976. deprecated="not deprecated">
  21977. <param name="f" type="java.io.File"/>
  21978. <param name="permissions" type="int"/>
  21979. <exception name="IOException" type="java.io.IOException"/>
  21980. <doc>
  21981. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  21982. @param f the file that we want to create
  21983. @param permissions we want to have on the file (if security is enabled)
  21984. @throws AlreadyExistsException if the file already exists
  21985. @throws IOException if any other error occurred]]>
  21986. </doc>
  21987. </method>
  21988. <doc>
  21989. <![CDATA[This class provides secure APIs for opening and creating files on the local
  21990. disk. The main issue this class tries to handle is that of symlink traversal.
  21991. <br/>
  21992. An example of such an attack is:
  21993. <ol>
  21994. <li> Malicious user removes his task's syslog file, and puts a link to the
  21995. jobToken file of a target user.</li>
  21996. <li> Malicious user tries to open the syslog file via the servlet on the
  21997. tasktracker.</li>
  21998. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  21999. of the jobToken file. The malicious user can now access potentially sensitive
  22000. map outputs, etc. of the target user's job.</li>
  22001. </ol>
  22002. A similar attack is possible involving task log truncation, but in that case
  22003. due to an insecure write to a file.
  22004. <br/>]]>
  22005. </doc>
  22006. </class>
  22007. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  22008. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  22009. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  22010. abstract="false"
  22011. static="true" final="false" visibility="public"
  22012. deprecated="not deprecated">
  22013. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  22014. static="false" final="false" visibility="public"
  22015. deprecated="not deprecated">
  22016. </constructor>
  22017. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  22018. static="false" final="false" visibility="public"
  22019. deprecated="not deprecated">
  22020. </constructor>
  22021. <doc>
  22022. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  22023. because another file already existed at that path.]]>
  22024. </doc>
  22025. </class>
  22026. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  22027. <!-- start class org.apache.hadoop.io.SequenceFile -->
  22028. <class name="SequenceFile" extends="java.lang.Object"
  22029. abstract="false"
  22030. static="false" final="false" visibility="public"
  22031. deprecated="not deprecated">
  22032. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  22033. abstract="false" native="false" synchronized="false"
  22034. static="true" final="false" visibility="public"
  22035. deprecated="not deprecated">
  22036. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  22037. <doc>
  22038. <![CDATA[Get the compression type for the reduce outputs
  22039. @param job the job config to look in
  22040. @return the kind of compression to use]]>
  22041. </doc>
  22042. </method>
  22043. <method name="setDefaultCompressionType"
  22044. abstract="false" native="false" synchronized="false"
  22045. static="true" final="false" visibility="public"
  22046. deprecated="not deprecated">
  22047. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  22048. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22049. <doc>
  22050. <![CDATA[Set the default compression type for sequence files.
  22051. @param job the configuration to modify
  22052. @param val the new compression type (none, block, record)]]>
  22053. </doc>
  22054. </method>
  22055. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22056. abstract="false" native="false" synchronized="false"
  22057. static="true" final="false" visibility="public"
  22058. deprecated="not deprecated">
  22059. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22060. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  22061. <exception name="IOException" type="java.io.IOException"/>
  22062. <doc>
  22063. <![CDATA[Create a new Writer with the given options.
  22064. @param conf the configuration to use
  22065. @param opts the options to create the file with
  22066. @return a new Writer
  22067. @throws IOException]]>
  22068. </doc>
  22069. </method>
  22070. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22071. abstract="false" native="false" synchronized="false"
  22072. static="true" final="false" visibility="public"
  22073. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22074. instead.">
  22075. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22077. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22078. <param name="keyClass" type="java.lang.Class"/>
  22079. <param name="valClass" type="java.lang.Class"/>
  22080. <exception name="IOException" type="java.io.IOException"/>
  22081. <doc>
  22082. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22083. @param fs The configured filesystem.
  22084. @param conf The configuration.
  22085. @param name The name of the file.
  22086. @param keyClass The 'key' type.
  22087. @param valClass The 'value' type.
  22088. @return Returns the handle to the constructed SequenceFile Writer.
  22089. @throws IOException
  22090. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22091. instead.]]>
  22092. </doc>
  22093. </method>
  22094. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22095. abstract="false" native="false" synchronized="false"
  22096. static="true" final="false" visibility="public"
  22097. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22098. instead.">
  22099. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22100. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22101. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22102. <param name="keyClass" type="java.lang.Class"/>
  22103. <param name="valClass" type="java.lang.Class"/>
  22104. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22105. <exception name="IOException" type="java.io.IOException"/>
  22106. <doc>
  22107. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22108. @param fs The configured filesystem.
  22109. @param conf The configuration.
  22110. @param name The name of the file.
  22111. @param keyClass The 'key' type.
  22112. @param valClass The 'value' type.
  22113. @param compressionType The compression type.
  22114. @return Returns the handle to the constructed SequenceFile Writer.
  22115. @throws IOException
  22116. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22117. instead.]]>
  22118. </doc>
  22119. </method>
  22120. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22121. abstract="false" native="false" synchronized="false"
  22122. static="true" final="false" visibility="public"
  22123. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22124. instead.">
  22125. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22126. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22127. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22128. <param name="keyClass" type="java.lang.Class"/>
  22129. <param name="valClass" type="java.lang.Class"/>
  22130. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22131. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22132. <exception name="IOException" type="java.io.IOException"/>
  22133. <doc>
  22134. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22135. @param fs The configured filesystem.
  22136. @param conf The configuration.
  22137. @param name The name of the file.
  22138. @param keyClass The 'key' type.
  22139. @param valClass The 'value' type.
  22140. @param compressionType The compression type.
  22141. @param progress The Progressable object to track progress.
  22142. @return Returns the handle to the constructed SequenceFile Writer.
  22143. @throws IOException
  22144. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22145. instead.]]>
  22146. </doc>
  22147. </method>
  22148. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22149. abstract="false" native="false" synchronized="false"
  22150. static="true" final="false" visibility="public"
  22151. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22152. instead.">
  22153. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22154. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22155. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22156. <param name="keyClass" type="java.lang.Class"/>
  22157. <param name="valClass" type="java.lang.Class"/>
  22158. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22159. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22160. <exception name="IOException" type="java.io.IOException"/>
  22161. <doc>
  22162. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22163. @param fs The configured filesystem.
  22164. @param conf The configuration.
  22165. @param name The name of the file.
  22166. @param keyClass The 'key' type.
  22167. @param valClass The 'value' type.
  22168. @param compressionType The compression type.
  22169. @param codec The compression codec.
  22170. @return Returns the handle to the constructed SequenceFile Writer.
  22171. @throws IOException
  22172. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22173. instead.]]>
  22174. </doc>
  22175. </method>
  22176. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22177. abstract="false" native="false" synchronized="false"
  22178. static="true" final="false" visibility="public"
  22179. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22180. instead.">
  22181. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22182. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22183. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22184. <param name="keyClass" type="java.lang.Class"/>
  22185. <param name="valClass" type="java.lang.Class"/>
  22186. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22187. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22188. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22189. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22190. <exception name="IOException" type="java.io.IOException"/>
  22191. <doc>
  22192. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22193. @param fs The configured filesystem.
  22194. @param conf The configuration.
  22195. @param name The name of the file.
  22196. @param keyClass The 'key' type.
  22197. @param valClass The 'value' type.
  22198. @param compressionType The compression type.
  22199. @param codec The compression codec.
  22200. @param progress The Progressable object to track progress.
  22201. @param metadata The metadata of the file.
  22202. @return Returns the handle to the constructed SequenceFile Writer.
  22203. @throws IOException
  22204. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22205. instead.]]>
  22206. </doc>
  22207. </method>
  22208. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22209. abstract="false" native="false" synchronized="false"
  22210. static="true" final="false" visibility="public"
  22211. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22212. instead.">
  22213. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22214. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22215. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22216. <param name="keyClass" type="java.lang.Class"/>
  22217. <param name="valClass" type="java.lang.Class"/>
  22218. <param name="bufferSize" type="int"/>
  22219. <param name="replication" type="short"/>
  22220. <param name="blockSize" type="long"/>
  22221. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22222. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22223. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22224. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22225. <exception name="IOException" type="java.io.IOException"/>
  22226. <doc>
  22227. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22228. @param fs The configured filesystem.
  22229. @param conf The configuration.
  22230. @param name The name of the file.
  22231. @param keyClass The 'key' type.
  22232. @param valClass The 'value' type.
  22233. @param bufferSize buffer size for the underlaying outputstream.
  22234. @param replication replication factor for the file.
  22235. @param blockSize block size for the file.
  22236. @param compressionType The compression type.
  22237. @param codec The compression codec.
  22238. @param progress The Progressable object to track progress.
  22239. @param metadata The metadata of the file.
  22240. @return Returns the handle to the constructed SequenceFile Writer.
  22241. @throws IOException
  22242. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22243. instead.]]>
  22244. </doc>
  22245. </method>
  22246. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22247. abstract="false" native="false" synchronized="false"
  22248. static="true" final="false" visibility="public"
  22249. deprecated="not deprecated">
  22250. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22251. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22252. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22253. <param name="keyClass" type="java.lang.Class"/>
  22254. <param name="valClass" type="java.lang.Class"/>
  22255. <param name="bufferSize" type="int"/>
  22256. <param name="replication" type="short"/>
  22257. <param name="blockSize" type="long"/>
  22258. <param name="createParent" type="boolean"/>
  22259. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22260. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22261. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22262. <exception name="IOException" type="java.io.IOException"/>
  22263. <doc>
  22264. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22265. @param fs The configured filesystem.
  22266. @param conf The configuration.
  22267. @param name The name of the file.
  22268. @param keyClass The 'key' type.
  22269. @param valClass The 'value' type.
  22270. @param bufferSize buffer size for the underlaying outputstream.
  22271. @param replication replication factor for the file.
  22272. @param blockSize block size for the file.
  22273. @param createParent create parent directory if non-existent
  22274. @param compressionType The compression type.
  22275. @param codec The compression codec.
  22276. @param metadata The metadata of the file.
  22277. @return Returns the handle to the constructed SequenceFile Writer.
  22278. @throws IOException]]>
  22279. </doc>
  22280. </method>
  22281. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22282. abstract="false" native="false" synchronized="false"
  22283. static="true" final="false" visibility="public"
  22284. deprecated="not deprecated">
  22285. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  22286. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22287. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22288. <param name="keyClass" type="java.lang.Class"/>
  22289. <param name="valClass" type="java.lang.Class"/>
  22290. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22291. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22292. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22293. <param name="createFlag" type="java.util.EnumSet"/>
  22294. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  22295. <exception name="IOException" type="java.io.IOException"/>
  22296. <doc>
  22297. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22298. @param fc The context for the specified file.
  22299. @param conf The configuration.
  22300. @param name The name of the file.
  22301. @param keyClass The 'key' type.
  22302. @param valClass The 'value' type.
  22303. @param compressionType The compression type.
  22304. @param codec The compression codec.
  22305. @param metadata The metadata of the file.
  22306. @param createFlag gives the semantics of create: overwrite, append etc.
  22307. @param opts file creation options; see {@link CreateOpts}.
  22308. @return Returns the handle to the constructed SequenceFile Writer.
  22309. @throws IOException]]>
  22310. </doc>
  22311. </method>
  22312. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22313. abstract="false" native="false" synchronized="false"
  22314. static="true" final="false" visibility="public"
  22315. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22316. instead.">
  22317. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22319. <param name="name" type="org.apache.hadoop.fs.Path"/>
  22320. <param name="keyClass" type="java.lang.Class"/>
  22321. <param name="valClass" type="java.lang.Class"/>
  22322. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22323. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22324. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22325. <exception name="IOException" type="java.io.IOException"/>
  22326. <doc>
  22327. <![CDATA[Construct the preferred type of SequenceFile Writer.
  22328. @param fs The configured filesystem.
  22329. @param conf The configuration.
  22330. @param name The name of the file.
  22331. @param keyClass The 'key' type.
  22332. @param valClass The 'value' type.
  22333. @param compressionType The compression type.
  22334. @param codec The compression codec.
  22335. @param progress The Progressable object to track progress.
  22336. @return Returns the handle to the constructed SequenceFile Writer.
  22337. @throws IOException
  22338. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22339. instead.]]>
  22340. </doc>
  22341. </method>
  22342. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22343. abstract="false" native="false" synchronized="false"
  22344. static="true" final="false" visibility="public"
  22345. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22346. instead.">
  22347. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22348. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  22349. <param name="keyClass" type="java.lang.Class"/>
  22350. <param name="valClass" type="java.lang.Class"/>
  22351. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22352. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22353. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22354. <exception name="IOException" type="java.io.IOException"/>
  22355. <doc>
  22356. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  22357. @param conf The configuration.
  22358. @param out The stream on top which the writer is to be constructed.
  22359. @param keyClass The 'key' type.
  22360. @param valClass The 'value' type.
  22361. @param compressionType The compression type.
  22362. @param codec The compression codec.
  22363. @param metadata The metadata of the file.
  22364. @return Returns the handle to the constructed SequenceFile Writer.
  22365. @throws IOException
  22366. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22367. instead.]]>
  22368. </doc>
  22369. </method>
  22370. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  22371. abstract="false" native="false" synchronized="false"
  22372. static="true" final="false" visibility="public"
  22373. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  22374. instead.">
  22375. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22376. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  22377. <param name="keyClass" type="java.lang.Class"/>
  22378. <param name="valClass" type="java.lang.Class"/>
  22379. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22380. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22381. <exception name="IOException" type="java.io.IOException"/>
  22382. <doc>
  22383. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  22384. @param conf The configuration.
  22385. @param out The stream on top which the writer is to be constructed.
  22386. @param keyClass The 'key' type.
  22387. @param valClass The 'value' type.
  22388. @param compressionType The compression type.
  22389. @param codec The compression codec.
  22390. @return Returns the handle to the constructed SequenceFile Writer.
  22391. @throws IOException
  22392. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  22393. instead.]]>
  22394. </doc>
  22395. </method>
  22396. <field name="SYNC_INTERVAL" type="int"
  22397. transient="false" volatile="false"
  22398. static="true" final="true" visibility="public"
  22399. deprecated="not deprecated">
  22400. <doc>
  22401. <![CDATA[The number of bytes between sync points.]]>
  22402. </doc>
  22403. </field>
  22404. <doc>
  22405. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  22406. pairs.
  22407. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  22408. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  22409. reading and sorting respectively.</p>
  22410. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  22411. {@link CompressionType} used to compress key/value pairs:
  22412. <ol>
  22413. <li>
  22414. <code>Writer</code> : Uncompressed records.
  22415. </li>
  22416. <li>
  22417. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  22418. values.
  22419. </li>
  22420. <li>
  22421. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  22422. values are collected in 'blocks'
  22423. separately and compressed. The size of
  22424. the 'block' is configurable.
  22425. </ol>
  22426. <p>The actual compression algorithm used to compress key and/or values can be
  22427. specified by using the appropriate {@link CompressionCodec}.</p>
  22428. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  22429. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  22430. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  22431. above <code>SequenceFile</code> formats.</p>
  22432. <h4 id="Formats">SequenceFile Formats</h4>
  22433. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  22434. depending on the <code>CompressionType</code> specified. All of them share a
  22435. <a href="#Header">common header</a> described below.
  22436. <h5 id="Header">SequenceFile Header</h5>
  22437. <ul>
  22438. <li>
  22439. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  22440. version number (e.g. SEQ4 or SEQ6)
  22441. </li>
  22442. <li>
  22443. keyClassName -key class
  22444. </li>
  22445. <li>
  22446. valueClassName - value class
  22447. </li>
  22448. <li>
  22449. compression - A boolean which specifies if compression is turned on for
  22450. keys/values in this file.
  22451. </li>
  22452. <li>
  22453. blockCompression - A boolean which specifies if block-compression is
  22454. turned on for keys/values in this file.
  22455. </li>
  22456. <li>
  22457. compression codec - <code>CompressionCodec</code> class which is used for
  22458. compression of keys and/or values (if compression is
  22459. enabled).
  22460. </li>
  22461. <li>
  22462. metadata - {@link Metadata} for this file.
  22463. </li>
  22464. <li>
  22465. sync - A sync marker to denote end of the header.
  22466. </li>
  22467. </ul>
  22468. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  22469. <ul>
  22470. <li>
  22471. <a href="#Header">Header</a>
  22472. </li>
  22473. <li>
  22474. Record
  22475. <ul>
  22476. <li>Record length</li>
  22477. <li>Key length</li>
  22478. <li>Key</li>
  22479. <li>Value</li>
  22480. </ul>
  22481. </li>
  22482. <li>
  22483. A sync-marker every few <code>100</code> bytes or so.
  22484. </li>
  22485. </ul>
  22486. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  22487. <ul>
  22488. <li>
  22489. <a href="#Header">Header</a>
  22490. </li>
  22491. <li>
  22492. Record
  22493. <ul>
  22494. <li>Record length</li>
  22495. <li>Key length</li>
  22496. <li>Key</li>
  22497. <li><i>Compressed</i> Value</li>
  22498. </ul>
  22499. </li>
  22500. <li>
  22501. A sync-marker every few <code>100</code> bytes or so.
  22502. </li>
  22503. </ul>
  22504. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  22505. <ul>
  22506. <li>
  22507. <a href="#Header">Header</a>
  22508. </li>
  22509. <li>
  22510. Record <i>Block</i>
  22511. <ul>
  22512. <li>Uncompressed number of records in the block</li>
  22513. <li>Compressed key-lengths block-size</li>
  22514. <li>Compressed key-lengths block</li>
  22515. <li>Compressed keys block-size</li>
  22516. <li>Compressed keys block</li>
  22517. <li>Compressed value-lengths block-size</li>
  22518. <li>Compressed value-lengths block</li>
  22519. <li>Compressed values block-size</li>
  22520. <li>Compressed values block</li>
  22521. </ul>
  22522. </li>
  22523. <li>
  22524. A sync-marker every block.
  22525. </li>
  22526. </ul>
  22527. <p>The compressed blocks of key lengths and value lengths consist of the
  22528. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  22529. format.</p>
  22530. @see CompressionCodec]]>
  22531. </doc>
  22532. </class>
  22533. <!-- end class org.apache.hadoop.io.SequenceFile -->
  22534. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  22535. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  22536. abstract="false"
  22537. static="true" final="true" visibility="public"
  22538. deprecated="not deprecated">
  22539. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  22540. abstract="false" native="false" synchronized="false"
  22541. static="true" final="false" visibility="public"
  22542. deprecated="not deprecated">
  22543. </method>
  22544. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  22545. abstract="false" native="false" synchronized="false"
  22546. static="true" final="false" visibility="public"
  22547. deprecated="not deprecated">
  22548. <param name="name" type="java.lang.String"/>
  22549. </method>
  22550. <doc>
  22551. <![CDATA[The compression type used to compress key/value pairs in the
  22552. {@link SequenceFile}.
  22553. @see SequenceFile.Writer]]>
  22554. </doc>
  22555. </class>
  22556. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  22557. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  22558. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  22559. abstract="false"
  22560. static="true" final="false" visibility="public"
  22561. deprecated="not deprecated">
  22562. <implements name="org.apache.hadoop.io.Writable"/>
  22563. <constructor name="SequenceFile.Metadata"
  22564. static="false" final="false" visibility="public"
  22565. deprecated="not deprecated">
  22566. </constructor>
  22567. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  22568. static="false" final="false" visibility="public"
  22569. deprecated="not deprecated">
  22570. </constructor>
  22571. <method name="get" return="org.apache.hadoop.io.Text"
  22572. abstract="false" native="false" synchronized="false"
  22573. static="false" final="false" visibility="public"
  22574. deprecated="not deprecated">
  22575. <param name="name" type="org.apache.hadoop.io.Text"/>
  22576. </method>
  22577. <method name="set"
  22578. abstract="false" native="false" synchronized="false"
  22579. static="false" final="false" visibility="public"
  22580. deprecated="not deprecated">
  22581. <param name="name" type="org.apache.hadoop.io.Text"/>
  22582. <param name="value" type="org.apache.hadoop.io.Text"/>
  22583. </method>
  22584. <method name="getMetadata" return="java.util.TreeMap"
  22585. abstract="false" native="false" synchronized="false"
  22586. static="false" final="false" visibility="public"
  22587. deprecated="not deprecated">
  22588. </method>
  22589. <method name="write"
  22590. abstract="false" native="false" synchronized="false"
  22591. static="false" final="false" visibility="public"
  22592. deprecated="not deprecated">
  22593. <param name="out" type="java.io.DataOutput"/>
  22594. <exception name="IOException" type="java.io.IOException"/>
  22595. </method>
  22596. <method name="readFields"
  22597. abstract="false" native="false" synchronized="false"
  22598. static="false" final="false" visibility="public"
  22599. deprecated="not deprecated">
  22600. <param name="in" type="java.io.DataInput"/>
  22601. <exception name="IOException" type="java.io.IOException"/>
  22602. </method>
  22603. <method name="equals" return="boolean"
  22604. abstract="false" native="false" synchronized="false"
  22605. static="false" final="false" visibility="public"
  22606. deprecated="not deprecated">
  22607. <param name="other" type="java.lang.Object"/>
  22608. </method>
  22609. <method name="equals" return="boolean"
  22610. abstract="false" native="false" synchronized="false"
  22611. static="false" final="false" visibility="public"
  22612. deprecated="not deprecated">
  22613. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  22614. </method>
  22615. <method name="hashCode" return="int"
  22616. abstract="false" native="false" synchronized="false"
  22617. static="false" final="false" visibility="public"
  22618. deprecated="not deprecated">
  22619. </method>
  22620. <method name="toString" return="java.lang.String"
  22621. abstract="false" native="false" synchronized="false"
  22622. static="false" final="false" visibility="public"
  22623. deprecated="not deprecated">
  22624. </method>
  22625. <doc>
  22626. <![CDATA[The class encapsulating with the metadata of a file.
  22627. The metadata of a file is a list of attribute name/value
  22628. pairs of Text type.]]>
  22629. </doc>
  22630. </class>
  22631. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  22632. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  22633. <class name="SequenceFile.Reader" extends="java.lang.Object"
  22634. abstract="false"
  22635. static="true" final="false" visibility="public"
  22636. deprecated="not deprecated">
  22637. <implements name="java.io.Closeable"/>
  22638. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  22639. static="false" final="false" visibility="public"
  22640. deprecated="not deprecated">
  22641. <exception name="IOException" type="java.io.IOException"/>
  22642. </constructor>
  22643. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  22644. static="false" final="false" visibility="public"
  22645. deprecated="Use Reader(Configuration, Option...) instead.">
  22646. <exception name="IOException" type="java.io.IOException"/>
  22647. <doc>
  22648. <![CDATA[Construct a reader by opening a file from the given file system.
  22649. @param fs The file system used to open the file.
  22650. @param file The file being read.
  22651. @param conf Configuration
  22652. @throws IOException
  22653. @deprecated Use Reader(Configuration, Option...) instead.]]>
  22654. </doc>
  22655. </constructor>
  22656. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, int, long, long, org.apache.hadoop.conf.Configuration"
  22657. static="false" final="false" visibility="public"
  22658. deprecated="Use Reader(Configuration, Reader.Option...) instead.">
  22659. <exception name="IOException" type="java.io.IOException"/>
  22660. <doc>
  22661. <![CDATA[Construct a reader by the given input stream.
  22662. @param in An input stream.
  22663. @param buffersize unused
  22664. @param start The starting position.
  22665. @param length The length being read.
  22666. @param conf Configuration
  22667. @throws IOException
  22668. @deprecated Use Reader(Configuration, Reader.Option...) instead.]]>
  22669. </doc>
  22670. </constructor>
  22671. <method name="file" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  22672. abstract="false" native="false" synchronized="false"
  22673. static="true" final="false" visibility="public"
  22674. deprecated="not deprecated">
  22675. <param name="value" type="org.apache.hadoop.fs.Path"/>
  22676. <doc>
  22677. <![CDATA[Create an option to specify the path name of the sequence file.
  22678. @param value the path to read
  22679. @return a new option]]>
  22680. </doc>
  22681. </method>
  22682. <method name="stream" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  22683. abstract="false" native="false" synchronized="false"
  22684. static="true" final="false" visibility="public"
  22685. deprecated="not deprecated">
  22686. <param name="value" type="org.apache.hadoop.fs.FSDataInputStream"/>
  22687. <doc>
  22688. <![CDATA[Create an option to specify the stream with the sequence file.
  22689. @param value the stream to read.
  22690. @return a new option]]>
  22691. </doc>
  22692. </method>
  22693. <method name="start" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  22694. abstract="false" native="false" synchronized="false"
  22695. static="true" final="false" visibility="public"
  22696. deprecated="not deprecated">
  22697. <param name="value" type="long"/>
  22698. <doc>
  22699. <![CDATA[Create an option to specify the starting byte to read.
  22700. @param value the number of bytes to skip over
  22701. @return a new option]]>
  22702. </doc>
  22703. </method>
  22704. <method name="length" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  22705. abstract="false" native="false" synchronized="false"
  22706. static="true" final="false" visibility="public"
  22707. deprecated="not deprecated">
  22708. <param name="value" type="long"/>
  22709. <doc>
  22710. <![CDATA[Create an option to specify the number of bytes to read.
  22711. @param value the number of bytes to read
  22712. @return a new option]]>
  22713. </doc>
  22714. </method>
  22715. <method name="bufferSize" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  22716. abstract="false" native="false" synchronized="false"
  22717. static="true" final="false" visibility="public"
  22718. deprecated="not deprecated">
  22719. <param name="value" type="int"/>
  22720. <doc>
  22721. <![CDATA[Create an option with the buffer size for reading the given pathname.
  22722. @param value the number of bytes to buffer
  22723. @return a new option]]>
  22724. </doc>
  22725. </method>
  22726. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  22727. abstract="false" native="false" synchronized="false"
  22728. static="false" final="false" visibility="protected"
  22729. deprecated="not deprecated">
  22730. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  22731. <param name="file" type="org.apache.hadoop.fs.Path"/>
  22732. <param name="bufferSize" type="int"/>
  22733. <param name="length" type="long"/>
  22734. <exception name="IOException" type="java.io.IOException"/>
  22735. <doc>
  22736. <![CDATA[Override this method to specialize the type of
  22737. {@link FSDataInputStream} returned.
  22738. @param fs The file system used to open the file.
  22739. @param file The file being read.
  22740. @param bufferSize The buffer size used to read the file.
  22741. @param length The length being read if it is >= 0. Otherwise,
  22742. the length is not available.
  22743. @return The opened stream.
  22744. @throws IOException]]>
  22745. </doc>
  22746. </method>
  22747. <method name="close"
  22748. abstract="false" native="false" synchronized="true"
  22749. static="false" final="false" visibility="public"
  22750. deprecated="not deprecated">
  22751. <exception name="IOException" type="java.io.IOException"/>
  22752. <doc>
  22753. <![CDATA[Close the file.]]>
  22754. </doc>
  22755. </method>
  22756. <method name="getKeyClassName" return="java.lang.String"
  22757. abstract="false" native="false" synchronized="false"
  22758. static="false" final="false" visibility="public"
  22759. deprecated="not deprecated">
  22760. <doc>
  22761. <![CDATA[Returns the name of the key class.]]>
  22762. </doc>
  22763. </method>
  22764. <method name="getKeyClass" return="java.lang.Class"
  22765. abstract="false" native="false" synchronized="true"
  22766. static="false" final="false" visibility="public"
  22767. deprecated="not deprecated">
  22768. <doc>
  22769. <![CDATA[Returns the class of keys in this file.]]>
  22770. </doc>
  22771. </method>
  22772. <method name="getValueClassName" return="java.lang.String"
  22773. abstract="false" native="false" synchronized="false"
  22774. static="false" final="false" visibility="public"
  22775. deprecated="not deprecated">
  22776. <doc>
  22777. <![CDATA[Returns the name of the value class.]]>
  22778. </doc>
  22779. </method>
  22780. <method name="getValueClass" return="java.lang.Class"
  22781. abstract="false" native="false" synchronized="true"
  22782. static="false" final="false" visibility="public"
  22783. deprecated="not deprecated">
  22784. <doc>
  22785. <![CDATA[Returns the class of values in this file.]]>
  22786. </doc>
  22787. </method>
  22788. <method name="isCompressed" return="boolean"
  22789. abstract="false" native="false" synchronized="false"
  22790. static="false" final="false" visibility="public"
  22791. deprecated="not deprecated">
  22792. <doc>
  22793. <![CDATA[Returns true if values are compressed.]]>
  22794. </doc>
  22795. </method>
  22796. <method name="isBlockCompressed" return="boolean"
  22797. abstract="false" native="false" synchronized="false"
  22798. static="false" final="false" visibility="public"
  22799. deprecated="not deprecated">
  22800. <doc>
  22801. <![CDATA[Returns true if records are block-compressed.]]>
  22802. </doc>
  22803. </method>
  22804. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  22805. abstract="false" native="false" synchronized="false"
  22806. static="false" final="false" visibility="public"
  22807. deprecated="not deprecated">
  22808. <doc>
  22809. <![CDATA[Returns the compression codec of data in this file.]]>
  22810. </doc>
  22811. </method>
  22812. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  22813. abstract="false" native="false" synchronized="false"
  22814. static="false" final="false" visibility="public"
  22815. deprecated="not deprecated">
  22816. <doc>
  22817. <![CDATA[Get the compression type for this file.
  22818. @return the compression type]]>
  22819. </doc>
  22820. </method>
  22821. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  22822. abstract="false" native="false" synchronized="false"
  22823. static="false" final="false" visibility="public"
  22824. deprecated="not deprecated">
  22825. <doc>
  22826. <![CDATA[Returns the metadata object of the file]]>
  22827. </doc>
  22828. </method>
  22829. <method name="getCurrentValue"
  22830. abstract="false" native="false" synchronized="true"
  22831. static="false" final="false" visibility="public"
  22832. deprecated="not deprecated">
  22833. <param name="val" type="org.apache.hadoop.io.Writable"/>
  22834. <exception name="IOException" type="java.io.IOException"/>
  22835. <doc>
  22836. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  22837. @param val : The 'value' to be read.
  22838. @throws IOException]]>
  22839. </doc>
  22840. </method>
  22841. <method name="getCurrentValue" return="java.lang.Object"
  22842. abstract="false" native="false" synchronized="true"
  22843. static="false" final="false" visibility="public"
  22844. deprecated="not deprecated">
  22845. <param name="val" type="java.lang.Object"/>
  22846. <exception name="IOException" type="java.io.IOException"/>
  22847. <doc>
  22848. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  22849. @param val : The 'value' to be read.
  22850. @throws IOException]]>
  22851. </doc>
  22852. </method>
  22853. <method name="next" return="boolean"
  22854. abstract="false" native="false" synchronized="true"
  22855. static="false" final="false" visibility="public"
  22856. deprecated="not deprecated">
  22857. <param name="key" type="org.apache.hadoop.io.Writable"/>
  22858. <exception name="IOException" type="java.io.IOException"/>
  22859. <doc>
  22860. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  22861. value. True if another entry exists, and false at end of file.]]>
  22862. </doc>
  22863. </method>
  22864. <method name="next" return="boolean"
  22865. abstract="false" native="false" synchronized="true"
  22866. static="false" final="false" visibility="public"
  22867. deprecated="not deprecated">
  22868. <param name="key" type="org.apache.hadoop.io.Writable"/>
  22869. <param name="val" type="org.apache.hadoop.io.Writable"/>
  22870. <exception name="IOException" type="java.io.IOException"/>
  22871. <doc>
  22872. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  22873. <code>val</code>. Returns true if such a pair exists and false when at
  22874. end of file]]>
  22875. </doc>
  22876. </method>
  22877. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  22878. abstract="false" native="false" synchronized="false"
  22879. static="false" final="false" visibility="public"
  22880. deprecated="not deprecated">
  22881. </method>
  22882. <method name="nextRaw" return="int"
  22883. abstract="false" native="false" synchronized="true"
  22884. static="false" final="false" visibility="public"
  22885. deprecated="not deprecated">
  22886. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  22887. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  22888. <exception name="IOException" type="java.io.IOException"/>
  22889. <doc>
  22890. <![CDATA[Read 'raw' records.
  22891. @param key - The buffer into which the key is read
  22892. @param val - The 'raw' value
  22893. @return Returns the total record length or -1 for end of file
  22894. @throws IOException]]>
  22895. </doc>
  22896. </method>
  22897. <method name="nextRawKey" return="int"
  22898. abstract="false" native="false" synchronized="true"
  22899. static="false" final="false" visibility="public"
  22900. deprecated="not deprecated">
  22901. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  22902. <exception name="IOException" type="java.io.IOException"/>
  22903. <doc>
  22904. <![CDATA[Read 'raw' keys.
  22905. @param key - The buffer into which the key is read
  22906. @return Returns the key length or -1 for end of file
  22907. @throws IOException]]>
  22908. </doc>
  22909. </method>
  22910. <method name="next" return="java.lang.Object"
  22911. abstract="false" native="false" synchronized="true"
  22912. static="false" final="false" visibility="public"
  22913. deprecated="not deprecated">
  22914. <param name="key" type="java.lang.Object"/>
  22915. <exception name="IOException" type="java.io.IOException"/>
  22916. <doc>
  22917. <![CDATA[Read the next key in the file, skipping its
  22918. value. Return null at end of file.]]>
  22919. </doc>
  22920. </method>
  22921. <method name="nextRawValue" return="int"
  22922. abstract="false" native="false" synchronized="true"
  22923. static="false" final="false" visibility="public"
  22924. deprecated="not deprecated">
  22925. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  22926. <exception name="IOException" type="java.io.IOException"/>
  22927. <doc>
  22928. <![CDATA[Read 'raw' values.
  22929. @param val - The 'raw' value
  22930. @return Returns the value length
  22931. @throws IOException]]>
  22932. </doc>
  22933. </method>
  22934. <method name="seek"
  22935. abstract="false" native="false" synchronized="true"
  22936. static="false" final="false" visibility="public"
  22937. deprecated="not deprecated">
  22938. <param name="position" type="long"/>
  22939. <exception name="IOException" type="java.io.IOException"/>
  22940. <doc>
  22941. <![CDATA[Set the current byte position in the input file.
  22942. <p>The position passed must be a position returned by {@link
  22943. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  22944. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  22945. </doc>
  22946. </method>
  22947. <method name="sync"
  22948. abstract="false" native="false" synchronized="true"
  22949. static="false" final="false" visibility="public"
  22950. deprecated="not deprecated">
  22951. <param name="position" type="long"/>
  22952. <exception name="IOException" type="java.io.IOException"/>
  22953. <doc>
  22954. <![CDATA[Seek to the next sync mark past a given position.]]>
  22955. </doc>
  22956. </method>
  22957. <method name="syncSeen" return="boolean"
  22958. abstract="false" native="false" synchronized="true"
  22959. static="false" final="false" visibility="public"
  22960. deprecated="not deprecated">
  22961. <doc>
  22962. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  22963. </doc>
  22964. </method>
  22965. <method name="getPosition" return="long"
  22966. abstract="false" native="false" synchronized="true"
  22967. static="false" final="false" visibility="public"
  22968. deprecated="not deprecated">
  22969. <exception name="IOException" type="java.io.IOException"/>
  22970. <doc>
  22971. <![CDATA[Return the current byte position in the input file.]]>
  22972. </doc>
  22973. </method>
  22974. <method name="toString" return="java.lang.String"
  22975. abstract="false" native="false" synchronized="false"
  22976. static="false" final="false" visibility="public"
  22977. deprecated="not deprecated">
  22978. <doc>
  22979. <![CDATA[Returns the name of the file.]]>
  22980. </doc>
  22981. </method>
  22982. <doc>
  22983. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  22984. </doc>
  22985. </class>
  22986. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  22987. <!-- start interface org.apache.hadoop.io.SequenceFile.Reader.Option -->
  22988. <interface name="SequenceFile.Reader.Option" abstract="true"
  22989. static="true" final="false" visibility="public"
  22990. deprecated="not deprecated">
  22991. <doc>
  22992. <![CDATA[A tag interface for all of the Reader options]]>
  22993. </doc>
  22994. </interface>
  22995. <!-- end interface org.apache.hadoop.io.SequenceFile.Reader.Option -->
  22996. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  22997. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  22998. abstract="false"
  22999. static="true" final="false" visibility="public"
  23000. deprecated="not deprecated">
  23001. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  23002. static="false" final="false" visibility="public"
  23003. deprecated="not deprecated">
  23004. <doc>
  23005. <![CDATA[Sort and merge files containing the named classes.]]>
  23006. </doc>
  23007. </constructor>
  23008. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  23009. static="false" final="false" visibility="public"
  23010. deprecated="not deprecated">
  23011. <doc>
  23012. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  23013. </doc>
  23014. </constructor>
  23015. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Metadata"
  23016. static="false" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. <doc>
  23019. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  23020. </doc>
  23021. </constructor>
  23022. <method name="setFactor"
  23023. abstract="false" native="false" synchronized="false"
  23024. static="false" final="false" visibility="public"
  23025. deprecated="not deprecated">
  23026. <param name="factor" type="int"/>
  23027. <doc>
  23028. <![CDATA[Set the number of streams to merge at once.]]>
  23029. </doc>
  23030. </method>
  23031. <method name="getFactor" return="int"
  23032. abstract="false" native="false" synchronized="false"
  23033. static="false" final="false" visibility="public"
  23034. deprecated="not deprecated">
  23035. <doc>
  23036. <![CDATA[Get the number of streams to merge at once.]]>
  23037. </doc>
  23038. </method>
  23039. <method name="setMemory"
  23040. abstract="false" native="false" synchronized="false"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="not deprecated">
  23043. <param name="memory" type="int"/>
  23044. <doc>
  23045. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  23046. </doc>
  23047. </method>
  23048. <method name="getMemory" return="int"
  23049. abstract="false" native="false" synchronized="false"
  23050. static="false" final="false" visibility="public"
  23051. deprecated="not deprecated">
  23052. <doc>
  23053. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  23054. </doc>
  23055. </method>
  23056. <method name="setProgressable"
  23057. abstract="false" native="false" synchronized="false"
  23058. static="false" final="false" visibility="public"
  23059. deprecated="not deprecated">
  23060. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  23061. <doc>
  23062. <![CDATA[Set the progressable object in order to report progress.]]>
  23063. </doc>
  23064. </method>
  23065. <method name="sort"
  23066. abstract="false" native="false" synchronized="false"
  23067. static="false" final="false" visibility="public"
  23068. deprecated="not deprecated">
  23069. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  23070. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  23071. <param name="deleteInput" type="boolean"/>
  23072. <exception name="IOException" type="java.io.IOException"/>
  23073. <doc>
  23074. <![CDATA[Perform a file sort from a set of input files into an output file.
  23075. @param inFiles the files to be sorted
  23076. @param outFile the sorted output file
  23077. @param deleteInput should the input files be deleted as they are read?]]>
  23078. </doc>
  23079. </method>
  23080. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  23081. abstract="false" native="false" synchronized="false"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  23085. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  23086. <param name="deleteInput" type="boolean"/>
  23087. <exception name="IOException" type="java.io.IOException"/>
  23088. <doc>
  23089. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  23090. @param inFiles the files to be sorted
  23091. @param tempDir the directory where temp files are created during sort
  23092. @param deleteInput should the input files be deleted as they are read?
  23093. @return iterator the RawKeyValueIterator]]>
  23094. </doc>
  23095. </method>
  23096. <method name="sort"
  23097. abstract="false" native="false" synchronized="false"
  23098. static="false" final="false" visibility="public"
  23099. deprecated="not deprecated">
  23100. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  23101. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  23102. <exception name="IOException" type="java.io.IOException"/>
  23103. <doc>
  23104. <![CDATA[The backwards compatible interface to sort.
  23105. @param inFile the input file to sort
  23106. @param outFile the sorted output file]]>
  23107. </doc>
  23108. </method>
  23109. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  23110. abstract="false" native="false" synchronized="false"
  23111. static="false" final="false" visibility="public"
  23112. deprecated="not deprecated">
  23113. <param name="segments" type="java.util.List"/>
  23114. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  23115. <exception name="IOException" type="java.io.IOException"/>
  23116. <doc>
  23117. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  23118. @param segments the list of SegmentDescriptors
  23119. @param tmpDir the directory to write temporary files into
  23120. @return RawKeyValueIterator
  23121. @throws IOException]]>
  23122. </doc>
  23123. </method>
  23124. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  23125. abstract="false" native="false" synchronized="false"
  23126. static="false" final="false" visibility="public"
  23127. deprecated="not deprecated">
  23128. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  23129. <param name="deleteInputs" type="boolean"/>
  23130. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  23131. <exception name="IOException" type="java.io.IOException"/>
  23132. <doc>
  23133. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  23134. that is already set
  23135. @param inNames the array of path names
  23136. @param deleteInputs true if the input files should be deleted when
  23137. unnecessary
  23138. @param tmpDir the directory to write temporary files into
  23139. @return RawKeyValueIteratorMergeQueue
  23140. @throws IOException]]>
  23141. </doc>
  23142. </method>
  23143. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  23144. abstract="false" native="false" synchronized="false"
  23145. static="false" final="false" visibility="public"
  23146. deprecated="not deprecated">
  23147. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  23148. <param name="deleteInputs" type="boolean"/>
  23149. <param name="factor" type="int"/>
  23150. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  23151. <exception name="IOException" type="java.io.IOException"/>
  23152. <doc>
  23153. <![CDATA[Merges the contents of files passed in Path[]
  23154. @param inNames the array of path names
  23155. @param deleteInputs true if the input files should be deleted when
  23156. unnecessary
  23157. @param factor the factor that will be used as the maximum merge fan-in
  23158. @param tmpDir the directory to write temporary files into
  23159. @return RawKeyValueIteratorMergeQueue
  23160. @throws IOException]]>
  23161. </doc>
  23162. </method>
  23163. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  23164. abstract="false" native="false" synchronized="false"
  23165. static="false" final="false" visibility="public"
  23166. deprecated="not deprecated">
  23167. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  23168. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  23169. <param name="deleteInputs" type="boolean"/>
  23170. <exception name="IOException" type="java.io.IOException"/>
  23171. <doc>
  23172. <![CDATA[Merges the contents of files passed in Path[]
  23173. @param inNames the array of path names
  23174. @param tempDir the directory for creating temp files during merge
  23175. @param deleteInputs true if the input files should be deleted when
  23176. unnecessary
  23177. @return RawKeyValueIteratorMergeQueue
  23178. @throws IOException]]>
  23179. </doc>
  23180. </method>
  23181. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  23182. abstract="false" native="false" synchronized="false"
  23183. static="false" final="false" visibility="public"
  23184. deprecated="not deprecated">
  23185. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  23186. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  23187. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  23188. <exception name="IOException" type="java.io.IOException"/>
  23189. <doc>
  23190. <![CDATA[Clones the attributes (like compression of the input file and creates a
  23191. corresponding Writer
  23192. @param inputFile the path of the input file whose attributes should be
  23193. cloned
  23194. @param outputFile the path of the output file
  23195. @param prog the Progressable to report status during the file write
  23196. @return Writer
  23197. @throws IOException]]>
  23198. </doc>
  23199. </method>
  23200. <method name="writeFile"
  23201. abstract="false" native="false" synchronized="false"
  23202. static="false" final="false" visibility="public"
  23203. deprecated="not deprecated">
  23204. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  23205. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  23206. <exception name="IOException" type="java.io.IOException"/>
  23207. <doc>
  23208. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  23209. passed writer
  23210. @param records the RawKeyValueIterator
  23211. @param writer the Writer created earlier
  23212. @throws IOException]]>
  23213. </doc>
  23214. </method>
  23215. <method name="merge"
  23216. abstract="false" native="false" synchronized="false"
  23217. static="false" final="false" visibility="public"
  23218. deprecated="not deprecated">
  23219. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  23220. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  23221. <exception name="IOException" type="java.io.IOException"/>
  23222. <doc>
  23223. <![CDATA[Merge the provided files.
  23224. @param inFiles the array of input path names
  23225. @param outFile the final output file
  23226. @throws IOException]]>
  23227. </doc>
  23228. </method>
  23229. <doc>
  23230. <![CDATA[Sorts key/value pairs in a sequence-format file.
  23231. <p>For best performance, applications should make sure that the {@link
  23232. Writable#readFields(DataInput)} implementation of their keys is
  23233. very efficient. In particular, it should avoid allocating memory.]]>
  23234. </doc>
  23235. </class>
  23236. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  23237. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  23238. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  23239. static="true" final="false" visibility="public"
  23240. deprecated="not deprecated">
  23241. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  23242. abstract="false" native="false" synchronized="false"
  23243. static="false" final="false" visibility="public"
  23244. deprecated="not deprecated">
  23245. <exception name="IOException" type="java.io.IOException"/>
  23246. <doc>
  23247. <![CDATA[Gets the current raw key
  23248. @return DataOutputBuffer
  23249. @throws IOException]]>
  23250. </doc>
  23251. </method>
  23252. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  23253. abstract="false" native="false" synchronized="false"
  23254. static="false" final="false" visibility="public"
  23255. deprecated="not deprecated">
  23256. <exception name="IOException" type="java.io.IOException"/>
  23257. <doc>
  23258. <![CDATA[Gets the current raw value
  23259. @return ValueBytes
  23260. @throws IOException]]>
  23261. </doc>
  23262. </method>
  23263. <method name="next" return="boolean"
  23264. abstract="false" native="false" synchronized="false"
  23265. static="false" final="false" visibility="public"
  23266. deprecated="not deprecated">
  23267. <exception name="IOException" type="java.io.IOException"/>
  23268. <doc>
  23269. <![CDATA[Sets up the current key and value (for getKey and getValue)
  23270. @return true if there exists a key/value, false otherwise
  23271. @throws IOException]]>
  23272. </doc>
  23273. </method>
  23274. <method name="close"
  23275. abstract="false" native="false" synchronized="false"
  23276. static="false" final="false" visibility="public"
  23277. deprecated="not deprecated">
  23278. <exception name="IOException" type="java.io.IOException"/>
  23279. <doc>
  23280. <![CDATA[closes the iterator so that the underlying streams can be closed
  23281. @throws IOException]]>
  23282. </doc>
  23283. </method>
  23284. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  23285. abstract="false" native="false" synchronized="false"
  23286. static="false" final="false" visibility="public"
  23287. deprecated="not deprecated">
  23288. <doc>
  23289. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  23290. indicating the bytes processed by the iterator so far]]>
  23291. </doc>
  23292. </method>
  23293. <doc>
  23294. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  23295. </doc>
  23296. </interface>
  23297. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  23298. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  23299. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  23300. abstract="false"
  23301. static="false" final="false" visibility="public"
  23302. deprecated="not deprecated">
  23303. <implements name="java.lang.Comparable"/>
  23304. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  23305. static="false" final="false" visibility="public"
  23306. deprecated="not deprecated">
  23307. <doc>
  23308. <![CDATA[Constructs a segment
  23309. @param segmentOffset the offset of the segment in the file
  23310. @param segmentLength the length of the segment
  23311. @param segmentPathName the path name of the file containing the segment]]>
  23312. </doc>
  23313. </constructor>
  23314. <method name="doSync"
  23315. abstract="false" native="false" synchronized="false"
  23316. static="false" final="false" visibility="public"
  23317. deprecated="not deprecated">
  23318. <doc>
  23319. <![CDATA[Do the sync checks]]>
  23320. </doc>
  23321. </method>
  23322. <method name="preserveInput"
  23323. abstract="false" native="false" synchronized="false"
  23324. static="false" final="false" visibility="public"
  23325. deprecated="not deprecated">
  23326. <param name="preserve" type="boolean"/>
  23327. <doc>
  23328. <![CDATA[Whether to delete the files when no longer needed]]>
  23329. </doc>
  23330. </method>
  23331. <method name="shouldPreserveInput" return="boolean"
  23332. abstract="false" native="false" synchronized="false"
  23333. static="false" final="false" visibility="public"
  23334. deprecated="not deprecated">
  23335. </method>
  23336. <method name="compareTo" return="int"
  23337. abstract="false" native="false" synchronized="false"
  23338. static="false" final="false" visibility="public"
  23339. deprecated="not deprecated">
  23340. <param name="o" type="java.lang.Object"/>
  23341. </method>
  23342. <method name="equals" return="boolean"
  23343. abstract="false" native="false" synchronized="false"
  23344. static="false" final="false" visibility="public"
  23345. deprecated="not deprecated">
  23346. <param name="o" type="java.lang.Object"/>
  23347. </method>
  23348. <method name="hashCode" return="int"
  23349. abstract="false" native="false" synchronized="false"
  23350. static="false" final="false" visibility="public"
  23351. deprecated="not deprecated">
  23352. </method>
  23353. <method name="nextRawKey" return="boolean"
  23354. abstract="false" native="false" synchronized="false"
  23355. static="false" final="false" visibility="public"
  23356. deprecated="not deprecated">
  23357. <exception name="IOException" type="java.io.IOException"/>
  23358. <doc>
  23359. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  23360. @return true if there is a key returned; false, otherwise
  23361. @throws IOException]]>
  23362. </doc>
  23363. </method>
  23364. <method name="nextRawValue" return="int"
  23365. abstract="false" native="false" synchronized="false"
  23366. static="false" final="false" visibility="public"
  23367. deprecated="not deprecated">
  23368. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  23369. <exception name="IOException" type="java.io.IOException"/>
  23370. <doc>
  23371. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  23372. read earlier
  23373. @param rawValue
  23374. @return the length of the value
  23375. @throws IOException]]>
  23376. </doc>
  23377. </method>
  23378. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  23379. abstract="false" native="false" synchronized="false"
  23380. static="false" final="false" visibility="public"
  23381. deprecated="not deprecated">
  23382. <doc>
  23383. <![CDATA[Returns the stored rawKey]]>
  23384. </doc>
  23385. </method>
  23386. <method name="cleanup"
  23387. abstract="false" native="false" synchronized="false"
  23388. static="false" final="false" visibility="public"
  23389. deprecated="not deprecated">
  23390. <exception name="IOException" type="java.io.IOException"/>
  23391. <doc>
  23392. <![CDATA[The default cleanup. Subclasses can override this with a custom
  23393. cleanup]]>
  23394. </doc>
  23395. </method>
  23396. <doc>
  23397. <![CDATA[This class defines a merge segment. This class can be subclassed to
  23398. provide a customized cleanup method implementation. In this
  23399. implementation, cleanup closes the file handle and deletes the file]]>
  23400. </doc>
  23401. </class>
  23402. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  23403. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  23404. <interface name="SequenceFile.ValueBytes" abstract="true"
  23405. static="true" final="false" visibility="public"
  23406. deprecated="not deprecated">
  23407. <method name="writeUncompressedBytes"
  23408. abstract="false" native="false" synchronized="false"
  23409. static="false" final="false" visibility="public"
  23410. deprecated="not deprecated">
  23411. <param name="outStream" type="java.io.DataOutputStream"/>
  23412. <exception name="IOException" type="java.io.IOException"/>
  23413. <doc>
  23414. <![CDATA[Writes the uncompressed bytes to the outStream.
  23415. @param outStream : Stream to write uncompressed bytes into.
  23416. @throws IOException]]>
  23417. </doc>
  23418. </method>
  23419. <method name="writeCompressedBytes"
  23420. abstract="false" native="false" synchronized="false"
  23421. static="false" final="false" visibility="public"
  23422. deprecated="not deprecated">
  23423. <param name="outStream" type="java.io.DataOutputStream"/>
  23424. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  23425. <exception name="IOException" type="java.io.IOException"/>
  23426. <doc>
  23427. <![CDATA[Write compressed bytes to outStream.
  23428. Note: that it will NOT compress the bytes if they are not compressed.
  23429. @param outStream : Stream to write compressed bytes into.]]>
  23430. </doc>
  23431. </method>
  23432. <method name="getSize" return="int"
  23433. abstract="false" native="false" synchronized="false"
  23434. static="false" final="false" visibility="public"
  23435. deprecated="not deprecated">
  23436. <doc>
  23437. <![CDATA[Size of stored data.]]>
  23438. </doc>
  23439. </method>
  23440. <doc>
  23441. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  23442. </doc>
  23443. </interface>
  23444. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  23445. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  23446. <class name="SequenceFile.Writer" extends="java.lang.Object"
  23447. abstract="false"
  23448. static="true" final="false" visibility="public"
  23449. deprecated="not deprecated">
  23450. <implements name="java.io.Closeable"/>
  23451. <implements name="org.apache.hadoop.fs.Syncable"/>
  23452. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class"
  23453. static="false" final="false" visibility="public"
  23454. deprecated="Use
  23455. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  23456. instead.">
  23457. <exception name="IOException" type="java.io.IOException"/>
  23458. <doc>
  23459. <![CDATA[Create the named file.
  23460. @deprecated Use
  23461. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  23462. instead.]]>
  23463. </doc>
  23464. </constructor>
  23465. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  23466. static="false" final="false" visibility="public"
  23467. deprecated="Use
  23468. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  23469. instead.">
  23470. <exception name="IOException" type="java.io.IOException"/>
  23471. <doc>
  23472. <![CDATA[Create the named file with write-progress reporter.
  23473. @deprecated Use
  23474. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  23475. instead.]]>
  23476. </doc>
  23477. </constructor>
  23478. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, int, short, long, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  23479. static="false" final="false" visibility="public"
  23480. deprecated="Use
  23481. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  23482. instead.">
  23483. <exception name="IOException" type="java.io.IOException"/>
  23484. <doc>
  23485. <![CDATA[Create the named file with write-progress reporter.
  23486. @deprecated Use
  23487. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  23488. instead.]]>
  23489. </doc>
  23490. </constructor>
  23491. <method name="file" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23492. abstract="false" native="false" synchronized="false"
  23493. static="true" final="false" visibility="public"
  23494. deprecated="not deprecated">
  23495. <param name="value" type="org.apache.hadoop.fs.Path"/>
  23496. </method>
  23497. <method name="bufferSize" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23498. abstract="false" native="false" synchronized="false"
  23499. static="true" final="false" visibility="public"
  23500. deprecated="not deprecated">
  23501. <param name="value" type="int"/>
  23502. </method>
  23503. <method name="stream" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23504. abstract="false" native="false" synchronized="false"
  23505. static="true" final="false" visibility="public"
  23506. deprecated="not deprecated">
  23507. <param name="value" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  23508. </method>
  23509. <method name="replication" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23510. abstract="false" native="false" synchronized="false"
  23511. static="true" final="false" visibility="public"
  23512. deprecated="not deprecated">
  23513. <param name="value" type="short"/>
  23514. </method>
  23515. <method name="blockSize" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23516. abstract="false" native="false" synchronized="false"
  23517. static="true" final="false" visibility="public"
  23518. deprecated="not deprecated">
  23519. <param name="value" type="long"/>
  23520. </method>
  23521. <method name="progressable" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23522. abstract="false" native="false" synchronized="false"
  23523. static="true" final="false" visibility="public"
  23524. deprecated="not deprecated">
  23525. <param name="value" type="org.apache.hadoop.util.Progressable"/>
  23526. </method>
  23527. <method name="keyClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23528. abstract="false" native="false" synchronized="false"
  23529. static="true" final="false" visibility="public"
  23530. deprecated="not deprecated">
  23531. <param name="value" type="java.lang.Class"/>
  23532. </method>
  23533. <method name="valueClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23534. abstract="false" native="false" synchronized="false"
  23535. static="true" final="false" visibility="public"
  23536. deprecated="not deprecated">
  23537. <param name="value" type="java.lang.Class"/>
  23538. </method>
  23539. <method name="metadata" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23540. abstract="false" native="false" synchronized="false"
  23541. static="true" final="false" visibility="public"
  23542. deprecated="not deprecated">
  23543. <param name="value" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23544. </method>
  23545. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23546. abstract="false" native="false" synchronized="false"
  23547. static="true" final="false" visibility="public"
  23548. deprecated="not deprecated">
  23549. <param name="value" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23550. </method>
  23551. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  23552. abstract="false" native="false" synchronized="false"
  23553. static="true" final="false" visibility="public"
  23554. deprecated="not deprecated">
  23555. <param name="value" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23556. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23557. </method>
  23558. <method name="getKeyClass" return="java.lang.Class"
  23559. abstract="false" native="false" synchronized="false"
  23560. static="false" final="false" visibility="public"
  23561. deprecated="not deprecated">
  23562. <doc>
  23563. <![CDATA[Returns the class of keys in this file.]]>
  23564. </doc>
  23565. </method>
  23566. <method name="getValueClass" return="java.lang.Class"
  23567. abstract="false" native="false" synchronized="false"
  23568. static="false" final="false" visibility="public"
  23569. deprecated="not deprecated">
  23570. <doc>
  23571. <![CDATA[Returns the class of values in this file.]]>
  23572. </doc>
  23573. </method>
  23574. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  23575. abstract="false" native="false" synchronized="false"
  23576. static="false" final="false" visibility="public"
  23577. deprecated="not deprecated">
  23578. <doc>
  23579. <![CDATA[Returns the compression codec of data in this file.]]>
  23580. </doc>
  23581. </method>
  23582. <method name="sync"
  23583. abstract="false" native="false" synchronized="false"
  23584. static="false" final="false" visibility="public"
  23585. deprecated="not deprecated">
  23586. <exception name="IOException" type="java.io.IOException"/>
  23587. <doc>
  23588. <![CDATA[create a sync point]]>
  23589. </doc>
  23590. </method>
  23591. <method name="syncFs"
  23592. abstract="false" native="false" synchronized="false"
  23593. static="false" final="false" visibility="public"
  23594. deprecated="Use {@link #hsync()} or {@link #hflush()} instead">
  23595. <exception name="IOException" type="java.io.IOException"/>
  23596. <doc>
  23597. <![CDATA[flush all currently written data to the file system
  23598. @deprecated Use {@link #hsync()} or {@link #hflush()} instead]]>
  23599. </doc>
  23600. </method>
  23601. <method name="hsync"
  23602. abstract="false" native="false" synchronized="false"
  23603. static="false" final="false" visibility="public"
  23604. deprecated="not deprecated">
  23605. <exception name="IOException" type="java.io.IOException"/>
  23606. </method>
  23607. <method name="hflush"
  23608. abstract="false" native="false" synchronized="false"
  23609. static="false" final="false" visibility="public"
  23610. deprecated="not deprecated">
  23611. <exception name="IOException" type="java.io.IOException"/>
  23612. </method>
  23613. <method name="close"
  23614. abstract="false" native="false" synchronized="true"
  23615. static="false" final="false" visibility="public"
  23616. deprecated="not deprecated">
  23617. <exception name="IOException" type="java.io.IOException"/>
  23618. <doc>
  23619. <![CDATA[Close the file.]]>
  23620. </doc>
  23621. </method>
  23622. <method name="append"
  23623. abstract="false" native="false" synchronized="false"
  23624. static="false" final="false" visibility="public"
  23625. deprecated="not deprecated">
  23626. <param name="key" type="org.apache.hadoop.io.Writable"/>
  23627. <param name="val" type="org.apache.hadoop.io.Writable"/>
  23628. <exception name="IOException" type="java.io.IOException"/>
  23629. <doc>
  23630. <![CDATA[Append a key/value pair.]]>
  23631. </doc>
  23632. </method>
  23633. <method name="append"
  23634. abstract="false" native="false" synchronized="true"
  23635. static="false" final="false" visibility="public"
  23636. deprecated="not deprecated">
  23637. <param name="key" type="java.lang.Object"/>
  23638. <param name="val" type="java.lang.Object"/>
  23639. <exception name="IOException" type="java.io.IOException"/>
  23640. <doc>
  23641. <![CDATA[Append a key/value pair.]]>
  23642. </doc>
  23643. </method>
  23644. <method name="appendRaw"
  23645. abstract="false" native="false" synchronized="true"
  23646. static="false" final="false" visibility="public"
  23647. deprecated="not deprecated">
  23648. <param name="keyData" type="byte[]"/>
  23649. <param name="keyOffset" type="int"/>
  23650. <param name="keyLength" type="int"/>
  23651. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  23652. <exception name="IOException" type="java.io.IOException"/>
  23653. </method>
  23654. <method name="getLength" return="long"
  23655. abstract="false" native="false" synchronized="true"
  23656. static="false" final="false" visibility="public"
  23657. deprecated="not deprecated">
  23658. <exception name="IOException" type="java.io.IOException"/>
  23659. <doc>
  23660. <![CDATA[Returns the current length of the output file.
  23661. <p>This always returns a synchronized position. In other words,
  23662. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  23663. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  23664. the key may be earlier in the file than key last written when this
  23665. method was called (e.g., with block-compression, it may be the first key
  23666. in the block that was being written when this method was called).]]>
  23667. </doc>
  23668. </method>
  23669. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  23670. transient="false" volatile="false"
  23671. static="false" final="false" visibility="protected"
  23672. deprecated="not deprecated">
  23673. </field>
  23674. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  23675. transient="false" volatile="false"
  23676. static="false" final="false" visibility="protected"
  23677. deprecated="not deprecated">
  23678. </field>
  23679. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  23680. transient="false" volatile="false"
  23681. static="false" final="false" visibility="protected"
  23682. deprecated="not deprecated">
  23683. </field>
  23684. <doc>
  23685. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  23686. </doc>
  23687. </class>
  23688. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  23689. <!-- start interface org.apache.hadoop.io.SequenceFile.Writer.Option -->
  23690. <interface name="SequenceFile.Writer.Option" abstract="true"
  23691. static="true" final="false" visibility="public"
  23692. deprecated="not deprecated">
  23693. </interface>
  23694. <!-- end interface org.apache.hadoop.io.SequenceFile.Writer.Option -->
  23695. <!-- start class org.apache.hadoop.io.SetFile -->
  23696. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  23697. abstract="false"
  23698. static="false" final="false" visibility="public"
  23699. deprecated="not deprecated">
  23700. <constructor name="SetFile"
  23701. static="false" final="false" visibility="protected"
  23702. deprecated="not deprecated">
  23703. </constructor>
  23704. <doc>
  23705. <![CDATA[A file-based set of keys.]]>
  23706. </doc>
  23707. </class>
  23708. <!-- end class org.apache.hadoop.io.SetFile -->
  23709. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  23710. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  23711. abstract="false"
  23712. static="true" final="false" visibility="public"
  23713. deprecated="not deprecated">
  23714. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  23715. static="false" final="false" visibility="public"
  23716. deprecated="not deprecated">
  23717. <exception name="IOException" type="java.io.IOException"/>
  23718. <doc>
  23719. <![CDATA[Construct a set reader for the named set.]]>
  23720. </doc>
  23721. </constructor>
  23722. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  23723. static="false" final="false" visibility="public"
  23724. deprecated="not deprecated">
  23725. <exception name="IOException" type="java.io.IOException"/>
  23726. <doc>
  23727. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  23728. </doc>
  23729. </constructor>
  23730. <method name="seek" return="boolean"
  23731. abstract="false" native="false" synchronized="false"
  23732. static="false" final="false" visibility="public"
  23733. deprecated="not deprecated">
  23734. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  23735. <exception name="IOException" type="java.io.IOException"/>
  23736. </method>
  23737. <method name="next" return="boolean"
  23738. abstract="false" native="false" synchronized="false"
  23739. static="false" final="false" visibility="public"
  23740. deprecated="not deprecated">
  23741. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  23742. <exception name="IOException" type="java.io.IOException"/>
  23743. <doc>
  23744. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  23745. true if such a key exists and false when at the end of the set.]]>
  23746. </doc>
  23747. </method>
  23748. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  23749. abstract="false" native="false" synchronized="false"
  23750. static="false" final="false" visibility="public"
  23751. deprecated="not deprecated">
  23752. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  23753. <exception name="IOException" type="java.io.IOException"/>
  23754. <doc>
  23755. <![CDATA[Read the matching key from a set into <code>key</code>.
  23756. Returns <code>key</code>, or null if no match exists.]]>
  23757. </doc>
  23758. </method>
  23759. <doc>
  23760. <![CDATA[Provide access to an existing set file.]]>
  23761. </doc>
  23762. </class>
  23763. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  23764. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  23765. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  23766. abstract="false"
  23767. static="true" final="false" visibility="public"
  23768. deprecated="not deprecated">
  23769. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  23770. static="false" final="false" visibility="public"
  23771. deprecated="pass a Configuration too">
  23772. <exception name="IOException" type="java.io.IOException"/>
  23773. <doc>
  23774. <![CDATA[Create the named set for keys of the named class.
  23775. @deprecated pass a Configuration too]]>
  23776. </doc>
  23777. </constructor>
  23778. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  23779. static="false" final="false" visibility="public"
  23780. deprecated="not deprecated">
  23781. <exception name="IOException" type="java.io.IOException"/>
  23782. <doc>
  23783. <![CDATA[Create a set naming the element class and compression type.]]>
  23784. </doc>
  23785. </constructor>
  23786. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.io.SequenceFile.CompressionType"
  23787. static="false" final="false" visibility="public"
  23788. deprecated="not deprecated">
  23789. <exception name="IOException" type="java.io.IOException"/>
  23790. <doc>
  23791. <![CDATA[Create a set naming the element comparator and compression type.]]>
  23792. </doc>
  23793. </constructor>
  23794. <method name="append"
  23795. abstract="false" native="false" synchronized="false"
  23796. static="false" final="false" visibility="public"
  23797. deprecated="not deprecated">
  23798. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  23799. <exception name="IOException" type="java.io.IOException"/>
  23800. <doc>
  23801. <![CDATA[Append a key to a set. The key must be strictly greater than the
  23802. previous key added to the set.]]>
  23803. </doc>
  23804. </method>
  23805. <doc>
  23806. <![CDATA[Write a new set file.]]>
  23807. </doc>
  23808. </class>
  23809. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  23810. <!-- start class org.apache.hadoop.io.ShortWritable -->
  23811. <class name="ShortWritable" extends="java.lang.Object"
  23812. abstract="false"
  23813. static="false" final="false" visibility="public"
  23814. deprecated="not deprecated">
  23815. <implements name="org.apache.hadoop.io.WritableComparable"/>
  23816. <constructor name="ShortWritable"
  23817. static="false" final="false" visibility="public"
  23818. deprecated="not deprecated">
  23819. </constructor>
  23820. <constructor name="ShortWritable" type="short"
  23821. static="false" final="false" visibility="public"
  23822. deprecated="not deprecated">
  23823. </constructor>
  23824. <method name="set"
  23825. abstract="false" native="false" synchronized="false"
  23826. static="false" final="false" visibility="public"
  23827. deprecated="not deprecated">
  23828. <param name="value" type="short"/>
  23829. <doc>
  23830. <![CDATA[Set the value of this ShortWritable.]]>
  23831. </doc>
  23832. </method>
  23833. <method name="get" return="short"
  23834. abstract="false" native="false" synchronized="false"
  23835. static="false" final="false" visibility="public"
  23836. deprecated="not deprecated">
  23837. <doc>
  23838. <![CDATA[Return the value of this ShortWritable.]]>
  23839. </doc>
  23840. </method>
  23841. <method name="readFields"
  23842. abstract="false" native="false" synchronized="false"
  23843. static="false" final="false" visibility="public"
  23844. deprecated="not deprecated">
  23845. <param name="in" type="java.io.DataInput"/>
  23846. <exception name="IOException" type="java.io.IOException"/>
  23847. <doc>
  23848. <![CDATA[read the short value]]>
  23849. </doc>
  23850. </method>
  23851. <method name="write"
  23852. abstract="false" native="false" synchronized="false"
  23853. static="false" final="false" visibility="public"
  23854. deprecated="not deprecated">
  23855. <param name="out" type="java.io.DataOutput"/>
  23856. <exception name="IOException" type="java.io.IOException"/>
  23857. <doc>
  23858. <![CDATA[write short value]]>
  23859. </doc>
  23860. </method>
  23861. <method name="equals" return="boolean"
  23862. abstract="false" native="false" synchronized="false"
  23863. static="false" final="false" visibility="public"
  23864. deprecated="not deprecated">
  23865. <param name="o" type="java.lang.Object"/>
  23866. <doc>
  23867. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  23868. </doc>
  23869. </method>
  23870. <method name="hashCode" return="int"
  23871. abstract="false" native="false" synchronized="false"
  23872. static="false" final="false" visibility="public"
  23873. deprecated="not deprecated">
  23874. <doc>
  23875. <![CDATA[hash code]]>
  23876. </doc>
  23877. </method>
  23878. <method name="compareTo" return="int"
  23879. abstract="false" native="false" synchronized="false"
  23880. static="false" final="false" visibility="public"
  23881. deprecated="not deprecated">
  23882. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  23883. <doc>
  23884. <![CDATA[Compares two ShortWritable.]]>
  23885. </doc>
  23886. </method>
  23887. <method name="toString" return="java.lang.String"
  23888. abstract="false" native="false" synchronized="false"
  23889. static="false" final="false" visibility="public"
  23890. deprecated="not deprecated">
  23891. <doc>
  23892. <![CDATA[Short values in string format]]>
  23893. </doc>
  23894. </method>
  23895. <doc>
  23896. <![CDATA[A WritableComparable for shorts.]]>
  23897. </doc>
  23898. </class>
  23899. <!-- end class org.apache.hadoop.io.ShortWritable -->
  23900. <!-- start class org.apache.hadoop.io.ShortWritable.Comparator -->
  23901. <class name="ShortWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  23902. abstract="false"
  23903. static="true" final="false" visibility="public"
  23904. deprecated="not deprecated">
  23905. <constructor name="ShortWritable.Comparator"
  23906. static="false" final="false" visibility="public"
  23907. deprecated="not deprecated">
  23908. </constructor>
  23909. <method name="compare" return="int"
  23910. abstract="false" native="false" synchronized="false"
  23911. static="false" final="false" visibility="public"
  23912. deprecated="not deprecated">
  23913. <param name="b1" type="byte[]"/>
  23914. <param name="s1" type="int"/>
  23915. <param name="l1" type="int"/>
  23916. <param name="b2" type="byte[]"/>
  23917. <param name="s2" type="int"/>
  23918. <param name="l2" type="int"/>
  23919. </method>
  23920. <doc>
  23921. <![CDATA[A Comparator optimized for ShortWritable.]]>
  23922. </doc>
  23923. </class>
  23924. <!-- end class org.apache.hadoop.io.ShortWritable.Comparator -->
  23925. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  23926. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  23927. abstract="false"
  23928. static="false" final="false" visibility="public"
  23929. deprecated="not deprecated">
  23930. <implements name="java.util.SortedMap"/>
  23931. <constructor name="SortedMapWritable"
  23932. static="false" final="false" visibility="public"
  23933. deprecated="not deprecated">
  23934. <doc>
  23935. <![CDATA[default constructor.]]>
  23936. </doc>
  23937. </constructor>
  23938. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  23939. static="false" final="false" visibility="public"
  23940. deprecated="not deprecated">
  23941. <doc>
  23942. <![CDATA[Copy constructor.
  23943. @param other the map to copy from]]>
  23944. </doc>
  23945. </constructor>
  23946. <method name="comparator" return="java.util.Comparator"
  23947. abstract="false" native="false" synchronized="false"
  23948. static="false" final="false" visibility="public"
  23949. deprecated="not deprecated">
  23950. </method>
  23951. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  23952. abstract="false" native="false" synchronized="false"
  23953. static="false" final="false" visibility="public"
  23954. deprecated="not deprecated">
  23955. </method>
  23956. <method name="headMap" return="java.util.SortedMap"
  23957. abstract="false" native="false" synchronized="false"
  23958. static="false" final="false" visibility="public"
  23959. deprecated="not deprecated">
  23960. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  23961. </method>
  23962. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  23963. abstract="false" native="false" synchronized="false"
  23964. static="false" final="false" visibility="public"
  23965. deprecated="not deprecated">
  23966. </method>
  23967. <method name="subMap" return="java.util.SortedMap"
  23968. abstract="false" native="false" synchronized="false"
  23969. static="false" final="false" visibility="public"
  23970. deprecated="not deprecated">
  23971. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  23972. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  23973. </method>
  23974. <method name="tailMap" return="java.util.SortedMap"
  23975. abstract="false" native="false" synchronized="false"
  23976. static="false" final="false" visibility="public"
  23977. deprecated="not deprecated">
  23978. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  23979. </method>
  23980. <method name="clear"
  23981. abstract="false" native="false" synchronized="false"
  23982. static="false" final="false" visibility="public"
  23983. deprecated="not deprecated">
  23984. </method>
  23985. <method name="containsKey" return="boolean"
  23986. abstract="false" native="false" synchronized="false"
  23987. static="false" final="false" visibility="public"
  23988. deprecated="not deprecated">
  23989. <param name="key" type="java.lang.Object"/>
  23990. </method>
  23991. <method name="containsValue" return="boolean"
  23992. abstract="false" native="false" synchronized="false"
  23993. static="false" final="false" visibility="public"
  23994. deprecated="not deprecated">
  23995. <param name="value" type="java.lang.Object"/>
  23996. </method>
  23997. <method name="entrySet" return="java.util.Set"
  23998. abstract="false" native="false" synchronized="false"
  23999. static="false" final="false" visibility="public"
  24000. deprecated="not deprecated">
  24001. </method>
  24002. <method name="get" return="org.apache.hadoop.io.Writable"
  24003. abstract="false" native="false" synchronized="false"
  24004. static="false" final="false" visibility="public"
  24005. deprecated="not deprecated">
  24006. <param name="key" type="java.lang.Object"/>
  24007. </method>
  24008. <method name="isEmpty" return="boolean"
  24009. abstract="false" native="false" synchronized="false"
  24010. static="false" final="false" visibility="public"
  24011. deprecated="not deprecated">
  24012. </method>
  24013. <method name="keySet" return="java.util.Set"
  24014. abstract="false" native="false" synchronized="false"
  24015. static="false" final="false" visibility="public"
  24016. deprecated="not deprecated">
  24017. </method>
  24018. <method name="put" return="org.apache.hadoop.io.Writable"
  24019. abstract="false" native="false" synchronized="false"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  24023. <param name="value" type="org.apache.hadoop.io.Writable"/>
  24024. </method>
  24025. <method name="putAll"
  24026. abstract="false" native="false" synchronized="false"
  24027. static="false" final="false" visibility="public"
  24028. deprecated="not deprecated">
  24029. <param name="t" type="java.util.Map"/>
  24030. </method>
  24031. <method name="remove" return="org.apache.hadoop.io.Writable"
  24032. abstract="false" native="false" synchronized="false"
  24033. static="false" final="false" visibility="public"
  24034. deprecated="not deprecated">
  24035. <param name="key" type="java.lang.Object"/>
  24036. </method>
  24037. <method name="size" return="int"
  24038. abstract="false" native="false" synchronized="false"
  24039. static="false" final="false" visibility="public"
  24040. deprecated="not deprecated">
  24041. </method>
  24042. <method name="values" return="java.util.Collection"
  24043. abstract="false" native="false" synchronized="false"
  24044. static="false" final="false" visibility="public"
  24045. deprecated="not deprecated">
  24046. </method>
  24047. <method name="readFields"
  24048. abstract="false" native="false" synchronized="false"
  24049. static="false" final="false" visibility="public"
  24050. deprecated="not deprecated">
  24051. <param name="in" type="java.io.DataInput"/>
  24052. <exception name="IOException" type="java.io.IOException"/>
  24053. </method>
  24054. <method name="write"
  24055. abstract="false" native="false" synchronized="false"
  24056. static="false" final="false" visibility="public"
  24057. deprecated="not deprecated">
  24058. <param name="out" type="java.io.DataOutput"/>
  24059. <exception name="IOException" type="java.io.IOException"/>
  24060. </method>
  24061. <method name="equals" return="boolean"
  24062. abstract="false" native="false" synchronized="false"
  24063. static="false" final="false" visibility="public"
  24064. deprecated="not deprecated">
  24065. <param name="obj" type="java.lang.Object"/>
  24066. </method>
  24067. <method name="hashCode" return="int"
  24068. abstract="false" native="false" synchronized="false"
  24069. static="false" final="false" visibility="public"
  24070. deprecated="not deprecated">
  24071. </method>
  24072. <doc>
  24073. <![CDATA[A Writable SortedMap.]]>
  24074. </doc>
  24075. </class>
  24076. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  24077. <!-- start interface org.apache.hadoop.io.Stringifier -->
  24078. <interface name="Stringifier" abstract="true"
  24079. static="false" final="false" visibility="public"
  24080. deprecated="not deprecated">
  24081. <implements name="java.io.Closeable"/>
  24082. <method name="toString" return="java.lang.String"
  24083. abstract="false" native="false" synchronized="false"
  24084. static="false" final="false" visibility="public"
  24085. deprecated="not deprecated">
  24086. <param name="obj" type="T"/>
  24087. <exception name="IOException" type="java.io.IOException"/>
  24088. <doc>
  24089. <![CDATA[Converts the object to a string representation
  24090. @param obj the object to convert
  24091. @return the string representation of the object
  24092. @throws IOException if the object cannot be converted]]>
  24093. </doc>
  24094. </method>
  24095. <method name="fromString" return="T"
  24096. abstract="false" native="false" synchronized="false"
  24097. static="false" final="false" visibility="public"
  24098. deprecated="not deprecated">
  24099. <param name="str" type="java.lang.String"/>
  24100. <exception name="IOException" type="java.io.IOException"/>
  24101. <doc>
  24102. <![CDATA[Restores the object from its string representation.
  24103. @param str the string representation of the object
  24104. @return restored object
  24105. @throws IOException if the object cannot be restored]]>
  24106. </doc>
  24107. </method>
  24108. <method name="close"
  24109. abstract="false" native="false" synchronized="false"
  24110. static="false" final="false" visibility="public"
  24111. deprecated="not deprecated">
  24112. <exception name="IOException" type="java.io.IOException"/>
  24113. <doc>
  24114. <![CDATA[Closes this object.
  24115. @throws IOException if an I/O error occurs]]>
  24116. </doc>
  24117. </method>
  24118. <doc>
  24119. <![CDATA[Stringifier interface offers two methods to convert an object
  24120. to a string representation and restore the object given its
  24121. string representation.
  24122. @param <T> the class of the objects to stringify]]>
  24123. </doc>
  24124. </interface>
  24125. <!-- end interface org.apache.hadoop.io.Stringifier -->
  24126. <!-- start class org.apache.hadoop.io.Text -->
  24127. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  24128. abstract="false"
  24129. static="false" final="false" visibility="public"
  24130. deprecated="not deprecated">
  24131. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24132. <constructor name="Text"
  24133. static="false" final="false" visibility="public"
  24134. deprecated="not deprecated">
  24135. </constructor>
  24136. <constructor name="Text" type="java.lang.String"
  24137. static="false" final="false" visibility="public"
  24138. deprecated="not deprecated">
  24139. <doc>
  24140. <![CDATA[Construct from a string.]]>
  24141. </doc>
  24142. </constructor>
  24143. <constructor name="Text" type="org.apache.hadoop.io.Text"
  24144. static="false" final="false" visibility="public"
  24145. deprecated="not deprecated">
  24146. <doc>
  24147. <![CDATA[Construct from another text.]]>
  24148. </doc>
  24149. </constructor>
  24150. <constructor name="Text" type="byte[]"
  24151. static="false" final="false" visibility="public"
  24152. deprecated="not deprecated">
  24153. <doc>
  24154. <![CDATA[Construct from a byte array.]]>
  24155. </doc>
  24156. </constructor>
  24157. <method name="copyBytes" return="byte[]"
  24158. abstract="false" native="false" synchronized="false"
  24159. static="false" final="false" visibility="public"
  24160. deprecated="not deprecated">
  24161. <doc>
  24162. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  24163. See {@link #getBytes()} for faster access to the underlying array.]]>
  24164. </doc>
  24165. </method>
  24166. <method name="getBytes" return="byte[]"
  24167. abstract="false" native="false" synchronized="false"
  24168. static="false" final="false" visibility="public"
  24169. deprecated="not deprecated">
  24170. <doc>
  24171. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  24172. valid. Please use {@link #copyBytes()} if you
  24173. need the returned array to be precisely the length of the data.]]>
  24174. </doc>
  24175. </method>
  24176. <method name="getLength" return="int"
  24177. abstract="false" native="false" synchronized="false"
  24178. static="false" final="false" visibility="public"
  24179. deprecated="not deprecated">
  24180. <doc>
  24181. <![CDATA[Returns the number of bytes in the byte array]]>
  24182. </doc>
  24183. </method>
  24184. <method name="charAt" return="int"
  24185. abstract="false" native="false" synchronized="false"
  24186. static="false" final="false" visibility="public"
  24187. deprecated="not deprecated">
  24188. <param name="position" type="int"/>
  24189. <doc>
  24190. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  24191. for the character at <code>position</code>. Note that this
  24192. method avoids using the converter or doing String instantiation
  24193. @return the Unicode scalar value at position or -1
  24194. if the position is invalid or points to a
  24195. trailing byte]]>
  24196. </doc>
  24197. </method>
  24198. <method name="find" return="int"
  24199. abstract="false" native="false" synchronized="false"
  24200. static="false" final="false" visibility="public"
  24201. deprecated="not deprecated">
  24202. <param name="what" type="java.lang.String"/>
  24203. </method>
  24204. <method name="find" return="int"
  24205. abstract="false" native="false" synchronized="false"
  24206. static="false" final="false" visibility="public"
  24207. deprecated="not deprecated">
  24208. <param name="what" type="java.lang.String"/>
  24209. <param name="start" type="int"/>
  24210. <doc>
  24211. <![CDATA[Finds any occurence of <code>what</code> in the backing
  24212. buffer, starting as position <code>start</code>. The starting
  24213. position is measured in bytes and the return value is in
  24214. terms of byte position in the buffer. The backing buffer is
  24215. not converted to a string for this operation.
  24216. @return byte position of the first occurence of the search
  24217. string in the UTF-8 buffer or -1 if not found]]>
  24218. </doc>
  24219. </method>
  24220. <method name="set"
  24221. abstract="false" native="false" synchronized="false"
  24222. static="false" final="false" visibility="public"
  24223. deprecated="not deprecated">
  24224. <param name="string" type="java.lang.String"/>
  24225. <doc>
  24226. <![CDATA[Set to contain the contents of a string.]]>
  24227. </doc>
  24228. </method>
  24229. <method name="set"
  24230. abstract="false" native="false" synchronized="false"
  24231. static="false" final="false" visibility="public"
  24232. deprecated="not deprecated">
  24233. <param name="utf8" type="byte[]"/>
  24234. <doc>
  24235. <![CDATA[Set to a utf8 byte array]]>
  24236. </doc>
  24237. </method>
  24238. <method name="set"
  24239. abstract="false" native="false" synchronized="false"
  24240. static="false" final="false" visibility="public"
  24241. deprecated="not deprecated">
  24242. <param name="other" type="org.apache.hadoop.io.Text"/>
  24243. <doc>
  24244. <![CDATA[copy a text.]]>
  24245. </doc>
  24246. </method>
  24247. <method name="set"
  24248. abstract="false" native="false" synchronized="false"
  24249. static="false" final="false" visibility="public"
  24250. deprecated="not deprecated">
  24251. <param name="utf8" type="byte[]"/>
  24252. <param name="start" type="int"/>
  24253. <param name="len" type="int"/>
  24254. <doc>
  24255. <![CDATA[Set the Text to range of bytes
  24256. @param utf8 the data to copy from
  24257. @param start the first position of the new string
  24258. @param len the number of bytes of the new string]]>
  24259. </doc>
  24260. </method>
  24261. <method name="append"
  24262. abstract="false" native="false" synchronized="false"
  24263. static="false" final="false" visibility="public"
  24264. deprecated="not deprecated">
  24265. <param name="utf8" type="byte[]"/>
  24266. <param name="start" type="int"/>
  24267. <param name="len" type="int"/>
  24268. <doc>
  24269. <![CDATA[Append a range of bytes to the end of the given text
  24270. @param utf8 the data to copy from
  24271. @param start the first position to append from utf8
  24272. @param len the number of bytes to append]]>
  24273. </doc>
  24274. </method>
  24275. <method name="clear"
  24276. abstract="false" native="false" synchronized="false"
  24277. static="false" final="false" visibility="public"
  24278. deprecated="not deprecated">
  24279. <doc>
  24280. <![CDATA[Clear the string to empty.
  24281. <em>Note</em>: For performance reasons, this call does not clear the
  24282. underlying byte array that is retrievable via {@link #getBytes()}.
  24283. In order to free the byte-array memory, call {@link #set(byte[])}
  24284. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  24285. </doc>
  24286. </method>
  24287. <method name="toString" return="java.lang.String"
  24288. abstract="false" native="false" synchronized="false"
  24289. static="false" final="false" visibility="public"
  24290. deprecated="not deprecated">
  24291. <doc>
  24292. <![CDATA[Convert text back to string
  24293. @see java.lang.Object#toString()]]>
  24294. </doc>
  24295. </method>
  24296. <method name="readFields"
  24297. abstract="false" native="false" synchronized="false"
  24298. static="false" final="false" visibility="public"
  24299. deprecated="not deprecated">
  24300. <param name="in" type="java.io.DataInput"/>
  24301. <exception name="IOException" type="java.io.IOException"/>
  24302. <doc>
  24303. <![CDATA[deserialize]]>
  24304. </doc>
  24305. </method>
  24306. <method name="readFields"
  24307. abstract="false" native="false" synchronized="false"
  24308. static="false" final="false" visibility="public"
  24309. deprecated="not deprecated">
  24310. <param name="in" type="java.io.DataInput"/>
  24311. <param name="maxLength" type="int"/>
  24312. <exception name="IOException" type="java.io.IOException"/>
  24313. </method>
  24314. <method name="skip"
  24315. abstract="false" native="false" synchronized="false"
  24316. static="true" final="false" visibility="public"
  24317. deprecated="not deprecated">
  24318. <param name="in" type="java.io.DataInput"/>
  24319. <exception name="IOException" type="java.io.IOException"/>
  24320. <doc>
  24321. <![CDATA[Skips over one Text in the input.]]>
  24322. </doc>
  24323. </method>
  24324. <method name="readWithKnownLength"
  24325. abstract="false" native="false" synchronized="false"
  24326. static="false" final="false" visibility="public"
  24327. deprecated="not deprecated">
  24328. <param name="in" type="java.io.DataInput"/>
  24329. <param name="len" type="int"/>
  24330. <exception name="IOException" type="java.io.IOException"/>
  24331. <doc>
  24332. <![CDATA[Read a Text object whose length is already known.
  24333. This allows creating Text from a stream which uses a different serialization
  24334. format.]]>
  24335. </doc>
  24336. </method>
  24337. <method name="write"
  24338. abstract="false" native="false" synchronized="false"
  24339. static="false" final="false" visibility="public"
  24340. deprecated="not deprecated">
  24341. <param name="out" type="java.io.DataOutput"/>
  24342. <exception name="IOException" type="java.io.IOException"/>
  24343. <doc>
  24344. <![CDATA[serialize
  24345. write this object to out
  24346. length uses zero-compressed encoding
  24347. @see Writable#write(DataOutput)]]>
  24348. </doc>
  24349. </method>
  24350. <method name="write"
  24351. abstract="false" native="false" synchronized="false"
  24352. static="false" final="false" visibility="public"
  24353. deprecated="not deprecated">
  24354. <param name="out" type="java.io.DataOutput"/>
  24355. <param name="maxLength" type="int"/>
  24356. <exception name="IOException" type="java.io.IOException"/>
  24357. </method>
  24358. <method name="equals" return="boolean"
  24359. abstract="false" native="false" synchronized="false"
  24360. static="false" final="false" visibility="public"
  24361. deprecated="not deprecated">
  24362. <param name="o" type="java.lang.Object"/>
  24363. <doc>
  24364. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  24365. </doc>
  24366. </method>
  24367. <method name="hashCode" return="int"
  24368. abstract="false" native="false" synchronized="false"
  24369. static="false" final="false" visibility="public"
  24370. deprecated="not deprecated">
  24371. </method>
  24372. <method name="decode" return="java.lang.String"
  24373. abstract="false" native="false" synchronized="false"
  24374. static="true" final="false" visibility="public"
  24375. deprecated="not deprecated">
  24376. <param name="utf8" type="byte[]"/>
  24377. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24378. <doc>
  24379. <![CDATA[Converts the provided byte array to a String using the
  24380. UTF-8 encoding. If the input is malformed,
  24381. replace by a default value.]]>
  24382. </doc>
  24383. </method>
  24384. <method name="decode" return="java.lang.String"
  24385. abstract="false" native="false" synchronized="false"
  24386. static="true" final="false" visibility="public"
  24387. deprecated="not deprecated">
  24388. <param name="utf8" type="byte[]"/>
  24389. <param name="start" type="int"/>
  24390. <param name="length" type="int"/>
  24391. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24392. </method>
  24393. <method name="decode" return="java.lang.String"
  24394. abstract="false" native="false" synchronized="false"
  24395. static="true" final="false" visibility="public"
  24396. deprecated="not deprecated">
  24397. <param name="utf8" type="byte[]"/>
  24398. <param name="start" type="int"/>
  24399. <param name="length" type="int"/>
  24400. <param name="replace" type="boolean"/>
  24401. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24402. <doc>
  24403. <![CDATA[Converts the provided byte array to a String using the
  24404. UTF-8 encoding. If <code>replace</code> is true, then
  24405. malformed input is replaced with the
  24406. substitution character, which is U+FFFD. Otherwise the
  24407. method throws a MalformedInputException.]]>
  24408. </doc>
  24409. </method>
  24410. <method name="encode" return="java.nio.ByteBuffer"
  24411. abstract="false" native="false" synchronized="false"
  24412. static="true" final="false" visibility="public"
  24413. deprecated="not deprecated">
  24414. <param name="string" type="java.lang.String"/>
  24415. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24416. <doc>
  24417. <![CDATA[Converts the provided String to bytes using the
  24418. UTF-8 encoding. If the input is malformed,
  24419. invalid chars are replaced by a default value.
  24420. @return ByteBuffer: bytes stores at ByteBuffer.array()
  24421. and length is ByteBuffer.limit()]]>
  24422. </doc>
  24423. </method>
  24424. <method name="encode" return="java.nio.ByteBuffer"
  24425. abstract="false" native="false" synchronized="false"
  24426. static="true" final="false" visibility="public"
  24427. deprecated="not deprecated">
  24428. <param name="string" type="java.lang.String"/>
  24429. <param name="replace" type="boolean"/>
  24430. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  24431. <doc>
  24432. <![CDATA[Converts the provided String to bytes using the
  24433. UTF-8 encoding. If <code>replace</code> is true, then
  24434. malformed input is replaced with the
  24435. substitution character, which is U+FFFD. Otherwise the
  24436. method throws a MalformedInputException.
  24437. @return ByteBuffer: bytes stores at ByteBuffer.array()
  24438. and length is ByteBuffer.limit()]]>
  24439. </doc>
  24440. </method>
  24441. <method name="readString" return="java.lang.String"
  24442. abstract="false" native="false" synchronized="false"
  24443. static="true" final="false" visibility="public"
  24444. deprecated="not deprecated">
  24445. <param name="in" type="java.io.DataInput"/>
  24446. <exception name="IOException" type="java.io.IOException"/>
  24447. <doc>
  24448. <![CDATA[Read a UTF8 encoded string from in]]>
  24449. </doc>
  24450. </method>
  24451. <method name="readString" return="java.lang.String"
  24452. abstract="false" native="false" synchronized="false"
  24453. static="true" final="false" visibility="public"
  24454. deprecated="not deprecated">
  24455. <param name="in" type="java.io.DataInput"/>
  24456. <param name="maxLength" type="int"/>
  24457. <exception name="IOException" type="java.io.IOException"/>
  24458. <doc>
  24459. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  24460. </doc>
  24461. </method>
  24462. <method name="writeString" return="int"
  24463. abstract="false" native="false" synchronized="false"
  24464. static="true" final="false" visibility="public"
  24465. deprecated="not deprecated">
  24466. <param name="out" type="java.io.DataOutput"/>
  24467. <param name="s" type="java.lang.String"/>
  24468. <exception name="IOException" type="java.io.IOException"/>
  24469. <doc>
  24470. <![CDATA[Write a UTF8 encoded string to out]]>
  24471. </doc>
  24472. </method>
  24473. <method name="writeString" return="int"
  24474. abstract="false" native="false" synchronized="false"
  24475. static="true" final="false" visibility="public"
  24476. deprecated="not deprecated">
  24477. <param name="out" type="java.io.DataOutput"/>
  24478. <param name="s" type="java.lang.String"/>
  24479. <param name="maxLength" type="int"/>
  24480. <exception name="IOException" type="java.io.IOException"/>
  24481. <doc>
  24482. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  24483. </doc>
  24484. </method>
  24485. <method name="validateUTF8"
  24486. abstract="false" native="false" synchronized="false"
  24487. static="true" final="false" visibility="public"
  24488. deprecated="not deprecated">
  24489. <param name="utf8" type="byte[]"/>
  24490. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  24491. <doc>
  24492. <![CDATA[Check if a byte array contains valid utf-8
  24493. @param utf8 byte array
  24494. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  24495. </doc>
  24496. </method>
  24497. <method name="validateUTF8"
  24498. abstract="false" native="false" synchronized="false"
  24499. static="true" final="false" visibility="public"
  24500. deprecated="not deprecated">
  24501. <param name="utf8" type="byte[]"/>
  24502. <param name="start" type="int"/>
  24503. <param name="len" type="int"/>
  24504. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  24505. <doc>
  24506. <![CDATA[Check to see if a byte array is valid utf-8
  24507. @param utf8 the array of bytes
  24508. @param start the offset of the first byte in the array
  24509. @param len the length of the byte sequence
  24510. @throws MalformedInputException if the byte array contains invalid bytes]]>
  24511. </doc>
  24512. </method>
  24513. <method name="bytesToCodePoint" return="int"
  24514. abstract="false" native="false" synchronized="false"
  24515. static="true" final="false" visibility="public"
  24516. deprecated="not deprecated">
  24517. <param name="bytes" type="java.nio.ByteBuffer"/>
  24518. <doc>
  24519. <![CDATA[Returns the next code point at the current position in
  24520. the buffer. The buffer's position will be incremented.
  24521. Any mark set on this buffer will be changed by this method!]]>
  24522. </doc>
  24523. </method>
  24524. <method name="utf8Length" return="int"
  24525. abstract="false" native="false" synchronized="false"
  24526. static="true" final="false" visibility="public"
  24527. deprecated="not deprecated">
  24528. <param name="string" type="java.lang.String"/>
  24529. <doc>
  24530. <![CDATA[For the given string, returns the number of UTF-8 bytes
  24531. required to encode the string.
  24532. @param string text to encode
  24533. @return number of UTF-8 bytes required to encode]]>
  24534. </doc>
  24535. </method>
  24536. <field name="DEFAULT_MAX_LEN" type="int"
  24537. transient="false" volatile="false"
  24538. static="true" final="true" visibility="public"
  24539. deprecated="not deprecated">
  24540. </field>
  24541. <doc>
  24542. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  24543. to serialize, deserialize, and compare texts at byte level. The type of
  24544. length is integer and is serialized using zero-compressed format. <p>In
  24545. addition, it provides methods for string traversal without converting the
  24546. byte array to a string. <p>Also includes utilities for
  24547. serializing/deserialing a string, coding/decoding a string, checking if a
  24548. byte array contains valid UTF8 code, calculating the length of an encoded
  24549. string.]]>
  24550. </doc>
  24551. </class>
  24552. <!-- end class org.apache.hadoop.io.Text -->
  24553. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  24554. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  24555. abstract="false"
  24556. static="true" final="false" visibility="public"
  24557. deprecated="not deprecated">
  24558. <constructor name="Text.Comparator"
  24559. static="false" final="false" visibility="public"
  24560. deprecated="not deprecated">
  24561. </constructor>
  24562. <method name="compare" return="int"
  24563. abstract="false" native="false" synchronized="false"
  24564. static="false" final="false" visibility="public"
  24565. deprecated="not deprecated">
  24566. <param name="b1" type="byte[]"/>
  24567. <param name="s1" type="int"/>
  24568. <param name="l1" type="int"/>
  24569. <param name="b2" type="byte[]"/>
  24570. <param name="s2" type="int"/>
  24571. <param name="l2" type="int"/>
  24572. </method>
  24573. <doc>
  24574. <![CDATA[A WritableComparator optimized for Text keys.]]>
  24575. </doc>
  24576. </class>
  24577. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  24578. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  24579. <class name="TwoDArrayWritable" extends="java.lang.Object"
  24580. abstract="false"
  24581. static="false" final="false" visibility="public"
  24582. deprecated="not deprecated">
  24583. <implements name="org.apache.hadoop.io.Writable"/>
  24584. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  24585. static="false" final="false" visibility="public"
  24586. deprecated="not deprecated">
  24587. </constructor>
  24588. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  24589. static="false" final="false" visibility="public"
  24590. deprecated="not deprecated">
  24591. </constructor>
  24592. <method name="toArray" return="java.lang.Object"
  24593. abstract="false" native="false" synchronized="false"
  24594. static="false" final="false" visibility="public"
  24595. deprecated="not deprecated">
  24596. </method>
  24597. <method name="set"
  24598. abstract="false" native="false" synchronized="false"
  24599. static="false" final="false" visibility="public"
  24600. deprecated="not deprecated">
  24601. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  24602. </method>
  24603. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  24604. abstract="false" native="false" synchronized="false"
  24605. static="false" final="false" visibility="public"
  24606. deprecated="not deprecated">
  24607. </method>
  24608. <method name="readFields"
  24609. abstract="false" native="false" synchronized="false"
  24610. static="false" final="false" visibility="public"
  24611. deprecated="not deprecated">
  24612. <param name="in" type="java.io.DataInput"/>
  24613. <exception name="IOException" type="java.io.IOException"/>
  24614. </method>
  24615. <method name="write"
  24616. abstract="false" native="false" synchronized="false"
  24617. static="false" final="false" visibility="public"
  24618. deprecated="not deprecated">
  24619. <param name="out" type="java.io.DataOutput"/>
  24620. <exception name="IOException" type="java.io.IOException"/>
  24621. </method>
  24622. <doc>
  24623. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  24624. </doc>
  24625. </class>
  24626. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  24627. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  24628. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  24629. abstract="false"
  24630. static="true" final="false" visibility="public"
  24631. deprecated="not deprecated">
  24632. <constructor name="UTF8.Comparator"
  24633. static="false" final="false" visibility="public"
  24634. deprecated="not deprecated">
  24635. </constructor>
  24636. <method name="compare" return="int"
  24637. abstract="false" native="false" synchronized="false"
  24638. static="false" final="false" visibility="public"
  24639. deprecated="not deprecated">
  24640. <param name="b1" type="byte[]"/>
  24641. <param name="s1" type="int"/>
  24642. <param name="l1" type="int"/>
  24643. <param name="b2" type="byte[]"/>
  24644. <param name="s2" type="int"/>
  24645. <param name="l2" type="int"/>
  24646. </method>
  24647. <doc>
  24648. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  24649. </doc>
  24650. </class>
  24651. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  24652. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  24653. <class name="VersionedWritable" extends="java.lang.Object"
  24654. abstract="true"
  24655. static="false" final="false" visibility="public"
  24656. deprecated="not deprecated">
  24657. <implements name="org.apache.hadoop.io.Writable"/>
  24658. <constructor name="VersionedWritable"
  24659. static="false" final="false" visibility="public"
  24660. deprecated="not deprecated">
  24661. </constructor>
  24662. <method name="getVersion" return="byte"
  24663. abstract="true" native="false" synchronized="false"
  24664. static="false" final="false" visibility="public"
  24665. deprecated="not deprecated">
  24666. <doc>
  24667. <![CDATA[Return the version number of the current implementation.]]>
  24668. </doc>
  24669. </method>
  24670. <method name="write"
  24671. abstract="false" native="false" synchronized="false"
  24672. static="false" final="false" visibility="public"
  24673. deprecated="not deprecated">
  24674. <param name="out" type="java.io.DataOutput"/>
  24675. <exception name="IOException" type="java.io.IOException"/>
  24676. </method>
  24677. <method name="readFields"
  24678. abstract="false" native="false" synchronized="false"
  24679. static="false" final="false" visibility="public"
  24680. deprecated="not deprecated">
  24681. <param name="in" type="java.io.DataInput"/>
  24682. <exception name="IOException" type="java.io.IOException"/>
  24683. </method>
  24684. <doc>
  24685. <![CDATA[A base class for Writables that provides version checking.
  24686. <p>This is useful when a class may evolve, so that instances written by the
  24687. old version of the class may still be processed by the new version. To
  24688. handle this situation, {@link #readFields(DataInput)}
  24689. implementations should catch {@link VersionMismatchException}.]]>
  24690. </doc>
  24691. </class>
  24692. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  24693. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  24694. <class name="VersionMismatchException" extends="java.io.IOException"
  24695. abstract="false"
  24696. static="false" final="false" visibility="public"
  24697. deprecated="not deprecated">
  24698. <constructor name="VersionMismatchException" type="byte, byte"
  24699. static="false" final="false" visibility="public"
  24700. deprecated="not deprecated">
  24701. </constructor>
  24702. <method name="toString" return="java.lang.String"
  24703. abstract="false" native="false" synchronized="false"
  24704. static="false" final="false" visibility="public"
  24705. deprecated="not deprecated">
  24706. <doc>
  24707. <![CDATA[Returns a string representation of this object.]]>
  24708. </doc>
  24709. </method>
  24710. <doc>
  24711. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  24712. version of an object being read does not match the current implementation
  24713. version as returned by {@link VersionedWritable#getVersion()}.]]>
  24714. </doc>
  24715. </class>
  24716. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  24717. <!-- start class org.apache.hadoop.io.VIntWritable -->
  24718. <class name="VIntWritable" extends="java.lang.Object"
  24719. abstract="false"
  24720. static="false" final="false" visibility="public"
  24721. deprecated="not deprecated">
  24722. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24723. <constructor name="VIntWritable"
  24724. static="false" final="false" visibility="public"
  24725. deprecated="not deprecated">
  24726. </constructor>
  24727. <constructor name="VIntWritable" type="int"
  24728. static="false" final="false" visibility="public"
  24729. deprecated="not deprecated">
  24730. </constructor>
  24731. <method name="set"
  24732. abstract="false" native="false" synchronized="false"
  24733. static="false" final="false" visibility="public"
  24734. deprecated="not deprecated">
  24735. <param name="value" type="int"/>
  24736. <doc>
  24737. <![CDATA[Set the value of this VIntWritable.]]>
  24738. </doc>
  24739. </method>
  24740. <method name="get" return="int"
  24741. abstract="false" native="false" synchronized="false"
  24742. static="false" final="false" visibility="public"
  24743. deprecated="not deprecated">
  24744. <doc>
  24745. <![CDATA[Return the value of this VIntWritable.]]>
  24746. </doc>
  24747. </method>
  24748. <method name="readFields"
  24749. abstract="false" native="false" synchronized="false"
  24750. static="false" final="false" visibility="public"
  24751. deprecated="not deprecated">
  24752. <param name="in" type="java.io.DataInput"/>
  24753. <exception name="IOException" type="java.io.IOException"/>
  24754. </method>
  24755. <method name="write"
  24756. abstract="false" native="false" synchronized="false"
  24757. static="false" final="false" visibility="public"
  24758. deprecated="not deprecated">
  24759. <param name="out" type="java.io.DataOutput"/>
  24760. <exception name="IOException" type="java.io.IOException"/>
  24761. </method>
  24762. <method name="equals" return="boolean"
  24763. abstract="false" native="false" synchronized="false"
  24764. static="false" final="false" visibility="public"
  24765. deprecated="not deprecated">
  24766. <param name="o" type="java.lang.Object"/>
  24767. <doc>
  24768. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  24769. </doc>
  24770. </method>
  24771. <method name="hashCode" return="int"
  24772. abstract="false" native="false" synchronized="false"
  24773. static="false" final="false" visibility="public"
  24774. deprecated="not deprecated">
  24775. </method>
  24776. <method name="compareTo" return="int"
  24777. abstract="false" native="false" synchronized="false"
  24778. static="false" final="false" visibility="public"
  24779. deprecated="not deprecated">
  24780. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  24781. <doc>
  24782. <![CDATA[Compares two VIntWritables.]]>
  24783. </doc>
  24784. </method>
  24785. <method name="toString" return="java.lang.String"
  24786. abstract="false" native="false" synchronized="false"
  24787. static="false" final="false" visibility="public"
  24788. deprecated="not deprecated">
  24789. </method>
  24790. <doc>
  24791. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  24792. Such values take between one and five bytes. Smaller values take fewer bytes.
  24793. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  24794. </doc>
  24795. </class>
  24796. <!-- end class org.apache.hadoop.io.VIntWritable -->
  24797. <!-- start class org.apache.hadoop.io.VLongWritable -->
  24798. <class name="VLongWritable" extends="java.lang.Object"
  24799. abstract="false"
  24800. static="false" final="false" visibility="public"
  24801. deprecated="not deprecated">
  24802. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24803. <constructor name="VLongWritable"
  24804. static="false" final="false" visibility="public"
  24805. deprecated="not deprecated">
  24806. </constructor>
  24807. <constructor name="VLongWritable" type="long"
  24808. static="false" final="false" visibility="public"
  24809. deprecated="not deprecated">
  24810. </constructor>
  24811. <method name="set"
  24812. abstract="false" native="false" synchronized="false"
  24813. static="false" final="false" visibility="public"
  24814. deprecated="not deprecated">
  24815. <param name="value" type="long"/>
  24816. <doc>
  24817. <![CDATA[Set the value of this LongWritable.]]>
  24818. </doc>
  24819. </method>
  24820. <method name="get" return="long"
  24821. abstract="false" native="false" synchronized="false"
  24822. static="false" final="false" visibility="public"
  24823. deprecated="not deprecated">
  24824. <doc>
  24825. <![CDATA[Return the value of this LongWritable.]]>
  24826. </doc>
  24827. </method>
  24828. <method name="readFields"
  24829. abstract="false" native="false" synchronized="false"
  24830. static="false" final="false" visibility="public"
  24831. deprecated="not deprecated">
  24832. <param name="in" type="java.io.DataInput"/>
  24833. <exception name="IOException" type="java.io.IOException"/>
  24834. </method>
  24835. <method name="write"
  24836. abstract="false" native="false" synchronized="false"
  24837. static="false" final="false" visibility="public"
  24838. deprecated="not deprecated">
  24839. <param name="out" type="java.io.DataOutput"/>
  24840. <exception name="IOException" type="java.io.IOException"/>
  24841. </method>
  24842. <method name="equals" return="boolean"
  24843. abstract="false" native="false" synchronized="false"
  24844. static="false" final="false" visibility="public"
  24845. deprecated="not deprecated">
  24846. <param name="o" type="java.lang.Object"/>
  24847. <doc>
  24848. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  24849. </doc>
  24850. </method>
  24851. <method name="hashCode" return="int"
  24852. abstract="false" native="false" synchronized="false"
  24853. static="false" final="false" visibility="public"
  24854. deprecated="not deprecated">
  24855. </method>
  24856. <method name="compareTo" return="int"
  24857. abstract="false" native="false" synchronized="false"
  24858. static="false" final="false" visibility="public"
  24859. deprecated="not deprecated">
  24860. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  24861. <doc>
  24862. <![CDATA[Compares two VLongWritables.]]>
  24863. </doc>
  24864. </method>
  24865. <method name="toString" return="java.lang.String"
  24866. abstract="false" native="false" synchronized="false"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. </method>
  24870. <doc>
  24871. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  24872. between one and five bytes. Smaller values take fewer bytes.
  24873. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  24874. </doc>
  24875. </class>
  24876. <!-- end class org.apache.hadoop.io.VLongWritable -->
  24877. <!-- start interface org.apache.hadoop.io.Writable -->
  24878. <interface name="Writable" abstract="true"
  24879. static="false" final="false" visibility="public"
  24880. deprecated="not deprecated">
  24881. <method name="write"
  24882. abstract="false" native="false" synchronized="false"
  24883. static="false" final="false" visibility="public"
  24884. deprecated="not deprecated">
  24885. <param name="out" type="java.io.DataOutput"/>
  24886. <exception name="IOException" type="java.io.IOException"/>
  24887. <doc>
  24888. <![CDATA[Serialize the fields of this object to <code>out</code>.
  24889. @param out <code>DataOuput</code> to serialize this object into.
  24890. @throws IOException]]>
  24891. </doc>
  24892. </method>
  24893. <method name="readFields"
  24894. abstract="false" native="false" synchronized="false"
  24895. static="false" final="false" visibility="public"
  24896. deprecated="not deprecated">
  24897. <param name="in" type="java.io.DataInput"/>
  24898. <exception name="IOException" type="java.io.IOException"/>
  24899. <doc>
  24900. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  24901. <p>For efficiency, implementations should attempt to re-use storage in the
  24902. existing object where possible.</p>
  24903. @param in <code>DataInput</code> to deseriablize this object from.
  24904. @throws IOException]]>
  24905. </doc>
  24906. </method>
  24907. <doc>
  24908. <![CDATA[A serializable object which implements a simple, efficient, serialization
  24909. protocol, based on {@link DataInput} and {@link DataOutput}.
  24910. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  24911. framework implements this interface.</p>
  24912. <p>Implementations typically implement a static <code>read(DataInput)</code>
  24913. method which constructs a new instance, calls {@link #readFields(DataInput)}
  24914. and returns the instance.</p>
  24915. <p>Example:</p>
  24916. <p><blockquote><pre>
  24917. public class MyWritable implements Writable {
  24918. // Some data
  24919. private int counter;
  24920. private long timestamp;
  24921. public void write(DataOutput out) throws IOException {
  24922. out.writeInt(counter);
  24923. out.writeLong(timestamp);
  24924. }
  24925. public void readFields(DataInput in) throws IOException {
  24926. counter = in.readInt();
  24927. timestamp = in.readLong();
  24928. }
  24929. public static MyWritable read(DataInput in) throws IOException {
  24930. MyWritable w = new MyWritable();
  24931. w.readFields(in);
  24932. return w;
  24933. }
  24934. }
  24935. </pre></blockquote></p>]]>
  24936. </doc>
  24937. </interface>
  24938. <!-- end interface org.apache.hadoop.io.Writable -->
  24939. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  24940. <interface name="WritableComparable" abstract="true"
  24941. static="false" final="false" visibility="public"
  24942. deprecated="not deprecated">
  24943. <implements name="org.apache.hadoop.io.Writable"/>
  24944. <implements name="java.lang.Comparable"/>
  24945. <doc>
  24946. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  24947. <p><code>WritableComparable</code>s can be compared to each other, typically
  24948. via <code>Comparator</code>s. Any type which is to be used as a
  24949. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  24950. interface.</p>
  24951. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  24952. keys. It's important that your implementation of hashCode() returns the same
  24953. result across different instances of the JVM. Note also that the default
  24954. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  24955. satisfy this property.</p>
  24956. <p>Example:</p>
  24957. <p><blockquote><pre>
  24958. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  24959. // Some data
  24960. private int counter;
  24961. private long timestamp;
  24962. public void write(DataOutput out) throws IOException {
  24963. out.writeInt(counter);
  24964. out.writeLong(timestamp);
  24965. }
  24966. public void readFields(DataInput in) throws IOException {
  24967. counter = in.readInt();
  24968. timestamp = in.readLong();
  24969. }
  24970. public int compareTo(MyWritableComparable o) {
  24971. int thisValue = this.value;
  24972. int thatValue = o.value;
  24973. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  24974. }
  24975. public int hashCode() {
  24976. final int prime = 31;
  24977. int result = 1;
  24978. result = prime * result + counter;
  24979. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  24980. return result
  24981. }
  24982. }
  24983. </pre></blockquote></p>]]>
  24984. </doc>
  24985. </interface>
  24986. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  24987. <!-- start class org.apache.hadoop.io.WritableComparator -->
  24988. <class name="WritableComparator" extends="java.lang.Object"
  24989. abstract="false"
  24990. static="false" final="false" visibility="public"
  24991. deprecated="not deprecated">
  24992. <implements name="org.apache.hadoop.io.RawComparator"/>
  24993. <implements name="org.apache.hadoop.conf.Configurable"/>
  24994. <constructor name="WritableComparator"
  24995. static="false" final="false" visibility="protected"
  24996. deprecated="not deprecated">
  24997. </constructor>
  24998. <constructor name="WritableComparator" type="java.lang.Class"
  24999. static="false" final="false" visibility="protected"
  25000. deprecated="not deprecated">
  25001. <doc>
  25002. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  25003. </doc>
  25004. </constructor>
  25005. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  25006. static="false" final="false" visibility="protected"
  25007. deprecated="not deprecated">
  25008. </constructor>
  25009. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  25010. static="false" final="false" visibility="protected"
  25011. deprecated="not deprecated">
  25012. </constructor>
  25013. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  25014. abstract="false" native="false" synchronized="false"
  25015. static="true" final="false" visibility="public"
  25016. deprecated="not deprecated">
  25017. <param name="c" type="java.lang.Class"/>
  25018. <doc>
  25019. <![CDATA[For backwards compatibility.]]>
  25020. </doc>
  25021. </method>
  25022. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  25023. abstract="false" native="false" synchronized="false"
  25024. static="true" final="false" visibility="public"
  25025. deprecated="not deprecated">
  25026. <param name="c" type="java.lang.Class"/>
  25027. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25028. <doc>
  25029. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  25030. </doc>
  25031. </method>
  25032. <method name="setConf"
  25033. abstract="false" native="false" synchronized="false"
  25034. static="false" final="false" visibility="public"
  25035. deprecated="not deprecated">
  25036. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25037. </method>
  25038. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25039. abstract="false" native="false" synchronized="false"
  25040. static="false" final="false" visibility="public"
  25041. deprecated="not deprecated">
  25042. </method>
  25043. <method name="define"
  25044. abstract="false" native="false" synchronized="false"
  25045. static="true" final="false" visibility="public"
  25046. deprecated="not deprecated">
  25047. <param name="c" type="java.lang.Class"/>
  25048. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  25049. <doc>
  25050. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  25051. implementation. Comparators registered with this method must be
  25052. thread-safe.]]>
  25053. </doc>
  25054. </method>
  25055. <method name="getKeyClass" return="java.lang.Class"
  25056. abstract="false" native="false" synchronized="false"
  25057. static="false" final="false" visibility="public"
  25058. deprecated="not deprecated">
  25059. <doc>
  25060. <![CDATA[Returns the WritableComparable implementation class.]]>
  25061. </doc>
  25062. </method>
  25063. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  25064. abstract="false" native="false" synchronized="false"
  25065. static="false" final="false" visibility="public"
  25066. deprecated="not deprecated">
  25067. <doc>
  25068. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  25069. </doc>
  25070. </method>
  25071. <method name="compare" return="int"
  25072. abstract="false" native="false" synchronized="false"
  25073. static="false" final="false" visibility="public"
  25074. deprecated="not deprecated">
  25075. <param name="b1" type="byte[]"/>
  25076. <param name="s1" type="int"/>
  25077. <param name="l1" type="int"/>
  25078. <param name="b2" type="byte[]"/>
  25079. <param name="s2" type="int"/>
  25080. <param name="l2" type="int"/>
  25081. <doc>
  25082. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  25083. <p>The default implementation reads the data into two {@link
  25084. WritableComparable}s (using {@link
  25085. Writable#readFields(DataInput)}, then calls {@link
  25086. #compare(WritableComparable,WritableComparable)}.]]>
  25087. </doc>
  25088. </method>
  25089. <method name="compare" return="int"
  25090. abstract="false" native="false" synchronized="false"
  25091. static="false" final="false" visibility="public"
  25092. deprecated="not deprecated">
  25093. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  25094. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  25095. <doc>
  25096. <![CDATA[Compare two WritableComparables.
  25097. <p> The default implementation uses the natural ordering, calling {@link
  25098. Comparable#compareTo(Object)}.]]>
  25099. </doc>
  25100. </method>
  25101. <method name="compare" return="int"
  25102. abstract="false" native="false" synchronized="false"
  25103. static="false" final="false" visibility="public"
  25104. deprecated="not deprecated">
  25105. <param name="a" type="java.lang.Object"/>
  25106. <param name="b" type="java.lang.Object"/>
  25107. </method>
  25108. <method name="compareBytes" return="int"
  25109. abstract="false" native="false" synchronized="false"
  25110. static="true" final="false" visibility="public"
  25111. deprecated="not deprecated">
  25112. <param name="b1" type="byte[]"/>
  25113. <param name="s1" type="int"/>
  25114. <param name="l1" type="int"/>
  25115. <param name="b2" type="byte[]"/>
  25116. <param name="s2" type="int"/>
  25117. <param name="l2" type="int"/>
  25118. <doc>
  25119. <![CDATA[Lexicographic order of binary data.]]>
  25120. </doc>
  25121. </method>
  25122. <method name="hashBytes" return="int"
  25123. abstract="false" native="false" synchronized="false"
  25124. static="true" final="false" visibility="public"
  25125. deprecated="not deprecated">
  25126. <param name="bytes" type="byte[]"/>
  25127. <param name="offset" type="int"/>
  25128. <param name="length" type="int"/>
  25129. <doc>
  25130. <![CDATA[Compute hash for binary data.]]>
  25131. </doc>
  25132. </method>
  25133. <method name="hashBytes" return="int"
  25134. abstract="false" native="false" synchronized="false"
  25135. static="true" final="false" visibility="public"
  25136. deprecated="not deprecated">
  25137. <param name="bytes" type="byte[]"/>
  25138. <param name="length" type="int"/>
  25139. <doc>
  25140. <![CDATA[Compute hash for binary data.]]>
  25141. </doc>
  25142. </method>
  25143. <method name="readUnsignedShort" return="int"
  25144. abstract="false" native="false" synchronized="false"
  25145. static="true" final="false" visibility="public"
  25146. deprecated="not deprecated">
  25147. <param name="bytes" type="byte[]"/>
  25148. <param name="start" type="int"/>
  25149. <doc>
  25150. <![CDATA[Parse an unsigned short from a byte array.]]>
  25151. </doc>
  25152. </method>
  25153. <method name="readInt" return="int"
  25154. abstract="false" native="false" synchronized="false"
  25155. static="true" final="false" visibility="public"
  25156. deprecated="not deprecated">
  25157. <param name="bytes" type="byte[]"/>
  25158. <param name="start" type="int"/>
  25159. <doc>
  25160. <![CDATA[Parse an integer from a byte array.]]>
  25161. </doc>
  25162. </method>
  25163. <method name="readFloat" return="float"
  25164. abstract="false" native="false" synchronized="false"
  25165. static="true" final="false" visibility="public"
  25166. deprecated="not deprecated">
  25167. <param name="bytes" type="byte[]"/>
  25168. <param name="start" type="int"/>
  25169. <doc>
  25170. <![CDATA[Parse a float from a byte array.]]>
  25171. </doc>
  25172. </method>
  25173. <method name="readLong" return="long"
  25174. abstract="false" native="false" synchronized="false"
  25175. static="true" final="false" visibility="public"
  25176. deprecated="not deprecated">
  25177. <param name="bytes" type="byte[]"/>
  25178. <param name="start" type="int"/>
  25179. <doc>
  25180. <![CDATA[Parse a long from a byte array.]]>
  25181. </doc>
  25182. </method>
  25183. <method name="readDouble" return="double"
  25184. abstract="false" native="false" synchronized="false"
  25185. static="true" final="false" visibility="public"
  25186. deprecated="not deprecated">
  25187. <param name="bytes" type="byte[]"/>
  25188. <param name="start" type="int"/>
  25189. <doc>
  25190. <![CDATA[Parse a double from a byte array.]]>
  25191. </doc>
  25192. </method>
  25193. <method name="readVLong" return="long"
  25194. abstract="false" native="false" synchronized="false"
  25195. static="true" final="false" visibility="public"
  25196. deprecated="not deprecated">
  25197. <param name="bytes" type="byte[]"/>
  25198. <param name="start" type="int"/>
  25199. <exception name="IOException" type="java.io.IOException"/>
  25200. <doc>
  25201. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  25202. @param bytes byte array with decode long
  25203. @param start starting index
  25204. @throws java.io.IOException
  25205. @return deserialized long]]>
  25206. </doc>
  25207. </method>
  25208. <method name="readVInt" return="int"
  25209. abstract="false" native="false" synchronized="false"
  25210. static="true" final="false" visibility="public"
  25211. deprecated="not deprecated">
  25212. <param name="bytes" type="byte[]"/>
  25213. <param name="start" type="int"/>
  25214. <exception name="IOException" type="java.io.IOException"/>
  25215. <doc>
  25216. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  25217. @param bytes byte array with the encoded integer
  25218. @param start start index
  25219. @throws java.io.IOException
  25220. @return deserialized integer]]>
  25221. </doc>
  25222. </method>
  25223. <doc>
  25224. <![CDATA[A Comparator for {@link WritableComparable}s.
  25225. <p>This base implemenation uses the natural ordering. To define alternate
  25226. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  25227. <p>One may optimize compare-intensive operations by overriding
  25228. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  25229. provided to assist in optimized implementations of this method.]]>
  25230. </doc>
  25231. </class>
  25232. <!-- end class org.apache.hadoop.io.WritableComparator -->
  25233. <!-- start class org.apache.hadoop.io.WritableFactories -->
  25234. <class name="WritableFactories" extends="java.lang.Object"
  25235. abstract="false"
  25236. static="false" final="false" visibility="public"
  25237. deprecated="not deprecated">
  25238. <method name="setFactory"
  25239. abstract="false" native="false" synchronized="false"
  25240. static="true" final="false" visibility="public"
  25241. deprecated="not deprecated">
  25242. <param name="c" type="java.lang.Class"/>
  25243. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  25244. <doc>
  25245. <![CDATA[Define a factory for a class.]]>
  25246. </doc>
  25247. </method>
  25248. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  25249. abstract="false" native="false" synchronized="false"
  25250. static="true" final="false" visibility="public"
  25251. deprecated="not deprecated">
  25252. <param name="c" type="java.lang.Class"/>
  25253. <doc>
  25254. <![CDATA[Define a factory for a class.]]>
  25255. </doc>
  25256. </method>
  25257. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25258. abstract="false" native="false" synchronized="false"
  25259. static="true" final="false" visibility="public"
  25260. deprecated="not deprecated">
  25261. <param name="c" type="java.lang.Class"/>
  25262. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25263. <doc>
  25264. <![CDATA[Create a new instance of a class with a defined factory.]]>
  25265. </doc>
  25266. </method>
  25267. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25268. abstract="false" native="false" synchronized="false"
  25269. static="true" final="false" visibility="public"
  25270. deprecated="not deprecated">
  25271. <param name="c" type="java.lang.Class"/>
  25272. <doc>
  25273. <![CDATA[Create a new instance of a class with a defined factory.]]>
  25274. </doc>
  25275. </method>
  25276. <doc>
  25277. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  25278. ObjectWritable} to be able to construct instances of non-public classes.]]>
  25279. </doc>
  25280. </class>
  25281. <!-- end class org.apache.hadoop.io.WritableFactories -->
  25282. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  25283. <interface name="WritableFactory" abstract="true"
  25284. static="false" final="false" visibility="public"
  25285. deprecated="not deprecated">
  25286. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  25287. abstract="false" native="false" synchronized="false"
  25288. static="false" final="false" visibility="public"
  25289. deprecated="not deprecated">
  25290. <doc>
  25291. <![CDATA[Return a new instance.]]>
  25292. </doc>
  25293. </method>
  25294. <doc>
  25295. <![CDATA[A factory for a class of Writable.
  25296. @see WritableFactories]]>
  25297. </doc>
  25298. </interface>
  25299. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  25300. <!-- start class org.apache.hadoop.io.WritableUtils -->
  25301. <class name="WritableUtils" extends="java.lang.Object"
  25302. abstract="false"
  25303. static="false" final="true" visibility="public"
  25304. deprecated="not deprecated">
  25305. <constructor name="WritableUtils"
  25306. static="false" final="false" visibility="public"
  25307. deprecated="not deprecated">
  25308. </constructor>
  25309. <method name="readCompressedByteArray" return="byte[]"
  25310. abstract="false" native="false" synchronized="false"
  25311. static="true" final="false" visibility="public"
  25312. deprecated="not deprecated">
  25313. <param name="in" type="java.io.DataInput"/>
  25314. <exception name="IOException" type="java.io.IOException"/>
  25315. </method>
  25316. <method name="skipCompressedByteArray"
  25317. abstract="false" native="false" synchronized="false"
  25318. static="true" final="false" visibility="public"
  25319. deprecated="not deprecated">
  25320. <param name="in" type="java.io.DataInput"/>
  25321. <exception name="IOException" type="java.io.IOException"/>
  25322. </method>
  25323. <method name="writeCompressedByteArray" return="int"
  25324. abstract="false" native="false" synchronized="false"
  25325. static="true" final="false" visibility="public"
  25326. deprecated="not deprecated">
  25327. <param name="out" type="java.io.DataOutput"/>
  25328. <param name="bytes" type="byte[]"/>
  25329. <exception name="IOException" type="java.io.IOException"/>
  25330. </method>
  25331. <method name="readCompressedString" return="java.lang.String"
  25332. abstract="false" native="false" synchronized="false"
  25333. static="true" final="false" visibility="public"
  25334. deprecated="not deprecated">
  25335. <param name="in" type="java.io.DataInput"/>
  25336. <exception name="IOException" type="java.io.IOException"/>
  25337. </method>
  25338. <method name="writeCompressedString" return="int"
  25339. abstract="false" native="false" synchronized="false"
  25340. static="true" final="false" visibility="public"
  25341. deprecated="not deprecated">
  25342. <param name="out" type="java.io.DataOutput"/>
  25343. <param name="s" type="java.lang.String"/>
  25344. <exception name="IOException" type="java.io.IOException"/>
  25345. </method>
  25346. <method name="writeString"
  25347. abstract="false" native="false" synchronized="false"
  25348. static="true" final="false" visibility="public"
  25349. deprecated="not deprecated">
  25350. <param name="out" type="java.io.DataOutput"/>
  25351. <param name="s" type="java.lang.String"/>
  25352. <exception name="IOException" type="java.io.IOException"/>
  25353. </method>
  25354. <method name="readString" return="java.lang.String"
  25355. abstract="false" native="false" synchronized="false"
  25356. static="true" final="false" visibility="public"
  25357. deprecated="not deprecated">
  25358. <param name="in" type="java.io.DataInput"/>
  25359. <exception name="IOException" type="java.io.IOException"/>
  25360. </method>
  25361. <method name="writeStringArray"
  25362. abstract="false" native="false" synchronized="false"
  25363. static="true" final="false" visibility="public"
  25364. deprecated="not deprecated">
  25365. <param name="out" type="java.io.DataOutput"/>
  25366. <param name="s" type="java.lang.String[]"/>
  25367. <exception name="IOException" type="java.io.IOException"/>
  25368. </method>
  25369. <method name="writeCompressedStringArray"
  25370. abstract="false" native="false" synchronized="false"
  25371. static="true" final="false" visibility="public"
  25372. deprecated="not deprecated">
  25373. <param name="out" type="java.io.DataOutput"/>
  25374. <param name="s" type="java.lang.String[]"/>
  25375. <exception name="IOException" type="java.io.IOException"/>
  25376. </method>
  25377. <method name="readStringArray" return="java.lang.String[]"
  25378. abstract="false" native="false" synchronized="false"
  25379. static="true" final="false" visibility="public"
  25380. deprecated="not deprecated">
  25381. <param name="in" type="java.io.DataInput"/>
  25382. <exception name="IOException" type="java.io.IOException"/>
  25383. </method>
  25384. <method name="readCompressedStringArray" return="java.lang.String[]"
  25385. abstract="false" native="false" synchronized="false"
  25386. static="true" final="false" visibility="public"
  25387. deprecated="not deprecated">
  25388. <param name="in" type="java.io.DataInput"/>
  25389. <exception name="IOException" type="java.io.IOException"/>
  25390. </method>
  25391. <method name="displayByteArray"
  25392. abstract="false" native="false" synchronized="false"
  25393. static="true" final="false" visibility="public"
  25394. deprecated="not deprecated">
  25395. <param name="record" type="byte[]"/>
  25396. </method>
  25397. <method name="clone" return="T"
  25398. abstract="false" native="false" synchronized="false"
  25399. static="true" final="false" visibility="public"
  25400. deprecated="not deprecated">
  25401. <param name="orig" type="T"/>
  25402. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25403. <doc>
  25404. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  25405. @param orig The object to copy
  25406. @return The copied object]]>
  25407. </doc>
  25408. </method>
  25409. <method name="cloneInto"
  25410. abstract="false" native="false" synchronized="false"
  25411. static="true" final="false" visibility="public"
  25412. deprecated="use ReflectionUtils.cloneInto instead.">
  25413. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  25414. <param name="src" type="org.apache.hadoop.io.Writable"/>
  25415. <exception name="IOException" type="java.io.IOException"/>
  25416. <doc>
  25417. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  25418. @param dst the object to copy from
  25419. @param src the object to copy into, which is destroyed
  25420. @throws IOException
  25421. @deprecated use ReflectionUtils.cloneInto instead.]]>
  25422. </doc>
  25423. </method>
  25424. <method name="writeVInt"
  25425. abstract="false" native="false" synchronized="false"
  25426. static="true" final="false" visibility="public"
  25427. deprecated="not deprecated">
  25428. <param name="stream" type="java.io.DataOutput"/>
  25429. <param name="i" type="int"/>
  25430. <exception name="IOException" type="java.io.IOException"/>
  25431. <doc>
  25432. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  25433. For -120 <= i <= 127, only one byte is used with the actual value.
  25434. For other values of i, the first byte value indicates whether the
  25435. integer is positive or negative, and the number of bytes that follow.
  25436. If the first byte value v is between -121 and -124, the following integer
  25437. is positive, with number of bytes that follow are -(v+120).
  25438. If the first byte value v is between -125 and -128, the following integer
  25439. is negative, with number of bytes that follow are -(v+124). Bytes are
  25440. stored in the high-non-zero-byte-first order.
  25441. @param stream Binary output stream
  25442. @param i Integer to be serialized
  25443. @throws java.io.IOException]]>
  25444. </doc>
  25445. </method>
  25446. <method name="writeVLong"
  25447. abstract="false" native="false" synchronized="false"
  25448. static="true" final="false" visibility="public"
  25449. deprecated="not deprecated">
  25450. <param name="stream" type="java.io.DataOutput"/>
  25451. <param name="i" type="long"/>
  25452. <exception name="IOException" type="java.io.IOException"/>
  25453. <doc>
  25454. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  25455. For -112 <= i <= 127, only one byte is used with the actual value.
  25456. For other values of i, the first byte value indicates whether the
  25457. long is positive or negative, and the number of bytes that follow.
  25458. If the first byte value v is between -113 and -120, the following long
  25459. is positive, with number of bytes that follow are -(v+112).
  25460. If the first byte value v is between -121 and -128, the following long
  25461. is negative, with number of bytes that follow are -(v+120). Bytes are
  25462. stored in the high-non-zero-byte-first order.
  25463. @param stream Binary output stream
  25464. @param i Long to be serialized
  25465. @throws java.io.IOException]]>
  25466. </doc>
  25467. </method>
  25468. <method name="readVLong" return="long"
  25469. abstract="false" native="false" synchronized="false"
  25470. static="true" final="false" visibility="public"
  25471. deprecated="not deprecated">
  25472. <param name="stream" type="java.io.DataInput"/>
  25473. <exception name="IOException" type="java.io.IOException"/>
  25474. <doc>
  25475. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  25476. @param stream Binary input stream
  25477. @throws java.io.IOException
  25478. @return deserialized long from stream.]]>
  25479. </doc>
  25480. </method>
  25481. <method name="readVInt" return="int"
  25482. abstract="false" native="false" synchronized="false"
  25483. static="true" final="false" visibility="public"
  25484. deprecated="not deprecated">
  25485. <param name="stream" type="java.io.DataInput"/>
  25486. <exception name="IOException" type="java.io.IOException"/>
  25487. <doc>
  25488. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  25489. @param stream Binary input stream
  25490. @throws java.io.IOException
  25491. @return deserialized integer from stream.]]>
  25492. </doc>
  25493. </method>
  25494. <method name="readVIntInRange" return="int"
  25495. abstract="false" native="false" synchronized="false"
  25496. static="true" final="false" visibility="public"
  25497. deprecated="not deprecated">
  25498. <param name="stream" type="java.io.DataInput"/>
  25499. <param name="lower" type="int"/>
  25500. <param name="upper" type="int"/>
  25501. <exception name="IOException" type="java.io.IOException"/>
  25502. <doc>
  25503. <![CDATA[Reads an integer from the input stream and returns it.
  25504. This function validates that the integer is between [lower, upper],
  25505. inclusive.
  25506. @param stream Binary input stream
  25507. @throws java.io.IOException
  25508. @return deserialized integer from stream]]>
  25509. </doc>
  25510. </method>
  25511. <method name="isNegativeVInt" return="boolean"
  25512. abstract="false" native="false" synchronized="false"
  25513. static="true" final="false" visibility="public"
  25514. deprecated="not deprecated">
  25515. <param name="value" type="byte"/>
  25516. <doc>
  25517. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  25518. @param value the first byte
  25519. @return is the value negative]]>
  25520. </doc>
  25521. </method>
  25522. <method name="decodeVIntSize" return="int"
  25523. abstract="false" native="false" synchronized="false"
  25524. static="true" final="false" visibility="public"
  25525. deprecated="not deprecated">
  25526. <param name="value" type="byte"/>
  25527. <doc>
  25528. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  25529. @param value the first byte of the vint/vlong
  25530. @return the total number of bytes (1 to 9)]]>
  25531. </doc>
  25532. </method>
  25533. <method name="getVIntSize" return="int"
  25534. abstract="false" native="false" synchronized="false"
  25535. static="true" final="false" visibility="public"
  25536. deprecated="not deprecated">
  25537. <param name="i" type="long"/>
  25538. <doc>
  25539. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  25540. @return the encoded length]]>
  25541. </doc>
  25542. </method>
  25543. <method name="readEnum" return="T"
  25544. abstract="false" native="false" synchronized="false"
  25545. static="true" final="false" visibility="public"
  25546. deprecated="not deprecated">
  25547. <param name="in" type="java.io.DataInput"/>
  25548. <param name="enumType" type="java.lang.Class"/>
  25549. <exception name="IOException" type="java.io.IOException"/>
  25550. <doc>
  25551. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  25552. using String values.
  25553. @param <T> Enum type
  25554. @param in DataInput to read from
  25555. @param enumType Class type of Enum
  25556. @return Enum represented by String read from DataInput
  25557. @throws IOException]]>
  25558. </doc>
  25559. </method>
  25560. <method name="writeEnum"
  25561. abstract="false" native="false" synchronized="false"
  25562. static="true" final="false" visibility="public"
  25563. deprecated="not deprecated">
  25564. <param name="out" type="java.io.DataOutput"/>
  25565. <param name="enumVal" type="java.lang.Enum"/>
  25566. <exception name="IOException" type="java.io.IOException"/>
  25567. <doc>
  25568. <![CDATA[writes String value of enum to DataOutput.
  25569. @param out Dataoutput stream
  25570. @param enumVal enum value
  25571. @throws IOException]]>
  25572. </doc>
  25573. </method>
  25574. <method name="skipFully"
  25575. abstract="false" native="false" synchronized="false"
  25576. static="true" final="false" visibility="public"
  25577. deprecated="not deprecated">
  25578. <param name="in" type="java.io.DataInput"/>
  25579. <param name="len" type="int"/>
  25580. <exception name="IOException" type="java.io.IOException"/>
  25581. <doc>
  25582. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  25583. @param in input stream
  25584. @param len number of bytes to skip
  25585. @throws IOException when skipped less number of bytes]]>
  25586. </doc>
  25587. </method>
  25588. <method name="toByteArray" return="byte[]"
  25589. abstract="false" native="false" synchronized="false"
  25590. static="true" final="false" visibility="public"
  25591. deprecated="not deprecated">
  25592. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  25593. <doc>
  25594. <![CDATA[Convert writables to a byte array]]>
  25595. </doc>
  25596. </method>
  25597. <method name="readStringSafely" return="java.lang.String"
  25598. abstract="false" native="false" synchronized="false"
  25599. static="true" final="false" visibility="public"
  25600. deprecated="not deprecated">
  25601. <param name="in" type="java.io.DataInput"/>
  25602. <param name="maxLength" type="int"/>
  25603. <exception name="IOException" type="java.io.IOException"/>
  25604. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  25605. <doc>
  25606. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  25607. followed by the given number of bytes.
  25608. @param in the stream to read from
  25609. @param maxLength the largest acceptable length of the encoded string
  25610. @return the bytes as a string
  25611. @throws IOException if reading from the DataInput fails
  25612. @throws IllegalArgumentException if the encoded byte size for string
  25613. is negative or larger than maxSize. Only the vint is read.]]>
  25614. </doc>
  25615. </method>
  25616. </class>
  25617. <!-- end class org.apache.hadoop.io.WritableUtils -->
  25618. <doc>
  25619. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  25620. to databases, and to files.]]>
  25621. </doc>
  25622. </package>
  25623. <package name="org.apache.hadoop.io.compress">
  25624. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  25625. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  25626. abstract="false"
  25627. static="false" final="false" visibility="public"
  25628. deprecated="not deprecated">
  25629. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  25630. static="false" final="false" visibility="public"
  25631. deprecated="not deprecated">
  25632. <doc>
  25633. <![CDATA[Create a {@link BlockCompressorStream}.
  25634. @param out stream
  25635. @param compressor compressor to be used
  25636. @param bufferSize size of buffer
  25637. @param compressionOverhead maximum 'overhead' of the compression
  25638. algorithm with given bufferSize]]>
  25639. </doc>
  25640. </constructor>
  25641. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  25642. static="false" final="false" visibility="public"
  25643. deprecated="not deprecated">
  25644. <doc>
  25645. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  25646. compressor.
  25647. Use default of 512 as bufferSize and compressionOverhead of
  25648. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  25649. @param out stream
  25650. @param compressor compressor to be used]]>
  25651. </doc>
  25652. </constructor>
  25653. <method name="write"
  25654. abstract="false" native="false" synchronized="false"
  25655. static="false" final="false" visibility="public"
  25656. deprecated="not deprecated">
  25657. <param name="b" type="byte[]"/>
  25658. <param name="off" type="int"/>
  25659. <param name="len" type="int"/>
  25660. <exception name="IOException" type="java.io.IOException"/>
  25661. <doc>
  25662. <![CDATA[Write the data provided to the compression codec, compressing no more
  25663. than the buffer size less the compression overhead as specified during
  25664. construction for each block.
  25665. Each block contains the uncompressed length for the block, followed by
  25666. one or more length-prefixed blocks of compressed data.]]>
  25667. </doc>
  25668. </method>
  25669. <method name="finish"
  25670. abstract="false" native="false" synchronized="false"
  25671. static="false" final="false" visibility="public"
  25672. deprecated="not deprecated">
  25673. <exception name="IOException" type="java.io.IOException"/>
  25674. </method>
  25675. <method name="compress"
  25676. abstract="false" native="false" synchronized="false"
  25677. static="false" final="false" visibility="protected"
  25678. deprecated="not deprecated">
  25679. <exception name="IOException" type="java.io.IOException"/>
  25680. </method>
  25681. <doc>
  25682. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  25683. with 'block-based' based compression algorithms, as opposed to
  25684. 'stream-based' compression algorithms.
  25685. It should be noted that this wrapper does not guarantee that blocks will
  25686. be sized for the compressor. If the
  25687. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  25688. effect meaningful compression, it is responsible for it.]]>
  25689. </doc>
  25690. </class>
  25691. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  25692. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  25693. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  25694. abstract="false"
  25695. static="false" final="false" visibility="public"
  25696. deprecated="not deprecated">
  25697. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  25698. static="false" final="false" visibility="public"
  25699. deprecated="not deprecated">
  25700. <exception name="IOException" type="java.io.IOException"/>
  25701. <doc>
  25702. <![CDATA[Create a {@link BlockDecompressorStream}.
  25703. @param in input stream
  25704. @param decompressor decompressor to use
  25705. @param bufferSize size of buffer
  25706. @throws IOException]]>
  25707. </doc>
  25708. </constructor>
  25709. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  25710. static="false" final="false" visibility="public"
  25711. deprecated="not deprecated">
  25712. <exception name="IOException" type="java.io.IOException"/>
  25713. <doc>
  25714. <![CDATA[Create a {@link BlockDecompressorStream}.
  25715. @param in input stream
  25716. @param decompressor decompressor to use
  25717. @throws IOException]]>
  25718. </doc>
  25719. </constructor>
  25720. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  25721. static="false" final="false" visibility="protected"
  25722. deprecated="not deprecated">
  25723. <exception name="IOException" type="java.io.IOException"/>
  25724. </constructor>
  25725. <method name="decompress" return="int"
  25726. abstract="false" native="false" synchronized="false"
  25727. static="false" final="false" visibility="protected"
  25728. deprecated="not deprecated">
  25729. <param name="b" type="byte[]"/>
  25730. <param name="off" type="int"/>
  25731. <param name="len" type="int"/>
  25732. <exception name="IOException" type="java.io.IOException"/>
  25733. </method>
  25734. <method name="getCompressedData" return="int"
  25735. abstract="false" native="false" synchronized="false"
  25736. static="false" final="false" visibility="protected"
  25737. deprecated="not deprecated">
  25738. <exception name="IOException" type="java.io.IOException"/>
  25739. </method>
  25740. <method name="resetState"
  25741. abstract="false" native="false" synchronized="false"
  25742. static="false" final="false" visibility="public"
  25743. deprecated="not deprecated">
  25744. <exception name="IOException" type="java.io.IOException"/>
  25745. </method>
  25746. <doc>
  25747. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  25748. with 'block-based' based compression algorithms, as opposed to
  25749. 'stream-based' compression algorithms.]]>
  25750. </doc>
  25751. </class>
  25752. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  25753. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  25754. <class name="BZip2Codec" extends="java.lang.Object"
  25755. abstract="false"
  25756. static="false" final="false" visibility="public"
  25757. deprecated="not deprecated">
  25758. <implements name="org.apache.hadoop.conf.Configurable"/>
  25759. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  25760. <constructor name="BZip2Codec"
  25761. static="false" final="false" visibility="public"
  25762. deprecated="not deprecated">
  25763. <doc>
  25764. <![CDATA[Creates a new instance of BZip2Codec.]]>
  25765. </doc>
  25766. </constructor>
  25767. <method name="setConf"
  25768. abstract="false" native="false" synchronized="false"
  25769. static="false" final="false" visibility="public"
  25770. deprecated="not deprecated">
  25771. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25772. <doc>
  25773. <![CDATA[Set the configuration to be used by this object.
  25774. @param conf the configuration object.]]>
  25775. </doc>
  25776. </method>
  25777. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25778. abstract="false" native="false" synchronized="false"
  25779. static="false" final="false" visibility="public"
  25780. deprecated="not deprecated">
  25781. <doc>
  25782. <![CDATA[Return the configuration used by this object.
  25783. @return the configuration object used by this objec.]]>
  25784. </doc>
  25785. </method>
  25786. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25787. abstract="false" native="false" synchronized="false"
  25788. static="false" final="false" visibility="public"
  25789. deprecated="not deprecated">
  25790. <param name="out" type="java.io.OutputStream"/>
  25791. <exception name="IOException" type="java.io.IOException"/>
  25792. <doc>
  25793. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  25794. {@link OutputStream}.
  25795. @param out the location for the final output stream
  25796. @return a stream the user can write uncompressed data to, to have it
  25797. compressed
  25798. @throws IOException]]>
  25799. </doc>
  25800. </method>
  25801. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  25802. abstract="false" native="false" synchronized="false"
  25803. static="false" final="false" visibility="public"
  25804. deprecated="not deprecated">
  25805. <param name="out" type="java.io.OutputStream"/>
  25806. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  25807. <exception name="IOException" type="java.io.IOException"/>
  25808. <doc>
  25809. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  25810. {@link OutputStream} with the given {@link Compressor}.
  25811. @param out the location for the final output stream
  25812. @param compressor compressor to use
  25813. @return a stream the user can write uncompressed data to, to have it
  25814. compressed
  25815. @throws IOException]]>
  25816. </doc>
  25817. </method>
  25818. <method name="getCompressorType" return="java.lang.Class"
  25819. abstract="false" native="false" synchronized="false"
  25820. static="false" final="false" visibility="public"
  25821. deprecated="not deprecated">
  25822. <doc>
  25823. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  25824. @return the type of compressor needed by this codec.]]>
  25825. </doc>
  25826. </method>
  25827. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  25828. abstract="false" native="false" synchronized="false"
  25829. static="false" final="false" visibility="public"
  25830. deprecated="not deprecated">
  25831. <doc>
  25832. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  25833. @return a new compressor for use by this codec]]>
  25834. </doc>
  25835. </method>
  25836. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  25837. abstract="false" native="false" synchronized="false"
  25838. static="false" final="false" visibility="public"
  25839. deprecated="not deprecated">
  25840. <param name="in" type="java.io.InputStream"/>
  25841. <exception name="IOException" type="java.io.IOException"/>
  25842. <doc>
  25843. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  25844. input stream and return a stream for uncompressed data.
  25845. @param in the stream to read compressed bytes from
  25846. @return a stream to read uncompressed bytes from
  25847. @throws IOException]]>
  25848. </doc>
  25849. </method>
  25850. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  25851. abstract="false" native="false" synchronized="false"
  25852. static="false" final="false" visibility="public"
  25853. deprecated="not deprecated">
  25854. <param name="in" type="java.io.InputStream"/>
  25855. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  25856. <exception name="IOException" type="java.io.IOException"/>
  25857. <doc>
  25858. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  25859. {@link InputStream} with the given {@link Decompressor}, and return a
  25860. stream for uncompressed data.
  25861. @param in the stream to read compressed bytes from
  25862. @param decompressor decompressor to use
  25863. @return a stream to read uncompressed bytes from
  25864. @throws IOException]]>
  25865. </doc>
  25866. </method>
  25867. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  25868. abstract="false" native="false" synchronized="false"
  25869. static="false" final="false" visibility="public"
  25870. deprecated="not deprecated">
  25871. <param name="seekableIn" type="java.io.InputStream"/>
  25872. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  25873. <param name="start" type="long"/>
  25874. <param name="end" type="long"/>
  25875. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  25876. <exception name="IOException" type="java.io.IOException"/>
  25877. <doc>
  25878. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  25879. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  25880. @param seekableIn The InputStream
  25881. @param start The start offset into the compressed stream
  25882. @param end The end offset into the compressed stream
  25883. @param readMode Controls whether progress is reported continuously or
  25884. only at block boundaries.
  25885. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  25886. </doc>
  25887. </method>
  25888. <method name="getDecompressorType" return="java.lang.Class"
  25889. abstract="false" native="false" synchronized="false"
  25890. static="false" final="false" visibility="public"
  25891. deprecated="not deprecated">
  25892. <doc>
  25893. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  25894. @return the type of decompressor needed by this codec.]]>
  25895. </doc>
  25896. </method>
  25897. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  25898. abstract="false" native="false" synchronized="false"
  25899. static="false" final="false" visibility="public"
  25900. deprecated="not deprecated">
  25901. <doc>
  25902. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  25903. @return a new decompressor for use by this codec]]>
  25904. </doc>
  25905. </method>
  25906. <method name="getDefaultExtension" return="java.lang.String"
  25907. abstract="false" native="false" synchronized="false"
  25908. static="false" final="false" visibility="public"
  25909. deprecated="not deprecated">
  25910. <doc>
  25911. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  25912. @return A String telling the default bzip2 file extension]]>
  25913. </doc>
  25914. </method>
  25915. <doc>
  25916. <![CDATA[This class provides output and input streams for bzip2 compression
  25917. and decompression. It uses the native bzip2 library on the system
  25918. if possible, else it uses a pure-Java implementation of the bzip2
  25919. algorithm. The configuration parameter
  25920. io.compression.codec.bzip2.library can be used to control this
  25921. behavior.
  25922. In the pure-Java mode, the Compressor and Decompressor interfaces
  25923. are not implemented. Therefore, in that mode, those methods of
  25924. CompressionCodec which have a Compressor or Decompressor type
  25925. argument, throw UnsupportedOperationException.
  25926. Currently, support for splittability is available only in the
  25927. pure-Java mode; therefore, if a SplitCompressionInputStream is
  25928. requested, the pure-Java implementation is used, regardless of the
  25929. setting of the configuration parameter mentioned above.]]>
  25930. </doc>
  25931. </class>
  25932. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  25933. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  25934. <class name="CodecPool" extends="java.lang.Object"
  25935. abstract="false"
  25936. static="false" final="false" visibility="public"
  25937. deprecated="not deprecated">
  25938. <constructor name="CodecPool"
  25939. static="false" final="false" visibility="public"
  25940. deprecated="not deprecated">
  25941. </constructor>
  25942. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  25943. abstract="false" native="false" synchronized="false"
  25944. static="true" final="false" visibility="public"
  25945. deprecated="not deprecated">
  25946. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  25947. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25948. <doc>
  25949. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  25950. pool or a new one.
  25951. @param codec the <code>CompressionCodec</code> for which to get the
  25952. <code>Compressor</code>
  25953. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  25954. @return <code>Compressor</code> for the given
  25955. <code>CompressionCodec</code> from the pool or a new one]]>
  25956. </doc>
  25957. </method>
  25958. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  25959. abstract="false" native="false" synchronized="false"
  25960. static="true" final="false" visibility="public"
  25961. deprecated="not deprecated">
  25962. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  25963. </method>
  25964. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  25965. abstract="false" native="false" synchronized="false"
  25966. static="true" final="false" visibility="public"
  25967. deprecated="not deprecated">
  25968. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  25969. <doc>
  25970. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  25971. pool or a new one.
  25972. @param codec the <code>CompressionCodec</code> for which to get the
  25973. <code>Decompressor</code>
  25974. @return <code>Decompressor</code> for the given
  25975. <code>CompressionCodec</code> the pool or a new one]]>
  25976. </doc>
  25977. </method>
  25978. <method name="returnCompressor"
  25979. abstract="false" native="false" synchronized="false"
  25980. static="true" final="false" visibility="public"
  25981. deprecated="not deprecated">
  25982. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  25983. <doc>
  25984. <![CDATA[Return the {@link Compressor} to the pool.
  25985. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  25986. </doc>
  25987. </method>
  25988. <method name="returnDecompressor"
  25989. abstract="false" native="false" synchronized="false"
  25990. static="true" final="false" visibility="public"
  25991. deprecated="not deprecated">
  25992. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  25993. <doc>
  25994. <![CDATA[Return the {@link Decompressor} to the pool.
  25995. @param decompressor the <code>Decompressor</code> to be returned to the
  25996. pool]]>
  25997. </doc>
  25998. </method>
  25999. <method name="getLeasedCompressorsCount" return="int"
  26000. abstract="false" native="false" synchronized="false"
  26001. static="true" final="false" visibility="public"
  26002. deprecated="not deprecated">
  26003. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26004. <doc>
  26005. <![CDATA[Return the number of leased {@link Compressor}s for this
  26006. {@link CompressionCodec}]]>
  26007. </doc>
  26008. </method>
  26009. <method name="getLeasedDecompressorsCount" return="int"
  26010. abstract="false" native="false" synchronized="false"
  26011. static="true" final="false" visibility="public"
  26012. deprecated="not deprecated">
  26013. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  26014. <doc>
  26015. <![CDATA[Return the number of leased {@link Decompressor}s for this
  26016. {@link CompressionCodec}]]>
  26017. </doc>
  26018. </method>
  26019. <doc>
  26020. <![CDATA[A global compressor/decompressor pool used to save and reuse
  26021. (possibly native) compression/decompression codecs.]]>
  26022. </doc>
  26023. </class>
  26024. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  26025. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  26026. <interface name="CompressionCodec" abstract="true"
  26027. static="false" final="false" visibility="public"
  26028. deprecated="not deprecated">
  26029. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26030. abstract="false" native="false" synchronized="false"
  26031. static="false" final="false" visibility="public"
  26032. deprecated="not deprecated">
  26033. <param name="out" type="java.io.OutputStream"/>
  26034. <exception name="IOException" type="java.io.IOException"/>
  26035. <doc>
  26036. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26037. {@link OutputStream}.
  26038. @param out the location for the final output stream
  26039. @return a stream the user can write uncompressed data to have it compressed
  26040. @throws IOException]]>
  26041. </doc>
  26042. </method>
  26043. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26044. abstract="false" native="false" synchronized="false"
  26045. static="false" final="false" visibility="public"
  26046. deprecated="not deprecated">
  26047. <param name="out" type="java.io.OutputStream"/>
  26048. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26049. <exception name="IOException" type="java.io.IOException"/>
  26050. <doc>
  26051. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26052. {@link OutputStream} with the given {@link Compressor}.
  26053. @param out the location for the final output stream
  26054. @param compressor compressor to use
  26055. @return a stream the user can write uncompressed data to have it compressed
  26056. @throws IOException]]>
  26057. </doc>
  26058. </method>
  26059. <method name="getCompressorType" return="java.lang.Class"
  26060. abstract="false" native="false" synchronized="false"
  26061. static="false" final="false" visibility="public"
  26062. deprecated="not deprecated">
  26063. <doc>
  26064. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  26065. @return the type of compressor needed by this codec.]]>
  26066. </doc>
  26067. </method>
  26068. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26069. abstract="false" native="false" synchronized="false"
  26070. static="false" final="false" visibility="public"
  26071. deprecated="not deprecated">
  26072. <doc>
  26073. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  26074. @return a new compressor for use by this codec]]>
  26075. </doc>
  26076. </method>
  26077. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26078. abstract="false" native="false" synchronized="false"
  26079. static="false" final="false" visibility="public"
  26080. deprecated="not deprecated">
  26081. <param name="in" type="java.io.InputStream"/>
  26082. <exception name="IOException" type="java.io.IOException"/>
  26083. <doc>
  26084. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26085. input stream.
  26086. @param in the stream to read compressed bytes from
  26087. @return a stream to read uncompressed bytes from
  26088. @throws IOException]]>
  26089. </doc>
  26090. </method>
  26091. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26092. abstract="false" native="false" synchronized="false"
  26093. static="false" final="false" visibility="public"
  26094. deprecated="not deprecated">
  26095. <param name="in" type="java.io.InputStream"/>
  26096. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  26097. <exception name="IOException" type="java.io.IOException"/>
  26098. <doc>
  26099. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  26100. {@link InputStream} with the given {@link Decompressor}.
  26101. @param in the stream to read compressed bytes from
  26102. @param decompressor decompressor to use
  26103. @return a stream to read uncompressed bytes from
  26104. @throws IOException]]>
  26105. </doc>
  26106. </method>
  26107. <method name="getDecompressorType" return="java.lang.Class"
  26108. abstract="false" native="false" synchronized="false"
  26109. static="false" final="false" visibility="public"
  26110. deprecated="not deprecated">
  26111. <doc>
  26112. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  26113. @return the type of decompressor needed by this codec.]]>
  26114. </doc>
  26115. </method>
  26116. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  26117. abstract="false" native="false" synchronized="false"
  26118. static="false" final="false" visibility="public"
  26119. deprecated="not deprecated">
  26120. <doc>
  26121. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  26122. @return a new decompressor for use by this codec]]>
  26123. </doc>
  26124. </method>
  26125. <method name="getDefaultExtension" return="java.lang.String"
  26126. abstract="false" native="false" synchronized="false"
  26127. static="false" final="false" visibility="public"
  26128. deprecated="not deprecated">
  26129. <doc>
  26130. <![CDATA[Get the default filename extension for this kind of compression.
  26131. @return the extension including the '.']]>
  26132. </doc>
  26133. </method>
  26134. <doc>
  26135. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  26136. </doc>
  26137. </interface>
  26138. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  26139. <!-- start class org.apache.hadoop.io.compress.CompressionCodec.Util -->
  26140. <class name="CompressionCodec.Util" extends="java.lang.Object"
  26141. abstract="false"
  26142. static="true" final="false" visibility="public"
  26143. deprecated="not deprecated">
  26144. <constructor name="CompressionCodec.Util"
  26145. static="false" final="false" visibility="public"
  26146. deprecated="not deprecated">
  26147. </constructor>
  26148. </class>
  26149. <!-- end class org.apache.hadoop.io.compress.CompressionCodec.Util -->
  26150. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  26151. <class name="CompressionCodecFactory" extends="java.lang.Object"
  26152. abstract="false"
  26153. static="false" final="false" visibility="public"
  26154. deprecated="not deprecated">
  26155. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  26156. static="false" final="false" visibility="public"
  26157. deprecated="not deprecated">
  26158. <doc>
  26159. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  26160. and register them. Defaults to gzip and deflate.]]>
  26161. </doc>
  26162. </constructor>
  26163. <method name="toString" return="java.lang.String"
  26164. abstract="false" native="false" synchronized="false"
  26165. static="false" final="false" visibility="public"
  26166. deprecated="not deprecated">
  26167. <doc>
  26168. <![CDATA[Print the extension map out as a string.]]>
  26169. </doc>
  26170. </method>
  26171. <method name="getCodecClasses" return="java.util.List"
  26172. abstract="false" native="false" synchronized="false"
  26173. static="true" final="false" visibility="public"
  26174. deprecated="not deprecated">
  26175. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26176. <doc>
  26177. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  26178. listed in the configuration. Codecs specified in configuration come
  26179. later in the returned list, and are considered to override those
  26180. from the ServiceLoader.
  26181. @param conf the configuration to look in
  26182. @return a list of the {@link CompressionCodec} classes]]>
  26183. </doc>
  26184. </method>
  26185. <method name="setCodecClasses"
  26186. abstract="false" native="false" synchronized="false"
  26187. static="true" final="false" visibility="public"
  26188. deprecated="not deprecated">
  26189. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26190. <param name="classes" type="java.util.List"/>
  26191. <doc>
  26192. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  26193. classes specified using this method, {@link CompressionCodec} classes on
  26194. the classpath are discovered using a Java ServiceLoader.
  26195. @param conf the configuration to modify
  26196. @param classes the list of classes to set]]>
  26197. </doc>
  26198. </method>
  26199. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  26200. abstract="false" native="false" synchronized="false"
  26201. static="false" final="false" visibility="public"
  26202. deprecated="not deprecated">
  26203. <param name="file" type="org.apache.hadoop.fs.Path"/>
  26204. <doc>
  26205. <![CDATA[Find the relevant compression codec for the given file based on its
  26206. filename suffix.
  26207. @param file the filename to check
  26208. @return the codec object]]>
  26209. </doc>
  26210. </method>
  26211. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  26212. abstract="false" native="false" synchronized="false"
  26213. static="false" final="false" visibility="public"
  26214. deprecated="not deprecated">
  26215. <param name="classname" type="java.lang.String"/>
  26216. <doc>
  26217. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  26218. @param classname the canonical class name of the codec
  26219. @return the codec object]]>
  26220. </doc>
  26221. </method>
  26222. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  26223. abstract="false" native="false" synchronized="false"
  26224. static="false" final="false" visibility="public"
  26225. deprecated="not deprecated">
  26226. <param name="codecName" type="java.lang.String"/>
  26227. <doc>
  26228. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  26229. or by codec alias.
  26230. <p/>
  26231. Codec aliases are case insensitive.
  26232. <p/>
  26233. The code alias is the short class name (without the package name).
  26234. If the short class name ends with 'Codec', then there are two aliases for
  26235. the codec, the complete short class name and the short class name without
  26236. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  26237. alias are 'gzip' and 'gzipcodec'.
  26238. @param codecName the canonical class name of the codec
  26239. @return the codec object]]>
  26240. </doc>
  26241. </method>
  26242. <method name="getCodecClassByName" return="java.lang.Class"
  26243. abstract="false" native="false" synchronized="false"
  26244. static="false" final="false" visibility="public"
  26245. deprecated="not deprecated">
  26246. <param name="codecName" type="java.lang.String"/>
  26247. <doc>
  26248. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  26249. or by codec alias and returns its implemetation class.
  26250. <p/>
  26251. Codec aliases are case insensitive.
  26252. <p/>
  26253. The code alias is the short class name (without the package name).
  26254. If the short class name ends with 'Codec', then there are two aliases for
  26255. the codec, the complete short class name and the short class name without
  26256. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  26257. alias are 'gzip' and 'gzipcodec'.
  26258. @param codecName the canonical class name of the codec
  26259. @return the codec class]]>
  26260. </doc>
  26261. </method>
  26262. <method name="removeSuffix" return="java.lang.String"
  26263. abstract="false" native="false" synchronized="false"
  26264. static="true" final="false" visibility="public"
  26265. deprecated="not deprecated">
  26266. <param name="filename" type="java.lang.String"/>
  26267. <param name="suffix" type="java.lang.String"/>
  26268. <doc>
  26269. <![CDATA[Removes a suffix from a filename, if it has it.
  26270. @param filename the filename to strip
  26271. @param suffix the suffix to remove
  26272. @return the shortened filename]]>
  26273. </doc>
  26274. </method>
  26275. <method name="main"
  26276. abstract="false" native="false" synchronized="false"
  26277. static="true" final="false" visibility="public"
  26278. deprecated="not deprecated">
  26279. <param name="args" type="java.lang.String[]"/>
  26280. <exception name="Exception" type="java.lang.Exception"/>
  26281. <doc>
  26282. <![CDATA[A little test program.
  26283. @param args]]>
  26284. </doc>
  26285. </method>
  26286. <field name="LOG" type="org.apache.commons.logging.Log"
  26287. transient="false" volatile="false"
  26288. static="true" final="true" visibility="public"
  26289. deprecated="not deprecated">
  26290. </field>
  26291. <doc>
  26292. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  26293. </doc>
  26294. </class>
  26295. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  26296. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  26297. <class name="CompressionInputStream" extends="java.io.InputStream"
  26298. abstract="true"
  26299. static="false" final="false" visibility="public"
  26300. deprecated="not deprecated">
  26301. <implements name="org.apache.hadoop.fs.Seekable"/>
  26302. <constructor name="CompressionInputStream" type="java.io.InputStream"
  26303. static="false" final="false" visibility="protected"
  26304. deprecated="not deprecated">
  26305. <exception name="IOException" type="java.io.IOException"/>
  26306. <doc>
  26307. <![CDATA[Create a compression input stream that reads
  26308. the decompressed bytes from the given stream.
  26309. @param in The input stream to be compressed.
  26310. @throws IOException]]>
  26311. </doc>
  26312. </constructor>
  26313. <method name="close"
  26314. abstract="false" native="false" synchronized="false"
  26315. static="false" final="false" visibility="public"
  26316. deprecated="not deprecated">
  26317. <exception name="IOException" type="java.io.IOException"/>
  26318. </method>
  26319. <method name="read" return="int"
  26320. abstract="true" native="false" synchronized="false"
  26321. static="false" final="false" visibility="public"
  26322. deprecated="not deprecated">
  26323. <param name="b" type="byte[]"/>
  26324. <param name="off" type="int"/>
  26325. <param name="len" type="int"/>
  26326. <exception name="IOException" type="java.io.IOException"/>
  26327. <doc>
  26328. <![CDATA[Read bytes from the stream.
  26329. Made abstract to prevent leakage to underlying stream.]]>
  26330. </doc>
  26331. </method>
  26332. <method name="resetState"
  26333. abstract="true" native="false" synchronized="false"
  26334. static="false" final="false" visibility="public"
  26335. deprecated="not deprecated">
  26336. <exception name="IOException" type="java.io.IOException"/>
  26337. <doc>
  26338. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  26339. as the underlying stream may have been repositioned.]]>
  26340. </doc>
  26341. </method>
  26342. <method name="getPos" return="long"
  26343. abstract="false" native="false" synchronized="false"
  26344. static="false" final="false" visibility="public"
  26345. deprecated="not deprecated">
  26346. <exception name="IOException" type="java.io.IOException"/>
  26347. <doc>
  26348. <![CDATA[This method returns the current position in the stream.
  26349. @return Current position in stream as a long]]>
  26350. </doc>
  26351. </method>
  26352. <method name="seek"
  26353. abstract="false" native="false" synchronized="false"
  26354. static="false" final="false" visibility="public"
  26355. deprecated="not deprecated">
  26356. <param name="pos" type="long"/>
  26357. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  26358. <doc>
  26359. <![CDATA[This method is current not supported.
  26360. @throws UnsupportedOperationException]]>
  26361. </doc>
  26362. </method>
  26363. <method name="seekToNewSource" return="boolean"
  26364. abstract="false" native="false" synchronized="false"
  26365. static="false" final="false" visibility="public"
  26366. deprecated="not deprecated">
  26367. <param name="targetPos" type="long"/>
  26368. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  26369. <doc>
  26370. <![CDATA[This method is current not supported.
  26371. @throws UnsupportedOperationException]]>
  26372. </doc>
  26373. </method>
  26374. <field name="in" type="java.io.InputStream"
  26375. transient="false" volatile="false"
  26376. static="false" final="true" visibility="protected"
  26377. deprecated="not deprecated">
  26378. <doc>
  26379. <![CDATA[The input stream to be compressed.]]>
  26380. </doc>
  26381. </field>
  26382. <field name="maxAvailableData" type="long"
  26383. transient="false" volatile="false"
  26384. static="false" final="false" visibility="protected"
  26385. deprecated="not deprecated">
  26386. </field>
  26387. <doc>
  26388. <![CDATA[A compression input stream.
  26389. <p>Implementations are assumed to be buffered. This permits clients to
  26390. reposition the underlying input stream then call {@link #resetState()},
  26391. without having to also synchronize client buffers.]]>
  26392. </doc>
  26393. </class>
  26394. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  26395. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  26396. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  26397. abstract="true"
  26398. static="false" final="false" visibility="public"
  26399. deprecated="not deprecated">
  26400. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  26401. static="false" final="false" visibility="protected"
  26402. deprecated="not deprecated">
  26403. <doc>
  26404. <![CDATA[Create a compression output stream that writes
  26405. the compressed bytes to the given stream.
  26406. @param out]]>
  26407. </doc>
  26408. </constructor>
  26409. <method name="close"
  26410. abstract="false" native="false" synchronized="false"
  26411. static="false" final="false" visibility="public"
  26412. deprecated="not deprecated">
  26413. <exception name="IOException" type="java.io.IOException"/>
  26414. </method>
  26415. <method name="flush"
  26416. abstract="false" native="false" synchronized="false"
  26417. static="false" final="false" visibility="public"
  26418. deprecated="not deprecated">
  26419. <exception name="IOException" type="java.io.IOException"/>
  26420. </method>
  26421. <method name="write"
  26422. abstract="true" native="false" synchronized="false"
  26423. static="false" final="false" visibility="public"
  26424. deprecated="not deprecated">
  26425. <param name="b" type="byte[]"/>
  26426. <param name="off" type="int"/>
  26427. <param name="len" type="int"/>
  26428. <exception name="IOException" type="java.io.IOException"/>
  26429. <doc>
  26430. <![CDATA[Write compressed bytes to the stream.
  26431. Made abstract to prevent leakage to underlying stream.]]>
  26432. </doc>
  26433. </method>
  26434. <method name="finish"
  26435. abstract="true" native="false" synchronized="false"
  26436. static="false" final="false" visibility="public"
  26437. deprecated="not deprecated">
  26438. <exception name="IOException" type="java.io.IOException"/>
  26439. <doc>
  26440. <![CDATA[Finishes writing compressed data to the output stream
  26441. without closing the underlying stream.]]>
  26442. </doc>
  26443. </method>
  26444. <method name="resetState"
  26445. abstract="true" native="false" synchronized="false"
  26446. static="false" final="false" visibility="public"
  26447. deprecated="not deprecated">
  26448. <exception name="IOException" type="java.io.IOException"/>
  26449. <doc>
  26450. <![CDATA[Reset the compression to the initial state.
  26451. Does not reset the underlying stream.]]>
  26452. </doc>
  26453. </method>
  26454. <field name="out" type="java.io.OutputStream"
  26455. transient="false" volatile="false"
  26456. static="false" final="true" visibility="protected"
  26457. deprecated="not deprecated">
  26458. <doc>
  26459. <![CDATA[The output stream to be compressed.]]>
  26460. </doc>
  26461. </field>
  26462. <doc>
  26463. <![CDATA[A compression output stream.]]>
  26464. </doc>
  26465. </class>
  26466. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  26467. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  26468. <interface name="Compressor" abstract="true"
  26469. static="false" final="false" visibility="public"
  26470. deprecated="not deprecated">
  26471. <method name="setInput"
  26472. abstract="false" native="false" synchronized="false"
  26473. static="false" final="false" visibility="public"
  26474. deprecated="not deprecated">
  26475. <param name="b" type="byte[]"/>
  26476. <param name="off" type="int"/>
  26477. <param name="len" type="int"/>
  26478. <doc>
  26479. <![CDATA[Sets input data for compression.
  26480. This should be called whenever #needsInput() returns
  26481. <code>true</code> indicating that more input data is required.
  26482. @param b Input data
  26483. @param off Start offset
  26484. @param len Length]]>
  26485. </doc>
  26486. </method>
  26487. <method name="needsInput" return="boolean"
  26488. abstract="false" native="false" synchronized="false"
  26489. static="false" final="false" visibility="public"
  26490. deprecated="not deprecated">
  26491. <doc>
  26492. <![CDATA[Returns true if the input data buffer is empty and
  26493. #setInput() should be called to provide more input.
  26494. @return <code>true</code> if the input data buffer is empty and
  26495. #setInput() should be called in order to provide more input.]]>
  26496. </doc>
  26497. </method>
  26498. <method name="setDictionary"
  26499. abstract="false" native="false" synchronized="false"
  26500. static="false" final="false" visibility="public"
  26501. deprecated="not deprecated">
  26502. <param name="b" type="byte[]"/>
  26503. <param name="off" type="int"/>
  26504. <param name="len" type="int"/>
  26505. <doc>
  26506. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  26507. is used when the history buffer can be predetermined.
  26508. @param b Dictionary data bytes
  26509. @param off Start offset
  26510. @param len Length]]>
  26511. </doc>
  26512. </method>
  26513. <method name="getBytesRead" return="long"
  26514. abstract="false" native="false" synchronized="false"
  26515. static="false" final="false" visibility="public"
  26516. deprecated="not deprecated">
  26517. <doc>
  26518. <![CDATA[Return number of uncompressed bytes input so far.]]>
  26519. </doc>
  26520. </method>
  26521. <method name="getBytesWritten" return="long"
  26522. abstract="false" native="false" synchronized="false"
  26523. static="false" final="false" visibility="public"
  26524. deprecated="not deprecated">
  26525. <doc>
  26526. <![CDATA[Return number of compressed bytes output so far.]]>
  26527. </doc>
  26528. </method>
  26529. <method name="finish"
  26530. abstract="false" native="false" synchronized="false"
  26531. static="false" final="false" visibility="public"
  26532. deprecated="not deprecated">
  26533. <doc>
  26534. <![CDATA[When called, indicates that compression should end
  26535. with the current contents of the input buffer.]]>
  26536. </doc>
  26537. </method>
  26538. <method name="finished" return="boolean"
  26539. abstract="false" native="false" synchronized="false"
  26540. static="false" final="false" visibility="public"
  26541. deprecated="not deprecated">
  26542. <doc>
  26543. <![CDATA[Returns true if the end of the compressed
  26544. data output stream has been reached.
  26545. @return <code>true</code> if the end of the compressed
  26546. data output stream has been reached.]]>
  26547. </doc>
  26548. </method>
  26549. <method name="compress" return="int"
  26550. abstract="false" native="false" synchronized="false"
  26551. static="false" final="false" visibility="public"
  26552. deprecated="not deprecated">
  26553. <param name="b" type="byte[]"/>
  26554. <param name="off" type="int"/>
  26555. <param name="len" type="int"/>
  26556. <exception name="IOException" type="java.io.IOException"/>
  26557. <doc>
  26558. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  26559. of bytes of compressed data. A return value of 0 indicates that
  26560. needsInput() should be called in order to determine if more input
  26561. data is required.
  26562. @param b Buffer for the compressed data
  26563. @param off Start offset of the data
  26564. @param len Size of the buffer
  26565. @return The actual number of bytes of compressed data.]]>
  26566. </doc>
  26567. </method>
  26568. <method name="reset"
  26569. abstract="false" native="false" synchronized="false"
  26570. static="false" final="false" visibility="public"
  26571. deprecated="not deprecated">
  26572. <doc>
  26573. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  26574. </doc>
  26575. </method>
  26576. <method name="end"
  26577. abstract="false" native="false" synchronized="false"
  26578. static="false" final="false" visibility="public"
  26579. deprecated="not deprecated">
  26580. <doc>
  26581. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  26582. </doc>
  26583. </method>
  26584. <method name="reinit"
  26585. abstract="false" native="false" synchronized="false"
  26586. static="false" final="false" visibility="public"
  26587. deprecated="not deprecated">
  26588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26589. <doc>
  26590. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  26591. the given Configuration
  26592. @param conf Configuration from which new setting are fetched]]>
  26593. </doc>
  26594. </method>
  26595. <doc>
  26596. <![CDATA[Specification of a stream-based 'compressor' which can be
  26597. plugged into a {@link CompressionOutputStream} to compress data.
  26598. This is modelled after {@link java.util.zip.Deflater}]]>
  26599. </doc>
  26600. </interface>
  26601. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  26602. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  26603. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  26604. abstract="false"
  26605. static="false" final="false" visibility="public"
  26606. deprecated="not deprecated">
  26607. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  26608. static="false" final="false" visibility="public"
  26609. deprecated="not deprecated">
  26610. </constructor>
  26611. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  26612. static="false" final="false" visibility="public"
  26613. deprecated="not deprecated">
  26614. </constructor>
  26615. <constructor name="CompressorStream" type="java.io.OutputStream"
  26616. static="false" final="false" visibility="protected"
  26617. deprecated="not deprecated">
  26618. <doc>
  26619. <![CDATA[Allow derived classes to directly set the underlying stream.
  26620. @param out Underlying output stream.]]>
  26621. </doc>
  26622. </constructor>
  26623. <method name="write"
  26624. abstract="false" native="false" synchronized="false"
  26625. static="false" final="false" visibility="public"
  26626. deprecated="not deprecated">
  26627. <param name="b" type="byte[]"/>
  26628. <param name="off" type="int"/>
  26629. <param name="len" type="int"/>
  26630. <exception name="IOException" type="java.io.IOException"/>
  26631. </method>
  26632. <method name="compress"
  26633. abstract="false" native="false" synchronized="false"
  26634. static="false" final="false" visibility="protected"
  26635. deprecated="not deprecated">
  26636. <exception name="IOException" type="java.io.IOException"/>
  26637. </method>
  26638. <method name="finish"
  26639. abstract="false" native="false" synchronized="false"
  26640. static="false" final="false" visibility="public"
  26641. deprecated="not deprecated">
  26642. <exception name="IOException" type="java.io.IOException"/>
  26643. </method>
  26644. <method name="resetState"
  26645. abstract="false" native="false" synchronized="false"
  26646. static="false" final="false" visibility="public"
  26647. deprecated="not deprecated">
  26648. <exception name="IOException" type="java.io.IOException"/>
  26649. </method>
  26650. <method name="close"
  26651. abstract="false" native="false" synchronized="false"
  26652. static="false" final="false" visibility="public"
  26653. deprecated="not deprecated">
  26654. <exception name="IOException" type="java.io.IOException"/>
  26655. </method>
  26656. <method name="write"
  26657. abstract="false" native="false" synchronized="false"
  26658. static="false" final="false" visibility="public"
  26659. deprecated="not deprecated">
  26660. <param name="b" type="int"/>
  26661. <exception name="IOException" type="java.io.IOException"/>
  26662. </method>
  26663. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  26664. transient="false" volatile="false"
  26665. static="false" final="false" visibility="protected"
  26666. deprecated="not deprecated">
  26667. </field>
  26668. <field name="buffer" type="byte[]"
  26669. transient="false" volatile="false"
  26670. static="false" final="false" visibility="protected"
  26671. deprecated="not deprecated">
  26672. </field>
  26673. <field name="closed" type="boolean"
  26674. transient="false" volatile="false"
  26675. static="false" final="false" visibility="protected"
  26676. deprecated="not deprecated">
  26677. </field>
  26678. </class>
  26679. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  26680. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  26681. <interface name="Decompressor" abstract="true"
  26682. static="false" final="false" visibility="public"
  26683. deprecated="not deprecated">
  26684. <method name="setInput"
  26685. abstract="false" native="false" synchronized="false"
  26686. static="false" final="false" visibility="public"
  26687. deprecated="not deprecated">
  26688. <param name="b" type="byte[]"/>
  26689. <param name="off" type="int"/>
  26690. <param name="len" type="int"/>
  26691. <doc>
  26692. <![CDATA[Sets input data for decompression.
  26693. This should be called if and only if {@link #needsInput()} returns
  26694. <code>true</code> indicating that more input data is required.
  26695. (Both native and non-native versions of various Decompressors require
  26696. that the data passed in via <code>b[]</code> remain unmodified until
  26697. the caller is explicitly notified--via {@link #needsInput()}--that the
  26698. buffer may be safely modified. With this requirement, an extra
  26699. buffer-copy can be avoided.)
  26700. @param b Input data
  26701. @param off Start offset
  26702. @param len Length]]>
  26703. </doc>
  26704. </method>
  26705. <method name="needsInput" return="boolean"
  26706. abstract="false" native="false" synchronized="false"
  26707. static="false" final="false" visibility="public"
  26708. deprecated="not deprecated">
  26709. <doc>
  26710. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  26711. {@link #setInput(byte[], int, int)} should be called to
  26712. provide more input.
  26713. @return <code>true</code> if the input data buffer is empty and
  26714. {@link #setInput(byte[], int, int)} should be called in
  26715. order to provide more input.]]>
  26716. </doc>
  26717. </method>
  26718. <method name="setDictionary"
  26719. abstract="false" native="false" synchronized="false"
  26720. static="false" final="false" visibility="public"
  26721. deprecated="not deprecated">
  26722. <param name="b" type="byte[]"/>
  26723. <param name="off" type="int"/>
  26724. <param name="len" type="int"/>
  26725. <doc>
  26726. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  26727. is used when the history buffer can be predetermined.
  26728. @param b Dictionary data bytes
  26729. @param off Start offset
  26730. @param len Length]]>
  26731. </doc>
  26732. </method>
  26733. <method name="needsDictionary" return="boolean"
  26734. abstract="false" native="false" synchronized="false"
  26735. static="false" final="false" visibility="public"
  26736. deprecated="not deprecated">
  26737. <doc>
  26738. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  26739. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  26740. </doc>
  26741. </method>
  26742. <method name="finished" return="boolean"
  26743. abstract="false" native="false" synchronized="false"
  26744. static="false" final="false" visibility="public"
  26745. deprecated="not deprecated">
  26746. <doc>
  26747. <![CDATA[Returns <code>true</code> if the end of the decompressed
  26748. data output stream has been reached. Indicates a concatenated data stream
  26749. when finished() returns <code>true</code> and {@link #getRemaining()}
  26750. returns a positive value. finished() will be reset with the
  26751. {@link #reset()} method.
  26752. @return <code>true</code> if the end of the decompressed
  26753. data output stream has been reached.]]>
  26754. </doc>
  26755. </method>
  26756. <method name="decompress" return="int"
  26757. abstract="false" native="false" synchronized="false"
  26758. static="false" final="false" visibility="public"
  26759. deprecated="not deprecated">
  26760. <param name="b" type="byte[]"/>
  26761. <param name="off" type="int"/>
  26762. <param name="len" type="int"/>
  26763. <exception name="IOException" type="java.io.IOException"/>
  26764. <doc>
  26765. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  26766. of bytes of uncompressed data. A return value of 0 indicates that
  26767. {@link #needsInput()} should be called in order to determine if more
  26768. input data is required.
  26769. @param b Buffer for the compressed data
  26770. @param off Start offset of the data
  26771. @param len Size of the buffer
  26772. @return The actual number of bytes of compressed data.
  26773. @throws IOException]]>
  26774. </doc>
  26775. </method>
  26776. <method name="getRemaining" return="int"
  26777. abstract="false" native="false" synchronized="false"
  26778. static="false" final="false" visibility="public"
  26779. deprecated="not deprecated">
  26780. <doc>
  26781. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  26782. Indicates a concatenated data stream if {@link #finished()} returns
  26783. <code>true</code> and getRemaining() returns a positive value. If
  26784. {@link #finished()} returns <code>true</code> and getRemaining() returns
  26785. a zero value, indicates that the end of data stream has been reached and
  26786. is not a concatenated data stream.
  26787. @return The number of bytes remaining in the compressed data buffer.]]>
  26788. </doc>
  26789. </method>
  26790. <method name="reset"
  26791. abstract="false" native="false" synchronized="false"
  26792. static="false" final="false" visibility="public"
  26793. deprecated="not deprecated">
  26794. <doc>
  26795. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  26796. input data can be processed. If {@link #finished()}} returns
  26797. <code>true</code> and {@link #getRemaining()} returns a positive value,
  26798. reset() is called before processing of the next data stream in the
  26799. concatenated data stream. {@link #finished()} will be reset and will
  26800. return <code>false</code> when reset() is called.]]>
  26801. </doc>
  26802. </method>
  26803. <method name="end"
  26804. abstract="false" native="false" synchronized="false"
  26805. static="false" final="false" visibility="public"
  26806. deprecated="not deprecated">
  26807. <doc>
  26808. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  26809. </doc>
  26810. </method>
  26811. <doc>
  26812. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  26813. plugged into a {@link CompressionInputStream} to compress data.
  26814. This is modelled after {@link java.util.zip.Inflater}]]>
  26815. </doc>
  26816. </interface>
  26817. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  26818. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  26819. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  26820. abstract="false"
  26821. static="false" final="false" visibility="public"
  26822. deprecated="not deprecated">
  26823. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  26824. static="false" final="false" visibility="public"
  26825. deprecated="not deprecated">
  26826. <exception name="IOException" type="java.io.IOException"/>
  26827. </constructor>
  26828. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  26829. static="false" final="false" visibility="public"
  26830. deprecated="not deprecated">
  26831. <exception name="IOException" type="java.io.IOException"/>
  26832. </constructor>
  26833. <constructor name="DecompressorStream" type="java.io.InputStream"
  26834. static="false" final="false" visibility="protected"
  26835. deprecated="not deprecated">
  26836. <exception name="IOException" type="java.io.IOException"/>
  26837. <doc>
  26838. <![CDATA[Allow derived classes to directly set the underlying stream.
  26839. @param in Underlying input stream.
  26840. @throws IOException]]>
  26841. </doc>
  26842. </constructor>
  26843. <method name="read" return="int"
  26844. abstract="false" native="false" synchronized="false"
  26845. static="false" final="false" visibility="public"
  26846. deprecated="not deprecated">
  26847. <exception name="IOException" type="java.io.IOException"/>
  26848. </method>
  26849. <method name="read" return="int"
  26850. abstract="false" native="false" synchronized="false"
  26851. static="false" final="false" visibility="public"
  26852. deprecated="not deprecated">
  26853. <param name="b" type="byte[]"/>
  26854. <param name="off" type="int"/>
  26855. <param name="len" type="int"/>
  26856. <exception name="IOException" type="java.io.IOException"/>
  26857. </method>
  26858. <method name="decompress" return="int"
  26859. abstract="false" native="false" synchronized="false"
  26860. static="false" final="false" visibility="protected"
  26861. deprecated="not deprecated">
  26862. <param name="b" type="byte[]"/>
  26863. <param name="off" type="int"/>
  26864. <param name="len" type="int"/>
  26865. <exception name="IOException" type="java.io.IOException"/>
  26866. </method>
  26867. <method name="getCompressedData" return="int"
  26868. abstract="false" native="false" synchronized="false"
  26869. static="false" final="false" visibility="protected"
  26870. deprecated="not deprecated">
  26871. <exception name="IOException" type="java.io.IOException"/>
  26872. </method>
  26873. <method name="checkStream"
  26874. abstract="false" native="false" synchronized="false"
  26875. static="false" final="false" visibility="protected"
  26876. deprecated="not deprecated">
  26877. <exception name="IOException" type="java.io.IOException"/>
  26878. </method>
  26879. <method name="resetState"
  26880. abstract="false" native="false" synchronized="false"
  26881. static="false" final="false" visibility="public"
  26882. deprecated="not deprecated">
  26883. <exception name="IOException" type="java.io.IOException"/>
  26884. </method>
  26885. <method name="skip" return="long"
  26886. abstract="false" native="false" synchronized="false"
  26887. static="false" final="false" visibility="public"
  26888. deprecated="not deprecated">
  26889. <param name="n" type="long"/>
  26890. <exception name="IOException" type="java.io.IOException"/>
  26891. </method>
  26892. <method name="available" return="int"
  26893. abstract="false" native="false" synchronized="false"
  26894. static="false" final="false" visibility="public"
  26895. deprecated="not deprecated">
  26896. <exception name="IOException" type="java.io.IOException"/>
  26897. </method>
  26898. <method name="close"
  26899. abstract="false" native="false" synchronized="false"
  26900. static="false" final="false" visibility="public"
  26901. deprecated="not deprecated">
  26902. <exception name="IOException" type="java.io.IOException"/>
  26903. </method>
  26904. <method name="markSupported" return="boolean"
  26905. abstract="false" native="false" synchronized="false"
  26906. static="false" final="false" visibility="public"
  26907. deprecated="not deprecated">
  26908. </method>
  26909. <method name="mark"
  26910. abstract="false" native="false" synchronized="true"
  26911. static="false" final="false" visibility="public"
  26912. deprecated="not deprecated">
  26913. <param name="readlimit" type="int"/>
  26914. </method>
  26915. <method name="reset"
  26916. abstract="false" native="false" synchronized="true"
  26917. static="false" final="false" visibility="public"
  26918. deprecated="not deprecated">
  26919. <exception name="IOException" type="java.io.IOException"/>
  26920. </method>
  26921. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  26922. transient="false" volatile="false"
  26923. static="false" final="false" visibility="protected"
  26924. deprecated="not deprecated">
  26925. </field>
  26926. <field name="buffer" type="byte[]"
  26927. transient="false" volatile="false"
  26928. static="false" final="false" visibility="protected"
  26929. deprecated="not deprecated">
  26930. </field>
  26931. <field name="eof" type="boolean"
  26932. transient="false" volatile="false"
  26933. static="false" final="false" visibility="protected"
  26934. deprecated="not deprecated">
  26935. </field>
  26936. <field name="closed" type="boolean"
  26937. transient="false" volatile="false"
  26938. static="false" final="false" visibility="protected"
  26939. deprecated="not deprecated">
  26940. </field>
  26941. </class>
  26942. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  26943. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  26944. <class name="DefaultCodec" extends="java.lang.Object"
  26945. abstract="false"
  26946. static="false" final="false" visibility="public"
  26947. deprecated="not deprecated">
  26948. <implements name="org.apache.hadoop.conf.Configurable"/>
  26949. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  26950. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  26951. <constructor name="DefaultCodec"
  26952. static="false" final="false" visibility="public"
  26953. deprecated="not deprecated">
  26954. </constructor>
  26955. <method name="setConf"
  26956. abstract="false" native="false" synchronized="false"
  26957. static="false" final="false" visibility="public"
  26958. deprecated="not deprecated">
  26959. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26960. </method>
  26961. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26962. abstract="false" native="false" synchronized="false"
  26963. static="false" final="false" visibility="public"
  26964. deprecated="not deprecated">
  26965. </method>
  26966. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26967. abstract="false" native="false" synchronized="false"
  26968. static="false" final="false" visibility="public"
  26969. deprecated="not deprecated">
  26970. <param name="out" type="java.io.OutputStream"/>
  26971. <exception name="IOException" type="java.io.IOException"/>
  26972. </method>
  26973. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26974. abstract="false" native="false" synchronized="false"
  26975. static="false" final="false" visibility="public"
  26976. deprecated="not deprecated">
  26977. <param name="out" type="java.io.OutputStream"/>
  26978. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26979. <exception name="IOException" type="java.io.IOException"/>
  26980. </method>
  26981. <method name="getCompressorType" return="java.lang.Class"
  26982. abstract="false" native="false" synchronized="false"
  26983. static="false" final="false" visibility="public"
  26984. deprecated="not deprecated">
  26985. </method>
  26986. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  26987. abstract="false" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. </method>
  26991. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26992. abstract="false" native="false" synchronized="false"
  26993. static="false" final="false" visibility="public"
  26994. deprecated="not deprecated">
  26995. <param name="in" type="java.io.InputStream"/>
  26996. <exception name="IOException" type="java.io.IOException"/>
  26997. </method>
  26998. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  26999. abstract="false" native="false" synchronized="false"
  27000. static="false" final="false" visibility="public"
  27001. deprecated="not deprecated">
  27002. <param name="in" type="java.io.InputStream"/>
  27003. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27004. <exception name="IOException" type="java.io.IOException"/>
  27005. </method>
  27006. <method name="getDecompressorType" return="java.lang.Class"
  27007. abstract="false" native="false" synchronized="false"
  27008. static="false" final="false" visibility="public"
  27009. deprecated="not deprecated">
  27010. </method>
  27011. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27012. abstract="false" native="false" synchronized="false"
  27013. static="false" final="false" visibility="public"
  27014. deprecated="not deprecated">
  27015. </method>
  27016. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27017. abstract="false" native="false" synchronized="false"
  27018. static="false" final="false" visibility="public"
  27019. deprecated="not deprecated">
  27020. <doc>
  27021. <![CDATA[{@inheritDoc}]]>
  27022. </doc>
  27023. </method>
  27024. <method name="getDefaultExtension" return="java.lang.String"
  27025. abstract="false" native="false" synchronized="false"
  27026. static="false" final="false" visibility="public"
  27027. deprecated="not deprecated">
  27028. </method>
  27029. </class>
  27030. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  27031. <!-- start class org.apache.hadoop.io.compress.DeflateCodec -->
  27032. <class name="DeflateCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  27033. abstract="false"
  27034. static="false" final="false" visibility="public"
  27035. deprecated="not deprecated">
  27036. <constructor name="DeflateCodec"
  27037. static="false" final="false" visibility="public"
  27038. deprecated="not deprecated">
  27039. </constructor>
  27040. <doc>
  27041. <![CDATA[Alias class for DefaultCodec to enable codec discovery by 'deflate' name.]]>
  27042. </doc>
  27043. </class>
  27044. <!-- end class org.apache.hadoop.io.compress.DeflateCodec -->
  27045. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  27046. <interface name="DirectDecompressionCodec" abstract="true"
  27047. static="false" final="false" visibility="public"
  27048. deprecated="not deprecated">
  27049. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27050. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27051. abstract="false" native="false" synchronized="false"
  27052. static="false" final="false" visibility="public"
  27053. deprecated="not deprecated">
  27054. <doc>
  27055. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  27056. @return a new direct decompressor for use by this codec]]>
  27057. </doc>
  27058. </method>
  27059. <doc>
  27060. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  27061. </doc>
  27062. </interface>
  27063. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  27064. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  27065. <interface name="DirectDecompressor" abstract="true"
  27066. static="false" final="false" visibility="public"
  27067. deprecated="not deprecated">
  27068. <method name="decompress"
  27069. abstract="false" native="false" synchronized="false"
  27070. static="false" final="false" visibility="public"
  27071. deprecated="not deprecated">
  27072. <param name="src" type="java.nio.ByteBuffer"/>
  27073. <param name="dst" type="java.nio.ByteBuffer"/>
  27074. <exception name="IOException" type="java.io.IOException"/>
  27075. </method>
  27076. <doc>
  27077. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  27078. </doc>
  27079. </interface>
  27080. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  27081. <!-- start class org.apache.hadoop.io.compress.DoNotPool -->
  27082. <class name="DoNotPool" abstract="true"
  27083. static="false" final="false" visibility="public"
  27084. deprecated="not deprecated">
  27085. <implements name="java.lang.annotation.Annotation"/>
  27086. <doc>
  27087. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  27088. type as not to be pooled.]]>
  27089. </doc>
  27090. </class>
  27091. <!-- end class org.apache.hadoop.io.compress.DoNotPool -->
  27092. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  27093. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  27094. abstract="false"
  27095. static="false" final="false" visibility="public"
  27096. deprecated="not deprecated">
  27097. <constructor name="GzipCodec"
  27098. static="false" final="false" visibility="public"
  27099. deprecated="not deprecated">
  27100. </constructor>
  27101. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27102. abstract="false" native="false" synchronized="false"
  27103. static="false" final="false" visibility="public"
  27104. deprecated="not deprecated">
  27105. <param name="out" type="java.io.OutputStream"/>
  27106. <exception name="IOException" type="java.io.IOException"/>
  27107. </method>
  27108. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27109. abstract="false" native="false" synchronized="false"
  27110. static="false" final="false" visibility="public"
  27111. deprecated="not deprecated">
  27112. <param name="out" type="java.io.OutputStream"/>
  27113. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27114. <exception name="IOException" type="java.io.IOException"/>
  27115. </method>
  27116. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27117. abstract="false" native="false" synchronized="false"
  27118. static="false" final="false" visibility="public"
  27119. deprecated="not deprecated">
  27120. </method>
  27121. <method name="getCompressorType" return="java.lang.Class"
  27122. abstract="false" native="false" synchronized="false"
  27123. static="false" final="false" visibility="public"
  27124. deprecated="not deprecated">
  27125. </method>
  27126. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27127. abstract="false" native="false" synchronized="false"
  27128. static="false" final="false" visibility="public"
  27129. deprecated="not deprecated">
  27130. <param name="in" type="java.io.InputStream"/>
  27131. <exception name="IOException" type="java.io.IOException"/>
  27132. </method>
  27133. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27134. abstract="false" native="false" synchronized="false"
  27135. static="false" final="false" visibility="public"
  27136. deprecated="not deprecated">
  27137. <param name="in" type="java.io.InputStream"/>
  27138. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27139. <exception name="IOException" type="java.io.IOException"/>
  27140. </method>
  27141. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27142. abstract="false" native="false" synchronized="false"
  27143. static="false" final="false" visibility="public"
  27144. deprecated="not deprecated">
  27145. </method>
  27146. <method name="getDecompressorType" return="java.lang.Class"
  27147. abstract="false" native="false" synchronized="false"
  27148. static="false" final="false" visibility="public"
  27149. deprecated="not deprecated">
  27150. </method>
  27151. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27152. abstract="false" native="false" synchronized="false"
  27153. static="false" final="false" visibility="public"
  27154. deprecated="not deprecated">
  27155. </method>
  27156. <method name="getDefaultExtension" return="java.lang.String"
  27157. abstract="false" native="false" synchronized="false"
  27158. static="false" final="false" visibility="public"
  27159. deprecated="not deprecated">
  27160. </method>
  27161. <doc>
  27162. <![CDATA[This class creates gzip compressors/decompressors.]]>
  27163. </doc>
  27164. </class>
  27165. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  27166. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  27167. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  27168. abstract="false"
  27169. static="true" final="false" visibility="protected"
  27170. deprecated="not deprecated">
  27171. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  27172. static="false" final="false" visibility="public"
  27173. deprecated="not deprecated">
  27174. <exception name="IOException" type="java.io.IOException"/>
  27175. </constructor>
  27176. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  27177. static="false" final="false" visibility="protected"
  27178. deprecated="not deprecated">
  27179. <doc>
  27180. <![CDATA[Allow children types to put a different type in here.
  27181. @param out the Deflater stream to use]]>
  27182. </doc>
  27183. </constructor>
  27184. <method name="close"
  27185. abstract="false" native="false" synchronized="false"
  27186. static="false" final="false" visibility="public"
  27187. deprecated="not deprecated">
  27188. <exception name="IOException" type="java.io.IOException"/>
  27189. </method>
  27190. <method name="flush"
  27191. abstract="false" native="false" synchronized="false"
  27192. static="false" final="false" visibility="public"
  27193. deprecated="not deprecated">
  27194. <exception name="IOException" type="java.io.IOException"/>
  27195. </method>
  27196. <method name="write"
  27197. abstract="false" native="false" synchronized="false"
  27198. static="false" final="false" visibility="public"
  27199. deprecated="not deprecated">
  27200. <param name="b" type="int"/>
  27201. <exception name="IOException" type="java.io.IOException"/>
  27202. </method>
  27203. <method name="write"
  27204. abstract="false" native="false" synchronized="false"
  27205. static="false" final="false" visibility="public"
  27206. deprecated="not deprecated">
  27207. <param name="data" type="byte[]"/>
  27208. <param name="offset" type="int"/>
  27209. <param name="length" type="int"/>
  27210. <exception name="IOException" type="java.io.IOException"/>
  27211. </method>
  27212. <method name="finish"
  27213. abstract="false" native="false" synchronized="false"
  27214. static="false" final="false" visibility="public"
  27215. deprecated="not deprecated">
  27216. <exception name="IOException" type="java.io.IOException"/>
  27217. </method>
  27218. <method name="resetState"
  27219. abstract="false" native="false" synchronized="false"
  27220. static="false" final="false" visibility="public"
  27221. deprecated="not deprecated">
  27222. <exception name="IOException" type="java.io.IOException"/>
  27223. </method>
  27224. <doc>
  27225. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  27226. a CompressionOutputStream.]]>
  27227. </doc>
  27228. </class>
  27229. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  27230. <!-- start class org.apache.hadoop.io.compress.Lz4Codec -->
  27231. <class name="Lz4Codec" extends="java.lang.Object"
  27232. abstract="false"
  27233. static="false" final="false" visibility="public"
  27234. deprecated="not deprecated">
  27235. <implements name="org.apache.hadoop.conf.Configurable"/>
  27236. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27237. <constructor name="Lz4Codec"
  27238. static="false" final="false" visibility="public"
  27239. deprecated="not deprecated">
  27240. </constructor>
  27241. <method name="setConf"
  27242. abstract="false" native="false" synchronized="false"
  27243. static="false" final="false" visibility="public"
  27244. deprecated="not deprecated">
  27245. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27246. <doc>
  27247. <![CDATA[Set the configuration to be used by this object.
  27248. @param conf the configuration object.]]>
  27249. </doc>
  27250. </method>
  27251. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27252. abstract="false" native="false" synchronized="false"
  27253. static="false" final="false" visibility="public"
  27254. deprecated="not deprecated">
  27255. <doc>
  27256. <![CDATA[Return the configuration used by this object.
  27257. @return the configuration object used by this objec.]]>
  27258. </doc>
  27259. </method>
  27260. <method name="isNativeCodeLoaded" return="boolean"
  27261. abstract="false" native="false" synchronized="false"
  27262. static="true" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. <doc>
  27265. <![CDATA[Are the native lz4 libraries loaded & initialized?
  27266. @return true if loaded & initialized, otherwise false]]>
  27267. </doc>
  27268. </method>
  27269. <method name="getLibraryName" return="java.lang.String"
  27270. abstract="false" native="false" synchronized="false"
  27271. static="true" final="false" visibility="public"
  27272. deprecated="not deprecated">
  27273. </method>
  27274. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27275. abstract="false" native="false" synchronized="false"
  27276. static="false" final="false" visibility="public"
  27277. deprecated="not deprecated">
  27278. <param name="out" type="java.io.OutputStream"/>
  27279. <exception name="IOException" type="java.io.IOException"/>
  27280. <doc>
  27281. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  27282. {@link OutputStream}.
  27283. @param out the location for the final output stream
  27284. @return a stream the user can write uncompressed data to have it compressed
  27285. @throws IOException]]>
  27286. </doc>
  27287. </method>
  27288. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27289. abstract="false" native="false" synchronized="false"
  27290. static="false" final="false" visibility="public"
  27291. deprecated="not deprecated">
  27292. <param name="out" type="java.io.OutputStream"/>
  27293. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27294. <exception name="IOException" type="java.io.IOException"/>
  27295. <doc>
  27296. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  27297. {@link OutputStream} with the given {@link Compressor}.
  27298. @param out the location for the final output stream
  27299. @param compressor compressor to use
  27300. @return a stream the user can write uncompressed data to have it compressed
  27301. @throws IOException]]>
  27302. </doc>
  27303. </method>
  27304. <method name="getCompressorType" return="java.lang.Class"
  27305. abstract="false" native="false" synchronized="false"
  27306. static="false" final="false" visibility="public"
  27307. deprecated="not deprecated">
  27308. <doc>
  27309. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  27310. @return the type of compressor needed by this codec.]]>
  27311. </doc>
  27312. </method>
  27313. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27314. abstract="false" native="false" synchronized="false"
  27315. static="false" final="false" visibility="public"
  27316. deprecated="not deprecated">
  27317. <doc>
  27318. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  27319. @return a new compressor for use by this codec]]>
  27320. </doc>
  27321. </method>
  27322. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27323. abstract="false" native="false" synchronized="false"
  27324. static="false" final="false" visibility="public"
  27325. deprecated="not deprecated">
  27326. <param name="in" type="java.io.InputStream"/>
  27327. <exception name="IOException" type="java.io.IOException"/>
  27328. <doc>
  27329. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27330. input stream.
  27331. @param in the stream to read compressed bytes from
  27332. @return a stream to read uncompressed bytes from
  27333. @throws IOException]]>
  27334. </doc>
  27335. </method>
  27336. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27337. abstract="false" native="false" synchronized="false"
  27338. static="false" final="false" visibility="public"
  27339. deprecated="not deprecated">
  27340. <param name="in" type="java.io.InputStream"/>
  27341. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27342. <exception name="IOException" type="java.io.IOException"/>
  27343. <doc>
  27344. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27345. {@link InputStream} with the given {@link Decompressor}.
  27346. @param in the stream to read compressed bytes from
  27347. @param decompressor decompressor to use
  27348. @return a stream to read uncompressed bytes from
  27349. @throws IOException]]>
  27350. </doc>
  27351. </method>
  27352. <method name="getDecompressorType" return="java.lang.Class"
  27353. abstract="false" native="false" synchronized="false"
  27354. static="false" final="false" visibility="public"
  27355. deprecated="not deprecated">
  27356. <doc>
  27357. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  27358. @return the type of decompressor needed by this codec.]]>
  27359. </doc>
  27360. </method>
  27361. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27362. abstract="false" native="false" synchronized="false"
  27363. static="false" final="false" visibility="public"
  27364. deprecated="not deprecated">
  27365. <doc>
  27366. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  27367. @return a new decompressor for use by this codec]]>
  27368. </doc>
  27369. </method>
  27370. <method name="getDefaultExtension" return="java.lang.String"
  27371. abstract="false" native="false" synchronized="false"
  27372. static="false" final="false" visibility="public"
  27373. deprecated="not deprecated">
  27374. <doc>
  27375. <![CDATA[Get the default filename extension for this kind of compression.
  27376. @return <code>.lz4</code>.]]>
  27377. </doc>
  27378. </method>
  27379. <doc>
  27380. <![CDATA[This class creates lz4 compressors/decompressors.]]>
  27381. </doc>
  27382. </class>
  27383. <!-- end class org.apache.hadoop.io.compress.Lz4Codec -->
  27384. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  27385. <class name="SnappyCodec" extends="java.lang.Object"
  27386. abstract="false"
  27387. static="false" final="false" visibility="public"
  27388. deprecated="not deprecated">
  27389. <implements name="org.apache.hadoop.conf.Configurable"/>
  27390. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27391. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  27392. <constructor name="SnappyCodec"
  27393. static="false" final="false" visibility="public"
  27394. deprecated="not deprecated">
  27395. </constructor>
  27396. <method name="setConf"
  27397. abstract="false" native="false" synchronized="false"
  27398. static="false" final="false" visibility="public"
  27399. deprecated="not deprecated">
  27400. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27401. <doc>
  27402. <![CDATA[Set the configuration to be used by this object.
  27403. @param conf the configuration object.]]>
  27404. </doc>
  27405. </method>
  27406. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  27407. abstract="false" native="false" synchronized="false"
  27408. static="false" final="false" visibility="public"
  27409. deprecated="not deprecated">
  27410. <doc>
  27411. <![CDATA[Return the configuration used by this object.
  27412. @return the configuration object used by this objec.]]>
  27413. </doc>
  27414. </method>
  27415. <method name="checkNativeCodeLoaded"
  27416. abstract="false" native="false" synchronized="false"
  27417. static="true" final="false" visibility="public"
  27418. deprecated="not deprecated">
  27419. <doc>
  27420. <![CDATA[Are the native snappy libraries loaded & initialized?]]>
  27421. </doc>
  27422. </method>
  27423. <method name="isNativeCodeLoaded" return="boolean"
  27424. abstract="false" native="false" synchronized="false"
  27425. static="true" final="false" visibility="public"
  27426. deprecated="not deprecated">
  27427. </method>
  27428. <method name="getLibraryName" return="java.lang.String"
  27429. abstract="false" native="false" synchronized="false"
  27430. static="true" final="false" visibility="public"
  27431. deprecated="not deprecated">
  27432. </method>
  27433. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27434. abstract="false" native="false" synchronized="false"
  27435. static="false" final="false" visibility="public"
  27436. deprecated="not deprecated">
  27437. <param name="out" type="java.io.OutputStream"/>
  27438. <exception name="IOException" type="java.io.IOException"/>
  27439. <doc>
  27440. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  27441. {@link OutputStream}.
  27442. @param out the location for the final output stream
  27443. @return a stream the user can write uncompressed data to have it compressed
  27444. @throws IOException]]>
  27445. </doc>
  27446. </method>
  27447. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27448. abstract="false" native="false" synchronized="false"
  27449. static="false" final="false" visibility="public"
  27450. deprecated="not deprecated">
  27451. <param name="out" type="java.io.OutputStream"/>
  27452. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27453. <exception name="IOException" type="java.io.IOException"/>
  27454. <doc>
  27455. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  27456. {@link OutputStream} with the given {@link Compressor}.
  27457. @param out the location for the final output stream
  27458. @param compressor compressor to use
  27459. @return a stream the user can write uncompressed data to have it compressed
  27460. @throws IOException]]>
  27461. </doc>
  27462. </method>
  27463. <method name="getCompressorType" return="java.lang.Class"
  27464. abstract="false" native="false" synchronized="false"
  27465. static="false" final="false" visibility="public"
  27466. deprecated="not deprecated">
  27467. <doc>
  27468. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  27469. @return the type of compressor needed by this codec.]]>
  27470. </doc>
  27471. </method>
  27472. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27473. abstract="false" native="false" synchronized="false"
  27474. static="false" final="false" visibility="public"
  27475. deprecated="not deprecated">
  27476. <doc>
  27477. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  27478. @return a new compressor for use by this codec]]>
  27479. </doc>
  27480. </method>
  27481. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27482. abstract="false" native="false" synchronized="false"
  27483. static="false" final="false" visibility="public"
  27484. deprecated="not deprecated">
  27485. <param name="in" type="java.io.InputStream"/>
  27486. <exception name="IOException" type="java.io.IOException"/>
  27487. <doc>
  27488. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27489. input stream.
  27490. @param in the stream to read compressed bytes from
  27491. @return a stream to read uncompressed bytes from
  27492. @throws IOException]]>
  27493. </doc>
  27494. </method>
  27495. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27496. abstract="false" native="false" synchronized="false"
  27497. static="false" final="false" visibility="public"
  27498. deprecated="not deprecated">
  27499. <param name="in" type="java.io.InputStream"/>
  27500. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27501. <exception name="IOException" type="java.io.IOException"/>
  27502. <doc>
  27503. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27504. {@link InputStream} with the given {@link Decompressor}.
  27505. @param in the stream to read compressed bytes from
  27506. @param decompressor decompressor to use
  27507. @return a stream to read uncompressed bytes from
  27508. @throws IOException]]>
  27509. </doc>
  27510. </method>
  27511. <method name="getDecompressorType" return="java.lang.Class"
  27512. abstract="false" native="false" synchronized="false"
  27513. static="false" final="false" visibility="public"
  27514. deprecated="not deprecated">
  27515. <doc>
  27516. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  27517. @return the type of decompressor needed by this codec.]]>
  27518. </doc>
  27519. </method>
  27520. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27521. abstract="false" native="false" synchronized="false"
  27522. static="false" final="false" visibility="public"
  27523. deprecated="not deprecated">
  27524. <doc>
  27525. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  27526. @return a new decompressor for use by this codec]]>
  27527. </doc>
  27528. </method>
  27529. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  27530. abstract="false" native="false" synchronized="false"
  27531. static="false" final="false" visibility="public"
  27532. deprecated="not deprecated">
  27533. <doc>
  27534. <![CDATA[{@inheritDoc}]]>
  27535. </doc>
  27536. </method>
  27537. <method name="getDefaultExtension" return="java.lang.String"
  27538. abstract="false" native="false" synchronized="false"
  27539. static="false" final="false" visibility="public"
  27540. deprecated="not deprecated">
  27541. <doc>
  27542. <![CDATA[Get the default filename extension for this kind of compression.
  27543. @return <code>.snappy</code>.]]>
  27544. </doc>
  27545. </method>
  27546. <doc>
  27547. <![CDATA[This class creates snappy compressors/decompressors.]]>
  27548. </doc>
  27549. </class>
  27550. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  27551. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  27552. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  27553. abstract="true"
  27554. static="false" final="false" visibility="public"
  27555. deprecated="not deprecated">
  27556. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  27557. static="false" final="false" visibility="public"
  27558. deprecated="not deprecated">
  27559. <exception name="IOException" type="java.io.IOException"/>
  27560. </constructor>
  27561. <method name="setStart"
  27562. abstract="false" native="false" synchronized="false"
  27563. static="false" final="false" visibility="protected"
  27564. deprecated="not deprecated">
  27565. <param name="start" type="long"/>
  27566. </method>
  27567. <method name="setEnd"
  27568. abstract="false" native="false" synchronized="false"
  27569. static="false" final="false" visibility="protected"
  27570. deprecated="not deprecated">
  27571. <param name="end" type="long"/>
  27572. </method>
  27573. <method name="getAdjustedStart" return="long"
  27574. abstract="false" native="false" synchronized="false"
  27575. static="false" final="false" visibility="public"
  27576. deprecated="not deprecated">
  27577. <doc>
  27578. <![CDATA[After calling createInputStream, the values of start or end
  27579. might change. So this method can be used to get the new value of start.
  27580. @return The changed value of start]]>
  27581. </doc>
  27582. </method>
  27583. <method name="getAdjustedEnd" return="long"
  27584. abstract="false" native="false" synchronized="false"
  27585. static="false" final="false" visibility="public"
  27586. deprecated="not deprecated">
  27587. <doc>
  27588. <![CDATA[After calling createInputStream, the values of start or end
  27589. might change. So this method can be used to get the new value of end.
  27590. @return The changed value of end]]>
  27591. </doc>
  27592. </method>
  27593. <doc>
  27594. <![CDATA[An InputStream covering a range of compressed data. The start and end
  27595. offsets requested by a client may be modified by the codec to fit block
  27596. boundaries or other algorithm-dependent requirements.]]>
  27597. </doc>
  27598. </class>
  27599. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  27600. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  27601. <interface name="SplittableCompressionCodec" abstract="true"
  27602. static="false" final="false" visibility="public"
  27603. deprecated="not deprecated">
  27604. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  27605. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  27606. abstract="false" native="false" synchronized="false"
  27607. static="false" final="false" visibility="public"
  27608. deprecated="not deprecated">
  27609. <param name="seekableIn" type="java.io.InputStream"/>
  27610. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27611. <param name="start" type="long"/>
  27612. <param name="end" type="long"/>
  27613. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  27614. <exception name="IOException" type="java.io.IOException"/>
  27615. <doc>
  27616. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  27617. the codecs wants the ability to work with the underlying stream positions.
  27618. @param seekableIn The seekable input stream (seeks in compressed data)
  27619. @param start The start offset into the compressed stream. May be changed
  27620. by the underlying codec.
  27621. @param end The end offset into the compressed stream. May be changed by
  27622. the underlying codec.
  27623. @param readMode Controls whether stream position is reported continuously
  27624. from the compressed stream only only at block boundaries.
  27625. @return a stream to read uncompressed bytes from]]>
  27626. </doc>
  27627. </method>
  27628. <doc>
  27629. <![CDATA[This interface is meant to be implemented by those compression codecs
  27630. which are capable to compress / de-compress a stream starting at any
  27631. arbitrary position.
  27632. Especially the process of de-compressing a stream starting at some arbitrary
  27633. position is challenging. Most of the codecs are only able to successfully
  27634. de-compress a stream, if they start from the very beginning till the end.
  27635. One of the reasons is the stored state at the beginning of the stream which
  27636. is crucial for de-compression.
  27637. Yet there are few codecs which do not save the whole state at the beginning
  27638. of the stream and hence can be used to de-compress stream starting at any
  27639. arbitrary points. This interface is meant to be used by such codecs. Such
  27640. codecs are highly valuable, especially in the context of Hadoop, because
  27641. an input compressed file can be split and hence can be worked on by multiple
  27642. machines in parallel.]]>
  27643. </doc>
  27644. </interface>
  27645. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  27646. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  27647. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  27648. abstract="false"
  27649. static="true" final="true" visibility="public"
  27650. deprecated="not deprecated">
  27651. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  27652. abstract="false" native="false" synchronized="false"
  27653. static="true" final="false" visibility="public"
  27654. deprecated="not deprecated">
  27655. </method>
  27656. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  27657. abstract="false" native="false" synchronized="false"
  27658. static="true" final="false" visibility="public"
  27659. deprecated="not deprecated">
  27660. <param name="name" type="java.lang.String"/>
  27661. </method>
  27662. <doc>
  27663. <![CDATA[During decompression, data can be read off from the decompressor in two
  27664. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  27665. of compressing data in blocks and then decompressing the blocks. In
  27666. Blocked reading mode codecs inform 'end of block' events to its caller.
  27667. While in continuous mode, the caller of codecs is unaware about the blocks
  27668. and uncompressed data is spilled out like a continuous stream.]]>
  27669. </doc>
  27670. </class>
  27671. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  27672. </package>
  27673. <package name="org.apache.hadoop.io.file.tfile">
  27674. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  27675. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  27676. abstract="false"
  27677. static="false" final="false" visibility="public"
  27678. deprecated="not deprecated">
  27679. <doc>
  27680. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  27681. </doc>
  27682. </class>
  27683. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  27684. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  27685. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  27686. abstract="false"
  27687. static="false" final="false" visibility="public"
  27688. deprecated="not deprecated">
  27689. <doc>
  27690. <![CDATA[Exception - No such Meta Block with the given name.]]>
  27691. </doc>
  27692. </class>
  27693. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  27694. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  27695. <interface name="RawComparable" abstract="true"
  27696. static="false" final="false" visibility="public"
  27697. deprecated="not deprecated">
  27698. <method name="buffer" return="byte[]"
  27699. abstract="false" native="false" synchronized="false"
  27700. static="false" final="false" visibility="public"
  27701. deprecated="not deprecated">
  27702. <doc>
  27703. <![CDATA[Get the underlying byte array.
  27704. @return The underlying byte array.]]>
  27705. </doc>
  27706. </method>
  27707. <method name="offset" return="int"
  27708. abstract="false" native="false" synchronized="false"
  27709. static="false" final="false" visibility="public"
  27710. deprecated="not deprecated">
  27711. <doc>
  27712. <![CDATA[Get the offset of the first byte in the byte array.
  27713. @return The offset of the first byte in the byte array.]]>
  27714. </doc>
  27715. </method>
  27716. <method name="size" return="int"
  27717. abstract="false" native="false" synchronized="false"
  27718. static="false" final="false" visibility="public"
  27719. deprecated="not deprecated">
  27720. <doc>
  27721. <![CDATA[Get the size of the byte range in the byte array.
  27722. @return The size of the byte range in the byte array.]]>
  27723. </doc>
  27724. </method>
  27725. <doc>
  27726. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  27727. This is useful in places where we need a single object reference to specify a
  27728. range of bytes in a byte array, such as {@link Comparable} or
  27729. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  27730. The actual comparison among RawComparable's requires an external
  27731. RawComparator and it is applications' responsibility to ensure two
  27732. RawComparable are supposed to be semantically comparable with the same
  27733. RawComparator.]]>
  27734. </doc>
  27735. </interface>
  27736. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  27737. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  27738. <class name="TFile" extends="java.lang.Object"
  27739. abstract="false"
  27740. static="false" final="false" visibility="public"
  27741. deprecated="not deprecated">
  27742. <method name="makeComparator" return="java.util.Comparator"
  27743. abstract="false" native="false" synchronized="false"
  27744. static="true" final="false" visibility="public"
  27745. deprecated="not deprecated">
  27746. <param name="name" type="java.lang.String"/>
  27747. <doc>
  27748. <![CDATA[Make a raw comparator from a string name.
  27749. @param name
  27750. Comparator name
  27751. @return A RawComparable comparator.]]>
  27752. </doc>
  27753. </method>
  27754. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  27755. abstract="false" native="false" synchronized="false"
  27756. static="true" final="false" visibility="public"
  27757. deprecated="not deprecated">
  27758. <doc>
  27759. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  27760. TFile.Writer.
  27761. @return Array of strings, each represents a supported compression
  27762. algorithm. Currently, the following compression algorithms are
  27763. supported.
  27764. <ul>
  27765. <li>"none" - No compression.
  27766. <li>"lzo" - LZO compression.
  27767. <li>"gz" - GZIP compression.
  27768. </ul>]]>
  27769. </doc>
  27770. </method>
  27771. <method name="main"
  27772. abstract="false" native="false" synchronized="false"
  27773. static="true" final="false" visibility="public"
  27774. deprecated="not deprecated">
  27775. <param name="args" type="java.lang.String[]"/>
  27776. <doc>
  27777. <![CDATA[Dumping the TFile information.
  27778. @param args
  27779. A list of TFile paths.]]>
  27780. </doc>
  27781. </method>
  27782. <field name="COMPRESSION_GZ" type="java.lang.String"
  27783. transient="false" volatile="false"
  27784. static="true" final="true" visibility="public"
  27785. deprecated="not deprecated">
  27786. <doc>
  27787. <![CDATA[compression: gzip]]>
  27788. </doc>
  27789. </field>
  27790. <field name="COMPRESSION_LZO" type="java.lang.String"
  27791. transient="false" volatile="false"
  27792. static="true" final="true" visibility="public"
  27793. deprecated="not deprecated">
  27794. <doc>
  27795. <![CDATA[compression: lzo]]>
  27796. </doc>
  27797. </field>
  27798. <field name="COMPRESSION_NONE" type="java.lang.String"
  27799. transient="false" volatile="false"
  27800. static="true" final="true" visibility="public"
  27801. deprecated="not deprecated">
  27802. <doc>
  27803. <![CDATA[compression: none]]>
  27804. </doc>
  27805. </field>
  27806. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  27807. transient="false" volatile="false"
  27808. static="true" final="true" visibility="public"
  27809. deprecated="not deprecated">
  27810. <doc>
  27811. <![CDATA[comparator: memcmp]]>
  27812. </doc>
  27813. </field>
  27814. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  27815. transient="false" volatile="false"
  27816. static="true" final="true" visibility="public"
  27817. deprecated="not deprecated">
  27818. <doc>
  27819. <![CDATA[comparator prefix: java class]]>
  27820. </doc>
  27821. </field>
  27822. <doc>
  27823. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  27824. bytes. Keys are restricted to 64KB, value length is not restricted
  27825. (practically limited to the available disk storage). TFile further provides
  27826. the following features:
  27827. <ul>
  27828. <li>Block Compression.
  27829. <li>Named meta data blocks.
  27830. <li>Sorted or unsorted keys.
  27831. <li>Seek by key or by file offset.
  27832. </ul>
  27833. The memory footprint of a TFile includes the following:
  27834. <ul>
  27835. <li>Some constant overhead of reading or writing a compressed block.
  27836. <ul>
  27837. <li>Each compressed block requires one compression/decompression codec for
  27838. I/O.
  27839. <li>Temporary space to buffer the key.
  27840. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  27841. chunk encoded, so that we buffer at most one chunk of user data. By default,
  27842. the chunk buffer is 1MB. Reading chunked value does not require additional
  27843. memory.
  27844. </ul>
  27845. <li>TFile index, which is proportional to the total number of Data Blocks.
  27846. The total amount of memory needed to hold the index can be estimated as
  27847. (56+AvgKeySize)*NumBlocks.
  27848. <li>MetaBlock index, which is proportional to the total number of Meta
  27849. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  27850. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  27851. </ul>
  27852. <p>
  27853. The behavior of TFile can be customized by the following variables through
  27854. Configuration:
  27855. <ul>
  27856. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  27857. to 1MB. Values of the length less than the chunk size is guaranteed to have
  27858. known value length in read time (See
  27859. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  27860. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  27861. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  27862. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  27863. FSDataInputStream. Integer (in bytes). Default to 256KB.
  27864. </ul>
  27865. <p>
  27866. Suggestions on performance optimization.
  27867. <ul>
  27868. <li>Minimum block size. We recommend a setting of minimum block size between
  27869. 256KB to 1MB for general usage. Larger block size is preferred if files are
  27870. primarily for sequential access. However, it would lead to inefficient random
  27871. access (because there are more data to decompress). Smaller blocks are good
  27872. for random access, but require more memory to hold the block index, and may
  27873. be slower to create (because we must flush the compressor stream at the
  27874. conclusion of each data block, which leads to an FS I/O flush). Further, due
  27875. to the internal caching in Compression codec, the smallest possible block
  27876. size would be around 20KB-30KB.
  27877. <li>The current implementation does not offer true multi-threading for
  27878. reading. The implementation uses FSDataInputStream seek()+read(), which is
  27879. shown to be much faster than positioned-read call in single thread mode.
  27880. However, it also means that if multiple threads attempt to access the same
  27881. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  27882. sequentially even if they access different DFS blocks.
  27883. <li>Compression codec. Use "none" if the data is not very compressable (by
  27884. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  27885. as the starting point for experimenting. "gz" overs slightly better
  27886. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  27887. decompress, comparing to "lzo".
  27888. <li>File system buffering, if the underlying FSDataInputStream and
  27889. FSDataOutputStream is already adequately buffered; or if applications
  27890. reads/writes keys and values in large buffers, we can reduce the sizes of
  27891. input/output buffering in TFile layer by setting the configuration parameters
  27892. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  27893. </ul>
  27894. Some design rationale behind TFile can be found at <a
  27895. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  27896. </doc>
  27897. </class>
  27898. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  27899. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  27900. <class name="TFile.Reader" extends="java.lang.Object"
  27901. abstract="false"
  27902. static="true" final="false" visibility="public"
  27903. deprecated="not deprecated">
  27904. <implements name="java.io.Closeable"/>
  27905. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  27906. static="false" final="false" visibility="public"
  27907. deprecated="not deprecated">
  27908. <exception name="IOException" type="java.io.IOException"/>
  27909. <doc>
  27910. <![CDATA[Constructor
  27911. @param fsdis
  27912. FS input stream of the TFile.
  27913. @param fileLength
  27914. The length of TFile. This is required because we have no easy
  27915. way of knowing the actual size of the input file through the
  27916. File input stream.
  27917. @param conf
  27918. @throws IOException]]>
  27919. </doc>
  27920. </constructor>
  27921. <method name="close"
  27922. abstract="false" native="false" synchronized="false"
  27923. static="false" final="false" visibility="public"
  27924. deprecated="not deprecated">
  27925. <exception name="IOException" type="java.io.IOException"/>
  27926. <doc>
  27927. <![CDATA[Close the reader. The state of the Reader object is undefined after
  27928. close. Calling close() for multiple times has no effect.]]>
  27929. </doc>
  27930. </method>
  27931. <method name="getComparatorName" return="java.lang.String"
  27932. abstract="false" native="false" synchronized="false"
  27933. static="false" final="false" visibility="public"
  27934. deprecated="not deprecated">
  27935. <doc>
  27936. <![CDATA[Get the string representation of the comparator.
  27937. @return If the TFile is not sorted by keys, an empty string will be
  27938. returned. Otherwise, the actual comparator string that is
  27939. provided during the TFile creation time will be returned.]]>
  27940. </doc>
  27941. </method>
  27942. <method name="isSorted" return="boolean"
  27943. abstract="false" native="false" synchronized="false"
  27944. static="false" final="false" visibility="public"
  27945. deprecated="not deprecated">
  27946. <doc>
  27947. <![CDATA[Is the TFile sorted?
  27948. @return true if TFile is sorted.]]>
  27949. </doc>
  27950. </method>
  27951. <method name="getEntryCount" return="long"
  27952. abstract="false" native="false" synchronized="false"
  27953. static="false" final="false" visibility="public"
  27954. deprecated="not deprecated">
  27955. <doc>
  27956. <![CDATA[Get the number of key-value pair entries in TFile.
  27957. @return the number of key-value pairs in TFile]]>
  27958. </doc>
  27959. </method>
  27960. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  27961. abstract="false" native="false" synchronized="false"
  27962. static="false" final="false" visibility="public"
  27963. deprecated="not deprecated">
  27964. <exception name="IOException" type="java.io.IOException"/>
  27965. <doc>
  27966. <![CDATA[Get the first key in the TFile.
  27967. @return The first key in the TFile.
  27968. @throws IOException]]>
  27969. </doc>
  27970. </method>
  27971. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  27972. abstract="false" native="false" synchronized="false"
  27973. static="false" final="false" visibility="public"
  27974. deprecated="not deprecated">
  27975. <exception name="IOException" type="java.io.IOException"/>
  27976. <doc>
  27977. <![CDATA[Get the last key in the TFile.
  27978. @return The last key in the TFile.
  27979. @throws IOException]]>
  27980. </doc>
  27981. </method>
  27982. <method name="getEntryComparator" return="java.util.Comparator"
  27983. abstract="false" native="false" synchronized="false"
  27984. static="false" final="false" visibility="public"
  27985. deprecated="not deprecated">
  27986. <doc>
  27987. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  27988. stores the entries in a collection (such as PriorityQueue) and perform
  27989. sorting or comparison among entries based on the keys without copying out
  27990. the key.
  27991. @return An Entry Comparator..]]>
  27992. </doc>
  27993. </method>
  27994. <method name="getComparator" return="java.util.Comparator"
  27995. abstract="false" native="false" synchronized="false"
  27996. static="false" final="false" visibility="public"
  27997. deprecated="not deprecated">
  27998. <doc>
  27999. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  28000. string comparator representation.
  28001. @return a Comparator that can compare RawComparable's.]]>
  28002. </doc>
  28003. </method>
  28004. <method name="getMetaBlock" return="java.io.DataInputStream"
  28005. abstract="false" native="false" synchronized="false"
  28006. static="false" final="false" visibility="public"
  28007. deprecated="not deprecated">
  28008. <param name="name" type="java.lang.String"/>
  28009. <exception name="IOException" type="java.io.IOException"/>
  28010. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  28011. <doc>
  28012. <![CDATA[Stream access to a meta block.``
  28013. @param name
  28014. The name of the meta block.
  28015. @return The input stream.
  28016. @throws IOException
  28017. on I/O error.
  28018. @throws MetaBlockDoesNotExist
  28019. If the meta block with the name does not exist.]]>
  28020. </doc>
  28021. </method>
  28022. <method name="getRecordNumNear" return="long"
  28023. abstract="false" native="false" synchronized="false"
  28024. static="false" final="false" visibility="public"
  28025. deprecated="not deprecated">
  28026. <param name="offset" type="long"/>
  28027. <exception name="IOException" type="java.io.IOException"/>
  28028. <doc>
  28029. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  28030. whose byte offset in the TFile is greater than or equal to the specified
  28031. offset.
  28032. @param offset
  28033. the user supplied offset.
  28034. @return the RecordNum to the corresponding entry. If no such entry
  28035. exists, it returns the total entry count.
  28036. @throws IOException]]>
  28037. </doc>
  28038. </method>
  28039. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  28040. abstract="false" native="false" synchronized="false"
  28041. static="false" final="false" visibility="public"
  28042. deprecated="not deprecated">
  28043. <param name="offset" type="long"/>
  28044. <exception name="IOException" type="java.io.IOException"/>
  28045. <doc>
  28046. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  28047. than or equal to the specified offset.
  28048. @param offset
  28049. The file offset.
  28050. @return the key that fits the requirement; or null if no such key exists
  28051. (which could happen if the offset is close to the end of the
  28052. TFile).
  28053. @throws IOException]]>
  28054. </doc>
  28055. </method>
  28056. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  28057. abstract="false" native="false" synchronized="false"
  28058. static="false" final="false" visibility="public"
  28059. deprecated="not deprecated">
  28060. <exception name="IOException" type="java.io.IOException"/>
  28061. <doc>
  28062. <![CDATA[Get a scanner than can scan the whole TFile.
  28063. @return The scanner object. A valid Scanner is always returned even if
  28064. the TFile is empty.
  28065. @throws IOException]]>
  28066. </doc>
  28067. </method>
  28068. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  28069. abstract="false" native="false" synchronized="false"
  28070. static="false" final="false" visibility="public"
  28071. deprecated="not deprecated">
  28072. <param name="offset" type="long"/>
  28073. <param name="length" type="long"/>
  28074. <exception name="IOException" type="java.io.IOException"/>
  28075. <doc>
  28076. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  28077. @param offset
  28078. The beginning byte offset in the TFile.
  28079. @param length
  28080. The length of the region.
  28081. @return The actual coverage of the returned scanner tries to match the
  28082. specified byte-region but always round up to the compression
  28083. block boundaries. It is possible that the returned scanner
  28084. contains zero key-value pairs even if length is positive.
  28085. @throws IOException]]>
  28086. </doc>
  28087. </method>
  28088. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  28089. abstract="false" native="false" synchronized="false"
  28090. static="false" final="false" visibility="public"
  28091. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  28092. <param name="beginKey" type="byte[]"/>
  28093. <param name="endKey" type="byte[]"/>
  28094. <exception name="IOException" type="java.io.IOException"/>
  28095. <doc>
  28096. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  28097. @param beginKey
  28098. Begin key of the scan (inclusive). If null, scan from the first
  28099. key-value entry of the TFile.
  28100. @param endKey
  28101. End key of the scan (exclusive). If null, scan up to the last
  28102. key-value entry of the TFile.
  28103. @return The actual coverage of the returned scanner will cover all keys
  28104. greater than or equal to the beginKey and less than the endKey.
  28105. @throws IOException
  28106. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  28107. </doc>
  28108. </method>
  28109. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  28110. abstract="false" native="false" synchronized="false"
  28111. static="false" final="false" visibility="public"
  28112. deprecated="not deprecated">
  28113. <param name="beginKey" type="byte[]"/>
  28114. <param name="endKey" type="byte[]"/>
  28115. <exception name="IOException" type="java.io.IOException"/>
  28116. <doc>
  28117. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  28118. @param beginKey
  28119. Begin key of the scan (inclusive). If null, scan from the first
  28120. key-value entry of the TFile.
  28121. @param endKey
  28122. End key of the scan (exclusive). If null, scan up to the last
  28123. key-value entry of the TFile.
  28124. @return The actual coverage of the returned scanner will cover all keys
  28125. greater than or equal to the beginKey and less than the endKey.
  28126. @throws IOException]]>
  28127. </doc>
  28128. </method>
  28129. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  28130. abstract="false" native="false" synchronized="false"
  28131. static="false" final="false" visibility="public"
  28132. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  28133. instead.">
  28134. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  28135. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  28136. <exception name="IOException" type="java.io.IOException"/>
  28137. <doc>
  28138. <![CDATA[Get a scanner that covers a specific key range.
  28139. @param beginKey
  28140. Begin key of the scan (inclusive). If null, scan from the first
  28141. key-value entry of the TFile.
  28142. @param endKey
  28143. End key of the scan (exclusive). If null, scan up to the last
  28144. key-value entry of the TFile.
  28145. @return The actual coverage of the returned scanner will cover all keys
  28146. greater than or equal to the beginKey and less than the endKey.
  28147. @throws IOException
  28148. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  28149. instead.]]>
  28150. </doc>
  28151. </method>
  28152. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  28153. abstract="false" native="false" synchronized="false"
  28154. static="false" final="false" visibility="public"
  28155. deprecated="not deprecated">
  28156. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  28157. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  28158. <exception name="IOException" type="java.io.IOException"/>
  28159. <doc>
  28160. <![CDATA[Get a scanner that covers a specific key range.
  28161. @param beginKey
  28162. Begin key of the scan (inclusive). If null, scan from the first
  28163. key-value entry of the TFile.
  28164. @param endKey
  28165. End key of the scan (exclusive). If null, scan up to the last
  28166. key-value entry of the TFile.
  28167. @return The actual coverage of the returned scanner will cover all keys
  28168. greater than or equal to the beginKey and less than the endKey.
  28169. @throws IOException]]>
  28170. </doc>
  28171. </method>
  28172. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  28173. abstract="false" native="false" synchronized="false"
  28174. static="false" final="false" visibility="public"
  28175. deprecated="not deprecated">
  28176. <param name="beginRecNum" type="long"/>
  28177. <param name="endRecNum" type="long"/>
  28178. <exception name="IOException" type="java.io.IOException"/>
  28179. <doc>
  28180. <![CDATA[Create a scanner that covers a range of records.
  28181. @param beginRecNum
  28182. The RecordNum for the first record (inclusive).
  28183. @param endRecNum
  28184. The RecordNum for the last record (exclusive). To scan the whole
  28185. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  28186. @return The TFile scanner that covers the specified range of records.
  28187. @throws IOException]]>
  28188. </doc>
  28189. </method>
  28190. <doc>
  28191. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  28192. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  28193. ) , a portion of TFile based on byte offsets (
  28194. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  28195. fall in a certain key range (for sorted TFile only,
  28196. {@link Reader#createScannerByKey(byte[], byte[])} or
  28197. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  28198. </doc>
  28199. </class>
  28200. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  28201. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  28202. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  28203. abstract="false"
  28204. static="true" final="false" visibility="public"
  28205. deprecated="not deprecated">
  28206. <implements name="java.io.Closeable"/>
  28207. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  28208. static="false" final="false" visibility="protected"
  28209. deprecated="not deprecated">
  28210. <exception name="IOException" type="java.io.IOException"/>
  28211. <doc>
  28212. <![CDATA[Constructor
  28213. @param reader
  28214. The TFile reader object.
  28215. @param offBegin
  28216. Begin byte-offset of the scan.
  28217. @param offEnd
  28218. End byte-offset of the scan.
  28219. @throws IOException
  28220. The offsets will be rounded to the beginning of a compressed
  28221. block whose offset is greater than or equal to the specified
  28222. offset.]]>
  28223. </doc>
  28224. </constructor>
  28225. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, org.apache.hadoop.io.file.tfile.RawComparable, org.apache.hadoop.io.file.tfile.RawComparable"
  28226. static="false" final="false" visibility="protected"
  28227. deprecated="not deprecated">
  28228. <exception name="IOException" type="java.io.IOException"/>
  28229. <doc>
  28230. <![CDATA[Constructor
  28231. @param reader
  28232. The TFile reader object.
  28233. @param beginKey
  28234. Begin key of the scan. If null, scan from the first <K,V>
  28235. entry of the TFile.
  28236. @param endKey
  28237. End key of the scan. If null, scan up to the last <K, V> entry
  28238. of the TFile.
  28239. @throws IOException]]>
  28240. </doc>
  28241. </constructor>
  28242. <method name="seekTo" return="boolean"
  28243. abstract="false" native="false" synchronized="false"
  28244. static="false" final="false" visibility="public"
  28245. deprecated="not deprecated">
  28246. <param name="key" type="byte[]"/>
  28247. <exception name="IOException" type="java.io.IOException"/>
  28248. <doc>
  28249. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  28250. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  28251. returned by the previous entry() call will be invalid.
  28252. @param key
  28253. The input key
  28254. @return true if we find an equal key.
  28255. @throws IOException]]>
  28256. </doc>
  28257. </method>
  28258. <method name="seekTo" return="boolean"
  28259. abstract="false" native="false" synchronized="false"
  28260. static="false" final="false" visibility="public"
  28261. deprecated="not deprecated">
  28262. <param name="key" type="byte[]"/>
  28263. <param name="keyOffset" type="int"/>
  28264. <param name="keyLen" type="int"/>
  28265. <exception name="IOException" type="java.io.IOException"/>
  28266. <doc>
  28267. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  28268. to the input key. The entry returned by the previous entry() call will
  28269. be invalid.
  28270. @param key
  28271. The input key
  28272. @param keyOffset
  28273. offset in the key buffer.
  28274. @param keyLen
  28275. key buffer length.
  28276. @return true if we find an equal key; false otherwise.
  28277. @throws IOException]]>
  28278. </doc>
  28279. </method>
  28280. <method name="rewind"
  28281. abstract="false" native="false" synchronized="false"
  28282. static="false" final="false" visibility="public"
  28283. deprecated="not deprecated">
  28284. <exception name="IOException" type="java.io.IOException"/>
  28285. <doc>
  28286. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  28287. previous entry() call will be invalid.
  28288. @throws IOException]]>
  28289. </doc>
  28290. </method>
  28291. <method name="seekToEnd"
  28292. abstract="false" native="false" synchronized="false"
  28293. static="false" final="false" visibility="public"
  28294. deprecated="not deprecated">
  28295. <exception name="IOException" type="java.io.IOException"/>
  28296. <doc>
  28297. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  28298. entry() call will be invalid.
  28299. @throws IOException]]>
  28300. </doc>
  28301. </method>
  28302. <method name="lowerBound"
  28303. abstract="false" native="false" synchronized="false"
  28304. static="false" final="false" visibility="public"
  28305. deprecated="not deprecated">
  28306. <param name="key" type="byte[]"/>
  28307. <exception name="IOException" type="java.io.IOException"/>
  28308. <doc>
  28309. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  28310. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  28311. entry returned by the previous entry() call will be invalid.
  28312. @param key
  28313. The input key
  28314. @throws IOException]]>
  28315. </doc>
  28316. </method>
  28317. <method name="lowerBound"
  28318. abstract="false" native="false" synchronized="false"
  28319. static="false" final="false" visibility="public"
  28320. deprecated="not deprecated">
  28321. <param name="key" type="byte[]"/>
  28322. <param name="keyOffset" type="int"/>
  28323. <param name="keyLen" type="int"/>
  28324. <exception name="IOException" type="java.io.IOException"/>
  28325. <doc>
  28326. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  28327. to the input key. The entry returned by the previous entry() call will
  28328. be invalid.
  28329. @param key
  28330. The input key
  28331. @param keyOffset
  28332. offset in the key buffer.
  28333. @param keyLen
  28334. key buffer length.
  28335. @throws IOException]]>
  28336. </doc>
  28337. </method>
  28338. <method name="upperBound"
  28339. abstract="false" native="false" synchronized="false"
  28340. static="false" final="false" visibility="public"
  28341. deprecated="not deprecated">
  28342. <param name="key" type="byte[]"/>
  28343. <exception name="IOException" type="java.io.IOException"/>
  28344. <doc>
  28345. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  28346. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  28347. returned by the previous entry() call will be invalid.
  28348. @param key
  28349. The input key
  28350. @throws IOException]]>
  28351. </doc>
  28352. </method>
  28353. <method name="upperBound"
  28354. abstract="false" native="false" synchronized="false"
  28355. static="false" final="false" visibility="public"
  28356. deprecated="not deprecated">
  28357. <param name="key" type="byte[]"/>
  28358. <param name="keyOffset" type="int"/>
  28359. <param name="keyLen" type="int"/>
  28360. <exception name="IOException" type="java.io.IOException"/>
  28361. <doc>
  28362. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  28363. the input key. The entry returned by the previous entry() call will be
  28364. invalid.
  28365. @param key
  28366. The input key
  28367. @param keyOffset
  28368. offset in the key buffer.
  28369. @param keyLen
  28370. key buffer length.
  28371. @throws IOException]]>
  28372. </doc>
  28373. </method>
  28374. <method name="advance" return="boolean"
  28375. abstract="false" native="false" synchronized="false"
  28376. static="false" final="false" visibility="public"
  28377. deprecated="not deprecated">
  28378. <exception name="IOException" type="java.io.IOException"/>
  28379. <doc>
  28380. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  28381. previous entry() call will be invalid.
  28382. @return true if the cursor successfully moves. False when cursor is
  28383. already at the end location and cannot be advanced.
  28384. @throws IOException]]>
  28385. </doc>
  28386. </method>
  28387. <method name="close"
  28388. abstract="false" native="false" synchronized="false"
  28389. static="false" final="false" visibility="public"
  28390. deprecated="not deprecated">
  28391. <exception name="IOException" type="java.io.IOException"/>
  28392. <doc>
  28393. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  28394. scanner after calling close is not defined. The entry returned by the
  28395. previous entry() call will be invalid.]]>
  28396. </doc>
  28397. </method>
  28398. <method name="atEnd" return="boolean"
  28399. abstract="false" native="false" synchronized="false"
  28400. static="false" final="false" visibility="public"
  28401. deprecated="not deprecated">
  28402. <doc>
  28403. <![CDATA[Is cursor at the end location?
  28404. @return true if the cursor is at the end location.]]>
  28405. </doc>
  28406. </method>
  28407. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  28408. abstract="false" native="false" synchronized="false"
  28409. static="false" final="false" visibility="public"
  28410. deprecated="not deprecated">
  28411. <exception name="IOException" type="java.io.IOException"/>
  28412. <doc>
  28413. <![CDATA[Get an entry to access the key and value.
  28414. @return The Entry object to access the key and value.
  28415. @throws IOException]]>
  28416. </doc>
  28417. </method>
  28418. <method name="getRecordNum" return="long"
  28419. abstract="false" native="false" synchronized="false"
  28420. static="false" final="false" visibility="public"
  28421. deprecated="not deprecated">
  28422. <exception name="IOException" type="java.io.IOException"/>
  28423. <doc>
  28424. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  28425. @return The RecordNum corresponding to the entry pointed by the cursor.
  28426. @throws IOException]]>
  28427. </doc>
  28428. </method>
  28429. <doc>
  28430. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  28431. creation, points to the first key-value pair in the scan range. If the
  28432. scan range is empty, the cursor will point to the end of the scan range.
  28433. <p>
  28434. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  28435. location of the scanner.
  28436. <p>
  28437. Use {@link Scanner#advance()} to move the cursor to the next key-value
  28438. pair (or end if none exists). Use seekTo methods (
  28439. {@link Scanner#seekTo(byte[])} or
  28440. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  28441. location in the covered range (including backward seeking). Use
  28442. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  28443. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  28444. <p>
  28445. Actual keys and values may be obtained through {@link Scanner.Entry}
  28446. object, which is obtained through {@link Scanner#entry()}.]]>
  28447. </doc>
  28448. </class>
  28449. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  28450. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  28451. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  28452. abstract="false"
  28453. static="false" final="false" visibility="public"
  28454. deprecated="not deprecated">
  28455. <implements name="java.lang.Comparable"/>
  28456. <constructor name="TFile.Reader.Scanner.Entry"
  28457. static="false" final="false" visibility="public"
  28458. deprecated="not deprecated">
  28459. </constructor>
  28460. <method name="getKeyLength" return="int"
  28461. abstract="false" native="false" synchronized="false"
  28462. static="false" final="false" visibility="public"
  28463. deprecated="not deprecated">
  28464. <doc>
  28465. <![CDATA[Get the length of the key.
  28466. @return the length of the key.]]>
  28467. </doc>
  28468. </method>
  28469. <method name="get"
  28470. abstract="false" native="false" synchronized="false"
  28471. static="false" final="false" visibility="public"
  28472. deprecated="not deprecated">
  28473. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  28474. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  28475. <exception name="IOException" type="java.io.IOException"/>
  28476. <doc>
  28477. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  28478. equivalent to getKey(key); getValue(value);
  28479. @param key
  28480. BytesWritable to hold key.
  28481. @param value
  28482. BytesWritable to hold value
  28483. @throws IOException]]>
  28484. </doc>
  28485. </method>
  28486. <method name="getKey" return="int"
  28487. abstract="false" native="false" synchronized="false"
  28488. static="false" final="false" visibility="public"
  28489. deprecated="not deprecated">
  28490. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  28491. <exception name="IOException" type="java.io.IOException"/>
  28492. <doc>
  28493. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  28494. automatically resized to the actual key size.
  28495. @param key
  28496. BytesWritable to hold the key.
  28497. @throws IOException]]>
  28498. </doc>
  28499. </method>
  28500. <method name="getValue" return="long"
  28501. abstract="false" native="false" synchronized="false"
  28502. static="false" final="false" visibility="public"
  28503. deprecated="not deprecated">
  28504. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  28505. <exception name="IOException" type="java.io.IOException"/>
  28506. <doc>
  28507. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  28508. automatically resized to the actual value size. The implementation
  28509. directly uses the buffer inside BytesWritable for storing the value.
  28510. The call does not require the value length to be known.
  28511. @param value
  28512. @throws IOException]]>
  28513. </doc>
  28514. </method>
  28515. <method name="writeKey" return="int"
  28516. abstract="false" native="false" synchronized="false"
  28517. static="false" final="false" visibility="public"
  28518. deprecated="not deprecated">
  28519. <param name="out" type="java.io.OutputStream"/>
  28520. <exception name="IOException" type="java.io.IOException"/>
  28521. <doc>
  28522. <![CDATA[Writing the key to the output stream. This method avoids copying key
  28523. buffer from Scanner into user buffer, then writing to the output
  28524. stream.
  28525. @param out
  28526. The output stream
  28527. @return the length of the key.
  28528. @throws IOException]]>
  28529. </doc>
  28530. </method>
  28531. <method name="writeValue" return="long"
  28532. abstract="false" native="false" synchronized="false"
  28533. static="false" final="false" visibility="public"
  28534. deprecated="not deprecated">
  28535. <param name="out" type="java.io.OutputStream"/>
  28536. <exception name="IOException" type="java.io.IOException"/>
  28537. <doc>
  28538. <![CDATA[Writing the value to the output stream. This method avoids copying
  28539. value data from Scanner into user buffer, then writing to the output
  28540. stream. It does not require the value length to be known.
  28541. @param out
  28542. The output stream
  28543. @return the length of the value
  28544. @throws IOException]]>
  28545. </doc>
  28546. </method>
  28547. <method name="getKey" return="int"
  28548. abstract="false" native="false" synchronized="false"
  28549. static="false" final="false" visibility="public"
  28550. deprecated="not deprecated">
  28551. <param name="buf" type="byte[]"/>
  28552. <exception name="IOException" type="java.io.IOException"/>
  28553. <doc>
  28554. <![CDATA[Copy the key into user supplied buffer.
  28555. @param buf
  28556. The buffer supplied by user. The length of the buffer must
  28557. not be shorter than the key length.
  28558. @return The length of the key.
  28559. @throws IOException]]>
  28560. </doc>
  28561. </method>
  28562. <method name="getKey" return="int"
  28563. abstract="false" native="false" synchronized="false"
  28564. static="false" final="false" visibility="public"
  28565. deprecated="not deprecated">
  28566. <param name="buf" type="byte[]"/>
  28567. <param name="offset" type="int"/>
  28568. <exception name="IOException" type="java.io.IOException"/>
  28569. <doc>
  28570. <![CDATA[Copy the key into user supplied buffer.
  28571. @param buf
  28572. The buffer supplied by user.
  28573. @param offset
  28574. The starting offset of the user buffer where we should copy
  28575. the key into. Requiring the key-length + offset no greater
  28576. than the buffer length.
  28577. @return The length of the key.
  28578. @throws IOException]]>
  28579. </doc>
  28580. </method>
  28581. <method name="getKeyStream" return="java.io.DataInputStream"
  28582. abstract="false" native="false" synchronized="false"
  28583. static="false" final="false" visibility="public"
  28584. deprecated="not deprecated">
  28585. <doc>
  28586. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  28587. user objects.
  28588. @return The input stream.]]>
  28589. </doc>
  28590. </method>
  28591. <method name="getValueLength" return="int"
  28592. abstract="false" native="false" synchronized="false"
  28593. static="false" final="false" visibility="public"
  28594. deprecated="not deprecated">
  28595. <doc>
  28596. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  28597. true.
  28598. @return the length of the value.]]>
  28599. </doc>
  28600. </method>
  28601. <method name="getValue" return="int"
  28602. abstract="false" native="false" synchronized="false"
  28603. static="false" final="false" visibility="public"
  28604. deprecated="not deprecated">
  28605. <param name="buf" type="byte[]"/>
  28606. <exception name="IOException" type="java.io.IOException"/>
  28607. <doc>
  28608. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  28609. large enough to hold the whole value. The value part of the key-value
  28610. pair pointed by the current cursor is not cached and can only be
  28611. examined once. Calling any of the following functions more than once
  28612. without moving the cursor will result in exception:
  28613. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  28614. {@link #getValueStream}.
  28615. @return the length of the value. Does not require
  28616. isValueLengthKnown() to be true.
  28617. @throws IOException]]>
  28618. </doc>
  28619. </method>
  28620. <method name="getValue" return="int"
  28621. abstract="false" native="false" synchronized="false"
  28622. static="false" final="false" visibility="public"
  28623. deprecated="not deprecated">
  28624. <param name="buf" type="byte[]"/>
  28625. <param name="offset" type="int"/>
  28626. <exception name="IOException" type="java.io.IOException"/>
  28627. <doc>
  28628. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  28629. large enough to hold the whole value (starting from the offset). The
  28630. value part of the key-value pair pointed by the current cursor is not
  28631. cached and can only be examined once. Calling any of the following
  28632. functions more than once without moving the cursor will result in
  28633. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  28634. {@link #getValueStream}.
  28635. @return the length of the value. Does not require
  28636. isValueLengthKnown() to be true.
  28637. @throws IOException]]>
  28638. </doc>
  28639. </method>
  28640. <method name="getValueStream" return="java.io.DataInputStream"
  28641. abstract="false" native="false" synchronized="false"
  28642. static="false" final="false" visibility="public"
  28643. deprecated="not deprecated">
  28644. <exception name="IOException" type="java.io.IOException"/>
  28645. <doc>
  28646. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  28647. by the current cursor is not cached and can only be examined once.
  28648. Calling any of the following functions more than once without moving
  28649. the cursor will result in exception: {@link #getValue(byte[])},
  28650. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  28651. @return The input stream for reading the value.
  28652. @throws IOException]]>
  28653. </doc>
  28654. </method>
  28655. <method name="isValueLengthKnown" return="boolean"
  28656. abstract="false" native="false" synchronized="false"
  28657. static="false" final="false" visibility="public"
  28658. deprecated="not deprecated">
  28659. <doc>
  28660. <![CDATA[Check whether it is safe to call getValueLength().
  28661. @return true if value length is known before hand. Values less than
  28662. the chunk size will always have their lengths known before
  28663. hand. Values that are written out as a whole (with advertised
  28664. length up-front) will always have their lengths known in
  28665. read.]]>
  28666. </doc>
  28667. </method>
  28668. <method name="compareTo" return="int"
  28669. abstract="false" native="false" synchronized="false"
  28670. static="false" final="false" visibility="public"
  28671. deprecated="not deprecated">
  28672. <param name="buf" type="byte[]"/>
  28673. <doc>
  28674. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  28675. key.length).
  28676. @param buf
  28677. The key buffer.
  28678. @return comparison result between the entry key with the input key.]]>
  28679. </doc>
  28680. </method>
  28681. <method name="compareTo" return="int"
  28682. abstract="false" native="false" synchronized="false"
  28683. static="false" final="false" visibility="public"
  28684. deprecated="not deprecated">
  28685. <param name="buf" type="byte[]"/>
  28686. <param name="offset" type="int"/>
  28687. <param name="length" type="int"/>
  28688. <doc>
  28689. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  28690. ByteArray(buf, offset, length)
  28691. @param buf
  28692. The key buffer
  28693. @param offset
  28694. offset into the key buffer.
  28695. @param length
  28696. the length of the key.
  28697. @return comparison result between the entry key with the input key.]]>
  28698. </doc>
  28699. </method>
  28700. <method name="compareTo" return="int"
  28701. abstract="false" native="false" synchronized="false"
  28702. static="false" final="false" visibility="public"
  28703. deprecated="not deprecated">
  28704. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  28705. <doc>
  28706. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  28707. Entries are stored in a collection, and we want to compare a user
  28708. supplied key.]]>
  28709. </doc>
  28710. </method>
  28711. <method name="equals" return="boolean"
  28712. abstract="false" native="false" synchronized="false"
  28713. static="false" final="false" visibility="public"
  28714. deprecated="not deprecated">
  28715. <param name="other" type="java.lang.Object"/>
  28716. <doc>
  28717. <![CDATA[Compare whether this and other points to the same key value.]]>
  28718. </doc>
  28719. </method>
  28720. <method name="hashCode" return="int"
  28721. abstract="false" native="false" synchronized="false"
  28722. static="false" final="false" visibility="public"
  28723. deprecated="not deprecated">
  28724. </method>
  28725. <doc>
  28726. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  28727. </doc>
  28728. </class>
  28729. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  28730. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  28731. <class name="TFile.Writer" extends="java.lang.Object"
  28732. abstract="false"
  28733. static="true" final="false" visibility="public"
  28734. deprecated="not deprecated">
  28735. <implements name="java.io.Closeable"/>
  28736. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  28737. static="false" final="false" visibility="public"
  28738. deprecated="not deprecated">
  28739. <exception name="IOException" type="java.io.IOException"/>
  28740. <doc>
  28741. <![CDATA[Constructor
  28742. @param fsdos
  28743. output stream for writing. Must be at position 0.
  28744. @param minBlockSize
  28745. Minimum compressed block size in bytes. A compression block will
  28746. not be closed until it reaches this size except for the last
  28747. block.
  28748. @param compressName
  28749. Name of the compression algorithm. Must be one of the strings
  28750. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  28751. @param comparator
  28752. Leave comparator as null or empty string if TFile is not sorted.
  28753. Otherwise, provide the string name for the comparison algorithm
  28754. for keys. Two kinds of comparators are supported.
  28755. <ul>
  28756. <li>Algorithmic comparator: binary comparators that is language
  28757. independent. Currently, only "memcmp" is supported.
  28758. <li>Language-specific comparator: binary comparators that can
  28759. only be constructed in specific language. For Java, the syntax
  28760. is "jclass:", followed by the class name of the RawComparator.
  28761. Currently, we only support RawComparators that can be
  28762. constructed through the default constructor (with no
  28763. parameters). Parameterized RawComparators such as
  28764. {@link WritableComparator} or
  28765. {@link JavaSerializationComparator} may not be directly used.
  28766. One should write a wrapper class that inherits from such classes
  28767. and use its default constructor to perform proper
  28768. initialization.
  28769. </ul>
  28770. @param conf
  28771. The configuration object.
  28772. @throws IOException]]>
  28773. </doc>
  28774. </constructor>
  28775. <method name="close"
  28776. abstract="false" native="false" synchronized="false"
  28777. static="false" final="false" visibility="public"
  28778. deprecated="not deprecated">
  28779. <exception name="IOException" type="java.io.IOException"/>
  28780. <doc>
  28781. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  28782. being thrown. Future close calls will have no effect.
  28783. The underlying FSDataOutputStream is not closed.]]>
  28784. </doc>
  28785. </method>
  28786. <method name="append"
  28787. abstract="false" native="false" synchronized="false"
  28788. static="false" final="false" visibility="public"
  28789. deprecated="not deprecated">
  28790. <param name="key" type="byte[]"/>
  28791. <param name="value" type="byte[]"/>
  28792. <exception name="IOException" type="java.io.IOException"/>
  28793. <doc>
  28794. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  28795. append(key, 0, key.length, value, 0, value.length)
  28796. @param key
  28797. Buffer for key.
  28798. @param value
  28799. Buffer for value.
  28800. @throws IOException]]>
  28801. </doc>
  28802. </method>
  28803. <method name="append"
  28804. abstract="false" native="false" synchronized="false"
  28805. static="false" final="false" visibility="public"
  28806. deprecated="not deprecated">
  28807. <param name="key" type="byte[]"/>
  28808. <param name="koff" type="int"/>
  28809. <param name="klen" type="int"/>
  28810. <param name="value" type="byte[]"/>
  28811. <param name="voff" type="int"/>
  28812. <param name="vlen" type="int"/>
  28813. <exception name="IOException" type="java.io.IOException"/>
  28814. <doc>
  28815. <![CDATA[Adding a new key-value pair to TFile.
  28816. @param key
  28817. buffer for key.
  28818. @param koff
  28819. offset in key buffer.
  28820. @param klen
  28821. length of key.
  28822. @param value
  28823. buffer for value.
  28824. @param voff
  28825. offset in value buffer.
  28826. @param vlen
  28827. length of value.
  28828. @throws IOException
  28829. Upon IO errors.
  28830. <p>
  28831. If an exception is thrown, the TFile will be in an inconsistent
  28832. state. The only legitimate call after that would be close]]>
  28833. </doc>
  28834. </method>
  28835. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  28836. abstract="false" native="false" synchronized="false"
  28837. static="false" final="false" visibility="public"
  28838. deprecated="not deprecated">
  28839. <param name="length" type="int"/>
  28840. <exception name="IOException" type="java.io.IOException"/>
  28841. <doc>
  28842. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  28843. called when there is no active Key appending stream or value appending
  28844. stream.
  28845. @param length
  28846. The expected length of the key. If length of the key is not
  28847. known, set length = -1. Otherwise, the application must write
  28848. exactly as many bytes as specified here before calling close on
  28849. the returned output stream.
  28850. @return The key appending output stream.
  28851. @throws IOException]]>
  28852. </doc>
  28853. </method>
  28854. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  28855. abstract="false" native="false" synchronized="false"
  28856. static="false" final="false" visibility="public"
  28857. deprecated="not deprecated">
  28858. <param name="length" type="int"/>
  28859. <exception name="IOException" type="java.io.IOException"/>
  28860. <doc>
  28861. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  28862. called right after a key appending operation (the key append stream must
  28863. be closed).
  28864. @param length
  28865. The expected length of the value. If length of the value is not
  28866. known, set length = -1. Otherwise, the application must write
  28867. exactly as many bytes as specified here before calling close on
  28868. the returned output stream. Advertising the value size up-front
  28869. guarantees that the value is encoded in one chunk, and avoids
  28870. intermediate chunk buffering.
  28871. @throws IOException]]>
  28872. </doc>
  28873. </method>
  28874. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  28875. abstract="false" native="false" synchronized="false"
  28876. static="false" final="false" visibility="public"
  28877. deprecated="not deprecated">
  28878. <param name="name" type="java.lang.String"/>
  28879. <param name="compressName" type="java.lang.String"/>
  28880. <exception name="IOException" type="java.io.IOException"/>
  28881. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  28882. <doc>
  28883. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  28884. be called when there is a key append stream or value append stream
  28885. active. No more key-value insertion is allowed after a meta data block
  28886. has been added to TFile.
  28887. @param name
  28888. Name of the meta block.
  28889. @param compressName
  28890. Name of the compression algorithm to be used. Must be one of the
  28891. strings returned by
  28892. {@link TFile#getSupportedCompressionAlgorithms()}.
  28893. @return A DataOutputStream that can be used to write Meta Block data.
  28894. Closing the stream would signal the ending of the block.
  28895. @throws IOException
  28896. @throws MetaBlockAlreadyExists
  28897. the Meta Block with the same name already exists.]]>
  28898. </doc>
  28899. </method>
  28900. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  28901. abstract="false" native="false" synchronized="false"
  28902. static="false" final="false" visibility="public"
  28903. deprecated="not deprecated">
  28904. <param name="name" type="java.lang.String"/>
  28905. <exception name="IOException" type="java.io.IOException"/>
  28906. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  28907. <doc>
  28908. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  28909. be called when there is a key append stream or value append stream
  28910. active. No more key-value insertion is allowed after a meta data block
  28911. has been added to TFile. Data will be compressed using the default
  28912. compressor as defined in Writer's constructor.
  28913. @param name
  28914. Name of the meta block.
  28915. @return A DataOutputStream that can be used to write Meta Block data.
  28916. Closing the stream would signal the ending of the block.
  28917. @throws IOException
  28918. @throws MetaBlockAlreadyExists
  28919. the Meta Block with the same name already exists.]]>
  28920. </doc>
  28921. </method>
  28922. <doc>
  28923. <![CDATA[TFile Writer.]]>
  28924. </doc>
  28925. </class>
  28926. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  28927. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  28928. <class name="Utils" extends="java.lang.Object"
  28929. abstract="false"
  28930. static="false" final="true" visibility="public"
  28931. deprecated="not deprecated">
  28932. <method name="writeVInt"
  28933. abstract="false" native="false" synchronized="false"
  28934. static="true" final="false" visibility="public"
  28935. deprecated="not deprecated">
  28936. <param name="out" type="java.io.DataOutput"/>
  28937. <param name="n" type="int"/>
  28938. <exception name="IOException" type="java.io.IOException"/>
  28939. <doc>
  28940. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  28941. <code>Utils#writeVLong(out, n)</code>.
  28942. @param out
  28943. output stream
  28944. @param n
  28945. The integer to be encoded
  28946. @throws IOException
  28947. @see Utils#writeVLong(DataOutput, long)]]>
  28948. </doc>
  28949. </method>
  28950. <method name="writeVLong"
  28951. abstract="false" native="false" synchronized="false"
  28952. static="true" final="false" visibility="public"
  28953. deprecated="not deprecated">
  28954. <param name="out" type="java.io.DataOutput"/>
  28955. <param name="n" type="long"/>
  28956. <exception name="IOException" type="java.io.IOException"/>
  28957. <doc>
  28958. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  28959. <ul>
  28960. <li>if n in [-32, 127): encode in one byte with the actual value.
  28961. Otherwise,
  28962. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  28963. byte[1]=n&0xff. Otherwise,
  28964. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  28965. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  28966. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  28967. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  28968. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  28969. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  28970. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  28971. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  28972. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  28973. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  28974. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  28975. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  28976. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  28977. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  28978. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  28979. byte[7]=n&0xff;
  28980. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  28981. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  28982. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  28983. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  28984. </ul>
  28985. @param out
  28986. output stream
  28987. @param n
  28988. the integer number
  28989. @throws IOException]]>
  28990. </doc>
  28991. </method>
  28992. <method name="readVInt" return="int"
  28993. abstract="false" native="false" synchronized="false"
  28994. static="true" final="false" visibility="public"
  28995. deprecated="not deprecated">
  28996. <param name="in" type="java.io.DataInput"/>
  28997. <exception name="IOException" type="java.io.IOException"/>
  28998. <doc>
  28999. <![CDATA[Decoding the variable-length integer. Synonymous to
  29000. <code>(int)Utils#readVLong(in)</code>.
  29001. @param in
  29002. input stream
  29003. @return the decoded integer
  29004. @throws IOException
  29005. @see Utils#readVLong(DataInput)]]>
  29006. </doc>
  29007. </method>
  29008. <method name="readVLong" return="long"
  29009. abstract="false" native="false" synchronized="false"
  29010. static="true" final="false" visibility="public"
  29011. deprecated="not deprecated">
  29012. <param name="in" type="java.io.DataInput"/>
  29013. <exception name="IOException" type="java.io.IOException"/>
  29014. <doc>
  29015. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  29016. is FB, and the following bytes are NB[*].
  29017. <ul>
  29018. <li>if (FB >= -32), return (long)FB;
  29019. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  29020. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  29021. NB[1]&0xff;
  29022. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  29023. (NB[1]&0xff)<<8 + NB[2]&0xff;
  29024. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  29025. big-endian integer.
  29026. @param in
  29027. input stream
  29028. @return the decoded long integer.
  29029. @throws IOException]]>
  29030. </doc>
  29031. </method>
  29032. <method name="writeString"
  29033. abstract="false" native="false" synchronized="false"
  29034. static="true" final="false" visibility="public"
  29035. deprecated="not deprecated">
  29036. <param name="out" type="java.io.DataOutput"/>
  29037. <param name="s" type="java.lang.String"/>
  29038. <exception name="IOException" type="java.io.IOException"/>
  29039. <doc>
  29040. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  29041. @param out
  29042. @param s
  29043. @throws IOException]]>
  29044. </doc>
  29045. </method>
  29046. <method name="readString" return="java.lang.String"
  29047. abstract="false" native="false" synchronized="false"
  29048. static="true" final="false" visibility="public"
  29049. deprecated="not deprecated">
  29050. <param name="in" type="java.io.DataInput"/>
  29051. <exception name="IOException" type="java.io.IOException"/>
  29052. <doc>
  29053. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  29054. @param in
  29055. The input stream.
  29056. @return The string
  29057. @throws IOException]]>
  29058. </doc>
  29059. </method>
  29060. <method name="lowerBound" return="int"
  29061. abstract="false" native="false" synchronized="false"
  29062. static="true" final="false" visibility="public"
  29063. deprecated="not deprecated">
  29064. <param name="list" type="java.util.List"/>
  29065. <param name="key" type="T"/>
  29066. <param name="cmp" type="java.util.Comparator"/>
  29067. <doc>
  29068. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  29069. that compares greater than or equal to key.
  29070. @param <T>
  29071. Type of the input key.
  29072. @param list
  29073. The list
  29074. @param key
  29075. The input key.
  29076. @param cmp
  29077. Comparator for the key.
  29078. @return The index to the desired element if it exists; or list.size()
  29079. otherwise.]]>
  29080. </doc>
  29081. </method>
  29082. <method name="upperBound" return="int"
  29083. abstract="false" native="false" synchronized="false"
  29084. static="true" final="false" visibility="public"
  29085. deprecated="not deprecated">
  29086. <param name="list" type="java.util.List"/>
  29087. <param name="key" type="T"/>
  29088. <param name="cmp" type="java.util.Comparator"/>
  29089. <doc>
  29090. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  29091. that compares greater than the input key.
  29092. @param <T>
  29093. Type of the input key.
  29094. @param list
  29095. The list
  29096. @param key
  29097. The input key.
  29098. @param cmp
  29099. Comparator for the key.
  29100. @return The index to the desired element if it exists; or list.size()
  29101. otherwise.]]>
  29102. </doc>
  29103. </method>
  29104. <method name="lowerBound" return="int"
  29105. abstract="false" native="false" synchronized="false"
  29106. static="true" final="false" visibility="public"
  29107. deprecated="not deprecated">
  29108. <param name="list" type="java.util.List"/>
  29109. <param name="key" type="T"/>
  29110. <doc>
  29111. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  29112. that compares greater than or equal to key.
  29113. @param <T>
  29114. Type of the input key.
  29115. @param list
  29116. The list
  29117. @param key
  29118. The input key.
  29119. @return The index to the desired element if it exists; or list.size()
  29120. otherwise.]]>
  29121. </doc>
  29122. </method>
  29123. <method name="upperBound" return="int"
  29124. abstract="false" native="false" synchronized="false"
  29125. static="true" final="false" visibility="public"
  29126. deprecated="not deprecated">
  29127. <param name="list" type="java.util.List"/>
  29128. <param name="key" type="T"/>
  29129. <doc>
  29130. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  29131. that compares greater than the input key.
  29132. @param <T>
  29133. Type of the input key.
  29134. @param list
  29135. The list
  29136. @param key
  29137. The input key.
  29138. @return The index to the desired element if it exists; or list.size()
  29139. otherwise.]]>
  29140. </doc>
  29141. </method>
  29142. <doc>
  29143. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  29144. </doc>
  29145. </class>
  29146. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  29147. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  29148. <class name="Utils.Version" extends="java.lang.Object"
  29149. abstract="false"
  29150. static="true" final="true" visibility="public"
  29151. deprecated="not deprecated">
  29152. <implements name="java.lang.Comparable"/>
  29153. <constructor name="Utils.Version" type="java.io.DataInput"
  29154. static="false" final="false" visibility="public"
  29155. deprecated="not deprecated">
  29156. <exception name="IOException" type="java.io.IOException"/>
  29157. <doc>
  29158. <![CDATA[Construct the Version object by reading from the input stream.
  29159. @param in
  29160. input stream
  29161. @throws IOException]]>
  29162. </doc>
  29163. </constructor>
  29164. <constructor name="Utils.Version" type="short, short"
  29165. static="false" final="false" visibility="public"
  29166. deprecated="not deprecated">
  29167. <doc>
  29168. <![CDATA[Constructor.
  29169. @param major
  29170. major version.
  29171. @param minor
  29172. minor version.]]>
  29173. </doc>
  29174. </constructor>
  29175. <method name="write"
  29176. abstract="false" native="false" synchronized="false"
  29177. static="false" final="false" visibility="public"
  29178. deprecated="not deprecated">
  29179. <param name="out" type="java.io.DataOutput"/>
  29180. <exception name="IOException" type="java.io.IOException"/>
  29181. <doc>
  29182. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  29183. major version followed by minor version, both as big-endian short
  29184. integers.
  29185. @param out
  29186. The DataOutput object.
  29187. @throws IOException]]>
  29188. </doc>
  29189. </method>
  29190. <method name="getMajor" return="int"
  29191. abstract="false" native="false" synchronized="false"
  29192. static="false" final="false" visibility="public"
  29193. deprecated="not deprecated">
  29194. <doc>
  29195. <![CDATA[Get the major version.
  29196. @return Major version.]]>
  29197. </doc>
  29198. </method>
  29199. <method name="getMinor" return="int"
  29200. abstract="false" native="false" synchronized="false"
  29201. static="false" final="false" visibility="public"
  29202. deprecated="not deprecated">
  29203. <doc>
  29204. <![CDATA[Get the minor version.
  29205. @return The minor version.]]>
  29206. </doc>
  29207. </method>
  29208. <method name="size" return="int"
  29209. abstract="false" native="false" synchronized="false"
  29210. static="true" final="false" visibility="public"
  29211. deprecated="not deprecated">
  29212. <doc>
  29213. <![CDATA[Get the size of the serialized Version object.
  29214. @return serialized size of the version object.]]>
  29215. </doc>
  29216. </method>
  29217. <method name="toString" return="java.lang.String"
  29218. abstract="false" native="false" synchronized="false"
  29219. static="false" final="false" visibility="public"
  29220. deprecated="not deprecated">
  29221. <doc>
  29222. <![CDATA[Return a string representation of the version.]]>
  29223. </doc>
  29224. </method>
  29225. <method name="compatibleWith" return="boolean"
  29226. abstract="false" native="false" synchronized="false"
  29227. static="false" final="false" visibility="public"
  29228. deprecated="not deprecated">
  29229. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  29230. <doc>
  29231. <![CDATA[Test compatibility.
  29232. @param other
  29233. The Version object to test compatibility with.
  29234. @return true if both versions have the same major version number; false
  29235. otherwise.]]>
  29236. </doc>
  29237. </method>
  29238. <method name="compareTo" return="int"
  29239. abstract="false" native="false" synchronized="false"
  29240. static="false" final="false" visibility="public"
  29241. deprecated="not deprecated">
  29242. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  29243. <doc>
  29244. <![CDATA[Compare this version with another version.]]>
  29245. </doc>
  29246. </method>
  29247. <method name="equals" return="boolean"
  29248. abstract="false" native="false" synchronized="false"
  29249. static="false" final="false" visibility="public"
  29250. deprecated="not deprecated">
  29251. <param name="other" type="java.lang.Object"/>
  29252. </method>
  29253. <method name="hashCode" return="int"
  29254. abstract="false" native="false" synchronized="false"
  29255. static="false" final="false" visibility="public"
  29256. deprecated="not deprecated">
  29257. </method>
  29258. <doc>
  29259. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  29260. this class to maintain version information in their meta blocks.
  29261. A version number consists of a major version and a minor version. The
  29262. suggested usage of major and minor version number is to increment major
  29263. version number when the new storage format is not backward compatible, and
  29264. increment the minor version otherwise.]]>
  29265. </doc>
  29266. </class>
  29267. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  29268. </package>
  29269. <package name="org.apache.hadoop.io.serializer">
  29270. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  29271. <class name="JavaSerialization" extends="java.lang.Object"
  29272. abstract="false"
  29273. static="false" final="false" visibility="public"
  29274. deprecated="not deprecated">
  29275. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  29276. <constructor name="JavaSerialization"
  29277. static="false" final="false" visibility="public"
  29278. deprecated="not deprecated">
  29279. </constructor>
  29280. <method name="accept" return="boolean"
  29281. abstract="false" native="false" synchronized="false"
  29282. static="false" final="false" visibility="public"
  29283. deprecated="not deprecated">
  29284. <param name="c" type="java.lang.Class"/>
  29285. </method>
  29286. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  29287. abstract="false" native="false" synchronized="false"
  29288. static="false" final="false" visibility="public"
  29289. deprecated="not deprecated">
  29290. <param name="c" type="java.lang.Class"/>
  29291. </method>
  29292. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  29293. abstract="false" native="false" synchronized="false"
  29294. static="false" final="false" visibility="public"
  29295. deprecated="not deprecated">
  29296. <param name="c" type="java.lang.Class"/>
  29297. </method>
  29298. <doc>
  29299. <![CDATA[<p>
  29300. An experimental {@link Serialization} for Java {@link Serializable} classes.
  29301. </p>
  29302. @see JavaSerializationComparator]]>
  29303. </doc>
  29304. </class>
  29305. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  29306. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  29307. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  29308. abstract="false"
  29309. static="false" final="false" visibility="public"
  29310. deprecated="not deprecated">
  29311. <constructor name="JavaSerializationComparator"
  29312. static="false" final="false" visibility="public"
  29313. deprecated="not deprecated">
  29314. <exception name="IOException" type="java.io.IOException"/>
  29315. </constructor>
  29316. <method name="compare" return="int"
  29317. abstract="false" native="false" synchronized="false"
  29318. static="false" final="false" visibility="public"
  29319. deprecated="not deprecated">
  29320. <param name="o1" type="T"/>
  29321. <param name="o2" type="T"/>
  29322. </method>
  29323. <doc>
  29324. <![CDATA[<p>
  29325. A {@link RawComparator} that uses a {@link JavaSerialization}
  29326. {@link Deserializer} to deserialize objects that are then compared via
  29327. their {@link Comparable} interfaces.
  29328. </p>
  29329. @param <T>
  29330. @see JavaSerialization]]>
  29331. </doc>
  29332. </class>
  29333. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  29334. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  29335. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  29336. abstract="false"
  29337. static="false" final="false" visibility="public"
  29338. deprecated="not deprecated">
  29339. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  29340. <constructor name="WritableSerialization"
  29341. static="false" final="false" visibility="public"
  29342. deprecated="not deprecated">
  29343. </constructor>
  29344. <method name="accept" return="boolean"
  29345. abstract="false" native="false" synchronized="false"
  29346. static="false" final="false" visibility="public"
  29347. deprecated="not deprecated">
  29348. <param name="c" type="java.lang.Class"/>
  29349. </method>
  29350. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  29351. abstract="false" native="false" synchronized="false"
  29352. static="false" final="false" visibility="public"
  29353. deprecated="not deprecated">
  29354. <param name="c" type="java.lang.Class"/>
  29355. </method>
  29356. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  29357. abstract="false" native="false" synchronized="false"
  29358. static="false" final="false" visibility="public"
  29359. deprecated="not deprecated">
  29360. <param name="c" type="java.lang.Class"/>
  29361. </method>
  29362. <doc>
  29363. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  29364. {@link Writable#write(java.io.DataOutput)} and
  29365. {@link Writable#readFields(java.io.DataInput)}.]]>
  29366. </doc>
  29367. </class>
  29368. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  29369. <doc>
  29370. <![CDATA[<p>
  29371. This package provides a mechanism for using different serialization frameworks
  29372. in Hadoop. The property "io.serializations" defines a list of
  29373. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  29374. {@link org.apache.hadoop.io.serializer.Serializer}s and
  29375. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  29376. </p>
  29377. <p>
  29378. To add a new serialization framework write an implementation of
  29379. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  29380. "io.serializations" property.
  29381. </p>]]>
  29382. </doc>
  29383. </package>
  29384. <package name="org.apache.hadoop.io.serializer.avro">
  29385. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  29386. <interface name="AvroReflectSerializable" abstract="true"
  29387. static="false" final="false" visibility="public"
  29388. deprecated="not deprecated">
  29389. <doc>
  29390. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  29391. this interface can be serialized/deserialized using
  29392. {@link AvroReflectSerialization}.]]>
  29393. </doc>
  29394. </interface>
  29395. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  29396. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  29397. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  29398. abstract="false"
  29399. static="false" final="false" visibility="public"
  29400. deprecated="not deprecated">
  29401. <constructor name="AvroReflectSerialization"
  29402. static="false" final="false" visibility="public"
  29403. deprecated="not deprecated">
  29404. </constructor>
  29405. <method name="accept" return="boolean"
  29406. abstract="false" native="false" synchronized="true"
  29407. static="false" final="false" visibility="public"
  29408. deprecated="not deprecated">
  29409. <param name="c" type="java.lang.Class"/>
  29410. </method>
  29411. <method name="getReader" return="org.apache.avro.io.DatumReader"
  29412. abstract="false" native="false" synchronized="false"
  29413. static="false" final="false" visibility="public"
  29414. deprecated="not deprecated">
  29415. <param name="clazz" type="java.lang.Class"/>
  29416. </method>
  29417. <method name="getSchema" return="org.apache.avro.Schema"
  29418. abstract="false" native="false" synchronized="false"
  29419. static="false" final="false" visibility="public"
  29420. deprecated="not deprecated">
  29421. <param name="t" type="java.lang.Object"/>
  29422. </method>
  29423. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  29424. abstract="false" native="false" synchronized="false"
  29425. static="false" final="false" visibility="public"
  29426. deprecated="not deprecated">
  29427. <param name="clazz" type="java.lang.Class"/>
  29428. </method>
  29429. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  29430. transient="false" volatile="false"
  29431. static="true" final="true" visibility="public"
  29432. deprecated="not deprecated">
  29433. <doc>
  29434. <![CDATA[Key to configure packages that contain classes to be serialized and
  29435. deserialized using this class. Multiple packages can be specified using
  29436. comma-separated list.]]>
  29437. </doc>
  29438. </field>
  29439. <doc>
  29440. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  29441. serialization, it must either be in the package list configured via
  29442. <code>avro.reflect.pkgs</code> or implement
  29443. {@link AvroReflectSerializable} interface.]]>
  29444. </doc>
  29445. </class>
  29446. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  29447. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  29448. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  29449. abstract="true"
  29450. static="false" final="false" visibility="public"
  29451. deprecated="not deprecated">
  29452. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  29453. <constructor name="AvroSerialization"
  29454. static="false" final="false" visibility="public"
  29455. deprecated="not deprecated">
  29456. </constructor>
  29457. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  29458. abstract="false" native="false" synchronized="false"
  29459. static="false" final="false" visibility="public"
  29460. deprecated="not deprecated">
  29461. <param name="c" type="java.lang.Class"/>
  29462. </method>
  29463. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  29464. abstract="false" native="false" synchronized="false"
  29465. static="false" final="false" visibility="public"
  29466. deprecated="not deprecated">
  29467. <param name="c" type="java.lang.Class"/>
  29468. </method>
  29469. <method name="getSchema" return="org.apache.avro.Schema"
  29470. abstract="true" native="false" synchronized="false"
  29471. static="false" final="false" visibility="public"
  29472. deprecated="not deprecated">
  29473. <param name="t" type="T"/>
  29474. <doc>
  29475. <![CDATA[Return an Avro Schema instance for the given class.]]>
  29476. </doc>
  29477. </method>
  29478. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  29479. abstract="true" native="false" synchronized="false"
  29480. static="false" final="false" visibility="public"
  29481. deprecated="not deprecated">
  29482. <param name="clazz" type="java.lang.Class"/>
  29483. <doc>
  29484. <![CDATA[Create and return Avro DatumWriter for the given class.]]>
  29485. </doc>
  29486. </method>
  29487. <method name="getReader" return="org.apache.avro.io.DatumReader"
  29488. abstract="true" native="false" synchronized="false"
  29489. static="false" final="false" visibility="public"
  29490. deprecated="not deprecated">
  29491. <param name="clazz" type="java.lang.Class"/>
  29492. <doc>
  29493. <![CDATA[Create and return Avro DatumReader for the given class.]]>
  29494. </doc>
  29495. </method>
  29496. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  29497. transient="false" volatile="false"
  29498. static="true" final="true" visibility="public"
  29499. deprecated="not deprecated">
  29500. </field>
  29501. <doc>
  29502. <![CDATA[Base class for providing serialization to Avro types.]]>
  29503. </doc>
  29504. </class>
  29505. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  29506. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  29507. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  29508. abstract="false"
  29509. static="false" final="false" visibility="public"
  29510. deprecated="not deprecated">
  29511. <constructor name="AvroSpecificSerialization"
  29512. static="false" final="false" visibility="public"
  29513. deprecated="not deprecated">
  29514. </constructor>
  29515. <method name="accept" return="boolean"
  29516. abstract="false" native="false" synchronized="false"
  29517. static="false" final="false" visibility="public"
  29518. deprecated="not deprecated">
  29519. <param name="c" type="java.lang.Class"/>
  29520. </method>
  29521. <method name="getReader" return="org.apache.avro.io.DatumReader"
  29522. abstract="false" native="false" synchronized="false"
  29523. static="false" final="false" visibility="public"
  29524. deprecated="not deprecated">
  29525. <param name="clazz" type="java.lang.Class"/>
  29526. </method>
  29527. <method name="getSchema" return="org.apache.avro.Schema"
  29528. abstract="false" native="false" synchronized="false"
  29529. static="false" final="false" visibility="public"
  29530. deprecated="not deprecated">
  29531. <param name="t" type="org.apache.avro.specific.SpecificRecord"/>
  29532. </method>
  29533. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  29534. abstract="false" native="false" synchronized="false"
  29535. static="false" final="false" visibility="public"
  29536. deprecated="not deprecated">
  29537. <param name="clazz" type="java.lang.Class"/>
  29538. </method>
  29539. <doc>
  29540. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  29541. for classes generated by Avro's 'specific' compiler.]]>
  29542. </doc>
  29543. </class>
  29544. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  29545. <doc>
  29546. <![CDATA[<p>
  29547. This package provides Avro serialization in Hadoop. This can be used to
  29548. serialize/deserialize Avro types in Hadoop.
  29549. </p>
  29550. <p>
  29551. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  29552. serialization of classes generated by Avro's 'specific' compiler.
  29553. </p>
  29554. <p>
  29555. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  29556. other classes.
  29557. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  29558. any class which is either in the package list configured via
  29559. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  29560. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  29561. interface.
  29562. </p>]]>
  29563. </doc>
  29564. </package>
  29565. <package name="org.apache.hadoop.ipc.protocolPB">
  29566. <!-- start class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolClientSideTranslatorPB -->
  29567. <class name="GenericRefreshProtocolClientSideTranslatorPB" extends="java.lang.Object"
  29568. abstract="false"
  29569. static="false" final="false" visibility="public"
  29570. deprecated="not deprecated">
  29571. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  29572. <implements name="org.apache.hadoop.ipc.GenericRefreshProtocol"/>
  29573. <implements name="java.io.Closeable"/>
  29574. <constructor name="GenericRefreshProtocolClientSideTranslatorPB" type="org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolPB"
  29575. static="false" final="false" visibility="public"
  29576. deprecated="not deprecated">
  29577. </constructor>
  29578. <method name="close"
  29579. abstract="false" native="false" synchronized="false"
  29580. static="false" final="false" visibility="public"
  29581. deprecated="not deprecated">
  29582. <exception name="IOException" type="java.io.IOException"/>
  29583. </method>
  29584. <method name="refresh" return="java.util.Collection"
  29585. abstract="false" native="false" synchronized="false"
  29586. static="false" final="false" visibility="public"
  29587. deprecated="not deprecated">
  29588. <param name="identifier" type="java.lang.String"/>
  29589. <param name="args" type="java.lang.String[]"/>
  29590. <exception name="IOException" type="java.io.IOException"/>
  29591. </method>
  29592. <method name="isMethodSupported" return="boolean"
  29593. abstract="false" native="false" synchronized="false"
  29594. static="false" final="false" visibility="public"
  29595. deprecated="not deprecated">
  29596. <param name="methodName" type="java.lang.String"/>
  29597. <exception name="IOException" type="java.io.IOException"/>
  29598. </method>
  29599. </class>
  29600. <!-- end class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolClientSideTranslatorPB -->
  29601. <!-- start class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolServerSideTranslatorPB -->
  29602. <class name="GenericRefreshProtocolServerSideTranslatorPB" extends="java.lang.Object"
  29603. abstract="false"
  29604. static="false" final="false" visibility="public"
  29605. deprecated="not deprecated">
  29606. <implements name="org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolPB"/>
  29607. <constructor name="GenericRefreshProtocolServerSideTranslatorPB" type="org.apache.hadoop.ipc.GenericRefreshProtocol"
  29608. static="false" final="false" visibility="public"
  29609. deprecated="not deprecated">
  29610. </constructor>
  29611. <method name="refresh" return="org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto"
  29612. abstract="false" native="false" synchronized="false"
  29613. static="false" final="false" visibility="public"
  29614. deprecated="not deprecated">
  29615. <param name="controller" type="com.google.protobuf.RpcController"/>
  29616. <param name="request" type="org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto"/>
  29617. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  29618. </method>
  29619. </class>
  29620. <!-- end class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolServerSideTranslatorPB -->
  29621. <!-- start class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolClientSideTranslatorPB -->
  29622. <class name="RefreshCallQueueProtocolClientSideTranslatorPB" extends="java.lang.Object"
  29623. abstract="false"
  29624. static="false" final="false" visibility="public"
  29625. deprecated="not deprecated">
  29626. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  29627. <implements name="org.apache.hadoop.ipc.RefreshCallQueueProtocol"/>
  29628. <implements name="java.io.Closeable"/>
  29629. <constructor name="RefreshCallQueueProtocolClientSideTranslatorPB" type="org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolPB"
  29630. static="false" final="false" visibility="public"
  29631. deprecated="not deprecated">
  29632. </constructor>
  29633. <method name="close"
  29634. abstract="false" native="false" synchronized="false"
  29635. static="false" final="false" visibility="public"
  29636. deprecated="not deprecated">
  29637. <exception name="IOException" type="java.io.IOException"/>
  29638. </method>
  29639. <method name="refreshCallQueue"
  29640. abstract="false" native="false" synchronized="false"
  29641. static="false" final="false" visibility="public"
  29642. deprecated="not deprecated">
  29643. <exception name="IOException" type="java.io.IOException"/>
  29644. </method>
  29645. <method name="isMethodSupported" return="boolean"
  29646. abstract="false" native="false" synchronized="false"
  29647. static="false" final="false" visibility="public"
  29648. deprecated="not deprecated">
  29649. <param name="methodName" type="java.lang.String"/>
  29650. <exception name="IOException" type="java.io.IOException"/>
  29651. </method>
  29652. </class>
  29653. <!-- end class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolClientSideTranslatorPB -->
  29654. <!-- start class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolServerSideTranslatorPB -->
  29655. <class name="RefreshCallQueueProtocolServerSideTranslatorPB" extends="java.lang.Object"
  29656. abstract="false"
  29657. static="false" final="false" visibility="public"
  29658. deprecated="not deprecated">
  29659. <implements name="org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolPB"/>
  29660. <constructor name="RefreshCallQueueProtocolServerSideTranslatorPB" type="org.apache.hadoop.ipc.RefreshCallQueueProtocol"
  29661. static="false" final="false" visibility="public"
  29662. deprecated="not deprecated">
  29663. </constructor>
  29664. <method name="refreshCallQueue" return="org.apache.hadoop.ipc.proto.RefreshCallQueueProtocolProtos.RefreshCallQueueResponseProto"
  29665. abstract="false" native="false" synchronized="false"
  29666. static="false" final="false" visibility="public"
  29667. deprecated="not deprecated">
  29668. <param name="controller" type="com.google.protobuf.RpcController"/>
  29669. <param name="request" type="org.apache.hadoop.ipc.proto.RefreshCallQueueProtocolProtos.RefreshCallQueueRequestProto"/>
  29670. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  29671. </method>
  29672. </class>
  29673. <!-- end class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolServerSideTranslatorPB -->
  29674. </package>
  29675. <package name="org.apache.hadoop.jmx">
  29676. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  29677. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  29678. abstract="false"
  29679. static="false" final="false" visibility="public"
  29680. deprecated="not deprecated">
  29681. <constructor name="JMXJsonServlet"
  29682. static="false" final="false" visibility="public"
  29683. deprecated="not deprecated">
  29684. </constructor>
  29685. <method name="init"
  29686. abstract="false" native="false" synchronized="false"
  29687. static="false" final="false" visibility="public"
  29688. deprecated="not deprecated">
  29689. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29690. <doc>
  29691. <![CDATA[Initialize this servlet.]]>
  29692. </doc>
  29693. </method>
  29694. <method name="isInstrumentationAccessAllowed" return="boolean"
  29695. abstract="false" native="false" synchronized="false"
  29696. static="false" final="false" visibility="protected"
  29697. deprecated="not deprecated">
  29698. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  29699. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  29700. <exception name="IOException" type="java.io.IOException"/>
  29701. </method>
  29702. <method name="doGet"
  29703. abstract="false" native="false" synchronized="false"
  29704. static="false" final="false" visibility="public"
  29705. deprecated="not deprecated">
  29706. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  29707. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  29708. <doc>
  29709. <![CDATA[Process a GET request for the specified resource.
  29710. @param request
  29711. The servlet request we are processing
  29712. @param response
  29713. The servlet response we are creating]]>
  29714. </doc>
  29715. </method>
  29716. <field name="mBeanServer" type="javax.management.MBeanServer"
  29717. transient="true" volatile="false"
  29718. static="false" final="false" visibility="protected"
  29719. deprecated="not deprecated">
  29720. <doc>
  29721. <![CDATA[MBean server.]]>
  29722. </doc>
  29723. </field>
  29724. <doc>
  29725. <![CDATA[Provides Read only web access to JMX.
  29726. <p>
  29727. This servlet generally will be placed under the /jmx URL for each
  29728. HttpServer. It provides read only
  29729. access to JMX metrics. The optional <code>qry</code> parameter
  29730. may be used to query only a subset of the JMX Beans. This query
  29731. functionality is provided through the
  29732. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  29733. method.
  29734. <p>
  29735. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  29736. all hadoop metrics exposed through JMX.
  29737. <p>
  29738. The optional <code>get</code> parameter is used to query an specific
  29739. attribute of a JMX bean. The format of the URL is
  29740. <code>http://.../jmx?get=MXBeanName::AttributeName<code>
  29741. <p>
  29742. For example
  29743. <code>
  29744. http://../jmx?get=Hadoop:service=NameNode,name=NameNodeInfo::ClusterId
  29745. </code> will return the cluster id of the namenode mxbean.
  29746. <p>
  29747. If the <code>qry</code> or the <code>get</code> parameter is not formatted
  29748. correctly then a 400 BAD REQUEST http response code will be returned.
  29749. <p>
  29750. If a resouce such as a mbean or attribute can not be found,
  29751. a 404 SC_NOT_FOUND http response code will be returned.
  29752. <p>
  29753. The return format is JSON and in the form
  29754. <p>
  29755. <code><pre>
  29756. {
  29757. "beans" : [
  29758. {
  29759. "name":"bean-name"
  29760. ...
  29761. }
  29762. ]
  29763. }
  29764. </pre></code>
  29765. <p>
  29766. The servlet attempts to convert the the JMXBeans into JSON. Each
  29767. bean's attributes will be converted to a JSON object member.
  29768. If the attribute is a boolean, a number, a string, or an array
  29769. it will be converted to the JSON equivalent.
  29770. If the value is a {@link CompositeData} then it will be converted
  29771. to a JSON object with the keys as the name of the JSON member and
  29772. the value is converted following these same rules.
  29773. If the value is a {@link TabularData} then it will be converted
  29774. to an array of the {@link CompositeData} elements that it contains.
  29775. All other objects will be converted to a string and output as such.
  29776. The bean's name and modelerType will be returned for all beans.
  29777. Optional paramater "callback" should be used to deliver JSONP response.]]>
  29778. </doc>
  29779. </class>
  29780. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  29781. </package>
  29782. <package name="org.apache.hadoop.log">
  29783. <!-- start class org.apache.hadoop.log.EventCounter -->
  29784. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  29785. abstract="false"
  29786. static="false" final="false" visibility="public"
  29787. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  29788. <constructor name="EventCounter"
  29789. static="false" final="false" visibility="public"
  29790. deprecated="not deprecated">
  29791. </constructor>
  29792. <doc>
  29793. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  29794. fatal, error and warn. The class name is used in log4j.properties
  29795. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  29796. </doc>
  29797. </class>
  29798. <!-- end class org.apache.hadoop.log.EventCounter -->
  29799. <!-- start class org.apache.hadoop.log.Log4Json -->
  29800. <class name="Log4Json" extends="org.apache.log4j.Layout"
  29801. abstract="false"
  29802. static="false" final="false" visibility="public"
  29803. deprecated="not deprecated">
  29804. <constructor name="Log4Json"
  29805. static="false" final="false" visibility="public"
  29806. deprecated="not deprecated">
  29807. </constructor>
  29808. <method name="getContentType" return="java.lang.String"
  29809. abstract="false" native="false" synchronized="false"
  29810. static="false" final="false" visibility="public"
  29811. deprecated="not deprecated">
  29812. <doc>
  29813. <![CDATA[@return the mime type of JSON]]>
  29814. </doc>
  29815. </method>
  29816. <method name="format" return="java.lang.String"
  29817. abstract="false" native="false" synchronized="false"
  29818. static="false" final="false" visibility="public"
  29819. deprecated="not deprecated">
  29820. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  29821. </method>
  29822. <method name="toJson" return="java.lang.String"
  29823. abstract="false" native="false" synchronized="false"
  29824. static="false" final="false" visibility="public"
  29825. deprecated="not deprecated">
  29826. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  29827. <exception name="IOException" type="java.io.IOException"/>
  29828. <doc>
  29829. <![CDATA[Convert an event to JSON
  29830. @param event the event -must not be null
  29831. @return a string value
  29832. @throws IOException on problems generating the JSON]]>
  29833. </doc>
  29834. </method>
  29835. <method name="toJson" return="java.io.Writer"
  29836. abstract="false" native="false" synchronized="false"
  29837. static="false" final="false" visibility="public"
  29838. deprecated="not deprecated">
  29839. <param name="writer" type="java.io.Writer"/>
  29840. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  29841. <exception name="IOException" type="java.io.IOException"/>
  29842. <doc>
  29843. <![CDATA[Convert an event to JSON
  29844. @param writer the destination writer
  29845. @param event the event -must not be null
  29846. @return the writer
  29847. @throws IOException on problems generating the JSON]]>
  29848. </doc>
  29849. </method>
  29850. <method name="toJson" return="java.io.Writer"
  29851. abstract="false" native="false" synchronized="false"
  29852. static="false" final="false" visibility="public"
  29853. deprecated="not deprecated">
  29854. <param name="writer" type="java.io.Writer"/>
  29855. <param name="loggerName" type="java.lang.String"/>
  29856. <param name="timeStamp" type="long"/>
  29857. <param name="level" type="java.lang.String"/>
  29858. <param name="threadName" type="java.lang.String"/>
  29859. <param name="message" type="java.lang.String"/>
  29860. <param name="ti" type="org.apache.log4j.spi.ThrowableInformation"/>
  29861. <exception name="IOException" type="java.io.IOException"/>
  29862. <doc>
  29863. <![CDATA[Build a JSON entry from the parameters. This is public for testing.
  29864. @param writer destination
  29865. @param loggerName logger name
  29866. @param timeStamp time_t value
  29867. @param level level string
  29868. @param threadName name of the thread
  29869. @param message rendered message
  29870. @param ti nullable thrown information
  29871. @return the writer
  29872. @throws IOException on any problem]]>
  29873. </doc>
  29874. </method>
  29875. <method name="ignoresThrowable" return="boolean"
  29876. abstract="false" native="false" synchronized="false"
  29877. static="false" final="false" visibility="public"
  29878. deprecated="not deprecated">
  29879. <doc>
  29880. <![CDATA[This appender does not ignore throwables
  29881. @return false, always]]>
  29882. </doc>
  29883. </method>
  29884. <method name="activateOptions"
  29885. abstract="false" native="false" synchronized="false"
  29886. static="false" final="false" visibility="public"
  29887. deprecated="not deprecated">
  29888. <doc>
  29889. <![CDATA[Do nothing]]>
  29890. </doc>
  29891. </method>
  29892. <method name="parse" return="org.codehaus.jackson.node.ContainerNode"
  29893. abstract="false" native="false" synchronized="false"
  29894. static="true" final="false" visibility="public"
  29895. deprecated="not deprecated">
  29896. <param name="json" type="java.lang.String"/>
  29897. <exception name="IOException" type="java.io.IOException"/>
  29898. <doc>
  29899. <![CDATA[For use in tests
  29900. @param json incoming JSON to parse
  29901. @return a node tree
  29902. @throws IOException on any parsing problems]]>
  29903. </doc>
  29904. </method>
  29905. <field name="DATE" type="java.lang.String"
  29906. transient="false" volatile="false"
  29907. static="true" final="true" visibility="public"
  29908. deprecated="not deprecated">
  29909. </field>
  29910. <field name="EXCEPTION_CLASS" type="java.lang.String"
  29911. transient="false" volatile="false"
  29912. static="true" final="true" visibility="public"
  29913. deprecated="not deprecated">
  29914. </field>
  29915. <field name="LEVEL" type="java.lang.String"
  29916. transient="false" volatile="false"
  29917. static="true" final="true" visibility="public"
  29918. deprecated="not deprecated">
  29919. </field>
  29920. <field name="MESSAGE" type="java.lang.String"
  29921. transient="false" volatile="false"
  29922. static="true" final="true" visibility="public"
  29923. deprecated="not deprecated">
  29924. </field>
  29925. <field name="NAME" type="java.lang.String"
  29926. transient="false" volatile="false"
  29927. static="true" final="true" visibility="public"
  29928. deprecated="not deprecated">
  29929. </field>
  29930. <field name="STACK" type="java.lang.String"
  29931. transient="false" volatile="false"
  29932. static="true" final="true" visibility="public"
  29933. deprecated="not deprecated">
  29934. </field>
  29935. <field name="THREAD" type="java.lang.String"
  29936. transient="false" volatile="false"
  29937. static="true" final="true" visibility="public"
  29938. deprecated="not deprecated">
  29939. </field>
  29940. <field name="TIME" type="java.lang.String"
  29941. transient="false" volatile="false"
  29942. static="true" final="true" visibility="public"
  29943. deprecated="not deprecated">
  29944. </field>
  29945. <field name="JSON_TYPE" type="java.lang.String"
  29946. transient="false" volatile="false"
  29947. static="true" final="true" visibility="public"
  29948. deprecated="not deprecated">
  29949. </field>
  29950. <doc>
  29951. <![CDATA[This offers a log layout for JSON, with some test entry points. It's purpose is
  29952. to allow Log4J to generate events that are easy for other programs to parse, but which are somewhat
  29953. human-readable.
  29954. Some features.
  29955. <ol>
  29956. <li>Every event is a standalone JSON clause</li>
  29957. <li>Time is published as a time_t event since 1/1/1970
  29958. -this is the fastest to generate.</li>
  29959. <li>An ISO date is generated, but this is cached and will only be accurate to within a second</li>
  29960. <li>the stack trace is included as an array</li>
  29961. </ol>
  29962. A simple log event will resemble the following
  29963. <pre>
  29964. {"name":"test","time":1318429136789,"date":"2011-10-12 15:18:56,789","level":"INFO","thread":"main","message":"test message"}
  29965. </pre>
  29966. An event with an error will contain data similar to that below (which has been reformatted to be multi-line).
  29967. <pre>
  29968. {
  29969. "name":"testException",
  29970. "time":1318429136789,
  29971. "date":"2011-10-12 15:18:56,789",
  29972. "level":"INFO",
  29973. "thread":"quoted\"",
  29974. "message":"new line\n and {}",
  29975. "exceptionclass":"java.net.NoRouteToHostException",
  29976. "stack":[
  29977. "java.net.NoRouteToHostException: that box caught fire 3 years ago",
  29978. "\tat org.apache.hadoop.log.TestLog4Json.testException(TestLog4Json.java:49)",
  29979. "\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
  29980. "\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)",
  29981. "\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)",
  29982. "\tat java.lang.reflect.Method.invoke(Method.java:597)",
  29983. "\tat junit.framework.TestCase.runTest(TestCase.java:168)",
  29984. "\tat junit.framework.TestCase.runBare(TestCase.java:134)",
  29985. "\tat junit.framework.TestResult$1.protect(TestResult.java:110)",
  29986. "\tat junit.framework.TestResult.runProtected(TestResult.java:128)",
  29987. "\tat junit.framework.TestResult.run(TestResult.java:113)",
  29988. "\tat junit.framework.TestCase.run(TestCase.java:124)",
  29989. "\tat junit.framework.TestSuite.runTest(TestSuite.java:232)",
  29990. "\tat junit.framework.TestSuite.run(TestSuite.java:227)",
  29991. "\tat org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)",
  29992. "\tat org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)",
  29993. "\tat org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)",
  29994. "\tat org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:145)",
  29995. "\tat org.apache.maven.surefire.Surefire.run(Surefire.java:104)",
  29996. "\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
  29997. "\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)",
  29998. "\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)",
  29999. "\tat java.lang.reflect.Method.invoke(Method.java:597)",
  30000. "\tat org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)",
  30001. "\tat org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)"
  30002. ]
  30003. }
  30004. </pre>]]>
  30005. </doc>
  30006. </class>
  30007. <!-- end class org.apache.hadoop.log.Log4Json -->
  30008. <!-- start class org.apache.hadoop.log.LogLevel -->
  30009. <class name="LogLevel" extends="java.lang.Object"
  30010. abstract="false"
  30011. static="false" final="false" visibility="public"
  30012. deprecated="not deprecated">
  30013. <constructor name="LogLevel"
  30014. static="false" final="false" visibility="public"
  30015. deprecated="not deprecated">
  30016. </constructor>
  30017. <method name="main"
  30018. abstract="false" native="false" synchronized="false"
  30019. static="true" final="false" visibility="public"
  30020. deprecated="not deprecated">
  30021. <param name="args" type="java.lang.String[]"/>
  30022. <doc>
  30023. <![CDATA[A command line implementation]]>
  30024. </doc>
  30025. </method>
  30026. <field name="USAGES" type="java.lang.String"
  30027. transient="false" volatile="false"
  30028. static="true" final="true" visibility="public"
  30029. deprecated="not deprecated">
  30030. </field>
  30031. <doc>
  30032. <![CDATA[Change log level in runtime.]]>
  30033. </doc>
  30034. </class>
  30035. <!-- end class org.apache.hadoop.log.LogLevel -->
  30036. </package>
  30037. <package name="org.apache.hadoop.log.metrics">
  30038. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  30039. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  30040. abstract="false"
  30041. static="false" final="false" visibility="public"
  30042. deprecated="not deprecated">
  30043. <constructor name="EventCounter"
  30044. static="false" final="false" visibility="public"
  30045. deprecated="not deprecated">
  30046. </constructor>
  30047. <method name="getFatal" return="long"
  30048. abstract="false" native="false" synchronized="false"
  30049. static="true" final="false" visibility="public"
  30050. deprecated="not deprecated">
  30051. </method>
  30052. <method name="getError" return="long"
  30053. abstract="false" native="false" synchronized="false"
  30054. static="true" final="false" visibility="public"
  30055. deprecated="not deprecated">
  30056. </method>
  30057. <method name="getWarn" return="long"
  30058. abstract="false" native="false" synchronized="false"
  30059. static="true" final="false" visibility="public"
  30060. deprecated="not deprecated">
  30061. </method>
  30062. <method name="getInfo" return="long"
  30063. abstract="false" native="false" synchronized="false"
  30064. static="true" final="false" visibility="public"
  30065. deprecated="not deprecated">
  30066. </method>
  30067. <method name="append"
  30068. abstract="false" native="false" synchronized="false"
  30069. static="false" final="false" visibility="public"
  30070. deprecated="not deprecated">
  30071. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  30072. </method>
  30073. <method name="close"
  30074. abstract="false" native="false" synchronized="false"
  30075. static="false" final="false" visibility="public"
  30076. deprecated="not deprecated">
  30077. </method>
  30078. <method name="requiresLayout" return="boolean"
  30079. abstract="false" native="false" synchronized="false"
  30080. static="false" final="false" visibility="public"
  30081. deprecated="not deprecated">
  30082. </method>
  30083. <doc>
  30084. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  30085. fatal, error and warn. The class name is used in log4j.properties]]>
  30086. </doc>
  30087. </class>
  30088. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  30089. </package>
  30090. <package name="org.apache.hadoop.metrics">
  30091. <doc>
  30092. <![CDATA[This package defines an API for reporting performance metric information.
  30093. <p/>
  30094. The API is abstract so that it can be implemented on top of
  30095. a variety of metrics client libraries. The choice of
  30096. client library is a configuration option, and different
  30097. modules within the same application can use
  30098. different metrics implementation libraries.
  30099. <p/>
  30100. Sub-packages:
  30101. <dl>
  30102. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  30103. <dd>The abstract Server Provider Interface package. Those wishing to
  30104. integrate the metrics API with a particular metrics client library should
  30105. extend this package.</dd>
  30106. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  30107. <dd>An implementation package which writes the metric data to
  30108. a file, or sends it to the standard output stream.</dd>
  30109. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  30110. <dd>An implementation package which sends metric data to
  30111. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  30112. </dl>
  30113. <h3>Introduction to the Metrics API</h3>
  30114. Here is a simple example of how to use this package to report a single
  30115. metric value:
  30116. <pre>
  30117. private ContextFactory contextFactory = ContextFactory.getFactory();
  30118. void reportMyMetric(float myMetric) {
  30119. MetricsContext myContext = contextFactory.getContext("myContext");
  30120. MetricsRecord myRecord = myContext.getRecord("myRecord");
  30121. myRecord.setMetric("myMetric", myMetric);
  30122. myRecord.update();
  30123. }
  30124. </pre>
  30125. In this example there are three names:
  30126. <dl>
  30127. <dt><i>myContext</i></dt>
  30128. <dd>The context name will typically identify either the application, or else a
  30129. module within an application or library.</dd>
  30130. <dt><i>myRecord</i></dt>
  30131. <dd>The record name generally identifies some entity for which a set of
  30132. metrics are to be reported. For example, you could have a record named
  30133. "cacheStats" for reporting a number of statistics relating to the usage of
  30134. some cache in your application.</dd>
  30135. <dt><i>myMetric</i></dt>
  30136. <dd>This identifies a particular metric. For example, you might have metrics
  30137. named "cache_hits" and "cache_misses".
  30138. </dd>
  30139. </dl>
  30140. <h3>Tags</h3>
  30141. In some cases it is useful to have multiple records with the same name. For
  30142. example, suppose that you want to report statistics about each disk on a computer.
  30143. In this case, the record name would be something like "diskStats", but you also
  30144. need to identify the disk which is done by adding a <i>tag</i> to the record.
  30145. The code could look something like this:
  30146. <pre>
  30147. private MetricsRecord diskStats =
  30148. contextFactory.getContext("myContext").getRecord("diskStats");
  30149. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  30150. diskStats.setTag("diskName", diskName);
  30151. diskStats.setMetric("diskBusy", diskBusy);
  30152. diskStats.setMetric("diskUsed", diskUsed);
  30153. diskStats.update();
  30154. }
  30155. </pre>
  30156. <h3>Buffering and Callbacks</h3>
  30157. Data is not sent immediately to the metrics system when
  30158. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  30159. internal table, and the contents of the table are sent periodically.
  30160. This can be important for two reasons:
  30161. <ol>
  30162. <li>It means that a programmer is free to put calls to this API in an
  30163. inner loop, since updates can be very frequent without slowing down
  30164. the application significantly.</li>
  30165. <li>Some implementations can gain efficiency by combining many metrics
  30166. into a single UDP message.</li>
  30167. </ol>
  30168. The API provides a timer-based callback via the
  30169. <code>registerUpdater()</code> method. The benefit of this
  30170. versus using <code>java.util.Timer</code> is that the callbacks will be done
  30171. immediately before sending the data, making the data as current as possible.
  30172. <h3>Configuration</h3>
  30173. It is possible to programmatically examine and modify configuration data
  30174. before creating a context, like this:
  30175. <pre>
  30176. ContextFactory factory = ContextFactory.getFactory();
  30177. ... examine and/or modify factory attributes ...
  30178. MetricsContext context = factory.getContext("myContext");
  30179. </pre>
  30180. The factory attributes can be examined and modified using the following
  30181. <code>ContextFactory</code>methods:
  30182. <ul>
  30183. <li><code>Object getAttribute(String attributeName)</code></li>
  30184. <li><code>String[] getAttributeNames()</code></li>
  30185. <li><code>void setAttribute(String name, Object value)</code></li>
  30186. <li><code>void removeAttribute(attributeName)</code></li>
  30187. </ul>
  30188. <p/>
  30189. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  30190. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  30191. on the class path.
  30192. <p/>
  30193. A factory attribute named:
  30194. <pre>
  30195. <i>contextName</i>.class
  30196. </pre>
  30197. should have as its value the fully qualified name of the class to be
  30198. instantiated by a call of the <code>CodeFactory</code> method
  30199. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  30200. specified, the default is to instantiate
  30201. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  30202. <p/>
  30203. Other factory attributes are specific to a particular implementation of this
  30204. API and are documented elsewhere. For example, configuration attributes for
  30205. the file and Ganglia implementations can be found in the javadoc for
  30206. their respective packages.]]>
  30207. </doc>
  30208. </package>
  30209. <package name="org.apache.hadoop.metrics.file">
  30210. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  30211. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  30212. abstract="false"
  30213. static="false" final="false" visibility="public"
  30214. deprecated="not deprecated">
  30215. <constructor name="FileContext"
  30216. static="false" final="false" visibility="public"
  30217. deprecated="not deprecated">
  30218. <doc>
  30219. <![CDATA[Creates a new instance of FileContext]]>
  30220. </doc>
  30221. </constructor>
  30222. <method name="init"
  30223. abstract="false" native="false" synchronized="false"
  30224. static="false" final="false" visibility="public"
  30225. deprecated="not deprecated">
  30226. <param name="contextName" type="java.lang.String"/>
  30227. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  30228. </method>
  30229. <method name="getFileName" return="java.lang.String"
  30230. abstract="false" native="false" synchronized="false"
  30231. static="false" final="false" visibility="public"
  30232. deprecated="not deprecated">
  30233. <doc>
  30234. <![CDATA[Returns the configured file name, or null.]]>
  30235. </doc>
  30236. </method>
  30237. <method name="startMonitoring"
  30238. abstract="false" native="false" synchronized="false"
  30239. static="false" final="false" visibility="public"
  30240. deprecated="not deprecated">
  30241. <exception name="IOException" type="java.io.IOException"/>
  30242. <doc>
  30243. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  30244. file specified by the <code>fileName</code> attribute,
  30245. if specified. Otherwise the data will be written to standard
  30246. output.]]>
  30247. </doc>
  30248. </method>
  30249. <method name="stopMonitoring"
  30250. abstract="false" native="false" synchronized="false"
  30251. static="false" final="false" visibility="public"
  30252. deprecated="not deprecated">
  30253. <doc>
  30254. <![CDATA[Stops monitoring, closing the file.
  30255. @see #close()]]>
  30256. </doc>
  30257. </method>
  30258. <method name="emitRecord"
  30259. abstract="false" native="false" synchronized="false"
  30260. static="false" final="false" visibility="public"
  30261. deprecated="not deprecated">
  30262. <param name="contextName" type="java.lang.String"/>
  30263. <param name="recordName" type="java.lang.String"/>
  30264. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  30265. <doc>
  30266. <![CDATA[Emits a metrics record to a file.]]>
  30267. </doc>
  30268. </method>
  30269. <method name="flush"
  30270. abstract="false" native="false" synchronized="false"
  30271. static="false" final="false" visibility="public"
  30272. deprecated="not deprecated">
  30273. <doc>
  30274. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  30275. </doc>
  30276. </method>
  30277. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  30278. transient="false" volatile="false"
  30279. static="true" final="true" visibility="protected"
  30280. deprecated="not deprecated">
  30281. </field>
  30282. <field name="PERIOD_PROPERTY" type="java.lang.String"
  30283. transient="false" volatile="false"
  30284. static="true" final="true" visibility="protected"
  30285. deprecated="not deprecated">
  30286. </field>
  30287. <doc>
  30288. <![CDATA[Metrics context for writing metrics to a file.<p/>
  30289. This class is configured by setting ContextFactory attributes which in turn
  30290. are usually configured through a properties file. All the attributes are
  30291. prefixed by the contextName. For example, the properties file might contain:
  30292. <pre>
  30293. myContextName.fileName=/tmp/metrics.log
  30294. myContextName.period=5
  30295. </pre>
  30296. @see org.apache.hadoop.metrics2.sink.FileSink for metrics 2.0.]]>
  30297. </doc>
  30298. </class>
  30299. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  30300. <doc>
  30301. <![CDATA[Implementation of the metrics package that writes the metrics to a file.
  30302. Programmers should not normally need to use this package directly. Instead
  30303. they should use org.hadoop.metrics.
  30304. <p/>
  30305. These are the implementation specific factory attributes
  30306. (See ContextFactory.getFactory()):
  30307. <dl>
  30308. <dt><i>contextName</i>.fileName</dt>
  30309. <dd>The path of the file to which metrics in context <i>contextName</i>
  30310. are to be appended. If this attribute is not specified, the metrics
  30311. are written to standard output by default.</dd>
  30312. <dt><i>contextName</i>.period</dt>
  30313. <dd>The period in seconds on which the metric data is written to the
  30314. file.</dd>
  30315. </dl>]]>
  30316. </doc>
  30317. </package>
  30318. <package name="org.apache.hadoop.metrics.ganglia">
  30319. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  30320. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  30321. abstract="false"
  30322. static="false" final="false" visibility="public"
  30323. deprecated="not deprecated">
  30324. <constructor name="GangliaContext"
  30325. static="false" final="false" visibility="public"
  30326. deprecated="not deprecated">
  30327. <doc>
  30328. <![CDATA[Creates a new instance of GangliaContext]]>
  30329. </doc>
  30330. </constructor>
  30331. <method name="init"
  30332. abstract="false" native="false" synchronized="false"
  30333. static="false" final="false" visibility="public"
  30334. deprecated="not deprecated">
  30335. <param name="contextName" type="java.lang.String"/>
  30336. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  30337. </method>
  30338. <method name="close"
  30339. abstract="false" native="false" synchronized="false"
  30340. static="false" final="false" visibility="public"
  30341. deprecated="not deprecated">
  30342. <doc>
  30343. <![CDATA[method to close the datagram socket]]>
  30344. </doc>
  30345. </method>
  30346. <method name="emitRecord"
  30347. abstract="false" native="false" synchronized="false"
  30348. static="false" final="false" visibility="public"
  30349. deprecated="not deprecated">
  30350. <param name="contextName" type="java.lang.String"/>
  30351. <param name="recordName" type="java.lang.String"/>
  30352. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  30353. <exception name="IOException" type="java.io.IOException"/>
  30354. </method>
  30355. <method name="emitMetric"
  30356. abstract="false" native="false" synchronized="false"
  30357. static="false" final="false" visibility="protected"
  30358. deprecated="not deprecated">
  30359. <param name="name" type="java.lang.String"/>
  30360. <param name="type" type="java.lang.String"/>
  30361. <param name="value" type="java.lang.String"/>
  30362. <exception name="IOException" type="java.io.IOException"/>
  30363. </method>
  30364. <method name="getUnits" return="java.lang.String"
  30365. abstract="false" native="false" synchronized="false"
  30366. static="false" final="false" visibility="protected"
  30367. deprecated="not deprecated">
  30368. <param name="metricName" type="java.lang.String"/>
  30369. </method>
  30370. <method name="getSlope" return="int"
  30371. abstract="false" native="false" synchronized="false"
  30372. static="false" final="false" visibility="protected"
  30373. deprecated="not deprecated">
  30374. <param name="metricName" type="java.lang.String"/>
  30375. </method>
  30376. <method name="getTmax" return="int"
  30377. abstract="false" native="false" synchronized="false"
  30378. static="false" final="false" visibility="protected"
  30379. deprecated="not deprecated">
  30380. <param name="metricName" type="java.lang.String"/>
  30381. </method>
  30382. <method name="getDmax" return="int"
  30383. abstract="false" native="false" synchronized="false"
  30384. static="false" final="false" visibility="protected"
  30385. deprecated="not deprecated">
  30386. <param name="metricName" type="java.lang.String"/>
  30387. </method>
  30388. <method name="xdr_string"
  30389. abstract="false" native="false" synchronized="false"
  30390. static="false" final="false" visibility="protected"
  30391. deprecated="not deprecated">
  30392. <param name="s" type="java.lang.String"/>
  30393. <doc>
  30394. <![CDATA[Puts a string into the buffer by first writing the size of the string
  30395. as an int, followed by the bytes of the string, padded if necessary to
  30396. a multiple of 4.]]>
  30397. </doc>
  30398. </method>
  30399. <method name="xdr_int"
  30400. abstract="false" native="false" synchronized="false"
  30401. static="false" final="false" visibility="protected"
  30402. deprecated="not deprecated">
  30403. <param name="i" type="int"/>
  30404. <doc>
  30405. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  30406. </doc>
  30407. </method>
  30408. <field name="buffer" type="byte[]"
  30409. transient="false" volatile="false"
  30410. static="false" final="false" visibility="protected"
  30411. deprecated="not deprecated">
  30412. </field>
  30413. <field name="offset" type="int"
  30414. transient="false" volatile="false"
  30415. static="false" final="false" visibility="protected"
  30416. deprecated="not deprecated">
  30417. </field>
  30418. <field name="metricsServers" type="java.util.List"
  30419. transient="false" volatile="false"
  30420. static="false" final="false" visibility="protected"
  30421. deprecated="not deprecated">
  30422. </field>
  30423. <field name="datagramSocket" type="java.net.DatagramSocket"
  30424. transient="false" volatile="false"
  30425. static="false" final="false" visibility="protected"
  30426. deprecated="not deprecated">
  30427. </field>
  30428. <doc>
  30429. <![CDATA[Context for sending metrics to Ganglia.]]>
  30430. </doc>
  30431. </class>
  30432. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  30433. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  30434. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  30435. abstract="false"
  30436. static="false" final="false" visibility="public"
  30437. deprecated="not deprecated">
  30438. <constructor name="GangliaContext31"
  30439. static="false" final="false" visibility="public"
  30440. deprecated="not deprecated">
  30441. </constructor>
  30442. <method name="init"
  30443. abstract="false" native="false" synchronized="false"
  30444. static="false" final="false" visibility="public"
  30445. deprecated="not deprecated">
  30446. <param name="contextName" type="java.lang.String"/>
  30447. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  30448. </method>
  30449. <method name="emitMetric"
  30450. abstract="false" native="false" synchronized="false"
  30451. static="false" final="false" visibility="protected"
  30452. deprecated="not deprecated">
  30453. <param name="name" type="java.lang.String"/>
  30454. <param name="type" type="java.lang.String"/>
  30455. <param name="value" type="java.lang.String"/>
  30456. <exception name="IOException" type="java.io.IOException"/>
  30457. </method>
  30458. <doc>
  30459. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  30460. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  30461. </doc>
  30462. </class>
  30463. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  30464. <doc>
  30465. <![CDATA[<!--
  30466. * Licensed to the Apache Software Foundation (ASF) under one
  30467. * or more contributor license agreements. See the NOTICE file
  30468. * distributed with this work for additional information
  30469. * regarding copyright ownership. The ASF licenses this file
  30470. * to you under the Apache License, Version 2.0 (the
  30471. * "License"); you may not use this file except in compliance
  30472. * with the License. You may obtain a copy of the License at
  30473. *
  30474. * http://www.apache.org/licenses/LICENSE-2.0
  30475. *
  30476. * Unless required by applicable law or agreed to in writing, software
  30477. * distributed under the License is distributed on an "AS IS" BASIS,
  30478. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  30479. * See the License for the specific language governing permissions and
  30480. * limitations under the License.
  30481. -->
  30482. Implementation of the metrics package that sends metric data to
  30483. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  30484. Programmers should not normally need to use this package directly. Instead
  30485. they should use org.hadoop.metrics.
  30486. <p/>
  30487. These are the implementation specific factory attributes
  30488. (See ContextFactory.getFactory()):
  30489. <dl>
  30490. <dt><i>contextName</i>.servers</dt>
  30491. <dd>Space and/or comma separated sequence of servers to which UDP
  30492. messages should be sent.</dd>
  30493. <dt><i>contextName</i>.period</dt>
  30494. <dd>The period in seconds on which the metric data is sent to the
  30495. server(s).</dd>
  30496. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  30497. <dd>The units for the specified metric in the specified record.</dd>
  30498. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  30499. <dd>The slope for the specified metric in the specified record.</dd>
  30500. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  30501. <dd>The tmax for the specified metric in the specified record.</dd>
  30502. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  30503. <dd>The dmax for the specified metric in the specified record.</dd>
  30504. </dl>]]>
  30505. </doc>
  30506. </package>
  30507. <package name="org.apache.hadoop.metrics.spi">
  30508. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  30509. <class name="AbstractMetricsContext" extends="java.lang.Object"
  30510. abstract="true"
  30511. static="false" final="false" visibility="public"
  30512. deprecated="not deprecated">
  30513. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  30514. <constructor name="AbstractMetricsContext"
  30515. static="false" final="false" visibility="protected"
  30516. deprecated="not deprecated">
  30517. <doc>
  30518. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  30519. </doc>
  30520. </constructor>
  30521. <method name="init"
  30522. abstract="false" native="false" synchronized="false"
  30523. static="false" final="false" visibility="public"
  30524. deprecated="not deprecated">
  30525. <param name="contextName" type="java.lang.String"/>
  30526. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  30527. <doc>
  30528. <![CDATA[Initializes the context.]]>
  30529. </doc>
  30530. </method>
  30531. <method name="getAttribute" return="java.lang.String"
  30532. abstract="false" native="false" synchronized="false"
  30533. static="false" final="false" visibility="protected"
  30534. deprecated="not deprecated">
  30535. <param name="attributeName" type="java.lang.String"/>
  30536. <doc>
  30537. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  30538. </doc>
  30539. </method>
  30540. <method name="getAttributeTable" return="java.util.Map"
  30541. abstract="false" native="false" synchronized="false"
  30542. static="false" final="false" visibility="protected"
  30543. deprecated="not deprecated">
  30544. <param name="tableName" type="java.lang.String"/>
  30545. <doc>
  30546. <![CDATA[Returns an attribute-value map derived from the factory attributes
  30547. by finding all factory attributes that begin with
  30548. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  30549. those attributes with the contextName and tableName stripped off.]]>
  30550. </doc>
  30551. </method>
  30552. <method name="getContextName" return="java.lang.String"
  30553. abstract="false" native="false" synchronized="false"
  30554. static="false" final="false" visibility="public"
  30555. deprecated="not deprecated">
  30556. <doc>
  30557. <![CDATA[Returns the context name.]]>
  30558. </doc>
  30559. </method>
  30560. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  30561. abstract="false" native="false" synchronized="false"
  30562. static="false" final="false" visibility="public"
  30563. deprecated="not deprecated">
  30564. <doc>
  30565. <![CDATA[Returns the factory by which this context was created.]]>
  30566. </doc>
  30567. </method>
  30568. <method name="startMonitoring"
  30569. abstract="false" native="false" synchronized="true"
  30570. static="false" final="false" visibility="public"
  30571. deprecated="not deprecated">
  30572. <exception name="IOException" type="java.io.IOException"/>
  30573. <doc>
  30574. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  30575. </doc>
  30576. </method>
  30577. <method name="stopMonitoring"
  30578. abstract="false" native="false" synchronized="true"
  30579. static="false" final="false" visibility="public"
  30580. deprecated="not deprecated">
  30581. <doc>
  30582. <![CDATA[Stops monitoring. This does not free buffered data.
  30583. @see #close()]]>
  30584. </doc>
  30585. </method>
  30586. <method name="isMonitoring" return="boolean"
  30587. abstract="false" native="false" synchronized="false"
  30588. static="false" final="false" visibility="public"
  30589. deprecated="not deprecated">
  30590. <doc>
  30591. <![CDATA[Returns true if monitoring is currently in progress.]]>
  30592. </doc>
  30593. </method>
  30594. <method name="close"
  30595. abstract="false" native="false" synchronized="true"
  30596. static="false" final="false" visibility="public"
  30597. deprecated="not deprecated">
  30598. <doc>
  30599. <![CDATA[Stops monitoring and frees buffered data, returning this
  30600. object to its initial state.]]>
  30601. </doc>
  30602. </method>
  30603. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  30604. abstract="false" native="false" synchronized="true"
  30605. static="false" final="true" visibility="public"
  30606. deprecated="not deprecated">
  30607. <param name="recordName" type="java.lang.String"/>
  30608. <doc>
  30609. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  30610. Throws an exception if the metrics implementation is configured with a fixed
  30611. set of record names and <code>recordName</code> is not in that set.
  30612. @param recordName the name of the record
  30613. @throws MetricsException if recordName conflicts with configuration data]]>
  30614. </doc>
  30615. </method>
  30616. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  30617. abstract="false" native="false" synchronized="false"
  30618. static="false" final="false" visibility="protected"
  30619. deprecated="not deprecated">
  30620. <param name="recordName" type="java.lang.String"/>
  30621. <doc>
  30622. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  30623. @param recordName the name of the record
  30624. @return newly created instance of MetricsRecordImpl or subclass]]>
  30625. </doc>
  30626. </method>
  30627. <method name="registerUpdater"
  30628. abstract="false" native="false" synchronized="true"
  30629. static="false" final="false" visibility="public"
  30630. deprecated="not deprecated">
  30631. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  30632. <doc>
  30633. <![CDATA[Registers a callback to be called at time intervals determined by
  30634. the configuration.
  30635. @param updater object to be run periodically; it should update
  30636. some metrics records]]>
  30637. </doc>
  30638. </method>
  30639. <method name="unregisterUpdater"
  30640. abstract="false" native="false" synchronized="true"
  30641. static="false" final="false" visibility="public"
  30642. deprecated="not deprecated">
  30643. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  30644. <doc>
  30645. <![CDATA[Removes a callback, if it exists.
  30646. @param updater object to be removed from the callback list]]>
  30647. </doc>
  30648. </method>
  30649. <method name="getAllRecords" return="java.util.Map"
  30650. abstract="false" native="false" synchronized="true"
  30651. static="false" final="false" visibility="public"
  30652. deprecated="not deprecated">
  30653. <doc>
  30654. <![CDATA[Retrieves all the records managed by this MetricsContext.
  30655. Useful for monitoring systems that are polling-based.
  30656. @return A non-null collection of all monitoring records.]]>
  30657. </doc>
  30658. </method>
  30659. <method name="emitRecord"
  30660. abstract="true" native="false" synchronized="false"
  30661. static="false" final="false" visibility="protected"
  30662. deprecated="not deprecated">
  30663. <param name="contextName" type="java.lang.String"/>
  30664. <param name="recordName" type="java.lang.String"/>
  30665. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  30666. <exception name="IOException" type="java.io.IOException"/>
  30667. <doc>
  30668. <![CDATA[Sends a record to the metrics system.]]>
  30669. </doc>
  30670. </method>
  30671. <method name="flush"
  30672. abstract="false" native="false" synchronized="false"
  30673. static="false" final="false" visibility="protected"
  30674. deprecated="not deprecated">
  30675. <exception name="IOException" type="java.io.IOException"/>
  30676. <doc>
  30677. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  30678. Subclasses may override it in order to perform some kind of flush.]]>
  30679. </doc>
  30680. </method>
  30681. <method name="update"
  30682. abstract="false" native="false" synchronized="false"
  30683. static="false" final="false" visibility="protected"
  30684. deprecated="not deprecated">
  30685. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  30686. <doc>
  30687. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  30688. the internal table of metric data.]]>
  30689. </doc>
  30690. </method>
  30691. <method name="remove"
  30692. abstract="false" native="false" synchronized="false"
  30693. static="false" final="false" visibility="protected"
  30694. deprecated="not deprecated">
  30695. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  30696. <doc>
  30697. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  30698. the internal table of metric data. A row matches if it has the same
  30699. tag names and values as record, but it may also have additional
  30700. tags.]]>
  30701. </doc>
  30702. </method>
  30703. <method name="getPeriod" return="int"
  30704. abstract="false" native="false" synchronized="false"
  30705. static="false" final="false" visibility="public"
  30706. deprecated="not deprecated">
  30707. <doc>
  30708. <![CDATA[Returns the timer period.]]>
  30709. </doc>
  30710. </method>
  30711. <method name="setPeriod"
  30712. abstract="false" native="false" synchronized="false"
  30713. static="false" final="false" visibility="protected"
  30714. deprecated="not deprecated">
  30715. <param name="period" type="int"/>
  30716. <doc>
  30717. <![CDATA[Sets the timer period]]>
  30718. </doc>
  30719. </method>
  30720. <method name="parseAndSetPeriod"
  30721. abstract="false" native="false" synchronized="false"
  30722. static="false" final="false" visibility="protected"
  30723. deprecated="not deprecated">
  30724. <param name="attributeName" type="java.lang.String"/>
  30725. <doc>
  30726. <![CDATA[If a period is set in the attribute passed in, override
  30727. the default with it.]]>
  30728. </doc>
  30729. </method>
  30730. <doc>
  30731. <![CDATA[The main class of the Service Provider Interface. This class should be
  30732. extended in order to integrate the Metrics API with a specific metrics
  30733. client library. <p/>
  30734. This class implements the internal table of metric data, and the timer
  30735. on which data is to be sent to the metrics system. Subclasses must
  30736. override the abstract <code>emitRecord</code> method in order to transmit
  30737. the data. <p/>]]>
  30738. </doc>
  30739. </class>
  30740. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  30741. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  30742. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  30743. abstract="false"
  30744. static="false" final="false" visibility="public"
  30745. deprecated="not deprecated">
  30746. <constructor name="CompositeContext"
  30747. static="false" final="false" visibility="public"
  30748. deprecated="not deprecated">
  30749. </constructor>
  30750. <method name="init"
  30751. abstract="false" native="false" synchronized="false"
  30752. static="false" final="false" visibility="public"
  30753. deprecated="not deprecated">
  30754. <param name="contextName" type="java.lang.String"/>
  30755. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  30756. </method>
  30757. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  30758. abstract="false" native="false" synchronized="false"
  30759. static="false" final="false" visibility="public"
  30760. deprecated="not deprecated">
  30761. <param name="recordName" type="java.lang.String"/>
  30762. </method>
  30763. <method name="emitRecord"
  30764. abstract="false" native="false" synchronized="false"
  30765. static="false" final="false" visibility="protected"
  30766. deprecated="not deprecated">
  30767. <param name="contextName" type="java.lang.String"/>
  30768. <param name="recordName" type="java.lang.String"/>
  30769. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  30770. <exception name="IOException" type="java.io.IOException"/>
  30771. </method>
  30772. <method name="flush"
  30773. abstract="false" native="false" synchronized="false"
  30774. static="false" final="false" visibility="protected"
  30775. deprecated="not deprecated">
  30776. <exception name="IOException" type="java.io.IOException"/>
  30777. </method>
  30778. <method name="startMonitoring"
  30779. abstract="false" native="false" synchronized="false"
  30780. static="false" final="false" visibility="public"
  30781. deprecated="not deprecated">
  30782. <exception name="IOException" type="java.io.IOException"/>
  30783. </method>
  30784. <method name="stopMonitoring"
  30785. abstract="false" native="false" synchronized="false"
  30786. static="false" final="false" visibility="public"
  30787. deprecated="not deprecated">
  30788. </method>
  30789. <method name="isMonitoring" return="boolean"
  30790. abstract="false" native="false" synchronized="false"
  30791. static="false" final="false" visibility="public"
  30792. deprecated="not deprecated">
  30793. <doc>
  30794. <![CDATA[Return true if all subcontexts are monitoring.]]>
  30795. </doc>
  30796. </method>
  30797. <method name="close"
  30798. abstract="false" native="false" synchronized="false"
  30799. static="false" final="false" visibility="public"
  30800. deprecated="not deprecated">
  30801. </method>
  30802. <method name="registerUpdater"
  30803. abstract="false" native="false" synchronized="false"
  30804. static="false" final="false" visibility="public"
  30805. deprecated="not deprecated">
  30806. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  30807. </method>
  30808. <method name="unregisterUpdater"
  30809. abstract="false" native="false" synchronized="false"
  30810. static="false" final="false" visibility="public"
  30811. deprecated="not deprecated">
  30812. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  30813. </method>
  30814. </class>
  30815. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  30816. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  30817. <class name="MetricsRecordImpl" extends="java.lang.Object"
  30818. abstract="false"
  30819. static="false" final="false" visibility="public"
  30820. deprecated="not deprecated">
  30821. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  30822. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  30823. static="false" final="false" visibility="protected"
  30824. deprecated="not deprecated">
  30825. <doc>
  30826. <![CDATA[Creates a new instance of FileRecord]]>
  30827. </doc>
  30828. </constructor>
  30829. <method name="getRecordName" return="java.lang.String"
  30830. abstract="false" native="false" synchronized="false"
  30831. static="false" final="false" visibility="public"
  30832. deprecated="not deprecated">
  30833. <doc>
  30834. <![CDATA[Returns the record name.
  30835. @return the record name]]>
  30836. </doc>
  30837. </method>
  30838. <method name="setTag"
  30839. abstract="false" native="false" synchronized="false"
  30840. static="false" final="false" visibility="public"
  30841. deprecated="not deprecated">
  30842. <param name="tagName" type="java.lang.String"/>
  30843. <param name="tagValue" type="java.lang.String"/>
  30844. <doc>
  30845. <![CDATA[Sets the named tag to the specified value.
  30846. @param tagName name of the tag
  30847. @param tagValue new value of the tag
  30848. @throws MetricsException if the tagName conflicts with the configuration]]>
  30849. </doc>
  30850. </method>
  30851. <method name="setTag"
  30852. abstract="false" native="false" synchronized="false"
  30853. static="false" final="false" visibility="public"
  30854. deprecated="not deprecated">
  30855. <param name="tagName" type="java.lang.String"/>
  30856. <param name="tagValue" type="int"/>
  30857. <doc>
  30858. <![CDATA[Sets the named tag to the specified value.
  30859. @param tagName name of the tag
  30860. @param tagValue new value of the tag
  30861. @throws MetricsException if the tagName conflicts with the configuration]]>
  30862. </doc>
  30863. </method>
  30864. <method name="setTag"
  30865. abstract="false" native="false" synchronized="false"
  30866. static="false" final="false" visibility="public"
  30867. deprecated="not deprecated">
  30868. <param name="tagName" type="java.lang.String"/>
  30869. <param name="tagValue" type="long"/>
  30870. <doc>
  30871. <![CDATA[Sets the named tag to the specified value.
  30872. @param tagName name of the tag
  30873. @param tagValue new value of the tag
  30874. @throws MetricsException if the tagName conflicts with the configuration]]>
  30875. </doc>
  30876. </method>
  30877. <method name="setTag"
  30878. abstract="false" native="false" synchronized="false"
  30879. static="false" final="false" visibility="public"
  30880. deprecated="not deprecated">
  30881. <param name="tagName" type="java.lang.String"/>
  30882. <param name="tagValue" type="short"/>
  30883. <doc>
  30884. <![CDATA[Sets the named tag to the specified value.
  30885. @param tagName name of the tag
  30886. @param tagValue new value of the tag
  30887. @throws MetricsException if the tagName conflicts with the configuration]]>
  30888. </doc>
  30889. </method>
  30890. <method name="setTag"
  30891. abstract="false" native="false" synchronized="false"
  30892. static="false" final="false" visibility="public"
  30893. deprecated="not deprecated">
  30894. <param name="tagName" type="java.lang.String"/>
  30895. <param name="tagValue" type="byte"/>
  30896. <doc>
  30897. <![CDATA[Sets the named tag to the specified value.
  30898. @param tagName name of the tag
  30899. @param tagValue new value of the tag
  30900. @throws MetricsException if the tagName conflicts with the configuration]]>
  30901. </doc>
  30902. </method>
  30903. <method name="removeTag"
  30904. abstract="false" native="false" synchronized="false"
  30905. static="false" final="false" visibility="public"
  30906. deprecated="not deprecated">
  30907. <param name="tagName" type="java.lang.String"/>
  30908. <doc>
  30909. <![CDATA[Removes any tag of the specified name.]]>
  30910. </doc>
  30911. </method>
  30912. <method name="setMetric"
  30913. abstract="false" native="false" synchronized="false"
  30914. static="false" final="false" visibility="public"
  30915. deprecated="not deprecated">
  30916. <param name="metricName" type="java.lang.String"/>
  30917. <param name="metricValue" type="int"/>
  30918. <doc>
  30919. <![CDATA[Sets the named metric to the specified value.
  30920. @param metricName name of the metric
  30921. @param metricValue new value of the metric
  30922. @throws MetricsException if the metricName or the type of the metricValue
  30923. conflicts with the configuration]]>
  30924. </doc>
  30925. </method>
  30926. <method name="setMetric"
  30927. abstract="false" native="false" synchronized="false"
  30928. static="false" final="false" visibility="public"
  30929. deprecated="not deprecated">
  30930. <param name="metricName" type="java.lang.String"/>
  30931. <param name="metricValue" type="long"/>
  30932. <doc>
  30933. <![CDATA[Sets the named metric to the specified value.
  30934. @param metricName name of the metric
  30935. @param metricValue new value of the metric
  30936. @throws MetricsException if the metricName or the type of the metricValue
  30937. conflicts with the configuration]]>
  30938. </doc>
  30939. </method>
  30940. <method name="setMetric"
  30941. abstract="false" native="false" synchronized="false"
  30942. static="false" final="false" visibility="public"
  30943. deprecated="not deprecated">
  30944. <param name="metricName" type="java.lang.String"/>
  30945. <param name="metricValue" type="short"/>
  30946. <doc>
  30947. <![CDATA[Sets the named metric to the specified value.
  30948. @param metricName name of the metric
  30949. @param metricValue new value of the metric
  30950. @throws MetricsException if the metricName or the type of the metricValue
  30951. conflicts with the configuration]]>
  30952. </doc>
  30953. </method>
  30954. <method name="setMetric"
  30955. abstract="false" native="false" synchronized="false"
  30956. static="false" final="false" visibility="public"
  30957. deprecated="not deprecated">
  30958. <param name="metricName" type="java.lang.String"/>
  30959. <param name="metricValue" type="byte"/>
  30960. <doc>
  30961. <![CDATA[Sets the named metric to the specified value.
  30962. @param metricName name of the metric
  30963. @param metricValue new value of the metric
  30964. @throws MetricsException if the metricName or the type of the metricValue
  30965. conflicts with the configuration]]>
  30966. </doc>
  30967. </method>
  30968. <method name="setMetric"
  30969. abstract="false" native="false" synchronized="false"
  30970. static="false" final="false" visibility="public"
  30971. deprecated="not deprecated">
  30972. <param name="metricName" type="java.lang.String"/>
  30973. <param name="metricValue" type="float"/>
  30974. <doc>
  30975. <![CDATA[Sets the named metric to the specified value.
  30976. @param metricName name of the metric
  30977. @param metricValue new value of the metric
  30978. @throws MetricsException if the metricName or the type of the metricValue
  30979. conflicts with the configuration]]>
  30980. </doc>
  30981. </method>
  30982. <method name="incrMetric"
  30983. abstract="false" native="false" synchronized="false"
  30984. static="false" final="false" visibility="public"
  30985. deprecated="not deprecated">
  30986. <param name="metricName" type="java.lang.String"/>
  30987. <param name="metricValue" type="int"/>
  30988. <doc>
  30989. <![CDATA[Increments the named metric by the specified value.
  30990. @param metricName name of the metric
  30991. @param metricValue incremental value
  30992. @throws MetricsException if the metricName or the type of the metricValue
  30993. conflicts with the configuration]]>
  30994. </doc>
  30995. </method>
  30996. <method name="incrMetric"
  30997. abstract="false" native="false" synchronized="false"
  30998. static="false" final="false" visibility="public"
  30999. deprecated="not deprecated">
  31000. <param name="metricName" type="java.lang.String"/>
  31001. <param name="metricValue" type="long"/>
  31002. <doc>
  31003. <![CDATA[Increments the named metric by the specified value.
  31004. @param metricName name of the metric
  31005. @param metricValue incremental value
  31006. @throws MetricsException if the metricName or the type of the metricValue
  31007. conflicts with the configuration]]>
  31008. </doc>
  31009. </method>
  31010. <method name="incrMetric"
  31011. abstract="false" native="false" synchronized="false"
  31012. static="false" final="false" visibility="public"
  31013. deprecated="not deprecated">
  31014. <param name="metricName" type="java.lang.String"/>
  31015. <param name="metricValue" type="short"/>
  31016. <doc>
  31017. <![CDATA[Increments the named metric by the specified value.
  31018. @param metricName name of the metric
  31019. @param metricValue incremental value
  31020. @throws MetricsException if the metricName or the type of the metricValue
  31021. conflicts with the configuration]]>
  31022. </doc>
  31023. </method>
  31024. <method name="incrMetric"
  31025. abstract="false" native="false" synchronized="false"
  31026. static="false" final="false" visibility="public"
  31027. deprecated="not deprecated">
  31028. <param name="metricName" type="java.lang.String"/>
  31029. <param name="metricValue" type="byte"/>
  31030. <doc>
  31031. <![CDATA[Increments the named metric by the specified value.
  31032. @param metricName name of the metric
  31033. @param metricValue incremental value
  31034. @throws MetricsException if the metricName or the type of the metricValue
  31035. conflicts with the configuration]]>
  31036. </doc>
  31037. </method>
  31038. <method name="incrMetric"
  31039. abstract="false" native="false" synchronized="false"
  31040. static="false" final="false" visibility="public"
  31041. deprecated="not deprecated">
  31042. <param name="metricName" type="java.lang.String"/>
  31043. <param name="metricValue" type="float"/>
  31044. <doc>
  31045. <![CDATA[Increments the named metric by the specified value.
  31046. @param metricName name of the metric
  31047. @param metricValue incremental value
  31048. @throws MetricsException if the metricName or the type of the metricValue
  31049. conflicts with the configuration]]>
  31050. </doc>
  31051. </method>
  31052. <method name="update"
  31053. abstract="false" native="false" synchronized="false"
  31054. static="false" final="false" visibility="public"
  31055. deprecated="not deprecated">
  31056. <doc>
  31057. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  31058. If the tag values match an existing row, that row is updated;
  31059. otherwise, a new row is added.]]>
  31060. </doc>
  31061. </method>
  31062. <method name="remove"
  31063. abstract="false" native="false" synchronized="false"
  31064. static="false" final="false" visibility="public"
  31065. deprecated="not deprecated">
  31066. <doc>
  31067. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  31068. that equal the tags that have been set on this record.]]>
  31069. </doc>
  31070. </method>
  31071. <doc>
  31072. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  31073. from which it was created, and delegates back to it on <code>update</code>
  31074. and <code>remove()</code>.]]>
  31075. </doc>
  31076. </class>
  31077. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  31078. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  31079. <class name="MetricValue" extends="java.lang.Object"
  31080. abstract="false"
  31081. static="false" final="false" visibility="public"
  31082. deprecated="not deprecated">
  31083. <constructor name="MetricValue" type="java.lang.Number, boolean"
  31084. static="false" final="false" visibility="public"
  31085. deprecated="not deprecated">
  31086. <doc>
  31087. <![CDATA[Creates a new instance of MetricValue]]>
  31088. </doc>
  31089. </constructor>
  31090. <method name="isIncrement" return="boolean"
  31091. abstract="false" native="false" synchronized="false"
  31092. static="false" final="false" visibility="public"
  31093. deprecated="not deprecated">
  31094. </method>
  31095. <method name="isAbsolute" return="boolean"
  31096. abstract="false" native="false" synchronized="false"
  31097. static="false" final="false" visibility="public"
  31098. deprecated="not deprecated">
  31099. </method>
  31100. <method name="getNumber" return="java.lang.Number"
  31101. abstract="false" native="false" synchronized="false"
  31102. static="false" final="false" visibility="public"
  31103. deprecated="not deprecated">
  31104. </method>
  31105. <field name="ABSOLUTE" type="boolean"
  31106. transient="false" volatile="false"
  31107. static="true" final="true" visibility="public"
  31108. deprecated="not deprecated">
  31109. </field>
  31110. <field name="INCREMENT" type="boolean"
  31111. transient="false" volatile="false"
  31112. static="true" final="true" visibility="public"
  31113. deprecated="not deprecated">
  31114. </field>
  31115. <doc>
  31116. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  31117. </doc>
  31118. </class>
  31119. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  31120. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  31121. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31122. abstract="false"
  31123. static="false" final="false" visibility="public"
  31124. deprecated="not deprecated">
  31125. <constructor name="NoEmitMetricsContext"
  31126. static="false" final="false" visibility="public"
  31127. deprecated="not deprecated">
  31128. <doc>
  31129. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  31130. </doc>
  31131. </constructor>
  31132. <method name="init"
  31133. abstract="false" native="false" synchronized="false"
  31134. static="false" final="false" visibility="public"
  31135. deprecated="not deprecated">
  31136. <param name="contextName" type="java.lang.String"/>
  31137. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  31138. </method>
  31139. <method name="emitRecord"
  31140. abstract="false" native="false" synchronized="false"
  31141. static="false" final="false" visibility="protected"
  31142. deprecated="not deprecated">
  31143. <param name="contextName" type="java.lang.String"/>
  31144. <param name="recordName" type="java.lang.String"/>
  31145. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  31146. <doc>
  31147. <![CDATA[Do-nothing version of emitRecord]]>
  31148. </doc>
  31149. </method>
  31150. <doc>
  31151. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  31152. does save it for retrieval with getAllRecords().
  31153. This is useful if you want to support {@link MetricsServlet}, but
  31154. not emit metrics in any other way.]]>
  31155. </doc>
  31156. </class>
  31157. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  31158. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  31159. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31160. abstract="false"
  31161. static="false" final="false" visibility="public"
  31162. deprecated="not deprecated">
  31163. <constructor name="NullContext"
  31164. static="false" final="false" visibility="public"
  31165. deprecated="not deprecated">
  31166. <doc>
  31167. <![CDATA[Creates a new instance of NullContext]]>
  31168. </doc>
  31169. </constructor>
  31170. <method name="startMonitoring"
  31171. abstract="false" native="false" synchronized="false"
  31172. static="false" final="false" visibility="public"
  31173. deprecated="not deprecated">
  31174. <doc>
  31175. <![CDATA[Do-nothing version of startMonitoring]]>
  31176. </doc>
  31177. </method>
  31178. <method name="emitRecord"
  31179. abstract="false" native="false" synchronized="false"
  31180. static="false" final="false" visibility="protected"
  31181. deprecated="not deprecated">
  31182. <param name="contextName" type="java.lang.String"/>
  31183. <param name="recordName" type="java.lang.String"/>
  31184. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  31185. <doc>
  31186. <![CDATA[Do-nothing version of emitRecord]]>
  31187. </doc>
  31188. </method>
  31189. <method name="update"
  31190. abstract="false" native="false" synchronized="false"
  31191. static="false" final="false" visibility="protected"
  31192. deprecated="not deprecated">
  31193. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  31194. <doc>
  31195. <![CDATA[Do-nothing version of update]]>
  31196. </doc>
  31197. </method>
  31198. <method name="remove"
  31199. abstract="false" native="false" synchronized="false"
  31200. static="false" final="false" visibility="protected"
  31201. deprecated="not deprecated">
  31202. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  31203. <doc>
  31204. <![CDATA[Do-nothing version of remove]]>
  31205. </doc>
  31206. </method>
  31207. <doc>
  31208. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  31209. default context, so that no performance data is emitted if no configuration
  31210. data is found.]]>
  31211. </doc>
  31212. </class>
  31213. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  31214. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  31215. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31216. abstract="false"
  31217. static="false" final="false" visibility="public"
  31218. deprecated="not deprecated">
  31219. <constructor name="NullContextWithUpdateThread"
  31220. static="false" final="false" visibility="public"
  31221. deprecated="not deprecated">
  31222. <doc>
  31223. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  31224. </doc>
  31225. </constructor>
  31226. <method name="init"
  31227. abstract="false" native="false" synchronized="false"
  31228. static="false" final="false" visibility="public"
  31229. deprecated="not deprecated">
  31230. <param name="contextName" type="java.lang.String"/>
  31231. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  31232. </method>
  31233. <method name="emitRecord"
  31234. abstract="false" native="false" synchronized="false"
  31235. static="false" final="false" visibility="protected"
  31236. deprecated="not deprecated">
  31237. <param name="contextName" type="java.lang.String"/>
  31238. <param name="recordName" type="java.lang.String"/>
  31239. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  31240. <doc>
  31241. <![CDATA[Do-nothing version of emitRecord]]>
  31242. </doc>
  31243. </method>
  31244. <method name="update"
  31245. abstract="false" native="false" synchronized="false"
  31246. static="false" final="false" visibility="protected"
  31247. deprecated="not deprecated">
  31248. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  31249. <doc>
  31250. <![CDATA[Do-nothing version of update]]>
  31251. </doc>
  31252. </method>
  31253. <method name="remove"
  31254. abstract="false" native="false" synchronized="false"
  31255. static="false" final="false" visibility="protected"
  31256. deprecated="not deprecated">
  31257. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  31258. <doc>
  31259. <![CDATA[Do-nothing version of remove]]>
  31260. </doc>
  31261. </method>
  31262. <doc>
  31263. <![CDATA[A null context which has a thread calling
  31264. periodically when monitoring is started. This keeps the data sampled
  31265. correctly.
  31266. In all other respects, this is like the NULL context: No data is emitted.
  31267. This is suitable for Monitoring systems like JMX which reads the metrics
  31268. when someone reads the data from JMX.
  31269. The default impl of start and stop monitoring:
  31270. is the AbstractMetricsContext is good enough.]]>
  31271. </doc>
  31272. </class>
  31273. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  31274. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  31275. <class name="OutputRecord" extends="java.lang.Object"
  31276. abstract="false"
  31277. static="false" final="false" visibility="public"
  31278. deprecated="not deprecated">
  31279. <method name="getTagNames" return="java.util.Set"
  31280. abstract="false" native="false" synchronized="false"
  31281. static="false" final="false" visibility="public"
  31282. deprecated="not deprecated">
  31283. <doc>
  31284. <![CDATA[Returns the set of tag names]]>
  31285. </doc>
  31286. </method>
  31287. <method name="getTag" return="java.lang.Object"
  31288. abstract="false" native="false" synchronized="false"
  31289. static="false" final="false" visibility="public"
  31290. deprecated="not deprecated">
  31291. <param name="name" type="java.lang.String"/>
  31292. <doc>
  31293. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  31294. @return the tag value, or null if there is no such tag]]>
  31295. </doc>
  31296. </method>
  31297. <method name="getMetricNames" return="java.util.Set"
  31298. abstract="false" native="false" synchronized="false"
  31299. static="false" final="false" visibility="public"
  31300. deprecated="not deprecated">
  31301. <doc>
  31302. <![CDATA[Returns the set of metric names.]]>
  31303. </doc>
  31304. </method>
  31305. <method name="getMetric" return="java.lang.Number"
  31306. abstract="false" native="false" synchronized="false"
  31307. static="false" final="false" visibility="public"
  31308. deprecated="not deprecated">
  31309. <param name="name" type="java.lang.String"/>
  31310. <doc>
  31311. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  31312. </doc>
  31313. </method>
  31314. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  31315. abstract="false" native="false" synchronized="false"
  31316. static="false" final="false" visibility="public"
  31317. deprecated="not deprecated">
  31318. <doc>
  31319. <![CDATA[Returns a copy of this record's tags.]]>
  31320. </doc>
  31321. </method>
  31322. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  31323. abstract="false" native="false" synchronized="false"
  31324. static="false" final="false" visibility="public"
  31325. deprecated="not deprecated">
  31326. <doc>
  31327. <![CDATA[Returns a copy of this record's metrics.]]>
  31328. </doc>
  31329. </method>
  31330. <doc>
  31331. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  31332. </doc>
  31333. </class>
  31334. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  31335. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  31336. <class name="Util" extends="java.lang.Object"
  31337. abstract="false"
  31338. static="false" final="false" visibility="public"
  31339. deprecated="not deprecated">
  31340. <method name="parse" return="java.util.List"
  31341. abstract="false" native="false" synchronized="false"
  31342. static="true" final="false" visibility="public"
  31343. deprecated="not deprecated">
  31344. <param name="specs" type="java.lang.String"/>
  31345. <param name="defaultPort" type="int"/>
  31346. <doc>
  31347. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  31348. of the form <i>hostname</i> or <i>hostname:port</i>. If
  31349. the specs string is null, defaults to localhost:defaultPort.
  31350. @return a list of InetSocketAddress objects.]]>
  31351. </doc>
  31352. </method>
  31353. <doc>
  31354. <![CDATA[Static utility methods]]>
  31355. </doc>
  31356. </class>
  31357. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  31358. <doc>
  31359. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  31360. an interface allowing a variety of metrics reporting implementations to be
  31361. plugged in to the Metrics API. Examples of such implementations can be found
  31362. in the packages <code>org.apache.hadoop.metrics.file</code> and
  31363. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  31364. Plugging in an implementation involves writing a concrete subclass of
  31365. <code>AbstractMetricsContext</code>. The subclass should get its
  31366. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  31367. method.]]>
  31368. </doc>
  31369. </package>
  31370. <package name="org.apache.hadoop.metrics2">
  31371. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  31372. <class name="AbstractMetric" extends="java.lang.Object"
  31373. abstract="true"
  31374. static="false" final="false" visibility="public"
  31375. deprecated="not deprecated">
  31376. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  31377. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  31378. static="false" final="false" visibility="protected"
  31379. deprecated="not deprecated">
  31380. <doc>
  31381. <![CDATA[Construct the metric
  31382. @param info about the metric]]>
  31383. </doc>
  31384. </constructor>
  31385. <method name="name" return="java.lang.String"
  31386. abstract="false" native="false" synchronized="false"
  31387. static="false" final="false" visibility="public"
  31388. deprecated="not deprecated">
  31389. </method>
  31390. <method name="description" return="java.lang.String"
  31391. abstract="false" native="false" synchronized="false"
  31392. static="false" final="false" visibility="public"
  31393. deprecated="not deprecated">
  31394. </method>
  31395. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  31396. abstract="false" native="false" synchronized="false"
  31397. static="false" final="false" visibility="protected"
  31398. deprecated="not deprecated">
  31399. </method>
  31400. <method name="value" return="java.lang.Number"
  31401. abstract="true" native="false" synchronized="false"
  31402. static="false" final="false" visibility="public"
  31403. deprecated="not deprecated">
  31404. <doc>
  31405. <![CDATA[Get the value of the metric
  31406. @return the value of the metric]]>
  31407. </doc>
  31408. </method>
  31409. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  31410. abstract="true" native="false" synchronized="false"
  31411. static="false" final="false" visibility="public"
  31412. deprecated="not deprecated">
  31413. <doc>
  31414. <![CDATA[Get the type of the metric
  31415. @return the type of the metric]]>
  31416. </doc>
  31417. </method>
  31418. <method name="visit"
  31419. abstract="true" native="false" synchronized="false"
  31420. static="false" final="false" visibility="public"
  31421. deprecated="not deprecated">
  31422. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  31423. <doc>
  31424. <![CDATA[Accept a visitor interface
  31425. @param visitor of the metric]]>
  31426. </doc>
  31427. </method>
  31428. <method name="equals" return="boolean"
  31429. abstract="false" native="false" synchronized="false"
  31430. static="false" final="false" visibility="public"
  31431. deprecated="not deprecated">
  31432. <param name="obj" type="java.lang.Object"/>
  31433. </method>
  31434. <method name="hashCode" return="int"
  31435. abstract="false" native="false" synchronized="false"
  31436. static="false" final="false" visibility="public"
  31437. deprecated="not deprecated">
  31438. </method>
  31439. <method name="toString" return="java.lang.String"
  31440. abstract="false" native="false" synchronized="false"
  31441. static="false" final="false" visibility="public"
  31442. deprecated="not deprecated">
  31443. </method>
  31444. <doc>
  31445. <![CDATA[The immutable metric]]>
  31446. </doc>
  31447. </class>
  31448. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  31449. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  31450. <interface name="MetricsCollector" abstract="true"
  31451. static="false" final="false" visibility="public"
  31452. deprecated="not deprecated">
  31453. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31454. abstract="false" native="false" synchronized="false"
  31455. static="false" final="false" visibility="public"
  31456. deprecated="not deprecated">
  31457. <param name="name" type="java.lang.String"/>
  31458. <doc>
  31459. <![CDATA[Add a metrics record
  31460. @param name of the record
  31461. @return a metrics record builder for the record]]>
  31462. </doc>
  31463. </method>
  31464. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31465. abstract="false" native="false" synchronized="false"
  31466. static="false" final="false" visibility="public"
  31467. deprecated="not deprecated">
  31468. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31469. <doc>
  31470. <![CDATA[Add a metrics record
  31471. @param info of the record
  31472. @return a metrics record builder for the record]]>
  31473. </doc>
  31474. </method>
  31475. <doc>
  31476. <![CDATA[The metrics collector interface]]>
  31477. </doc>
  31478. </interface>
  31479. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  31480. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  31481. <class name="MetricsException" extends="java.lang.RuntimeException"
  31482. abstract="false"
  31483. static="false" final="false" visibility="public"
  31484. deprecated="not deprecated">
  31485. <constructor name="MetricsException" type="java.lang.String"
  31486. static="false" final="false" visibility="public"
  31487. deprecated="not deprecated">
  31488. <doc>
  31489. <![CDATA[Construct the exception with a message
  31490. @param message for the exception]]>
  31491. </doc>
  31492. </constructor>
  31493. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  31494. static="false" final="false" visibility="public"
  31495. deprecated="not deprecated">
  31496. <doc>
  31497. <![CDATA[Construct the exception with a message and a cause
  31498. @param message for the exception
  31499. @param cause of the exception]]>
  31500. </doc>
  31501. </constructor>
  31502. <constructor name="MetricsException" type="java.lang.Throwable"
  31503. static="false" final="false" visibility="public"
  31504. deprecated="not deprecated">
  31505. <doc>
  31506. <![CDATA[Construct the exception with a cause
  31507. @param cause of the exception]]>
  31508. </doc>
  31509. </constructor>
  31510. <doc>
  31511. <![CDATA[A general metrics exception wrapper]]>
  31512. </doc>
  31513. </class>
  31514. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  31515. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  31516. <class name="MetricsFilter" extends="java.lang.Object"
  31517. abstract="true"
  31518. static="false" final="false" visibility="public"
  31519. deprecated="not deprecated">
  31520. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  31521. <constructor name="MetricsFilter"
  31522. static="false" final="false" visibility="public"
  31523. deprecated="not deprecated">
  31524. </constructor>
  31525. <method name="accepts" return="boolean"
  31526. abstract="true" native="false" synchronized="false"
  31527. static="false" final="false" visibility="public"
  31528. deprecated="not deprecated">
  31529. <param name="name" type="java.lang.String"/>
  31530. <doc>
  31531. <![CDATA[Whether to accept the name
  31532. @param name to filter on
  31533. @return true to accept; false otherwise.]]>
  31534. </doc>
  31535. </method>
  31536. <method name="accepts" return="boolean"
  31537. abstract="true" native="false" synchronized="false"
  31538. static="false" final="false" visibility="public"
  31539. deprecated="not deprecated">
  31540. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  31541. <doc>
  31542. <![CDATA[Whether to accept the tag
  31543. @param tag to filter on
  31544. @return true to accept; false otherwise]]>
  31545. </doc>
  31546. </method>
  31547. <method name="accepts" return="boolean"
  31548. abstract="true" native="false" synchronized="false"
  31549. static="false" final="false" visibility="public"
  31550. deprecated="not deprecated">
  31551. <param name="tags" type="java.lang.Iterable"/>
  31552. <doc>
  31553. <![CDATA[Whether to accept the tags
  31554. @param tags to filter on
  31555. @return true to accept; false otherwise]]>
  31556. </doc>
  31557. </method>
  31558. <method name="accepts" return="boolean"
  31559. abstract="false" native="false" synchronized="false"
  31560. static="false" final="false" visibility="public"
  31561. deprecated="not deprecated">
  31562. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31563. <doc>
  31564. <![CDATA[Whether to accept the record
  31565. @param record to filter on
  31566. @return true to accept; false otherwise.]]>
  31567. </doc>
  31568. </method>
  31569. <doc>
  31570. <![CDATA[The metrics filter interface]]>
  31571. </doc>
  31572. </class>
  31573. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  31574. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  31575. <interface name="MetricsInfo" abstract="true"
  31576. static="false" final="false" visibility="public"
  31577. deprecated="not deprecated">
  31578. <method name="name" return="java.lang.String"
  31579. abstract="false" native="false" synchronized="false"
  31580. static="false" final="false" visibility="public"
  31581. deprecated="not deprecated">
  31582. <doc>
  31583. <![CDATA[@return the name of the metric/tag]]>
  31584. </doc>
  31585. </method>
  31586. <method name="description" return="java.lang.String"
  31587. abstract="false" native="false" synchronized="false"
  31588. static="false" final="false" visibility="public"
  31589. deprecated="not deprecated">
  31590. <doc>
  31591. <![CDATA[@return the description of the metric/tag]]>
  31592. </doc>
  31593. </method>
  31594. <doc>
  31595. <![CDATA[Interface to provide immutable meta info for metrics]]>
  31596. </doc>
  31597. </interface>
  31598. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  31599. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  31600. <interface name="MetricsPlugin" abstract="true"
  31601. static="false" final="false" visibility="public"
  31602. deprecated="not deprecated">
  31603. <method name="init"
  31604. abstract="false" native="false" synchronized="false"
  31605. static="false" final="false" visibility="public"
  31606. deprecated="not deprecated">
  31607. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  31608. <doc>
  31609. <![CDATA[Initialize the plugin
  31610. @param conf the configuration object for the plugin]]>
  31611. </doc>
  31612. </method>
  31613. <doc>
  31614. <![CDATA[The plugin interface for the metrics framework]]>
  31615. </doc>
  31616. </interface>
  31617. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  31618. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  31619. <interface name="MetricsRecord" abstract="true"
  31620. static="false" final="false" visibility="public"
  31621. deprecated="not deprecated">
  31622. <method name="timestamp" return="long"
  31623. abstract="false" native="false" synchronized="false"
  31624. static="false" final="false" visibility="public"
  31625. deprecated="not deprecated">
  31626. <doc>
  31627. <![CDATA[Get the timestamp of the metrics
  31628. @return the timestamp]]>
  31629. </doc>
  31630. </method>
  31631. <method name="name" return="java.lang.String"
  31632. abstract="false" native="false" synchronized="false"
  31633. static="false" final="false" visibility="public"
  31634. deprecated="not deprecated">
  31635. <doc>
  31636. <![CDATA[@return the record name]]>
  31637. </doc>
  31638. </method>
  31639. <method name="description" return="java.lang.String"
  31640. abstract="false" native="false" synchronized="false"
  31641. static="false" final="false" visibility="public"
  31642. deprecated="not deprecated">
  31643. <doc>
  31644. <![CDATA[@return the description of the record]]>
  31645. </doc>
  31646. </method>
  31647. <method name="context" return="java.lang.String"
  31648. abstract="false" native="false" synchronized="false"
  31649. static="false" final="false" visibility="public"
  31650. deprecated="not deprecated">
  31651. <doc>
  31652. <![CDATA[@return the context name of the record]]>
  31653. </doc>
  31654. </method>
  31655. <method name="tags" return="java.util.Collection"
  31656. abstract="false" native="false" synchronized="false"
  31657. static="false" final="false" visibility="public"
  31658. deprecated="not deprecated">
  31659. <doc>
  31660. <![CDATA[Get the tags of the record
  31661. Note: returning a collection instead of iterable as we
  31662. need to use tags as keys (hence Collection#hashCode etc.) in maps
  31663. @return an unmodifiable collection of tags]]>
  31664. </doc>
  31665. </method>
  31666. <method name="metrics" return="java.lang.Iterable"
  31667. abstract="false" native="false" synchronized="false"
  31668. static="false" final="false" visibility="public"
  31669. deprecated="not deprecated">
  31670. <doc>
  31671. <![CDATA[Get the metrics of the record
  31672. @return an immutable iterable interface for metrics]]>
  31673. </doc>
  31674. </method>
  31675. <doc>
  31676. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  31677. </doc>
  31678. </interface>
  31679. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  31680. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  31681. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  31682. abstract="true"
  31683. static="false" final="false" visibility="public"
  31684. deprecated="not deprecated">
  31685. <constructor name="MetricsRecordBuilder"
  31686. static="false" final="false" visibility="public"
  31687. deprecated="not deprecated">
  31688. </constructor>
  31689. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31690. abstract="true" native="false" synchronized="false"
  31691. static="false" final="false" visibility="public"
  31692. deprecated="not deprecated">
  31693. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31694. <param name="value" type="java.lang.String"/>
  31695. <doc>
  31696. <![CDATA[Add a metrics tag
  31697. @param info metadata of the tag
  31698. @param value of the tag
  31699. @return self]]>
  31700. </doc>
  31701. </method>
  31702. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31703. abstract="true" native="false" synchronized="false"
  31704. static="false" final="false" visibility="public"
  31705. deprecated="not deprecated">
  31706. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  31707. <doc>
  31708. <![CDATA[Add an immutable metrics tag object
  31709. @param tag a pre-made tag object (potentially save an object construction)
  31710. @return self]]>
  31711. </doc>
  31712. </method>
  31713. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31714. abstract="true" native="false" synchronized="false"
  31715. static="false" final="false" visibility="public"
  31716. deprecated="not deprecated">
  31717. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  31718. <doc>
  31719. <![CDATA[Add a pre-made immutable metric object
  31720. @param metric the pre-made metric to save an object construction
  31721. @return self]]>
  31722. </doc>
  31723. </method>
  31724. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31725. abstract="true" native="false" synchronized="false"
  31726. static="false" final="false" visibility="public"
  31727. deprecated="not deprecated">
  31728. <param name="value" type="java.lang.String"/>
  31729. <doc>
  31730. <![CDATA[Set the context tag
  31731. @param value of the context
  31732. @return self]]>
  31733. </doc>
  31734. </method>
  31735. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31736. abstract="true" native="false" synchronized="false"
  31737. static="false" final="false" visibility="public"
  31738. deprecated="not deprecated">
  31739. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31740. <param name="value" type="int"/>
  31741. <doc>
  31742. <![CDATA[Add an integer metric
  31743. @param info metadata of the metric
  31744. @param value of the metric
  31745. @return self]]>
  31746. </doc>
  31747. </method>
  31748. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31749. abstract="true" native="false" synchronized="false"
  31750. static="false" final="false" visibility="public"
  31751. deprecated="not deprecated">
  31752. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31753. <param name="value" type="long"/>
  31754. <doc>
  31755. <![CDATA[Add an long metric
  31756. @param info metadata of the metric
  31757. @param value of the metric
  31758. @return self]]>
  31759. </doc>
  31760. </method>
  31761. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31762. abstract="true" native="false" synchronized="false"
  31763. static="false" final="false" visibility="public"
  31764. deprecated="not deprecated">
  31765. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31766. <param name="value" type="int"/>
  31767. <doc>
  31768. <![CDATA[Add a integer gauge metric
  31769. @param info metadata of the metric
  31770. @param value of the metric
  31771. @return self]]>
  31772. </doc>
  31773. </method>
  31774. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31775. abstract="true" native="false" synchronized="false"
  31776. static="false" final="false" visibility="public"
  31777. deprecated="not deprecated">
  31778. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31779. <param name="value" type="long"/>
  31780. <doc>
  31781. <![CDATA[Add a long gauge metric
  31782. @param info metadata of the metric
  31783. @param value of the metric
  31784. @return self]]>
  31785. </doc>
  31786. </method>
  31787. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31788. abstract="true" native="false" synchronized="false"
  31789. static="false" final="false" visibility="public"
  31790. deprecated="not deprecated">
  31791. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31792. <param name="value" type="float"/>
  31793. <doc>
  31794. <![CDATA[Add a float gauge metric
  31795. @param info metadata of the metric
  31796. @param value of the metric
  31797. @return self]]>
  31798. </doc>
  31799. </method>
  31800. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  31801. abstract="true" native="false" synchronized="false"
  31802. static="false" final="false" visibility="public"
  31803. deprecated="not deprecated">
  31804. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  31805. <param name="value" type="double"/>
  31806. <doc>
  31807. <![CDATA[Add a double gauge metric
  31808. @param info metadata of the metric
  31809. @param value of the metric
  31810. @return self]]>
  31811. </doc>
  31812. </method>
  31813. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  31814. abstract="true" native="false" synchronized="false"
  31815. static="false" final="false" visibility="public"
  31816. deprecated="not deprecated">
  31817. <doc>
  31818. <![CDATA[@return the parent metrics collector object]]>
  31819. </doc>
  31820. </method>
  31821. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  31822. abstract="false" native="false" synchronized="false"
  31823. static="false" final="false" visibility="public"
  31824. deprecated="not deprecated">
  31825. <doc>
  31826. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  31827. @return the parent metrics collector object]]>
  31828. </doc>
  31829. </method>
  31830. <doc>
  31831. <![CDATA[The metrics record builder interface]]>
  31832. </doc>
  31833. </class>
  31834. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  31835. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  31836. <interface name="MetricsSink" abstract="true"
  31837. static="false" final="false" visibility="public"
  31838. deprecated="not deprecated">
  31839. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  31840. <method name="putMetrics"
  31841. abstract="false" native="false" synchronized="false"
  31842. static="false" final="false" visibility="public"
  31843. deprecated="not deprecated">
  31844. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  31845. <doc>
  31846. <![CDATA[Put a metrics record in the sink
  31847. @param record the record to put]]>
  31848. </doc>
  31849. </method>
  31850. <method name="flush"
  31851. abstract="false" native="false" synchronized="false"
  31852. static="false" final="false" visibility="public"
  31853. deprecated="not deprecated">
  31854. <doc>
  31855. <![CDATA[Flush any buffered metrics]]>
  31856. </doc>
  31857. </method>
  31858. <doc>
  31859. <![CDATA[The metrics sink interface. <p>
  31860. Implementations of this interface consume the {@link MetricsRecord} generated
  31861. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  31862. periodically pushes the {@link MetricsRecord} to the sink using
  31863. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  31864. implements {@link Closeable}, then the MetricsSystem will close the sink when
  31865. it is stopped.]]>
  31866. </doc>
  31867. </interface>
  31868. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  31869. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  31870. <interface name="MetricsSource" abstract="true"
  31871. static="false" final="false" visibility="public"
  31872. deprecated="not deprecated">
  31873. <method name="getMetrics"
  31874. abstract="false" native="false" synchronized="false"
  31875. static="false" final="false" visibility="public"
  31876. deprecated="not deprecated">
  31877. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  31878. <param name="all" type="boolean"/>
  31879. <doc>
  31880. <![CDATA[Get metrics from the source
  31881. @param collector to contain the resulting metrics snapshot
  31882. @param all if true, return all metrics even if unchanged.]]>
  31883. </doc>
  31884. </method>
  31885. <doc>
  31886. <![CDATA[The metrics source interface]]>
  31887. </doc>
  31888. </interface>
  31889. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  31890. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  31891. <class name="MetricsSystem" extends="java.lang.Object"
  31892. abstract="true"
  31893. static="false" final="false" visibility="public"
  31894. deprecated="not deprecated">
  31895. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  31896. <constructor name="MetricsSystem"
  31897. static="false" final="false" visibility="public"
  31898. deprecated="not deprecated">
  31899. </constructor>
  31900. <method name="init" return="org.apache.hadoop.metrics2.MetricsSystem"
  31901. abstract="true" native="false" synchronized="false"
  31902. static="false" final="false" visibility="public"
  31903. deprecated="not deprecated">
  31904. <param name="prefix" type="java.lang.String"/>
  31905. </method>
  31906. <method name="register" return="T"
  31907. abstract="true" native="false" synchronized="false"
  31908. static="false" final="false" visibility="public"
  31909. deprecated="not deprecated">
  31910. <param name="name" type="java.lang.String"/>
  31911. <param name="desc" type="java.lang.String"/>
  31912. <param name="source" type="T"/>
  31913. <doc>
  31914. <![CDATA[Register a metrics source
  31915. @param <T> the actual type of the source object
  31916. @param source object to register
  31917. @param name of the source. Must be unique or null (then extracted from
  31918. the annotations of the source object.)
  31919. @param desc the description of the source (or null. See above.)
  31920. @return the source object
  31921. @exception MetricsException]]>
  31922. </doc>
  31923. </method>
  31924. <method name="unregisterSource"
  31925. abstract="true" native="false" synchronized="false"
  31926. static="false" final="false" visibility="public"
  31927. deprecated="not deprecated">
  31928. <param name="name" type="java.lang.String"/>
  31929. <doc>
  31930. <![CDATA[Unregister a metrics source
  31931. @param name of the source. This is the name you use to call register()]]>
  31932. </doc>
  31933. </method>
  31934. <method name="register" return="T"
  31935. abstract="false" native="false" synchronized="false"
  31936. static="false" final="false" visibility="public"
  31937. deprecated="not deprecated">
  31938. <param name="source" type="T"/>
  31939. <doc>
  31940. <![CDATA[Register a metrics source (deriving name and description from the object)
  31941. @param <T> the actual type of the source object
  31942. @param source object to register
  31943. @return the source object
  31944. @exception MetricsException]]>
  31945. </doc>
  31946. </method>
  31947. <method name="getSource" return="org.apache.hadoop.metrics2.MetricsSource"
  31948. abstract="true" native="false" synchronized="false"
  31949. static="false" final="false" visibility="public"
  31950. deprecated="not deprecated">
  31951. <param name="name" type="java.lang.String"/>
  31952. <doc>
  31953. <![CDATA[@param name of the metrics source
  31954. @return the metrics source (potentially wrapped) object]]>
  31955. </doc>
  31956. </method>
  31957. <method name="register" return="T"
  31958. abstract="true" native="false" synchronized="false"
  31959. static="false" final="false" visibility="public"
  31960. deprecated="not deprecated">
  31961. <param name="name" type="java.lang.String"/>
  31962. <param name="desc" type="java.lang.String"/>
  31963. <param name="sink" type="T"/>
  31964. <doc>
  31965. <![CDATA[Register a metrics sink
  31966. @param <T> the type of the sink
  31967. @param sink to register
  31968. @param name of the sink. Must be unique.
  31969. @param desc the description of the sink
  31970. @return the sink
  31971. @exception MetricsException]]>
  31972. </doc>
  31973. </method>
  31974. <method name="register"
  31975. abstract="true" native="false" synchronized="false"
  31976. static="false" final="false" visibility="public"
  31977. deprecated="not deprecated">
  31978. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  31979. <doc>
  31980. <![CDATA[Register a callback interface for JMX events
  31981. @param callback the callback object implementing the MBean interface.]]>
  31982. </doc>
  31983. </method>
  31984. <method name="publishMetricsNow"
  31985. abstract="true" native="false" synchronized="false"
  31986. static="false" final="false" visibility="public"
  31987. deprecated="not deprecated">
  31988. <doc>
  31989. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  31990. This is a "soft" request: the expectation is that a best effort will be
  31991. done to synchronously snapshot the metrics from all the sources and put
  31992. them in all the sinks (including flushing the sinks) before returning to
  31993. the caller. If this can't be accomplished in reasonable time it's OK to
  31994. return to the caller before everything is done.]]>
  31995. </doc>
  31996. </method>
  31997. <method name="shutdown" return="boolean"
  31998. abstract="true" native="false" synchronized="false"
  31999. static="false" final="false" visibility="public"
  32000. deprecated="not deprecated">
  32001. <doc>
  32002. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  32003. The MetricsSystemMXBean will be unregistered.
  32004. @return true if shutdown completed]]>
  32005. </doc>
  32006. </method>
  32007. <doc>
  32008. <![CDATA[The metrics system interface]]>
  32009. </doc>
  32010. </class>
  32011. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  32012. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  32013. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  32014. abstract="true"
  32015. static="true" final="false" visibility="public"
  32016. deprecated="not deprecated">
  32017. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  32018. <constructor name="MetricsSystem.AbstractCallback"
  32019. static="false" final="false" visibility="public"
  32020. deprecated="not deprecated">
  32021. </constructor>
  32022. <method name="preStart"
  32023. abstract="false" native="false" synchronized="false"
  32024. static="false" final="false" visibility="public"
  32025. deprecated="not deprecated">
  32026. </method>
  32027. <method name="postStart"
  32028. abstract="false" native="false" synchronized="false"
  32029. static="false" final="false" visibility="public"
  32030. deprecated="not deprecated">
  32031. </method>
  32032. <method name="preStop"
  32033. abstract="false" native="false" synchronized="false"
  32034. static="false" final="false" visibility="public"
  32035. deprecated="not deprecated">
  32036. </method>
  32037. <method name="postStop"
  32038. abstract="false" native="false" synchronized="false"
  32039. static="false" final="false" visibility="public"
  32040. deprecated="not deprecated">
  32041. </method>
  32042. <doc>
  32043. <![CDATA[Convenient abstract class for implementing callback interface]]>
  32044. </doc>
  32045. </class>
  32046. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  32047. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  32048. <interface name="MetricsSystem.Callback" abstract="true"
  32049. static="true" final="false" visibility="public"
  32050. deprecated="not deprecated">
  32051. <method name="preStart"
  32052. abstract="false" native="false" synchronized="false"
  32053. static="false" final="false" visibility="public"
  32054. deprecated="not deprecated">
  32055. <doc>
  32056. <![CDATA[Called before start()]]>
  32057. </doc>
  32058. </method>
  32059. <method name="postStart"
  32060. abstract="false" native="false" synchronized="false"
  32061. static="false" final="false" visibility="public"
  32062. deprecated="not deprecated">
  32063. <doc>
  32064. <![CDATA[Called after start()]]>
  32065. </doc>
  32066. </method>
  32067. <method name="preStop"
  32068. abstract="false" native="false" synchronized="false"
  32069. static="false" final="false" visibility="public"
  32070. deprecated="not deprecated">
  32071. <doc>
  32072. <![CDATA[Called before stop()]]>
  32073. </doc>
  32074. </method>
  32075. <method name="postStop"
  32076. abstract="false" native="false" synchronized="false"
  32077. static="false" final="false" visibility="public"
  32078. deprecated="not deprecated">
  32079. <doc>
  32080. <![CDATA[Called after stop()]]>
  32081. </doc>
  32082. </method>
  32083. <doc>
  32084. <![CDATA[The metrics system callback interface (needed for proxies.)]]>
  32085. </doc>
  32086. </interface>
  32087. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  32088. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  32089. <interface name="MetricsSystemMXBean" abstract="true"
  32090. static="false" final="false" visibility="public"
  32091. deprecated="not deprecated">
  32092. <method name="start"
  32093. abstract="false" native="false" synchronized="false"
  32094. static="false" final="false" visibility="public"
  32095. deprecated="not deprecated">
  32096. <doc>
  32097. <![CDATA[Start the metrics system
  32098. @throws MetricsException]]>
  32099. </doc>
  32100. </method>
  32101. <method name="stop"
  32102. abstract="false" native="false" synchronized="false"
  32103. static="false" final="false" visibility="public"
  32104. deprecated="not deprecated">
  32105. <doc>
  32106. <![CDATA[Stop the metrics system
  32107. @throws MetricsException]]>
  32108. </doc>
  32109. </method>
  32110. <method name="startMetricsMBeans"
  32111. abstract="false" native="false" synchronized="false"
  32112. static="false" final="false" visibility="public"
  32113. deprecated="not deprecated">
  32114. <doc>
  32115. <![CDATA[Start metrics MBeans
  32116. @throws MetricsException]]>
  32117. </doc>
  32118. </method>
  32119. <method name="stopMetricsMBeans"
  32120. abstract="false" native="false" synchronized="false"
  32121. static="false" final="false" visibility="public"
  32122. deprecated="not deprecated">
  32123. <doc>
  32124. <![CDATA[Stop metrics MBeans.
  32125. Note, it doesn't stop the metrics system control MBean,
  32126. i.e this interface.
  32127. @throws MetricsException]]>
  32128. </doc>
  32129. </method>
  32130. <method name="currentConfig" return="java.lang.String"
  32131. abstract="false" native="false" synchronized="false"
  32132. static="false" final="false" visibility="public"
  32133. deprecated="not deprecated">
  32134. <doc>
  32135. <![CDATA[@return the current config
  32136. Avoided getConfig, as it'll turn into a "Config" attribute,
  32137. which doesn't support multiple line values in jconsole.
  32138. @throws MetricsException]]>
  32139. </doc>
  32140. </method>
  32141. <doc>
  32142. <![CDATA[The JMX interface to the metrics system]]>
  32143. </doc>
  32144. </interface>
  32145. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  32146. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  32147. <class name="MetricsTag" extends="java.lang.Object"
  32148. abstract="false"
  32149. static="false" final="false" visibility="public"
  32150. deprecated="not deprecated">
  32151. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  32152. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  32153. static="false" final="false" visibility="public"
  32154. deprecated="not deprecated">
  32155. <doc>
  32156. <![CDATA[Construct the tag with name, description and value
  32157. @param info of the tag
  32158. @param value of the tag]]>
  32159. </doc>
  32160. </constructor>
  32161. <method name="name" return="java.lang.String"
  32162. abstract="false" native="false" synchronized="false"
  32163. static="false" final="false" visibility="public"
  32164. deprecated="not deprecated">
  32165. </method>
  32166. <method name="description" return="java.lang.String"
  32167. abstract="false" native="false" synchronized="false"
  32168. static="false" final="false" visibility="public"
  32169. deprecated="not deprecated">
  32170. </method>
  32171. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  32172. abstract="false" native="false" synchronized="false"
  32173. static="false" final="false" visibility="public"
  32174. deprecated="not deprecated">
  32175. <doc>
  32176. <![CDATA[@return the info object of the tag]]>
  32177. </doc>
  32178. </method>
  32179. <method name="value" return="java.lang.String"
  32180. abstract="false" native="false" synchronized="false"
  32181. static="false" final="false" visibility="public"
  32182. deprecated="not deprecated">
  32183. <doc>
  32184. <![CDATA[Get the value of the tag
  32185. @return the value]]>
  32186. </doc>
  32187. </method>
  32188. <method name="equals" return="boolean"
  32189. abstract="false" native="false" synchronized="false"
  32190. static="false" final="false" visibility="public"
  32191. deprecated="not deprecated">
  32192. <param name="obj" type="java.lang.Object"/>
  32193. </method>
  32194. <method name="hashCode" return="int"
  32195. abstract="false" native="false" synchronized="false"
  32196. static="false" final="false" visibility="public"
  32197. deprecated="not deprecated">
  32198. </method>
  32199. <method name="toString" return="java.lang.String"
  32200. abstract="false" native="false" synchronized="false"
  32201. static="false" final="false" visibility="public"
  32202. deprecated="not deprecated">
  32203. </method>
  32204. <doc>
  32205. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  32206. </doc>
  32207. </class>
  32208. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  32209. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  32210. <interface name="MetricsVisitor" abstract="true"
  32211. static="false" final="false" visibility="public"
  32212. deprecated="not deprecated">
  32213. <method name="gauge"
  32214. abstract="false" native="false" synchronized="false"
  32215. static="false" final="false" visibility="public"
  32216. deprecated="not deprecated">
  32217. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32218. <param name="value" type="int"/>
  32219. <doc>
  32220. <![CDATA[Callback for integer value gauges
  32221. @param info the metric info
  32222. @param value of the metric]]>
  32223. </doc>
  32224. </method>
  32225. <method name="gauge"
  32226. abstract="false" native="false" synchronized="false"
  32227. static="false" final="false" visibility="public"
  32228. deprecated="not deprecated">
  32229. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32230. <param name="value" type="long"/>
  32231. <doc>
  32232. <![CDATA[Callback for long value gauges
  32233. @param info the metric info
  32234. @param value of the metric]]>
  32235. </doc>
  32236. </method>
  32237. <method name="gauge"
  32238. abstract="false" native="false" synchronized="false"
  32239. static="false" final="false" visibility="public"
  32240. deprecated="not deprecated">
  32241. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32242. <param name="value" type="float"/>
  32243. <doc>
  32244. <![CDATA[Callback for float value gauges
  32245. @param info the metric info
  32246. @param value of the metric]]>
  32247. </doc>
  32248. </method>
  32249. <method name="gauge"
  32250. abstract="false" native="false" synchronized="false"
  32251. static="false" final="false" visibility="public"
  32252. deprecated="not deprecated">
  32253. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32254. <param name="value" type="double"/>
  32255. <doc>
  32256. <![CDATA[Callback for double value gauges
  32257. @param info the metric info
  32258. @param value of the metric]]>
  32259. </doc>
  32260. </method>
  32261. <method name="counter"
  32262. abstract="false" native="false" synchronized="false"
  32263. static="false" final="false" visibility="public"
  32264. deprecated="not deprecated">
  32265. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32266. <param name="value" type="int"/>
  32267. <doc>
  32268. <![CDATA[Callback for integer value counters
  32269. @param info the metric info
  32270. @param value of the metric]]>
  32271. </doc>
  32272. </method>
  32273. <method name="counter"
  32274. abstract="false" native="false" synchronized="false"
  32275. static="false" final="false" visibility="public"
  32276. deprecated="not deprecated">
  32277. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32278. <param name="value" type="long"/>
  32279. <doc>
  32280. <![CDATA[Callback for long value counters
  32281. @param info the metric info
  32282. @param value of the metric]]>
  32283. </doc>
  32284. </method>
  32285. <doc>
  32286. <![CDATA[A visitor interface for metrics]]>
  32287. </doc>
  32288. </interface>
  32289. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  32290. <!-- start class org.apache.hadoop.metrics2.MetricType -->
  32291. <class name="MetricType" extends="java.lang.Enum"
  32292. abstract="false"
  32293. static="false" final="true" visibility="public"
  32294. deprecated="not deprecated">
  32295. <method name="values" return="org.apache.hadoop.metrics2.MetricType[]"
  32296. abstract="false" native="false" synchronized="false"
  32297. static="true" final="false" visibility="public"
  32298. deprecated="not deprecated">
  32299. </method>
  32300. <method name="valueOf" return="org.apache.hadoop.metrics2.MetricType"
  32301. abstract="false" native="false" synchronized="false"
  32302. static="true" final="false" visibility="public"
  32303. deprecated="not deprecated">
  32304. <param name="name" type="java.lang.String"/>
  32305. </method>
  32306. </class>
  32307. <!-- end class org.apache.hadoop.metrics2.MetricType -->
  32308. </package>
  32309. <package name="org.apache.hadoop.metrics2.annotation">
  32310. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  32311. <class name="Metric" abstract="true"
  32312. static="false" final="false" visibility="public"
  32313. deprecated="not deprecated">
  32314. <implements name="java.lang.annotation.Annotation"/>
  32315. <doc>
  32316. <![CDATA[Annotation interface for a single metric]]>
  32317. </doc>
  32318. </class>
  32319. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  32320. <!-- start class org.apache.hadoop.metrics2.annotation.Metric.Type -->
  32321. <class name="Metric.Type" extends="java.lang.Enum"
  32322. abstract="false"
  32323. static="true" final="true" visibility="public"
  32324. deprecated="not deprecated">
  32325. <method name="values" return="org.apache.hadoop.metrics2.annotation.Metric.Type[]"
  32326. abstract="false" native="false" synchronized="false"
  32327. static="true" final="false" visibility="public"
  32328. deprecated="not deprecated">
  32329. </method>
  32330. <method name="valueOf" return="org.apache.hadoop.metrics2.annotation.Metric.Type"
  32331. abstract="false" native="false" synchronized="false"
  32332. static="true" final="false" visibility="public"
  32333. deprecated="not deprecated">
  32334. <param name="name" type="java.lang.String"/>
  32335. </method>
  32336. </class>
  32337. <!-- end class org.apache.hadoop.metrics2.annotation.Metric.Type -->
  32338. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  32339. <class name="Metrics" abstract="true"
  32340. static="false" final="false" visibility="public"
  32341. deprecated="not deprecated">
  32342. <implements name="java.lang.annotation.Annotation"/>
  32343. <doc>
  32344. <![CDATA[Annotation interface for a group of metrics]]>
  32345. </doc>
  32346. </class>
  32347. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  32348. </package>
  32349. <package name="org.apache.hadoop.metrics2.filter">
  32350. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  32351. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  32352. abstract="false"
  32353. static="false" final="false" visibility="public"
  32354. deprecated="not deprecated">
  32355. <constructor name="GlobFilter"
  32356. static="false" final="false" visibility="public"
  32357. deprecated="not deprecated">
  32358. </constructor>
  32359. <method name="compile" return="java.util.regex.Pattern"
  32360. abstract="false" native="false" synchronized="false"
  32361. static="false" final="false" visibility="protected"
  32362. deprecated="not deprecated">
  32363. <param name="s" type="java.lang.String"/>
  32364. </method>
  32365. <doc>
  32366. <![CDATA[A glob pattern filter for metrics.
  32367. The class name is used in metrics config files]]>
  32368. </doc>
  32369. </class>
  32370. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  32371. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  32372. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  32373. abstract="false"
  32374. static="false" final="false" visibility="public"
  32375. deprecated="not deprecated">
  32376. <constructor name="RegexFilter"
  32377. static="false" final="false" visibility="public"
  32378. deprecated="not deprecated">
  32379. </constructor>
  32380. <method name="compile" return="java.util.regex.Pattern"
  32381. abstract="false" native="false" synchronized="false"
  32382. static="false" final="false" visibility="protected"
  32383. deprecated="not deprecated">
  32384. <param name="s" type="java.lang.String"/>
  32385. </method>
  32386. <doc>
  32387. <![CDATA[A regex pattern filter for metrics]]>
  32388. </doc>
  32389. </class>
  32390. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  32391. </package>
  32392. <package name="org.apache.hadoop.metrics2.lib">
  32393. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  32394. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  32395. abstract="false"
  32396. static="false" final="true" visibility="public"
  32397. deprecated="not deprecated">
  32398. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  32399. abstract="false" native="false" synchronized="false"
  32400. static="true" final="false" visibility="public"
  32401. deprecated="not deprecated">
  32402. </method>
  32403. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  32404. abstract="false" native="false" synchronized="false"
  32405. static="true" final="false" visibility="public"
  32406. deprecated="not deprecated">
  32407. <param name="name" type="java.lang.String"/>
  32408. </method>
  32409. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  32410. abstract="false" native="false" synchronized="false"
  32411. static="true" final="false" visibility="public"
  32412. deprecated="not deprecated">
  32413. <param name="prefix" type="java.lang.String"/>
  32414. <doc>
  32415. <![CDATA[Convenience method to initialize the metrics system
  32416. @param prefix for the metrics system configuration
  32417. @return the metrics system instance]]>
  32418. </doc>
  32419. </method>
  32420. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  32421. abstract="false" native="false" synchronized="false"
  32422. static="true" final="false" visibility="public"
  32423. deprecated="not deprecated">
  32424. <doc>
  32425. <![CDATA[@return the metrics system object]]>
  32426. </doc>
  32427. </method>
  32428. <method name="shutdown"
  32429. abstract="false" native="false" synchronized="false"
  32430. static="true" final="false" visibility="public"
  32431. deprecated="not deprecated">
  32432. <doc>
  32433. <![CDATA[Shutdown the metrics system]]>
  32434. </doc>
  32435. </method>
  32436. <method name="setInstance" return="org.apache.hadoop.metrics2.MetricsSystem"
  32437. abstract="false" native="false" synchronized="false"
  32438. static="true" final="false" visibility="public"
  32439. deprecated="not deprecated">
  32440. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  32441. </method>
  32442. <method name="setMiniClusterMode"
  32443. abstract="false" native="false" synchronized="false"
  32444. static="true" final="false" visibility="public"
  32445. deprecated="not deprecated">
  32446. <param name="choice" type="boolean"/>
  32447. </method>
  32448. <method name="inMiniClusterMode" return="boolean"
  32449. abstract="false" native="false" synchronized="false"
  32450. static="true" final="false" visibility="public"
  32451. deprecated="not deprecated">
  32452. </method>
  32453. <method name="newMBeanName" return="javax.management.ObjectName"
  32454. abstract="false" native="false" synchronized="false"
  32455. static="true" final="false" visibility="public"
  32456. deprecated="not deprecated">
  32457. <param name="name" type="java.lang.String"/>
  32458. </method>
  32459. <method name="removeMBeanName"
  32460. abstract="false" native="false" synchronized="false"
  32461. static="true" final="false" visibility="public"
  32462. deprecated="not deprecated">
  32463. <param name="name" type="javax.management.ObjectName"/>
  32464. </method>
  32465. <method name="sourceName" return="java.lang.String"
  32466. abstract="false" native="false" synchronized="false"
  32467. static="true" final="false" visibility="public"
  32468. deprecated="not deprecated">
  32469. <param name="name" type="java.lang.String"/>
  32470. <param name="dupOK" type="boolean"/>
  32471. </method>
  32472. <doc>
  32473. <![CDATA[The default metrics system singleton]]>
  32474. </doc>
  32475. </class>
  32476. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  32477. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  32478. <class name="Interns" extends="java.lang.Object"
  32479. abstract="false"
  32480. static="false" final="false" visibility="public"
  32481. deprecated="not deprecated">
  32482. <constructor name="Interns"
  32483. static="false" final="false" visibility="public"
  32484. deprecated="not deprecated">
  32485. </constructor>
  32486. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  32487. abstract="false" native="false" synchronized="false"
  32488. static="true" final="false" visibility="public"
  32489. deprecated="not deprecated">
  32490. <param name="name" type="java.lang.String"/>
  32491. <param name="description" type="java.lang.String"/>
  32492. <doc>
  32493. <![CDATA[Get a metric info object
  32494. @param name
  32495. @param description
  32496. @return an interned metric info object]]>
  32497. </doc>
  32498. </method>
  32499. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  32500. abstract="false" native="false" synchronized="false"
  32501. static="true" final="false" visibility="public"
  32502. deprecated="not deprecated">
  32503. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32504. <param name="value" type="java.lang.String"/>
  32505. <doc>
  32506. <![CDATA[Get a metrics tag
  32507. @param info of the tag
  32508. @param value of the tag
  32509. @return an interned metrics tag]]>
  32510. </doc>
  32511. </method>
  32512. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  32513. abstract="false" native="false" synchronized="false"
  32514. static="true" final="false" visibility="public"
  32515. deprecated="not deprecated">
  32516. <param name="name" type="java.lang.String"/>
  32517. <param name="description" type="java.lang.String"/>
  32518. <param name="value" type="java.lang.String"/>
  32519. <doc>
  32520. <![CDATA[Get a metrics tag
  32521. @param name of the tag
  32522. @param description of the tag
  32523. @param value of the tag
  32524. @return an interned metrics tag]]>
  32525. </doc>
  32526. </method>
  32527. <doc>
  32528. <![CDATA[Helpers to create interned metrics info]]>
  32529. </doc>
  32530. </class>
  32531. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  32532. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  32533. <class name="MetricsRegistry" extends="java.lang.Object"
  32534. abstract="false"
  32535. static="false" final="false" visibility="public"
  32536. deprecated="not deprecated">
  32537. <constructor name="MetricsRegistry" type="java.lang.String"
  32538. static="false" final="false" visibility="public"
  32539. deprecated="not deprecated">
  32540. <doc>
  32541. <![CDATA[Construct the registry with a record name
  32542. @param name of the record of the metrics]]>
  32543. </doc>
  32544. </constructor>
  32545. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  32546. static="false" final="false" visibility="public"
  32547. deprecated="not deprecated">
  32548. <doc>
  32549. <![CDATA[Construct the registry with a metadata object
  32550. @param info the info object for the metrics record/group]]>
  32551. </doc>
  32552. </constructor>
  32553. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  32554. abstract="false" native="false" synchronized="false"
  32555. static="false" final="false" visibility="public"
  32556. deprecated="not deprecated">
  32557. <doc>
  32558. <![CDATA[@return the info object of the metrics registry]]>
  32559. </doc>
  32560. </method>
  32561. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  32562. abstract="false" native="false" synchronized="true"
  32563. static="false" final="false" visibility="public"
  32564. deprecated="not deprecated">
  32565. <param name="name" type="java.lang.String"/>
  32566. <doc>
  32567. <![CDATA[Get a metric by name
  32568. @param name of the metric
  32569. @return the metric object]]>
  32570. </doc>
  32571. </method>
  32572. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  32573. abstract="false" native="false" synchronized="true"
  32574. static="false" final="false" visibility="public"
  32575. deprecated="not deprecated">
  32576. <param name="name" type="java.lang.String"/>
  32577. <doc>
  32578. <![CDATA[Get a tag by name
  32579. @param name of the tag
  32580. @return the tag object]]>
  32581. </doc>
  32582. </method>
  32583. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  32584. abstract="false" native="false" synchronized="false"
  32585. static="false" final="false" visibility="public"
  32586. deprecated="not deprecated">
  32587. <param name="name" type="java.lang.String"/>
  32588. <param name="desc" type="java.lang.String"/>
  32589. <param name="iVal" type="int"/>
  32590. <doc>
  32591. <![CDATA[Create a mutable integer counter
  32592. @param name of the metric
  32593. @param desc metric description
  32594. @param iVal initial value
  32595. @return a new counter object]]>
  32596. </doc>
  32597. </method>
  32598. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  32599. abstract="false" native="false" synchronized="true"
  32600. static="false" final="false" visibility="public"
  32601. deprecated="not deprecated">
  32602. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32603. <param name="iVal" type="int"/>
  32604. <doc>
  32605. <![CDATA[Create a mutable integer counter
  32606. @param info metadata of the metric
  32607. @param iVal initial value
  32608. @return a new counter object]]>
  32609. </doc>
  32610. </method>
  32611. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  32612. abstract="false" native="false" synchronized="false"
  32613. static="false" final="false" visibility="public"
  32614. deprecated="not deprecated">
  32615. <param name="name" type="java.lang.String"/>
  32616. <param name="desc" type="java.lang.String"/>
  32617. <param name="iVal" type="long"/>
  32618. <doc>
  32619. <![CDATA[Create a mutable long integer counter
  32620. @param name of the metric
  32621. @param desc metric description
  32622. @param iVal initial value
  32623. @return a new counter object]]>
  32624. </doc>
  32625. </method>
  32626. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  32627. abstract="false" native="false" synchronized="true"
  32628. static="false" final="false" visibility="public"
  32629. deprecated="not deprecated">
  32630. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32631. <param name="iVal" type="long"/>
  32632. <doc>
  32633. <![CDATA[Create a mutable long integer counter
  32634. @param info metadata of the metric
  32635. @param iVal initial value
  32636. @return a new counter object]]>
  32637. </doc>
  32638. </method>
  32639. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  32640. abstract="false" native="false" synchronized="false"
  32641. static="false" final="false" visibility="public"
  32642. deprecated="not deprecated">
  32643. <param name="name" type="java.lang.String"/>
  32644. <param name="desc" type="java.lang.String"/>
  32645. <param name="iVal" type="int"/>
  32646. <doc>
  32647. <![CDATA[Create a mutable integer gauge
  32648. @param name of the metric
  32649. @param desc metric description
  32650. @param iVal initial value
  32651. @return a new gauge object]]>
  32652. </doc>
  32653. </method>
  32654. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  32655. abstract="false" native="false" synchronized="true"
  32656. static="false" final="false" visibility="public"
  32657. deprecated="not deprecated">
  32658. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32659. <param name="iVal" type="int"/>
  32660. <doc>
  32661. <![CDATA[Create a mutable integer gauge
  32662. @param info metadata of the metric
  32663. @param iVal initial value
  32664. @return a new gauge object]]>
  32665. </doc>
  32666. </method>
  32667. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  32668. abstract="false" native="false" synchronized="false"
  32669. static="false" final="false" visibility="public"
  32670. deprecated="not deprecated">
  32671. <param name="name" type="java.lang.String"/>
  32672. <param name="desc" type="java.lang.String"/>
  32673. <param name="iVal" type="long"/>
  32674. <doc>
  32675. <![CDATA[Create a mutable long integer gauge
  32676. @param name of the metric
  32677. @param desc metric description
  32678. @param iVal initial value
  32679. @return a new gauge object]]>
  32680. </doc>
  32681. </method>
  32682. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  32683. abstract="false" native="false" synchronized="true"
  32684. static="false" final="false" visibility="public"
  32685. deprecated="not deprecated">
  32686. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32687. <param name="iVal" type="long"/>
  32688. <doc>
  32689. <![CDATA[Create a mutable long integer gauge
  32690. @param info metadata of the metric
  32691. @param iVal initial value
  32692. @return a new gauge object]]>
  32693. </doc>
  32694. </method>
  32695. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  32696. abstract="false" native="false" synchronized="true"
  32697. static="false" final="false" visibility="public"
  32698. deprecated="not deprecated">
  32699. <param name="name" type="java.lang.String"/>
  32700. <param name="desc" type="java.lang.String"/>
  32701. <param name="sampleName" type="java.lang.String"/>
  32702. <param name="valueName" type="java.lang.String"/>
  32703. <param name="interval" type="int"/>
  32704. <doc>
  32705. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  32706. @param name of the metric
  32707. @param desc metric description
  32708. @param sampleName of the metric (e.g., "Ops")
  32709. @param valueName of the metric (e.g., "Time" or "Latency")
  32710. @param interval rollover interval of estimator in seconds
  32711. @return a new quantile estimator object]]>
  32712. </doc>
  32713. </method>
  32714. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  32715. abstract="false" native="false" synchronized="true"
  32716. static="false" final="false" visibility="public"
  32717. deprecated="not deprecated">
  32718. <param name="name" type="java.lang.String"/>
  32719. <param name="desc" type="java.lang.String"/>
  32720. <param name="sampleName" type="java.lang.String"/>
  32721. <param name="valueName" type="java.lang.String"/>
  32722. <param name="extended" type="boolean"/>
  32723. <doc>
  32724. <![CDATA[Create a mutable metric with stats
  32725. @param name of the metric
  32726. @param desc metric description
  32727. @param sampleName of the metric (e.g., "Ops")
  32728. @param valueName of the metric (e.g., "Time" or "Latency")
  32729. @param extended produce extended stat (stdev, min/max etc.) if true.
  32730. @return a new mutable stat metric object]]>
  32731. </doc>
  32732. </method>
  32733. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  32734. abstract="false" native="false" synchronized="false"
  32735. static="false" final="false" visibility="public"
  32736. deprecated="not deprecated">
  32737. <param name="name" type="java.lang.String"/>
  32738. <param name="desc" type="java.lang.String"/>
  32739. <param name="sampleName" type="java.lang.String"/>
  32740. <param name="valueName" type="java.lang.String"/>
  32741. <doc>
  32742. <![CDATA[Create a mutable metric with stats
  32743. @param name of the metric
  32744. @param desc metric description
  32745. @param sampleName of the metric (e.g., "Ops")
  32746. @param valueName of the metric (e.g., "Time" or "Latency")
  32747. @return a new mutable metric object]]>
  32748. </doc>
  32749. </method>
  32750. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  32751. abstract="false" native="false" synchronized="false"
  32752. static="false" final="false" visibility="public"
  32753. deprecated="not deprecated">
  32754. <param name="name" type="java.lang.String"/>
  32755. <doc>
  32756. <![CDATA[Create a mutable rate metric
  32757. @param name of the metric
  32758. @return a new mutable metric object]]>
  32759. </doc>
  32760. </method>
  32761. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  32762. abstract="false" native="false" synchronized="false"
  32763. static="false" final="false" visibility="public"
  32764. deprecated="not deprecated">
  32765. <param name="name" type="java.lang.String"/>
  32766. <param name="description" type="java.lang.String"/>
  32767. <doc>
  32768. <![CDATA[Create a mutable rate metric
  32769. @param name of the metric
  32770. @param description of the metric
  32771. @return a new mutable rate metric object]]>
  32772. </doc>
  32773. </method>
  32774. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  32775. abstract="false" native="false" synchronized="false"
  32776. static="false" final="false" visibility="public"
  32777. deprecated="not deprecated">
  32778. <param name="name" type="java.lang.String"/>
  32779. <param name="desc" type="java.lang.String"/>
  32780. <param name="extended" type="boolean"/>
  32781. <doc>
  32782. <![CDATA[Create a mutable rate metric (for throughput measurement)
  32783. @param name of the metric
  32784. @param desc description
  32785. @param extended produce extended stat (stdev/min/max etc.) if true
  32786. @return a new mutable rate metric object]]>
  32787. </doc>
  32788. </method>
  32789. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  32790. abstract="false" native="false" synchronized="true"
  32791. static="false" final="false" visibility="public"
  32792. deprecated="not deprecated">
  32793. <param name="name" type="java.lang.String"/>
  32794. <param name="desc" type="java.lang.String"/>
  32795. <param name="extended" type="boolean"/>
  32796. <param name="returnExisting" type="boolean"/>
  32797. </method>
  32798. <method name="add"
  32799. abstract="false" native="false" synchronized="true"
  32800. static="false" final="false" visibility="public"
  32801. deprecated="not deprecated">
  32802. <param name="name" type="java.lang.String"/>
  32803. <param name="value" type="long"/>
  32804. <doc>
  32805. <![CDATA[Add sample to a stat metric by name.
  32806. @param name of the metric
  32807. @param value of the snapshot to add]]>
  32808. </doc>
  32809. </method>
  32810. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  32811. abstract="false" native="false" synchronized="false"
  32812. static="false" final="false" visibility="public"
  32813. deprecated="not deprecated">
  32814. <param name="name" type="java.lang.String"/>
  32815. <doc>
  32816. <![CDATA[Set the metrics context tag
  32817. @param name of the context
  32818. @return the registry itself as a convenience]]>
  32819. </doc>
  32820. </method>
  32821. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  32822. abstract="false" native="false" synchronized="false"
  32823. static="false" final="false" visibility="public"
  32824. deprecated="not deprecated">
  32825. <param name="name" type="java.lang.String"/>
  32826. <param name="description" type="java.lang.String"/>
  32827. <param name="value" type="java.lang.String"/>
  32828. <doc>
  32829. <![CDATA[Add a tag to the metrics
  32830. @param name of the tag
  32831. @param description of the tag
  32832. @param value of the tag
  32833. @return the registry (for keep adding tags)]]>
  32834. </doc>
  32835. </method>
  32836. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  32837. abstract="false" native="false" synchronized="false"
  32838. static="false" final="false" visibility="public"
  32839. deprecated="not deprecated">
  32840. <param name="name" type="java.lang.String"/>
  32841. <param name="description" type="java.lang.String"/>
  32842. <param name="value" type="java.lang.String"/>
  32843. <param name="override" type="boolean"/>
  32844. <doc>
  32845. <![CDATA[Add a tag to the metrics
  32846. @param name of the tag
  32847. @param description of the tag
  32848. @param value of the tag
  32849. @param override existing tag if true
  32850. @return the registry (for keep adding tags)]]>
  32851. </doc>
  32852. </method>
  32853. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  32854. abstract="false" native="false" synchronized="true"
  32855. static="false" final="false" visibility="public"
  32856. deprecated="not deprecated">
  32857. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32858. <param name="value" type="java.lang.String"/>
  32859. <param name="override" type="boolean"/>
  32860. <doc>
  32861. <![CDATA[Add a tag to the metrics
  32862. @param info metadata of the tag
  32863. @param value of the tag
  32864. @param override existing tag if true
  32865. @return the registry (for keep adding tags etc.)]]>
  32866. </doc>
  32867. </method>
  32868. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  32869. abstract="false" native="false" synchronized="false"
  32870. static="false" final="false" visibility="public"
  32871. deprecated="not deprecated">
  32872. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32873. <param name="value" type="java.lang.String"/>
  32874. </method>
  32875. <method name="snapshot"
  32876. abstract="false" native="false" synchronized="true"
  32877. static="false" final="false" visibility="public"
  32878. deprecated="not deprecated">
  32879. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  32880. <param name="all" type="boolean"/>
  32881. <doc>
  32882. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  32883. @param builder to contain the metrics snapshot
  32884. @param all get all the metrics even if the values are not changed.]]>
  32885. </doc>
  32886. </method>
  32887. <method name="toString" return="java.lang.String"
  32888. abstract="false" native="false" synchronized="false"
  32889. static="false" final="false" visibility="public"
  32890. deprecated="not deprecated">
  32891. </method>
  32892. <doc>
  32893. <![CDATA[An optional metrics registry class for creating and maintaining a
  32894. collection of MetricsMutables, making writing metrics source easier.]]>
  32895. </doc>
  32896. </class>
  32897. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  32898. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  32899. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  32900. abstract="true"
  32901. static="false" final="false" visibility="public"
  32902. deprecated="not deprecated">
  32903. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  32904. static="false" final="false" visibility="protected"
  32905. deprecated="not deprecated">
  32906. </constructor>
  32907. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  32908. abstract="false" native="false" synchronized="false"
  32909. static="false" final="false" visibility="protected"
  32910. deprecated="not deprecated">
  32911. </method>
  32912. <method name="incr"
  32913. abstract="true" native="false" synchronized="false"
  32914. static="false" final="false" visibility="public"
  32915. deprecated="not deprecated">
  32916. <doc>
  32917. <![CDATA[Increment the metric value by 1.]]>
  32918. </doc>
  32919. </method>
  32920. <doc>
  32921. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  32922. </doc>
  32923. </class>
  32924. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  32925. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  32926. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  32927. abstract="false"
  32928. static="false" final="false" visibility="public"
  32929. deprecated="not deprecated">
  32930. <method name="incr"
  32931. abstract="false" native="false" synchronized="true"
  32932. static="false" final="false" visibility="public"
  32933. deprecated="not deprecated">
  32934. </method>
  32935. <method name="incr"
  32936. abstract="false" native="false" synchronized="true"
  32937. static="false" final="false" visibility="public"
  32938. deprecated="not deprecated">
  32939. <param name="delta" type="int"/>
  32940. <doc>
  32941. <![CDATA[Increment the value by a delta
  32942. @param delta of the increment]]>
  32943. </doc>
  32944. </method>
  32945. <method name="value" return="int"
  32946. abstract="false" native="false" synchronized="false"
  32947. static="false" final="false" visibility="public"
  32948. deprecated="not deprecated">
  32949. </method>
  32950. <method name="snapshot"
  32951. abstract="false" native="false" synchronized="false"
  32952. static="false" final="false" visibility="public"
  32953. deprecated="not deprecated">
  32954. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  32955. <param name="all" type="boolean"/>
  32956. </method>
  32957. <doc>
  32958. <![CDATA[A mutable int counter for implementing metrics sources]]>
  32959. </doc>
  32960. </class>
  32961. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  32962. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  32963. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  32964. abstract="false"
  32965. static="false" final="false" visibility="public"
  32966. deprecated="not deprecated">
  32967. <method name="incr"
  32968. abstract="false" native="false" synchronized="true"
  32969. static="false" final="false" visibility="public"
  32970. deprecated="not deprecated">
  32971. </method>
  32972. <method name="incr"
  32973. abstract="false" native="false" synchronized="true"
  32974. static="false" final="false" visibility="public"
  32975. deprecated="not deprecated">
  32976. <param name="delta" type="long"/>
  32977. <doc>
  32978. <![CDATA[Increment the value by a delta
  32979. @param delta of the increment]]>
  32980. </doc>
  32981. </method>
  32982. <method name="value" return="long"
  32983. abstract="false" native="false" synchronized="false"
  32984. static="false" final="false" visibility="public"
  32985. deprecated="not deprecated">
  32986. </method>
  32987. <method name="snapshot"
  32988. abstract="false" native="false" synchronized="false"
  32989. static="false" final="false" visibility="public"
  32990. deprecated="not deprecated">
  32991. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  32992. <param name="all" type="boolean"/>
  32993. </method>
  32994. <doc>
  32995. <![CDATA[A mutable long counter]]>
  32996. </doc>
  32997. </class>
  32998. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  32999. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  33000. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33001. abstract="true"
  33002. static="false" final="false" visibility="public"
  33003. deprecated="not deprecated">
  33004. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  33005. static="false" final="false" visibility="protected"
  33006. deprecated="not deprecated">
  33007. </constructor>
  33008. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  33009. abstract="false" native="false" synchronized="false"
  33010. static="false" final="false" visibility="protected"
  33011. deprecated="not deprecated">
  33012. </method>
  33013. <method name="incr"
  33014. abstract="true" native="false" synchronized="false"
  33015. static="false" final="false" visibility="public"
  33016. deprecated="not deprecated">
  33017. <doc>
  33018. <![CDATA[Increment the value of the metric by 1]]>
  33019. </doc>
  33020. </method>
  33021. <method name="decr"
  33022. abstract="true" native="false" synchronized="false"
  33023. static="false" final="false" visibility="public"
  33024. deprecated="not deprecated">
  33025. <doc>
  33026. <![CDATA[Decrement the value of the metric by 1]]>
  33027. </doc>
  33028. </method>
  33029. <doc>
  33030. <![CDATA[The mutable gauge metric interface]]>
  33031. </doc>
  33032. </class>
  33033. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  33034. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  33035. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  33036. abstract="false"
  33037. static="false" final="false" visibility="public"
  33038. deprecated="not deprecated">
  33039. <method name="value" return="int"
  33040. abstract="false" native="false" synchronized="false"
  33041. static="false" final="false" visibility="public"
  33042. deprecated="not deprecated">
  33043. </method>
  33044. <method name="incr"
  33045. abstract="false" native="false" synchronized="true"
  33046. static="false" final="false" visibility="public"
  33047. deprecated="not deprecated">
  33048. </method>
  33049. <method name="incr"
  33050. abstract="false" native="false" synchronized="true"
  33051. static="false" final="false" visibility="public"
  33052. deprecated="not deprecated">
  33053. <param name="delta" type="int"/>
  33054. <doc>
  33055. <![CDATA[Increment by delta
  33056. @param delta of the increment]]>
  33057. </doc>
  33058. </method>
  33059. <method name="decr"
  33060. abstract="false" native="false" synchronized="true"
  33061. static="false" final="false" visibility="public"
  33062. deprecated="not deprecated">
  33063. </method>
  33064. <method name="decr"
  33065. abstract="false" native="false" synchronized="true"
  33066. static="false" final="false" visibility="public"
  33067. deprecated="not deprecated">
  33068. <param name="delta" type="int"/>
  33069. <doc>
  33070. <![CDATA[decrement by delta
  33071. @param delta of the decrement]]>
  33072. </doc>
  33073. </method>
  33074. <method name="set"
  33075. abstract="false" native="false" synchronized="false"
  33076. static="false" final="false" visibility="public"
  33077. deprecated="not deprecated">
  33078. <param name="value" type="int"/>
  33079. <doc>
  33080. <![CDATA[Set the value of the metric
  33081. @param value to set]]>
  33082. </doc>
  33083. </method>
  33084. <method name="snapshot"
  33085. abstract="false" native="false" synchronized="false"
  33086. static="false" final="false" visibility="public"
  33087. deprecated="not deprecated">
  33088. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33089. <param name="all" type="boolean"/>
  33090. </method>
  33091. <doc>
  33092. <![CDATA[A mutable int gauge]]>
  33093. </doc>
  33094. </class>
  33095. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  33096. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  33097. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  33098. abstract="false"
  33099. static="false" final="false" visibility="public"
  33100. deprecated="not deprecated">
  33101. <method name="value" return="long"
  33102. abstract="false" native="false" synchronized="false"
  33103. static="false" final="false" visibility="public"
  33104. deprecated="not deprecated">
  33105. </method>
  33106. <method name="incr"
  33107. abstract="false" native="false" synchronized="true"
  33108. static="false" final="false" visibility="public"
  33109. deprecated="not deprecated">
  33110. </method>
  33111. <method name="incr"
  33112. abstract="false" native="false" synchronized="true"
  33113. static="false" final="false" visibility="public"
  33114. deprecated="not deprecated">
  33115. <param name="delta" type="long"/>
  33116. <doc>
  33117. <![CDATA[Increment by delta
  33118. @param delta of the increment]]>
  33119. </doc>
  33120. </method>
  33121. <method name="decr"
  33122. abstract="false" native="false" synchronized="true"
  33123. static="false" final="false" visibility="public"
  33124. deprecated="not deprecated">
  33125. </method>
  33126. <method name="decr"
  33127. abstract="false" native="false" synchronized="true"
  33128. static="false" final="false" visibility="public"
  33129. deprecated="not deprecated">
  33130. <param name="delta" type="long"/>
  33131. <doc>
  33132. <![CDATA[decrement by delta
  33133. @param delta of the decrement]]>
  33134. </doc>
  33135. </method>
  33136. <method name="set"
  33137. abstract="false" native="false" synchronized="false"
  33138. static="false" final="false" visibility="public"
  33139. deprecated="not deprecated">
  33140. <param name="value" type="long"/>
  33141. <doc>
  33142. <![CDATA[Set the value of the metric
  33143. @param value to set]]>
  33144. </doc>
  33145. </method>
  33146. <method name="snapshot"
  33147. abstract="false" native="false" synchronized="false"
  33148. static="false" final="false" visibility="public"
  33149. deprecated="not deprecated">
  33150. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33151. <param name="all" type="boolean"/>
  33152. </method>
  33153. <doc>
  33154. <![CDATA[A mutable long gauge]]>
  33155. </doc>
  33156. </class>
  33157. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  33158. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  33159. <class name="MutableMetric" extends="java.lang.Object"
  33160. abstract="true"
  33161. static="false" final="false" visibility="public"
  33162. deprecated="not deprecated">
  33163. <constructor name="MutableMetric"
  33164. static="false" final="false" visibility="public"
  33165. deprecated="not deprecated">
  33166. </constructor>
  33167. <method name="snapshot"
  33168. abstract="true" native="false" synchronized="false"
  33169. static="false" final="false" visibility="public"
  33170. deprecated="not deprecated">
  33171. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33172. <param name="all" type="boolean"/>
  33173. <doc>
  33174. <![CDATA[Get a snapshot of the metric
  33175. @param builder the metrics record builder
  33176. @param all if true, snapshot unchanged metrics as well]]>
  33177. </doc>
  33178. </method>
  33179. <method name="snapshot"
  33180. abstract="false" native="false" synchronized="false"
  33181. static="false" final="false" visibility="public"
  33182. deprecated="not deprecated">
  33183. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33184. <doc>
  33185. <![CDATA[Get a snapshot of metric if changed
  33186. @param builder the metrics record builder]]>
  33187. </doc>
  33188. </method>
  33189. <method name="setChanged"
  33190. abstract="false" native="false" synchronized="false"
  33191. static="false" final="false" visibility="protected"
  33192. deprecated="not deprecated">
  33193. <doc>
  33194. <![CDATA[Set the changed flag in mutable operations]]>
  33195. </doc>
  33196. </method>
  33197. <method name="clearChanged"
  33198. abstract="false" native="false" synchronized="false"
  33199. static="false" final="false" visibility="protected"
  33200. deprecated="not deprecated">
  33201. <doc>
  33202. <![CDATA[Clear the changed flag in the snapshot operations]]>
  33203. </doc>
  33204. </method>
  33205. <method name="changed" return="boolean"
  33206. abstract="false" native="false" synchronized="false"
  33207. static="false" final="false" visibility="public"
  33208. deprecated="not deprecated">
  33209. <doc>
  33210. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  33211. </doc>
  33212. </method>
  33213. <doc>
  33214. <![CDATA[The mutable metric interface]]>
  33215. </doc>
  33216. </class>
  33217. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  33218. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  33219. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33220. abstract="false"
  33221. static="false" final="false" visibility="public"
  33222. deprecated="not deprecated">
  33223. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  33224. static="false" final="false" visibility="public"
  33225. deprecated="not deprecated">
  33226. <doc>
  33227. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  33228. over on the specified time interval.
  33229. @param name
  33230. of the metric
  33231. @param description
  33232. long-form textual description of the metric
  33233. @param sampleName
  33234. type of items in the stream (e.g., "Ops")
  33235. @param valueName
  33236. type of the values
  33237. @param interval
  33238. rollover interval (in seconds) of the estimator]]>
  33239. </doc>
  33240. </constructor>
  33241. <method name="snapshot"
  33242. abstract="false" native="false" synchronized="true"
  33243. static="false" final="false" visibility="public"
  33244. deprecated="not deprecated">
  33245. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33246. <param name="all" type="boolean"/>
  33247. </method>
  33248. <method name="add"
  33249. abstract="false" native="false" synchronized="true"
  33250. static="false" final="false" visibility="public"
  33251. deprecated="not deprecated">
  33252. <param name="value" type="long"/>
  33253. </method>
  33254. <method name="getInterval" return="int"
  33255. abstract="false" native="false" synchronized="false"
  33256. static="false" final="false" visibility="public"
  33257. deprecated="not deprecated">
  33258. </method>
  33259. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  33260. transient="false" volatile="false"
  33261. static="true" final="true" visibility="public"
  33262. deprecated="not deprecated">
  33263. </field>
  33264. <field name="previousSnapshot" type="java.util.Map"
  33265. transient="false" volatile="false"
  33266. static="false" final="false" visibility="protected"
  33267. deprecated="not deprecated">
  33268. </field>
  33269. <doc>
  33270. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  33271. quantiles with provably low error bounds. This is particularly useful for
  33272. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  33273. </doc>
  33274. </class>
  33275. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  33276. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  33277. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  33278. abstract="false"
  33279. static="false" final="false" visibility="public"
  33280. deprecated="not deprecated">
  33281. <doc>
  33282. <![CDATA[A convenient mutable metric for throughput measurement]]>
  33283. </doc>
  33284. </class>
  33285. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  33286. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  33287. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33288. abstract="false"
  33289. static="false" final="false" visibility="public"
  33290. deprecated="not deprecated">
  33291. <method name="init"
  33292. abstract="false" native="false" synchronized="false"
  33293. static="false" final="false" visibility="public"
  33294. deprecated="not deprecated">
  33295. <param name="protocol" type="java.lang.Class"/>
  33296. <doc>
  33297. <![CDATA[Initialize the registry with all the methods in a protocol
  33298. so they all show up in the first snapshot.
  33299. Convenient for JMX implementations.
  33300. @param protocol the protocol class]]>
  33301. </doc>
  33302. </method>
  33303. <method name="add"
  33304. abstract="false" native="false" synchronized="false"
  33305. static="false" final="false" visibility="public"
  33306. deprecated="not deprecated">
  33307. <param name="name" type="java.lang.String"/>
  33308. <param name="elapsed" type="long"/>
  33309. <doc>
  33310. <![CDATA[Add a rate sample for a rate metric
  33311. @param name of the rate metric
  33312. @param elapsed time]]>
  33313. </doc>
  33314. </method>
  33315. <method name="snapshot"
  33316. abstract="false" native="false" synchronized="false"
  33317. static="false" final="false" visibility="public"
  33318. deprecated="not deprecated">
  33319. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33320. <param name="all" type="boolean"/>
  33321. </method>
  33322. <doc>
  33323. <![CDATA[Helper class to manage a group of mutable rate metrics]]>
  33324. </doc>
  33325. </class>
  33326. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  33327. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  33328. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33329. abstract="false"
  33330. static="false" final="false" visibility="public"
  33331. deprecated="not deprecated">
  33332. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  33333. static="false" final="false" visibility="public"
  33334. deprecated="not deprecated">
  33335. <doc>
  33336. <![CDATA[Construct a sample statistics metric
  33337. @param name of the metric
  33338. @param description of the metric
  33339. @param sampleName of the metric (e.g. "Ops")
  33340. @param valueName of the metric (e.g. "Time", "Latency")
  33341. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  33342. </doc>
  33343. </constructor>
  33344. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  33345. static="false" final="false" visibility="public"
  33346. deprecated="not deprecated">
  33347. <doc>
  33348. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  33349. @param name of the metric
  33350. @param description of the metric
  33351. @param sampleName of the metric (e.g. "Ops")
  33352. @param valueName of the metric (e.g. "Time", "Latency")]]>
  33353. </doc>
  33354. </constructor>
  33355. <method name="setExtended"
  33356. abstract="false" native="false" synchronized="true"
  33357. static="false" final="false" visibility="public"
  33358. deprecated="not deprecated">
  33359. <param name="extended" type="boolean"/>
  33360. <doc>
  33361. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  33362. @param extended enable/disable displaying extended stats]]>
  33363. </doc>
  33364. </method>
  33365. <method name="add"
  33366. abstract="false" native="false" synchronized="true"
  33367. static="false" final="false" visibility="public"
  33368. deprecated="not deprecated">
  33369. <param name="numSamples" type="long"/>
  33370. <param name="sum" type="long"/>
  33371. <doc>
  33372. <![CDATA[Add a number of samples and their sum to the running stat
  33373. @param numSamples number of samples
  33374. @param sum of the samples]]>
  33375. </doc>
  33376. </method>
  33377. <method name="add"
  33378. abstract="false" native="false" synchronized="true"
  33379. static="false" final="false" visibility="public"
  33380. deprecated="not deprecated">
  33381. <param name="value" type="long"/>
  33382. <doc>
  33383. <![CDATA[Add a snapshot to the metric
  33384. @param value of the metric]]>
  33385. </doc>
  33386. </method>
  33387. <method name="snapshot"
  33388. abstract="false" native="false" synchronized="true"
  33389. static="false" final="false" visibility="public"
  33390. deprecated="not deprecated">
  33391. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33392. <param name="all" type="boolean"/>
  33393. </method>
  33394. <method name="resetMinMax"
  33395. abstract="false" native="false" synchronized="false"
  33396. static="false" final="false" visibility="public"
  33397. deprecated="not deprecated">
  33398. <doc>
  33399. <![CDATA[Reset the all time min max of the metric]]>
  33400. </doc>
  33401. </method>
  33402. <doc>
  33403. <![CDATA[A mutable metric with stats.
  33404. Useful for keeping throughput/latency stats.]]>
  33405. </doc>
  33406. </class>
  33407. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  33408. </package>
  33409. <package name="org.apache.hadoop.metrics2.sink">
  33410. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  33411. <class name="FileSink" extends="java.lang.Object"
  33412. abstract="false"
  33413. static="false" final="false" visibility="public"
  33414. deprecated="not deprecated">
  33415. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  33416. <implements name="java.io.Closeable"/>
  33417. <constructor name="FileSink"
  33418. static="false" final="false" visibility="public"
  33419. deprecated="not deprecated">
  33420. </constructor>
  33421. <method name="init"
  33422. abstract="false" native="false" synchronized="false"
  33423. static="false" final="false" visibility="public"
  33424. deprecated="not deprecated">
  33425. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  33426. </method>
  33427. <method name="putMetrics"
  33428. abstract="false" native="false" synchronized="false"
  33429. static="false" final="false" visibility="public"
  33430. deprecated="not deprecated">
  33431. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  33432. </method>
  33433. <method name="flush"
  33434. abstract="false" native="false" synchronized="false"
  33435. static="false" final="false" visibility="public"
  33436. deprecated="not deprecated">
  33437. </method>
  33438. <method name="close"
  33439. abstract="false" native="false" synchronized="false"
  33440. static="false" final="false" visibility="public"
  33441. deprecated="not deprecated">
  33442. <exception name="IOException" type="java.io.IOException"/>
  33443. </method>
  33444. <doc>
  33445. <![CDATA[A metrics sink that writes to a file]]>
  33446. </doc>
  33447. </class>
  33448. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  33449. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  33450. <class name="GraphiteSink" extends="java.lang.Object"
  33451. abstract="false"
  33452. static="false" final="false" visibility="public"
  33453. deprecated="not deprecated">
  33454. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  33455. <implements name="java.io.Closeable"/>
  33456. <constructor name="GraphiteSink"
  33457. static="false" final="false" visibility="public"
  33458. deprecated="not deprecated">
  33459. </constructor>
  33460. <method name="init"
  33461. abstract="false" native="false" synchronized="false"
  33462. static="false" final="false" visibility="public"
  33463. deprecated="not deprecated">
  33464. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  33465. </method>
  33466. <method name="putMetrics"
  33467. abstract="false" native="false" synchronized="false"
  33468. static="false" final="false" visibility="public"
  33469. deprecated="not deprecated">
  33470. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  33471. </method>
  33472. <method name="flush"
  33473. abstract="false" native="false" synchronized="false"
  33474. static="false" final="false" visibility="public"
  33475. deprecated="not deprecated">
  33476. </method>
  33477. <method name="close"
  33478. abstract="false" native="false" synchronized="false"
  33479. static="false" final="false" visibility="public"
  33480. deprecated="not deprecated">
  33481. <exception name="IOException" type="java.io.IOException"/>
  33482. </method>
  33483. <doc>
  33484. <![CDATA[A metrics sink that writes to a Graphite server]]>
  33485. </doc>
  33486. </class>
  33487. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  33488. </package>
  33489. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  33490. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  33491. <class name="AbstractGangliaSink" extends="java.lang.Object"
  33492. abstract="true"
  33493. static="false" final="false" visibility="public"
  33494. deprecated="not deprecated">
  33495. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  33496. <constructor name="AbstractGangliaSink"
  33497. static="false" final="false" visibility="public"
  33498. deprecated="not deprecated">
  33499. </constructor>
  33500. <method name="init"
  33501. abstract="false" native="false" synchronized="false"
  33502. static="false" final="false" visibility="public"
  33503. deprecated="not deprecated">
  33504. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  33505. </method>
  33506. <method name="flush"
  33507. abstract="false" native="false" synchronized="false"
  33508. static="false" final="false" visibility="public"
  33509. deprecated="not deprecated">
  33510. </method>
  33511. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  33512. abstract="false" native="false" synchronized="false"
  33513. static="false" final="false" visibility="protected"
  33514. deprecated="not deprecated">
  33515. <param name="metricName" type="java.lang.String"/>
  33516. <doc>
  33517. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  33518. @param metricName
  33519. @return looked up GangliaConf]]>
  33520. </doc>
  33521. </method>
  33522. <method name="getHostName" return="java.lang.String"
  33523. abstract="false" native="false" synchronized="false"
  33524. static="false" final="false" visibility="protected"
  33525. deprecated="not deprecated">
  33526. <doc>
  33527. <![CDATA[@return the hostName]]>
  33528. </doc>
  33529. </method>
  33530. <method name="xdr_string"
  33531. abstract="false" native="false" synchronized="false"
  33532. static="false" final="false" visibility="protected"
  33533. deprecated="not deprecated">
  33534. <param name="s" type="java.lang.String"/>
  33535. <doc>
  33536. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  33537. int, followed by the bytes of the string, padded if necessary to a multiple
  33538. of 4.
  33539. @param s the string to be written to buffer at offset location]]>
  33540. </doc>
  33541. </method>
  33542. <method name="xdr_int"
  33543. abstract="false" native="false" synchronized="false"
  33544. static="false" final="false" visibility="protected"
  33545. deprecated="not deprecated">
  33546. <param name="i" type="int"/>
  33547. <doc>
  33548. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  33549. </doc>
  33550. </method>
  33551. <method name="emitToGangliaHosts"
  33552. abstract="false" native="false" synchronized="false"
  33553. static="false" final="false" visibility="protected"
  33554. deprecated="not deprecated">
  33555. <exception name="IOException" type="java.io.IOException"/>
  33556. <doc>
  33557. <![CDATA[Sends Ganglia Metrics to the configured hosts
  33558. @throws IOException]]>
  33559. </doc>
  33560. </method>
  33561. <method name="isSupportSparseMetrics" return="boolean"
  33562. abstract="false" native="false" synchronized="false"
  33563. static="false" final="false" visibility="protected"
  33564. deprecated="not deprecated">
  33565. <doc>
  33566. <![CDATA[@return whether sparse metrics are supported]]>
  33567. </doc>
  33568. </method>
  33569. <field name="LOG" type="org.apache.commons.logging.Log"
  33570. transient="false" volatile="false"
  33571. static="false" final="true" visibility="public"
  33572. deprecated="not deprecated">
  33573. </field>
  33574. <field name="DEFAULT_UNITS" type="java.lang.String"
  33575. transient="false" volatile="false"
  33576. static="true" final="true" visibility="public"
  33577. deprecated="not deprecated">
  33578. </field>
  33579. <field name="DEFAULT_TMAX" type="int"
  33580. transient="false" volatile="false"
  33581. static="true" final="true" visibility="public"
  33582. deprecated="not deprecated">
  33583. </field>
  33584. <field name="DEFAULT_DMAX" type="int"
  33585. transient="false" volatile="false"
  33586. static="true" final="true" visibility="public"
  33587. deprecated="not deprecated">
  33588. </field>
  33589. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  33590. transient="false" volatile="false"
  33591. static="true" final="true" visibility="public"
  33592. deprecated="not deprecated">
  33593. </field>
  33594. <field name="DEFAULT_PORT" type="int"
  33595. transient="false" volatile="false"
  33596. static="true" final="true" visibility="public"
  33597. deprecated="not deprecated">
  33598. </field>
  33599. <field name="SERVERS_PROPERTY" type="java.lang.String"
  33600. transient="false" volatile="false"
  33601. static="true" final="true" visibility="public"
  33602. deprecated="not deprecated">
  33603. </field>
  33604. <field name="BUFFER_SIZE" type="int"
  33605. transient="false" volatile="false"
  33606. static="true" final="true" visibility="public"
  33607. deprecated="not deprecated">
  33608. </field>
  33609. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  33610. transient="false" volatile="false"
  33611. static="true" final="true" visibility="public"
  33612. deprecated="not deprecated">
  33613. </field>
  33614. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  33615. transient="false" volatile="false"
  33616. static="true" final="true" visibility="public"
  33617. deprecated="not deprecated">
  33618. </field>
  33619. <field name="EQUAL" type="java.lang.String"
  33620. transient="false" volatile="false"
  33621. static="true" final="true" visibility="public"
  33622. deprecated="not deprecated">
  33623. </field>
  33624. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  33625. transient="false" volatile="false"
  33626. static="false" final="true" visibility="protected"
  33627. deprecated="not deprecated">
  33628. <doc>
  33629. <![CDATA[Used for visiting Metrics]]>
  33630. </doc>
  33631. </field>
  33632. <doc>
  33633. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  33634. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  33635. As per the documentation, sink implementations doesn't have to worry about
  33636. thread safety. Hence the code wasn't written for thread safety and should
  33637. be modified in case the above assumption changes in the future.]]>
  33638. </doc>
  33639. </class>
  33640. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  33641. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  33642. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  33643. abstract="false"
  33644. static="true" final="true" visibility="public"
  33645. deprecated="not deprecated">
  33646. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  33647. abstract="false" native="false" synchronized="false"
  33648. static="true" final="false" visibility="public"
  33649. deprecated="not deprecated">
  33650. </method>
  33651. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  33652. abstract="false" native="false" synchronized="false"
  33653. static="true" final="false" visibility="public"
  33654. deprecated="not deprecated">
  33655. <param name="name" type="java.lang.String"/>
  33656. </method>
  33657. <doc>
  33658. <![CDATA[define enum for various type of conf]]>
  33659. </doc>
  33660. </class>
  33661. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  33662. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  33663. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  33664. abstract="false"
  33665. static="true" final="true" visibility="public"
  33666. deprecated="not deprecated">
  33667. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  33668. abstract="false" native="false" synchronized="false"
  33669. static="true" final="false" visibility="public"
  33670. deprecated="not deprecated">
  33671. </method>
  33672. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  33673. abstract="false" native="false" synchronized="false"
  33674. static="true" final="false" visibility="public"
  33675. deprecated="not deprecated">
  33676. <param name="name" type="java.lang.String"/>
  33677. </method>
  33678. <doc>
  33679. <![CDATA[ganglia slope values which equal the ordinal]]>
  33680. </doc>
  33681. </class>
  33682. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  33683. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  33684. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  33685. abstract="false"
  33686. static="false" final="false" visibility="public"
  33687. deprecated="not deprecated">
  33688. <constructor name="GangliaSink30"
  33689. static="false" final="false" visibility="public"
  33690. deprecated="not deprecated">
  33691. </constructor>
  33692. <method name="init"
  33693. abstract="false" native="false" synchronized="false"
  33694. static="false" final="false" visibility="public"
  33695. deprecated="not deprecated">
  33696. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  33697. </method>
  33698. <method name="appendPrefix"
  33699. abstract="false" native="false" synchronized="false"
  33700. static="false" final="false" visibility="public"
  33701. deprecated="not deprecated">
  33702. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  33703. <param name="sb" type="java.lang.StringBuilder"/>
  33704. </method>
  33705. <method name="putMetrics"
  33706. abstract="false" native="false" synchronized="false"
  33707. static="false" final="false" visibility="public"
  33708. deprecated="not deprecated">
  33709. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  33710. </method>
  33711. <method name="emitMetric"
  33712. abstract="false" native="false" synchronized="false"
  33713. static="false" final="false" visibility="protected"
  33714. deprecated="not deprecated">
  33715. <param name="groupName" type="java.lang.String"/>
  33716. <param name="name" type="java.lang.String"/>
  33717. <param name="type" type="java.lang.String"/>
  33718. <param name="value" type="java.lang.String"/>
  33719. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  33720. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  33721. <exception name="IOException" type="java.io.IOException"/>
  33722. <doc>
  33723. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  33724. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  33725. order to keep it in sync.
  33726. @param groupName The group name of the metric
  33727. @param name The metric name
  33728. @param type The type of the metric
  33729. @param value The value of the metric
  33730. @param gConf The GangliaConf for this metric
  33731. @param gSlope The slope for this metric
  33732. @throws IOException]]>
  33733. </doc>
  33734. </method>
  33735. <field name="LOG" type="org.apache.commons.logging.Log"
  33736. transient="false" volatile="false"
  33737. static="false" final="true" visibility="public"
  33738. deprecated="not deprecated">
  33739. </field>
  33740. <doc>
  33741. <![CDATA[This code supports Ganglia 3.0]]>
  33742. </doc>
  33743. </class>
  33744. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  33745. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  33746. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  33747. abstract="false"
  33748. static="false" final="false" visibility="public"
  33749. deprecated="not deprecated">
  33750. <constructor name="GangliaSink31"
  33751. static="false" final="false" visibility="public"
  33752. deprecated="not deprecated">
  33753. </constructor>
  33754. <method name="emitMetric"
  33755. abstract="false" native="false" synchronized="false"
  33756. static="false" final="false" visibility="protected"
  33757. deprecated="not deprecated">
  33758. <param name="groupName" type="java.lang.String"/>
  33759. <param name="name" type="java.lang.String"/>
  33760. <param name="type" type="java.lang.String"/>
  33761. <param name="value" type="java.lang.String"/>
  33762. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  33763. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  33764. <exception name="IOException" type="java.io.IOException"/>
  33765. <doc>
  33766. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  33767. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  33768. order to keep it in sync.
  33769. @param groupName The group name of the metric
  33770. @param name The metric name
  33771. @param type The type of the metric
  33772. @param value The value of the metric
  33773. @param gConf The GangliaConf for this metric
  33774. @param gSlope The slope for this metric
  33775. @throws IOException]]>
  33776. </doc>
  33777. </method>
  33778. <field name="LOG" type="org.apache.commons.logging.Log"
  33779. transient="false" volatile="false"
  33780. static="false" final="true" visibility="public"
  33781. deprecated="not deprecated">
  33782. </field>
  33783. <doc>
  33784. <![CDATA[This code supports Ganglia 3.1]]>
  33785. </doc>
  33786. </class>
  33787. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  33788. </package>
  33789. <package name="org.apache.hadoop.metrics2.source">
  33790. </package>
  33791. <package name="org.apache.hadoop.metrics2.util">
  33792. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  33793. <class name="MBeans" extends="java.lang.Object"
  33794. abstract="false"
  33795. static="false" final="false" visibility="public"
  33796. deprecated="not deprecated">
  33797. <constructor name="MBeans"
  33798. static="false" final="false" visibility="public"
  33799. deprecated="not deprecated">
  33800. </constructor>
  33801. <method name="register" return="javax.management.ObjectName"
  33802. abstract="false" native="false" synchronized="false"
  33803. static="true" final="false" visibility="public"
  33804. deprecated="not deprecated">
  33805. <param name="serviceName" type="java.lang.String"/>
  33806. <param name="nameName" type="java.lang.String"/>
  33807. <param name="theMbean" type="java.lang.Object"/>
  33808. <doc>
  33809. <![CDATA[Register the MBean using our standard MBeanName format
  33810. "hadoop:service=<serviceName>,name=<nameName>"
  33811. Where the <serviceName> and <nameName> are the supplied parameters
  33812. @param serviceName
  33813. @param nameName
  33814. @param theMbean - the MBean to register
  33815. @return the named used to register the MBean]]>
  33816. </doc>
  33817. </method>
  33818. <method name="unregister"
  33819. abstract="false" native="false" synchronized="false"
  33820. static="true" final="false" visibility="public"
  33821. deprecated="not deprecated">
  33822. <param name="mbeanName" type="javax.management.ObjectName"/>
  33823. </method>
  33824. <doc>
  33825. <![CDATA[This util class provides a method to register an MBean using
  33826. our standard naming convention as described in the doc
  33827. for {link {@link #register(String, String, Object)}]]>
  33828. </doc>
  33829. </class>
  33830. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  33831. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  33832. <class name="MetricsCache" extends="java.lang.Object"
  33833. abstract="false"
  33834. static="false" final="false" visibility="public"
  33835. deprecated="not deprecated">
  33836. <constructor name="MetricsCache"
  33837. static="false" final="false" visibility="public"
  33838. deprecated="not deprecated">
  33839. </constructor>
  33840. <constructor name="MetricsCache" type="int"
  33841. static="false" final="false" visibility="public"
  33842. deprecated="not deprecated">
  33843. <doc>
  33844. <![CDATA[Construct a metrics cache
  33845. @param maxRecsPerName limit of the number records per record name]]>
  33846. </doc>
  33847. </constructor>
  33848. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  33849. abstract="false" native="false" synchronized="false"
  33850. static="false" final="false" visibility="public"
  33851. deprecated="not deprecated">
  33852. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  33853. <param name="includingTags" type="boolean"/>
  33854. <doc>
  33855. <![CDATA[Update the cache and return the current cached record
  33856. @param mr the update record
  33857. @param includingTags cache tag values (for later lookup by name) if true
  33858. @return the updated cache record]]>
  33859. </doc>
  33860. </method>
  33861. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  33862. abstract="false" native="false" synchronized="false"
  33863. static="false" final="false" visibility="public"
  33864. deprecated="not deprecated">
  33865. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  33866. <doc>
  33867. <![CDATA[Update the cache and return the current cache record
  33868. @param mr the update record
  33869. @return the updated cache record]]>
  33870. </doc>
  33871. </method>
  33872. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  33873. abstract="false" native="false" synchronized="false"
  33874. static="false" final="false" visibility="public"
  33875. deprecated="not deprecated">
  33876. <param name="name" type="java.lang.String"/>
  33877. <param name="tags" type="java.util.Collection"/>
  33878. <doc>
  33879. <![CDATA[Get the cached record
  33880. @param name of the record
  33881. @param tags of the record
  33882. @return the cached record or null]]>
  33883. </doc>
  33884. </method>
  33885. <doc>
  33886. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  33887. </doc>
  33888. </class>
  33889. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  33890. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  33891. <class name="MetricsCache.Record" extends="java.lang.Object"
  33892. abstract="false"
  33893. static="true" final="false" visibility="public"
  33894. deprecated="not deprecated">
  33895. <constructor name="MetricsCache.Record"
  33896. static="false" final="false" visibility="public"
  33897. deprecated="not deprecated">
  33898. </constructor>
  33899. <method name="getTag" return="java.lang.String"
  33900. abstract="false" native="false" synchronized="false"
  33901. static="false" final="false" visibility="public"
  33902. deprecated="not deprecated">
  33903. <param name="key" type="java.lang.String"/>
  33904. <doc>
  33905. <![CDATA[Lookup a tag value
  33906. @param key name of the tag
  33907. @return the tag value]]>
  33908. </doc>
  33909. </method>
  33910. <method name="getMetric" return="java.lang.Number"
  33911. abstract="false" native="false" synchronized="false"
  33912. static="false" final="false" visibility="public"
  33913. deprecated="not deprecated">
  33914. <param name="key" type="java.lang.String"/>
  33915. <doc>
  33916. <![CDATA[Lookup a metric value
  33917. @param key name of the metric
  33918. @return the metric value]]>
  33919. </doc>
  33920. </method>
  33921. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.AbstractMetric"
  33922. abstract="false" native="false" synchronized="false"
  33923. static="false" final="false" visibility="public"
  33924. deprecated="not deprecated">
  33925. <param name="key" type="java.lang.String"/>
  33926. <doc>
  33927. <![CDATA[Lookup a metric instance
  33928. @param key name of the metric
  33929. @return the metric instance]]>
  33930. </doc>
  33931. </method>
  33932. <method name="tags" return="java.util.Set"
  33933. abstract="false" native="false" synchronized="false"
  33934. static="false" final="false" visibility="public"
  33935. deprecated="not deprecated">
  33936. <doc>
  33937. <![CDATA[@return the entry set of the tags of the record]]>
  33938. </doc>
  33939. </method>
  33940. <method name="metrics" return="java.util.Set"
  33941. abstract="false" native="false" synchronized="false"
  33942. static="false" final="false" visibility="public"
  33943. deprecated="use metricsEntrySet() instead">
  33944. <doc>
  33945. <![CDATA[@deprecated use metricsEntrySet() instead
  33946. @return entry set of metrics]]>
  33947. </doc>
  33948. </method>
  33949. <method name="metricsEntrySet" return="java.util.Set"
  33950. abstract="false" native="false" synchronized="false"
  33951. static="false" final="false" visibility="public"
  33952. deprecated="not deprecated">
  33953. <doc>
  33954. <![CDATA[@return entry set of metrics]]>
  33955. </doc>
  33956. </method>
  33957. <method name="toString" return="java.lang.String"
  33958. abstract="false" native="false" synchronized="false"
  33959. static="false" final="false" visibility="public"
  33960. deprecated="not deprecated">
  33961. </method>
  33962. <doc>
  33963. <![CDATA[Cached record]]>
  33964. </doc>
  33965. </class>
  33966. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  33967. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  33968. <class name="SampleStat.MinMax" extends="java.lang.Object"
  33969. abstract="false"
  33970. static="true" final="false" visibility="public"
  33971. deprecated="not deprecated">
  33972. <constructor name="SampleStat.MinMax"
  33973. static="false" final="false" visibility="public"
  33974. deprecated="not deprecated">
  33975. </constructor>
  33976. <method name="add"
  33977. abstract="false" native="false" synchronized="false"
  33978. static="false" final="false" visibility="public"
  33979. deprecated="not deprecated">
  33980. <param name="value" type="double"/>
  33981. </method>
  33982. <method name="min" return="double"
  33983. abstract="false" native="false" synchronized="false"
  33984. static="false" final="false" visibility="public"
  33985. deprecated="not deprecated">
  33986. </method>
  33987. <method name="max" return="double"
  33988. abstract="false" native="false" synchronized="false"
  33989. static="false" final="false" visibility="public"
  33990. deprecated="not deprecated">
  33991. </method>
  33992. <method name="reset"
  33993. abstract="false" native="false" synchronized="false"
  33994. static="false" final="false" visibility="public"
  33995. deprecated="not deprecated">
  33996. </method>
  33997. <method name="reset"
  33998. abstract="false" native="false" synchronized="false"
  33999. static="false" final="false" visibility="public"
  34000. deprecated="not deprecated">
  34001. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  34002. </method>
  34003. <doc>
  34004. <![CDATA[Helper to keep running min/max]]>
  34005. </doc>
  34006. </class>
  34007. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  34008. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  34009. <class name="Servers" extends="java.lang.Object"
  34010. abstract="false"
  34011. static="false" final="false" visibility="public"
  34012. deprecated="not deprecated">
  34013. <method name="parse" return="java.util.List"
  34014. abstract="false" native="false" synchronized="false"
  34015. static="true" final="false" visibility="public"
  34016. deprecated="not deprecated">
  34017. <param name="specs" type="java.lang.String"/>
  34018. <param name="defaultPort" type="int"/>
  34019. <doc>
  34020. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  34021. of the form <i>hostname</i> or <i>hostname:port</i>. If
  34022. the specs string is null, defaults to localhost:defaultPort.
  34023. @param specs server specs (see description)
  34024. @param defaultPort the default port if not specified
  34025. @return a list of InetSocketAddress objects.]]>
  34026. </doc>
  34027. </method>
  34028. <doc>
  34029. <![CDATA[Helpers to handle server addresses]]>
  34030. </doc>
  34031. </class>
  34032. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  34033. </package>
  34034. <package name="org.apache.hadoop.net">
  34035. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  34036. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  34037. abstract="true"
  34038. static="false" final="false" visibility="public"
  34039. deprecated="not deprecated">
  34040. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  34041. <implements name="org.apache.hadoop.conf.Configurable"/>
  34042. <constructor name="AbstractDNSToSwitchMapping"
  34043. static="false" final="false" visibility="protected"
  34044. deprecated="not deprecated">
  34045. <doc>
  34046. <![CDATA[Create an unconfigured instance]]>
  34047. </doc>
  34048. </constructor>
  34049. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  34050. static="false" final="false" visibility="protected"
  34051. deprecated="not deprecated">
  34052. <doc>
  34053. <![CDATA[Create an instance, caching the configuration file.
  34054. This constructor does not call {@link #setConf(Configuration)}; if
  34055. a subclass extracts information in that method, it must call it explicitly.
  34056. @param conf the configuration]]>
  34057. </doc>
  34058. </constructor>
  34059. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34060. abstract="false" native="false" synchronized="false"
  34061. static="false" final="false" visibility="public"
  34062. deprecated="not deprecated">
  34063. </method>
  34064. <method name="setConf"
  34065. abstract="false" native="false" synchronized="false"
  34066. static="false" final="false" visibility="public"
  34067. deprecated="not deprecated">
  34068. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34069. </method>
  34070. <method name="isSingleSwitch" return="boolean"
  34071. abstract="false" native="false" synchronized="false"
  34072. static="false" final="false" visibility="public"
  34073. deprecated="not deprecated">
  34074. <doc>
  34075. <![CDATA[Predicate that indicates that the switch mapping is known to be
  34076. single-switch. The base class returns false: it assumes all mappings are
  34077. multi-rack. Subclasses may override this with methods that are more aware
  34078. of their topologies.
  34079. <p/>
  34080. This method is used when parts of Hadoop need know whether to apply
  34081. single rack vs multi-rack policies, such as during block placement.
  34082. Such algorithms behave differently if they are on multi-switch systems.
  34083. </p>
  34084. @return true if the mapping thinks that it is on a single switch]]>
  34085. </doc>
  34086. </method>
  34087. <method name="getSwitchMap" return="java.util.Map"
  34088. abstract="false" native="false" synchronized="false"
  34089. static="false" final="false" visibility="public"
  34090. deprecated="not deprecated">
  34091. <doc>
  34092. <![CDATA[Get a copy of the map (for diagnostics)
  34093. @return a clone of the map or null for none known]]>
  34094. </doc>
  34095. </method>
  34096. <method name="dumpTopology" return="java.lang.String"
  34097. abstract="false" native="false" synchronized="false"
  34098. static="false" final="false" visibility="public"
  34099. deprecated="not deprecated">
  34100. <doc>
  34101. <![CDATA[Generate a string listing the switch mapping implementation,
  34102. the mapping for every known node and the number of nodes and
  34103. unique switches known about -each entry to a separate line.
  34104. @return a string that can be presented to the ops team or used in
  34105. debug messages.]]>
  34106. </doc>
  34107. </method>
  34108. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  34109. abstract="false" native="false" synchronized="false"
  34110. static="false" final="false" visibility="protected"
  34111. deprecated="not deprecated">
  34112. </method>
  34113. <method name="isMappingSingleSwitch" return="boolean"
  34114. abstract="false" native="false" synchronized="false"
  34115. static="true" final="false" visibility="public"
  34116. deprecated="not deprecated">
  34117. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  34118. <doc>
  34119. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  34120. switch.
  34121. <p/>
  34122. This predicate simply assumes that all mappings not derived from
  34123. this class are multi-switch.
  34124. @param mapping the mapping to query
  34125. @return true if the base class says it is single switch, or the mapping
  34126. is not derived from this class.]]>
  34127. </doc>
  34128. </method>
  34129. <doc>
  34130. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  34131. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  34132. recommended, as it makes it easy for the Hadoop developers to add new methods
  34133. to this base class that are automatically picked up by all implementations.
  34134. <p/>
  34135. This class does not extend the <code>Configured</code>
  34136. base class, and should not be changed to do so, as it causes problems
  34137. for subclasses. The constructor of the <code>Configured</code> calls
  34138. the {@link #setConf(Configuration)} method, which will call into the
  34139. subclasses before they have been fully constructed.]]>
  34140. </doc>
  34141. </class>
  34142. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  34143. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  34144. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  34145. abstract="false"
  34146. static="false" final="false" visibility="public"
  34147. deprecated="not deprecated">
  34148. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  34149. static="false" final="false" visibility="public"
  34150. deprecated="not deprecated">
  34151. <doc>
  34152. <![CDATA[cache a raw DNS mapping
  34153. @param rawMapping the raw mapping to cache]]>
  34154. </doc>
  34155. </constructor>
  34156. <method name="resolve" return="java.util.List"
  34157. abstract="false" native="false" synchronized="false"
  34158. static="false" final="false" visibility="public"
  34159. deprecated="not deprecated">
  34160. <param name="names" type="java.util.List"/>
  34161. </method>
  34162. <method name="getSwitchMap" return="java.util.Map"
  34163. abstract="false" native="false" synchronized="false"
  34164. static="false" final="false" visibility="public"
  34165. deprecated="not deprecated">
  34166. <doc>
  34167. <![CDATA[Get the (host x switch) map.
  34168. @return a copy of the cached map of hosts to rack]]>
  34169. </doc>
  34170. </method>
  34171. <method name="toString" return="java.lang.String"
  34172. abstract="false" native="false" synchronized="false"
  34173. static="false" final="false" visibility="public"
  34174. deprecated="not deprecated">
  34175. </method>
  34176. <method name="isSingleSwitch" return="boolean"
  34177. abstract="false" native="false" synchronized="false"
  34178. static="false" final="false" visibility="public"
  34179. deprecated="not deprecated">
  34180. <doc>
  34181. <![CDATA[Delegate the switch topology query to the raw mapping, via
  34182. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  34183. @return true iff the raw mapper is considered single-switch.]]>
  34184. </doc>
  34185. </method>
  34186. <method name="reloadCachedMappings"
  34187. abstract="false" native="false" synchronized="false"
  34188. static="false" final="false" visibility="public"
  34189. deprecated="not deprecated">
  34190. </method>
  34191. <method name="reloadCachedMappings"
  34192. abstract="false" native="false" synchronized="false"
  34193. static="false" final="false" visibility="public"
  34194. deprecated="not deprecated">
  34195. <param name="names" type="java.util.List"/>
  34196. </method>
  34197. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  34198. transient="false" volatile="false"
  34199. static="false" final="true" visibility="protected"
  34200. deprecated="not deprecated">
  34201. <doc>
  34202. <![CDATA[The uncached mapping]]>
  34203. </doc>
  34204. </field>
  34205. <doc>
  34206. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  34207. raw DNSToSwitchMapping and stores the resolved network location in
  34208. a cache. The following calls to a resolved network location
  34209. will get its location from the cache.]]>
  34210. </doc>
  34211. </class>
  34212. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  34213. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  34214. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  34215. abstract="false"
  34216. static="false" final="false" visibility="public"
  34217. deprecated="not deprecated">
  34218. <constructor name="ConnectTimeoutException" type="java.lang.String"
  34219. static="false" final="false" visibility="public"
  34220. deprecated="not deprecated">
  34221. </constructor>
  34222. <doc>
  34223. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  34224. if it times out while connecting to the remote host.]]>
  34225. </doc>
  34226. </class>
  34227. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  34228. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  34229. <interface name="DNSToSwitchMapping" abstract="true"
  34230. static="false" final="false" visibility="public"
  34231. deprecated="not deprecated">
  34232. <method name="resolve" return="java.util.List"
  34233. abstract="false" native="false" synchronized="false"
  34234. static="false" final="false" visibility="public"
  34235. deprecated="not deprecated">
  34236. <param name="names" type="java.util.List"/>
  34237. <doc>
  34238. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  34239. switch information (network paths). One-to-one correspondence must be
  34240. maintained between the elements in the lists.
  34241. Consider an element in the argument list - x.y.com. The switch information
  34242. that is returned must be a network path of the form /foo/rack,
  34243. where / is the root, and 'foo' is the switch where 'rack' is connected.
  34244. Note the hostname/ip-address is not part of the returned path.
  34245. The network topology of the cluster would determine the number of
  34246. components in the network path.
  34247. <p/>
  34248. If a name cannot be resolved to a rack, the implementation
  34249. should return {@link NetworkTopology#DEFAULT_RACK}. This
  34250. is what the bundled implementations do, though it is not a formal requirement
  34251. @param names the list of hosts to resolve (can be empty)
  34252. @return list of resolved network paths.
  34253. If <i>names</i> is empty, the returned list is also empty]]>
  34254. </doc>
  34255. </method>
  34256. <method name="reloadCachedMappings"
  34257. abstract="false" native="false" synchronized="false"
  34258. static="false" final="false" visibility="public"
  34259. deprecated="not deprecated">
  34260. <doc>
  34261. <![CDATA[Reload all of the cached mappings.
  34262. If there is a cache, this method will clear it, so that future accesses
  34263. will get a chance to see the new data.]]>
  34264. </doc>
  34265. </method>
  34266. <method name="reloadCachedMappings"
  34267. abstract="false" native="false" synchronized="false"
  34268. static="false" final="false" visibility="public"
  34269. deprecated="not deprecated">
  34270. <param name="names" type="java.util.List"/>
  34271. <doc>
  34272. <![CDATA[Reload cached mappings on specific nodes.
  34273. If there is a cache on these nodes, this method will clear it, so that
  34274. future accesses will see updated data.]]>
  34275. </doc>
  34276. </method>
  34277. <doc>
  34278. <![CDATA[An interface that must be implemented to allow pluggable
  34279. DNS-name/IP-address to RackID resolvers.]]>
  34280. </doc>
  34281. </interface>
  34282. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  34283. <!-- start class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  34284. <class name="NetworkTopology.InvalidTopologyException" extends="java.lang.RuntimeException"
  34285. abstract="false"
  34286. static="true" final="false" visibility="public"
  34287. deprecated="not deprecated">
  34288. <constructor name="NetworkTopology.InvalidTopologyException" type="java.lang.String"
  34289. static="false" final="false" visibility="public"
  34290. deprecated="not deprecated">
  34291. </constructor>
  34292. </class>
  34293. <!-- end class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  34294. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  34295. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  34296. abstract="false"
  34297. static="false" final="false" visibility="public"
  34298. deprecated="not deprecated">
  34299. <constructor name="ScriptBasedMapping"
  34300. static="false" final="false" visibility="public"
  34301. deprecated="not deprecated">
  34302. <doc>
  34303. <![CDATA[Create an instance with the default configuration.
  34304. </p>
  34305. Calling {@link #setConf(Configuration)} will trigger a
  34306. re-evaluation of the configuration settings and so be used to
  34307. set up the mapping script.]]>
  34308. </doc>
  34309. </constructor>
  34310. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  34311. static="false" final="false" visibility="public"
  34312. deprecated="not deprecated">
  34313. <doc>
  34314. <![CDATA[Create an instance from the given raw mapping
  34315. @param rawMap raw DNSTOSwithMapping]]>
  34316. </doc>
  34317. </constructor>
  34318. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  34319. static="false" final="false" visibility="public"
  34320. deprecated="not deprecated">
  34321. <doc>
  34322. <![CDATA[Create an instance from the given configuration
  34323. @param conf configuration]]>
  34324. </doc>
  34325. </constructor>
  34326. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34327. abstract="false" native="false" synchronized="false"
  34328. static="false" final="false" visibility="public"
  34329. deprecated="not deprecated">
  34330. </method>
  34331. <method name="toString" return="java.lang.String"
  34332. abstract="false" native="false" synchronized="false"
  34333. static="false" final="false" visibility="public"
  34334. deprecated="not deprecated">
  34335. </method>
  34336. <method name="setConf"
  34337. abstract="false" native="false" synchronized="false"
  34338. static="false" final="false" visibility="public"
  34339. deprecated="not deprecated">
  34340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34341. <doc>
  34342. <![CDATA[{@inheritDoc}
  34343. <p/>
  34344. This will get called in the superclass constructor, so a check is needed
  34345. to ensure that the raw mapping is defined before trying to relaying a null
  34346. configuration.
  34347. @param conf]]>
  34348. </doc>
  34349. </method>
  34350. <field name="NO_SCRIPT" type="java.lang.String"
  34351. transient="false" volatile="false"
  34352. static="true" final="true" visibility="public"
  34353. deprecated="not deprecated">
  34354. <doc>
  34355. <![CDATA[Text used in the {@link #toString()} method if there is no string
  34356. {@value}]]>
  34357. </doc>
  34358. </field>
  34359. <doc>
  34360. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  34361. script configured via the
  34362. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  34363. <p/>
  34364. It contains a static class <code>RawScriptBasedMapping</code> that performs
  34365. the work: reading the configuration parameters, executing any defined
  34366. script, handling errors and such like. The outer
  34367. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  34368. queries.
  34369. <p/>
  34370. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  34371. true if and only if a script is defined.]]>
  34372. </doc>
  34373. </class>
  34374. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  34375. <!-- start class org.apache.hadoop.net.ScriptBasedMapping.RawScriptBasedMapping -->
  34376. <class name="ScriptBasedMapping.RawScriptBasedMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  34377. abstract="false"
  34378. static="true" final="false" visibility="protected"
  34379. deprecated="not deprecated">
  34380. <constructor name="ScriptBasedMapping.RawScriptBasedMapping"
  34381. static="false" final="false" visibility="public"
  34382. deprecated="not deprecated">
  34383. <doc>
  34384. <![CDATA[Constructor. The mapping is not ready to use until
  34385. {@link #setConf(Configuration)} has been called]]>
  34386. </doc>
  34387. </constructor>
  34388. <method name="setConf"
  34389. abstract="false" native="false" synchronized="false"
  34390. static="false" final="false" visibility="public"
  34391. deprecated="not deprecated">
  34392. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34393. <doc>
  34394. <![CDATA[Set the configuration and extract the configuration parameters of interest
  34395. @param conf the new configuration]]>
  34396. </doc>
  34397. </method>
  34398. <method name="resolve" return="java.util.List"
  34399. abstract="false" native="false" synchronized="false"
  34400. static="false" final="false" visibility="public"
  34401. deprecated="not deprecated">
  34402. <param name="names" type="java.util.List"/>
  34403. </method>
  34404. <method name="runResolveCommand" return="java.lang.String"
  34405. abstract="false" native="false" synchronized="false"
  34406. static="false" final="false" visibility="protected"
  34407. deprecated="not deprecated">
  34408. <param name="args" type="java.util.List"/>
  34409. <param name="commandScriptName" type="java.lang.String"/>
  34410. <doc>
  34411. <![CDATA[Build and execute the resolution command. The command is
  34412. executed in the directory specified by the system property
  34413. "user.dir" if set; otherwise the current working directory is used
  34414. @param args a list of arguments
  34415. @return null if the number of arguments is out of range,
  34416. or the output of the command.]]>
  34417. </doc>
  34418. </method>
  34419. <method name="isSingleSwitch" return="boolean"
  34420. abstract="false" native="false" synchronized="false"
  34421. static="false" final="false" visibility="public"
  34422. deprecated="not deprecated">
  34423. <doc>
  34424. <![CDATA[Declare that the mapper is single-switched if a script was not named
  34425. in the configuration.
  34426. @return true iff there is no script]]>
  34427. </doc>
  34428. </method>
  34429. <method name="toString" return="java.lang.String"
  34430. abstract="false" native="false" synchronized="false"
  34431. static="false" final="false" visibility="public"
  34432. deprecated="not deprecated">
  34433. </method>
  34434. <method name="reloadCachedMappings"
  34435. abstract="false" native="false" synchronized="false"
  34436. static="false" final="false" visibility="public"
  34437. deprecated="not deprecated">
  34438. </method>
  34439. <method name="reloadCachedMappings"
  34440. abstract="false" native="false" synchronized="false"
  34441. static="false" final="false" visibility="public"
  34442. deprecated="not deprecated">
  34443. <param name="names" type="java.util.List"/>
  34444. </method>
  34445. <doc>
  34446. <![CDATA[This is the uncached script mapping that is fed into the cache managed
  34447. by the superclass {@link CachedDNSToSwitchMapping}]]>
  34448. </doc>
  34449. </class>
  34450. <!-- end class org.apache.hadoop.net.ScriptBasedMapping.RawScriptBasedMapping -->
  34451. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  34452. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  34453. abstract="false"
  34454. static="false" final="false" visibility="public"
  34455. deprecated="not deprecated">
  34456. <implements name="org.apache.hadoop.conf.Configurable"/>
  34457. <constructor name="SocksSocketFactory"
  34458. static="false" final="false" visibility="public"
  34459. deprecated="not deprecated">
  34460. <doc>
  34461. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  34462. </doc>
  34463. </constructor>
  34464. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  34465. static="false" final="false" visibility="public"
  34466. deprecated="not deprecated">
  34467. <doc>
  34468. <![CDATA[Constructor with a supplied Proxy
  34469. @param proxy the proxy to use to create sockets]]>
  34470. </doc>
  34471. </constructor>
  34472. <method name="createSocket" return="java.net.Socket"
  34473. abstract="false" native="false" synchronized="false"
  34474. static="false" final="false" visibility="public"
  34475. deprecated="not deprecated">
  34476. <exception name="IOException" type="java.io.IOException"/>
  34477. </method>
  34478. <method name="createSocket" return="java.net.Socket"
  34479. abstract="false" native="false" synchronized="false"
  34480. static="false" final="false" visibility="public"
  34481. deprecated="not deprecated">
  34482. <param name="addr" type="java.net.InetAddress"/>
  34483. <param name="port" type="int"/>
  34484. <exception name="IOException" type="java.io.IOException"/>
  34485. </method>
  34486. <method name="createSocket" return="java.net.Socket"
  34487. abstract="false" native="false" synchronized="false"
  34488. static="false" final="false" visibility="public"
  34489. deprecated="not deprecated">
  34490. <param name="addr" type="java.net.InetAddress"/>
  34491. <param name="port" type="int"/>
  34492. <param name="localHostAddr" type="java.net.InetAddress"/>
  34493. <param name="localPort" type="int"/>
  34494. <exception name="IOException" type="java.io.IOException"/>
  34495. </method>
  34496. <method name="createSocket" return="java.net.Socket"
  34497. abstract="false" native="false" synchronized="false"
  34498. static="false" final="false" visibility="public"
  34499. deprecated="not deprecated">
  34500. <param name="host" type="java.lang.String"/>
  34501. <param name="port" type="int"/>
  34502. <exception name="IOException" type="java.io.IOException"/>
  34503. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34504. </method>
  34505. <method name="createSocket" return="java.net.Socket"
  34506. abstract="false" native="false" synchronized="false"
  34507. static="false" final="false" visibility="public"
  34508. deprecated="not deprecated">
  34509. <param name="host" type="java.lang.String"/>
  34510. <param name="port" type="int"/>
  34511. <param name="localHostAddr" type="java.net.InetAddress"/>
  34512. <param name="localPort" type="int"/>
  34513. <exception name="IOException" type="java.io.IOException"/>
  34514. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34515. </method>
  34516. <method name="hashCode" return="int"
  34517. abstract="false" native="false" synchronized="false"
  34518. static="false" final="false" visibility="public"
  34519. deprecated="not deprecated">
  34520. </method>
  34521. <method name="equals" return="boolean"
  34522. abstract="false" native="false" synchronized="false"
  34523. static="false" final="false" visibility="public"
  34524. deprecated="not deprecated">
  34525. <param name="obj" type="java.lang.Object"/>
  34526. </method>
  34527. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34528. abstract="false" native="false" synchronized="false"
  34529. static="false" final="false" visibility="public"
  34530. deprecated="not deprecated">
  34531. </method>
  34532. <method name="setConf"
  34533. abstract="false" native="false" synchronized="false"
  34534. static="false" final="false" visibility="public"
  34535. deprecated="not deprecated">
  34536. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34537. </method>
  34538. <doc>
  34539. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  34540. </doc>
  34541. </class>
  34542. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  34543. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  34544. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  34545. abstract="false"
  34546. static="false" final="false" visibility="public"
  34547. deprecated="not deprecated">
  34548. <constructor name="StandardSocketFactory"
  34549. static="false" final="false" visibility="public"
  34550. deprecated="not deprecated">
  34551. <doc>
  34552. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  34553. </doc>
  34554. </constructor>
  34555. <method name="createSocket" return="java.net.Socket"
  34556. abstract="false" native="false" synchronized="false"
  34557. static="false" final="false" visibility="public"
  34558. deprecated="not deprecated">
  34559. <exception name="IOException" type="java.io.IOException"/>
  34560. </method>
  34561. <method name="createSocket" return="java.net.Socket"
  34562. abstract="false" native="false" synchronized="false"
  34563. static="false" final="false" visibility="public"
  34564. deprecated="not deprecated">
  34565. <param name="addr" type="java.net.InetAddress"/>
  34566. <param name="port" type="int"/>
  34567. <exception name="IOException" type="java.io.IOException"/>
  34568. </method>
  34569. <method name="createSocket" return="java.net.Socket"
  34570. abstract="false" native="false" synchronized="false"
  34571. static="false" final="false" visibility="public"
  34572. deprecated="not deprecated">
  34573. <param name="addr" type="java.net.InetAddress"/>
  34574. <param name="port" type="int"/>
  34575. <param name="localHostAddr" type="java.net.InetAddress"/>
  34576. <param name="localPort" type="int"/>
  34577. <exception name="IOException" type="java.io.IOException"/>
  34578. </method>
  34579. <method name="createSocket" return="java.net.Socket"
  34580. abstract="false" native="false" synchronized="false"
  34581. static="false" final="false" visibility="public"
  34582. deprecated="not deprecated">
  34583. <param name="host" type="java.lang.String"/>
  34584. <param name="port" type="int"/>
  34585. <exception name="IOException" type="java.io.IOException"/>
  34586. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34587. </method>
  34588. <method name="createSocket" return="java.net.Socket"
  34589. abstract="false" native="false" synchronized="false"
  34590. static="false" final="false" visibility="public"
  34591. deprecated="not deprecated">
  34592. <param name="host" type="java.lang.String"/>
  34593. <param name="port" type="int"/>
  34594. <param name="localHostAddr" type="java.net.InetAddress"/>
  34595. <param name="localPort" type="int"/>
  34596. <exception name="IOException" type="java.io.IOException"/>
  34597. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34598. </method>
  34599. <method name="equals" return="boolean"
  34600. abstract="false" native="false" synchronized="false"
  34601. static="false" final="false" visibility="public"
  34602. deprecated="not deprecated">
  34603. <param name="obj" type="java.lang.Object"/>
  34604. </method>
  34605. <method name="hashCode" return="int"
  34606. abstract="false" native="false" synchronized="false"
  34607. static="false" final="false" visibility="public"
  34608. deprecated="not deprecated">
  34609. </method>
  34610. <doc>
  34611. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  34612. </doc>
  34613. </class>
  34614. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  34615. <!-- start class org.apache.hadoop.net.TableMapping -->
  34616. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  34617. abstract="false"
  34618. static="false" final="false" visibility="public"
  34619. deprecated="not deprecated">
  34620. <constructor name="TableMapping"
  34621. static="false" final="false" visibility="public"
  34622. deprecated="not deprecated">
  34623. </constructor>
  34624. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34625. abstract="false" native="false" synchronized="false"
  34626. static="false" final="false" visibility="public"
  34627. deprecated="not deprecated">
  34628. </method>
  34629. <method name="setConf"
  34630. abstract="false" native="false" synchronized="false"
  34631. static="false" final="false" visibility="public"
  34632. deprecated="not deprecated">
  34633. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34634. </method>
  34635. <method name="reloadCachedMappings"
  34636. abstract="false" native="false" synchronized="false"
  34637. static="false" final="false" visibility="public"
  34638. deprecated="not deprecated">
  34639. </method>
  34640. <doc>
  34641. <![CDATA[<p>
  34642. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  34643. file. The columns are separated by whitespace. The first column is a DNS or
  34644. IP address and the second column specifies the rack where the address maps.
  34645. </p>
  34646. <p>
  34647. This class uses the configuration parameter {@code
  34648. net.topology.table.file.name} to locate the mapping file.
  34649. </p>
  34650. <p>
  34651. Calls to {@link #resolve(List)} will look up the address as defined in the
  34652. mapping file. If no entry corresponding to the address is found, the value
  34653. {@code /default-rack} is returned.
  34654. </p>]]>
  34655. </doc>
  34656. </class>
  34657. <!-- end class org.apache.hadoop.net.TableMapping -->
  34658. <doc>
  34659. <![CDATA[Network-related classes.]]>
  34660. </doc>
  34661. </package>
  34662. <package name="org.apache.hadoop.net.unix">
  34663. <!-- start interface org.apache.hadoop.net.unix.DomainSocketWatcher.Handler -->
  34664. <interface name="DomainSocketWatcher.Handler" abstract="true"
  34665. static="true" final="false" visibility="public"
  34666. deprecated="not deprecated">
  34667. <method name="handle" return="boolean"
  34668. abstract="false" native="false" synchronized="false"
  34669. static="false" final="false" visibility="public"
  34670. deprecated="not deprecated">
  34671. <param name="sock" type="org.apache.hadoop.net.unix.DomainSocket"/>
  34672. <doc>
  34673. <![CDATA[Handles an event on a socket. An event may be the socket becoming
  34674. readable, or the remote end being closed.
  34675. @param sock The socket that the event occurred on.
  34676. @return Whether we should close the socket.]]>
  34677. </doc>
  34678. </method>
  34679. </interface>
  34680. <!-- end interface org.apache.hadoop.net.unix.DomainSocketWatcher.Handler -->
  34681. </package>
  34682. <package name="org.apache.hadoop.record">
  34683. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  34684. <class name="BinaryRecordInput" extends="java.lang.Object"
  34685. abstract="false"
  34686. static="false" final="false" visibility="public"
  34687. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  34688. <implements name="org.apache.hadoop.record.RecordInput"/>
  34689. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  34690. static="false" final="false" visibility="public"
  34691. deprecated="not deprecated">
  34692. <doc>
  34693. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  34694. </doc>
  34695. </constructor>
  34696. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  34697. static="false" final="false" visibility="public"
  34698. deprecated="not deprecated">
  34699. <doc>
  34700. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  34701. </doc>
  34702. </constructor>
  34703. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  34704. abstract="false" native="false" synchronized="false"
  34705. static="true" final="false" visibility="public"
  34706. deprecated="not deprecated">
  34707. <param name="inp" type="java.io.DataInput"/>
  34708. <doc>
  34709. <![CDATA[Get a thread-local record input for the supplied DataInput.
  34710. @param inp data input stream
  34711. @return binary record input corresponding to the supplied DataInput.]]>
  34712. </doc>
  34713. </method>
  34714. <method name="readByte" return="byte"
  34715. abstract="false" native="false" synchronized="false"
  34716. static="false" final="false" visibility="public"
  34717. deprecated="not deprecated">
  34718. <param name="tag" type="java.lang.String"/>
  34719. <exception name="IOException" type="java.io.IOException"/>
  34720. </method>
  34721. <method name="readBool" return="boolean"
  34722. abstract="false" native="false" synchronized="false"
  34723. static="false" final="false" visibility="public"
  34724. deprecated="not deprecated">
  34725. <param name="tag" type="java.lang.String"/>
  34726. <exception name="IOException" type="java.io.IOException"/>
  34727. </method>
  34728. <method name="readInt" return="int"
  34729. abstract="false" native="false" synchronized="false"
  34730. static="false" final="false" visibility="public"
  34731. deprecated="not deprecated">
  34732. <param name="tag" type="java.lang.String"/>
  34733. <exception name="IOException" type="java.io.IOException"/>
  34734. </method>
  34735. <method name="readLong" return="long"
  34736. abstract="false" native="false" synchronized="false"
  34737. static="false" final="false" visibility="public"
  34738. deprecated="not deprecated">
  34739. <param name="tag" type="java.lang.String"/>
  34740. <exception name="IOException" type="java.io.IOException"/>
  34741. </method>
  34742. <method name="readFloat" return="float"
  34743. abstract="false" native="false" synchronized="false"
  34744. static="false" final="false" visibility="public"
  34745. deprecated="not deprecated">
  34746. <param name="tag" type="java.lang.String"/>
  34747. <exception name="IOException" type="java.io.IOException"/>
  34748. </method>
  34749. <method name="readDouble" return="double"
  34750. abstract="false" native="false" synchronized="false"
  34751. static="false" final="false" visibility="public"
  34752. deprecated="not deprecated">
  34753. <param name="tag" type="java.lang.String"/>
  34754. <exception name="IOException" type="java.io.IOException"/>
  34755. </method>
  34756. <method name="readString" return="java.lang.String"
  34757. abstract="false" native="false" synchronized="false"
  34758. static="false" final="false" visibility="public"
  34759. deprecated="not deprecated">
  34760. <param name="tag" type="java.lang.String"/>
  34761. <exception name="IOException" type="java.io.IOException"/>
  34762. </method>
  34763. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  34764. abstract="false" native="false" synchronized="false"
  34765. static="false" final="false" visibility="public"
  34766. deprecated="not deprecated">
  34767. <param name="tag" type="java.lang.String"/>
  34768. <exception name="IOException" type="java.io.IOException"/>
  34769. </method>
  34770. <method name="startRecord"
  34771. abstract="false" native="false" synchronized="false"
  34772. static="false" final="false" visibility="public"
  34773. deprecated="not deprecated">
  34774. <param name="tag" type="java.lang.String"/>
  34775. <exception name="IOException" type="java.io.IOException"/>
  34776. </method>
  34777. <method name="endRecord"
  34778. abstract="false" native="false" synchronized="false"
  34779. static="false" final="false" visibility="public"
  34780. deprecated="not deprecated">
  34781. <param name="tag" type="java.lang.String"/>
  34782. <exception name="IOException" type="java.io.IOException"/>
  34783. </method>
  34784. <method name="startVector" return="org.apache.hadoop.record.Index"
  34785. abstract="false" native="false" synchronized="false"
  34786. static="false" final="false" visibility="public"
  34787. deprecated="not deprecated">
  34788. <param name="tag" type="java.lang.String"/>
  34789. <exception name="IOException" type="java.io.IOException"/>
  34790. </method>
  34791. <method name="endVector"
  34792. abstract="false" native="false" synchronized="false"
  34793. static="false" final="false" visibility="public"
  34794. deprecated="not deprecated">
  34795. <param name="tag" type="java.lang.String"/>
  34796. <exception name="IOException" type="java.io.IOException"/>
  34797. </method>
  34798. <method name="startMap" return="org.apache.hadoop.record.Index"
  34799. abstract="false" native="false" synchronized="false"
  34800. static="false" final="false" visibility="public"
  34801. deprecated="not deprecated">
  34802. <param name="tag" type="java.lang.String"/>
  34803. <exception name="IOException" type="java.io.IOException"/>
  34804. </method>
  34805. <method name="endMap"
  34806. abstract="false" native="false" synchronized="false"
  34807. static="false" final="false" visibility="public"
  34808. deprecated="not deprecated">
  34809. <param name="tag" type="java.lang.String"/>
  34810. <exception name="IOException" type="java.io.IOException"/>
  34811. </method>
  34812. <doc>
  34813. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  34814. </doc>
  34815. </class>
  34816. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  34817. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  34818. <class name="BinaryRecordOutput" extends="java.lang.Object"
  34819. abstract="false"
  34820. static="false" final="false" visibility="public"
  34821. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  34822. <implements name="org.apache.hadoop.record.RecordOutput"/>
  34823. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  34824. static="false" final="false" visibility="public"
  34825. deprecated="not deprecated">
  34826. <doc>
  34827. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  34828. </doc>
  34829. </constructor>
  34830. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  34831. static="false" final="false" visibility="public"
  34832. deprecated="not deprecated">
  34833. <doc>
  34834. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  34835. </doc>
  34836. </constructor>
  34837. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  34838. abstract="false" native="false" synchronized="false"
  34839. static="true" final="false" visibility="public"
  34840. deprecated="not deprecated">
  34841. <param name="out" type="java.io.DataOutput"/>
  34842. <doc>
  34843. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  34844. @param out data output stream
  34845. @return binary record output corresponding to the supplied DataOutput.]]>
  34846. </doc>
  34847. </method>
  34848. <method name="writeByte"
  34849. abstract="false" native="false" synchronized="false"
  34850. static="false" final="false" visibility="public"
  34851. deprecated="not deprecated">
  34852. <param name="b" type="byte"/>
  34853. <param name="tag" type="java.lang.String"/>
  34854. <exception name="IOException" type="java.io.IOException"/>
  34855. </method>
  34856. <method name="writeBool"
  34857. abstract="false" native="false" synchronized="false"
  34858. static="false" final="false" visibility="public"
  34859. deprecated="not deprecated">
  34860. <param name="b" type="boolean"/>
  34861. <param name="tag" type="java.lang.String"/>
  34862. <exception name="IOException" type="java.io.IOException"/>
  34863. </method>
  34864. <method name="writeInt"
  34865. abstract="false" native="false" synchronized="false"
  34866. static="false" final="false" visibility="public"
  34867. deprecated="not deprecated">
  34868. <param name="i" type="int"/>
  34869. <param name="tag" type="java.lang.String"/>
  34870. <exception name="IOException" type="java.io.IOException"/>
  34871. </method>
  34872. <method name="writeLong"
  34873. abstract="false" native="false" synchronized="false"
  34874. static="false" final="false" visibility="public"
  34875. deprecated="not deprecated">
  34876. <param name="l" type="long"/>
  34877. <param name="tag" type="java.lang.String"/>
  34878. <exception name="IOException" type="java.io.IOException"/>
  34879. </method>
  34880. <method name="writeFloat"
  34881. abstract="false" native="false" synchronized="false"
  34882. static="false" final="false" visibility="public"
  34883. deprecated="not deprecated">
  34884. <param name="f" type="float"/>
  34885. <param name="tag" type="java.lang.String"/>
  34886. <exception name="IOException" type="java.io.IOException"/>
  34887. </method>
  34888. <method name="writeDouble"
  34889. abstract="false" native="false" synchronized="false"
  34890. static="false" final="false" visibility="public"
  34891. deprecated="not deprecated">
  34892. <param name="d" type="double"/>
  34893. <param name="tag" type="java.lang.String"/>
  34894. <exception name="IOException" type="java.io.IOException"/>
  34895. </method>
  34896. <method name="writeString"
  34897. abstract="false" native="false" synchronized="false"
  34898. static="false" final="false" visibility="public"
  34899. deprecated="not deprecated">
  34900. <param name="s" type="java.lang.String"/>
  34901. <param name="tag" type="java.lang.String"/>
  34902. <exception name="IOException" type="java.io.IOException"/>
  34903. </method>
  34904. <method name="writeBuffer"
  34905. abstract="false" native="false" synchronized="false"
  34906. static="false" final="false" visibility="public"
  34907. deprecated="not deprecated">
  34908. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  34909. <param name="tag" type="java.lang.String"/>
  34910. <exception name="IOException" type="java.io.IOException"/>
  34911. </method>
  34912. <method name="startRecord"
  34913. abstract="false" native="false" synchronized="false"
  34914. static="false" final="false" visibility="public"
  34915. deprecated="not deprecated">
  34916. <param name="r" type="org.apache.hadoop.record.Record"/>
  34917. <param name="tag" type="java.lang.String"/>
  34918. <exception name="IOException" type="java.io.IOException"/>
  34919. </method>
  34920. <method name="endRecord"
  34921. abstract="false" native="false" synchronized="false"
  34922. static="false" final="false" visibility="public"
  34923. deprecated="not deprecated">
  34924. <param name="r" type="org.apache.hadoop.record.Record"/>
  34925. <param name="tag" type="java.lang.String"/>
  34926. <exception name="IOException" type="java.io.IOException"/>
  34927. </method>
  34928. <method name="startVector"
  34929. abstract="false" native="false" synchronized="false"
  34930. static="false" final="false" visibility="public"
  34931. deprecated="not deprecated">
  34932. <param name="v" type="java.util.ArrayList"/>
  34933. <param name="tag" type="java.lang.String"/>
  34934. <exception name="IOException" type="java.io.IOException"/>
  34935. </method>
  34936. <method name="endVector"
  34937. abstract="false" native="false" synchronized="false"
  34938. static="false" final="false" visibility="public"
  34939. deprecated="not deprecated">
  34940. <param name="v" type="java.util.ArrayList"/>
  34941. <param name="tag" type="java.lang.String"/>
  34942. <exception name="IOException" type="java.io.IOException"/>
  34943. </method>
  34944. <method name="startMap"
  34945. abstract="false" native="false" synchronized="false"
  34946. static="false" final="false" visibility="public"
  34947. deprecated="not deprecated">
  34948. <param name="v" type="java.util.TreeMap"/>
  34949. <param name="tag" type="java.lang.String"/>
  34950. <exception name="IOException" type="java.io.IOException"/>
  34951. </method>
  34952. <method name="endMap"
  34953. abstract="false" native="false" synchronized="false"
  34954. static="false" final="false" visibility="public"
  34955. deprecated="not deprecated">
  34956. <param name="v" type="java.util.TreeMap"/>
  34957. <param name="tag" type="java.lang.String"/>
  34958. <exception name="IOException" type="java.io.IOException"/>
  34959. </method>
  34960. <doc>
  34961. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  34962. </doc>
  34963. </class>
  34964. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  34965. <!-- start class org.apache.hadoop.record.Buffer -->
  34966. <class name="Buffer" extends="java.lang.Object"
  34967. abstract="false"
  34968. static="false" final="false" visibility="public"
  34969. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  34970. <implements name="java.lang.Comparable"/>
  34971. <implements name="java.lang.Cloneable"/>
  34972. <constructor name="Buffer"
  34973. static="false" final="false" visibility="public"
  34974. deprecated="not deprecated">
  34975. <doc>
  34976. <![CDATA[Create a zero-count sequence.]]>
  34977. </doc>
  34978. </constructor>
  34979. <constructor name="Buffer" type="byte[]"
  34980. static="false" final="false" visibility="public"
  34981. deprecated="not deprecated">
  34982. <doc>
  34983. <![CDATA[Create a Buffer using the byte array as the initial value.
  34984. @param bytes This array becomes the backing storage for the object.]]>
  34985. </doc>
  34986. </constructor>
  34987. <constructor name="Buffer" type="byte[], int, int"
  34988. static="false" final="false" visibility="public"
  34989. deprecated="not deprecated">
  34990. <doc>
  34991. <![CDATA[Create a Buffer using the byte range as the initial value.
  34992. @param bytes Copy of this array becomes the backing storage for the object.
  34993. @param offset offset into byte array
  34994. @param length length of data]]>
  34995. </doc>
  34996. </constructor>
  34997. <method name="set"
  34998. abstract="false" native="false" synchronized="false"
  34999. static="false" final="false" visibility="public"
  35000. deprecated="not deprecated">
  35001. <param name="bytes" type="byte[]"/>
  35002. <doc>
  35003. <![CDATA[Use the specified bytes array as underlying sequence.
  35004. @param bytes byte sequence]]>
  35005. </doc>
  35006. </method>
  35007. <method name="copy"
  35008. abstract="false" native="false" synchronized="false"
  35009. static="false" final="true" visibility="public"
  35010. deprecated="not deprecated">
  35011. <param name="bytes" type="byte[]"/>
  35012. <param name="offset" type="int"/>
  35013. <param name="length" type="int"/>
  35014. <doc>
  35015. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  35016. @param bytes byte array to be assigned
  35017. @param offset offset into byte array
  35018. @param length length of data]]>
  35019. </doc>
  35020. </method>
  35021. <method name="get" return="byte[]"
  35022. abstract="false" native="false" synchronized="false"
  35023. static="false" final="false" visibility="public"
  35024. deprecated="not deprecated">
  35025. <doc>
  35026. <![CDATA[Get the data from the Buffer.
  35027. @return The data is only valid between 0 and getCount() - 1.]]>
  35028. </doc>
  35029. </method>
  35030. <method name="getCount" return="int"
  35031. abstract="false" native="false" synchronized="false"
  35032. static="false" final="false" visibility="public"
  35033. deprecated="not deprecated">
  35034. <doc>
  35035. <![CDATA[Get the current count of the buffer.]]>
  35036. </doc>
  35037. </method>
  35038. <method name="getCapacity" return="int"
  35039. abstract="false" native="false" synchronized="false"
  35040. static="false" final="false" visibility="public"
  35041. deprecated="not deprecated">
  35042. <doc>
  35043. <![CDATA[Get the capacity, which is the maximum count that could handled without
  35044. resizing the backing storage.
  35045. @return The number of bytes]]>
  35046. </doc>
  35047. </method>
  35048. <method name="setCapacity"
  35049. abstract="false" native="false" synchronized="false"
  35050. static="false" final="false" visibility="public"
  35051. deprecated="not deprecated">
  35052. <param name="newCapacity" type="int"/>
  35053. <doc>
  35054. <![CDATA[Change the capacity of the backing storage.
  35055. The data is preserved if newCapacity >= getCount().
  35056. @param newCapacity The new capacity in bytes.]]>
  35057. </doc>
  35058. </method>
  35059. <method name="reset"
  35060. abstract="false" native="false" synchronized="false"
  35061. static="false" final="false" visibility="public"
  35062. deprecated="not deprecated">
  35063. <doc>
  35064. <![CDATA[Reset the buffer to 0 size]]>
  35065. </doc>
  35066. </method>
  35067. <method name="truncate"
  35068. abstract="false" native="false" synchronized="false"
  35069. static="false" final="false" visibility="public"
  35070. deprecated="not deprecated">
  35071. <doc>
  35072. <![CDATA[Change the capacity of the backing store to be the same as the current
  35073. count of buffer.]]>
  35074. </doc>
  35075. </method>
  35076. <method name="append"
  35077. abstract="false" native="false" synchronized="false"
  35078. static="false" final="false" visibility="public"
  35079. deprecated="not deprecated">
  35080. <param name="bytes" type="byte[]"/>
  35081. <param name="offset" type="int"/>
  35082. <param name="length" type="int"/>
  35083. <doc>
  35084. <![CDATA[Append specified bytes to the buffer.
  35085. @param bytes byte array to be appended
  35086. @param offset offset into byte array
  35087. @param length length of data]]>
  35088. </doc>
  35089. </method>
  35090. <method name="append"
  35091. abstract="false" native="false" synchronized="false"
  35092. static="false" final="false" visibility="public"
  35093. deprecated="not deprecated">
  35094. <param name="bytes" type="byte[]"/>
  35095. <doc>
  35096. <![CDATA[Append specified bytes to the buffer
  35097. @param bytes byte array to be appended]]>
  35098. </doc>
  35099. </method>
  35100. <method name="hashCode" return="int"
  35101. abstract="false" native="false" synchronized="false"
  35102. static="false" final="false" visibility="public"
  35103. deprecated="not deprecated">
  35104. </method>
  35105. <method name="compareTo" return="int"
  35106. abstract="false" native="false" synchronized="false"
  35107. static="false" final="false" visibility="public"
  35108. deprecated="not deprecated">
  35109. <param name="other" type="java.lang.Object"/>
  35110. <doc>
  35111. <![CDATA[Define the sort order of the Buffer.
  35112. @param other The other buffer
  35113. @return Positive if this is bigger than other, 0 if they are equal, and
  35114. negative if this is smaller than other.]]>
  35115. </doc>
  35116. </method>
  35117. <method name="equals" return="boolean"
  35118. abstract="false" native="false" synchronized="false"
  35119. static="false" final="false" visibility="public"
  35120. deprecated="not deprecated">
  35121. <param name="other" type="java.lang.Object"/>
  35122. </method>
  35123. <method name="toString" return="java.lang.String"
  35124. abstract="false" native="false" synchronized="false"
  35125. static="false" final="false" visibility="public"
  35126. deprecated="not deprecated">
  35127. </method>
  35128. <method name="toString" return="java.lang.String"
  35129. abstract="false" native="false" synchronized="false"
  35130. static="false" final="false" visibility="public"
  35131. deprecated="not deprecated">
  35132. <param name="charsetName" type="java.lang.String"/>
  35133. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  35134. <doc>
  35135. <![CDATA[Convert the byte buffer to a string an specific character encoding
  35136. @param charsetName Valid Java Character Set Name]]>
  35137. </doc>
  35138. </method>
  35139. <method name="clone" return="java.lang.Object"
  35140. abstract="false" native="false" synchronized="false"
  35141. static="false" final="false" visibility="public"
  35142. deprecated="not deprecated">
  35143. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  35144. </method>
  35145. <doc>
  35146. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  35147. It is resizable and distinguishes between the count of the seqeunce and
  35148. the current capacity.
  35149. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35150. </doc>
  35151. </class>
  35152. <!-- end class org.apache.hadoop.record.Buffer -->
  35153. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  35154. <class name="CsvRecordInput" extends="java.lang.Object"
  35155. abstract="false"
  35156. static="false" final="false" visibility="public"
  35157. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35158. <implements name="org.apache.hadoop.record.RecordInput"/>
  35159. <constructor name="CsvRecordInput" type="java.io.InputStream"
  35160. static="false" final="false" visibility="public"
  35161. deprecated="not deprecated">
  35162. <doc>
  35163. <![CDATA[Creates a new instance of CsvRecordInput]]>
  35164. </doc>
  35165. </constructor>
  35166. <method name="readByte" return="byte"
  35167. abstract="false" native="false" synchronized="false"
  35168. static="false" final="false" visibility="public"
  35169. deprecated="not deprecated">
  35170. <param name="tag" type="java.lang.String"/>
  35171. <exception name="IOException" type="java.io.IOException"/>
  35172. </method>
  35173. <method name="readBool" return="boolean"
  35174. abstract="false" native="false" synchronized="false"
  35175. static="false" final="false" visibility="public"
  35176. deprecated="not deprecated">
  35177. <param name="tag" type="java.lang.String"/>
  35178. <exception name="IOException" type="java.io.IOException"/>
  35179. </method>
  35180. <method name="readInt" return="int"
  35181. abstract="false" native="false" synchronized="false"
  35182. static="false" final="false" visibility="public"
  35183. deprecated="not deprecated">
  35184. <param name="tag" type="java.lang.String"/>
  35185. <exception name="IOException" type="java.io.IOException"/>
  35186. </method>
  35187. <method name="readLong" return="long"
  35188. abstract="false" native="false" synchronized="false"
  35189. static="false" final="false" visibility="public"
  35190. deprecated="not deprecated">
  35191. <param name="tag" type="java.lang.String"/>
  35192. <exception name="IOException" type="java.io.IOException"/>
  35193. </method>
  35194. <method name="readFloat" return="float"
  35195. abstract="false" native="false" synchronized="false"
  35196. static="false" final="false" visibility="public"
  35197. deprecated="not deprecated">
  35198. <param name="tag" type="java.lang.String"/>
  35199. <exception name="IOException" type="java.io.IOException"/>
  35200. </method>
  35201. <method name="readDouble" return="double"
  35202. abstract="false" native="false" synchronized="false"
  35203. static="false" final="false" visibility="public"
  35204. deprecated="not deprecated">
  35205. <param name="tag" type="java.lang.String"/>
  35206. <exception name="IOException" type="java.io.IOException"/>
  35207. </method>
  35208. <method name="readString" return="java.lang.String"
  35209. abstract="false" native="false" synchronized="false"
  35210. static="false" final="false" visibility="public"
  35211. deprecated="not deprecated">
  35212. <param name="tag" type="java.lang.String"/>
  35213. <exception name="IOException" type="java.io.IOException"/>
  35214. </method>
  35215. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  35216. abstract="false" native="false" synchronized="false"
  35217. static="false" final="false" visibility="public"
  35218. deprecated="not deprecated">
  35219. <param name="tag" type="java.lang.String"/>
  35220. <exception name="IOException" type="java.io.IOException"/>
  35221. </method>
  35222. <method name="startRecord"
  35223. abstract="false" native="false" synchronized="false"
  35224. static="false" final="false" visibility="public"
  35225. deprecated="not deprecated">
  35226. <param name="tag" type="java.lang.String"/>
  35227. <exception name="IOException" type="java.io.IOException"/>
  35228. </method>
  35229. <method name="endRecord"
  35230. abstract="false" native="false" synchronized="false"
  35231. static="false" final="false" visibility="public"
  35232. deprecated="not deprecated">
  35233. <param name="tag" type="java.lang.String"/>
  35234. <exception name="IOException" type="java.io.IOException"/>
  35235. </method>
  35236. <method name="startVector" return="org.apache.hadoop.record.Index"
  35237. abstract="false" native="false" synchronized="false"
  35238. static="false" final="false" visibility="public"
  35239. deprecated="not deprecated">
  35240. <param name="tag" type="java.lang.String"/>
  35241. <exception name="IOException" type="java.io.IOException"/>
  35242. </method>
  35243. <method name="endVector"
  35244. abstract="false" native="false" synchronized="false"
  35245. static="false" final="false" visibility="public"
  35246. deprecated="not deprecated">
  35247. <param name="tag" type="java.lang.String"/>
  35248. <exception name="IOException" type="java.io.IOException"/>
  35249. </method>
  35250. <method name="startMap" return="org.apache.hadoop.record.Index"
  35251. abstract="false" native="false" synchronized="false"
  35252. static="false" final="false" visibility="public"
  35253. deprecated="not deprecated">
  35254. <param name="tag" type="java.lang.String"/>
  35255. <exception name="IOException" type="java.io.IOException"/>
  35256. </method>
  35257. <method name="endMap"
  35258. abstract="false" native="false" synchronized="false"
  35259. static="false" final="false" visibility="public"
  35260. deprecated="not deprecated">
  35261. <param name="tag" type="java.lang.String"/>
  35262. <exception name="IOException" type="java.io.IOException"/>
  35263. </method>
  35264. <doc>
  35265. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35266. </doc>
  35267. </class>
  35268. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  35269. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  35270. <class name="CsvRecordOutput" extends="java.lang.Object"
  35271. abstract="false"
  35272. static="false" final="false" visibility="public"
  35273. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35274. <implements name="org.apache.hadoop.record.RecordOutput"/>
  35275. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  35276. static="false" final="false" visibility="public"
  35277. deprecated="not deprecated">
  35278. <doc>
  35279. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  35280. </doc>
  35281. </constructor>
  35282. <method name="writeByte"
  35283. abstract="false" native="false" synchronized="false"
  35284. static="false" final="false" visibility="public"
  35285. deprecated="not deprecated">
  35286. <param name="b" type="byte"/>
  35287. <param name="tag" type="java.lang.String"/>
  35288. <exception name="IOException" type="java.io.IOException"/>
  35289. </method>
  35290. <method name="writeBool"
  35291. abstract="false" native="false" synchronized="false"
  35292. static="false" final="false" visibility="public"
  35293. deprecated="not deprecated">
  35294. <param name="b" type="boolean"/>
  35295. <param name="tag" type="java.lang.String"/>
  35296. <exception name="IOException" type="java.io.IOException"/>
  35297. </method>
  35298. <method name="writeInt"
  35299. abstract="false" native="false" synchronized="false"
  35300. static="false" final="false" visibility="public"
  35301. deprecated="not deprecated">
  35302. <param name="i" type="int"/>
  35303. <param name="tag" type="java.lang.String"/>
  35304. <exception name="IOException" type="java.io.IOException"/>
  35305. </method>
  35306. <method name="writeLong"
  35307. abstract="false" native="false" synchronized="false"
  35308. static="false" final="false" visibility="public"
  35309. deprecated="not deprecated">
  35310. <param name="l" type="long"/>
  35311. <param name="tag" type="java.lang.String"/>
  35312. <exception name="IOException" type="java.io.IOException"/>
  35313. </method>
  35314. <method name="writeFloat"
  35315. abstract="false" native="false" synchronized="false"
  35316. static="false" final="false" visibility="public"
  35317. deprecated="not deprecated">
  35318. <param name="f" type="float"/>
  35319. <param name="tag" type="java.lang.String"/>
  35320. <exception name="IOException" type="java.io.IOException"/>
  35321. </method>
  35322. <method name="writeDouble"
  35323. abstract="false" native="false" synchronized="false"
  35324. static="false" final="false" visibility="public"
  35325. deprecated="not deprecated">
  35326. <param name="d" type="double"/>
  35327. <param name="tag" type="java.lang.String"/>
  35328. <exception name="IOException" type="java.io.IOException"/>
  35329. </method>
  35330. <method name="writeString"
  35331. abstract="false" native="false" synchronized="false"
  35332. static="false" final="false" visibility="public"
  35333. deprecated="not deprecated">
  35334. <param name="s" type="java.lang.String"/>
  35335. <param name="tag" type="java.lang.String"/>
  35336. <exception name="IOException" type="java.io.IOException"/>
  35337. </method>
  35338. <method name="writeBuffer"
  35339. abstract="false" native="false" synchronized="false"
  35340. static="false" final="false" visibility="public"
  35341. deprecated="not deprecated">
  35342. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  35343. <param name="tag" type="java.lang.String"/>
  35344. <exception name="IOException" type="java.io.IOException"/>
  35345. </method>
  35346. <method name="startRecord"
  35347. abstract="false" native="false" synchronized="false"
  35348. static="false" final="false" visibility="public"
  35349. deprecated="not deprecated">
  35350. <param name="r" type="org.apache.hadoop.record.Record"/>
  35351. <param name="tag" type="java.lang.String"/>
  35352. <exception name="IOException" type="java.io.IOException"/>
  35353. </method>
  35354. <method name="endRecord"
  35355. abstract="false" native="false" synchronized="false"
  35356. static="false" final="false" visibility="public"
  35357. deprecated="not deprecated">
  35358. <param name="r" type="org.apache.hadoop.record.Record"/>
  35359. <param name="tag" type="java.lang.String"/>
  35360. <exception name="IOException" type="java.io.IOException"/>
  35361. </method>
  35362. <method name="startVector"
  35363. abstract="false" native="false" synchronized="false"
  35364. static="false" final="false" visibility="public"
  35365. deprecated="not deprecated">
  35366. <param name="v" type="java.util.ArrayList"/>
  35367. <param name="tag" type="java.lang.String"/>
  35368. <exception name="IOException" type="java.io.IOException"/>
  35369. </method>
  35370. <method name="endVector"
  35371. abstract="false" native="false" synchronized="false"
  35372. static="false" final="false" visibility="public"
  35373. deprecated="not deprecated">
  35374. <param name="v" type="java.util.ArrayList"/>
  35375. <param name="tag" type="java.lang.String"/>
  35376. <exception name="IOException" type="java.io.IOException"/>
  35377. </method>
  35378. <method name="startMap"
  35379. abstract="false" native="false" synchronized="false"
  35380. static="false" final="false" visibility="public"
  35381. deprecated="not deprecated">
  35382. <param name="v" type="java.util.TreeMap"/>
  35383. <param name="tag" type="java.lang.String"/>
  35384. <exception name="IOException" type="java.io.IOException"/>
  35385. </method>
  35386. <method name="endMap"
  35387. abstract="false" native="false" synchronized="false"
  35388. static="false" final="false" visibility="public"
  35389. deprecated="not deprecated">
  35390. <param name="v" type="java.util.TreeMap"/>
  35391. <param name="tag" type="java.lang.String"/>
  35392. <exception name="IOException" type="java.io.IOException"/>
  35393. </method>
  35394. <doc>
  35395. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35396. </doc>
  35397. </class>
  35398. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  35399. <!-- start interface org.apache.hadoop.record.Index -->
  35400. <interface name="Index" abstract="true"
  35401. static="false" final="false" visibility="public"
  35402. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35403. <method name="done" return="boolean"
  35404. abstract="false" native="false" synchronized="false"
  35405. static="false" final="false" visibility="public"
  35406. deprecated="not deprecated">
  35407. </method>
  35408. <method name="incr"
  35409. abstract="false" native="false" synchronized="false"
  35410. static="false" final="false" visibility="public"
  35411. deprecated="not deprecated">
  35412. </method>
  35413. <doc>
  35414. <![CDATA[Interface that acts as an iterator for deserializing maps.
  35415. The deserializer returns an instance that the record uses to
  35416. read vectors and maps. An example of usage is as follows:
  35417. <code>
  35418. Index idx = startVector(...);
  35419. while (!idx.done()) {
  35420. .... // read element of a vector
  35421. idx.incr();
  35422. }
  35423. </code>
  35424. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35425. </doc>
  35426. </interface>
  35427. <!-- end interface org.apache.hadoop.record.Index -->
  35428. <!-- start class org.apache.hadoop.record.Record -->
  35429. <class name="Record" extends="java.lang.Object"
  35430. abstract="true"
  35431. static="false" final="false" visibility="public"
  35432. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35433. <implements name="org.apache.hadoop.io.WritableComparable"/>
  35434. <implements name="java.lang.Cloneable"/>
  35435. <constructor name="Record"
  35436. static="false" final="false" visibility="public"
  35437. deprecated="not deprecated">
  35438. </constructor>
  35439. <method name="serialize"
  35440. abstract="true" native="false" synchronized="false"
  35441. static="false" final="false" visibility="public"
  35442. deprecated="not deprecated">
  35443. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  35444. <param name="tag" type="java.lang.String"/>
  35445. <exception name="IOException" type="java.io.IOException"/>
  35446. <doc>
  35447. <![CDATA[Serialize a record with tag (ususally field name)
  35448. @param rout Record output destination
  35449. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  35450. </doc>
  35451. </method>
  35452. <method name="deserialize"
  35453. abstract="true" native="false" synchronized="false"
  35454. static="false" final="false" visibility="public"
  35455. deprecated="not deprecated">
  35456. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  35457. <param name="tag" type="java.lang.String"/>
  35458. <exception name="IOException" type="java.io.IOException"/>
  35459. <doc>
  35460. <![CDATA[Deserialize a record with a tag (usually field name)
  35461. @param rin Record input source
  35462. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  35463. </doc>
  35464. </method>
  35465. <method name="compareTo" return="int"
  35466. abstract="true" native="false" synchronized="false"
  35467. static="false" final="false" visibility="public"
  35468. deprecated="not deprecated">
  35469. <param name="peer" type="java.lang.Object"/>
  35470. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  35471. </method>
  35472. <method name="serialize"
  35473. abstract="false" native="false" synchronized="false"
  35474. static="false" final="false" visibility="public"
  35475. deprecated="not deprecated">
  35476. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  35477. <exception name="IOException" type="java.io.IOException"/>
  35478. <doc>
  35479. <![CDATA[Serialize a record without a tag
  35480. @param rout Record output destination]]>
  35481. </doc>
  35482. </method>
  35483. <method name="deserialize"
  35484. abstract="false" native="false" synchronized="false"
  35485. static="false" final="false" visibility="public"
  35486. deprecated="not deprecated">
  35487. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  35488. <exception name="IOException" type="java.io.IOException"/>
  35489. <doc>
  35490. <![CDATA[Deserialize a record without a tag
  35491. @param rin Record input source]]>
  35492. </doc>
  35493. </method>
  35494. <method name="write"
  35495. abstract="false" native="false" synchronized="false"
  35496. static="false" final="false" visibility="public"
  35497. deprecated="not deprecated">
  35498. <param name="out" type="java.io.DataOutput"/>
  35499. <exception name="IOException" type="java.io.IOException"/>
  35500. </method>
  35501. <method name="readFields"
  35502. abstract="false" native="false" synchronized="false"
  35503. static="false" final="false" visibility="public"
  35504. deprecated="not deprecated">
  35505. <param name="din" type="java.io.DataInput"/>
  35506. <exception name="IOException" type="java.io.IOException"/>
  35507. </method>
  35508. <method name="toString" return="java.lang.String"
  35509. abstract="false" native="false" synchronized="false"
  35510. static="false" final="false" visibility="public"
  35511. deprecated="not deprecated">
  35512. </method>
  35513. <doc>
  35514. <![CDATA[Abstract class that is extended by generated classes.
  35515. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35516. </doc>
  35517. </class>
  35518. <!-- end class org.apache.hadoop.record.Record -->
  35519. <!-- start class org.apache.hadoop.record.RecordComparator -->
  35520. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  35521. abstract="true"
  35522. static="false" final="false" visibility="public"
  35523. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35524. <constructor name="RecordComparator" type="java.lang.Class"
  35525. static="false" final="false" visibility="protected"
  35526. deprecated="not deprecated">
  35527. <doc>
  35528. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  35529. </doc>
  35530. </constructor>
  35531. <method name="compare" return="int"
  35532. abstract="true" native="false" synchronized="false"
  35533. static="false" final="false" visibility="public"
  35534. deprecated="not deprecated">
  35535. <param name="b1" type="byte[]"/>
  35536. <param name="s1" type="int"/>
  35537. <param name="l1" type="int"/>
  35538. <param name="b2" type="byte[]"/>
  35539. <param name="s2" type="int"/>
  35540. <param name="l2" type="int"/>
  35541. </method>
  35542. <method name="define"
  35543. abstract="false" native="false" synchronized="true"
  35544. static="true" final="false" visibility="public"
  35545. deprecated="not deprecated">
  35546. <param name="c" type="java.lang.Class"/>
  35547. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  35548. <doc>
  35549. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  35550. @param c record classs for which a raw comparator is provided
  35551. @param comparator Raw comparator instance for class c]]>
  35552. </doc>
  35553. </method>
  35554. <doc>
  35555. <![CDATA[A raw record comparator base class
  35556. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35557. </doc>
  35558. </class>
  35559. <!-- end class org.apache.hadoop.record.RecordComparator -->
  35560. <!-- start interface org.apache.hadoop.record.RecordInput -->
  35561. <interface name="RecordInput" abstract="true"
  35562. static="false" final="false" visibility="public"
  35563. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35564. <method name="readByte" return="byte"
  35565. abstract="false" native="false" synchronized="false"
  35566. static="false" final="false" visibility="public"
  35567. deprecated="not deprecated">
  35568. <param name="tag" type="java.lang.String"/>
  35569. <exception name="IOException" type="java.io.IOException"/>
  35570. <doc>
  35571. <![CDATA[Read a byte from serialized record.
  35572. @param tag Used by tagged serialization formats (such as XML)
  35573. @return value read from serialized record.]]>
  35574. </doc>
  35575. </method>
  35576. <method name="readBool" return="boolean"
  35577. abstract="false" native="false" synchronized="false"
  35578. static="false" final="false" visibility="public"
  35579. deprecated="not deprecated">
  35580. <param name="tag" type="java.lang.String"/>
  35581. <exception name="IOException" type="java.io.IOException"/>
  35582. <doc>
  35583. <![CDATA[Read a boolean from serialized record.
  35584. @param tag Used by tagged serialization formats (such as XML)
  35585. @return value read from serialized record.]]>
  35586. </doc>
  35587. </method>
  35588. <method name="readInt" return="int"
  35589. abstract="false" native="false" synchronized="false"
  35590. static="false" final="false" visibility="public"
  35591. deprecated="not deprecated">
  35592. <param name="tag" type="java.lang.String"/>
  35593. <exception name="IOException" type="java.io.IOException"/>
  35594. <doc>
  35595. <![CDATA[Read an integer from serialized record.
  35596. @param tag Used by tagged serialization formats (such as XML)
  35597. @return value read from serialized record.]]>
  35598. </doc>
  35599. </method>
  35600. <method name="readLong" return="long"
  35601. abstract="false" native="false" synchronized="false"
  35602. static="false" final="false" visibility="public"
  35603. deprecated="not deprecated">
  35604. <param name="tag" type="java.lang.String"/>
  35605. <exception name="IOException" type="java.io.IOException"/>
  35606. <doc>
  35607. <![CDATA[Read a long integer from serialized record.
  35608. @param tag Used by tagged serialization formats (such as XML)
  35609. @return value read from serialized record.]]>
  35610. </doc>
  35611. </method>
  35612. <method name="readFloat" return="float"
  35613. abstract="false" native="false" synchronized="false"
  35614. static="false" final="false" visibility="public"
  35615. deprecated="not deprecated">
  35616. <param name="tag" type="java.lang.String"/>
  35617. <exception name="IOException" type="java.io.IOException"/>
  35618. <doc>
  35619. <![CDATA[Read a single-precision float from serialized record.
  35620. @param tag Used by tagged serialization formats (such as XML)
  35621. @return value read from serialized record.]]>
  35622. </doc>
  35623. </method>
  35624. <method name="readDouble" return="double"
  35625. abstract="false" native="false" synchronized="false"
  35626. static="false" final="false" visibility="public"
  35627. deprecated="not deprecated">
  35628. <param name="tag" type="java.lang.String"/>
  35629. <exception name="IOException" type="java.io.IOException"/>
  35630. <doc>
  35631. <![CDATA[Read a double-precision number from serialized record.
  35632. @param tag Used by tagged serialization formats (such as XML)
  35633. @return value read from serialized record.]]>
  35634. </doc>
  35635. </method>
  35636. <method name="readString" return="java.lang.String"
  35637. abstract="false" native="false" synchronized="false"
  35638. static="false" final="false" visibility="public"
  35639. deprecated="not deprecated">
  35640. <param name="tag" type="java.lang.String"/>
  35641. <exception name="IOException" type="java.io.IOException"/>
  35642. <doc>
  35643. <![CDATA[Read a UTF-8 encoded string from serialized record.
  35644. @param tag Used by tagged serialization formats (such as XML)
  35645. @return value read from serialized record.]]>
  35646. </doc>
  35647. </method>
  35648. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  35649. abstract="false" native="false" synchronized="false"
  35650. static="false" final="false" visibility="public"
  35651. deprecated="not deprecated">
  35652. <param name="tag" type="java.lang.String"/>
  35653. <exception name="IOException" type="java.io.IOException"/>
  35654. <doc>
  35655. <![CDATA[Read byte array from serialized record.
  35656. @param tag Used by tagged serialization formats (such as XML)
  35657. @return value read from serialized record.]]>
  35658. </doc>
  35659. </method>
  35660. <method name="startRecord"
  35661. abstract="false" native="false" synchronized="false"
  35662. static="false" final="false" visibility="public"
  35663. deprecated="not deprecated">
  35664. <param name="tag" type="java.lang.String"/>
  35665. <exception name="IOException" type="java.io.IOException"/>
  35666. <doc>
  35667. <![CDATA[Check the mark for start of the serialized record.
  35668. @param tag Used by tagged serialization formats (such as XML)]]>
  35669. </doc>
  35670. </method>
  35671. <method name="endRecord"
  35672. abstract="false" native="false" synchronized="false"
  35673. static="false" final="false" visibility="public"
  35674. deprecated="not deprecated">
  35675. <param name="tag" type="java.lang.String"/>
  35676. <exception name="IOException" type="java.io.IOException"/>
  35677. <doc>
  35678. <![CDATA[Check the mark for end of the serialized record.
  35679. @param tag Used by tagged serialization formats (such as XML)]]>
  35680. </doc>
  35681. </method>
  35682. <method name="startVector" return="org.apache.hadoop.record.Index"
  35683. abstract="false" native="false" synchronized="false"
  35684. static="false" final="false" visibility="public"
  35685. deprecated="not deprecated">
  35686. <param name="tag" type="java.lang.String"/>
  35687. <exception name="IOException" type="java.io.IOException"/>
  35688. <doc>
  35689. <![CDATA[Check the mark for start of the serialized vector.
  35690. @param tag Used by tagged serialization formats (such as XML)
  35691. @return Index that is used to count the number of elements.]]>
  35692. </doc>
  35693. </method>
  35694. <method name="endVector"
  35695. abstract="false" native="false" synchronized="false"
  35696. static="false" final="false" visibility="public"
  35697. deprecated="not deprecated">
  35698. <param name="tag" type="java.lang.String"/>
  35699. <exception name="IOException" type="java.io.IOException"/>
  35700. <doc>
  35701. <![CDATA[Check the mark for end of the serialized vector.
  35702. @param tag Used by tagged serialization formats (such as XML)]]>
  35703. </doc>
  35704. </method>
  35705. <method name="startMap" return="org.apache.hadoop.record.Index"
  35706. abstract="false" native="false" synchronized="false"
  35707. static="false" final="false" visibility="public"
  35708. deprecated="not deprecated">
  35709. <param name="tag" type="java.lang.String"/>
  35710. <exception name="IOException" type="java.io.IOException"/>
  35711. <doc>
  35712. <![CDATA[Check the mark for start of the serialized map.
  35713. @param tag Used by tagged serialization formats (such as XML)
  35714. @return Index that is used to count the number of map entries.]]>
  35715. </doc>
  35716. </method>
  35717. <method name="endMap"
  35718. abstract="false" native="false" synchronized="false"
  35719. static="false" final="false" visibility="public"
  35720. deprecated="not deprecated">
  35721. <param name="tag" type="java.lang.String"/>
  35722. <exception name="IOException" type="java.io.IOException"/>
  35723. <doc>
  35724. <![CDATA[Check the mark for end of the serialized map.
  35725. @param tag Used by tagged serialization formats (such as XML)]]>
  35726. </doc>
  35727. </method>
  35728. <doc>
  35729. <![CDATA[Interface that all the Deserializers have to implement.
  35730. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35731. </doc>
  35732. </interface>
  35733. <!-- end interface org.apache.hadoop.record.RecordInput -->
  35734. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  35735. <interface name="RecordOutput" abstract="true"
  35736. static="false" final="false" visibility="public"
  35737. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35738. <method name="writeByte"
  35739. abstract="false" native="false" synchronized="false"
  35740. static="false" final="false" visibility="public"
  35741. deprecated="not deprecated">
  35742. <param name="b" type="byte"/>
  35743. <param name="tag" type="java.lang.String"/>
  35744. <exception name="IOException" type="java.io.IOException"/>
  35745. <doc>
  35746. <![CDATA[Write a byte to serialized record.
  35747. @param b Byte to be serialized
  35748. @param tag Used by tagged serialization formats (such as XML)
  35749. @throws IOException Indicates error in serialization]]>
  35750. </doc>
  35751. </method>
  35752. <method name="writeBool"
  35753. abstract="false" native="false" synchronized="false"
  35754. static="false" final="false" visibility="public"
  35755. deprecated="not deprecated">
  35756. <param name="b" type="boolean"/>
  35757. <param name="tag" type="java.lang.String"/>
  35758. <exception name="IOException" type="java.io.IOException"/>
  35759. <doc>
  35760. <![CDATA[Write a boolean to serialized record.
  35761. @param b Boolean to be serialized
  35762. @param tag Used by tagged serialization formats (such as XML)
  35763. @throws IOException Indicates error in serialization]]>
  35764. </doc>
  35765. </method>
  35766. <method name="writeInt"
  35767. abstract="false" native="false" synchronized="false"
  35768. static="false" final="false" visibility="public"
  35769. deprecated="not deprecated">
  35770. <param name="i" type="int"/>
  35771. <param name="tag" type="java.lang.String"/>
  35772. <exception name="IOException" type="java.io.IOException"/>
  35773. <doc>
  35774. <![CDATA[Write an integer to serialized record.
  35775. @param i Integer to be serialized
  35776. @param tag Used by tagged serialization formats (such as XML)
  35777. @throws IOException Indicates error in serialization]]>
  35778. </doc>
  35779. </method>
  35780. <method name="writeLong"
  35781. abstract="false" native="false" synchronized="false"
  35782. static="false" final="false" visibility="public"
  35783. deprecated="not deprecated">
  35784. <param name="l" type="long"/>
  35785. <param name="tag" type="java.lang.String"/>
  35786. <exception name="IOException" type="java.io.IOException"/>
  35787. <doc>
  35788. <![CDATA[Write a long integer to serialized record.
  35789. @param l Long to be serialized
  35790. @param tag Used by tagged serialization formats (such as XML)
  35791. @throws IOException Indicates error in serialization]]>
  35792. </doc>
  35793. </method>
  35794. <method name="writeFloat"
  35795. abstract="false" native="false" synchronized="false"
  35796. static="false" final="false" visibility="public"
  35797. deprecated="not deprecated">
  35798. <param name="f" type="float"/>
  35799. <param name="tag" type="java.lang.String"/>
  35800. <exception name="IOException" type="java.io.IOException"/>
  35801. <doc>
  35802. <![CDATA[Write a single-precision float to serialized record.
  35803. @param f Float to be serialized
  35804. @param tag Used by tagged serialization formats (such as XML)
  35805. @throws IOException Indicates error in serialization]]>
  35806. </doc>
  35807. </method>
  35808. <method name="writeDouble"
  35809. abstract="false" native="false" synchronized="false"
  35810. static="false" final="false" visibility="public"
  35811. deprecated="not deprecated">
  35812. <param name="d" type="double"/>
  35813. <param name="tag" type="java.lang.String"/>
  35814. <exception name="IOException" type="java.io.IOException"/>
  35815. <doc>
  35816. <![CDATA[Write a double precision floating point number to serialized record.
  35817. @param d Double to be serialized
  35818. @param tag Used by tagged serialization formats (such as XML)
  35819. @throws IOException Indicates error in serialization]]>
  35820. </doc>
  35821. </method>
  35822. <method name="writeString"
  35823. abstract="false" native="false" synchronized="false"
  35824. static="false" final="false" visibility="public"
  35825. deprecated="not deprecated">
  35826. <param name="s" type="java.lang.String"/>
  35827. <param name="tag" type="java.lang.String"/>
  35828. <exception name="IOException" type="java.io.IOException"/>
  35829. <doc>
  35830. <![CDATA[Write a unicode string to serialized record.
  35831. @param s String to be serialized
  35832. @param tag Used by tagged serialization formats (such as XML)
  35833. @throws IOException Indicates error in serialization]]>
  35834. </doc>
  35835. </method>
  35836. <method name="writeBuffer"
  35837. abstract="false" native="false" synchronized="false"
  35838. static="false" final="false" visibility="public"
  35839. deprecated="not deprecated">
  35840. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  35841. <param name="tag" type="java.lang.String"/>
  35842. <exception name="IOException" type="java.io.IOException"/>
  35843. <doc>
  35844. <![CDATA[Write a buffer to serialized record.
  35845. @param buf Buffer to be serialized
  35846. @param tag Used by tagged serialization formats (such as XML)
  35847. @throws IOException Indicates error in serialization]]>
  35848. </doc>
  35849. </method>
  35850. <method name="startRecord"
  35851. abstract="false" native="false" synchronized="false"
  35852. static="false" final="false" visibility="public"
  35853. deprecated="not deprecated">
  35854. <param name="r" type="org.apache.hadoop.record.Record"/>
  35855. <param name="tag" type="java.lang.String"/>
  35856. <exception name="IOException" type="java.io.IOException"/>
  35857. <doc>
  35858. <![CDATA[Mark the start of a record to be serialized.
  35859. @param r Record to be serialized
  35860. @param tag Used by tagged serialization formats (such as XML)
  35861. @throws IOException Indicates error in serialization]]>
  35862. </doc>
  35863. </method>
  35864. <method name="endRecord"
  35865. abstract="false" native="false" synchronized="false"
  35866. static="false" final="false" visibility="public"
  35867. deprecated="not deprecated">
  35868. <param name="r" type="org.apache.hadoop.record.Record"/>
  35869. <param name="tag" type="java.lang.String"/>
  35870. <exception name="IOException" type="java.io.IOException"/>
  35871. <doc>
  35872. <![CDATA[Mark the end of a serialized record.
  35873. @param r Record to be serialized
  35874. @param tag Used by tagged serialization formats (such as XML)
  35875. @throws IOException Indicates error in serialization]]>
  35876. </doc>
  35877. </method>
  35878. <method name="startVector"
  35879. abstract="false" native="false" synchronized="false"
  35880. static="false" final="false" visibility="public"
  35881. deprecated="not deprecated">
  35882. <param name="v" type="java.util.ArrayList"/>
  35883. <param name="tag" type="java.lang.String"/>
  35884. <exception name="IOException" type="java.io.IOException"/>
  35885. <doc>
  35886. <![CDATA[Mark the start of a vector to be serialized.
  35887. @param v Vector to be serialized
  35888. @param tag Used by tagged serialization formats (such as XML)
  35889. @throws IOException Indicates error in serialization]]>
  35890. </doc>
  35891. </method>
  35892. <method name="endVector"
  35893. abstract="false" native="false" synchronized="false"
  35894. static="false" final="false" visibility="public"
  35895. deprecated="not deprecated">
  35896. <param name="v" type="java.util.ArrayList"/>
  35897. <param name="tag" type="java.lang.String"/>
  35898. <exception name="IOException" type="java.io.IOException"/>
  35899. <doc>
  35900. <![CDATA[Mark the end of a serialized vector.
  35901. @param v Vector to be serialized
  35902. @param tag Used by tagged serialization formats (such as XML)
  35903. @throws IOException Indicates error in serialization]]>
  35904. </doc>
  35905. </method>
  35906. <method name="startMap"
  35907. abstract="false" native="false" synchronized="false"
  35908. static="false" final="false" visibility="public"
  35909. deprecated="not deprecated">
  35910. <param name="m" type="java.util.TreeMap"/>
  35911. <param name="tag" type="java.lang.String"/>
  35912. <exception name="IOException" type="java.io.IOException"/>
  35913. <doc>
  35914. <![CDATA[Mark the start of a map to be serialized.
  35915. @param m Map to be serialized
  35916. @param tag Used by tagged serialization formats (such as XML)
  35917. @throws IOException Indicates error in serialization]]>
  35918. </doc>
  35919. </method>
  35920. <method name="endMap"
  35921. abstract="false" native="false" synchronized="false"
  35922. static="false" final="false" visibility="public"
  35923. deprecated="not deprecated">
  35924. <param name="m" type="java.util.TreeMap"/>
  35925. <param name="tag" type="java.lang.String"/>
  35926. <exception name="IOException" type="java.io.IOException"/>
  35927. <doc>
  35928. <![CDATA[Mark the end of a serialized map.
  35929. @param m Map to be serialized
  35930. @param tag Used by tagged serialization formats (such as XML)
  35931. @throws IOException Indicates error in serialization]]>
  35932. </doc>
  35933. </method>
  35934. <doc>
  35935. <![CDATA[Interface that all the serializers have to implement.
  35936. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35937. </doc>
  35938. </interface>
  35939. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  35940. <!-- start class org.apache.hadoop.record.Utils -->
  35941. <class name="Utils" extends="java.lang.Object"
  35942. abstract="false"
  35943. static="false" final="false" visibility="public"
  35944. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35945. <method name="readFloat" return="float"
  35946. abstract="false" native="false" synchronized="false"
  35947. static="true" final="false" visibility="public"
  35948. deprecated="not deprecated">
  35949. <param name="bytes" type="byte[]"/>
  35950. <param name="start" type="int"/>
  35951. <doc>
  35952. <![CDATA[Parse a float from a byte array.]]>
  35953. </doc>
  35954. </method>
  35955. <method name="readDouble" return="double"
  35956. abstract="false" native="false" synchronized="false"
  35957. static="true" final="false" visibility="public"
  35958. deprecated="not deprecated">
  35959. <param name="bytes" type="byte[]"/>
  35960. <param name="start" type="int"/>
  35961. <doc>
  35962. <![CDATA[Parse a double from a byte array.]]>
  35963. </doc>
  35964. </method>
  35965. <method name="readVLong" return="long"
  35966. abstract="false" native="false" synchronized="false"
  35967. static="true" final="false" visibility="public"
  35968. deprecated="not deprecated">
  35969. <param name="bytes" type="byte[]"/>
  35970. <param name="start" type="int"/>
  35971. <exception name="IOException" type="java.io.IOException"/>
  35972. <doc>
  35973. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  35974. @param bytes byte array with decode long
  35975. @param start starting index
  35976. @throws java.io.IOException
  35977. @return deserialized long]]>
  35978. </doc>
  35979. </method>
  35980. <method name="readVInt" return="int"
  35981. abstract="false" native="false" synchronized="false"
  35982. static="true" final="false" visibility="public"
  35983. deprecated="not deprecated">
  35984. <param name="bytes" type="byte[]"/>
  35985. <param name="start" type="int"/>
  35986. <exception name="IOException" type="java.io.IOException"/>
  35987. <doc>
  35988. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  35989. @param bytes byte array with the encoded integer
  35990. @param start start index
  35991. @throws java.io.IOException
  35992. @return deserialized integer]]>
  35993. </doc>
  35994. </method>
  35995. <method name="readVLong" return="long"
  35996. abstract="false" native="false" synchronized="false"
  35997. static="true" final="false" visibility="public"
  35998. deprecated="not deprecated">
  35999. <param name="in" type="java.io.DataInput"/>
  36000. <exception name="IOException" type="java.io.IOException"/>
  36001. <doc>
  36002. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  36003. @param in input stream
  36004. @throws java.io.IOException
  36005. @return deserialized long]]>
  36006. </doc>
  36007. </method>
  36008. <method name="readVInt" return="int"
  36009. abstract="false" native="false" synchronized="false"
  36010. static="true" final="false" visibility="public"
  36011. deprecated="not deprecated">
  36012. <param name="in" type="java.io.DataInput"/>
  36013. <exception name="IOException" type="java.io.IOException"/>
  36014. <doc>
  36015. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  36016. @param in input stream
  36017. @throws java.io.IOException
  36018. @return deserialized integer]]>
  36019. </doc>
  36020. </method>
  36021. <method name="getVIntSize" return="int"
  36022. abstract="false" native="false" synchronized="false"
  36023. static="true" final="false" visibility="public"
  36024. deprecated="not deprecated">
  36025. <param name="i" type="long"/>
  36026. <doc>
  36027. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  36028. @return the encoded length]]>
  36029. </doc>
  36030. </method>
  36031. <method name="writeVLong"
  36032. abstract="false" native="false" synchronized="false"
  36033. static="true" final="false" visibility="public"
  36034. deprecated="not deprecated">
  36035. <param name="stream" type="java.io.DataOutput"/>
  36036. <param name="i" type="long"/>
  36037. <exception name="IOException" type="java.io.IOException"/>
  36038. <doc>
  36039. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  36040. For -112 <= i <= 127, only one byte is used with the actual value.
  36041. For other values of i, the first byte value indicates whether the
  36042. long is positive or negative, and the number of bytes that follow.
  36043. If the first byte value v is between -113 and -120, the following long
  36044. is positive, with number of bytes that follow are -(v+112).
  36045. If the first byte value v is between -121 and -128, the following long
  36046. is negative, with number of bytes that follow are -(v+120). Bytes are
  36047. stored in the high-non-zero-byte-first order.
  36048. @param stream Binary output stream
  36049. @param i Long to be serialized
  36050. @throws java.io.IOException]]>
  36051. </doc>
  36052. </method>
  36053. <method name="writeVInt"
  36054. abstract="false" native="false" synchronized="false"
  36055. static="true" final="false" visibility="public"
  36056. deprecated="not deprecated">
  36057. <param name="stream" type="java.io.DataOutput"/>
  36058. <param name="i" type="int"/>
  36059. <exception name="IOException" type="java.io.IOException"/>
  36060. <doc>
  36061. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  36062. @param stream Binary output stream
  36063. @param i int to be serialized
  36064. @throws java.io.IOException]]>
  36065. </doc>
  36066. </method>
  36067. <method name="compareBytes" return="int"
  36068. abstract="false" native="false" synchronized="false"
  36069. static="true" final="false" visibility="public"
  36070. deprecated="not deprecated">
  36071. <param name="b1" type="byte[]"/>
  36072. <param name="s1" type="int"/>
  36073. <param name="l1" type="int"/>
  36074. <param name="b2" type="byte[]"/>
  36075. <param name="s2" type="int"/>
  36076. <param name="l2" type="int"/>
  36077. <doc>
  36078. <![CDATA[Lexicographic order of binary data.]]>
  36079. </doc>
  36080. </method>
  36081. <field name="hexchars" type="char[]"
  36082. transient="false" volatile="false"
  36083. static="true" final="true" visibility="public"
  36084. deprecated="not deprecated">
  36085. </field>
  36086. <doc>
  36087. <![CDATA[Various utility functions for Hadooop record I/O runtime.
  36088. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36089. </doc>
  36090. </class>
  36091. <!-- end class org.apache.hadoop.record.Utils -->
  36092. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  36093. <class name="XmlRecordInput" extends="java.lang.Object"
  36094. abstract="false"
  36095. static="false" final="false" visibility="public"
  36096. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36097. <implements name="org.apache.hadoop.record.RecordInput"/>
  36098. <constructor name="XmlRecordInput" type="java.io.InputStream"
  36099. static="false" final="false" visibility="public"
  36100. deprecated="not deprecated">
  36101. <doc>
  36102. <![CDATA[Creates a new instance of XmlRecordInput]]>
  36103. </doc>
  36104. </constructor>
  36105. <method name="readByte" return="byte"
  36106. abstract="false" native="false" synchronized="false"
  36107. static="false" final="false" visibility="public"
  36108. deprecated="not deprecated">
  36109. <param name="tag" type="java.lang.String"/>
  36110. <exception name="IOException" type="java.io.IOException"/>
  36111. </method>
  36112. <method name="readBool" return="boolean"
  36113. abstract="false" native="false" synchronized="false"
  36114. static="false" final="false" visibility="public"
  36115. deprecated="not deprecated">
  36116. <param name="tag" type="java.lang.String"/>
  36117. <exception name="IOException" type="java.io.IOException"/>
  36118. </method>
  36119. <method name="readInt" return="int"
  36120. abstract="false" native="false" synchronized="false"
  36121. static="false" final="false" visibility="public"
  36122. deprecated="not deprecated">
  36123. <param name="tag" type="java.lang.String"/>
  36124. <exception name="IOException" type="java.io.IOException"/>
  36125. </method>
  36126. <method name="readLong" return="long"
  36127. abstract="false" native="false" synchronized="false"
  36128. static="false" final="false" visibility="public"
  36129. deprecated="not deprecated">
  36130. <param name="tag" type="java.lang.String"/>
  36131. <exception name="IOException" type="java.io.IOException"/>
  36132. </method>
  36133. <method name="readFloat" return="float"
  36134. abstract="false" native="false" synchronized="false"
  36135. static="false" final="false" visibility="public"
  36136. deprecated="not deprecated">
  36137. <param name="tag" type="java.lang.String"/>
  36138. <exception name="IOException" type="java.io.IOException"/>
  36139. </method>
  36140. <method name="readDouble" return="double"
  36141. abstract="false" native="false" synchronized="false"
  36142. static="false" final="false" visibility="public"
  36143. deprecated="not deprecated">
  36144. <param name="tag" type="java.lang.String"/>
  36145. <exception name="IOException" type="java.io.IOException"/>
  36146. </method>
  36147. <method name="readString" return="java.lang.String"
  36148. abstract="false" native="false" synchronized="false"
  36149. static="false" final="false" visibility="public"
  36150. deprecated="not deprecated">
  36151. <param name="tag" type="java.lang.String"/>
  36152. <exception name="IOException" type="java.io.IOException"/>
  36153. </method>
  36154. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  36155. abstract="false" native="false" synchronized="false"
  36156. static="false" final="false" visibility="public"
  36157. deprecated="not deprecated">
  36158. <param name="tag" type="java.lang.String"/>
  36159. <exception name="IOException" type="java.io.IOException"/>
  36160. </method>
  36161. <method name="startRecord"
  36162. abstract="false" native="false" synchronized="false"
  36163. static="false" final="false" visibility="public"
  36164. deprecated="not deprecated">
  36165. <param name="tag" type="java.lang.String"/>
  36166. <exception name="IOException" type="java.io.IOException"/>
  36167. </method>
  36168. <method name="endRecord"
  36169. abstract="false" native="false" synchronized="false"
  36170. static="false" final="false" visibility="public"
  36171. deprecated="not deprecated">
  36172. <param name="tag" type="java.lang.String"/>
  36173. <exception name="IOException" type="java.io.IOException"/>
  36174. </method>
  36175. <method name="startVector" return="org.apache.hadoop.record.Index"
  36176. abstract="false" native="false" synchronized="false"
  36177. static="false" final="false" visibility="public"
  36178. deprecated="not deprecated">
  36179. <param name="tag" type="java.lang.String"/>
  36180. <exception name="IOException" type="java.io.IOException"/>
  36181. </method>
  36182. <method name="endVector"
  36183. abstract="false" native="false" synchronized="false"
  36184. static="false" final="false" visibility="public"
  36185. deprecated="not deprecated">
  36186. <param name="tag" type="java.lang.String"/>
  36187. <exception name="IOException" type="java.io.IOException"/>
  36188. </method>
  36189. <method name="startMap" return="org.apache.hadoop.record.Index"
  36190. abstract="false" native="false" synchronized="false"
  36191. static="false" final="false" visibility="public"
  36192. deprecated="not deprecated">
  36193. <param name="tag" type="java.lang.String"/>
  36194. <exception name="IOException" type="java.io.IOException"/>
  36195. </method>
  36196. <method name="endMap"
  36197. abstract="false" native="false" synchronized="false"
  36198. static="false" final="false" visibility="public"
  36199. deprecated="not deprecated">
  36200. <param name="tag" type="java.lang.String"/>
  36201. <exception name="IOException" type="java.io.IOException"/>
  36202. </method>
  36203. <doc>
  36204. <![CDATA[XML Deserializer.
  36205. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36206. </doc>
  36207. </class>
  36208. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  36209. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  36210. <class name="XmlRecordOutput" extends="java.lang.Object"
  36211. abstract="false"
  36212. static="false" final="false" visibility="public"
  36213. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36214. <implements name="org.apache.hadoop.record.RecordOutput"/>
  36215. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  36216. static="false" final="false" visibility="public"
  36217. deprecated="not deprecated">
  36218. <doc>
  36219. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  36220. </doc>
  36221. </constructor>
  36222. <method name="writeByte"
  36223. abstract="false" native="false" synchronized="false"
  36224. static="false" final="false" visibility="public"
  36225. deprecated="not deprecated">
  36226. <param name="b" type="byte"/>
  36227. <param name="tag" type="java.lang.String"/>
  36228. <exception name="IOException" type="java.io.IOException"/>
  36229. </method>
  36230. <method name="writeBool"
  36231. abstract="false" native="false" synchronized="false"
  36232. static="false" final="false" visibility="public"
  36233. deprecated="not deprecated">
  36234. <param name="b" type="boolean"/>
  36235. <param name="tag" type="java.lang.String"/>
  36236. <exception name="IOException" type="java.io.IOException"/>
  36237. </method>
  36238. <method name="writeInt"
  36239. abstract="false" native="false" synchronized="false"
  36240. static="false" final="false" visibility="public"
  36241. deprecated="not deprecated">
  36242. <param name="i" type="int"/>
  36243. <param name="tag" type="java.lang.String"/>
  36244. <exception name="IOException" type="java.io.IOException"/>
  36245. </method>
  36246. <method name="writeLong"
  36247. abstract="false" native="false" synchronized="false"
  36248. static="false" final="false" visibility="public"
  36249. deprecated="not deprecated">
  36250. <param name="l" type="long"/>
  36251. <param name="tag" type="java.lang.String"/>
  36252. <exception name="IOException" type="java.io.IOException"/>
  36253. </method>
  36254. <method name="writeFloat"
  36255. abstract="false" native="false" synchronized="false"
  36256. static="false" final="false" visibility="public"
  36257. deprecated="not deprecated">
  36258. <param name="f" type="float"/>
  36259. <param name="tag" type="java.lang.String"/>
  36260. <exception name="IOException" type="java.io.IOException"/>
  36261. </method>
  36262. <method name="writeDouble"
  36263. abstract="false" native="false" synchronized="false"
  36264. static="false" final="false" visibility="public"
  36265. deprecated="not deprecated">
  36266. <param name="d" type="double"/>
  36267. <param name="tag" type="java.lang.String"/>
  36268. <exception name="IOException" type="java.io.IOException"/>
  36269. </method>
  36270. <method name="writeString"
  36271. abstract="false" native="false" synchronized="false"
  36272. static="false" final="false" visibility="public"
  36273. deprecated="not deprecated">
  36274. <param name="s" type="java.lang.String"/>
  36275. <param name="tag" type="java.lang.String"/>
  36276. <exception name="IOException" type="java.io.IOException"/>
  36277. </method>
  36278. <method name="writeBuffer"
  36279. abstract="false" native="false" synchronized="false"
  36280. static="false" final="false" visibility="public"
  36281. deprecated="not deprecated">
  36282. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  36283. <param name="tag" type="java.lang.String"/>
  36284. <exception name="IOException" type="java.io.IOException"/>
  36285. </method>
  36286. <method name="startRecord"
  36287. abstract="false" native="false" synchronized="false"
  36288. static="false" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. <param name="r" type="org.apache.hadoop.record.Record"/>
  36291. <param name="tag" type="java.lang.String"/>
  36292. <exception name="IOException" type="java.io.IOException"/>
  36293. </method>
  36294. <method name="endRecord"
  36295. abstract="false" native="false" synchronized="false"
  36296. static="false" final="false" visibility="public"
  36297. deprecated="not deprecated">
  36298. <param name="r" type="org.apache.hadoop.record.Record"/>
  36299. <param name="tag" type="java.lang.String"/>
  36300. <exception name="IOException" type="java.io.IOException"/>
  36301. </method>
  36302. <method name="startVector"
  36303. abstract="false" native="false" synchronized="false"
  36304. static="false" final="false" visibility="public"
  36305. deprecated="not deprecated">
  36306. <param name="v" type="java.util.ArrayList"/>
  36307. <param name="tag" type="java.lang.String"/>
  36308. <exception name="IOException" type="java.io.IOException"/>
  36309. </method>
  36310. <method name="endVector"
  36311. abstract="false" native="false" synchronized="false"
  36312. static="false" final="false" visibility="public"
  36313. deprecated="not deprecated">
  36314. <param name="v" type="java.util.ArrayList"/>
  36315. <param name="tag" type="java.lang.String"/>
  36316. <exception name="IOException" type="java.io.IOException"/>
  36317. </method>
  36318. <method name="startMap"
  36319. abstract="false" native="false" synchronized="false"
  36320. static="false" final="false" visibility="public"
  36321. deprecated="not deprecated">
  36322. <param name="v" type="java.util.TreeMap"/>
  36323. <param name="tag" type="java.lang.String"/>
  36324. <exception name="IOException" type="java.io.IOException"/>
  36325. </method>
  36326. <method name="endMap"
  36327. abstract="false" native="false" synchronized="false"
  36328. static="false" final="false" visibility="public"
  36329. deprecated="not deprecated">
  36330. <param name="v" type="java.util.TreeMap"/>
  36331. <param name="tag" type="java.lang.String"/>
  36332. <exception name="IOException" type="java.io.IOException"/>
  36333. </method>
  36334. <doc>
  36335. <![CDATA[XML Serializer.
  36336. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36337. </doc>
  36338. </class>
  36339. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  36340. <doc>
  36341. <![CDATA[<p>
  36342. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  36343. translator for simplifying serialization and deserialization of records in a
  36344. language-neutral manner.
  36345. </p>
  36346. <p>
  36347. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  36348. </p>
  36349. <h2>Introduction</h2>
  36350. Software systems of any significant complexity require mechanisms for data
  36351. interchange with the outside world. These interchanges typically involve the
  36352. marshaling and unmarshaling of logical units of data to and from data streams
  36353. (files, network connections, memory buffers etc.). Applications usually have
  36354. some code for serializing and deserializing the data types that they manipulate
  36355. embedded in them. The work of serialization has several features that make
  36356. automatic code generation for it worthwhile. Given a particular output encoding
  36357. (binary, XML, etc.), serialization of primitive types and simple compositions
  36358. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  36359. written serialization code can be susceptible to bugs especially when records
  36360. have a large number of fields or a record definition changes between software
  36361. versions. Lastly, it can be very useful for applications written in different
  36362. programming languages to be able to share and interchange data. This can be
  36363. made a lot easier by describing the data records manipulated by these
  36364. applications in a language agnostic manner and using the descriptions to derive
  36365. implementations of serialization in multiple target languages.
  36366. This document describes Hadoop Record I/O, a mechanism that is aimed
  36367. at
  36368. <ul>
  36369. <li> enabling the specification of simple serializable data types (records)
  36370. <li> enabling the generation of code in multiple target languages for
  36371. marshaling and unmarshaling such types
  36372. <li> providing target language specific support that will enable application
  36373. programmers to incorporate generated code into their applications
  36374. </ul>
  36375. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  36376. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  36377. the specification of most record types, they differ widely in what else they
  36378. focus on. The focus in Hadoop Record I/O is on data marshaling and
  36379. multi-lingual support. We take a translator-based approach to serialization.
  36380. Hadoop users have to describe their data in a simple data description
  36381. language. The Hadoop DDL translator rcc generates code that users
  36382. can invoke in order to read/write their data from/to simple stream
  36383. abstractions. Next we list explicitly some of the goals and non-goals of
  36384. Hadoop Record I/O.
  36385. <h3>Goals</h3>
  36386. <ul>
  36387. <li> Support for commonly used primitive types. Hadoop should include as
  36388. primitives commonly used builtin types from programming languages we intend to
  36389. support.
  36390. <li> Support for common data compositions (including recursive compositions).
  36391. Hadoop should support widely used composite types such as structs and
  36392. vectors.
  36393. <li> Code generation in multiple target languages. Hadoop should be capable of
  36394. generating serialization code in multiple target languages and should be
  36395. easily extensible to new target languages. The initial target languages are
  36396. C++ and Java.
  36397. <li> Support for generated target languages. Hadooop should include support
  36398. in the form of headers, libraries, packages for supported target languages
  36399. that enable easy inclusion and use of generated code in applications.
  36400. <li> Support for multiple output encodings. Candidates include
  36401. packed binary, comma-separated text, XML etc.
  36402. <li> Support for specifying record types in a backwards/forwards compatible
  36403. manner. This will probably be in the form of support for optional fields in
  36404. records. This version of the document does not include a description of the
  36405. planned mechanism, we intend to include it in the next iteration.
  36406. </ul>
  36407. <h3>Non-Goals</h3>
  36408. <ul>
  36409. <li> Serializing existing arbitrary C++ classes.
  36410. <li> Serializing complex data structures such as trees, linked lists etc.
  36411. <li> Built-in indexing schemes, compression, or check-sums.
  36412. <li> Dynamic construction of objects from an XML schema.
  36413. </ul>
  36414. The remainder of this document describes the features of Hadoop record I/O
  36415. in more detail. Section 2 describes the data types supported by the system.
  36416. Section 3 lays out the DDL syntax with some examples of simple records.
  36417. Section 4 describes the process of code generation with rcc. Section 5
  36418. describes target language mappings and support for Hadoop types. We include a
  36419. fairly complete description of C++ mappings with intent to include Java and
  36420. others in upcoming iterations of this document. The last section talks about
  36421. supported output encodings.
  36422. <h2>Data Types and Streams</h2>
  36423. This section describes the primitive and composite types supported by Hadoop.
  36424. We aim to support a set of types that can be used to simply and efficiently
  36425. express a wide range of record types in different programming languages.
  36426. <h3>Primitive Types</h3>
  36427. For the most part, the primitive types of Hadoop map directly to primitive
  36428. types in high level programming languages. Special cases are the
  36429. ustring (a Unicode string) and buffer types, which we believe
  36430. find wide use and which are usually implemented in library code and not
  36431. available as language built-ins. Hadoop also supplies these via library code
  36432. when a target language built-in is not present and there is no widely
  36433. adopted "standard" implementation. The complete list of primitive types is:
  36434. <ul>
  36435. <li> byte: An 8-bit unsigned integer.
  36436. <li> boolean: A boolean value.
  36437. <li> int: A 32-bit signed integer.
  36438. <li> long: A 64-bit signed integer.
  36439. <li> float: A single precision floating point number as described by
  36440. IEEE-754.
  36441. <li> double: A double precision floating point number as described by
  36442. IEEE-754.
  36443. <li> ustring: A string consisting of Unicode characters.
  36444. <li> buffer: An arbitrary sequence of bytes.
  36445. </ul>
  36446. <h3>Composite Types</h3>
  36447. Hadoop supports a small set of composite types that enable the description
  36448. of simple aggregate types and containers. A composite type is serialized
  36449. by sequentially serializing it constituent elements. The supported
  36450. composite types are:
  36451. <ul>
  36452. <li> record: An aggregate type like a C-struct. This is a list of
  36453. typed fields that are together considered a single unit of data. A record
  36454. is serialized by sequentially serializing its constituent fields. In addition
  36455. to serialization a record has comparison operations (equality and less-than)
  36456. implemented for it, these are defined as memberwise comparisons.
  36457. <li>vector: A sequence of entries of the same data type, primitive
  36458. or composite.
  36459. <li> map: An associative container mapping instances of a key type to
  36460. instances of a value type. The key and value types may themselves be primitive
  36461. or composite types.
  36462. </ul>
  36463. <h3>Streams</h3>
  36464. Hadoop generates code for serializing and deserializing record types to
  36465. abstract streams. For each target language Hadoop defines very simple input
  36466. and output stream interfaces. Application writers can usually develop
  36467. concrete implementations of these by putting a one method wrapper around
  36468. an existing stream implementation.
  36469. <h2>DDL Syntax and Examples</h2>
  36470. We now describe the syntax of the Hadoop data description language. This is
  36471. followed by a few examples of DDL usage.
  36472. <h3>Hadoop DDL Syntax</h3>
  36473. <pre><code>
  36474. recfile = *include module *record
  36475. include = "include" path
  36476. path = (relative-path / absolute-path)
  36477. module = "module" module-name
  36478. module-name = name *("." name)
  36479. record := "class" name "{" 1*(field) "}"
  36480. field := type name ";"
  36481. name := ALPHA (ALPHA / DIGIT / "_" )*
  36482. type := (ptype / ctype)
  36483. ptype := ("byte" / "boolean" / "int" |
  36484. "long" / "float" / "double"
  36485. "ustring" / "buffer")
  36486. ctype := (("vector" "<" type ">") /
  36487. ("map" "<" type "," type ">" ) ) / name)
  36488. </code></pre>
  36489. A DDL file describes one or more record types. It begins with zero or
  36490. more include declarations, a single mandatory module declaration
  36491. followed by zero or more class declarations. The semantics of each of
  36492. these declarations are described below:
  36493. <ul>
  36494. <li>include: An include declaration specifies a DDL file to be
  36495. referenced when generating code for types in the current DDL file. Record types
  36496. in the current compilation unit may refer to types in all included files.
  36497. File inclusion is recursive. An include does not trigger code
  36498. generation for the referenced file.
  36499. <li> module: Every Hadoop DDL file must have a single module
  36500. declaration that follows the list of includes and precedes all record
  36501. declarations. A module declaration identifies a scope within which
  36502. the names of all types in the current file are visible. Module names are
  36503. mapped to C++ namespaces, Java packages etc. in generated code.
  36504. <li> class: Records types are specified through class
  36505. declarations. A class declaration is like a Java class declaration.
  36506. It specifies a named record type and a list of fields that constitute records
  36507. of the type. Usage is illustrated in the following examples.
  36508. </ul>
  36509. <h3>Examples</h3>
  36510. <ul>
  36511. <li>A simple DDL file links.jr with just one record declaration.
  36512. <pre><code>
  36513. module links {
  36514. class Link {
  36515. ustring URL;
  36516. boolean isRelative;
  36517. ustring anchorText;
  36518. };
  36519. }
  36520. </code></pre>
  36521. <li> A DDL file outlinks.jr which includes another
  36522. <pre><code>
  36523. include "links.jr"
  36524. module outlinks {
  36525. class OutLinks {
  36526. ustring baseURL;
  36527. vector<links.Link> outLinks;
  36528. };
  36529. }
  36530. </code></pre>
  36531. </ul>
  36532. <h2>Code Generation</h2>
  36533. The Hadoop translator is written in Java. Invocation is done by executing a
  36534. wrapper shell script named named rcc. It takes a list of
  36535. record description files as a mandatory argument and an
  36536. optional language argument (the default is Java) --language or
  36537. -l. Thus a typical invocation would look like:
  36538. <pre><code>
  36539. $ rcc -l C++ <filename> ...
  36540. </code></pre>
  36541. <h2>Target Language Mappings and Support</h2>
  36542. For all target languages, the unit of code generation is a record type.
  36543. For each record type, Hadoop generates code for serialization and
  36544. deserialization, record comparison and access to record members.
  36545. <h3>C++</h3>
  36546. Support for including Hadoop generated C++ code in applications comes in the
  36547. form of a header file recordio.hh which needs to be included in source
  36548. that uses Hadoop types and a library librecordio.a which applications need
  36549. to be linked with. The header declares the Hadoop C++ namespace which defines
  36550. appropriate types for the various primitives, the basic interfaces for
  36551. records and streams and enumerates the supported serialization encodings.
  36552. Declarations of these interfaces and a description of their semantics follow:
  36553. <pre><code>
  36554. namespace hadoop {
  36555. enum RecFormat { kBinary, kXML, kCSV };
  36556. class InStream {
  36557. public:
  36558. virtual ssize_t read(void *buf, size_t n) = 0;
  36559. };
  36560. class OutStream {
  36561. public:
  36562. virtual ssize_t write(const void *buf, size_t n) = 0;
  36563. };
  36564. class IOError : public runtime_error {
  36565. public:
  36566. explicit IOError(const std::string& msg);
  36567. };
  36568. class IArchive;
  36569. class OArchive;
  36570. class RecordReader {
  36571. public:
  36572. RecordReader(InStream& in, RecFormat fmt);
  36573. virtual ~RecordReader(void);
  36574. virtual void read(Record& rec);
  36575. };
  36576. class RecordWriter {
  36577. public:
  36578. RecordWriter(OutStream& out, RecFormat fmt);
  36579. virtual ~RecordWriter(void);
  36580. virtual void write(Record& rec);
  36581. };
  36582. class Record {
  36583. public:
  36584. virtual std::string type(void) const = 0;
  36585. virtual std::string signature(void) const = 0;
  36586. protected:
  36587. virtual bool validate(void) const = 0;
  36588. virtual void
  36589. serialize(OArchive& oa, const std::string& tag) const = 0;
  36590. virtual void
  36591. deserialize(IArchive& ia, const std::string& tag) = 0;
  36592. };
  36593. }
  36594. </code></pre>
  36595. <ul>
  36596. <li> RecFormat: An enumeration of the serialization encodings supported
  36597. by this implementation of Hadoop.
  36598. <li> InStream: A simple abstraction for an input stream. This has a
  36599. single public read method that reads n bytes from the stream into
  36600. the buffer buf. Has the same semantics as a blocking read system
  36601. call. Returns the number of bytes read or -1 if an error occurs.
  36602. <li> OutStream: A simple abstraction for an output stream. This has a
  36603. single write method that writes n bytes to the stream from the
  36604. buffer buf. Has the same semantics as a blocking write system
  36605. call. Returns the number of bytes written or -1 if an error occurs.
  36606. <li> RecordReader: A RecordReader reads records one at a time from
  36607. an underlying stream in a specified record format. The reader is instantiated
  36608. with a stream and a serialization format. It has a read method that
  36609. takes an instance of a record and deserializes the record from the stream.
  36610. <li> RecordWriter: A RecordWriter writes records one at a
  36611. time to an underlying stream in a specified record format. The writer is
  36612. instantiated with a stream and a serialization format. It has a
  36613. write method that takes an instance of a record and serializes the
  36614. record to the stream.
  36615. <li> Record: The base class for all generated record types. This has two
  36616. public methods type and signature that return the typename and the
  36617. type signature of the record.
  36618. </ul>
  36619. Two files are generated for each record file (note: not for each record). If a
  36620. record file is named "name.jr", the generated files are
  36621. "name.jr.cc" and "name.jr.hh" containing serialization
  36622. implementations and record type declarations respectively.
  36623. For each record in the DDL file, the generated header file will contain a
  36624. class definition corresponding to the record type, method definitions for the
  36625. generated type will be present in the '.cc' file. The generated class will
  36626. inherit from the abstract class hadoop::Record. The DDL files
  36627. module declaration determines the namespace the record belongs to.
  36628. Each '.' delimited token in the module declaration results in the
  36629. creation of a namespace. For instance, the declaration module docs.links
  36630. results in the creation of a docs namespace and a nested
  36631. docs::links namespace. In the preceding examples, the Link class
  36632. is placed in the links namespace. The header file corresponding to
  36633. the links.jr file will contain:
  36634. <pre><code>
  36635. namespace links {
  36636. class Link : public hadoop::Record {
  36637. // ....
  36638. };
  36639. };
  36640. </code></pre>
  36641. Each field within the record will cause the generation of a private member
  36642. declaration of the appropriate type in the class declaration, and one or more
  36643. acccessor methods. The generated class will implement the serialize and
  36644. deserialize methods defined in hadoop::Record+. It will also
  36645. implement the inspection methods type and signature from
  36646. hadoop::Record. A default constructor and virtual destructor will also
  36647. be generated. Serialization code will read/write records into streams that
  36648. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  36649. For each member of a record an accessor method is generated that returns
  36650. either the member or a reference to the member. For members that are returned
  36651. by value, a setter method is also generated. This is true for primitive
  36652. data members of the types byte, int, long, boolean, float and
  36653. double. For example, for a int field called MyField the folowing
  36654. code is generated.
  36655. <pre><code>
  36656. ...
  36657. private:
  36658. int32_t mMyField;
  36659. ...
  36660. public:
  36661. int32_t getMyField(void) const {
  36662. return mMyField;
  36663. };
  36664. void setMyField(int32_t m) {
  36665. mMyField = m;
  36666. };
  36667. ...
  36668. </code></pre>
  36669. For a ustring or buffer or composite field. The generated code
  36670. only contains accessors that return a reference to the field. A const
  36671. and a non-const accessor are generated. For example:
  36672. <pre><code>
  36673. ...
  36674. private:
  36675. std::string mMyBuf;
  36676. ...
  36677. public:
  36678. std::string& getMyBuf() {
  36679. return mMyBuf;
  36680. };
  36681. const std::string& getMyBuf() const {
  36682. return mMyBuf;
  36683. };
  36684. ...
  36685. </code></pre>
  36686. <h4>Examples</h4>
  36687. Suppose the inclrec.jr file contains:
  36688. <pre><code>
  36689. module inclrec {
  36690. class RI {
  36691. int I32;
  36692. double D;
  36693. ustring S;
  36694. };
  36695. }
  36696. </code></pre>
  36697. and the testrec.jr file contains:
  36698. <pre><code>
  36699. include "inclrec.jr"
  36700. module testrec {
  36701. class R {
  36702. vector<float> VF;
  36703. RI Rec;
  36704. buffer Buf;
  36705. };
  36706. }
  36707. </code></pre>
  36708. Then the invocation of rcc such as:
  36709. <pre><code>
  36710. $ rcc -l c++ inclrec.jr testrec.jr
  36711. </code></pre>
  36712. will result in generation of four files:
  36713. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  36714. The inclrec.jr.hh will contain:
  36715. <pre><code>
  36716. #ifndef _INCLREC_JR_HH_
  36717. #define _INCLREC_JR_HH_
  36718. #include "recordio.hh"
  36719. namespace inclrec {
  36720. class RI : public hadoop::Record {
  36721. private:
  36722. int32_t I32;
  36723. double D;
  36724. std::string S;
  36725. public:
  36726. RI(void);
  36727. virtual ~RI(void);
  36728. virtual bool operator==(const RI& peer) const;
  36729. virtual bool operator<(const RI& peer) const;
  36730. virtual int32_t getI32(void) const { return I32; }
  36731. virtual void setI32(int32_t v) { I32 = v; }
  36732. virtual double getD(void) const { return D; }
  36733. virtual void setD(double v) { D = v; }
  36734. virtual std::string& getS(void) const { return S; }
  36735. virtual const std::string& getS(void) const { return S; }
  36736. virtual std::string type(void) const;
  36737. virtual std::string signature(void) const;
  36738. protected:
  36739. virtual void serialize(hadoop::OArchive& a) const;
  36740. virtual void deserialize(hadoop::IArchive& a);
  36741. };
  36742. } // end namespace inclrec
  36743. #endif /* _INCLREC_JR_HH_ */
  36744. </code></pre>
  36745. The testrec.jr.hh file will contain:
  36746. <pre><code>
  36747. #ifndef _TESTREC_JR_HH_
  36748. #define _TESTREC_JR_HH_
  36749. #include "inclrec.jr.hh"
  36750. namespace testrec {
  36751. class R : public hadoop::Record {
  36752. private:
  36753. std::vector<float> VF;
  36754. inclrec::RI Rec;
  36755. std::string Buf;
  36756. public:
  36757. R(void);
  36758. virtual ~R(void);
  36759. virtual bool operator==(const R& peer) const;
  36760. virtual bool operator<(const R& peer) const;
  36761. virtual std::vector<float>& getVF(void) const;
  36762. virtual const std::vector<float>& getVF(void) const;
  36763. virtual std::string& getBuf(void) const ;
  36764. virtual const std::string& getBuf(void) const;
  36765. virtual inclrec::RI& getRec(void) const;
  36766. virtual const inclrec::RI& getRec(void) const;
  36767. virtual bool serialize(hadoop::OutArchive& a) const;
  36768. virtual bool deserialize(hadoop::InArchive& a);
  36769. virtual std::string type(void) const;
  36770. virtual std::string signature(void) const;
  36771. };
  36772. }; // end namespace testrec
  36773. #endif /* _TESTREC_JR_HH_ */
  36774. </code></pre>
  36775. <h3>Java</h3>
  36776. Code generation for Java is similar to that for C++. A Java class is generated
  36777. for each record type with private members corresponding to the fields. Getters
  36778. and setters for fields are also generated. Some differences arise in the
  36779. way comparison is expressed and in the mapping of modules to packages and
  36780. classes to files. For equality testing, an equals method is generated
  36781. for each record type. As per Java requirements a hashCode method is also
  36782. generated. For comparison a compareTo method is generated for each
  36783. record type. This has the semantics as defined by the Java Comparable
  36784. interface, that is, the method returns a negative integer, zero, or a positive
  36785. integer as the invoked object is less than, equal to, or greater than the
  36786. comparison parameter.
  36787. A .java file is generated per record type as opposed to per DDL
  36788. file as in C++. The module declaration translates to a Java
  36789. package declaration. The module name maps to an identical Java package
  36790. name. In addition to this mapping, the DDL compiler creates the appropriate
  36791. directory hierarchy for the package and places the generated .java
  36792. files in the correct directories.
  36793. <h2>Mapping Summary</h2>
  36794. <pre><code>
  36795. DDL Type C++ Type Java Type
  36796. boolean bool boolean
  36797. byte int8_t byte
  36798. int int32_t int
  36799. long int64_t long
  36800. float float float
  36801. double double double
  36802. ustring std::string java.lang.String
  36803. buffer std::string org.apache.hadoop.record.Buffer
  36804. class type class type class type
  36805. vector<type> std::vector<type> java.util.ArrayList<type>
  36806. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  36807. </code></pre>
  36808. <h2>Data encodings</h2>
  36809. This section describes the format of the data encodings supported by Hadoop.
  36810. Currently, three data encodings are supported, namely binary, CSV and XML.
  36811. <h3>Binary Serialization Format</h3>
  36812. The binary data encoding format is fairly dense. Serialization of composite
  36813. types is simply defined as a concatenation of serializations of the constituent
  36814. elements (lengths are included in vectors and maps).
  36815. Composite types are serialized as follows:
  36816. <ul>
  36817. <li> class: Sequence of serialized members.
  36818. <li> vector: The number of elements serialized as an int. Followed by a
  36819. sequence of serialized elements.
  36820. <li> map: The number of key value pairs serialized as an int. Followed
  36821. by a sequence of serialized (key,value) pairs.
  36822. </ul>
  36823. Serialization of primitives is more interesting, with a zero compression
  36824. optimization for integral types and normalization to UTF-8 for strings.
  36825. Primitive types are serialized as follows:
  36826. <ul>
  36827. <li> byte: Represented by 1 byte, as is.
  36828. <li> boolean: Represented by 1-byte (0 or 1)
  36829. <li> int/long: Integers and longs are serialized zero compressed.
  36830. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  36831. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  36832. the number of trailing bytes, N, as the negative number (-120-N). For example,
  36833. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  36834. This doesn't help much for 4-byte integers but does a reasonably good job with
  36835. longs without bit twiddling.
  36836. <li> float/double: Serialized in IEEE 754 single and double precision
  36837. format in network byte order. This is the format used by Java.
  36838. <li> ustring: Serialized as 4-byte zero compressed length followed by
  36839. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  36840. language representation.
  36841. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  36842. raw bytes in the buffer.
  36843. </ul>
  36844. <h3>CSV Serialization Format</h3>
  36845. The CSV serialization format has a lot more structure than the "standard"
  36846. Excel CSV format, but we believe the additional structure is useful because
  36847. <ul>
  36848. <li> it makes parsing a lot easier without detracting too much from legibility
  36849. <li> the delimiters around composites make it obvious when one is reading a
  36850. sequence of Hadoop records
  36851. </ul>
  36852. Serialization formats for the various types are detailed in the grammar that
  36853. follows. The notable feature of the formats is the use of delimiters for
  36854. indicating the certain field types.
  36855. <ul>
  36856. <li> A string field begins with a single quote (').
  36857. <li> A buffer field begins with a sharp (#).
  36858. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  36859. ends with '}'.
  36860. </ul>
  36861. The CSV format can be described by the following grammar:
  36862. <pre><code>
  36863. record = primitive / struct / vector / map
  36864. primitive = boolean / int / long / float / double / ustring / buffer
  36865. boolean = "T" / "F"
  36866. int = ["-"] 1*DIGIT
  36867. long = ";" ["-"] 1*DIGIT
  36868. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  36869. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  36870. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  36871. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  36872. struct = "s{" record *("," record) "}"
  36873. vector = "v{" [record *("," record)] "}"
  36874. map = "m{" [*(record "," record)] "}"
  36875. </code></pre>
  36876. <h3>XML Serialization Format</h3>
  36877. The XML serialization format is the same used by Apache XML-RPC
  36878. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  36879. XML-RPC format and adds some additional data types. All record I/O types are
  36880. not directly expressible in this format, and access to a DDL is required in
  36881. order to convert these to valid types. All types primitive or composite are
  36882. represented by &lt;value&gt; elements. The particular XML-RPC type is
  36883. indicated by a nested element in the &lt;value&gt; element. The encoding for
  36884. records is always UTF-8. Primitive types are serialized as follows:
  36885. <ul>
  36886. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  36887. integers represented in US-ASCII
  36888. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  36889. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  36890. signed integers represented in US-ASCII.
  36891. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  36892. represented in US-ASCII.
  36893. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  36894. floating point numbers represented in US-ASCII.
  36895. <li> double: XML tag &lt;double&gt;. Values: Double precision
  36896. floating point numbers represented in US-ASCII.
  36897. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  36898. represented as UTF-8. XML does not permit all Unicode characters in literal
  36899. data. In particular, NULLs and control chars are not allowed. Additionally,
  36900. XML processors are required to replace carriage returns with line feeds and to
  36901. replace CRLF sequences with line feeds. Programming languages that we work
  36902. with do not impose these restrictions on string types. To work around these
  36903. restrictions, disallowed characters and CRs are percent escaped in strings.
  36904. The '%' character is also percent escaped.
  36905. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  36906. data. Represented as hexBinary, each byte is replaced by its 2-byte
  36907. hexadecimal representation.
  36908. </ul>
  36909. Composite types are serialized as follows:
  36910. <ul>
  36911. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  36912. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  36913. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  36914. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  36915. by a &lt;value&gt; element.
  36916. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  36917. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  36918. &lt;value&gt; elements each of which represents an element of the vector.
  36919. <li> map: XML tag &lt;array&gt;. Same as vector.
  36920. </ul>
  36921. For example:
  36922. <pre><code>
  36923. class {
  36924. int MY_INT; // value 5
  36925. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  36926. buffer MY_BUF; // value '\00\n\tabc%'
  36927. }
  36928. </code></pre>
  36929. is serialized as
  36930. <pre><code class="XML">
  36931. &lt;value&gt;
  36932. &lt;struct&gt;
  36933. &lt;member&gt;
  36934. &lt;name&gt;MY_INT&lt;/name&gt;
  36935. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  36936. &lt;/member&gt;
  36937. &lt;member&gt;
  36938. &lt;name&gt;MY_VEC&lt;/name&gt;
  36939. &lt;value&gt;
  36940. &lt;array&gt;
  36941. &lt;data&gt;
  36942. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  36943. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  36944. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  36945. &lt;/data&gt;
  36946. &lt;/array&gt;
  36947. &lt;/value&gt;
  36948. &lt;/member&gt;
  36949. &lt;member&gt;
  36950. &lt;name&gt;MY_BUF&lt;/name&gt;
  36951. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  36952. &lt;/member&gt;
  36953. &lt;/struct&gt;
  36954. &lt;/value&gt;
  36955. </code></pre>]]>
  36956. </doc>
  36957. </package>
  36958. <package name="org.apache.hadoop.record.compiler">
  36959. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  36960. <class name="CodeBuffer" extends="java.lang.Object"
  36961. abstract="false"
  36962. static="false" final="false" visibility="public"
  36963. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36964. <method name="toString" return="java.lang.String"
  36965. abstract="false" native="false" synchronized="false"
  36966. static="false" final="false" visibility="public"
  36967. deprecated="not deprecated">
  36968. </method>
  36969. <doc>
  36970. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  36971. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36972. </doc>
  36973. </class>
  36974. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  36975. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  36976. <class name="Consts" extends="java.lang.Object"
  36977. abstract="false"
  36978. static="false" final="false" visibility="public"
  36979. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36980. <field name="RIO_PREFIX" type="java.lang.String"
  36981. transient="false" volatile="false"
  36982. static="true" final="true" visibility="public"
  36983. deprecated="not deprecated">
  36984. </field>
  36985. <field name="RTI_VAR" type="java.lang.String"
  36986. transient="false" volatile="false"
  36987. static="true" final="true" visibility="public"
  36988. deprecated="not deprecated">
  36989. </field>
  36990. <field name="RTI_FILTER" type="java.lang.String"
  36991. transient="false" volatile="false"
  36992. static="true" final="true" visibility="public"
  36993. deprecated="not deprecated">
  36994. </field>
  36995. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  36996. transient="false" volatile="false"
  36997. static="true" final="true" visibility="public"
  36998. deprecated="not deprecated">
  36999. </field>
  37000. <field name="RECORD_OUTPUT" type="java.lang.String"
  37001. transient="false" volatile="false"
  37002. static="true" final="true" visibility="public"
  37003. deprecated="not deprecated">
  37004. </field>
  37005. <field name="RECORD_INPUT" type="java.lang.String"
  37006. transient="false" volatile="false"
  37007. static="true" final="true" visibility="public"
  37008. deprecated="not deprecated">
  37009. </field>
  37010. <field name="TAG" type="java.lang.String"
  37011. transient="false" volatile="false"
  37012. static="true" final="true" visibility="public"
  37013. deprecated="not deprecated">
  37014. </field>
  37015. <doc>
  37016. <![CDATA[const definitions for Record I/O compiler
  37017. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37018. </doc>
  37019. </class>
  37020. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  37021. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  37022. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  37023. abstract="false"
  37024. static="false" final="false" visibility="public"
  37025. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37026. <constructor name="JBoolean"
  37027. static="false" final="false" visibility="public"
  37028. deprecated="not deprecated">
  37029. <doc>
  37030. <![CDATA[Creates a new instance of JBoolean]]>
  37031. </doc>
  37032. </constructor>
  37033. <doc>
  37034. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37035. </doc>
  37036. </class>
  37037. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  37038. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  37039. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  37040. abstract="false"
  37041. static="false" final="false" visibility="public"
  37042. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37043. <constructor name="JBuffer"
  37044. static="false" final="false" visibility="public"
  37045. deprecated="not deprecated">
  37046. <doc>
  37047. <![CDATA[Creates a new instance of JBuffer]]>
  37048. </doc>
  37049. </constructor>
  37050. <doc>
  37051. <![CDATA[Code generator for "buffer" type.
  37052. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37053. </doc>
  37054. </class>
  37055. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  37056. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  37057. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  37058. abstract="false"
  37059. static="false" final="false" visibility="public"
  37060. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37061. <constructor name="JByte"
  37062. static="false" final="false" visibility="public"
  37063. deprecated="not deprecated">
  37064. </constructor>
  37065. <doc>
  37066. <![CDATA[Code generator for "byte" type.
  37067. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37068. </doc>
  37069. </class>
  37070. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  37071. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  37072. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  37073. abstract="false"
  37074. static="false" final="false" visibility="public"
  37075. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37076. <constructor name="JDouble"
  37077. static="false" final="false" visibility="public"
  37078. deprecated="not deprecated">
  37079. <doc>
  37080. <![CDATA[Creates a new instance of JDouble]]>
  37081. </doc>
  37082. </constructor>
  37083. <doc>
  37084. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37085. </doc>
  37086. </class>
  37087. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  37088. <!-- start class org.apache.hadoop.record.compiler.JField -->
  37089. <class name="JField" extends="java.lang.Object"
  37090. abstract="false"
  37091. static="false" final="false" visibility="public"
  37092. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37093. <constructor name="JField" type="java.lang.String, T"
  37094. static="false" final="false" visibility="public"
  37095. deprecated="not deprecated">
  37096. <doc>
  37097. <![CDATA[Creates a new instance of JField]]>
  37098. </doc>
  37099. </constructor>
  37100. <doc>
  37101. <![CDATA[A thin wrappper around record field.
  37102. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37103. </doc>
  37104. </class>
  37105. <!-- end class org.apache.hadoop.record.compiler.JField -->
  37106. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  37107. <class name="JFile" extends="java.lang.Object"
  37108. abstract="false"
  37109. static="false" final="false" visibility="public"
  37110. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37111. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  37112. static="false" final="false" visibility="public"
  37113. deprecated="not deprecated">
  37114. <doc>
  37115. <![CDATA[Creates a new instance of JFile
  37116. @param name possibly full pathname to the file
  37117. @param inclFiles included files (as JFile)
  37118. @param recList List of records defined within this file]]>
  37119. </doc>
  37120. </constructor>
  37121. <method name="genCode" return="int"
  37122. abstract="false" native="false" synchronized="false"
  37123. static="false" final="false" visibility="public"
  37124. deprecated="not deprecated">
  37125. <param name="language" type="java.lang.String"/>
  37126. <param name="destDir" type="java.lang.String"/>
  37127. <param name="options" type="java.util.ArrayList"/>
  37128. <exception name="IOException" type="java.io.IOException"/>
  37129. <doc>
  37130. <![CDATA[Generate record code in given language. Language should be all
  37131. lowercase.]]>
  37132. </doc>
  37133. </method>
  37134. <doc>
  37135. <![CDATA[Container for the Hadoop Record DDL.
  37136. The main components of the file are filename, list of included files,
  37137. and records defined in that file.
  37138. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37139. </doc>
  37140. </class>
  37141. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  37142. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  37143. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  37144. abstract="false"
  37145. static="false" final="false" visibility="public"
  37146. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37147. <constructor name="JFloat"
  37148. static="false" final="false" visibility="public"
  37149. deprecated="not deprecated">
  37150. <doc>
  37151. <![CDATA[Creates a new instance of JFloat]]>
  37152. </doc>
  37153. </constructor>
  37154. <doc>
  37155. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37156. </doc>
  37157. </class>
  37158. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  37159. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  37160. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  37161. abstract="false"
  37162. static="false" final="false" visibility="public"
  37163. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37164. <constructor name="JInt"
  37165. static="false" final="false" visibility="public"
  37166. deprecated="not deprecated">
  37167. <doc>
  37168. <![CDATA[Creates a new instance of JInt]]>
  37169. </doc>
  37170. </constructor>
  37171. <doc>
  37172. <![CDATA[Code generator for "int" type
  37173. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37174. </doc>
  37175. </class>
  37176. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  37177. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  37178. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  37179. abstract="false"
  37180. static="false" final="false" visibility="public"
  37181. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37182. <constructor name="JLong"
  37183. static="false" final="false" visibility="public"
  37184. deprecated="not deprecated">
  37185. <doc>
  37186. <![CDATA[Creates a new instance of JLong]]>
  37187. </doc>
  37188. </constructor>
  37189. <doc>
  37190. <![CDATA[Code generator for "long" type
  37191. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37192. </doc>
  37193. </class>
  37194. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  37195. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  37196. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  37197. abstract="false"
  37198. static="false" final="false" visibility="public"
  37199. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37200. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  37201. static="false" final="false" visibility="public"
  37202. deprecated="not deprecated">
  37203. <doc>
  37204. <![CDATA[Creates a new instance of JMap]]>
  37205. </doc>
  37206. </constructor>
  37207. <doc>
  37208. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37209. </doc>
  37210. </class>
  37211. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  37212. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  37213. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  37214. abstract="false"
  37215. static="false" final="false" visibility="public"
  37216. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37217. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  37218. static="false" final="false" visibility="public"
  37219. deprecated="not deprecated">
  37220. <doc>
  37221. <![CDATA[Creates a new instance of JRecord]]>
  37222. </doc>
  37223. </constructor>
  37224. <doc>
  37225. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37226. </doc>
  37227. </class>
  37228. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  37229. <!-- start class org.apache.hadoop.record.compiler.JString -->
  37230. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  37231. abstract="false"
  37232. static="false" final="false" visibility="public"
  37233. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37234. <constructor name="JString"
  37235. static="false" final="false" visibility="public"
  37236. deprecated="not deprecated">
  37237. <doc>
  37238. <![CDATA[Creates a new instance of JString]]>
  37239. </doc>
  37240. </constructor>
  37241. <doc>
  37242. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37243. </doc>
  37244. </class>
  37245. <!-- end class org.apache.hadoop.record.compiler.JString -->
  37246. <!-- start class org.apache.hadoop.record.compiler.JType -->
  37247. <class name="JType" extends="java.lang.Object"
  37248. abstract="true"
  37249. static="false" final="false" visibility="public"
  37250. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37251. <constructor name="JType"
  37252. static="false" final="false" visibility="public"
  37253. deprecated="not deprecated">
  37254. </constructor>
  37255. <doc>
  37256. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  37257. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37258. </doc>
  37259. </class>
  37260. <!-- end class org.apache.hadoop.record.compiler.JType -->
  37261. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  37262. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  37263. abstract="false"
  37264. static="false" final="false" visibility="public"
  37265. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37266. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  37267. static="false" final="false" visibility="public"
  37268. deprecated="not deprecated">
  37269. <doc>
  37270. <![CDATA[Creates a new instance of JVector]]>
  37271. </doc>
  37272. </constructor>
  37273. <doc>
  37274. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37275. </doc>
  37276. </class>
  37277. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  37278. <doc>
  37279. <![CDATA[<p>
  37280. (DEPRECATED) This package contains classes needed for code generation
  37281. from the hadoop record compiler. CppGenerator and JavaGenerator
  37282. are the main entry points from the parser. There are classes
  37283. corrsponding to every primitive type and compound type
  37284. included in Hadoop record I/O syntax.
  37285. </p>
  37286. <p>
  37287. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  37288. </p>]]>
  37289. </doc>
  37290. </package>
  37291. <package name="org.apache.hadoop.record.compiler.ant">
  37292. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  37293. <class name="RccTask" extends="org.apache.tools.ant.Task"
  37294. abstract="false"
  37295. static="false" final="false" visibility="public"
  37296. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37297. <constructor name="RccTask"
  37298. static="false" final="false" visibility="public"
  37299. deprecated="not deprecated">
  37300. <doc>
  37301. <![CDATA[Creates a new instance of RccTask]]>
  37302. </doc>
  37303. </constructor>
  37304. <method name="setLanguage"
  37305. abstract="false" native="false" synchronized="false"
  37306. static="false" final="false" visibility="public"
  37307. deprecated="not deprecated">
  37308. <param name="language" type="java.lang.String"/>
  37309. <doc>
  37310. <![CDATA[Sets the output language option
  37311. @param language "java"/"c++"]]>
  37312. </doc>
  37313. </method>
  37314. <method name="setFile"
  37315. abstract="false" native="false" synchronized="false"
  37316. static="false" final="false" visibility="public"
  37317. deprecated="not deprecated">
  37318. <param name="file" type="java.io.File"/>
  37319. <doc>
  37320. <![CDATA[Sets the record definition file attribute
  37321. @param file record definition file]]>
  37322. </doc>
  37323. </method>
  37324. <method name="setFailonerror"
  37325. abstract="false" native="false" synchronized="false"
  37326. static="false" final="false" visibility="public"
  37327. deprecated="not deprecated">
  37328. <param name="flag" type="boolean"/>
  37329. <doc>
  37330. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  37331. @param flag true will throw build exception in case of failure (default)]]>
  37332. </doc>
  37333. </method>
  37334. <method name="setDestdir"
  37335. abstract="false" native="false" synchronized="false"
  37336. static="false" final="false" visibility="public"
  37337. deprecated="not deprecated">
  37338. <param name="dir" type="java.io.File"/>
  37339. <doc>
  37340. <![CDATA[Sets directory where output files will be generated
  37341. @param dir output directory]]>
  37342. </doc>
  37343. </method>
  37344. <method name="addFileset"
  37345. abstract="false" native="false" synchronized="false"
  37346. static="false" final="false" visibility="public"
  37347. deprecated="not deprecated">
  37348. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  37349. <doc>
  37350. <![CDATA[Adds a fileset that can consist of one or more files
  37351. @param set Set of record definition files]]>
  37352. </doc>
  37353. </method>
  37354. <method name="execute"
  37355. abstract="false" native="false" synchronized="false"
  37356. static="false" final="false" visibility="public"
  37357. deprecated="not deprecated">
  37358. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  37359. <doc>
  37360. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  37361. </doc>
  37362. </method>
  37363. <doc>
  37364. <![CDATA[Hadoop record compiler ant Task
  37365. <p> This task takes the given record definition files and compiles them into
  37366. java or c++
  37367. files. It is then up to the user to compile the generated files.
  37368. <p> The task requires the <code>file</code> or the nested fileset element to be
  37369. specified. Optional attributes are <code>language</code> (set the output
  37370. language, default is "java"),
  37371. <code>destdir</code> (name of the destination directory for generated java/c++
  37372. code, default is ".") and <code>failonerror</code> (specifies error handling
  37373. behavior. default is true).
  37374. <p><h4>Usage</h4>
  37375. <pre>
  37376. &lt;recordcc
  37377. destdir="${basedir}/gensrc"
  37378. language="java"&gt;
  37379. &lt;fileset include="**\/*.jr" /&gt;
  37380. &lt;/recordcc&gt;
  37381. </pre>
  37382. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37383. </doc>
  37384. </class>
  37385. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  37386. </package>
  37387. <package name="org.apache.hadoop.record.compiler.generated">
  37388. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  37389. <class name="ParseException" extends="java.lang.Exception"
  37390. abstract="false"
  37391. static="false" final="false" visibility="public"
  37392. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37393. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  37394. static="false" final="false" visibility="public"
  37395. deprecated="not deprecated">
  37396. <doc>
  37397. <![CDATA[This constructor is used by the method "generateParseException"
  37398. in the generated parser. Calling this constructor generates
  37399. a new object of this type with the fields "currentToken",
  37400. "expectedTokenSequences", and "tokenImage" set. The boolean
  37401. flag "specialConstructor" is also set to true to indicate that
  37402. this constructor was used to create this object.
  37403. This constructor calls its super class with the empty string
  37404. to force the "toString" method of parent class "Throwable" to
  37405. print the error message in the form:
  37406. ParseException: <result of getMessage>]]>
  37407. </doc>
  37408. </constructor>
  37409. <constructor name="ParseException"
  37410. static="false" final="false" visibility="public"
  37411. deprecated="not deprecated">
  37412. <doc>
  37413. <![CDATA[The following constructors are for use by you for whatever
  37414. purpose you can think of. Constructing the exception in this
  37415. manner makes the exception behave in the normal way - i.e., as
  37416. documented in the class "Throwable". The fields "errorToken",
  37417. "expectedTokenSequences", and "tokenImage" do not contain
  37418. relevant information. The JavaCC generated code does not use
  37419. these constructors.]]>
  37420. </doc>
  37421. </constructor>
  37422. <constructor name="ParseException" type="java.lang.String"
  37423. static="false" final="false" visibility="public"
  37424. deprecated="not deprecated">
  37425. </constructor>
  37426. <method name="getMessage" return="java.lang.String"
  37427. abstract="false" native="false" synchronized="false"
  37428. static="false" final="false" visibility="public"
  37429. deprecated="not deprecated">
  37430. <doc>
  37431. <![CDATA[This method has the standard behavior when this object has been
  37432. created using the standard constructors. Otherwise, it uses
  37433. "currentToken" and "expectedTokenSequences" to generate a parse
  37434. error message and returns it. If this object has been created
  37435. due to a parse error, and you do not catch it (it gets thrown
  37436. from the parser), then this method is called during the printing
  37437. of the final stack trace, and hence the correct error message
  37438. gets displayed.]]>
  37439. </doc>
  37440. </method>
  37441. <method name="add_escapes" return="java.lang.String"
  37442. abstract="false" native="false" synchronized="false"
  37443. static="false" final="false" visibility="protected"
  37444. deprecated="not deprecated">
  37445. <param name="str" type="java.lang.String"/>
  37446. <doc>
  37447. <![CDATA[Used to convert raw characters to their escaped version
  37448. when these raw version cannot be used as part of an ASCII
  37449. string literal.]]>
  37450. </doc>
  37451. </method>
  37452. <field name="specialConstructor" type="boolean"
  37453. transient="false" volatile="false"
  37454. static="false" final="false" visibility="protected"
  37455. deprecated="not deprecated">
  37456. <doc>
  37457. <![CDATA[This variable determines which constructor was used to create
  37458. this object and thereby affects the semantics of the
  37459. "getMessage" method (see below).]]>
  37460. </doc>
  37461. </field>
  37462. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  37463. transient="false" volatile="false"
  37464. static="false" final="false" visibility="public"
  37465. deprecated="not deprecated">
  37466. <doc>
  37467. <![CDATA[This is the last token that has been consumed successfully. If
  37468. this object has been created due to a parse error, the token
  37469. followng this token will (therefore) be the first error token.]]>
  37470. </doc>
  37471. </field>
  37472. <field name="expectedTokenSequences" type="int[][]"
  37473. transient="false" volatile="false"
  37474. static="false" final="false" visibility="public"
  37475. deprecated="not deprecated">
  37476. <doc>
  37477. <![CDATA[Each entry in this array is an array of integers. Each array
  37478. of integers represents a sequence of tokens (by their ordinal
  37479. values) that is expected at this point of the parse.]]>
  37480. </doc>
  37481. </field>
  37482. <field name="tokenImage" type="java.lang.String[]"
  37483. transient="false" volatile="false"
  37484. static="false" final="false" visibility="public"
  37485. deprecated="not deprecated">
  37486. <doc>
  37487. <![CDATA[This is a reference to the "tokenImage" array of the generated
  37488. parser within which the parse error occurred. This array is
  37489. defined in the generated ...Constants interface.]]>
  37490. </doc>
  37491. </field>
  37492. <field name="eol" type="java.lang.String"
  37493. transient="false" volatile="false"
  37494. static="false" final="false" visibility="protected"
  37495. deprecated="not deprecated">
  37496. <doc>
  37497. <![CDATA[The end of line string for this machine.]]>
  37498. </doc>
  37499. </field>
  37500. <doc>
  37501. <![CDATA[This exception is thrown when parse errors are encountered.
  37502. You can explicitly create objects of this exception type by
  37503. calling the method generateParseException in the generated
  37504. parser.
  37505. You can modify this class to customize your error reporting
  37506. mechanisms so long as you retain the public fields.
  37507. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37508. </doc>
  37509. </class>
  37510. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  37511. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  37512. <class name="Rcc" extends="java.lang.Object"
  37513. abstract="false"
  37514. static="false" final="false" visibility="public"
  37515. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37516. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  37517. <constructor name="Rcc" type="java.io.InputStream"
  37518. static="false" final="false" visibility="public"
  37519. deprecated="not deprecated">
  37520. </constructor>
  37521. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  37522. static="false" final="false" visibility="public"
  37523. deprecated="not deprecated">
  37524. </constructor>
  37525. <constructor name="Rcc" type="java.io.Reader"
  37526. static="false" final="false" visibility="public"
  37527. deprecated="not deprecated">
  37528. </constructor>
  37529. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  37530. static="false" final="false" visibility="public"
  37531. deprecated="not deprecated">
  37532. </constructor>
  37533. <method name="main"
  37534. abstract="false" native="false" synchronized="false"
  37535. static="true" final="false" visibility="public"
  37536. deprecated="not deprecated">
  37537. <param name="args" type="java.lang.String[]"/>
  37538. </method>
  37539. <method name="usage"
  37540. abstract="false" native="false" synchronized="false"
  37541. static="true" final="false" visibility="public"
  37542. deprecated="not deprecated">
  37543. </method>
  37544. <method name="driver" return="int"
  37545. abstract="false" native="false" synchronized="false"
  37546. static="true" final="false" visibility="public"
  37547. deprecated="not deprecated">
  37548. <param name="args" type="java.lang.String[]"/>
  37549. </method>
  37550. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  37551. abstract="false" native="false" synchronized="false"
  37552. static="false" final="true" visibility="public"
  37553. deprecated="not deprecated">
  37554. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37555. </method>
  37556. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  37557. abstract="false" native="false" synchronized="false"
  37558. static="false" final="true" visibility="public"
  37559. deprecated="not deprecated">
  37560. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37561. </method>
  37562. <method name="Module" return="java.util.ArrayList"
  37563. abstract="false" native="false" synchronized="false"
  37564. static="false" final="true" visibility="public"
  37565. deprecated="not deprecated">
  37566. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37567. </method>
  37568. <method name="ModuleName" return="java.lang.String"
  37569. abstract="false" native="false" synchronized="false"
  37570. static="false" final="true" visibility="public"
  37571. deprecated="not deprecated">
  37572. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37573. </method>
  37574. <method name="RecordList" return="java.util.ArrayList"
  37575. abstract="false" native="false" synchronized="false"
  37576. static="false" final="true" visibility="public"
  37577. deprecated="not deprecated">
  37578. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37579. </method>
  37580. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  37581. abstract="false" native="false" synchronized="false"
  37582. static="false" final="true" visibility="public"
  37583. deprecated="not deprecated">
  37584. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37585. </method>
  37586. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  37587. abstract="false" native="false" synchronized="false"
  37588. static="false" final="true" visibility="public"
  37589. deprecated="not deprecated">
  37590. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37591. </method>
  37592. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  37593. abstract="false" native="false" synchronized="false"
  37594. static="false" final="true" visibility="public"
  37595. deprecated="not deprecated">
  37596. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37597. </method>
  37598. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  37599. abstract="false" native="false" synchronized="false"
  37600. static="false" final="true" visibility="public"
  37601. deprecated="not deprecated">
  37602. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37603. </method>
  37604. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  37605. abstract="false" native="false" synchronized="false"
  37606. static="false" final="true" visibility="public"
  37607. deprecated="not deprecated">
  37608. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  37609. </method>
  37610. <method name="ReInit"
  37611. abstract="false" native="false" synchronized="false"
  37612. static="false" final="false" visibility="public"
  37613. deprecated="not deprecated">
  37614. <param name="stream" type="java.io.InputStream"/>
  37615. </method>
  37616. <method name="ReInit"
  37617. abstract="false" native="false" synchronized="false"
  37618. static="false" final="false" visibility="public"
  37619. deprecated="not deprecated">
  37620. <param name="stream" type="java.io.InputStream"/>
  37621. <param name="encoding" type="java.lang.String"/>
  37622. </method>
  37623. <method name="ReInit"
  37624. abstract="false" native="false" synchronized="false"
  37625. static="false" final="false" visibility="public"
  37626. deprecated="not deprecated">
  37627. <param name="stream" type="java.io.Reader"/>
  37628. </method>
  37629. <method name="ReInit"
  37630. abstract="false" native="false" synchronized="false"
  37631. static="false" final="false" visibility="public"
  37632. deprecated="not deprecated">
  37633. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  37634. </method>
  37635. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  37636. abstract="false" native="false" synchronized="false"
  37637. static="false" final="true" visibility="public"
  37638. deprecated="not deprecated">
  37639. </method>
  37640. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  37641. abstract="false" native="false" synchronized="false"
  37642. static="false" final="true" visibility="public"
  37643. deprecated="not deprecated">
  37644. <param name="index" type="int"/>
  37645. </method>
  37646. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  37647. abstract="false" native="false" synchronized="false"
  37648. static="false" final="false" visibility="public"
  37649. deprecated="not deprecated">
  37650. </method>
  37651. <method name="enable_tracing"
  37652. abstract="false" native="false" synchronized="false"
  37653. static="false" final="true" visibility="public"
  37654. deprecated="not deprecated">
  37655. </method>
  37656. <method name="disable_tracing"
  37657. abstract="false" native="false" synchronized="false"
  37658. static="false" final="true" visibility="public"
  37659. deprecated="not deprecated">
  37660. </method>
  37661. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  37662. transient="false" volatile="false"
  37663. static="false" final="false" visibility="public"
  37664. deprecated="not deprecated">
  37665. </field>
  37666. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  37667. transient="false" volatile="false"
  37668. static="false" final="false" visibility="public"
  37669. deprecated="not deprecated">
  37670. </field>
  37671. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  37672. transient="false" volatile="false"
  37673. static="false" final="false" visibility="public"
  37674. deprecated="not deprecated">
  37675. </field>
  37676. <doc>
  37677. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37678. </doc>
  37679. </class>
  37680. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  37681. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  37682. <interface name="RccConstants" abstract="true"
  37683. static="false" final="false" visibility="public"
  37684. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37685. <field name="EOF" type="int"
  37686. transient="false" volatile="false"
  37687. static="true" final="true" visibility="public"
  37688. deprecated="not deprecated">
  37689. </field>
  37690. <field name="MODULE_TKN" type="int"
  37691. transient="false" volatile="false"
  37692. static="true" final="true" visibility="public"
  37693. deprecated="not deprecated">
  37694. </field>
  37695. <field name="RECORD_TKN" type="int"
  37696. transient="false" volatile="false"
  37697. static="true" final="true" visibility="public"
  37698. deprecated="not deprecated">
  37699. </field>
  37700. <field name="INCLUDE_TKN" type="int"
  37701. transient="false" volatile="false"
  37702. static="true" final="true" visibility="public"
  37703. deprecated="not deprecated">
  37704. </field>
  37705. <field name="BYTE_TKN" type="int"
  37706. transient="false" volatile="false"
  37707. static="true" final="true" visibility="public"
  37708. deprecated="not deprecated">
  37709. </field>
  37710. <field name="BOOLEAN_TKN" type="int"
  37711. transient="false" volatile="false"
  37712. static="true" final="true" visibility="public"
  37713. deprecated="not deprecated">
  37714. </field>
  37715. <field name="INT_TKN" type="int"
  37716. transient="false" volatile="false"
  37717. static="true" final="true" visibility="public"
  37718. deprecated="not deprecated">
  37719. </field>
  37720. <field name="LONG_TKN" type="int"
  37721. transient="false" volatile="false"
  37722. static="true" final="true" visibility="public"
  37723. deprecated="not deprecated">
  37724. </field>
  37725. <field name="FLOAT_TKN" type="int"
  37726. transient="false" volatile="false"
  37727. static="true" final="true" visibility="public"
  37728. deprecated="not deprecated">
  37729. </field>
  37730. <field name="DOUBLE_TKN" type="int"
  37731. transient="false" volatile="false"
  37732. static="true" final="true" visibility="public"
  37733. deprecated="not deprecated">
  37734. </field>
  37735. <field name="USTRING_TKN" type="int"
  37736. transient="false" volatile="false"
  37737. static="true" final="true" visibility="public"
  37738. deprecated="not deprecated">
  37739. </field>
  37740. <field name="BUFFER_TKN" type="int"
  37741. transient="false" volatile="false"
  37742. static="true" final="true" visibility="public"
  37743. deprecated="not deprecated">
  37744. </field>
  37745. <field name="VECTOR_TKN" type="int"
  37746. transient="false" volatile="false"
  37747. static="true" final="true" visibility="public"
  37748. deprecated="not deprecated">
  37749. </field>
  37750. <field name="MAP_TKN" type="int"
  37751. transient="false" volatile="false"
  37752. static="true" final="true" visibility="public"
  37753. deprecated="not deprecated">
  37754. </field>
  37755. <field name="LBRACE_TKN" type="int"
  37756. transient="false" volatile="false"
  37757. static="true" final="true" visibility="public"
  37758. deprecated="not deprecated">
  37759. </field>
  37760. <field name="RBRACE_TKN" type="int"
  37761. transient="false" volatile="false"
  37762. static="true" final="true" visibility="public"
  37763. deprecated="not deprecated">
  37764. </field>
  37765. <field name="LT_TKN" type="int"
  37766. transient="false" volatile="false"
  37767. static="true" final="true" visibility="public"
  37768. deprecated="not deprecated">
  37769. </field>
  37770. <field name="GT_TKN" type="int"
  37771. transient="false" volatile="false"
  37772. static="true" final="true" visibility="public"
  37773. deprecated="not deprecated">
  37774. </field>
  37775. <field name="SEMICOLON_TKN" type="int"
  37776. transient="false" volatile="false"
  37777. static="true" final="true" visibility="public"
  37778. deprecated="not deprecated">
  37779. </field>
  37780. <field name="COMMA_TKN" type="int"
  37781. transient="false" volatile="false"
  37782. static="true" final="true" visibility="public"
  37783. deprecated="not deprecated">
  37784. </field>
  37785. <field name="DOT_TKN" type="int"
  37786. transient="false" volatile="false"
  37787. static="true" final="true" visibility="public"
  37788. deprecated="not deprecated">
  37789. </field>
  37790. <field name="CSTRING_TKN" type="int"
  37791. transient="false" volatile="false"
  37792. static="true" final="true" visibility="public"
  37793. deprecated="not deprecated">
  37794. </field>
  37795. <field name="IDENT_TKN" type="int"
  37796. transient="false" volatile="false"
  37797. static="true" final="true" visibility="public"
  37798. deprecated="not deprecated">
  37799. </field>
  37800. <field name="DEFAULT" type="int"
  37801. transient="false" volatile="false"
  37802. static="true" final="true" visibility="public"
  37803. deprecated="not deprecated">
  37804. </field>
  37805. <field name="WithinOneLineComment" type="int"
  37806. transient="false" volatile="false"
  37807. static="true" final="true" visibility="public"
  37808. deprecated="not deprecated">
  37809. </field>
  37810. <field name="WithinMultiLineComment" type="int"
  37811. transient="false" volatile="false"
  37812. static="true" final="true" visibility="public"
  37813. deprecated="not deprecated">
  37814. </field>
  37815. <field name="tokenImage" type="java.lang.String[]"
  37816. transient="false" volatile="false"
  37817. static="true" final="true" visibility="public"
  37818. deprecated="not deprecated">
  37819. </field>
  37820. <doc>
  37821. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37822. </doc>
  37823. </interface>
  37824. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  37825. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  37826. <class name="RccTokenManager" extends="java.lang.Object"
  37827. abstract="false"
  37828. static="false" final="false" visibility="public"
  37829. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37830. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  37831. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  37832. static="false" final="false" visibility="public"
  37833. deprecated="not deprecated">
  37834. </constructor>
  37835. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  37836. static="false" final="false" visibility="public"
  37837. deprecated="not deprecated">
  37838. </constructor>
  37839. <method name="setDebugStream"
  37840. abstract="false" native="false" synchronized="false"
  37841. static="false" final="false" visibility="public"
  37842. deprecated="not deprecated">
  37843. <param name="ds" type="java.io.PrintStream"/>
  37844. </method>
  37845. <method name="ReInit"
  37846. abstract="false" native="false" synchronized="false"
  37847. static="false" final="false" visibility="public"
  37848. deprecated="not deprecated">
  37849. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  37850. </method>
  37851. <method name="ReInit"
  37852. abstract="false" native="false" synchronized="false"
  37853. static="false" final="false" visibility="public"
  37854. deprecated="not deprecated">
  37855. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  37856. <param name="lexState" type="int"/>
  37857. </method>
  37858. <method name="SwitchTo"
  37859. abstract="false" native="false" synchronized="false"
  37860. static="false" final="false" visibility="public"
  37861. deprecated="not deprecated">
  37862. <param name="lexState" type="int"/>
  37863. </method>
  37864. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  37865. abstract="false" native="false" synchronized="false"
  37866. static="false" final="false" visibility="protected"
  37867. deprecated="not deprecated">
  37868. </method>
  37869. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  37870. abstract="false" native="false" synchronized="false"
  37871. static="false" final="false" visibility="public"
  37872. deprecated="not deprecated">
  37873. </method>
  37874. <field name="debugStream" type="java.io.PrintStream"
  37875. transient="false" volatile="false"
  37876. static="false" final="false" visibility="public"
  37877. deprecated="not deprecated">
  37878. </field>
  37879. <field name="jjstrLiteralImages" type="java.lang.String[]"
  37880. transient="false" volatile="false"
  37881. static="true" final="true" visibility="public"
  37882. deprecated="not deprecated">
  37883. </field>
  37884. <field name="lexStateNames" type="java.lang.String[]"
  37885. transient="false" volatile="false"
  37886. static="true" final="true" visibility="public"
  37887. deprecated="not deprecated">
  37888. </field>
  37889. <field name="jjnewLexState" type="int[]"
  37890. transient="false" volatile="false"
  37891. static="true" final="true" visibility="public"
  37892. deprecated="not deprecated">
  37893. </field>
  37894. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  37895. transient="false" volatile="false"
  37896. static="false" final="false" visibility="protected"
  37897. deprecated="not deprecated">
  37898. </field>
  37899. <field name="curChar" type="char"
  37900. transient="false" volatile="false"
  37901. static="false" final="false" visibility="protected"
  37902. deprecated="not deprecated">
  37903. </field>
  37904. <doc>
  37905. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37906. </doc>
  37907. </class>
  37908. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  37909. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  37910. <class name="SimpleCharStream" extends="java.lang.Object"
  37911. abstract="false"
  37912. static="false" final="false" visibility="public"
  37913. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37914. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  37915. static="false" final="false" visibility="public"
  37916. deprecated="not deprecated">
  37917. </constructor>
  37918. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  37919. static="false" final="false" visibility="public"
  37920. deprecated="not deprecated">
  37921. </constructor>
  37922. <constructor name="SimpleCharStream" type="java.io.Reader"
  37923. static="false" final="false" visibility="public"
  37924. deprecated="not deprecated">
  37925. </constructor>
  37926. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  37927. static="false" final="false" visibility="public"
  37928. deprecated="not deprecated">
  37929. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  37930. </constructor>
  37931. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  37932. static="false" final="false" visibility="public"
  37933. deprecated="not deprecated">
  37934. </constructor>
  37935. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  37936. static="false" final="false" visibility="public"
  37937. deprecated="not deprecated">
  37938. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  37939. </constructor>
  37940. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  37941. static="false" final="false" visibility="public"
  37942. deprecated="not deprecated">
  37943. </constructor>
  37944. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  37945. static="false" final="false" visibility="public"
  37946. deprecated="not deprecated">
  37947. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  37948. </constructor>
  37949. <constructor name="SimpleCharStream" type="java.io.InputStream"
  37950. static="false" final="false" visibility="public"
  37951. deprecated="not deprecated">
  37952. </constructor>
  37953. <method name="setTabSize"
  37954. abstract="false" native="false" synchronized="false"
  37955. static="false" final="false" visibility="protected"
  37956. deprecated="not deprecated">
  37957. <param name="i" type="int"/>
  37958. </method>
  37959. <method name="getTabSize" return="int"
  37960. abstract="false" native="false" synchronized="false"
  37961. static="false" final="false" visibility="protected"
  37962. deprecated="not deprecated">
  37963. <param name="i" type="int"/>
  37964. </method>
  37965. <method name="ExpandBuff"
  37966. abstract="false" native="false" synchronized="false"
  37967. static="false" final="false" visibility="protected"
  37968. deprecated="not deprecated">
  37969. <param name="wrapAround" type="boolean"/>
  37970. </method>
  37971. <method name="FillBuff"
  37972. abstract="false" native="false" synchronized="false"
  37973. static="false" final="false" visibility="protected"
  37974. deprecated="not deprecated">
  37975. <exception name="IOException" type="java.io.IOException"/>
  37976. </method>
  37977. <method name="BeginToken" return="char"
  37978. abstract="false" native="false" synchronized="false"
  37979. static="false" final="false" visibility="public"
  37980. deprecated="not deprecated">
  37981. <exception name="IOException" type="java.io.IOException"/>
  37982. </method>
  37983. <method name="UpdateLineColumn"
  37984. abstract="false" native="false" synchronized="false"
  37985. static="false" final="false" visibility="protected"
  37986. deprecated="not deprecated">
  37987. <param name="c" type="char"/>
  37988. </method>
  37989. <method name="readChar" return="char"
  37990. abstract="false" native="false" synchronized="false"
  37991. static="false" final="false" visibility="public"
  37992. deprecated="not deprecated">
  37993. <exception name="IOException" type="java.io.IOException"/>
  37994. </method>
  37995. <method name="getEndColumn" return="int"
  37996. abstract="false" native="false" synchronized="false"
  37997. static="false" final="false" visibility="public"
  37998. deprecated="not deprecated">
  37999. </method>
  38000. <method name="getEndLine" return="int"
  38001. abstract="false" native="false" synchronized="false"
  38002. static="false" final="false" visibility="public"
  38003. deprecated="not deprecated">
  38004. </method>
  38005. <method name="getBeginColumn" return="int"
  38006. abstract="false" native="false" synchronized="false"
  38007. static="false" final="false" visibility="public"
  38008. deprecated="not deprecated">
  38009. </method>
  38010. <method name="getBeginLine" return="int"
  38011. abstract="false" native="false" synchronized="false"
  38012. static="false" final="false" visibility="public"
  38013. deprecated="not deprecated">
  38014. </method>
  38015. <method name="backup"
  38016. abstract="false" native="false" synchronized="false"
  38017. static="false" final="false" visibility="public"
  38018. deprecated="not deprecated">
  38019. <param name="amount" type="int"/>
  38020. </method>
  38021. <method name="ReInit"
  38022. abstract="false" native="false" synchronized="false"
  38023. static="false" final="false" visibility="public"
  38024. deprecated="not deprecated">
  38025. <param name="dstream" type="java.io.Reader"/>
  38026. <param name="startline" type="int"/>
  38027. <param name="startcolumn" type="int"/>
  38028. <param name="buffersize" type="int"/>
  38029. </method>
  38030. <method name="ReInit"
  38031. abstract="false" native="false" synchronized="false"
  38032. static="false" final="false" visibility="public"
  38033. deprecated="not deprecated">
  38034. <param name="dstream" type="java.io.Reader"/>
  38035. <param name="startline" type="int"/>
  38036. <param name="startcolumn" type="int"/>
  38037. </method>
  38038. <method name="ReInit"
  38039. abstract="false" native="false" synchronized="false"
  38040. static="false" final="false" visibility="public"
  38041. deprecated="not deprecated">
  38042. <param name="dstream" type="java.io.Reader"/>
  38043. </method>
  38044. <method name="ReInit"
  38045. abstract="false" native="false" synchronized="false"
  38046. static="false" final="false" visibility="public"
  38047. deprecated="not deprecated">
  38048. <param name="dstream" type="java.io.InputStream"/>
  38049. <param name="encoding" type="java.lang.String"/>
  38050. <param name="startline" type="int"/>
  38051. <param name="startcolumn" type="int"/>
  38052. <param name="buffersize" type="int"/>
  38053. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38054. </method>
  38055. <method name="ReInit"
  38056. abstract="false" native="false" synchronized="false"
  38057. static="false" final="false" visibility="public"
  38058. deprecated="not deprecated">
  38059. <param name="dstream" type="java.io.InputStream"/>
  38060. <param name="startline" type="int"/>
  38061. <param name="startcolumn" type="int"/>
  38062. <param name="buffersize" type="int"/>
  38063. </method>
  38064. <method name="ReInit"
  38065. abstract="false" native="false" synchronized="false"
  38066. static="false" final="false" visibility="public"
  38067. deprecated="not deprecated">
  38068. <param name="dstream" type="java.io.InputStream"/>
  38069. <param name="encoding" type="java.lang.String"/>
  38070. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38071. </method>
  38072. <method name="ReInit"
  38073. abstract="false" native="false" synchronized="false"
  38074. static="false" final="false" visibility="public"
  38075. deprecated="not deprecated">
  38076. <param name="dstream" type="java.io.InputStream"/>
  38077. </method>
  38078. <method name="ReInit"
  38079. abstract="false" native="false" synchronized="false"
  38080. static="false" final="false" visibility="public"
  38081. deprecated="not deprecated">
  38082. <param name="dstream" type="java.io.InputStream"/>
  38083. <param name="encoding" type="java.lang.String"/>
  38084. <param name="startline" type="int"/>
  38085. <param name="startcolumn" type="int"/>
  38086. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38087. </method>
  38088. <method name="ReInit"
  38089. abstract="false" native="false" synchronized="false"
  38090. static="false" final="false" visibility="public"
  38091. deprecated="not deprecated">
  38092. <param name="dstream" type="java.io.InputStream"/>
  38093. <param name="startline" type="int"/>
  38094. <param name="startcolumn" type="int"/>
  38095. </method>
  38096. <method name="GetImage" return="java.lang.String"
  38097. abstract="false" native="false" synchronized="false"
  38098. static="false" final="false" visibility="public"
  38099. deprecated="not deprecated">
  38100. </method>
  38101. <method name="GetSuffix" return="char[]"
  38102. abstract="false" native="false" synchronized="false"
  38103. static="false" final="false" visibility="public"
  38104. deprecated="not deprecated">
  38105. <param name="len" type="int"/>
  38106. </method>
  38107. <method name="Done"
  38108. abstract="false" native="false" synchronized="false"
  38109. static="false" final="false" visibility="public"
  38110. deprecated="not deprecated">
  38111. </method>
  38112. <method name="adjustBeginLineColumn"
  38113. abstract="false" native="false" synchronized="false"
  38114. static="false" final="false" visibility="public"
  38115. deprecated="not deprecated">
  38116. <param name="newLine" type="int"/>
  38117. <param name="newCol" type="int"/>
  38118. <doc>
  38119. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  38120. </doc>
  38121. </method>
  38122. <field name="staticFlag" type="boolean"
  38123. transient="false" volatile="false"
  38124. static="true" final="true" visibility="public"
  38125. deprecated="not deprecated">
  38126. </field>
  38127. <field name="bufpos" type="int"
  38128. transient="false" volatile="false"
  38129. static="false" final="false" visibility="public"
  38130. deprecated="not deprecated">
  38131. </field>
  38132. <field name="bufline" type="int[]"
  38133. transient="false" volatile="false"
  38134. static="false" final="false" visibility="protected"
  38135. deprecated="not deprecated">
  38136. </field>
  38137. <field name="bufcolumn" type="int[]"
  38138. transient="false" volatile="false"
  38139. static="false" final="false" visibility="protected"
  38140. deprecated="not deprecated">
  38141. </field>
  38142. <field name="column" type="int"
  38143. transient="false" volatile="false"
  38144. static="false" final="false" visibility="protected"
  38145. deprecated="not deprecated">
  38146. </field>
  38147. <field name="line" type="int"
  38148. transient="false" volatile="false"
  38149. static="false" final="false" visibility="protected"
  38150. deprecated="not deprecated">
  38151. </field>
  38152. <field name="prevCharIsCR" type="boolean"
  38153. transient="false" volatile="false"
  38154. static="false" final="false" visibility="protected"
  38155. deprecated="not deprecated">
  38156. </field>
  38157. <field name="prevCharIsLF" type="boolean"
  38158. transient="false" volatile="false"
  38159. static="false" final="false" visibility="protected"
  38160. deprecated="not deprecated">
  38161. </field>
  38162. <field name="inputStream" type="java.io.Reader"
  38163. transient="false" volatile="false"
  38164. static="false" final="false" visibility="protected"
  38165. deprecated="not deprecated">
  38166. </field>
  38167. <field name="buffer" type="char[]"
  38168. transient="false" volatile="false"
  38169. static="false" final="false" visibility="protected"
  38170. deprecated="not deprecated">
  38171. </field>
  38172. <field name="maxNextCharInd" type="int"
  38173. transient="false" volatile="false"
  38174. static="false" final="false" visibility="protected"
  38175. deprecated="not deprecated">
  38176. </field>
  38177. <field name="inBuf" type="int"
  38178. transient="false" volatile="false"
  38179. static="false" final="false" visibility="protected"
  38180. deprecated="not deprecated">
  38181. </field>
  38182. <field name="tabSize" type="int"
  38183. transient="false" volatile="false"
  38184. static="false" final="false" visibility="protected"
  38185. deprecated="not deprecated">
  38186. </field>
  38187. <doc>
  38188. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  38189. contain only ASCII characters (without unicode processing).
  38190. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38191. </doc>
  38192. </class>
  38193. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  38194. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  38195. <class name="Token" extends="java.lang.Object"
  38196. abstract="false"
  38197. static="false" final="false" visibility="public"
  38198. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38199. <constructor name="Token"
  38200. static="false" final="false" visibility="public"
  38201. deprecated="not deprecated">
  38202. </constructor>
  38203. <method name="toString" return="java.lang.String"
  38204. abstract="false" native="false" synchronized="false"
  38205. static="false" final="false" visibility="public"
  38206. deprecated="not deprecated">
  38207. <doc>
  38208. <![CDATA[Returns the image.]]>
  38209. </doc>
  38210. </method>
  38211. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38212. abstract="false" native="false" synchronized="false"
  38213. static="true" final="true" visibility="public"
  38214. deprecated="not deprecated">
  38215. <param name="ofKind" type="int"/>
  38216. <doc>
  38217. <![CDATA[Returns a new Token object, by default. However, if you want, you
  38218. can create and return subclass objects based on the value of ofKind.
  38219. Simply add the cases to the switch for all those special cases.
  38220. For example, if you have a subclass of Token called IDToken that
  38221. you want to create if ofKind is ID, simlpy add something like :
  38222. case MyParserConstants.ID : return new IDToken();
  38223. to the following switch statement. Then you can cast matchedToken
  38224. variable to the appropriate type and use it in your lexical actions.]]>
  38225. </doc>
  38226. </method>
  38227. <field name="kind" type="int"
  38228. transient="false" volatile="false"
  38229. static="false" final="false" visibility="public"
  38230. deprecated="not deprecated">
  38231. <doc>
  38232. <![CDATA[An integer that describes the kind of this token. This numbering
  38233. system is determined by JavaCCParser, and a table of these numbers is
  38234. stored in the file ...Constants.java.]]>
  38235. </doc>
  38236. </field>
  38237. <field name="beginLine" type="int"
  38238. transient="false" volatile="false"
  38239. static="false" final="false" visibility="public"
  38240. deprecated="not deprecated">
  38241. <doc>
  38242. <![CDATA[beginLine and beginColumn describe the position of the first character
  38243. of this token; endLine and endColumn describe the position of the
  38244. last character of this token.]]>
  38245. </doc>
  38246. </field>
  38247. <field name="beginColumn" type="int"
  38248. transient="false" volatile="false"
  38249. static="false" final="false" visibility="public"
  38250. deprecated="not deprecated">
  38251. <doc>
  38252. <![CDATA[beginLine and beginColumn describe the position of the first character
  38253. of this token; endLine and endColumn describe the position of the
  38254. last character of this token.]]>
  38255. </doc>
  38256. </field>
  38257. <field name="endLine" type="int"
  38258. transient="false" volatile="false"
  38259. static="false" final="false" visibility="public"
  38260. deprecated="not deprecated">
  38261. <doc>
  38262. <![CDATA[beginLine and beginColumn describe the position of the first character
  38263. of this token; endLine and endColumn describe the position of the
  38264. last character of this token.]]>
  38265. </doc>
  38266. </field>
  38267. <field name="endColumn" type="int"
  38268. transient="false" volatile="false"
  38269. static="false" final="false" visibility="public"
  38270. deprecated="not deprecated">
  38271. <doc>
  38272. <![CDATA[beginLine and beginColumn describe the position of the first character
  38273. of this token; endLine and endColumn describe the position of the
  38274. last character of this token.]]>
  38275. </doc>
  38276. </field>
  38277. <field name="image" type="java.lang.String"
  38278. transient="false" volatile="false"
  38279. static="false" final="false" visibility="public"
  38280. deprecated="not deprecated">
  38281. <doc>
  38282. <![CDATA[The string image of the token.]]>
  38283. </doc>
  38284. </field>
  38285. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  38286. transient="false" volatile="false"
  38287. static="false" final="false" visibility="public"
  38288. deprecated="not deprecated">
  38289. <doc>
  38290. <![CDATA[A reference to the next regular (non-special) token from the input
  38291. stream. If this is the last token from the input stream, or if the
  38292. token manager has not read tokens beyond this one, this field is
  38293. set to null. This is true only if this token is also a regular
  38294. token. Otherwise, see below for a description of the contents of
  38295. this field.]]>
  38296. </doc>
  38297. </field>
  38298. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  38299. transient="false" volatile="false"
  38300. static="false" final="false" visibility="public"
  38301. deprecated="not deprecated">
  38302. <doc>
  38303. <![CDATA[This field is used to access special tokens that occur prior to this
  38304. token, but after the immediately preceding regular (non-special) token.
  38305. If there are no such special tokens, this field is set to null.
  38306. When there are more than one such special token, this field refers
  38307. to the last of these special tokens, which in turn refers to the next
  38308. previous special token through its specialToken field, and so on
  38309. until the first special token (whose specialToken field is null).
  38310. The next fields of special tokens refer to other special tokens that
  38311. immediately follow it (without an intervening regular token). If there
  38312. is no such token, this field is null.]]>
  38313. </doc>
  38314. </field>
  38315. <doc>
  38316. <![CDATA[Describes the input token stream.
  38317. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38318. </doc>
  38319. </class>
  38320. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  38321. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  38322. <class name="TokenMgrError" extends="java.lang.Error"
  38323. abstract="false"
  38324. static="false" final="false" visibility="public"
  38325. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38326. <constructor name="TokenMgrError"
  38327. static="false" final="false" visibility="public"
  38328. deprecated="not deprecated">
  38329. </constructor>
  38330. <constructor name="TokenMgrError" type="java.lang.String, int"
  38331. static="false" final="false" visibility="public"
  38332. deprecated="not deprecated">
  38333. </constructor>
  38334. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  38335. static="false" final="false" visibility="public"
  38336. deprecated="not deprecated">
  38337. </constructor>
  38338. <method name="addEscapes" return="java.lang.String"
  38339. abstract="false" native="false" synchronized="false"
  38340. static="true" final="true" visibility="protected"
  38341. deprecated="not deprecated">
  38342. <param name="str" type="java.lang.String"/>
  38343. <doc>
  38344. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  38345. equivalents in the given string]]>
  38346. </doc>
  38347. </method>
  38348. <method name="LexicalError" return="java.lang.String"
  38349. abstract="false" native="false" synchronized="false"
  38350. static="true" final="false" visibility="protected"
  38351. deprecated="not deprecated">
  38352. <param name="EOFSeen" type="boolean"/>
  38353. <param name="lexState" type="int"/>
  38354. <param name="errorLine" type="int"/>
  38355. <param name="errorColumn" type="int"/>
  38356. <param name="errorAfter" type="java.lang.String"/>
  38357. <param name="curChar" type="char"/>
  38358. <doc>
  38359. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  38360. token manager to indicate a lexical error.
  38361. Parameters :
  38362. EOFSeen : indicates if EOF caused the lexicl error
  38363. curLexState : lexical state in which this error occured
  38364. errorLine : line number when the error occured
  38365. errorColumn : column number when the error occured
  38366. errorAfter : prefix that was seen before this error occured
  38367. curchar : the offending character
  38368. Note: You can customize the lexical error message by modifying this method.]]>
  38369. </doc>
  38370. </method>
  38371. <method name="getMessage" return="java.lang.String"
  38372. abstract="false" native="false" synchronized="false"
  38373. static="false" final="false" visibility="public"
  38374. deprecated="not deprecated">
  38375. <doc>
  38376. <![CDATA[You can also modify the body of this method to customize your error messages.
  38377. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  38378. of end-users concern, so you can return something like :
  38379. "Internal Error : Please file a bug report .... "
  38380. from this method for such cases in the release version of your parser.]]>
  38381. </doc>
  38382. </method>
  38383. <doc>
  38384. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38385. </doc>
  38386. </class>
  38387. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  38388. <doc>
  38389. <![CDATA[<p>
  38390. (DEPRECATED) This package contains code generated by JavaCC from the
  38391. Hadoop record syntax file rcc.jj. For details about the
  38392. record file syntax please @see org.apache.hadoop.record.
  38393. </p>
  38394. <p>
  38395. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  38396. </p>]]>
  38397. </doc>
  38398. </package>
  38399. <package name="org.apache.hadoop.record.meta">
  38400. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  38401. <class name="FieldTypeInfo" extends="java.lang.Object"
  38402. abstract="false"
  38403. static="false" final="false" visibility="public"
  38404. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38405. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  38406. abstract="false" native="false" synchronized="false"
  38407. static="false" final="false" visibility="public"
  38408. deprecated="not deprecated">
  38409. <doc>
  38410. <![CDATA[get the field's TypeID object]]>
  38411. </doc>
  38412. </method>
  38413. <method name="getFieldID" return="java.lang.String"
  38414. abstract="false" native="false" synchronized="false"
  38415. static="false" final="false" visibility="public"
  38416. deprecated="not deprecated">
  38417. <doc>
  38418. <![CDATA[get the field's id (name)]]>
  38419. </doc>
  38420. </method>
  38421. <method name="equals" return="boolean"
  38422. abstract="false" native="false" synchronized="false"
  38423. static="false" final="false" visibility="public"
  38424. deprecated="not deprecated">
  38425. <param name="o" type="java.lang.Object"/>
  38426. <doc>
  38427. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  38428. </doc>
  38429. </method>
  38430. <method name="hashCode" return="int"
  38431. abstract="false" native="false" synchronized="false"
  38432. static="false" final="false" visibility="public"
  38433. deprecated="not deprecated">
  38434. <doc>
  38435. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  38436. be used as a hashmap key]]>
  38437. </doc>
  38438. </method>
  38439. <method name="equals" return="boolean"
  38440. abstract="false" native="false" synchronized="false"
  38441. static="false" final="false" visibility="public"
  38442. deprecated="not deprecated">
  38443. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  38444. </method>
  38445. <doc>
  38446. <![CDATA[Represents a type information for a field, which is made up of its
  38447. ID (name) and its type (a TypeID object).
  38448. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38449. </doc>
  38450. </class>
  38451. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  38452. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  38453. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  38454. abstract="false"
  38455. static="false" final="false" visibility="public"
  38456. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38457. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  38458. static="false" final="false" visibility="public"
  38459. deprecated="not deprecated">
  38460. </constructor>
  38461. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  38462. abstract="false" native="false" synchronized="false"
  38463. static="false" final="false" visibility="public"
  38464. deprecated="not deprecated">
  38465. <doc>
  38466. <![CDATA[get the TypeID of the map's key element]]>
  38467. </doc>
  38468. </method>
  38469. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  38470. abstract="false" native="false" synchronized="false"
  38471. static="false" final="false" visibility="public"
  38472. deprecated="not deprecated">
  38473. <doc>
  38474. <![CDATA[get the TypeID of the map's value element]]>
  38475. </doc>
  38476. </method>
  38477. <method name="equals" return="boolean"
  38478. abstract="false" native="false" synchronized="false"
  38479. static="false" final="false" visibility="public"
  38480. deprecated="not deprecated">
  38481. <param name="o" type="java.lang.Object"/>
  38482. <doc>
  38483. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  38484. same type]]>
  38485. </doc>
  38486. </method>
  38487. <method name="hashCode" return="int"
  38488. abstract="false" native="false" synchronized="false"
  38489. static="false" final="false" visibility="public"
  38490. deprecated="not deprecated">
  38491. <doc>
  38492. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  38493. be used as a hashmap key]]>
  38494. </doc>
  38495. </method>
  38496. <doc>
  38497. <![CDATA[Represents typeID for a Map
  38498. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38499. </doc>
  38500. </class>
  38501. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  38502. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  38503. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  38504. abstract="false"
  38505. static="false" final="false" visibility="public"
  38506. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38507. <constructor name="RecordTypeInfo"
  38508. static="false" final="false" visibility="public"
  38509. deprecated="not deprecated">
  38510. <doc>
  38511. <![CDATA[Create an empty RecordTypeInfo object.]]>
  38512. </doc>
  38513. </constructor>
  38514. <constructor name="RecordTypeInfo" type="java.lang.String"
  38515. static="false" final="false" visibility="public"
  38516. deprecated="not deprecated">
  38517. <doc>
  38518. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  38519. @param name Name of the record]]>
  38520. </doc>
  38521. </constructor>
  38522. <method name="getName" return="java.lang.String"
  38523. abstract="false" native="false" synchronized="false"
  38524. static="false" final="false" visibility="public"
  38525. deprecated="not deprecated">
  38526. <doc>
  38527. <![CDATA[return the name of the record]]>
  38528. </doc>
  38529. </method>
  38530. <method name="setName"
  38531. abstract="false" native="false" synchronized="false"
  38532. static="false" final="false" visibility="public"
  38533. deprecated="not deprecated">
  38534. <param name="name" type="java.lang.String"/>
  38535. <doc>
  38536. <![CDATA[set the name of the record]]>
  38537. </doc>
  38538. </method>
  38539. <method name="addField"
  38540. abstract="false" native="false" synchronized="false"
  38541. static="false" final="false" visibility="public"
  38542. deprecated="not deprecated">
  38543. <param name="fieldName" type="java.lang.String"/>
  38544. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  38545. <doc>
  38546. <![CDATA[Add a field.
  38547. @param fieldName Name of the field
  38548. @param tid Type ID of the field]]>
  38549. </doc>
  38550. </method>
  38551. <method name="getFieldTypeInfos" return="java.util.Collection"
  38552. abstract="false" native="false" synchronized="false"
  38553. static="false" final="false" visibility="public"
  38554. deprecated="not deprecated">
  38555. <doc>
  38556. <![CDATA[Return a collection of field type infos]]>
  38557. </doc>
  38558. </method>
  38559. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  38560. abstract="false" native="false" synchronized="false"
  38561. static="false" final="false" visibility="public"
  38562. deprecated="not deprecated">
  38563. <param name="name" type="java.lang.String"/>
  38564. <doc>
  38565. <![CDATA[Return the type info of a nested record. We only consider nesting
  38566. to one level.
  38567. @param name Name of the nested record]]>
  38568. </doc>
  38569. </method>
  38570. <method name="serialize"
  38571. abstract="false" native="false" synchronized="false"
  38572. static="false" final="false" visibility="public"
  38573. deprecated="not deprecated">
  38574. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  38575. <param name="tag" type="java.lang.String"/>
  38576. <exception name="IOException" type="java.io.IOException"/>
  38577. <doc>
  38578. <![CDATA[Serialize the type information for a record]]>
  38579. </doc>
  38580. </method>
  38581. <method name="deserialize"
  38582. abstract="false" native="false" synchronized="false"
  38583. static="false" final="false" visibility="public"
  38584. deprecated="not deprecated">
  38585. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  38586. <param name="tag" type="java.lang.String"/>
  38587. <exception name="IOException" type="java.io.IOException"/>
  38588. <doc>
  38589. <![CDATA[Deserialize the type information for a record]]>
  38590. </doc>
  38591. </method>
  38592. <method name="compareTo" return="int"
  38593. abstract="false" native="false" synchronized="false"
  38594. static="false" final="false" visibility="public"
  38595. deprecated="not deprecated">
  38596. <param name="peer_" type="java.lang.Object"/>
  38597. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  38598. <doc>
  38599. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  38600. for anything besides de/serializing.
  38601. So we always throw an exception.
  38602. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  38603. </doc>
  38604. </method>
  38605. <doc>
  38606. <![CDATA[A record's Type Information object which can read/write itself.
  38607. Type information for a record comprises metadata about the record,
  38608. as well as a collection of type information for each field in the record.
  38609. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38610. </doc>
  38611. </class>
  38612. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  38613. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  38614. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  38615. abstract="false"
  38616. static="false" final="false" visibility="public"
  38617. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38618. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  38619. static="false" final="false" visibility="public"
  38620. deprecated="not deprecated">
  38621. <doc>
  38622. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  38623. </doc>
  38624. </constructor>
  38625. <method name="getFieldTypeInfos" return="java.util.Collection"
  38626. abstract="false" native="false" synchronized="false"
  38627. static="false" final="false" visibility="public"
  38628. deprecated="not deprecated">
  38629. </method>
  38630. <method name="equals" return="boolean"
  38631. abstract="false" native="false" synchronized="false"
  38632. static="false" final="false" visibility="public"
  38633. deprecated="not deprecated">
  38634. <param name="o" type="java.lang.Object"/>
  38635. </method>
  38636. <method name="hashCode" return="int"
  38637. abstract="false" native="false" synchronized="false"
  38638. static="false" final="false" visibility="public"
  38639. deprecated="not deprecated">
  38640. </method>
  38641. <doc>
  38642. <![CDATA[Represents typeID for a struct
  38643. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38644. </doc>
  38645. </class>
  38646. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  38647. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  38648. <class name="TypeID" extends="java.lang.Object"
  38649. abstract="false"
  38650. static="false" final="false" visibility="public"
  38651. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38652. <method name="getTypeVal" return="byte"
  38653. abstract="false" native="false" synchronized="false"
  38654. static="false" final="false" visibility="public"
  38655. deprecated="not deprecated">
  38656. <doc>
  38657. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  38658. </doc>
  38659. </method>
  38660. <method name="equals" return="boolean"
  38661. abstract="false" native="false" synchronized="false"
  38662. static="false" final="false" visibility="public"
  38663. deprecated="not deprecated">
  38664. <param name="o" type="java.lang.Object"/>
  38665. <doc>
  38666. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  38667. </doc>
  38668. </method>
  38669. <method name="hashCode" return="int"
  38670. abstract="false" native="false" synchronized="false"
  38671. static="false" final="false" visibility="public"
  38672. deprecated="not deprecated">
  38673. <doc>
  38674. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  38675. be used as a hashmap key]]>
  38676. </doc>
  38677. </method>
  38678. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38679. transient="false" volatile="false"
  38680. static="true" final="true" visibility="public"
  38681. deprecated="not deprecated">
  38682. <doc>
  38683. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  38684. </doc>
  38685. </field>
  38686. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38687. transient="false" volatile="false"
  38688. static="true" final="true" visibility="public"
  38689. deprecated="not deprecated">
  38690. </field>
  38691. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38692. transient="false" volatile="false"
  38693. static="true" final="true" visibility="public"
  38694. deprecated="not deprecated">
  38695. </field>
  38696. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38697. transient="false" volatile="false"
  38698. static="true" final="true" visibility="public"
  38699. deprecated="not deprecated">
  38700. </field>
  38701. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38702. transient="false" volatile="false"
  38703. static="true" final="true" visibility="public"
  38704. deprecated="not deprecated">
  38705. </field>
  38706. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38707. transient="false" volatile="false"
  38708. static="true" final="true" visibility="public"
  38709. deprecated="not deprecated">
  38710. </field>
  38711. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38712. transient="false" volatile="false"
  38713. static="true" final="true" visibility="public"
  38714. deprecated="not deprecated">
  38715. </field>
  38716. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38717. transient="false" volatile="false"
  38718. static="true" final="true" visibility="public"
  38719. deprecated="not deprecated">
  38720. </field>
  38721. <field name="typeVal" type="byte"
  38722. transient="false" volatile="false"
  38723. static="false" final="false" visibility="protected"
  38724. deprecated="not deprecated">
  38725. </field>
  38726. <doc>
  38727. <![CDATA[Represents typeID for basic types.
  38728. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38729. </doc>
  38730. </class>
  38731. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  38732. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  38733. <class name="TypeID.RIOType" extends="java.lang.Object"
  38734. abstract="false"
  38735. static="true" final="true" visibility="public"
  38736. deprecated="not deprecated">
  38737. <constructor name="TypeID.RIOType"
  38738. static="false" final="false" visibility="public"
  38739. deprecated="not deprecated">
  38740. </constructor>
  38741. <field name="BOOL" type="byte"
  38742. transient="false" volatile="false"
  38743. static="true" final="true" visibility="public"
  38744. deprecated="not deprecated">
  38745. </field>
  38746. <field name="BUFFER" type="byte"
  38747. transient="false" volatile="false"
  38748. static="true" final="true" visibility="public"
  38749. deprecated="not deprecated">
  38750. </field>
  38751. <field name="BYTE" type="byte"
  38752. transient="false" volatile="false"
  38753. static="true" final="true" visibility="public"
  38754. deprecated="not deprecated">
  38755. </field>
  38756. <field name="DOUBLE" type="byte"
  38757. transient="false" volatile="false"
  38758. static="true" final="true" visibility="public"
  38759. deprecated="not deprecated">
  38760. </field>
  38761. <field name="FLOAT" type="byte"
  38762. transient="false" volatile="false"
  38763. static="true" final="true" visibility="public"
  38764. deprecated="not deprecated">
  38765. </field>
  38766. <field name="INT" type="byte"
  38767. transient="false" volatile="false"
  38768. static="true" final="true" visibility="public"
  38769. deprecated="not deprecated">
  38770. </field>
  38771. <field name="LONG" type="byte"
  38772. transient="false" volatile="false"
  38773. static="true" final="true" visibility="public"
  38774. deprecated="not deprecated">
  38775. </field>
  38776. <field name="MAP" type="byte"
  38777. transient="false" volatile="false"
  38778. static="true" final="true" visibility="public"
  38779. deprecated="not deprecated">
  38780. </field>
  38781. <field name="STRING" type="byte"
  38782. transient="false" volatile="false"
  38783. static="true" final="true" visibility="public"
  38784. deprecated="not deprecated">
  38785. </field>
  38786. <field name="STRUCT" type="byte"
  38787. transient="false" volatile="false"
  38788. static="true" final="true" visibility="public"
  38789. deprecated="not deprecated">
  38790. </field>
  38791. <field name="VECTOR" type="byte"
  38792. transient="false" volatile="false"
  38793. static="true" final="true" visibility="public"
  38794. deprecated="not deprecated">
  38795. </field>
  38796. <doc>
  38797. <![CDATA[constants representing the IDL types we support]]>
  38798. </doc>
  38799. </class>
  38800. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  38801. <!-- start class org.apache.hadoop.record.meta.Utils -->
  38802. <class name="Utils" extends="java.lang.Object"
  38803. abstract="false"
  38804. static="false" final="false" visibility="public"
  38805. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38806. <method name="skip"
  38807. abstract="false" native="false" synchronized="false"
  38808. static="true" final="false" visibility="public"
  38809. deprecated="not deprecated">
  38810. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  38811. <param name="tag" type="java.lang.String"/>
  38812. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  38813. <exception name="IOException" type="java.io.IOException"/>
  38814. <doc>
  38815. <![CDATA[read/skip bytes from stream based on a type]]>
  38816. </doc>
  38817. </method>
  38818. <doc>
  38819. <![CDATA[Various utility functions for Hadooop record I/O platform.
  38820. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38821. </doc>
  38822. </class>
  38823. <!-- end class org.apache.hadoop.record.meta.Utils -->
  38824. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  38825. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  38826. abstract="false"
  38827. static="false" final="false" visibility="public"
  38828. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38829. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  38830. static="false" final="false" visibility="public"
  38831. deprecated="not deprecated">
  38832. </constructor>
  38833. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  38834. abstract="false" native="false" synchronized="false"
  38835. static="false" final="false" visibility="public"
  38836. deprecated="not deprecated">
  38837. </method>
  38838. <method name="equals" return="boolean"
  38839. abstract="false" native="false" synchronized="false"
  38840. static="false" final="false" visibility="public"
  38841. deprecated="not deprecated">
  38842. <param name="o" type="java.lang.Object"/>
  38843. <doc>
  38844. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  38845. same type]]>
  38846. </doc>
  38847. </method>
  38848. <method name="hashCode" return="int"
  38849. abstract="false" native="false" synchronized="false"
  38850. static="false" final="false" visibility="public"
  38851. deprecated="not deprecated">
  38852. <doc>
  38853. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  38854. be used as a hashmap key]]>
  38855. </doc>
  38856. </method>
  38857. <doc>
  38858. <![CDATA[Represents typeID for vector.
  38859. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38860. </doc>
  38861. </class>
  38862. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  38863. </package>
  38864. <package name="org.apache.hadoop.security">
  38865. <!-- start class org.apache.hadoop.security.AnnotatedSecurityInfo -->
  38866. <class name="AnnotatedSecurityInfo" extends="org.apache.hadoop.security.SecurityInfo"
  38867. abstract="false"
  38868. static="false" final="false" visibility="public"
  38869. deprecated="not deprecated">
  38870. <constructor name="AnnotatedSecurityInfo"
  38871. static="false" final="false" visibility="public"
  38872. deprecated="not deprecated">
  38873. </constructor>
  38874. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  38875. abstract="false" native="false" synchronized="false"
  38876. static="false" final="false" visibility="public"
  38877. deprecated="not deprecated">
  38878. <param name="protocol" type="java.lang.Class"/>
  38879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38880. </method>
  38881. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  38882. abstract="false" native="false" synchronized="false"
  38883. static="false" final="false" visibility="public"
  38884. deprecated="not deprecated">
  38885. <param name="protocol" type="java.lang.Class"/>
  38886. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38887. </method>
  38888. <doc>
  38889. <![CDATA[Constructs SecurityInfo from Annotations provided in protocol interface.]]>
  38890. </doc>
  38891. </class>
  38892. <!-- end class org.apache.hadoop.security.AnnotatedSecurityInfo -->
  38893. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  38894. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  38895. abstract="false"
  38896. static="false" final="false" visibility="public"
  38897. deprecated="not deprecated">
  38898. <constructor name="AuthenticationFilterInitializer"
  38899. static="false" final="false" visibility="public"
  38900. deprecated="not deprecated">
  38901. </constructor>
  38902. <method name="initFilter"
  38903. abstract="false" native="false" synchronized="false"
  38904. static="false" final="false" visibility="public"
  38905. deprecated="not deprecated">
  38906. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  38907. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38908. <doc>
  38909. <![CDATA[Initializes hadoop-auth AuthenticationFilter.
  38910. <p/>
  38911. Propagates to hadoop-auth AuthenticationFilter configuration all Hadoop
  38912. configuration properties prefixed with "hadoop.http.authentication."
  38913. @param container The filter container
  38914. @param conf Configuration for run-time parameters]]>
  38915. </doc>
  38916. </method>
  38917. <doc>
  38918. <![CDATA[Initializes hadoop-auth AuthenticationFilter which provides support for
  38919. Kerberos HTTP SPNEGO authentication.
  38920. <p/>
  38921. It enables anonymous access, simple/pseudo and Kerberos HTTP SPNEGO
  38922. authentication for Hadoop JobTracker, NameNode, DataNodes and
  38923. TaskTrackers.
  38924. <p/>
  38925. Refer to the <code>core-default.xml</code> file, after the comment
  38926. 'HTTP Authentication' for details on the configuration options.
  38927. All related configuration properties have 'hadoop.http.authentication.'
  38928. as prefix.]]>
  38929. </doc>
  38930. </class>
  38931. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  38932. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  38933. <interface name="GroupMappingServiceProvider" abstract="true"
  38934. static="false" final="false" visibility="public"
  38935. deprecated="not deprecated">
  38936. <method name="getGroups" return="java.util.List"
  38937. abstract="false" native="false" synchronized="false"
  38938. static="false" final="false" visibility="public"
  38939. deprecated="not deprecated">
  38940. <param name="user" type="java.lang.String"/>
  38941. <exception name="IOException" type="java.io.IOException"/>
  38942. <doc>
  38943. <![CDATA[Get all various group memberships of a given user.
  38944. Returns EMPTY list in case of non-existing user
  38945. @param user User's name
  38946. @return group memberships of user
  38947. @throws IOException]]>
  38948. </doc>
  38949. </method>
  38950. <method name="cacheGroupsRefresh"
  38951. abstract="false" native="false" synchronized="false"
  38952. static="false" final="false" visibility="public"
  38953. deprecated="not deprecated">
  38954. <exception name="IOException" type="java.io.IOException"/>
  38955. <doc>
  38956. <![CDATA[Refresh the cache of groups and user mapping
  38957. @throws IOException]]>
  38958. </doc>
  38959. </method>
  38960. <method name="cacheGroupsAdd"
  38961. abstract="false" native="false" synchronized="false"
  38962. static="false" final="false" visibility="public"
  38963. deprecated="not deprecated">
  38964. <param name="groups" type="java.util.List"/>
  38965. <exception name="IOException" type="java.io.IOException"/>
  38966. <doc>
  38967. <![CDATA[Caches the group user information
  38968. @param groups list of groups to add to cache
  38969. @throws IOException]]>
  38970. </doc>
  38971. </method>
  38972. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  38973. transient="false" volatile="false"
  38974. static="true" final="true" visibility="public"
  38975. deprecated="not deprecated">
  38976. </field>
  38977. <doc>
  38978. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  38979. used by {@link Groups}.]]>
  38980. </doc>
  38981. </interface>
  38982. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  38983. <!-- start class org.apache.hadoop.security.IdMappingConstant -->
  38984. <class name="IdMappingConstant" extends="java.lang.Object"
  38985. abstract="false"
  38986. static="false" final="false" visibility="public"
  38987. deprecated="not deprecated">
  38988. <constructor name="IdMappingConstant"
  38989. static="false" final="false" visibility="public"
  38990. deprecated="not deprecated">
  38991. </constructor>
  38992. <field name="USERGROUPID_UPDATE_MILLIS_KEY" type="java.lang.String"
  38993. transient="false" volatile="false"
  38994. static="true" final="true" visibility="public"
  38995. deprecated="not deprecated">
  38996. <doc>
  38997. <![CDATA[Do user/group update every 15 minutes by default, minimum 1 minute]]>
  38998. </doc>
  38999. </field>
  39000. <field name="USERGROUPID_UPDATE_MILLIS_DEFAULT" type="long"
  39001. transient="false" volatile="false"
  39002. static="true" final="true" visibility="public"
  39003. deprecated="not deprecated">
  39004. </field>
  39005. <field name="USERGROUPID_UPDATE_MILLIS_MIN" type="long"
  39006. transient="false" volatile="false"
  39007. static="true" final="true" visibility="public"
  39008. deprecated="not deprecated">
  39009. </field>
  39010. <field name="UNKNOWN_USER" type="java.lang.String"
  39011. transient="false" volatile="false"
  39012. static="true" final="true" visibility="public"
  39013. deprecated="not deprecated">
  39014. </field>
  39015. <field name="UNKNOWN_GROUP" type="java.lang.String"
  39016. transient="false" volatile="false"
  39017. static="true" final="true" visibility="public"
  39018. deprecated="not deprecated">
  39019. </field>
  39020. <field name="STATIC_ID_MAPPING_FILE_KEY" type="java.lang.String"
  39021. transient="false" volatile="false"
  39022. static="true" final="true" visibility="public"
  39023. deprecated="not deprecated">
  39024. </field>
  39025. <field name="STATIC_ID_MAPPING_FILE_DEFAULT" type="java.lang.String"
  39026. transient="false" volatile="false"
  39027. static="true" final="true" visibility="public"
  39028. deprecated="not deprecated">
  39029. </field>
  39030. <doc>
  39031. <![CDATA[Some constants for IdMapping]]>
  39032. </doc>
  39033. </class>
  39034. <!-- end class org.apache.hadoop.security.IdMappingConstant -->
  39035. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  39036. <interface name="IdMappingServiceProvider" abstract="true"
  39037. static="false" final="false" visibility="public"
  39038. deprecated="not deprecated">
  39039. <method name="getUid" return="int"
  39040. abstract="false" native="false" synchronized="false"
  39041. static="false" final="false" visibility="public"
  39042. deprecated="not deprecated">
  39043. <param name="user" type="java.lang.String"/>
  39044. <exception name="IOException" type="java.io.IOException"/>
  39045. </method>
  39046. <method name="getGid" return="int"
  39047. abstract="false" native="false" synchronized="false"
  39048. static="false" final="false" visibility="public"
  39049. deprecated="not deprecated">
  39050. <param name="group" type="java.lang.String"/>
  39051. <exception name="IOException" type="java.io.IOException"/>
  39052. </method>
  39053. <method name="getUserName" return="java.lang.String"
  39054. abstract="false" native="false" synchronized="false"
  39055. static="false" final="false" visibility="public"
  39056. deprecated="not deprecated">
  39057. <param name="uid" type="int"/>
  39058. <param name="unknown" type="java.lang.String"/>
  39059. </method>
  39060. <method name="getGroupName" return="java.lang.String"
  39061. abstract="false" native="false" synchronized="false"
  39062. static="false" final="false" visibility="public"
  39063. deprecated="not deprecated">
  39064. <param name="gid" type="int"/>
  39065. <param name="unknown" type="java.lang.String"/>
  39066. </method>
  39067. <method name="getUidAllowingUnknown" return="int"
  39068. abstract="false" native="false" synchronized="false"
  39069. static="false" final="false" visibility="public"
  39070. deprecated="not deprecated">
  39071. <param name="user" type="java.lang.String"/>
  39072. </method>
  39073. <method name="getGidAllowingUnknown" return="int"
  39074. abstract="false" native="false" synchronized="false"
  39075. static="false" final="false" visibility="public"
  39076. deprecated="not deprecated">
  39077. <param name="group" type="java.lang.String"/>
  39078. </method>
  39079. <doc>
  39080. <![CDATA[An interface for the implementation of <userId, userName> mapping
  39081. and <groupId, groupName> mapping]]>
  39082. </doc>
  39083. </interface>
  39084. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  39085. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  39086. <class name="JniBasedUnixGroupsMappingWithFallback" extends="java.lang.Object"
  39087. abstract="false"
  39088. static="false" final="false" visibility="public"
  39089. deprecated="not deprecated">
  39090. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  39091. <constructor name="JniBasedUnixGroupsMappingWithFallback"
  39092. static="false" final="false" visibility="public"
  39093. deprecated="not deprecated">
  39094. </constructor>
  39095. <method name="getGroups" return="java.util.List"
  39096. abstract="false" native="false" synchronized="false"
  39097. static="false" final="false" visibility="public"
  39098. deprecated="not deprecated">
  39099. <param name="user" type="java.lang.String"/>
  39100. <exception name="IOException" type="java.io.IOException"/>
  39101. </method>
  39102. <method name="cacheGroupsRefresh"
  39103. abstract="false" native="false" synchronized="false"
  39104. static="false" final="false" visibility="public"
  39105. deprecated="not deprecated">
  39106. <exception name="IOException" type="java.io.IOException"/>
  39107. </method>
  39108. <method name="cacheGroupsAdd"
  39109. abstract="false" native="false" synchronized="false"
  39110. static="false" final="false" visibility="public"
  39111. deprecated="not deprecated">
  39112. <param name="groups" type="java.util.List"/>
  39113. <exception name="IOException" type="java.io.IOException"/>
  39114. </method>
  39115. </class>
  39116. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  39117. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  39118. <class name="JniBasedUnixGroupsNetgroupMappingWithFallback" extends="java.lang.Object"
  39119. abstract="false"
  39120. static="false" final="false" visibility="public"
  39121. deprecated="not deprecated">
  39122. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  39123. <constructor name="JniBasedUnixGroupsNetgroupMappingWithFallback"
  39124. static="false" final="false" visibility="public"
  39125. deprecated="not deprecated">
  39126. </constructor>
  39127. <method name="getGroups" return="java.util.List"
  39128. abstract="false" native="false" synchronized="false"
  39129. static="false" final="false" visibility="public"
  39130. deprecated="not deprecated">
  39131. <param name="user" type="java.lang.String"/>
  39132. <exception name="IOException" type="java.io.IOException"/>
  39133. </method>
  39134. <method name="cacheGroupsRefresh"
  39135. abstract="false" native="false" synchronized="false"
  39136. static="false" final="false" visibility="public"
  39137. deprecated="not deprecated">
  39138. <exception name="IOException" type="java.io.IOException"/>
  39139. </method>
  39140. <method name="cacheGroupsAdd"
  39141. abstract="false" native="false" synchronized="false"
  39142. static="false" final="false" visibility="public"
  39143. deprecated="not deprecated">
  39144. <param name="groups" type="java.util.List"/>
  39145. <exception name="IOException" type="java.io.IOException"/>
  39146. </method>
  39147. </class>
  39148. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  39149. <!-- start class org.apache.hadoop.security.ProviderUtils -->
  39150. <class name="ProviderUtils" extends="java.lang.Object"
  39151. abstract="false"
  39152. static="false" final="false" visibility="public"
  39153. deprecated="not deprecated">
  39154. <constructor name="ProviderUtils"
  39155. static="false" final="false" visibility="public"
  39156. deprecated="not deprecated">
  39157. </constructor>
  39158. <method name="unnestUri" return="org.apache.hadoop.fs.Path"
  39159. abstract="false" native="false" synchronized="false"
  39160. static="true" final="false" visibility="public"
  39161. deprecated="not deprecated">
  39162. <param name="nestedUri" type="java.net.URI"/>
  39163. <doc>
  39164. <![CDATA[Convert a nested URI to decode the underlying path. The translation takes
  39165. the authority and parses it into the underlying scheme and authority.
  39166. For example, "myscheme://hdfs@nn/my/path" is converted to
  39167. "hdfs://nn/my/path".
  39168. @param nestedUri the URI from the nested URI
  39169. @return the unnested path]]>
  39170. </doc>
  39171. </method>
  39172. </class>
  39173. <!-- end class org.apache.hadoop.security.ProviderUtils -->
  39174. <!-- start class org.apache.hadoop.security.SaslPlainServer.SaslPlainServerFactory -->
  39175. <class name="SaslPlainServer.SaslPlainServerFactory" extends="java.lang.Object"
  39176. abstract="false"
  39177. static="true" final="false" visibility="public"
  39178. deprecated="not deprecated">
  39179. <implements name="javax.security.sasl.SaslServerFactory"/>
  39180. <constructor name="SaslPlainServer.SaslPlainServerFactory"
  39181. static="false" final="false" visibility="public"
  39182. deprecated="not deprecated">
  39183. </constructor>
  39184. <method name="createSaslServer" return="javax.security.sasl.SaslServer"
  39185. abstract="false" native="false" synchronized="false"
  39186. static="false" final="false" visibility="public"
  39187. deprecated="not deprecated">
  39188. <param name="mechanism" type="java.lang.String"/>
  39189. <param name="protocol" type="java.lang.String"/>
  39190. <param name="serverName" type="java.lang.String"/>
  39191. <param name="props" type="java.util.Map"/>
  39192. <param name="cbh" type="javax.security.auth.callback.CallbackHandler"/>
  39193. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  39194. </method>
  39195. <method name="getMechanismNames" return="java.lang.String[]"
  39196. abstract="false" native="false" synchronized="false"
  39197. static="false" final="false" visibility="public"
  39198. deprecated="not deprecated">
  39199. <param name="props" type="java.util.Map"/>
  39200. </method>
  39201. </class>
  39202. <!-- end class org.apache.hadoop.security.SaslPlainServer.SaslPlainServerFactory -->
  39203. <!-- start class org.apache.hadoop.security.SaslPlainServer.SecurityProvider -->
  39204. <class name="SaslPlainServer.SecurityProvider" extends="java.security.Provider"
  39205. abstract="false"
  39206. static="true" final="false" visibility="public"
  39207. deprecated="not deprecated">
  39208. <constructor name="SaslPlainServer.SecurityProvider"
  39209. static="false" final="false" visibility="public"
  39210. deprecated="not deprecated">
  39211. </constructor>
  39212. </class>
  39213. <!-- end class org.apache.hadoop.security.SaslPlainServer.SecurityProvider -->
  39214. <!-- start class org.apache.hadoop.security.SaslPropertiesResolver -->
  39215. <class name="SaslPropertiesResolver" extends="java.lang.Object"
  39216. abstract="false"
  39217. static="false" final="false" visibility="public"
  39218. deprecated="not deprecated">
  39219. <implements name="org.apache.hadoop.conf.Configurable"/>
  39220. <constructor name="SaslPropertiesResolver"
  39221. static="false" final="false" visibility="public"
  39222. deprecated="not deprecated">
  39223. </constructor>
  39224. <method name="getInstance" return="org.apache.hadoop.security.SaslPropertiesResolver"
  39225. abstract="false" native="false" synchronized="false"
  39226. static="true" final="false" visibility="public"
  39227. deprecated="not deprecated">
  39228. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39229. <doc>
  39230. <![CDATA[Returns an instance of SaslPropertiesResolver.
  39231. Looks up the configuration to see if there is custom class specified.
  39232. Constructs the instance by passing the configuration directly to the
  39233. constructor to achieve thread safety using final fields.
  39234. @param conf
  39235. @return SaslPropertiesResolver]]>
  39236. </doc>
  39237. </method>
  39238. <method name="setConf"
  39239. abstract="false" native="false" synchronized="false"
  39240. static="false" final="false" visibility="public"
  39241. deprecated="not deprecated">
  39242. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39243. </method>
  39244. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  39245. abstract="false" native="false" synchronized="false"
  39246. static="false" final="false" visibility="public"
  39247. deprecated="not deprecated">
  39248. </method>
  39249. <method name="getDefaultProperties" return="java.util.Map"
  39250. abstract="false" native="false" synchronized="false"
  39251. static="false" final="false" visibility="public"
  39252. deprecated="not deprecated">
  39253. <doc>
  39254. <![CDATA[The default Sasl Properties read from the configuration
  39255. @return sasl Properties]]>
  39256. </doc>
  39257. </method>
  39258. <method name="getServerProperties" return="java.util.Map"
  39259. abstract="false" native="false" synchronized="false"
  39260. static="false" final="false" visibility="public"
  39261. deprecated="not deprecated">
  39262. <param name="clientAddress" type="java.net.InetAddress"/>
  39263. <doc>
  39264. <![CDATA[Identify the Sasl Properties to be used for a connection with a client.
  39265. @param clientAddress client's address
  39266. @return the sasl properties to be used for the connection.]]>
  39267. </doc>
  39268. </method>
  39269. <method name="getClientProperties" return="java.util.Map"
  39270. abstract="false" native="false" synchronized="false"
  39271. static="false" final="false" visibility="public"
  39272. deprecated="not deprecated">
  39273. <param name="serverAddress" type="java.net.InetAddress"/>
  39274. <doc>
  39275. <![CDATA[Identify the Sasl Properties to be used for a connection with a server.
  39276. @param serverAddress server's address
  39277. @return the sasl properties to be used for the connection.]]>
  39278. </doc>
  39279. </method>
  39280. <doc>
  39281. <![CDATA[Provides SaslProperties to be used for a connection.
  39282. The default implementation is to read the values from configuration.
  39283. This class can be overridden to provide custom SaslProperties.
  39284. The custom class can be specified via configuration.]]>
  39285. </doc>
  39286. </class>
  39287. <!-- end class org.apache.hadoop.security.SaslPropertiesResolver -->
  39288. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  39289. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  39290. abstract="false"
  39291. static="true" final="true" visibility="public"
  39292. deprecated="not deprecated">
  39293. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  39294. abstract="false" native="false" synchronized="false"
  39295. static="true" final="false" visibility="public"
  39296. deprecated="not deprecated">
  39297. </method>
  39298. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  39299. abstract="false" native="false" synchronized="false"
  39300. static="true" final="false" visibility="public"
  39301. deprecated="not deprecated">
  39302. <param name="name" type="java.lang.String"/>
  39303. </method>
  39304. <method name="getMechanismName" return="java.lang.String"
  39305. abstract="false" native="false" synchronized="false"
  39306. static="false" final="false" visibility="public"
  39307. deprecated="not deprecated">
  39308. <doc>
  39309. <![CDATA[Return the SASL mechanism name]]>
  39310. </doc>
  39311. </method>
  39312. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  39313. abstract="false" native="false" synchronized="false"
  39314. static="true" final="false" visibility="public"
  39315. deprecated="not deprecated">
  39316. <param name="in" type="java.io.DataInput"/>
  39317. <exception name="IOException" type="java.io.IOException"/>
  39318. <doc>
  39319. <![CDATA[Read from in]]>
  39320. </doc>
  39321. </method>
  39322. <method name="write"
  39323. abstract="false" native="false" synchronized="false"
  39324. static="false" final="false" visibility="public"
  39325. deprecated="not deprecated">
  39326. <param name="out" type="java.io.DataOutput"/>
  39327. <exception name="IOException" type="java.io.IOException"/>
  39328. <doc>
  39329. <![CDATA[Write to out]]>
  39330. </doc>
  39331. </method>
  39332. <field name="code" type="byte"
  39333. transient="false" volatile="false"
  39334. static="false" final="true" visibility="public"
  39335. deprecated="not deprecated">
  39336. <doc>
  39337. <![CDATA[The code for this method.]]>
  39338. </doc>
  39339. </field>
  39340. <field name="mechanismName" type="java.lang.String"
  39341. transient="false" volatile="false"
  39342. static="false" final="true" visibility="public"
  39343. deprecated="not deprecated">
  39344. </field>
  39345. <doc>
  39346. <![CDATA[Authentication method]]>
  39347. </doc>
  39348. </class>
  39349. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  39350. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  39351. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  39352. abstract="false"
  39353. static="true" final="true" visibility="public"
  39354. deprecated="not deprecated">
  39355. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  39356. abstract="false" native="false" synchronized="false"
  39357. static="true" final="false" visibility="public"
  39358. deprecated="not deprecated">
  39359. </method>
  39360. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  39361. abstract="false" native="false" synchronized="false"
  39362. static="true" final="false" visibility="public"
  39363. deprecated="not deprecated">
  39364. <param name="name" type="java.lang.String"/>
  39365. </method>
  39366. <method name="getSaslQop" return="java.lang.String"
  39367. abstract="false" native="false" synchronized="false"
  39368. static="false" final="false" visibility="public"
  39369. deprecated="not deprecated">
  39370. </method>
  39371. <field name="saslQop" type="java.lang.String"
  39372. transient="false" volatile="false"
  39373. static="false" final="true" visibility="public"
  39374. deprecated="not deprecated">
  39375. </field>
  39376. </class>
  39377. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  39378. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  39379. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  39380. abstract="false"
  39381. static="true" final="false" visibility="public"
  39382. deprecated="not deprecated">
  39383. <implements name="javax.security.auth.callback.CallbackHandler"/>
  39384. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  39385. static="false" final="false" visibility="public"
  39386. deprecated="not deprecated">
  39387. </constructor>
  39388. <method name="handle"
  39389. abstract="false" native="false" synchronized="false"
  39390. static="false" final="false" visibility="public"
  39391. deprecated="not deprecated">
  39392. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  39393. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  39394. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  39395. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  39396. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  39397. <exception name="IOException" type="java.io.IOException"/>
  39398. </method>
  39399. <doc>
  39400. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  39401. </doc>
  39402. </class>
  39403. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  39404. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  39405. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  39406. abstract="false"
  39407. static="true" final="false" visibility="public"
  39408. deprecated="not deprecated">
  39409. <implements name="javax.security.auth.callback.CallbackHandler"/>
  39410. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  39411. static="false" final="false" visibility="public"
  39412. deprecated="not deprecated">
  39413. </constructor>
  39414. <method name="handle"
  39415. abstract="false" native="false" synchronized="false"
  39416. static="false" final="false" visibility="public"
  39417. deprecated="not deprecated">
  39418. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  39419. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  39420. </method>
  39421. <doc>
  39422. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  39423. </doc>
  39424. </class>
  39425. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  39426. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  39427. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  39428. abstract="false"
  39429. static="true" final="false" visibility="protected"
  39430. deprecated="not deprecated">
  39431. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  39432. <constructor name="SecurityUtil.QualifiedHostResolver"
  39433. static="false" final="false" visibility="protected"
  39434. deprecated="not deprecated">
  39435. </constructor>
  39436. <method name="getByName" return="java.net.InetAddress"
  39437. abstract="false" native="false" synchronized="false"
  39438. static="false" final="false" visibility="public"
  39439. deprecated="not deprecated">
  39440. <param name="host" type="java.lang.String"/>
  39441. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  39442. <doc>
  39443. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  39444. hostname. InetAddress does not qualify an incomplete hostname that
  39445. is resolved via the domain search list.
  39446. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  39447. hostname, but it always return the A record whereas the given hostname
  39448. may be a CNAME.
  39449. @param host a hostname or ip address
  39450. @return InetAddress with the fully qualified hostname or ip
  39451. @throws UnknownHostException if host does not exist]]>
  39452. </doc>
  39453. </method>
  39454. <doc>
  39455. <![CDATA[This an alternate resolver with important properties that the standard
  39456. java resolver lacks:
  39457. 1) The hostname is fully qualified. This avoids security issues if not
  39458. all hosts in the cluster do not share the same search domains. It
  39459. also prevents other hosts from performing unnecessary dns searches.
  39460. In contrast, InetAddress simply returns the host as given.
  39461. 2) The InetAddress is instantiated with an exact host and IP to prevent
  39462. further unnecessary lookups. InetAddress may perform an unnecessary
  39463. reverse lookup for an IP.
  39464. 3) A call to getHostName() will always return the qualified hostname, or
  39465. more importantly, the IP if instantiated with an IP. This avoids
  39466. unnecessary dns timeouts if the host is not resolvable.
  39467. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  39468. connection re-attempt, that a reverse lookup to host and forward
  39469. lookup to IP is not performed since the reverse/forward mappings may
  39470. not always return the same IP. If the client initiated a connection
  39471. with an IP, then that IP is all that should ever be contacted.
  39472. NOTE: this resolver is only used if:
  39473. hadoop.security.token.service.use_ip=false]]>
  39474. </doc>
  39475. </class>
  39476. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  39477. <!-- start class org.apache.hadoop.security.ShellBasedIdMapping -->
  39478. <class name="ShellBasedIdMapping" extends="java.lang.Object"
  39479. abstract="false"
  39480. static="false" final="false" visibility="public"
  39481. deprecated="not deprecated">
  39482. <implements name="org.apache.hadoop.security.IdMappingServiceProvider"/>
  39483. <constructor name="ShellBasedIdMapping" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  39484. static="false" final="false" visibility="public"
  39485. deprecated="not deprecated">
  39486. <exception name="IOException" type="java.io.IOException"/>
  39487. </constructor>
  39488. <constructor name="ShellBasedIdMapping" type="org.apache.hadoop.conf.Configuration"
  39489. static="false" final="false" visibility="public"
  39490. deprecated="not deprecated">
  39491. <exception name="IOException" type="java.io.IOException"/>
  39492. </constructor>
  39493. <method name="getTimeout" return="long"
  39494. abstract="false" native="false" synchronized="false"
  39495. static="false" final="false" visibility="public"
  39496. deprecated="not deprecated">
  39497. </method>
  39498. <method name="updateMapInternal"
  39499. abstract="false" native="false" synchronized="false"
  39500. static="true" final="false" visibility="public"
  39501. deprecated="not deprecated">
  39502. <param name="map" type="com.google.common.collect.BiMap"/>
  39503. <param name="mapName" type="java.lang.String"/>
  39504. <param name="command" type="java.lang.String"/>
  39505. <param name="regex" type="java.lang.String"/>
  39506. <param name="staticMapping" type="java.util.Map"/>
  39507. <exception name="IOException" type="java.io.IOException"/>
  39508. <doc>
  39509. <![CDATA[Get the whole list of users and groups and save them in the maps.
  39510. @throws IOException]]>
  39511. </doc>
  39512. </method>
  39513. <method name="updateMaps"
  39514. abstract="false" native="false" synchronized="true"
  39515. static="false" final="false" visibility="public"
  39516. deprecated="not deprecated">
  39517. <exception name="IOException" type="java.io.IOException"/>
  39518. </method>
  39519. <method name="getUid" return="int"
  39520. abstract="false" native="false" synchronized="true"
  39521. static="false" final="false" visibility="public"
  39522. deprecated="not deprecated">
  39523. <param name="user" type="java.lang.String"/>
  39524. <exception name="IOException" type="java.io.IOException"/>
  39525. </method>
  39526. <method name="getGid" return="int"
  39527. abstract="false" native="false" synchronized="true"
  39528. static="false" final="false" visibility="public"
  39529. deprecated="not deprecated">
  39530. <param name="group" type="java.lang.String"/>
  39531. <exception name="IOException" type="java.io.IOException"/>
  39532. </method>
  39533. <method name="getUserName" return="java.lang.String"
  39534. abstract="false" native="false" synchronized="true"
  39535. static="false" final="false" visibility="public"
  39536. deprecated="not deprecated">
  39537. <param name="uid" type="int"/>
  39538. <param name="unknown" type="java.lang.String"/>
  39539. </method>
  39540. <method name="getGroupName" return="java.lang.String"
  39541. abstract="false" native="false" synchronized="true"
  39542. static="false" final="false" visibility="public"
  39543. deprecated="not deprecated">
  39544. <param name="gid" type="int"/>
  39545. <param name="unknown" type="java.lang.String"/>
  39546. </method>
  39547. <method name="getUidAllowingUnknown" return="int"
  39548. abstract="false" native="false" synchronized="false"
  39549. static="false" final="false" visibility="public"
  39550. deprecated="not deprecated">
  39551. <param name="user" type="java.lang.String"/>
  39552. </method>
  39553. <method name="getGidAllowingUnknown" return="int"
  39554. abstract="false" native="false" synchronized="false"
  39555. static="false" final="false" visibility="public"
  39556. deprecated="not deprecated">
  39557. <param name="group" type="java.lang.String"/>
  39558. </method>
  39559. <doc>
  39560. <![CDATA[A simple shell-based implementation of {@link IdMappingServiceProvider}
  39561. Map id to user name or group name. It does update every 15 minutes. Only a
  39562. single instance of this class is expected to be on the server.]]>
  39563. </doc>
  39564. </class>
  39565. <!-- end class org.apache.hadoop.security.ShellBasedIdMapping -->
  39566. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  39567. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  39568. abstract="false"
  39569. static="true" final="true" visibility="public"
  39570. deprecated="not deprecated">
  39571. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  39572. abstract="false" native="false" synchronized="false"
  39573. static="true" final="false" visibility="public"
  39574. deprecated="not deprecated">
  39575. </method>
  39576. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  39577. abstract="false" native="false" synchronized="false"
  39578. static="true" final="false" visibility="public"
  39579. deprecated="not deprecated">
  39580. <param name="name" type="java.lang.String"/>
  39581. </method>
  39582. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  39583. abstract="false" native="false" synchronized="false"
  39584. static="false" final="false" visibility="public"
  39585. deprecated="not deprecated">
  39586. </method>
  39587. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  39588. abstract="false" native="false" synchronized="false"
  39589. static="true" final="false" visibility="public"
  39590. deprecated="not deprecated">
  39591. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  39592. </method>
  39593. <doc>
  39594. <![CDATA[existing types of authentications' methods]]>
  39595. </doc>
  39596. </class>
  39597. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  39598. <!-- start class org.apache.hadoop.security.WhitelistBasedResolver -->
  39599. <class name="WhitelistBasedResolver" extends="org.apache.hadoop.security.SaslPropertiesResolver"
  39600. abstract="false"
  39601. static="false" final="false" visibility="public"
  39602. deprecated="not deprecated">
  39603. <constructor name="WhitelistBasedResolver"
  39604. static="false" final="false" visibility="public"
  39605. deprecated="not deprecated">
  39606. </constructor>
  39607. <method name="setConf"
  39608. abstract="false" native="false" synchronized="false"
  39609. static="false" final="false" visibility="public"
  39610. deprecated="not deprecated">
  39611. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39612. </method>
  39613. <method name="getServerProperties" return="java.util.Map"
  39614. abstract="false" native="false" synchronized="false"
  39615. static="false" final="false" visibility="public"
  39616. deprecated="not deprecated">
  39617. <param name="clientAddress" type="java.net.InetAddress"/>
  39618. <doc>
  39619. <![CDATA[Identify the Sasl Properties to be used for a connection with a client.
  39620. @param clientAddress client's address
  39621. @return the sasl properties to be used for the connection.]]>
  39622. </doc>
  39623. </method>
  39624. <method name="getServerProperties" return="java.util.Map"
  39625. abstract="false" native="false" synchronized="false"
  39626. static="false" final="false" visibility="public"
  39627. deprecated="not deprecated">
  39628. <param name="clientAddress" type="java.lang.String"/>
  39629. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  39630. </method>
  39631. <field name="LOG" type="org.apache.commons.logging.Log"
  39632. transient="false" volatile="false"
  39633. static="true" final="true" visibility="public"
  39634. deprecated="not deprecated">
  39635. </field>
  39636. <field name="HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE" type="java.lang.String"
  39637. transient="false" volatile="false"
  39638. static="true" final="true" visibility="public"
  39639. deprecated="not deprecated">
  39640. <doc>
  39641. <![CDATA[Path to the file to containing subnets and ip addresses to form fixed whitelist.]]>
  39642. </doc>
  39643. </field>
  39644. <field name="HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE" type="java.lang.String"
  39645. transient="false" volatile="false"
  39646. static="true" final="true" visibility="public"
  39647. deprecated="not deprecated">
  39648. <doc>
  39649. <![CDATA[Enables/Disables variable whitelist]]>
  39650. </doc>
  39651. </field>
  39652. <field name="HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE" type="java.lang.String"
  39653. transient="false" volatile="false"
  39654. static="true" final="true" visibility="public"
  39655. deprecated="not deprecated">
  39656. <doc>
  39657. <![CDATA[Path to the file to containing subnets and ip addresses to form variable whitelist.]]>
  39658. </doc>
  39659. </field>
  39660. <field name="HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS" type="java.lang.String"
  39661. transient="false" volatile="false"
  39662. static="true" final="true" visibility="public"
  39663. deprecated="not deprecated">
  39664. <doc>
  39665. <![CDATA[time in seconds by which the variable whitelist file is checked for updates]]>
  39666. </doc>
  39667. </field>
  39668. <field name="HADOOP_RPC_PROTECTION_NON_WHITELIST" type="java.lang.String"
  39669. transient="false" volatile="false"
  39670. static="true" final="true" visibility="public"
  39671. deprecated="not deprecated">
  39672. <doc>
  39673. <![CDATA[comma separated list containing alternate hadoop.rpc.protection values for
  39674. clients which are not in whitelist]]>
  39675. </doc>
  39676. </field>
  39677. <doc>
  39678. <![CDATA[An implementation of the SaslPropertiesResolver.
  39679. Uses a white list of IPs.
  39680. If the connection's IP address is in the list of IP addresses, the salProperties
  39681. will be unchanged.
  39682. If the connection's IP is not in the list of IP addresses, then QOP for the
  39683. connection will be restricted to "hadoop.rpc.protection.non-whitelist"
  39684. Uses 3 IPList implementations together to form an aggregate whitelist.
  39685. 1. ConstantIPList - to check against a set of hardcoded IPs
  39686. 2. Fixed IP List - to check against a list of IP addresses which are specified externally, but
  39687. will not change over runtime.
  39688. 3. Variable IP List - to check against a list of IP addresses which are specified externally and
  39689. could change during runtime.
  39690. A connection IP address will checked against these 3 IP Lists in the order specified above.
  39691. Once a match is found , the IP address is determined to be in whitelist.
  39692. The behavior can be configured using a bunch of configuration parameters.]]>
  39693. </doc>
  39694. </class>
  39695. <!-- end class org.apache.hadoop.security.WhitelistBasedResolver -->
  39696. </package>
  39697. <package name="org.apache.hadoop.security.alias">
  39698. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  39699. <class name="CredentialProvider" extends="java.lang.Object"
  39700. abstract="true"
  39701. static="false" final="false" visibility="public"
  39702. deprecated="not deprecated">
  39703. <constructor name="CredentialProvider"
  39704. static="false" final="false" visibility="public"
  39705. deprecated="not deprecated">
  39706. </constructor>
  39707. <method name="isTransient" return="boolean"
  39708. abstract="false" native="false" synchronized="false"
  39709. static="false" final="false" visibility="public"
  39710. deprecated="not deprecated">
  39711. <doc>
  39712. <![CDATA[Indicates whether this provider represents a store
  39713. that is intended for transient use - such as the UserProvider
  39714. is. These providers are generally used to provide job access to
  39715. passwords rather than for long term storage.
  39716. @return true if transient, false otherwise]]>
  39717. </doc>
  39718. </method>
  39719. <method name="flush"
  39720. abstract="true" native="false" synchronized="false"
  39721. static="false" final="false" visibility="public"
  39722. deprecated="not deprecated">
  39723. <exception name="IOException" type="java.io.IOException"/>
  39724. <doc>
  39725. <![CDATA[Ensures that any changes to the credentials are written to persistent store.
  39726. @throws IOException]]>
  39727. </doc>
  39728. </method>
  39729. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  39730. abstract="true" native="false" synchronized="false"
  39731. static="false" final="false" visibility="public"
  39732. deprecated="not deprecated">
  39733. <param name="alias" type="java.lang.String"/>
  39734. <exception name="IOException" type="java.io.IOException"/>
  39735. <doc>
  39736. <![CDATA[Get the credential entry for a specific alias.
  39737. @param alias the name of a specific credential
  39738. @return the credentialEntry
  39739. @throws IOException]]>
  39740. </doc>
  39741. </method>
  39742. <method name="getAliases" return="java.util.List"
  39743. abstract="true" native="false" synchronized="false"
  39744. static="false" final="false" visibility="public"
  39745. deprecated="not deprecated">
  39746. <exception name="IOException" type="java.io.IOException"/>
  39747. <doc>
  39748. <![CDATA[Get the aliases for all credentials.
  39749. @return the list of alias names
  39750. @throws IOException]]>
  39751. </doc>
  39752. </method>
  39753. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  39754. abstract="true" native="false" synchronized="false"
  39755. static="false" final="false" visibility="public"
  39756. deprecated="not deprecated">
  39757. <param name="name" type="java.lang.String"/>
  39758. <param name="credential" type="char[]"/>
  39759. <exception name="IOException" type="java.io.IOException"/>
  39760. <doc>
  39761. <![CDATA[Create a new credential. The given alias must not already exist.
  39762. @param name the alias of the credential
  39763. @param credential the credential value for the alias.
  39764. @throws IOException]]>
  39765. </doc>
  39766. </method>
  39767. <method name="deleteCredentialEntry"
  39768. abstract="true" native="false" synchronized="false"
  39769. static="false" final="false" visibility="public"
  39770. deprecated="not deprecated">
  39771. <param name="name" type="java.lang.String"/>
  39772. <exception name="IOException" type="java.io.IOException"/>
  39773. <doc>
  39774. <![CDATA[Delete the given credential.
  39775. @param name the alias of the credential to delete
  39776. @throws IOException]]>
  39777. </doc>
  39778. </method>
  39779. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  39780. transient="false" volatile="false"
  39781. static="true" final="true" visibility="public"
  39782. deprecated="not deprecated">
  39783. </field>
  39784. <doc>
  39785. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  39786. abstraction to separate credential storage from users of them. It
  39787. is intended to support getting or storing passwords in a variety of ways,
  39788. including third party bindings.]]>
  39789. </doc>
  39790. </class>
  39791. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  39792. <!-- start class org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry -->
  39793. <class name="CredentialProvider.CredentialEntry" extends="java.lang.Object"
  39794. abstract="false"
  39795. static="true" final="false" visibility="public"
  39796. deprecated="not deprecated">
  39797. <constructor name="CredentialProvider.CredentialEntry" type="java.lang.String, char[]"
  39798. static="false" final="false" visibility="protected"
  39799. deprecated="not deprecated">
  39800. </constructor>
  39801. <method name="getAlias" return="java.lang.String"
  39802. abstract="false" native="false" synchronized="false"
  39803. static="false" final="false" visibility="public"
  39804. deprecated="not deprecated">
  39805. </method>
  39806. <method name="getCredential" return="char[]"
  39807. abstract="false" native="false" synchronized="false"
  39808. static="false" final="false" visibility="public"
  39809. deprecated="not deprecated">
  39810. </method>
  39811. <method name="toString" return="java.lang.String"
  39812. abstract="false" native="false" synchronized="false"
  39813. static="false" final="false" visibility="public"
  39814. deprecated="not deprecated">
  39815. </method>
  39816. <doc>
  39817. <![CDATA[The combination of both the alias and the actual credential value.]]>
  39818. </doc>
  39819. </class>
  39820. <!-- end class org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry -->
  39821. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  39822. <class name="CredentialProviderFactory" extends="java.lang.Object"
  39823. abstract="true"
  39824. static="false" final="false" visibility="public"
  39825. deprecated="not deprecated">
  39826. <constructor name="CredentialProviderFactory"
  39827. static="false" final="false" visibility="public"
  39828. deprecated="not deprecated">
  39829. </constructor>
  39830. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  39831. abstract="true" native="false" synchronized="false"
  39832. static="false" final="false" visibility="public"
  39833. deprecated="not deprecated">
  39834. <param name="providerName" type="java.net.URI"/>
  39835. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39836. <exception name="IOException" type="java.io.IOException"/>
  39837. </method>
  39838. <method name="getProviders" return="java.util.List"
  39839. abstract="false" native="false" synchronized="false"
  39840. static="true" final="false" visibility="public"
  39841. deprecated="not deprecated">
  39842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39843. <exception name="IOException" type="java.io.IOException"/>
  39844. </method>
  39845. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  39846. transient="false" volatile="false"
  39847. static="true" final="true" visibility="public"
  39848. deprecated="not deprecated">
  39849. </field>
  39850. <doc>
  39851. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  39852. Configuration. It uses a service loader interface to find the available
  39853. CredentialProviders and create them based on the list of URIs.]]>
  39854. </doc>
  39855. </class>
  39856. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  39857. <!-- start class org.apache.hadoop.security.alias.CredentialShell -->
  39858. <class name="CredentialShell" extends="org.apache.hadoop.conf.Configured"
  39859. abstract="false"
  39860. static="false" final="false" visibility="public"
  39861. deprecated="not deprecated">
  39862. <implements name="org.apache.hadoop.util.Tool"/>
  39863. <constructor name="CredentialShell"
  39864. static="false" final="false" visibility="public"
  39865. deprecated="not deprecated">
  39866. </constructor>
  39867. <method name="run" return="int"
  39868. abstract="false" native="false" synchronized="false"
  39869. static="false" final="false" visibility="public"
  39870. deprecated="not deprecated">
  39871. <param name="args" type="java.lang.String[]"/>
  39872. <exception name="Exception" type="java.lang.Exception"/>
  39873. </method>
  39874. <method name="init" return="int"
  39875. abstract="false" native="false" synchronized="false"
  39876. static="false" final="false" visibility="protected"
  39877. deprecated="not deprecated">
  39878. <param name="args" type="java.lang.String[]"/>
  39879. <exception name="IOException" type="java.io.IOException"/>
  39880. <doc>
  39881. <![CDATA[Parse the command line arguments and initialize the data
  39882. <pre>
  39883. % hadoop credential create alias [-provider providerPath]
  39884. % hadoop credential list [-provider providerPath]
  39885. % hadoop credential delete alias [-provider providerPath] [-i]
  39886. </pre>
  39887. @param args
  39888. @return 0 if the argument(s) were recognized, 1 otherwise
  39889. @throws IOException]]>
  39890. </doc>
  39891. </method>
  39892. <method name="promptForCredential" return="char[]"
  39893. abstract="false" native="false" synchronized="false"
  39894. static="false" final="false" visibility="protected"
  39895. deprecated="not deprecated">
  39896. <exception name="IOException" type="java.io.IOException"/>
  39897. </method>
  39898. <method name="getPasswordReader" return="org.apache.hadoop.security.alias.CredentialShell.PasswordReader"
  39899. abstract="false" native="false" synchronized="false"
  39900. static="false" final="false" visibility="public"
  39901. deprecated="not deprecated">
  39902. </method>
  39903. <method name="setPasswordReader"
  39904. abstract="false" native="false" synchronized="false"
  39905. static="false" final="false" visibility="public"
  39906. deprecated="not deprecated">
  39907. <param name="reader" type="org.apache.hadoop.security.alias.CredentialShell.PasswordReader"/>
  39908. </method>
  39909. <method name="main"
  39910. abstract="false" native="false" synchronized="false"
  39911. static="true" final="false" visibility="public"
  39912. deprecated="not deprecated">
  39913. <param name="args" type="java.lang.String[]"/>
  39914. <exception name="Exception" type="java.lang.Exception"/>
  39915. <doc>
  39916. <![CDATA[Main program.
  39917. @param args
  39918. Command line arguments
  39919. @throws Exception]]>
  39920. </doc>
  39921. </method>
  39922. <field name="out" type="java.io.PrintStream"
  39923. transient="false" volatile="false"
  39924. static="false" final="false" visibility="public"
  39925. deprecated="not deprecated">
  39926. <doc>
  39927. <![CDATA[allows stdout to be captured if necessary]]>
  39928. </doc>
  39929. </field>
  39930. <field name="err" type="java.io.PrintStream"
  39931. transient="false" volatile="false"
  39932. static="false" final="false" visibility="public"
  39933. deprecated="not deprecated">
  39934. <doc>
  39935. <![CDATA[allows stderr to be captured if necessary]]>
  39936. </doc>
  39937. </field>
  39938. <doc>
  39939. <![CDATA[This program is the CLI utility for the CredentialProvider facilities in
  39940. Hadoop.]]>
  39941. </doc>
  39942. </class>
  39943. <!-- end class org.apache.hadoop.security.alias.CredentialShell -->
  39944. <!-- start class org.apache.hadoop.security.alias.CredentialShell.PasswordReader -->
  39945. <class name="CredentialShell.PasswordReader" extends="java.lang.Object"
  39946. abstract="false"
  39947. static="true" final="false" visibility="public"
  39948. deprecated="not deprecated">
  39949. <constructor name="CredentialShell.PasswordReader"
  39950. static="false" final="false" visibility="public"
  39951. deprecated="not deprecated">
  39952. </constructor>
  39953. <method name="readPassword" return="char[]"
  39954. abstract="false" native="false" synchronized="false"
  39955. static="false" final="false" visibility="public"
  39956. deprecated="not deprecated">
  39957. <param name="prompt" type="java.lang.String"/>
  39958. </method>
  39959. <method name="format"
  39960. abstract="false" native="false" synchronized="false"
  39961. static="false" final="false" visibility="public"
  39962. deprecated="not deprecated">
  39963. <param name="message" type="java.lang.String"/>
  39964. </method>
  39965. </class>
  39966. <!-- end class org.apache.hadoop.security.alias.CredentialShell.PasswordReader -->
  39967. <!-- start class org.apache.hadoop.security.alias.JavaKeyStoreProvider.Factory -->
  39968. <class name="JavaKeyStoreProvider.Factory" extends="org.apache.hadoop.security.alias.CredentialProviderFactory"
  39969. abstract="false"
  39970. static="true" final="false" visibility="public"
  39971. deprecated="not deprecated">
  39972. <constructor name="JavaKeyStoreProvider.Factory"
  39973. static="false" final="false" visibility="public"
  39974. deprecated="not deprecated">
  39975. </constructor>
  39976. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  39977. abstract="false" native="false" synchronized="false"
  39978. static="false" final="false" visibility="public"
  39979. deprecated="not deprecated">
  39980. <param name="providerName" type="java.net.URI"/>
  39981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39982. <exception name="IOException" type="java.io.IOException"/>
  39983. </method>
  39984. <doc>
  39985. <![CDATA[The factory to create JksProviders, which is used by the ServiceLoader.]]>
  39986. </doc>
  39987. </class>
  39988. <!-- end class org.apache.hadoop.security.alias.JavaKeyStoreProvider.Factory -->
  39989. <!-- start class org.apache.hadoop.security.alias.UserProvider.Factory -->
  39990. <class name="UserProvider.Factory" extends="org.apache.hadoop.security.alias.CredentialProviderFactory"
  39991. abstract="false"
  39992. static="true" final="false" visibility="public"
  39993. deprecated="not deprecated">
  39994. <constructor name="UserProvider.Factory"
  39995. static="false" final="false" visibility="public"
  39996. deprecated="not deprecated">
  39997. </constructor>
  39998. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  39999. abstract="false" native="false" synchronized="false"
  40000. static="false" final="false" visibility="public"
  40001. deprecated="not deprecated">
  40002. <param name="providerName" type="java.net.URI"/>
  40003. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40004. <exception name="IOException" type="java.io.IOException"/>
  40005. </method>
  40006. </class>
  40007. <!-- end class org.apache.hadoop.security.alias.UserProvider.Factory -->
  40008. </package>
  40009. <package name="org.apache.hadoop.security.protocolPB">
  40010. <!-- start class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolClientSideTranslatorPB -->
  40011. <class name="RefreshAuthorizationPolicyProtocolClientSideTranslatorPB" extends="java.lang.Object"
  40012. abstract="false"
  40013. static="false" final="false" visibility="public"
  40014. deprecated="not deprecated">
  40015. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  40016. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  40017. <implements name="java.io.Closeable"/>
  40018. <constructor name="RefreshAuthorizationPolicyProtocolClientSideTranslatorPB" type="org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolPB"
  40019. static="false" final="false" visibility="public"
  40020. deprecated="not deprecated">
  40021. </constructor>
  40022. <method name="close"
  40023. abstract="false" native="false" synchronized="false"
  40024. static="false" final="false" visibility="public"
  40025. deprecated="not deprecated">
  40026. <exception name="IOException" type="java.io.IOException"/>
  40027. </method>
  40028. <method name="refreshServiceAcl"
  40029. abstract="false" native="false" synchronized="false"
  40030. static="false" final="false" visibility="public"
  40031. deprecated="not deprecated">
  40032. <exception name="IOException" type="java.io.IOException"/>
  40033. </method>
  40034. <method name="isMethodSupported" return="boolean"
  40035. abstract="false" native="false" synchronized="false"
  40036. static="false" final="false" visibility="public"
  40037. deprecated="not deprecated">
  40038. <param name="methodName" type="java.lang.String"/>
  40039. <exception name="IOException" type="java.io.IOException"/>
  40040. </method>
  40041. </class>
  40042. <!-- end class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolClientSideTranslatorPB -->
  40043. <!-- start class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolServerSideTranslatorPB -->
  40044. <class name="RefreshAuthorizationPolicyProtocolServerSideTranslatorPB" extends="java.lang.Object"
  40045. abstract="false"
  40046. static="false" final="false" visibility="public"
  40047. deprecated="not deprecated">
  40048. <implements name="org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolPB"/>
  40049. <constructor name="RefreshAuthorizationPolicyProtocolServerSideTranslatorPB" type="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"
  40050. static="false" final="false" visibility="public"
  40051. deprecated="not deprecated">
  40052. </constructor>
  40053. <method name="refreshServiceAcl" return="org.apache.hadoop.security.proto.RefreshAuthorizationPolicyProtocolProtos.RefreshServiceAclResponseProto"
  40054. abstract="false" native="false" synchronized="false"
  40055. static="false" final="false" visibility="public"
  40056. deprecated="not deprecated">
  40057. <param name="controller" type="com.google.protobuf.RpcController"/>
  40058. <param name="request" type="org.apache.hadoop.security.proto.RefreshAuthorizationPolicyProtocolProtos.RefreshServiceAclRequestProto"/>
  40059. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  40060. </method>
  40061. </class>
  40062. <!-- end class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolServerSideTranslatorPB -->
  40063. <!-- start class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolClientSideTranslatorPB -->
  40064. <class name="RefreshUserMappingsProtocolClientSideTranslatorPB" extends="java.lang.Object"
  40065. abstract="false"
  40066. static="false" final="false" visibility="public"
  40067. deprecated="not deprecated">
  40068. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  40069. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  40070. <implements name="java.io.Closeable"/>
  40071. <constructor name="RefreshUserMappingsProtocolClientSideTranslatorPB" type="org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolPB"
  40072. static="false" final="false" visibility="public"
  40073. deprecated="not deprecated">
  40074. </constructor>
  40075. <method name="close"
  40076. abstract="false" native="false" synchronized="false"
  40077. static="false" final="false" visibility="public"
  40078. deprecated="not deprecated">
  40079. <exception name="IOException" type="java.io.IOException"/>
  40080. </method>
  40081. <method name="refreshUserToGroupsMappings"
  40082. abstract="false" native="false" synchronized="false"
  40083. static="false" final="false" visibility="public"
  40084. deprecated="not deprecated">
  40085. <exception name="IOException" type="java.io.IOException"/>
  40086. </method>
  40087. <method name="refreshSuperUserGroupsConfiguration"
  40088. abstract="false" native="false" synchronized="false"
  40089. static="false" final="false" visibility="public"
  40090. deprecated="not deprecated">
  40091. <exception name="IOException" type="java.io.IOException"/>
  40092. </method>
  40093. <method name="isMethodSupported" return="boolean"
  40094. abstract="false" native="false" synchronized="false"
  40095. static="false" final="false" visibility="public"
  40096. deprecated="not deprecated">
  40097. <param name="methodName" type="java.lang.String"/>
  40098. <exception name="IOException" type="java.io.IOException"/>
  40099. </method>
  40100. </class>
  40101. <!-- end class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolClientSideTranslatorPB -->
  40102. <!-- start class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolServerSideTranslatorPB -->
  40103. <class name="RefreshUserMappingsProtocolServerSideTranslatorPB" extends="java.lang.Object"
  40104. abstract="false"
  40105. static="false" final="false" visibility="public"
  40106. deprecated="not deprecated">
  40107. <implements name="org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolPB"/>
  40108. <constructor name="RefreshUserMappingsProtocolServerSideTranslatorPB" type="org.apache.hadoop.security.RefreshUserMappingsProtocol"
  40109. static="false" final="false" visibility="public"
  40110. deprecated="not deprecated">
  40111. </constructor>
  40112. <method name="refreshUserToGroupsMappings" return="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshUserToGroupsMappingsResponseProto"
  40113. abstract="false" native="false" synchronized="false"
  40114. static="false" final="false" visibility="public"
  40115. deprecated="not deprecated">
  40116. <param name="controller" type="com.google.protobuf.RpcController"/>
  40117. <param name="request" type="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshUserToGroupsMappingsRequestProto"/>
  40118. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  40119. </method>
  40120. <method name="refreshSuperUserGroupsConfiguration" return="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshSuperUserGroupsConfigurationResponseProto"
  40121. abstract="false" native="false" synchronized="false"
  40122. static="false" final="false" visibility="public"
  40123. deprecated="not deprecated">
  40124. <param name="controller" type="com.google.protobuf.RpcController"/>
  40125. <param name="request" type="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshSuperUserGroupsConfigurationRequestProto"/>
  40126. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  40127. </method>
  40128. </class>
  40129. <!-- end class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolServerSideTranslatorPB -->
  40130. </package>
  40131. <package name="org.apache.hadoop.security.ssl">
  40132. <!-- start class org.apache.hadoop.security.ssl.SSLHostnameVerifier.AbstractVerifier -->
  40133. <class name="SSLHostnameVerifier.AbstractVerifier" extends="java.lang.Object"
  40134. abstract="true"
  40135. static="true" final="false" visibility="public"
  40136. deprecated="not deprecated">
  40137. <implements name="org.apache.hadoop.security.ssl.SSLHostnameVerifier"/>
  40138. <constructor name="SSLHostnameVerifier.AbstractVerifier"
  40139. static="false" final="false" visibility="protected"
  40140. deprecated="not deprecated">
  40141. </constructor>
  40142. <method name="verify" return="boolean"
  40143. abstract="false" native="false" synchronized="false"
  40144. static="false" final="false" visibility="public"
  40145. deprecated="not deprecated">
  40146. <param name="host" type="java.lang.String"/>
  40147. <param name="session" type="javax.net.ssl.SSLSession"/>
  40148. <doc>
  40149. <![CDATA[The javax.net.ssl.HostnameVerifier contract.
  40150. @param host 'hostname' we used to create our socket
  40151. @param session SSLSession with the remote server
  40152. @return true if the host matched the one in the certificate.]]>
  40153. </doc>
  40154. </method>
  40155. <method name="check"
  40156. abstract="false" native="false" synchronized="false"
  40157. static="false" final="false" visibility="public"
  40158. deprecated="not deprecated">
  40159. <param name="host" type="java.lang.String"/>
  40160. <param name="ssl" type="javax.net.ssl.SSLSocket"/>
  40161. <exception name="IOException" type="java.io.IOException"/>
  40162. </method>
  40163. <method name="check"
  40164. abstract="false" native="false" synchronized="false"
  40165. static="false" final="false" visibility="public"
  40166. deprecated="not deprecated">
  40167. <param name="host" type="java.lang.String"/>
  40168. <param name="cert" type="java.security.cert.X509Certificate"/>
  40169. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  40170. </method>
  40171. <method name="check"
  40172. abstract="false" native="false" synchronized="false"
  40173. static="false" final="false" visibility="public"
  40174. deprecated="not deprecated">
  40175. <param name="host" type="java.lang.String"/>
  40176. <param name="cns" type="java.lang.String[]"/>
  40177. <param name="subjectAlts" type="java.lang.String[]"/>
  40178. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  40179. </method>
  40180. <method name="check"
  40181. abstract="false" native="false" synchronized="false"
  40182. static="false" final="false" visibility="public"
  40183. deprecated="not deprecated">
  40184. <param name="host" type="java.lang.String[]"/>
  40185. <param name="ssl" type="javax.net.ssl.SSLSocket"/>
  40186. <exception name="IOException" type="java.io.IOException"/>
  40187. </method>
  40188. <method name="check"
  40189. abstract="false" native="false" synchronized="false"
  40190. static="false" final="false" visibility="public"
  40191. deprecated="not deprecated">
  40192. <param name="host" type="java.lang.String[]"/>
  40193. <param name="cert" type="java.security.cert.X509Certificate"/>
  40194. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  40195. </method>
  40196. <method name="check"
  40197. abstract="false" native="false" synchronized="false"
  40198. static="false" final="false" visibility="public"
  40199. deprecated="not deprecated">
  40200. <param name="hosts" type="java.lang.String[]"/>
  40201. <param name="cns" type="java.lang.String[]"/>
  40202. <param name="subjectAlts" type="java.lang.String[]"/>
  40203. <param name="ie6" type="boolean"/>
  40204. <param name="strictWithSubDomains" type="boolean"/>
  40205. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  40206. </method>
  40207. <method name="isIP4Address" return="boolean"
  40208. abstract="false" native="false" synchronized="false"
  40209. static="true" final="false" visibility="public"
  40210. deprecated="not deprecated">
  40211. <param name="cn" type="java.lang.String"/>
  40212. </method>
  40213. <method name="acceptableCountryWildcard" return="boolean"
  40214. abstract="false" native="false" synchronized="false"
  40215. static="true" final="false" visibility="public"
  40216. deprecated="not deprecated">
  40217. <param name="cn" type="java.lang.String"/>
  40218. </method>
  40219. <method name="isLocalhost" return="boolean"
  40220. abstract="false" native="false" synchronized="false"
  40221. static="true" final="false" visibility="public"
  40222. deprecated="not deprecated">
  40223. <param name="host" type="java.lang.String"/>
  40224. </method>
  40225. <method name="countDots" return="int"
  40226. abstract="false" native="false" synchronized="false"
  40227. static="true" final="false" visibility="public"
  40228. deprecated="not deprecated">
  40229. <param name="s" type="java.lang.String"/>
  40230. <doc>
  40231. <![CDATA[Counts the number of dots "." in a string.
  40232. @param s string to count dots from
  40233. @return number of dots]]>
  40234. </doc>
  40235. </method>
  40236. </class>
  40237. <!-- end class org.apache.hadoop.security.ssl.SSLHostnameVerifier.AbstractVerifier -->
  40238. <!-- start class org.apache.hadoop.security.ssl.SSLHostnameVerifier.Certificates -->
  40239. <class name="SSLHostnameVerifier.Certificates" extends="java.lang.Object"
  40240. abstract="false"
  40241. static="true" final="false" visibility="public"
  40242. deprecated="not deprecated">
  40243. <constructor name="SSLHostnameVerifier.Certificates"
  40244. static="false" final="false" visibility="public"
  40245. deprecated="not deprecated">
  40246. </constructor>
  40247. <method name="getCNs" return="java.lang.String[]"
  40248. abstract="false" native="false" synchronized="false"
  40249. static="true" final="false" visibility="public"
  40250. deprecated="not deprecated">
  40251. <param name="cert" type="java.security.cert.X509Certificate"/>
  40252. </method>
  40253. <method name="getDNSSubjectAlts" return="java.lang.String[]"
  40254. abstract="false" native="false" synchronized="false"
  40255. static="true" final="false" visibility="public"
  40256. deprecated="not deprecated">
  40257. <param name="cert" type="java.security.cert.X509Certificate"/>
  40258. <doc>
  40259. <![CDATA[Extracts the array of SubjectAlt DNS names from an X509Certificate.
  40260. Returns null if there aren't any.
  40261. <p/>
  40262. Note: Java doesn't appear able to extract international characters
  40263. from the SubjectAlts. It can only extract international characters
  40264. from the CN field.
  40265. <p/>
  40266. (Or maybe the version of OpenSSL I'm using to test isn't storing the
  40267. international characters correctly in the SubjectAlts?).
  40268. @param cert X509Certificate
  40269. @return Array of SubjectALT DNS names stored in the certificate.]]>
  40270. </doc>
  40271. </method>
  40272. </class>
  40273. <!-- end class org.apache.hadoop.security.ssl.SSLHostnameVerifier.Certificates -->
  40274. <!-- start class org.apache.hadoop.security.ssl.SslSocketConnectorSecure -->
  40275. <class name="SslSocketConnectorSecure" extends="org.mortbay.jetty.security.SslSocketConnector"
  40276. abstract="false"
  40277. static="false" final="false" visibility="public"
  40278. deprecated="not deprecated">
  40279. <constructor name="SslSocketConnectorSecure"
  40280. static="false" final="false" visibility="public"
  40281. deprecated="not deprecated">
  40282. </constructor>
  40283. <method name="newServerSocket" return="java.net.ServerSocket"
  40284. abstract="false" native="false" synchronized="false"
  40285. static="false" final="false" visibility="protected"
  40286. deprecated="not deprecated">
  40287. <param name="host" type="java.lang.String"/>
  40288. <param name="port" type="int"/>
  40289. <param name="backlog" type="int"/>
  40290. <exception name="IOException" type="java.io.IOException"/>
  40291. <doc>
  40292. <![CDATA[Create a new ServerSocket that will not accept SSLv3 connections,
  40293. but will accept TLSv1.x connections.]]>
  40294. </doc>
  40295. </method>
  40296. <doc>
  40297. <![CDATA[This subclass of the Jetty SslSocketConnector exists solely to control
  40298. the TLS protocol versions allowed. This is fallout from the POODLE
  40299. vulnerability (CVE-2014-3566), which requires that SSLv3 be disabled.
  40300. Only TLS 1.0 and later protocols are allowed.]]>
  40301. </doc>
  40302. </class>
  40303. <!-- end class org.apache.hadoop.security.ssl.SslSocketConnectorSecure -->
  40304. </package>
  40305. <package name="org.apache.hadoop.security.token.delegation.web">
  40306. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  40307. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  40308. abstract="false"
  40309. static="false" final="false" visibility="public"
  40310. deprecated="not deprecated">
  40311. <constructor name="DelegationTokenAuthenticatedURL"
  40312. static="false" final="false" visibility="public"
  40313. deprecated="not deprecated">
  40314. <doc>
  40315. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  40316. <p/>
  40317. An instance of the default {@link DelegationTokenAuthenticator} will be
  40318. used.]]>
  40319. </doc>
  40320. </constructor>
  40321. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  40322. static="false" final="false" visibility="public"
  40323. deprecated="not deprecated">
  40324. <doc>
  40325. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  40326. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  40327. use, if <code>null</code> the default one will be used.]]>
  40328. </doc>
  40329. </constructor>
  40330. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  40331. static="false" final="false" visibility="public"
  40332. deprecated="not deprecated">
  40333. <doc>
  40334. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  40335. {@link DelegationTokenAuthenticator} class.
  40336. @param connConfigurator a connection configurator.]]>
  40337. </doc>
  40338. </constructor>
  40339. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  40340. static="false" final="false" visibility="public"
  40341. deprecated="not deprecated">
  40342. <doc>
  40343. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  40344. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  40345. use, if <code>null</code> the default one will be used.
  40346. @param connConfigurator a connection configurator.]]>
  40347. </doc>
  40348. </constructor>
  40349. <method name="setDefaultDelegationTokenAuthenticator"
  40350. abstract="false" native="false" synchronized="false"
  40351. static="true" final="false" visibility="public"
  40352. deprecated="not deprecated">
  40353. <param name="authenticator" type="java.lang.Class"/>
  40354. <doc>
  40355. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  40356. {@link DelegationTokenAuthenticatedURL} instance is created without
  40357. specifying one.
  40358. The default class is {@link KerberosDelegationTokenAuthenticator}
  40359. @param authenticator the authenticator class to use as default.]]>
  40360. </doc>
  40361. </method>
  40362. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  40363. abstract="false" native="false" synchronized="false"
  40364. static="true" final="false" visibility="public"
  40365. deprecated="not deprecated">
  40366. <doc>
  40367. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  40368. an {@link DelegationTokenAuthenticatedURL} instance is created without
  40369. specifying one.
  40370. <p/>
  40371. The default class is {@link KerberosDelegationTokenAuthenticator}
  40372. @return the delegation token authenticator class to use as default.]]>
  40373. </doc>
  40374. </method>
  40375. <method name="setUseQueryStringForDelegationToken"
  40376. abstract="false" native="false" synchronized="false"
  40377. static="false" final="false" visibility="protected"
  40378. deprecated="not deprecated">
  40379. <param name="useQueryString" type="boolean"/>
  40380. <doc>
  40381. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  40382. By default it is transmitted using the
  40383. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  40384. <p/>
  40385. This method is provided to enable WebHDFS backwards compatibility.
  40386. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  40387. URL query string, <code>FALSE</code> if the delegation token is transmitted
  40388. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  40389. header.]]>
  40390. </doc>
  40391. </method>
  40392. <method name="useQueryStringForDelegationToken" return="boolean"
  40393. abstract="false" native="false" synchronized="false"
  40394. static="false" final="false" visibility="public"
  40395. deprecated="not deprecated">
  40396. <doc>
  40397. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  40398. @return <code>TRUE</code> if the token is transmitted in the URL query
  40399. string, <code>FALSE</code> if the delegation token is transmitted using the
  40400. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  40401. </doc>
  40402. </method>
  40403. <method name="openConnection" return="java.net.HttpURLConnection"
  40404. abstract="false" native="false" synchronized="false"
  40405. static="false" final="false" visibility="public"
  40406. deprecated="not deprecated">
  40407. <param name="url" type="java.net.URL"/>
  40408. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40409. <exception name="IOException" type="java.io.IOException"/>
  40410. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40411. <doc>
  40412. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  40413. Token only if the given auth token is an instance of {@link Token} and
  40414. it contains a Delegation Token, otherwise use the configured
  40415. {@link DelegationTokenAuthenticator} to authenticate the connection.
  40416. @param url the URL to connect to. Only HTTP/S URLs are supported.
  40417. @param token the authentication token being used for the user.
  40418. @return an authenticated {@link HttpURLConnection}.
  40419. @throws IOException if an IO error occurred.
  40420. @throws AuthenticationException if an authentication exception occurred.]]>
  40421. </doc>
  40422. </method>
  40423. <method name="openConnection" return="java.net.HttpURLConnection"
  40424. abstract="false" native="false" synchronized="false"
  40425. static="false" final="false" visibility="public"
  40426. deprecated="not deprecated">
  40427. <param name="url" type="java.net.URL"/>
  40428. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40429. <exception name="IOException" type="java.io.IOException"/>
  40430. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40431. <doc>
  40432. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  40433. Token is present, it will be used taking precedence over the configured
  40434. <code>Authenticator</code>.
  40435. @param url the URL to connect to. Only HTTP/S URLs are supported.
  40436. @param token the authentication token being used for the user.
  40437. @return an authenticated {@link HttpURLConnection}.
  40438. @throws IOException if an IO error occurred.
  40439. @throws AuthenticationException if an authentication exception occurred.]]>
  40440. </doc>
  40441. </method>
  40442. <method name="openConnection" return="java.net.HttpURLConnection"
  40443. abstract="false" native="false" synchronized="false"
  40444. static="false" final="false" visibility="public"
  40445. deprecated="not deprecated">
  40446. <param name="url" type="java.net.URL"/>
  40447. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40448. <param name="doAs" type="java.lang.String"/>
  40449. <exception name="IOException" type="java.io.IOException"/>
  40450. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40451. <doc>
  40452. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  40453. Token is present, it will be used taking precedence over the configured
  40454. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  40455. the request will be done on behalf of the specified <code>doAs</code> user.
  40456. @param url the URL to connect to. Only HTTP/S URLs are supported.
  40457. @param token the authentication token being used for the user.
  40458. @param doAs user to do the the request on behalf of, if NULL the request is
  40459. as self.
  40460. @return an authenticated {@link HttpURLConnection}.
  40461. @throws IOException if an IO error occurred.
  40462. @throws AuthenticationException if an authentication exception occurred.]]>
  40463. </doc>
  40464. </method>
  40465. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  40466. abstract="false" native="false" synchronized="false"
  40467. static="false" final="false" visibility="public"
  40468. deprecated="not deprecated">
  40469. <param name="url" type="java.net.URL"/>
  40470. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40471. <param name="renewer" type="java.lang.String"/>
  40472. <exception name="IOException" type="java.io.IOException"/>
  40473. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40474. <doc>
  40475. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  40476. for authentication.
  40477. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  40478. supported.
  40479. @param token the authentication token being used for the user where the
  40480. Delegation token will be stored.
  40481. @param renewer the renewer user.
  40482. @return a delegation token.
  40483. @throws IOException if an IO error occurred.
  40484. @throws AuthenticationException if an authentication exception occurred.]]>
  40485. </doc>
  40486. </method>
  40487. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  40488. abstract="false" native="false" synchronized="false"
  40489. static="false" final="false" visibility="public"
  40490. deprecated="not deprecated">
  40491. <param name="url" type="java.net.URL"/>
  40492. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40493. <param name="renewer" type="java.lang.String"/>
  40494. <param name="doAsUser" type="java.lang.String"/>
  40495. <exception name="IOException" type="java.io.IOException"/>
  40496. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40497. <doc>
  40498. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  40499. for authentication.
  40500. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  40501. supported.
  40502. @param token the authentication token being used for the user where the
  40503. Delegation token will be stored.
  40504. @param renewer the renewer user.
  40505. @param doAsUser the user to do as, which will be the token owner.
  40506. @return a delegation token.
  40507. @throws IOException if an IO error occurred.
  40508. @throws AuthenticationException if an authentication exception occurred.]]>
  40509. </doc>
  40510. </method>
  40511. <method name="renewDelegationToken" return="long"
  40512. abstract="false" native="false" synchronized="false"
  40513. static="false" final="false" visibility="public"
  40514. deprecated="not deprecated">
  40515. <param name="url" type="java.net.URL"/>
  40516. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40517. <exception name="IOException" type="java.io.IOException"/>
  40518. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40519. <doc>
  40520. <![CDATA[Renews a delegation token from the server end-point using the
  40521. configured <code>Authenticator</code> for authentication.
  40522. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  40523. supported.
  40524. @param token the authentication token with the Delegation Token to renew.
  40525. @throws IOException if an IO error occurred.
  40526. @throws AuthenticationException if an authentication exception occurred.]]>
  40527. </doc>
  40528. </method>
  40529. <method name="renewDelegationToken" return="long"
  40530. abstract="false" native="false" synchronized="false"
  40531. static="false" final="false" visibility="public"
  40532. deprecated="not deprecated">
  40533. <param name="url" type="java.net.URL"/>
  40534. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40535. <param name="doAsUser" type="java.lang.String"/>
  40536. <exception name="IOException" type="java.io.IOException"/>
  40537. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40538. <doc>
  40539. <![CDATA[Renews a delegation token from the server end-point using the
  40540. configured <code>Authenticator</code> for authentication.
  40541. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  40542. supported.
  40543. @param token the authentication token with the Delegation Token to renew.
  40544. @param doAsUser the user to do as, which will be the token owner.
  40545. @throws IOException if an IO error occurred.
  40546. @throws AuthenticationException if an authentication exception occurred.]]>
  40547. </doc>
  40548. </method>
  40549. <method name="cancelDelegationToken"
  40550. abstract="false" native="false" synchronized="false"
  40551. static="false" final="false" visibility="public"
  40552. deprecated="not deprecated">
  40553. <param name="url" type="java.net.URL"/>
  40554. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40555. <exception name="IOException" type="java.io.IOException"/>
  40556. <doc>
  40557. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  40558. being authenticated by the configured <code>Authenticator</code>.
  40559. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  40560. are supported.
  40561. @param token the authentication token with the Delegation Token to cancel.
  40562. @throws IOException if an IO error occurred.]]>
  40563. </doc>
  40564. </method>
  40565. <method name="cancelDelegationToken"
  40566. abstract="false" native="false" synchronized="false"
  40567. static="false" final="false" visibility="public"
  40568. deprecated="not deprecated">
  40569. <param name="url" type="java.net.URL"/>
  40570. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  40571. <param name="doAsUser" type="java.lang.String"/>
  40572. <exception name="IOException" type="java.io.IOException"/>
  40573. <doc>
  40574. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  40575. being authenticated by the configured <code>Authenticator</code>.
  40576. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  40577. are supported.
  40578. @param token the authentication token with the Delegation Token to cancel.
  40579. @param doAsUser the user to do as, which will be the token owner.
  40580. @throws IOException if an IO error occurred.]]>
  40581. </doc>
  40582. </method>
  40583. <doc>
  40584. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  40585. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  40586. functionality.
  40587. <p/>
  40588. The authentication mechanisms supported by default are Hadoop Simple
  40589. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  40590. authentication.
  40591. <p/>
  40592. Additional authentication mechanisms can be supported via {@link
  40593. DelegationTokenAuthenticator} implementations.
  40594. <p/>
  40595. The default {@link DelegationTokenAuthenticator} is the {@link
  40596. KerberosDelegationTokenAuthenticator} class which supports
  40597. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  40598. the {@link PseudoDelegationTokenAuthenticator} class.
  40599. <p/>
  40600. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  40601. </doc>
  40602. </class>
  40603. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  40604. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  40605. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  40606. abstract="false"
  40607. static="true" final="false" visibility="public"
  40608. deprecated="not deprecated">
  40609. <constructor name="DelegationTokenAuthenticatedURL.Token"
  40610. static="false" final="false" visibility="public"
  40611. deprecated="not deprecated">
  40612. </constructor>
  40613. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  40614. abstract="false" native="false" synchronized="false"
  40615. static="false" final="false" visibility="public"
  40616. deprecated="not deprecated">
  40617. </method>
  40618. <method name="setDelegationToken"
  40619. abstract="false" native="false" synchronized="false"
  40620. static="false" final="false" visibility="public"
  40621. deprecated="not deprecated">
  40622. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  40623. </method>
  40624. <doc>
  40625. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  40626. </doc>
  40627. </class>
  40628. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  40629. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  40630. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  40631. abstract="true"
  40632. static="false" final="false" visibility="public"
  40633. deprecated="not deprecated">
  40634. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  40635. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  40636. static="false" final="false" visibility="public"
  40637. deprecated="not deprecated">
  40638. </constructor>
  40639. <method name="setConnectionConfigurator"
  40640. abstract="false" native="false" synchronized="false"
  40641. static="false" final="false" visibility="public"
  40642. deprecated="not deprecated">
  40643. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  40644. </method>
  40645. <method name="authenticate"
  40646. abstract="false" native="false" synchronized="false"
  40647. static="false" final="false" visibility="public"
  40648. deprecated="not deprecated">
  40649. <param name="url" type="java.net.URL"/>
  40650. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40651. <exception name="IOException" type="java.io.IOException"/>
  40652. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40653. </method>
  40654. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  40655. abstract="false" native="false" synchronized="false"
  40656. static="false" final="false" visibility="public"
  40657. deprecated="not deprecated">
  40658. <param name="url" type="java.net.URL"/>
  40659. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40660. <param name="renewer" type="java.lang.String"/>
  40661. <exception name="IOException" type="java.io.IOException"/>
  40662. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40663. <doc>
  40664. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  40665. for authentication.
  40666. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  40667. supported.
  40668. @param token the authentication token being used for the user where the
  40669. Delegation token will be stored.
  40670. @param renewer the renewer user.
  40671. @throws IOException if an IO error occurred.
  40672. @throws AuthenticationException if an authentication exception occurred.]]>
  40673. </doc>
  40674. </method>
  40675. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  40676. abstract="false" native="false" synchronized="false"
  40677. static="false" final="false" visibility="public"
  40678. deprecated="not deprecated">
  40679. <param name="url" type="java.net.URL"/>
  40680. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40681. <param name="renewer" type="java.lang.String"/>
  40682. <param name="doAsUser" type="java.lang.String"/>
  40683. <exception name="IOException" type="java.io.IOException"/>
  40684. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40685. <doc>
  40686. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  40687. for authentication.
  40688. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  40689. supported.
  40690. @param token the authentication token being used for the user where the
  40691. Delegation token will be stored.
  40692. @param renewer the renewer user.
  40693. @param doAsUser the user to do as, which will be the token owner.
  40694. @throws IOException if an IO error occurred.
  40695. @throws AuthenticationException if an authentication exception occurred.]]>
  40696. </doc>
  40697. </method>
  40698. <method name="renewDelegationToken" return="long"
  40699. abstract="false" native="false" synchronized="false"
  40700. static="false" final="false" visibility="public"
  40701. deprecated="not deprecated">
  40702. <param name="url" type="java.net.URL"/>
  40703. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40704. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  40705. <exception name="IOException" type="java.io.IOException"/>
  40706. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40707. <doc>
  40708. <![CDATA[Renews a delegation token from the server end-point using the
  40709. configured <code>Authenticator</code> for authentication.
  40710. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  40711. supported.
  40712. @param token the authentication token with the Delegation Token to renew.
  40713. @throws IOException if an IO error occurred.
  40714. @throws AuthenticationException if an authentication exception occurred.]]>
  40715. </doc>
  40716. </method>
  40717. <method name="renewDelegationToken" return="long"
  40718. abstract="false" native="false" synchronized="false"
  40719. static="false" final="false" visibility="public"
  40720. deprecated="not deprecated">
  40721. <param name="url" type="java.net.URL"/>
  40722. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40723. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  40724. <param name="doAsUser" type="java.lang.String"/>
  40725. <exception name="IOException" type="java.io.IOException"/>
  40726. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  40727. <doc>
  40728. <![CDATA[Renews a delegation token from the server end-point using the
  40729. configured <code>Authenticator</code> for authentication.
  40730. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  40731. supported.
  40732. @param token the authentication token with the Delegation Token to renew.
  40733. @param doAsUser the user to do as, which will be the token owner.
  40734. @throws IOException if an IO error occurred.
  40735. @throws AuthenticationException if an authentication exception occurred.]]>
  40736. </doc>
  40737. </method>
  40738. <method name="cancelDelegationToken"
  40739. abstract="false" native="false" synchronized="false"
  40740. static="false" final="false" visibility="public"
  40741. deprecated="not deprecated">
  40742. <param name="url" type="java.net.URL"/>
  40743. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40744. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  40745. <exception name="IOException" type="java.io.IOException"/>
  40746. <doc>
  40747. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  40748. being authenticated by the configured <code>Authenticator</code>.
  40749. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  40750. are supported.
  40751. @param token the authentication token with the Delegation Token to cancel.
  40752. @throws IOException if an IO error occurred.]]>
  40753. </doc>
  40754. </method>
  40755. <method name="cancelDelegationToken"
  40756. abstract="false" native="false" synchronized="false"
  40757. static="false" final="false" visibility="public"
  40758. deprecated="not deprecated">
  40759. <param name="url" type="java.net.URL"/>
  40760. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  40761. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  40762. <param name="doAsUser" type="java.lang.String"/>
  40763. <exception name="IOException" type="java.io.IOException"/>
  40764. <doc>
  40765. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  40766. being authenticated by the configured <code>Authenticator</code>.
  40767. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  40768. are supported.
  40769. @param token the authentication token with the Delegation Token to cancel.
  40770. @param doAsUser the user to do as, which will be the token owner.
  40771. @throws IOException if an IO error occurred.]]>
  40772. </doc>
  40773. </method>
  40774. <field name="OP_PARAM" type="java.lang.String"
  40775. transient="false" volatile="false"
  40776. static="true" final="true" visibility="public"
  40777. deprecated="not deprecated">
  40778. </field>
  40779. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  40780. transient="false" volatile="false"
  40781. static="true" final="true" visibility="public"
  40782. deprecated="not deprecated">
  40783. </field>
  40784. <field name="DELEGATION_PARAM" type="java.lang.String"
  40785. transient="false" volatile="false"
  40786. static="true" final="true" visibility="public"
  40787. deprecated="not deprecated">
  40788. </field>
  40789. <field name="TOKEN_PARAM" type="java.lang.String"
  40790. transient="false" volatile="false"
  40791. static="true" final="true" visibility="public"
  40792. deprecated="not deprecated">
  40793. </field>
  40794. <field name="RENEWER_PARAM" type="java.lang.String"
  40795. transient="false" volatile="false"
  40796. static="true" final="true" visibility="public"
  40797. deprecated="not deprecated">
  40798. </field>
  40799. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  40800. transient="false" volatile="false"
  40801. static="true" final="true" visibility="public"
  40802. deprecated="not deprecated">
  40803. </field>
  40804. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  40805. transient="false" volatile="false"
  40806. static="true" final="true" visibility="public"
  40807. deprecated="not deprecated">
  40808. </field>
  40809. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  40810. transient="false" volatile="false"
  40811. static="true" final="true" visibility="public"
  40812. deprecated="not deprecated">
  40813. </field>
  40814. <doc>
  40815. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  40816. Delegation Token support.]]>
  40817. </doc>
  40818. </class>
  40819. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  40820. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  40821. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  40822. abstract="false"
  40823. static="false" final="false" visibility="public"
  40824. deprecated="not deprecated">
  40825. <constructor name="KerberosDelegationTokenAuthenticator"
  40826. static="false" final="false" visibility="public"
  40827. deprecated="not deprecated">
  40828. </constructor>
  40829. <doc>
  40830. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  40831. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  40832. Token operations.
  40833. <p/>
  40834. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  40835. endpoint does not trigger a SPNEGO authentication]]>
  40836. </doc>
  40837. </class>
  40838. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  40839. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  40840. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  40841. abstract="false"
  40842. static="false" final="false" visibility="public"
  40843. deprecated="not deprecated">
  40844. <constructor name="PseudoDelegationTokenAuthenticator"
  40845. static="false" final="false" visibility="public"
  40846. deprecated="not deprecated">
  40847. </constructor>
  40848. <doc>
  40849. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  40850. Hadoop's pseudo authentication mechanism that accepts
  40851. the user name specified as a query string parameter and support for Hadoop
  40852. Delegation Token operations.
  40853. <p/>
  40854. This mimics the model of Hadoop Simple authentication trusting the
  40855. {@link UserGroupInformation#getCurrentUser()} value.]]>
  40856. </doc>
  40857. </class>
  40858. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  40859. </package>
  40860. <package name="org.apache.hadoop.service">
  40861. <!-- start class org.apache.hadoop.service.AbstractService -->
  40862. <class name="AbstractService" extends="java.lang.Object"
  40863. abstract="true"
  40864. static="false" final="false" visibility="public"
  40865. deprecated="not deprecated">
  40866. <implements name="org.apache.hadoop.service.Service"/>
  40867. <constructor name="AbstractService" type="java.lang.String"
  40868. static="false" final="false" visibility="public"
  40869. deprecated="not deprecated">
  40870. <doc>
  40871. <![CDATA[Construct the service.
  40872. @param name service name]]>
  40873. </doc>
  40874. </constructor>
  40875. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  40876. abstract="false" native="false" synchronized="false"
  40877. static="false" final="true" visibility="public"
  40878. deprecated="not deprecated">
  40879. </method>
  40880. <method name="getFailureCause" return="java.lang.Throwable"
  40881. abstract="false" native="false" synchronized="true"
  40882. static="false" final="true" visibility="public"
  40883. deprecated="not deprecated">
  40884. </method>
  40885. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  40886. abstract="false" native="false" synchronized="true"
  40887. static="false" final="false" visibility="public"
  40888. deprecated="not deprecated">
  40889. </method>
  40890. <method name="setConfig"
  40891. abstract="false" native="false" synchronized="false"
  40892. static="false" final="false" visibility="protected"
  40893. deprecated="not deprecated">
  40894. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40895. <doc>
  40896. <![CDATA[Set the configuration for this service.
  40897. This method is called during {@link #init(Configuration)}
  40898. and should only be needed if for some reason a service implementation
  40899. needs to override that initial setting -for example replacing
  40900. it with a new subclass of {@link Configuration}
  40901. @param conf new configuration.]]>
  40902. </doc>
  40903. </method>
  40904. <method name="init"
  40905. abstract="false" native="false" synchronized="false"
  40906. static="false" final="false" visibility="public"
  40907. deprecated="not deprecated">
  40908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40909. <doc>
  40910. <![CDATA[{@inheritDoc}
  40911. This invokes {@link #serviceInit}
  40912. @param conf the configuration of the service. This must not be null
  40913. @throws ServiceStateException if the configuration was null,
  40914. the state change not permitted, or something else went wrong]]>
  40915. </doc>
  40916. </method>
  40917. <method name="start"
  40918. abstract="false" native="false" synchronized="false"
  40919. static="false" final="false" visibility="public"
  40920. deprecated="not deprecated">
  40921. <doc>
  40922. <![CDATA[{@inheritDoc}
  40923. @throws ServiceStateException if the current service state does not permit
  40924. this action]]>
  40925. </doc>
  40926. </method>
  40927. <method name="stop"
  40928. abstract="false" native="false" synchronized="false"
  40929. static="false" final="false" visibility="public"
  40930. deprecated="not deprecated">
  40931. <doc>
  40932. <![CDATA[{@inheritDoc}]]>
  40933. </doc>
  40934. </method>
  40935. <method name="close"
  40936. abstract="false" native="false" synchronized="false"
  40937. static="false" final="true" visibility="public"
  40938. deprecated="not deprecated">
  40939. <exception name="IOException" type="java.io.IOException"/>
  40940. <doc>
  40941. <![CDATA[Relay to {@link #stop()}
  40942. @throws IOException]]>
  40943. </doc>
  40944. </method>
  40945. <method name="noteFailure"
  40946. abstract="false" native="false" synchronized="false"
  40947. static="false" final="true" visibility="protected"
  40948. deprecated="not deprecated">
  40949. <param name="exception" type="java.lang.Exception"/>
  40950. <doc>
  40951. <![CDATA[Failure handling: record the exception
  40952. that triggered it -if there was not one already.
  40953. Services are free to call this themselves.
  40954. @param exception the exception]]>
  40955. </doc>
  40956. </method>
  40957. <method name="waitForServiceToStop" return="boolean"
  40958. abstract="false" native="false" synchronized="false"
  40959. static="false" final="true" visibility="public"
  40960. deprecated="not deprecated">
  40961. <param name="timeout" type="long"/>
  40962. </method>
  40963. <method name="serviceInit"
  40964. abstract="false" native="false" synchronized="false"
  40965. static="false" final="false" visibility="protected"
  40966. deprecated="not deprecated">
  40967. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40968. <exception name="Exception" type="java.lang.Exception"/>
  40969. <doc>
  40970. <![CDATA[All initialization code needed by a service.
  40971. This method will only ever be called once during the lifecycle of
  40972. a specific service instance.
  40973. Implementations do not need to be synchronized as the logic
  40974. in {@link #init(Configuration)} prevents re-entrancy.
  40975. The base implementation checks to see if the subclass has created
  40976. a new configuration instance, and if so, updates the base class value
  40977. @param conf configuration
  40978. @throws Exception on a failure -these will be caught,
  40979. possibly wrapped, and wil; trigger a service stop]]>
  40980. </doc>
  40981. </method>
  40982. <method name="serviceStart"
  40983. abstract="false" native="false" synchronized="false"
  40984. static="false" final="false" visibility="protected"
  40985. deprecated="not deprecated">
  40986. <exception name="Exception" type="java.lang.Exception"/>
  40987. <doc>
  40988. <![CDATA[Actions called during the INITED to STARTED transition.
  40989. This method will only ever be called once during the lifecycle of
  40990. a specific service instance.
  40991. Implementations do not need to be synchronized as the logic
  40992. in {@link #start()} prevents re-entrancy.
  40993. @throws Exception if needed -these will be caught,
  40994. wrapped, and trigger a service stop]]>
  40995. </doc>
  40996. </method>
  40997. <method name="serviceStop"
  40998. abstract="false" native="false" synchronized="false"
  40999. static="false" final="false" visibility="protected"
  41000. deprecated="not deprecated">
  41001. <exception name="Exception" type="java.lang.Exception"/>
  41002. <doc>
  41003. <![CDATA[Actions called during the transition to the STOPPED state.
  41004. This method will only ever be called once during the lifecycle of
  41005. a specific service instance.
  41006. Implementations do not need to be synchronized as the logic
  41007. in {@link #stop()} prevents re-entrancy.
  41008. Implementations MUST write this to be robust against failures, including
  41009. checks for null references -and for the first failure to not stop other
  41010. attempts to shut down parts of the service.
  41011. @throws Exception if needed -these will be caught and logged.]]>
  41012. </doc>
  41013. </method>
  41014. <method name="registerServiceListener"
  41015. abstract="false" native="false" synchronized="false"
  41016. static="false" final="false" visibility="public"
  41017. deprecated="not deprecated">
  41018. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41019. </method>
  41020. <method name="unregisterServiceListener"
  41021. abstract="false" native="false" synchronized="false"
  41022. static="false" final="false" visibility="public"
  41023. deprecated="not deprecated">
  41024. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41025. </method>
  41026. <method name="registerGlobalListener"
  41027. abstract="false" native="false" synchronized="false"
  41028. static="true" final="false" visibility="public"
  41029. deprecated="not deprecated">
  41030. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41031. <doc>
  41032. <![CDATA[Register a global listener, which receives notifications
  41033. from the state change events of all services in the JVM
  41034. @param l listener]]>
  41035. </doc>
  41036. </method>
  41037. <method name="unregisterGlobalListener" return="boolean"
  41038. abstract="false" native="false" synchronized="false"
  41039. static="true" final="false" visibility="public"
  41040. deprecated="not deprecated">
  41041. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41042. <doc>
  41043. <![CDATA[unregister a global listener.
  41044. @param l listener to unregister
  41045. @return true if the listener was found (and then deleted)]]>
  41046. </doc>
  41047. </method>
  41048. <method name="getName" return="java.lang.String"
  41049. abstract="false" native="false" synchronized="false"
  41050. static="false" final="false" visibility="public"
  41051. deprecated="not deprecated">
  41052. </method>
  41053. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  41054. abstract="false" native="false" synchronized="true"
  41055. static="false" final="false" visibility="public"
  41056. deprecated="not deprecated">
  41057. </method>
  41058. <method name="getStartTime" return="long"
  41059. abstract="false" native="false" synchronized="false"
  41060. static="false" final="false" visibility="public"
  41061. deprecated="not deprecated">
  41062. </method>
  41063. <method name="getLifecycleHistory" return="java.util.List"
  41064. abstract="false" native="false" synchronized="true"
  41065. static="false" final="false" visibility="public"
  41066. deprecated="not deprecated">
  41067. </method>
  41068. <method name="isInState" return="boolean"
  41069. abstract="false" native="false" synchronized="false"
  41070. static="false" final="true" visibility="public"
  41071. deprecated="not deprecated">
  41072. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  41073. </method>
  41074. <method name="toString" return="java.lang.String"
  41075. abstract="false" native="false" synchronized="false"
  41076. static="false" final="false" visibility="public"
  41077. deprecated="not deprecated">
  41078. </method>
  41079. <method name="putBlocker"
  41080. abstract="false" native="false" synchronized="false"
  41081. static="false" final="false" visibility="protected"
  41082. deprecated="not deprecated">
  41083. <param name="name" type="java.lang.String"/>
  41084. <param name="details" type="java.lang.String"/>
  41085. <doc>
  41086. <![CDATA[Put a blocker to the blocker map -replacing any
  41087. with the same name.
  41088. @param name blocker name
  41089. @param details any specifics on the block. This must be non-null.]]>
  41090. </doc>
  41091. </method>
  41092. <method name="removeBlocker"
  41093. abstract="false" native="false" synchronized="false"
  41094. static="false" final="false" visibility="public"
  41095. deprecated="not deprecated">
  41096. <param name="name" type="java.lang.String"/>
  41097. <doc>
  41098. <![CDATA[Remove a blocker from the blocker map -
  41099. this is a no-op if the blocker is not present
  41100. @param name the name of the blocker]]>
  41101. </doc>
  41102. </method>
  41103. <method name="getBlockers" return="java.util.Map"
  41104. abstract="false" native="false" synchronized="false"
  41105. static="false" final="false" visibility="public"
  41106. deprecated="not deprecated">
  41107. </method>
  41108. <doc>
  41109. <![CDATA[This is the base implementation class for services.]]>
  41110. </doc>
  41111. </class>
  41112. <!-- end class org.apache.hadoop.service.AbstractService -->
  41113. <!-- start class org.apache.hadoop.service.CompositeService -->
  41114. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  41115. abstract="false"
  41116. static="false" final="false" visibility="public"
  41117. deprecated="not deprecated">
  41118. <constructor name="CompositeService" type="java.lang.String"
  41119. static="false" final="false" visibility="public"
  41120. deprecated="not deprecated">
  41121. </constructor>
  41122. <method name="getServices" return="java.util.List"
  41123. abstract="false" native="false" synchronized="false"
  41124. static="false" final="false" visibility="public"
  41125. deprecated="not deprecated">
  41126. <doc>
  41127. <![CDATA[Get a cloned list of services
  41128. @return a list of child services at the time of invocation -
  41129. added services will not be picked up.]]>
  41130. </doc>
  41131. </method>
  41132. <method name="addService"
  41133. abstract="false" native="false" synchronized="false"
  41134. static="false" final="false" visibility="protected"
  41135. deprecated="not deprecated">
  41136. <param name="service" type="org.apache.hadoop.service.Service"/>
  41137. <doc>
  41138. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  41139. {@link CompositeService}
  41140. @param service the {@link Service} to be added]]>
  41141. </doc>
  41142. </method>
  41143. <method name="addIfService" return="boolean"
  41144. abstract="false" native="false" synchronized="false"
  41145. static="false" final="false" visibility="protected"
  41146. deprecated="not deprecated">
  41147. <param name="object" type="java.lang.Object"/>
  41148. <doc>
  41149. <![CDATA[If the passed object is an instance of {@link Service},
  41150. add it to the list of services managed by this {@link CompositeService}
  41151. @param object
  41152. @return true if a service is added, false otherwise.]]>
  41153. </doc>
  41154. </method>
  41155. <method name="removeService" return="boolean"
  41156. abstract="false" native="false" synchronized="true"
  41157. static="false" final="false" visibility="protected"
  41158. deprecated="not deprecated">
  41159. <param name="service" type="org.apache.hadoop.service.Service"/>
  41160. </method>
  41161. <method name="serviceInit"
  41162. abstract="false" native="false" synchronized="false"
  41163. static="false" final="false" visibility="protected"
  41164. deprecated="not deprecated">
  41165. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41166. <exception name="Exception" type="java.lang.Exception"/>
  41167. </method>
  41168. <method name="serviceStart"
  41169. abstract="false" native="false" synchronized="false"
  41170. static="false" final="false" visibility="protected"
  41171. deprecated="not deprecated">
  41172. <exception name="Exception" type="java.lang.Exception"/>
  41173. </method>
  41174. <method name="serviceStop"
  41175. abstract="false" native="false" synchronized="false"
  41176. static="false" final="false" visibility="protected"
  41177. deprecated="not deprecated">
  41178. <exception name="Exception" type="java.lang.Exception"/>
  41179. </method>
  41180. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  41181. transient="false" volatile="false"
  41182. static="true" final="true" visibility="protected"
  41183. deprecated="not deprecated">
  41184. <doc>
  41185. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  41186. only try to close started services (which assumes
  41187. that the service implementations may not handle the stop() operation
  41188. except when started.
  41189. Irrespective of this policy, if a child service fails during
  41190. its init() or start() operations, it will have stop() called on it.]]>
  41191. </doc>
  41192. </field>
  41193. <doc>
  41194. <![CDATA[Composition of services.]]>
  41195. </doc>
  41196. </class>
  41197. <!-- end class org.apache.hadoop.service.CompositeService -->
  41198. <!-- start class org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook -->
  41199. <class name="CompositeService.CompositeServiceShutdownHook" extends="java.lang.Object"
  41200. abstract="false"
  41201. static="true" final="false" visibility="public"
  41202. deprecated="not deprecated">
  41203. <implements name="java.lang.Runnable"/>
  41204. <constructor name="CompositeService.CompositeServiceShutdownHook" type="org.apache.hadoop.service.CompositeService"
  41205. static="false" final="false" visibility="public"
  41206. deprecated="not deprecated">
  41207. </constructor>
  41208. <method name="run"
  41209. abstract="false" native="false" synchronized="false"
  41210. static="false" final="false" visibility="public"
  41211. deprecated="not deprecated">
  41212. </method>
  41213. <doc>
  41214. <![CDATA[JVM Shutdown hook for CompositeService which will stop the give
  41215. CompositeService gracefully in case of JVM shutdown.]]>
  41216. </doc>
  41217. </class>
  41218. <!-- end class org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook -->
  41219. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  41220. <class name="LifecycleEvent" extends="java.lang.Object"
  41221. abstract="false"
  41222. static="false" final="false" visibility="public"
  41223. deprecated="not deprecated">
  41224. <implements name="java.io.Serializable"/>
  41225. <constructor name="LifecycleEvent"
  41226. static="false" final="false" visibility="public"
  41227. deprecated="not deprecated">
  41228. </constructor>
  41229. <field name="time" type="long"
  41230. transient="false" volatile="false"
  41231. static="false" final="false" visibility="public"
  41232. deprecated="not deprecated">
  41233. <doc>
  41234. <![CDATA[Local time in milliseconds when the event occurred]]>
  41235. </doc>
  41236. </field>
  41237. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  41238. transient="false" volatile="false"
  41239. static="false" final="false" visibility="public"
  41240. deprecated="not deprecated">
  41241. <doc>
  41242. <![CDATA[new state]]>
  41243. </doc>
  41244. </field>
  41245. <doc>
  41246. <![CDATA[A serializable lifecycle event: the time a state
  41247. transition occurred, and what state was entered.]]>
  41248. </doc>
  41249. </class>
  41250. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  41251. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  41252. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  41253. abstract="false"
  41254. static="false" final="false" visibility="public"
  41255. deprecated="not deprecated">
  41256. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41257. <constructor name="LoggingStateChangeListener" type="org.apache.commons.logging.Log"
  41258. static="false" final="false" visibility="public"
  41259. deprecated="not deprecated">
  41260. <doc>
  41261. <![CDATA[Log events to the given log
  41262. @param log destination for events]]>
  41263. </doc>
  41264. </constructor>
  41265. <constructor name="LoggingStateChangeListener"
  41266. static="false" final="false" visibility="public"
  41267. deprecated="not deprecated">
  41268. <doc>
  41269. <![CDATA[Log events to the static log for this class]]>
  41270. </doc>
  41271. </constructor>
  41272. <method name="stateChanged"
  41273. abstract="false" native="false" synchronized="false"
  41274. static="false" final="false" visibility="public"
  41275. deprecated="not deprecated">
  41276. <param name="service" type="org.apache.hadoop.service.Service"/>
  41277. <doc>
  41278. <![CDATA[Callback for a state change event: log it
  41279. @param service the service that has changed.]]>
  41280. </doc>
  41281. </method>
  41282. <doc>
  41283. <![CDATA[This is a state change listener that logs events at INFO level]]>
  41284. </doc>
  41285. </class>
  41286. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  41287. <!-- start interface org.apache.hadoop.service.Service -->
  41288. <interface name="Service" abstract="true"
  41289. static="false" final="false" visibility="public"
  41290. deprecated="not deprecated">
  41291. <implements name="java.io.Closeable"/>
  41292. <method name="init"
  41293. abstract="false" native="false" synchronized="false"
  41294. static="false" final="false" visibility="public"
  41295. deprecated="not deprecated">
  41296. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  41297. <doc>
  41298. <![CDATA[Initialize the service.
  41299. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  41300. unless the operation failed and an exception was raised, in which case
  41301. {@link #stop()} MUST be invoked and the service enter the state
  41302. {@link STATE#STOPPED}.
  41303. @param config the configuration of the service
  41304. @throws RuntimeException on any failure during the operation]]>
  41305. </doc>
  41306. </method>
  41307. <method name="start"
  41308. abstract="false" native="false" synchronized="false"
  41309. static="false" final="false" visibility="public"
  41310. deprecated="not deprecated">
  41311. <doc>
  41312. <![CDATA[Start the service.
  41313. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  41314. unless the operation failed and an exception was raised, in which case
  41315. {@link #stop()} MUST be invoked and the service enter the state
  41316. {@link STATE#STOPPED}.
  41317. @throws RuntimeException on any failure during the operation]]>
  41318. </doc>
  41319. </method>
  41320. <method name="stop"
  41321. abstract="false" native="false" synchronized="false"
  41322. static="false" final="false" visibility="public"
  41323. deprecated="not deprecated">
  41324. <doc>
  41325. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  41326. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  41327. to stop all parts of the service.
  41328. The implementation must be designed to complete regardless of the service
  41329. state, including the initialized/uninitialized state of all its internal
  41330. fields.
  41331. @throws RuntimeException on any failure during the stop operation]]>
  41332. </doc>
  41333. </method>
  41334. <method name="close"
  41335. abstract="false" native="false" synchronized="false"
  41336. static="false" final="false" visibility="public"
  41337. deprecated="not deprecated">
  41338. <exception name="IOException" type="java.io.IOException"/>
  41339. <doc>
  41340. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  41341. clauses.
  41342. Implementation classes MUST relay this directly to {@link #stop()}
  41343. @throws IOException never
  41344. @throws RuntimeException on any failure during the stop operation]]>
  41345. </doc>
  41346. </method>
  41347. <method name="registerServiceListener"
  41348. abstract="false" native="false" synchronized="false"
  41349. static="false" final="false" visibility="public"
  41350. deprecated="not deprecated">
  41351. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41352. <doc>
  41353. <![CDATA[Register a listener to the service state change events.
  41354. If the supplied listener is already listening to this service,
  41355. this method is a no-op.
  41356. @param listener a new listener]]>
  41357. </doc>
  41358. </method>
  41359. <method name="unregisterServiceListener"
  41360. abstract="false" native="false" synchronized="false"
  41361. static="false" final="false" visibility="public"
  41362. deprecated="not deprecated">
  41363. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41364. <doc>
  41365. <![CDATA[Unregister a previously registered listener of the service state
  41366. change events. No-op if the listener is already unregistered.
  41367. @param listener the listener to unregister.]]>
  41368. </doc>
  41369. </method>
  41370. <method name="getName" return="java.lang.String"
  41371. abstract="false" native="false" synchronized="false"
  41372. static="false" final="false" visibility="public"
  41373. deprecated="not deprecated">
  41374. <doc>
  41375. <![CDATA[Get the name of this service.
  41376. @return the service name]]>
  41377. </doc>
  41378. </method>
  41379. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  41380. abstract="false" native="false" synchronized="false"
  41381. static="false" final="false" visibility="public"
  41382. deprecated="not deprecated">
  41383. <doc>
  41384. <![CDATA[Get the configuration of this service.
  41385. This is normally not a clone and may be manipulated, though there are no
  41386. guarantees as to what the consequences of such actions may be
  41387. @return the current configuration, unless a specific implentation chooses
  41388. otherwise.]]>
  41389. </doc>
  41390. </method>
  41391. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  41392. abstract="false" native="false" synchronized="false"
  41393. static="false" final="false" visibility="public"
  41394. deprecated="not deprecated">
  41395. <doc>
  41396. <![CDATA[Get the current service state
  41397. @return the state of the service]]>
  41398. </doc>
  41399. </method>
  41400. <method name="getStartTime" return="long"
  41401. abstract="false" native="false" synchronized="false"
  41402. static="false" final="false" visibility="public"
  41403. deprecated="not deprecated">
  41404. <doc>
  41405. <![CDATA[Get the service start time
  41406. @return the start time of the service. This will be zero if the service
  41407. has not yet been started.]]>
  41408. </doc>
  41409. </method>
  41410. <method name="isInState" return="boolean"
  41411. abstract="false" native="false" synchronized="false"
  41412. static="false" final="false" visibility="public"
  41413. deprecated="not deprecated">
  41414. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  41415. <doc>
  41416. <![CDATA[Query to see if the service is in a specific state.
  41417. In a multi-threaded system, the state may not hold for very long.
  41418. @param state the expected state
  41419. @return true if, at the time of invocation, the service was in that state.]]>
  41420. </doc>
  41421. </method>
  41422. <method name="getFailureCause" return="java.lang.Throwable"
  41423. abstract="false" native="false" synchronized="false"
  41424. static="false" final="false" visibility="public"
  41425. deprecated="not deprecated">
  41426. <doc>
  41427. <![CDATA[Get the first exception raised during the service failure. If null,
  41428. no exception was logged
  41429. @return the failure logged during a transition to the stopped state]]>
  41430. </doc>
  41431. </method>
  41432. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  41433. abstract="false" native="false" synchronized="false"
  41434. static="false" final="false" visibility="public"
  41435. deprecated="not deprecated">
  41436. <doc>
  41437. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  41438. @return the state or null if there was no failure]]>
  41439. </doc>
  41440. </method>
  41441. <method name="waitForServiceToStop" return="boolean"
  41442. abstract="false" native="false" synchronized="false"
  41443. static="false" final="false" visibility="public"
  41444. deprecated="not deprecated">
  41445. <param name="timeout" type="long"/>
  41446. <doc>
  41447. <![CDATA[Block waiting for the service to stop; uses the termination notification
  41448. object to do so.
  41449. This method will only return after all the service stop actions
  41450. have been executed (to success or failure), or the timeout elapsed
  41451. This method can be called before the service is inited or started; this is
  41452. to eliminate any race condition with the service stopping before
  41453. this event occurs.
  41454. @param timeout timeout in milliseconds. A value of zero means "forever"
  41455. @return true iff the service stopped in the time period]]>
  41456. </doc>
  41457. </method>
  41458. <method name="getLifecycleHistory" return="java.util.List"
  41459. abstract="false" native="false" synchronized="false"
  41460. static="false" final="false" visibility="public"
  41461. deprecated="not deprecated">
  41462. <doc>
  41463. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  41464. @return a possibly empty but never null list of lifecycle events.]]>
  41465. </doc>
  41466. </method>
  41467. <method name="getBlockers" return="java.util.Map"
  41468. abstract="false" native="false" synchronized="false"
  41469. static="false" final="false" visibility="public"
  41470. deprecated="not deprecated">
  41471. <doc>
  41472. <![CDATA[Get the blockers on a service -remote dependencies
  41473. that are stopping the service from being <i>live</i>.
  41474. @return a (snapshotted) map of blocker name-&gt;description values]]>
  41475. </doc>
  41476. </method>
  41477. <doc>
  41478. <![CDATA[Service LifeCycle.]]>
  41479. </doc>
  41480. </interface>
  41481. <!-- end interface org.apache.hadoop.service.Service -->
  41482. <!-- start class org.apache.hadoop.service.Service.STATE -->
  41483. <class name="Service.STATE" extends="java.lang.Enum"
  41484. abstract="false"
  41485. static="true" final="true" visibility="public"
  41486. deprecated="not deprecated">
  41487. <method name="values" return="org.apache.hadoop.service.Service.STATE[]"
  41488. abstract="false" native="false" synchronized="false"
  41489. static="true" final="false" visibility="public"
  41490. deprecated="not deprecated">
  41491. </method>
  41492. <method name="valueOf" return="org.apache.hadoop.service.Service.STATE"
  41493. abstract="false" native="false" synchronized="false"
  41494. static="true" final="false" visibility="public"
  41495. deprecated="not deprecated">
  41496. <param name="name" type="java.lang.String"/>
  41497. </method>
  41498. <method name="getValue" return="int"
  41499. abstract="false" native="false" synchronized="false"
  41500. static="false" final="false" visibility="public"
  41501. deprecated="not deprecated">
  41502. <doc>
  41503. <![CDATA[Get the integer value of a state
  41504. @return the numeric value of the state]]>
  41505. </doc>
  41506. </method>
  41507. <method name="toString" return="java.lang.String"
  41508. abstract="false" native="false" synchronized="false"
  41509. static="false" final="false" visibility="public"
  41510. deprecated="not deprecated">
  41511. <doc>
  41512. <![CDATA[Get the name of a state
  41513. @return the state's name]]>
  41514. </doc>
  41515. </method>
  41516. <doc>
  41517. <![CDATA[Service states]]>
  41518. </doc>
  41519. </class>
  41520. <!-- end class org.apache.hadoop.service.Service.STATE -->
  41521. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  41522. <class name="ServiceOperations" extends="java.lang.Object"
  41523. abstract="false"
  41524. static="false" final="true" visibility="public"
  41525. deprecated="not deprecated">
  41526. <method name="stop"
  41527. abstract="false" native="false" synchronized="false"
  41528. static="true" final="false" visibility="public"
  41529. deprecated="not deprecated">
  41530. <param name="service" type="org.apache.hadoop.service.Service"/>
  41531. <doc>
  41532. <![CDATA[Stop a service.
  41533. <p/>Do nothing if the service is null or not
  41534. in a state in which it can be/needs to be stopped.
  41535. <p/>
  41536. The service state is checked <i>before</i> the operation begins.
  41537. This process is <i>not</i> thread safe.
  41538. @param service a service or null]]>
  41539. </doc>
  41540. </method>
  41541. <method name="stopQuietly" return="java.lang.Exception"
  41542. abstract="false" native="false" synchronized="false"
  41543. static="true" final="false" visibility="public"
  41544. deprecated="not deprecated">
  41545. <param name="service" type="org.apache.hadoop.service.Service"/>
  41546. <doc>
  41547. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  41548. logged at warn level. (but not Throwables). This operation is intended to
  41549. be used in cleanup operations
  41550. @param service a service; may be null
  41551. @return any exception that was caught; null if none was.]]>
  41552. </doc>
  41553. </method>
  41554. <method name="stopQuietly" return="java.lang.Exception"
  41555. abstract="false" native="false" synchronized="false"
  41556. static="true" final="false" visibility="public"
  41557. deprecated="not deprecated">
  41558. <param name="log" type="org.apache.commons.logging.Log"/>
  41559. <param name="service" type="org.apache.hadoop.service.Service"/>
  41560. <doc>
  41561. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  41562. logged at warn level. (but not Throwables). This operation is intended to
  41563. be used in cleanup operations
  41564. @param log the log to warn at
  41565. @param service a service; may be null
  41566. @return any exception that was caught; null if none was.
  41567. @see ServiceOperations#stopQuietly(Service)]]>
  41568. </doc>
  41569. </method>
  41570. <doc>
  41571. <![CDATA[This class contains a set of methods to work with services, especially
  41572. to walk them through their lifecycle.]]>
  41573. </doc>
  41574. </class>
  41575. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  41576. <!-- start class org.apache.hadoop.service.ServiceOperations.ServiceListeners -->
  41577. <class name="ServiceOperations.ServiceListeners" extends="java.lang.Object"
  41578. abstract="false"
  41579. static="true" final="false" visibility="public"
  41580. deprecated="not deprecated">
  41581. <constructor name="ServiceOperations.ServiceListeners"
  41582. static="false" final="false" visibility="public"
  41583. deprecated="not deprecated">
  41584. </constructor>
  41585. <method name="add"
  41586. abstract="false" native="false" synchronized="true"
  41587. static="false" final="false" visibility="public"
  41588. deprecated="not deprecated">
  41589. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41590. <doc>
  41591. <![CDATA[Thread-safe addition of a new listener to the end of a list.
  41592. Attempts to re-register a listener that is already registered
  41593. will be ignored.
  41594. @param l listener]]>
  41595. </doc>
  41596. </method>
  41597. <method name="remove" return="boolean"
  41598. abstract="false" native="false" synchronized="true"
  41599. static="false" final="false" visibility="public"
  41600. deprecated="not deprecated">
  41601. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41602. <doc>
  41603. <![CDATA[Remove any registration of a listener from the listener list.
  41604. @param l listener
  41605. @return true if the listener was found (and then removed)]]>
  41606. </doc>
  41607. </method>
  41608. <method name="reset"
  41609. abstract="false" native="false" synchronized="true"
  41610. static="false" final="false" visibility="public"
  41611. deprecated="not deprecated">
  41612. <doc>
  41613. <![CDATA[Reset the listener list]]>
  41614. </doc>
  41615. </method>
  41616. <method name="notifyListeners"
  41617. abstract="false" native="false" synchronized="false"
  41618. static="false" final="false" visibility="public"
  41619. deprecated="not deprecated">
  41620. <param name="service" type="org.apache.hadoop.service.Service"/>
  41621. <doc>
  41622. <![CDATA[Change to a new state and notify all listeners.
  41623. This method will block until all notifications have been issued.
  41624. It caches the list of listeners before the notification begins,
  41625. so additions or removal of listeners will not be visible.
  41626. @param service the service that has changed state]]>
  41627. </doc>
  41628. </method>
  41629. <doc>
  41630. <![CDATA[Class to manage a list of {@link ServiceStateChangeListener} instances,
  41631. including a notification loop that is robust against changes to the list
  41632. during the notification process.]]>
  41633. </doc>
  41634. </class>
  41635. <!-- end class org.apache.hadoop.service.ServiceOperations.ServiceListeners -->
  41636. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  41637. <interface name="ServiceStateChangeListener" abstract="true"
  41638. static="false" final="false" visibility="public"
  41639. deprecated="not deprecated">
  41640. <method name="stateChanged"
  41641. abstract="false" native="false" synchronized="false"
  41642. static="false" final="false" visibility="public"
  41643. deprecated="not deprecated">
  41644. <param name="service" type="org.apache.hadoop.service.Service"/>
  41645. <doc>
  41646. <![CDATA[Callback to notify of a state change. The service will already
  41647. have changed state before this callback is invoked.
  41648. This operation is invoked on the thread that initiated the state change,
  41649. while the service itself in in a sychronized section.
  41650. <ol>
  41651. <li>Any long-lived operation here will prevent the service state
  41652. change from completing in a timely manner.</li>
  41653. <li>If another thread is somehow invoked from the listener, and
  41654. that thread invokes the methods of the service (including
  41655. subclass-specific methods), there is a risk of a deadlock.</li>
  41656. </ol>
  41657. @param service the service that has changed.]]>
  41658. </doc>
  41659. </method>
  41660. <doc>
  41661. <![CDATA[Interface to notify state changes of a service.]]>
  41662. </doc>
  41663. </interface>
  41664. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  41665. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  41666. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  41667. abstract="false"
  41668. static="false" final="false" visibility="public"
  41669. deprecated="not deprecated">
  41670. <constructor name="ServiceStateException" type="java.lang.String"
  41671. static="false" final="false" visibility="public"
  41672. deprecated="not deprecated">
  41673. </constructor>
  41674. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  41675. static="false" final="false" visibility="public"
  41676. deprecated="not deprecated">
  41677. </constructor>
  41678. <constructor name="ServiceStateException" type="java.lang.Throwable"
  41679. static="false" final="false" visibility="public"
  41680. deprecated="not deprecated">
  41681. </constructor>
  41682. <method name="convert" return="java.lang.RuntimeException"
  41683. abstract="false" native="false" synchronized="false"
  41684. static="true" final="false" visibility="public"
  41685. deprecated="not deprecated">
  41686. <param name="fault" type="java.lang.Throwable"/>
  41687. <doc>
  41688. <![CDATA[Convert any exception into a {@link RuntimeException}.
  41689. If the caught exception is already of that type, it is typecast to a
  41690. {@link RuntimeException} and returned.
  41691. All other exception types are wrapped in a new instance of
  41692. ServiceStateException
  41693. @param fault exception or throwable
  41694. @return a ServiceStateException to rethrow]]>
  41695. </doc>
  41696. </method>
  41697. <method name="convert" return="java.lang.RuntimeException"
  41698. abstract="false" native="false" synchronized="false"
  41699. static="true" final="false" visibility="public"
  41700. deprecated="not deprecated">
  41701. <param name="text" type="java.lang.String"/>
  41702. <param name="fault" type="java.lang.Throwable"/>
  41703. <doc>
  41704. <![CDATA[Convert any exception into a {@link RuntimeException}.
  41705. If the caught exception is already of that type, it is typecast to a
  41706. {@link RuntimeException} and returned.
  41707. All other exception types are wrapped in a new instance of
  41708. ServiceStateException
  41709. @param text text to use if a new exception is created
  41710. @param fault exception or throwable
  41711. @return a ServiceStateException to rethrow]]>
  41712. </doc>
  41713. </method>
  41714. <doc>
  41715. <![CDATA[Exception that is raised on state change operations.]]>
  41716. </doc>
  41717. </class>
  41718. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  41719. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  41720. <class name="ServiceStateModel" extends="java.lang.Object"
  41721. abstract="false"
  41722. static="false" final="false" visibility="public"
  41723. deprecated="not deprecated">
  41724. <constructor name="ServiceStateModel" type="java.lang.String"
  41725. static="false" final="false" visibility="public"
  41726. deprecated="not deprecated">
  41727. <doc>
  41728. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  41729. state.]]>
  41730. </doc>
  41731. </constructor>
  41732. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  41733. static="false" final="false" visibility="public"
  41734. deprecated="not deprecated">
  41735. <doc>
  41736. <![CDATA[Create a service state model instance in the chosen state
  41737. @param state the starting state]]>
  41738. </doc>
  41739. </constructor>
  41740. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  41741. abstract="false" native="false" synchronized="false"
  41742. static="false" final="false" visibility="public"
  41743. deprecated="not deprecated">
  41744. <doc>
  41745. <![CDATA[Query the service state. This is a non-blocking operation.
  41746. @return the state]]>
  41747. </doc>
  41748. </method>
  41749. <method name="isInState" return="boolean"
  41750. abstract="false" native="false" synchronized="false"
  41751. static="false" final="false" visibility="public"
  41752. deprecated="not deprecated">
  41753. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  41754. <doc>
  41755. <![CDATA[Query that the state is in a specific state
  41756. @param proposed proposed new state
  41757. @return the state]]>
  41758. </doc>
  41759. </method>
  41760. <method name="ensureCurrentState"
  41761. abstract="false" native="false" synchronized="false"
  41762. static="false" final="false" visibility="public"
  41763. deprecated="not deprecated">
  41764. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  41765. <doc>
  41766. <![CDATA[Verify that that a service is in a given state.
  41767. @param expectedState the desired state
  41768. @throws ServiceStateException if the service state is different from
  41769. the desired state]]>
  41770. </doc>
  41771. </method>
  41772. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  41773. abstract="false" native="false" synchronized="true"
  41774. static="false" final="false" visibility="public"
  41775. deprecated="not deprecated">
  41776. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  41777. <doc>
  41778. <![CDATA[Enter a state -thread safe.
  41779. @param proposed proposed new state
  41780. @return the original state
  41781. @throws ServiceStateException if the transition is not permitted]]>
  41782. </doc>
  41783. </method>
  41784. <method name="checkStateTransition"
  41785. abstract="false" native="false" synchronized="false"
  41786. static="true" final="false" visibility="public"
  41787. deprecated="not deprecated">
  41788. <param name="name" type="java.lang.String"/>
  41789. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  41790. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  41791. <doc>
  41792. <![CDATA[Check that a state tansition is valid and
  41793. throw an exception if not
  41794. @param name name of the service (can be null)
  41795. @param state current state
  41796. @param proposed proposed new state]]>
  41797. </doc>
  41798. </method>
  41799. <method name="isValidStateTransition" return="boolean"
  41800. abstract="false" native="false" synchronized="false"
  41801. static="true" final="false" visibility="public"
  41802. deprecated="not deprecated">
  41803. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  41804. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  41805. <doc>
  41806. <![CDATA[Is a state transition valid?
  41807. There are no checks for current==proposed
  41808. as that is considered a non-transition.
  41809. using an array kills off all branch misprediction costs, at the expense
  41810. of cache line misses.
  41811. @param current current state
  41812. @param proposed proposed new state
  41813. @return true if the transition to a new state is valid]]>
  41814. </doc>
  41815. </method>
  41816. <method name="toString" return="java.lang.String"
  41817. abstract="false" native="false" synchronized="false"
  41818. static="false" final="false" visibility="public"
  41819. deprecated="not deprecated">
  41820. <doc>
  41821. <![CDATA[return the state text as the toString() value
  41822. @return the current state's description]]>
  41823. </doc>
  41824. </method>
  41825. <doc>
  41826. <![CDATA[Implements the service state model.]]>
  41827. </doc>
  41828. </class>
  41829. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  41830. </package>
  41831. <package name="org.apache.hadoop.tools.protocolPB">
  41832. <!-- start class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolClientSideTranslatorPB -->
  41833. <class name="GetUserMappingsProtocolClientSideTranslatorPB" extends="java.lang.Object"
  41834. abstract="false"
  41835. static="false" final="false" visibility="public"
  41836. deprecated="not deprecated">
  41837. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  41838. <implements name="org.apache.hadoop.tools.GetUserMappingsProtocol"/>
  41839. <implements name="java.io.Closeable"/>
  41840. <constructor name="GetUserMappingsProtocolClientSideTranslatorPB" type="org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB"
  41841. static="false" final="false" visibility="public"
  41842. deprecated="not deprecated">
  41843. </constructor>
  41844. <method name="close"
  41845. abstract="false" native="false" synchronized="false"
  41846. static="false" final="false" visibility="public"
  41847. deprecated="not deprecated">
  41848. <exception name="IOException" type="java.io.IOException"/>
  41849. </method>
  41850. <method name="getGroupsForUser" return="java.lang.String[]"
  41851. abstract="false" native="false" synchronized="false"
  41852. static="false" final="false" visibility="public"
  41853. deprecated="not deprecated">
  41854. <param name="user" type="java.lang.String"/>
  41855. <exception name="IOException" type="java.io.IOException"/>
  41856. </method>
  41857. <method name="isMethodSupported" return="boolean"
  41858. abstract="false" native="false" synchronized="false"
  41859. static="false" final="false" visibility="public"
  41860. deprecated="not deprecated">
  41861. <param name="methodName" type="java.lang.String"/>
  41862. <exception name="IOException" type="java.io.IOException"/>
  41863. </method>
  41864. </class>
  41865. <!-- end class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolClientSideTranslatorPB -->
  41866. <!-- start class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolServerSideTranslatorPB -->
  41867. <class name="GetUserMappingsProtocolServerSideTranslatorPB" extends="java.lang.Object"
  41868. abstract="false"
  41869. static="false" final="false" visibility="public"
  41870. deprecated="not deprecated">
  41871. <implements name="org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB"/>
  41872. <constructor name="GetUserMappingsProtocolServerSideTranslatorPB" type="org.apache.hadoop.tools.GetUserMappingsProtocol"
  41873. static="false" final="false" visibility="public"
  41874. deprecated="not deprecated">
  41875. </constructor>
  41876. <method name="getGroupsForUser" return="org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto"
  41877. abstract="false" native="false" synchronized="false"
  41878. static="false" final="false" visibility="public"
  41879. deprecated="not deprecated">
  41880. <param name="controller" type="com.google.protobuf.RpcController"/>
  41881. <param name="request" type="org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto"/>
  41882. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  41883. </method>
  41884. </class>
  41885. <!-- end class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolServerSideTranslatorPB -->
  41886. </package>
  41887. <package name="org.apache.hadoop.tracing">
  41888. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  41889. <class name="SpanReceiverInfo" extends="java.lang.Object"
  41890. abstract="false"
  41891. static="false" final="false" visibility="public"
  41892. deprecated="not deprecated">
  41893. <method name="getId" return="long"
  41894. abstract="false" native="false" synchronized="false"
  41895. static="false" final="false" visibility="public"
  41896. deprecated="not deprecated">
  41897. </method>
  41898. <method name="getClassName" return="java.lang.String"
  41899. abstract="false" native="false" synchronized="false"
  41900. static="false" final="false" visibility="public"
  41901. deprecated="not deprecated">
  41902. </method>
  41903. </class>
  41904. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  41905. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  41906. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  41907. abstract="false"
  41908. static="false" final="false" visibility="public"
  41909. deprecated="not deprecated">
  41910. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  41911. static="false" final="false" visibility="public"
  41912. deprecated="not deprecated">
  41913. </constructor>
  41914. <method name="addConfigurationPair"
  41915. abstract="false" native="false" synchronized="false"
  41916. static="false" final="false" visibility="public"
  41917. deprecated="not deprecated">
  41918. <param name="key" type="java.lang.String"/>
  41919. <param name="value" type="java.lang.String"/>
  41920. </method>
  41921. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  41922. abstract="false" native="false" synchronized="false"
  41923. static="false" final="false" visibility="public"
  41924. deprecated="not deprecated">
  41925. </method>
  41926. </class>
  41927. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  41928. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  41929. <interface name="TraceAdminProtocol" abstract="true"
  41930. static="false" final="false" visibility="public"
  41931. deprecated="not deprecated">
  41932. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  41933. abstract="false" native="false" synchronized="false"
  41934. static="false" final="false" visibility="public"
  41935. deprecated="not deprecated">
  41936. <exception name="IOException" type="java.io.IOException"/>
  41937. <doc>
  41938. <![CDATA[List the currently active trace span receivers.
  41939. @throws IOException On error.]]>
  41940. </doc>
  41941. </method>
  41942. <method name="addSpanReceiver" return="long"
  41943. abstract="false" native="false" synchronized="false"
  41944. static="false" final="false" visibility="public"
  41945. deprecated="not deprecated">
  41946. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  41947. <exception name="IOException" type="java.io.IOException"/>
  41948. <doc>
  41949. <![CDATA[Add a new trace span receiver.
  41950. @param desc The span receiver description.
  41951. @return The ID of the new trace span receiver.
  41952. @throws IOException On error.]]>
  41953. </doc>
  41954. </method>
  41955. <method name="removeSpanReceiver"
  41956. abstract="false" native="false" synchronized="false"
  41957. static="false" final="false" visibility="public"
  41958. deprecated="not deprecated">
  41959. <param name="spanReceiverId" type="long"/>
  41960. <exception name="IOException" type="java.io.IOException"/>
  41961. <doc>
  41962. <![CDATA[Remove a trace span receiver.
  41963. @param spanReceiverId The id of the span receiver to remove.
  41964. @throws IOException On error.]]>
  41965. </doc>
  41966. </method>
  41967. <field name="versionID" type="long"
  41968. transient="false" volatile="false"
  41969. static="true" final="true" visibility="public"
  41970. deprecated="not deprecated">
  41971. </field>
  41972. <doc>
  41973. <![CDATA[Protocol interface that provides tracing.]]>
  41974. </doc>
  41975. </interface>
  41976. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  41977. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  41978. <interface name="TraceAdminProtocolPB" abstract="true"
  41979. static="false" final="false" visibility="public"
  41980. deprecated="not deprecated">
  41981. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  41982. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  41983. </interface>
  41984. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  41985. </package>
  41986. <package name="org.apache.hadoop.util">
  41987. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  41988. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  41989. abstract="false"
  41990. static="false" final="false" visibility="public"
  41991. deprecated="not deprecated">
  41992. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  41993. static="false" final="false" visibility="public"
  41994. deprecated="not deprecated">
  41995. </constructor>
  41996. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  41997. static="false" final="false" visibility="public"
  41998. deprecated="not deprecated">
  41999. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  42000. </constructor>
  42001. <method name="getResource" return="java.net.URL"
  42002. abstract="false" native="false" synchronized="false"
  42003. static="false" final="false" visibility="public"
  42004. deprecated="not deprecated">
  42005. <param name="name" type="java.lang.String"/>
  42006. </method>
  42007. <method name="loadClass" return="java.lang.Class"
  42008. abstract="false" native="false" synchronized="false"
  42009. static="false" final="false" visibility="public"
  42010. deprecated="not deprecated">
  42011. <param name="name" type="java.lang.String"/>
  42012. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  42013. </method>
  42014. <method name="loadClass" return="java.lang.Class"
  42015. abstract="false" native="false" synchronized="true"
  42016. static="false" final="false" visibility="protected"
  42017. deprecated="not deprecated">
  42018. <param name="name" type="java.lang.String"/>
  42019. <param name="resolve" type="boolean"/>
  42020. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  42021. </method>
  42022. <method name="isSystemClass" return="boolean"
  42023. abstract="false" native="false" synchronized="false"
  42024. static="true" final="false" visibility="public"
  42025. deprecated="not deprecated">
  42026. <param name="name" type="java.lang.String"/>
  42027. <param name="systemClasses" type="java.util.List"/>
  42028. </method>
  42029. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  42030. transient="false" volatile="false"
  42031. static="true" final="true" visibility="public"
  42032. deprecated="not deprecated">
  42033. <doc>
  42034. <![CDATA[Default value of the system classes if the user did not override them.
  42035. JDK classes, hadoop classes and resources, and some select third-party
  42036. classes are considered system classes, and are not loaded by the
  42037. application classloader.]]>
  42038. </doc>
  42039. </field>
  42040. <doc>
  42041. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  42042. application JARs are loaded in preference to the parent loader.]]>
  42043. </doc>
  42044. </class>
  42045. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  42046. <!-- start class org.apache.hadoop.util.CacheableIPList -->
  42047. <class name="CacheableIPList" extends="java.lang.Object"
  42048. abstract="false"
  42049. static="false" final="false" visibility="public"
  42050. deprecated="not deprecated">
  42051. <implements name="org.apache.hadoop.util.IPList"/>
  42052. <constructor name="CacheableIPList" type="org.apache.hadoop.util.FileBasedIPList, long"
  42053. static="false" final="false" visibility="public"
  42054. deprecated="not deprecated">
  42055. </constructor>
  42056. <method name="refresh"
  42057. abstract="false" native="false" synchronized="false"
  42058. static="false" final="false" visibility="public"
  42059. deprecated="not deprecated">
  42060. <doc>
  42061. <![CDATA[Refreshes the ip list]]>
  42062. </doc>
  42063. </method>
  42064. <method name="isIn" return="boolean"
  42065. abstract="false" native="false" synchronized="false"
  42066. static="false" final="false" visibility="public"
  42067. deprecated="not deprecated">
  42068. <param name="ipAddress" type="java.lang.String"/>
  42069. </method>
  42070. <doc>
  42071. <![CDATA[CacheableIPList loads a list of subnets from a file.
  42072. The list is cached and the cache can be refreshed by specifying cache timeout.
  42073. A negative value of cache timeout disables any caching.
  42074. Thread safe.]]>
  42075. </doc>
  42076. </class>
  42077. <!-- end class org.apache.hadoop.util.CacheableIPList -->
  42078. <!-- start class org.apache.hadoop.util.CloseableReferenceCount -->
  42079. <class name="CloseableReferenceCount" extends="java.lang.Object"
  42080. abstract="false"
  42081. static="false" final="false" visibility="public"
  42082. deprecated="not deprecated">
  42083. <constructor name="CloseableReferenceCount"
  42084. static="false" final="false" visibility="public"
  42085. deprecated="not deprecated">
  42086. </constructor>
  42087. <method name="reference"
  42088. abstract="false" native="false" synchronized="false"
  42089. static="false" final="false" visibility="public"
  42090. deprecated="not deprecated">
  42091. <exception name="ClosedChannelException" type="java.nio.channels.ClosedChannelException"/>
  42092. <doc>
  42093. <![CDATA[Increment the reference count.
  42094. @throws ClosedChannelException If the status is closed.]]>
  42095. </doc>
  42096. </method>
  42097. <method name="unreference" return="boolean"
  42098. abstract="false" native="false" synchronized="false"
  42099. static="false" final="false" visibility="public"
  42100. deprecated="not deprecated">
  42101. <doc>
  42102. <![CDATA[Decrement the reference count.
  42103. @return True if the object is closed and has no outstanding
  42104. references.]]>
  42105. </doc>
  42106. </method>
  42107. <method name="unreferenceCheckClosed"
  42108. abstract="false" native="false" synchronized="false"
  42109. static="false" final="false" visibility="public"
  42110. deprecated="not deprecated">
  42111. <exception name="ClosedChannelException" type="java.nio.channels.ClosedChannelException"/>
  42112. <doc>
  42113. <![CDATA[Decrement the reference count, checking to make sure that the
  42114. CloseableReferenceCount is not closed.
  42115. @throws AsynchronousCloseException If the status is closed.]]>
  42116. </doc>
  42117. </method>
  42118. <method name="isOpen" return="boolean"
  42119. abstract="false" native="false" synchronized="false"
  42120. static="false" final="false" visibility="public"
  42121. deprecated="not deprecated">
  42122. <doc>
  42123. <![CDATA[Return true if the status is currently open.
  42124. @return True if the status is currently open.]]>
  42125. </doc>
  42126. </method>
  42127. <method name="setClosed" return="int"
  42128. abstract="false" native="false" synchronized="false"
  42129. static="false" final="false" visibility="public"
  42130. deprecated="not deprecated">
  42131. <exception name="ClosedChannelException" type="java.nio.channels.ClosedChannelException"/>
  42132. <doc>
  42133. <![CDATA[Mark the status as closed.
  42134. Once the status is closed, it cannot be reopened.
  42135. @return The current reference count.
  42136. @throws ClosedChannelException If someone else closes the object
  42137. before we do.]]>
  42138. </doc>
  42139. </method>
  42140. <method name="getReferenceCount" return="int"
  42141. abstract="false" native="false" synchronized="false"
  42142. static="false" final="false" visibility="public"
  42143. deprecated="not deprecated">
  42144. <doc>
  42145. <![CDATA[Get the current reference count.
  42146. @return The current reference count.]]>
  42147. </doc>
  42148. </method>
  42149. <doc>
  42150. <![CDATA[A closeable object that maintains a reference count.
  42151. Once the object is closed, attempting to take a new reference will throw
  42152. ClosedChannelException.]]>
  42153. </doc>
  42154. </class>
  42155. <!-- end class org.apache.hadoop.util.CloseableReferenceCount -->
  42156. <!-- start class org.apache.hadoop.util.CombinedIPWhiteList -->
  42157. <class name="CombinedIPWhiteList" extends="java.lang.Object"
  42158. abstract="false"
  42159. static="false" final="false" visibility="public"
  42160. deprecated="not deprecated">
  42161. <implements name="org.apache.hadoop.util.IPList"/>
  42162. <constructor name="CombinedIPWhiteList" type="java.lang.String, java.lang.String, long"
  42163. static="false" final="false" visibility="public"
  42164. deprecated="not deprecated">
  42165. </constructor>
  42166. <method name="isIn" return="boolean"
  42167. abstract="false" native="false" synchronized="false"
  42168. static="false" final="false" visibility="public"
  42169. deprecated="not deprecated">
  42170. <param name="ipAddress" type="java.lang.String"/>
  42171. </method>
  42172. <field name="LOG" type="org.apache.commons.logging.Log"
  42173. transient="false" volatile="false"
  42174. static="true" final="true" visibility="public"
  42175. deprecated="not deprecated">
  42176. </field>
  42177. </class>
  42178. <!-- end class org.apache.hadoop.util.CombinedIPWhiteList -->
  42179. <!-- start class org.apache.hadoop.util.ComparableVersion -->
  42180. <class name="ComparableVersion" extends="java.lang.Object"
  42181. abstract="false"
  42182. static="false" final="false" visibility="public"
  42183. deprecated="not deprecated">
  42184. <implements name="java.lang.Comparable"/>
  42185. <constructor name="ComparableVersion" type="java.lang.String"
  42186. static="false" final="false" visibility="public"
  42187. deprecated="not deprecated">
  42188. </constructor>
  42189. <method name="parseVersion"
  42190. abstract="false" native="false" synchronized="false"
  42191. static="false" final="true" visibility="public"
  42192. deprecated="not deprecated">
  42193. <param name="version" type="java.lang.String"/>
  42194. </method>
  42195. <method name="compareTo" return="int"
  42196. abstract="false" native="false" synchronized="false"
  42197. static="false" final="false" visibility="public"
  42198. deprecated="not deprecated">
  42199. <param name="o" type="org.apache.hadoop.util.ComparableVersion"/>
  42200. </method>
  42201. <method name="toString" return="java.lang.String"
  42202. abstract="false" native="false" synchronized="false"
  42203. static="false" final="false" visibility="public"
  42204. deprecated="not deprecated">
  42205. </method>
  42206. <method name="equals" return="boolean"
  42207. abstract="false" native="false" synchronized="false"
  42208. static="false" final="false" visibility="public"
  42209. deprecated="not deprecated">
  42210. <param name="o" type="java.lang.Object"/>
  42211. </method>
  42212. <method name="hashCode" return="int"
  42213. abstract="false" native="false" synchronized="false"
  42214. static="false" final="false" visibility="public"
  42215. deprecated="not deprecated">
  42216. </method>
  42217. <doc>
  42218. <![CDATA[Generic implementation of version comparison.
  42219. <p>Features:
  42220. <ul>
  42221. <li>mixing of '<code>-</code>' (dash) and '<code>.</code>' (dot) separators,</li>
  42222. <li>transition between characters and digits also constitutes a separator:
  42223. <code>1.0alpha1 =&gt; [1, 0, alpha, 1]</code></li>
  42224. <li>unlimited number of version components,</li>
  42225. <li>version components in the text can be digits or strings,</li>
  42226. <li>strings are checked for well-known qualifiers and the qualifier ordering is used for version ordering.
  42227. Well-known qualifiers (case insensitive) are:<ul>
  42228. <li><code>alpha</code> or <code>a</code></li>
  42229. <li><code>beta</code> or <code>b</code></li>
  42230. <li><code>milestone</code> or <code>m</code></li>
  42231. <li><code>rc</code> or <code>cr</code></li>
  42232. <li><code>snapshot</code></li>
  42233. <li><code>(the empty string)</code> or <code>ga</code> or <code>final</code></li>
  42234. <li><code>sp</code></li>
  42235. </ul>
  42236. Unknown qualifiers are considered after known qualifiers, with lexical order (always case insensitive),
  42237. </li>
  42238. <li>a dash usually precedes a qualifier, and is always less important than something preceded with a dot.</li>
  42239. </ul></p>
  42240. @see <a href="https://cwiki.apache.org/confluence/display/MAVENOLD/Versioning">"Versioning" on Maven Wiki</a>]]>
  42241. </doc>
  42242. </class>
  42243. <!-- end class org.apache.hadoop.util.ComparableVersion -->
  42244. <!-- start class org.apache.hadoop.util.DataChecksum.Type -->
  42245. <class name="DataChecksum.Type" extends="java.lang.Enum"
  42246. abstract="false"
  42247. static="true" final="true" visibility="public"
  42248. deprecated="not deprecated">
  42249. <method name="values" return="org.apache.hadoop.util.DataChecksum.Type[]"
  42250. abstract="false" native="false" synchronized="false"
  42251. static="true" final="false" visibility="public"
  42252. deprecated="not deprecated">
  42253. </method>
  42254. <method name="valueOf" return="org.apache.hadoop.util.DataChecksum.Type"
  42255. abstract="false" native="false" synchronized="false"
  42256. static="true" final="false" visibility="public"
  42257. deprecated="not deprecated">
  42258. <param name="name" type="java.lang.String"/>
  42259. </method>
  42260. <method name="valueOf" return="org.apache.hadoop.util.DataChecksum.Type"
  42261. abstract="false" native="false" synchronized="false"
  42262. static="true" final="false" visibility="public"
  42263. deprecated="not deprecated">
  42264. <param name="id" type="int"/>
  42265. <doc>
  42266. <![CDATA[@return the type corresponding to the id.]]>
  42267. </doc>
  42268. </method>
  42269. <field name="id" type="int"
  42270. transient="false" volatile="false"
  42271. static="false" final="true" visibility="public"
  42272. deprecated="not deprecated">
  42273. </field>
  42274. <field name="size" type="int"
  42275. transient="false" volatile="false"
  42276. static="false" final="true" visibility="public"
  42277. deprecated="not deprecated">
  42278. </field>
  42279. <doc>
  42280. <![CDATA[The checksum types]]>
  42281. </doc>
  42282. </class>
  42283. <!-- end class org.apache.hadoop.util.DataChecksum.Type -->
  42284. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  42285. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  42286. abstract="false"
  42287. static="true" final="false" visibility="public"
  42288. deprecated="not deprecated">
  42289. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  42290. static="false" final="false" visibility="public"
  42291. deprecated="not deprecated">
  42292. </constructor>
  42293. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String, java.lang.Throwable"
  42294. static="false" final="false" visibility="public"
  42295. deprecated="not deprecated">
  42296. </constructor>
  42297. </class>
  42298. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  42299. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  42300. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  42301. abstract="false"
  42302. static="true" final="false" visibility="public"
  42303. deprecated="not deprecated">
  42304. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  42305. static="false" final="false" visibility="public"
  42306. deprecated="not deprecated">
  42307. </constructor>
  42308. </class>
  42309. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  42310. <!-- start class org.apache.hadoop.util.ExitUtil.ExitException -->
  42311. <class name="ExitUtil.ExitException" extends="java.lang.RuntimeException"
  42312. abstract="false"
  42313. static="true" final="false" visibility="public"
  42314. deprecated="not deprecated">
  42315. <constructor name="ExitUtil.ExitException" type="int, java.lang.String"
  42316. static="false" final="false" visibility="public"
  42317. deprecated="not deprecated">
  42318. </constructor>
  42319. <field name="status" type="int"
  42320. transient="false" volatile="false"
  42321. static="false" final="true" visibility="public"
  42322. deprecated="not deprecated">
  42323. </field>
  42324. </class>
  42325. <!-- end class org.apache.hadoop.util.ExitUtil.ExitException -->
  42326. <!-- start class org.apache.hadoop.util.ExitUtil.HaltException -->
  42327. <class name="ExitUtil.HaltException" extends="java.lang.RuntimeException"
  42328. abstract="false"
  42329. static="true" final="false" visibility="public"
  42330. deprecated="not deprecated">
  42331. <constructor name="ExitUtil.HaltException" type="int, java.lang.String"
  42332. static="false" final="false" visibility="public"
  42333. deprecated="not deprecated">
  42334. </constructor>
  42335. <field name="status" type="int"
  42336. transient="false" volatile="false"
  42337. static="false" final="true" visibility="public"
  42338. deprecated="not deprecated">
  42339. </field>
  42340. </class>
  42341. <!-- end class org.apache.hadoop.util.ExitUtil.HaltException -->
  42342. <!-- start class org.apache.hadoop.util.FileBasedIPList -->
  42343. <class name="FileBasedIPList" extends="java.lang.Object"
  42344. abstract="false"
  42345. static="false" final="false" visibility="public"
  42346. deprecated="not deprecated">
  42347. <implements name="org.apache.hadoop.util.IPList"/>
  42348. <constructor name="FileBasedIPList" type="java.lang.String"
  42349. static="false" final="false" visibility="public"
  42350. deprecated="not deprecated">
  42351. </constructor>
  42352. <method name="reload" return="org.apache.hadoop.util.FileBasedIPList"
  42353. abstract="false" native="false" synchronized="false"
  42354. static="false" final="false" visibility="public"
  42355. deprecated="not deprecated">
  42356. </method>
  42357. <method name="isIn" return="boolean"
  42358. abstract="false" native="false" synchronized="false"
  42359. static="false" final="false" visibility="public"
  42360. deprecated="not deprecated">
  42361. <param name="ipAddress" type="java.lang.String"/>
  42362. </method>
  42363. <doc>
  42364. <![CDATA[FileBasedIPList loads a list of subnets in CIDR format and ip addresses from a file.
  42365. Given an ip address, isIn method returns true if ip belongs to one of the subnets.
  42366. Thread safe.]]>
  42367. </doc>
  42368. </class>
  42369. <!-- end class org.apache.hadoop.util.FileBasedIPList -->
  42370. <!-- start interface org.apache.hadoop.util.IdentityHashStore.Visitor -->
  42371. <interface name="IdentityHashStore.Visitor" abstract="true"
  42372. static="true" final="false" visibility="public"
  42373. deprecated="not deprecated">
  42374. <method name="accept"
  42375. abstract="false" native="false" synchronized="false"
  42376. static="false" final="false" visibility="public"
  42377. deprecated="not deprecated">
  42378. <param name="k" type="K"/>
  42379. <param name="v" type="V"/>
  42380. </method>
  42381. </interface>
  42382. <!-- end interface org.apache.hadoop.util.IdentityHashStore.Visitor -->
  42383. <!-- start class org.apache.hadoop.util.IntrusiveCollection.IntrusiveIterator -->
  42384. <class name="IntrusiveCollection.IntrusiveIterator" extends="java.lang.Object"
  42385. abstract="false"
  42386. static="false" final="false" visibility="public"
  42387. deprecated="not deprecated">
  42388. <implements name="java.util.Iterator"/>
  42389. <method name="hasNext" return="boolean"
  42390. abstract="false" native="false" synchronized="false"
  42391. static="false" final="false" visibility="public"
  42392. deprecated="not deprecated">
  42393. </method>
  42394. <method name="next" return="E"
  42395. abstract="false" native="false" synchronized="false"
  42396. static="false" final="false" visibility="public"
  42397. deprecated="not deprecated">
  42398. </method>
  42399. <method name="remove"
  42400. abstract="false" native="false" synchronized="false"
  42401. static="false" final="false" visibility="public"
  42402. deprecated="not deprecated">
  42403. </method>
  42404. <doc>
  42405. <![CDATA[An iterator over the intrusive collection.
  42406. Currently, you can remove elements from the list using
  42407. #{IntrusiveIterator#remove()}, but modifying the collection in other
  42408. ways during the iteration is not supported.]]>
  42409. </doc>
  42410. </class>
  42411. <!-- end class org.apache.hadoop.util.IntrusiveCollection.IntrusiveIterator -->
  42412. <!-- start interface org.apache.hadoop.util.IPList -->
  42413. <interface name="IPList" abstract="true"
  42414. static="false" final="false" visibility="public"
  42415. deprecated="not deprecated">
  42416. <method name="isIn" return="boolean"
  42417. abstract="false" native="false" synchronized="false"
  42418. static="false" final="false" visibility="public"
  42419. deprecated="not deprecated">
  42420. <param name="ipAddress" type="java.lang.String"/>
  42421. <doc>
  42422. <![CDATA[returns true if the ipAddress is in the IPList.
  42423. @param ipAddress
  42424. @return boolean value indicating whether the ipAddress is in the IPList]]>
  42425. </doc>
  42426. </method>
  42427. </interface>
  42428. <!-- end interface org.apache.hadoop.util.IPList -->
  42429. <!-- start interface org.apache.hadoop.util.LightWeightCache.Entry -->
  42430. <interface name="LightWeightCache.Entry" abstract="true"
  42431. static="true" final="false" visibility="public"
  42432. deprecated="not deprecated">
  42433. <implements name="org.apache.hadoop.util.LightWeightGSet.LinkedElement"/>
  42434. <method name="setExpirationTime"
  42435. abstract="false" native="false" synchronized="false"
  42436. static="false" final="false" visibility="public"
  42437. deprecated="not deprecated">
  42438. <param name="timeNano" type="long"/>
  42439. <doc>
  42440. <![CDATA[Set the expiration time.]]>
  42441. </doc>
  42442. </method>
  42443. <method name="getExpirationTime" return="long"
  42444. abstract="false" native="false" synchronized="false"
  42445. static="false" final="false" visibility="public"
  42446. deprecated="not deprecated">
  42447. <doc>
  42448. <![CDATA[Get the expiration time.]]>
  42449. </doc>
  42450. </method>
  42451. <doc>
  42452. <![CDATA[Entries of {@link LightWeightCache}.]]>
  42453. </doc>
  42454. </interface>
  42455. <!-- end interface org.apache.hadoop.util.LightWeightCache.Entry -->
  42456. <!-- start interface org.apache.hadoop.util.LightWeightGSet.LinkedElement -->
  42457. <interface name="LightWeightGSet.LinkedElement" abstract="true"
  42458. static="true" final="false" visibility="public"
  42459. deprecated="not deprecated">
  42460. <method name="setNext"
  42461. abstract="false" native="false" synchronized="false"
  42462. static="false" final="false" visibility="public"
  42463. deprecated="not deprecated">
  42464. <param name="next" type="org.apache.hadoop.util.LightWeightGSet.LinkedElement"/>
  42465. <doc>
  42466. <![CDATA[Set the next element.]]>
  42467. </doc>
  42468. </method>
  42469. <method name="getNext" return="org.apache.hadoop.util.LightWeightGSet.LinkedElement"
  42470. abstract="false" native="false" synchronized="false"
  42471. static="false" final="false" visibility="public"
  42472. deprecated="not deprecated">
  42473. <doc>
  42474. <![CDATA[Get the next element.]]>
  42475. </doc>
  42476. </method>
  42477. <doc>
  42478. <![CDATA[Elements of {@link LightWeightGSet}.]]>
  42479. </doc>
  42480. </interface>
  42481. <!-- end interface org.apache.hadoop.util.LightWeightGSet.LinkedElement -->
  42482. <!-- start class org.apache.hadoop.util.LightWeightGSet.SetIterator -->
  42483. <class name="LightWeightGSet.SetIterator" extends="java.lang.Object"
  42484. abstract="false"
  42485. static="false" final="false" visibility="public"
  42486. deprecated="not deprecated">
  42487. <implements name="java.util.Iterator"/>
  42488. <constructor name="LightWeightGSet.SetIterator"
  42489. static="false" final="false" visibility="public"
  42490. deprecated="not deprecated">
  42491. </constructor>
  42492. <method name="hasNext" return="boolean"
  42493. abstract="false" native="false" synchronized="false"
  42494. static="false" final="false" visibility="public"
  42495. deprecated="not deprecated">
  42496. </method>
  42497. <method name="next" return="E"
  42498. abstract="false" native="false" synchronized="false"
  42499. static="false" final="false" visibility="public"
  42500. deprecated="not deprecated">
  42501. </method>
  42502. <method name="remove"
  42503. abstract="false" native="false" synchronized="false"
  42504. static="false" final="false" visibility="public"
  42505. deprecated="not deprecated">
  42506. </method>
  42507. <method name="setTrackModification"
  42508. abstract="false" native="false" synchronized="false"
  42509. static="false" final="false" visibility="public"
  42510. deprecated="not deprecated">
  42511. <param name="trackModification" type="boolean"/>
  42512. </method>
  42513. </class>
  42514. <!-- end class org.apache.hadoop.util.LightWeightGSet.SetIterator -->
  42515. <!-- start class org.apache.hadoop.util.LimitInputStream -->
  42516. <class name="LimitInputStream" extends="java.io.FilterInputStream"
  42517. abstract="false"
  42518. static="false" final="true" visibility="public"
  42519. deprecated="not deprecated">
  42520. <constructor name="LimitInputStream" type="java.io.InputStream, long"
  42521. static="false" final="false" visibility="public"
  42522. deprecated="not deprecated">
  42523. </constructor>
  42524. <method name="available" return="int"
  42525. abstract="false" native="false" synchronized="false"
  42526. static="false" final="false" visibility="public"
  42527. deprecated="not deprecated">
  42528. <exception name="IOException" type="java.io.IOException"/>
  42529. </method>
  42530. <method name="mark"
  42531. abstract="false" native="false" synchronized="true"
  42532. static="false" final="false" visibility="public"
  42533. deprecated="not deprecated">
  42534. <param name="readLimit" type="int"/>
  42535. </method>
  42536. <method name="read" return="int"
  42537. abstract="false" native="false" synchronized="false"
  42538. static="false" final="false" visibility="public"
  42539. deprecated="not deprecated">
  42540. <exception name="IOException" type="java.io.IOException"/>
  42541. </method>
  42542. <method name="read" return="int"
  42543. abstract="false" native="false" synchronized="false"
  42544. static="false" final="false" visibility="public"
  42545. deprecated="not deprecated">
  42546. <param name="b" type="byte[]"/>
  42547. <param name="off" type="int"/>
  42548. <param name="len" type="int"/>
  42549. <exception name="IOException" type="java.io.IOException"/>
  42550. </method>
  42551. <method name="reset"
  42552. abstract="false" native="false" synchronized="true"
  42553. static="false" final="false" visibility="public"
  42554. deprecated="not deprecated">
  42555. <exception name="IOException" type="java.io.IOException"/>
  42556. </method>
  42557. <method name="skip" return="long"
  42558. abstract="false" native="false" synchronized="false"
  42559. static="false" final="false" visibility="public"
  42560. deprecated="not deprecated">
  42561. <param name="n" type="long"/>
  42562. <exception name="IOException" type="java.io.IOException"/>
  42563. </method>
  42564. <doc>
  42565. <![CDATA[Copied from guava source code v15 (LimitedInputStream)
  42566. Guava deprecated LimitInputStream in v14 and removed it in v15. Copying this class here
  42567. allows to be compatible with guava 11 to 15+.
  42568. Originally: org.apache.hadoop.hbase.io.LimitInputStream]]>
  42569. </doc>
  42570. </class>
  42571. <!-- end class org.apache.hadoop.util.LimitInputStream -->
  42572. <!-- start class org.apache.hadoop.util.MachineList -->
  42573. <class name="MachineList" extends="java.lang.Object"
  42574. abstract="false"
  42575. static="false" final="false" visibility="public"
  42576. deprecated="not deprecated">
  42577. <constructor name="MachineList" type="java.lang.String"
  42578. static="false" final="false" visibility="public"
  42579. deprecated="not deprecated">
  42580. <doc>
  42581. <![CDATA[@param hostEntries comma separated ip/cidr/host addresses]]>
  42582. </doc>
  42583. </constructor>
  42584. <constructor name="MachineList" type="java.util.Collection"
  42585. static="false" final="false" visibility="public"
  42586. deprecated="not deprecated">
  42587. <doc>
  42588. <![CDATA[@param hostEntries collection of separated ip/cidr/host addresses]]>
  42589. </doc>
  42590. </constructor>
  42591. <constructor name="MachineList" type="java.util.Collection, org.apache.hadoop.util.MachineList.InetAddressFactory"
  42592. static="false" final="false" visibility="public"
  42593. deprecated="not deprecated">
  42594. <doc>
  42595. <![CDATA[Accepts a collection of ip/cidr/host addresses
  42596. @param hostEntries
  42597. @param addressFactory addressFactory to convert host to InetAddress]]>
  42598. </doc>
  42599. </constructor>
  42600. <method name="includes" return="boolean"
  42601. abstract="false" native="false" synchronized="false"
  42602. static="false" final="false" visibility="public"
  42603. deprecated="not deprecated">
  42604. <param name="ipAddress" type="java.lang.String"/>
  42605. <doc>
  42606. <![CDATA[Accepts an ip address and return true if ipAddress is in the list
  42607. @param ipAddress
  42608. @return true if ipAddress is part of the list]]>
  42609. </doc>
  42610. </method>
  42611. <method name="getCollection" return="java.util.Collection"
  42612. abstract="false" native="false" synchronized="false"
  42613. static="false" final="false" visibility="public"
  42614. deprecated="not deprecated">
  42615. <doc>
  42616. <![CDATA[returns the contents of the MachineList as a Collection<String>
  42617. This can be used for testing
  42618. @return contents of the MachineList]]>
  42619. </doc>
  42620. </method>
  42621. <field name="LOG" type="org.apache.commons.logging.Log"
  42622. transient="false" volatile="false"
  42623. static="true" final="true" visibility="public"
  42624. deprecated="not deprecated">
  42625. </field>
  42626. <doc>
  42627. <![CDATA[Container class which holds a list of ip/host addresses and
  42628. answers membership queries.
  42629. Accepts list of ip addresses, ip addreses in CIDR format and/or
  42630. host addresses.]]>
  42631. </doc>
  42632. </class>
  42633. <!-- end class org.apache.hadoop.util.MachineList -->
  42634. <!-- start class org.apache.hadoop.util.MachineList.InetAddressFactory -->
  42635. <class name="MachineList.InetAddressFactory" extends="java.lang.Object"
  42636. abstract="false"
  42637. static="true" final="false" visibility="public"
  42638. deprecated="not deprecated">
  42639. <constructor name="MachineList.InetAddressFactory"
  42640. static="false" final="false" visibility="public"
  42641. deprecated="not deprecated">
  42642. </constructor>
  42643. <method name="getByName" return="java.net.InetAddress"
  42644. abstract="false" native="false" synchronized="false"
  42645. static="false" final="false" visibility="public"
  42646. deprecated="not deprecated">
  42647. <param name="host" type="java.lang.String"/>
  42648. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  42649. </method>
  42650. <doc>
  42651. <![CDATA[InetAddressFactory is used to obtain InetAddress from host.
  42652. This class makes it easy to simulate host to ip mappings during testing.]]>
  42653. </doc>
  42654. </class>
  42655. <!-- end class org.apache.hadoop.util.MachineList.InetAddressFactory -->
  42656. <!-- start class org.apache.hadoop.util.Options -->
  42657. <class name="Options" extends="java.lang.Object"
  42658. abstract="false"
  42659. static="false" final="false" visibility="public"
  42660. deprecated="not deprecated">
  42661. <constructor name="Options"
  42662. static="false" final="false" visibility="public"
  42663. deprecated="not deprecated">
  42664. </constructor>
  42665. <method name="getOption" return="T"
  42666. abstract="false" native="false" synchronized="false"
  42667. static="true" final="false" visibility="public"
  42668. deprecated="not deprecated">
  42669. <param name="cls" type="java.lang.Class"/>
  42670. <param name="opts" type="base[]"/>
  42671. <exception name="IOException" type="java.io.IOException"/>
  42672. <doc>
  42673. <![CDATA[Find the first option of the required class.
  42674. @param <T> the static class to find
  42675. @param <base> the parent class of the array
  42676. @param cls the dynamic class to find
  42677. @param opts the list of options to look through
  42678. @return the first option that matches
  42679. @throws IOException]]>
  42680. </doc>
  42681. </method>
  42682. <method name="prependOptions" return="T[]"
  42683. abstract="false" native="false" synchronized="false"
  42684. static="true" final="false" visibility="public"
  42685. deprecated="not deprecated">
  42686. <param name="oldOpts" type="T[]"/>
  42687. <param name="newOpts" type="T[]"/>
  42688. <doc>
  42689. <![CDATA[Prepend some new options to the old options
  42690. @param <T> the type of options
  42691. @param oldOpts the old options
  42692. @param newOpts the new options
  42693. @return a new array of options]]>
  42694. </doc>
  42695. </method>
  42696. <doc>
  42697. <![CDATA[This class allows generic access to variable length type-safe parameter
  42698. lists.]]>
  42699. </doc>
  42700. </class>
  42701. <!-- end class org.apache.hadoop.util.Options -->
  42702. <!-- start class org.apache.hadoop.util.Options.BooleanOption -->
  42703. <class name="Options.BooleanOption" extends="java.lang.Object"
  42704. abstract="true"
  42705. static="true" final="false" visibility="public"
  42706. deprecated="not deprecated">
  42707. <constructor name="Options.BooleanOption" type="boolean"
  42708. static="false" final="false" visibility="protected"
  42709. deprecated="not deprecated">
  42710. </constructor>
  42711. <method name="getValue" return="boolean"
  42712. abstract="false" native="false" synchronized="false"
  42713. static="false" final="false" visibility="public"
  42714. deprecated="not deprecated">
  42715. </method>
  42716. </class>
  42717. <!-- end class org.apache.hadoop.util.Options.BooleanOption -->
  42718. <!-- start class org.apache.hadoop.util.Options.ClassOption -->
  42719. <class name="Options.ClassOption" extends="java.lang.Object"
  42720. abstract="true"
  42721. static="true" final="false" visibility="public"
  42722. deprecated="not deprecated">
  42723. <constructor name="Options.ClassOption" type="java.lang.Class"
  42724. static="false" final="false" visibility="protected"
  42725. deprecated="not deprecated">
  42726. </constructor>
  42727. <method name="getValue" return="java.lang.Class"
  42728. abstract="false" native="false" synchronized="false"
  42729. static="false" final="false" visibility="public"
  42730. deprecated="not deprecated">
  42731. </method>
  42732. </class>
  42733. <!-- end class org.apache.hadoop.util.Options.ClassOption -->
  42734. <!-- start class org.apache.hadoop.util.Options.FSDataInputStreamOption -->
  42735. <class name="Options.FSDataInputStreamOption" extends="java.lang.Object"
  42736. abstract="true"
  42737. static="true" final="false" visibility="public"
  42738. deprecated="not deprecated">
  42739. <constructor name="Options.FSDataInputStreamOption" type="org.apache.hadoop.fs.FSDataInputStream"
  42740. static="false" final="false" visibility="protected"
  42741. deprecated="not deprecated">
  42742. </constructor>
  42743. <method name="getValue" return="org.apache.hadoop.fs.FSDataInputStream"
  42744. abstract="false" native="false" synchronized="false"
  42745. static="false" final="false" visibility="public"
  42746. deprecated="not deprecated">
  42747. </method>
  42748. </class>
  42749. <!-- end class org.apache.hadoop.util.Options.FSDataInputStreamOption -->
  42750. <!-- start class org.apache.hadoop.util.Options.FSDataOutputStreamOption -->
  42751. <class name="Options.FSDataOutputStreamOption" extends="java.lang.Object"
  42752. abstract="true"
  42753. static="true" final="false" visibility="public"
  42754. deprecated="not deprecated">
  42755. <constructor name="Options.FSDataOutputStreamOption" type="org.apache.hadoop.fs.FSDataOutputStream"
  42756. static="false" final="false" visibility="protected"
  42757. deprecated="not deprecated">
  42758. </constructor>
  42759. <method name="getValue" return="org.apache.hadoop.fs.FSDataOutputStream"
  42760. abstract="false" native="false" synchronized="false"
  42761. static="false" final="false" visibility="public"
  42762. deprecated="not deprecated">
  42763. </method>
  42764. </class>
  42765. <!-- end class org.apache.hadoop.util.Options.FSDataOutputStreamOption -->
  42766. <!-- start class org.apache.hadoop.util.Options.IntegerOption -->
  42767. <class name="Options.IntegerOption" extends="java.lang.Object"
  42768. abstract="true"
  42769. static="true" final="false" visibility="public"
  42770. deprecated="not deprecated">
  42771. <constructor name="Options.IntegerOption" type="int"
  42772. static="false" final="false" visibility="protected"
  42773. deprecated="not deprecated">
  42774. </constructor>
  42775. <method name="getValue" return="int"
  42776. abstract="false" native="false" synchronized="false"
  42777. static="false" final="false" visibility="public"
  42778. deprecated="not deprecated">
  42779. </method>
  42780. </class>
  42781. <!-- end class org.apache.hadoop.util.Options.IntegerOption -->
  42782. <!-- start class org.apache.hadoop.util.Options.LongOption -->
  42783. <class name="Options.LongOption" extends="java.lang.Object"
  42784. abstract="true"
  42785. static="true" final="false" visibility="public"
  42786. deprecated="not deprecated">
  42787. <constructor name="Options.LongOption" type="long"
  42788. static="false" final="false" visibility="protected"
  42789. deprecated="not deprecated">
  42790. </constructor>
  42791. <method name="getValue" return="long"
  42792. abstract="false" native="false" synchronized="false"
  42793. static="false" final="false" visibility="public"
  42794. deprecated="not deprecated">
  42795. </method>
  42796. </class>
  42797. <!-- end class org.apache.hadoop.util.Options.LongOption -->
  42798. <!-- start class org.apache.hadoop.util.Options.PathOption -->
  42799. <class name="Options.PathOption" extends="java.lang.Object"
  42800. abstract="true"
  42801. static="true" final="false" visibility="public"
  42802. deprecated="not deprecated">
  42803. <constructor name="Options.PathOption" type="org.apache.hadoop.fs.Path"
  42804. static="false" final="false" visibility="protected"
  42805. deprecated="not deprecated">
  42806. </constructor>
  42807. <method name="getValue" return="org.apache.hadoop.fs.Path"
  42808. abstract="false" native="false" synchronized="false"
  42809. static="false" final="false" visibility="public"
  42810. deprecated="not deprecated">
  42811. </method>
  42812. </class>
  42813. <!-- end class org.apache.hadoop.util.Options.PathOption -->
  42814. <!-- start class org.apache.hadoop.util.Options.ProgressableOption -->
  42815. <class name="Options.ProgressableOption" extends="java.lang.Object"
  42816. abstract="true"
  42817. static="true" final="false" visibility="public"
  42818. deprecated="not deprecated">
  42819. <constructor name="Options.ProgressableOption" type="org.apache.hadoop.util.Progressable"
  42820. static="false" final="false" visibility="protected"
  42821. deprecated="not deprecated">
  42822. </constructor>
  42823. <method name="getValue" return="org.apache.hadoop.util.Progressable"
  42824. abstract="false" native="false" synchronized="false"
  42825. static="false" final="false" visibility="public"
  42826. deprecated="not deprecated">
  42827. </method>
  42828. </class>
  42829. <!-- end class org.apache.hadoop.util.Options.ProgressableOption -->
  42830. <!-- start class org.apache.hadoop.util.Options.StringOption -->
  42831. <class name="Options.StringOption" extends="java.lang.Object"
  42832. abstract="true"
  42833. static="true" final="false" visibility="public"
  42834. deprecated="not deprecated">
  42835. <constructor name="Options.StringOption" type="java.lang.String"
  42836. static="false" final="false" visibility="protected"
  42837. deprecated="not deprecated">
  42838. </constructor>
  42839. <method name="getValue" return="java.lang.String"
  42840. abstract="false" native="false" synchronized="false"
  42841. static="false" final="false" visibility="public"
  42842. deprecated="not deprecated">
  42843. </method>
  42844. </class>
  42845. <!-- end class org.apache.hadoop.util.Options.StringOption -->
  42846. <!-- start class org.apache.hadoop.util.PerformanceAdvisory -->
  42847. <class name="PerformanceAdvisory" extends="java.lang.Object"
  42848. abstract="false"
  42849. static="false" final="false" visibility="public"
  42850. deprecated="not deprecated">
  42851. <constructor name="PerformanceAdvisory"
  42852. static="false" final="false" visibility="public"
  42853. deprecated="not deprecated">
  42854. </constructor>
  42855. <field name="LOG" type="org.slf4j.Logger"
  42856. transient="false" volatile="false"
  42857. static="true" final="true" visibility="public"
  42858. deprecated="not deprecated">
  42859. </field>
  42860. </class>
  42861. <!-- end class org.apache.hadoop.util.PerformanceAdvisory -->
  42862. <!-- start interface org.apache.hadoop.util.Progressable -->
  42863. <interface name="Progressable" abstract="true"
  42864. static="false" final="false" visibility="public"
  42865. deprecated="not deprecated">
  42866. <method name="progress"
  42867. abstract="false" native="false" synchronized="false"
  42868. static="false" final="false" visibility="public"
  42869. deprecated="not deprecated">
  42870. <doc>
  42871. <![CDATA[Report progress to the Hadoop framework.]]>
  42872. </doc>
  42873. </method>
  42874. <doc>
  42875. <![CDATA[A facility for reporting progress.
  42876. <p>Clients and/or applications can use the provided <code>Progressable</code>
  42877. to explicitly report progress to the Hadoop framework. This is especially
  42878. important for operations which take significant amount of time since,
  42879. in-lieu of the reported progress, the framework has to assume that an error
  42880. has occured and time-out the operation.</p>]]>
  42881. </doc>
  42882. </interface>
  42883. <!-- end interface org.apache.hadoop.util.Progressable -->
  42884. <!-- start class org.apache.hadoop.util.ProtoUtil -->
  42885. <class name="ProtoUtil" extends="java.lang.Object"
  42886. abstract="true"
  42887. static="false" final="false" visibility="public"
  42888. deprecated="not deprecated">
  42889. <constructor name="ProtoUtil"
  42890. static="false" final="false" visibility="public"
  42891. deprecated="not deprecated">
  42892. </constructor>
  42893. <method name="readRawVarint32" return="int"
  42894. abstract="false" native="false" synchronized="false"
  42895. static="true" final="false" visibility="public"
  42896. deprecated="not deprecated">
  42897. <param name="in" type="java.io.DataInput"/>
  42898. <exception name="IOException" type="java.io.IOException"/>
  42899. <doc>
  42900. <![CDATA[Read a variable length integer in the same format that ProtoBufs encodes.
  42901. @param in the input stream to read from
  42902. @return the integer
  42903. @throws IOException if it is malformed or EOF.]]>
  42904. </doc>
  42905. </method>
  42906. <method name="makeIpcConnectionContext" return="org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto"
  42907. abstract="false" native="false" synchronized="false"
  42908. static="true" final="false" visibility="public"
  42909. deprecated="not deprecated">
  42910. <param name="protocol" type="java.lang.String"/>
  42911. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  42912. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  42913. <doc>
  42914. <![CDATA[This method creates the connection context using exactly the same logic
  42915. as the old connection context as was done for writable where
  42916. the effective and real users are set based on the auth method.]]>
  42917. </doc>
  42918. </method>
  42919. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  42920. abstract="false" native="false" synchronized="false"
  42921. static="true" final="false" visibility="public"
  42922. deprecated="not deprecated">
  42923. <param name="context" type="org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto"/>
  42924. </method>
  42925. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  42926. abstract="false" native="false" synchronized="false"
  42927. static="true" final="false" visibility="public"
  42928. deprecated="not deprecated">
  42929. <param name="userInfo" type="org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto"/>
  42930. </method>
  42931. <method name="convert" return="org.apache.hadoop.ipc.RPC.RpcKind"
  42932. abstract="false" native="false" synchronized="false"
  42933. static="true" final="false" visibility="public"
  42934. deprecated="not deprecated">
  42935. <param name="kind" type="org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcKindProto"/>
  42936. </method>
  42937. <method name="makeRpcRequestHeader" return="org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto"
  42938. abstract="false" native="false" synchronized="false"
  42939. static="true" final="false" visibility="public"
  42940. deprecated="not deprecated">
  42941. <param name="rpcKind" type="org.apache.hadoop.ipc.RPC.RpcKind"/>
  42942. <param name="operation" type="org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto.OperationProto"/>
  42943. <param name="callId" type="int"/>
  42944. <param name="retryCount" type="int"/>
  42945. <param name="uuid" type="byte[]"/>
  42946. </method>
  42947. </class>
  42948. <!-- end class org.apache.hadoop.util.ProtoUtil -->
  42949. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  42950. <class name="PureJavaCrc32" extends="java.lang.Object"
  42951. abstract="false"
  42952. static="false" final="false" visibility="public"
  42953. deprecated="not deprecated">
  42954. <implements name="java.util.zip.Checksum"/>
  42955. <constructor name="PureJavaCrc32"
  42956. static="false" final="false" visibility="public"
  42957. deprecated="not deprecated">
  42958. <doc>
  42959. <![CDATA[Create a new PureJavaCrc32 object.]]>
  42960. </doc>
  42961. </constructor>
  42962. <method name="getValue" return="long"
  42963. abstract="false" native="false" synchronized="false"
  42964. static="false" final="false" visibility="public"
  42965. deprecated="not deprecated">
  42966. </method>
  42967. <method name="reset"
  42968. abstract="false" native="false" synchronized="false"
  42969. static="false" final="false" visibility="public"
  42970. deprecated="not deprecated">
  42971. </method>
  42972. <method name="update"
  42973. abstract="false" native="false" synchronized="false"
  42974. static="false" final="false" visibility="public"
  42975. deprecated="not deprecated">
  42976. <param name="b" type="byte[]"/>
  42977. <param name="offset" type="int"/>
  42978. <param name="len" type="int"/>
  42979. </method>
  42980. <method name="update"
  42981. abstract="false" native="false" synchronized="false"
  42982. static="false" final="true" visibility="public"
  42983. deprecated="not deprecated">
  42984. <param name="b" type="int"/>
  42985. </method>
  42986. <doc>
  42987. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  42988. the same polynomial as the built-in native CRC32.
  42989. This is to avoid the JNI overhead for certain uses of Checksumming
  42990. where many small pieces of data are checksummed in succession.
  42991. The current version is ~10x to 1.8x as fast as Sun's native
  42992. java.util.zip.CRC32 in Java 1.6
  42993. @see java.util.zip.CRC32]]>
  42994. </doc>
  42995. </class>
  42996. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  42997. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  42998. <class name="PureJavaCrc32C" extends="java.lang.Object"
  42999. abstract="false"
  43000. static="false" final="false" visibility="public"
  43001. deprecated="not deprecated">
  43002. <implements name="java.util.zip.Checksum"/>
  43003. <constructor name="PureJavaCrc32C"
  43004. static="false" final="false" visibility="public"
  43005. deprecated="not deprecated">
  43006. <doc>
  43007. <![CDATA[Create a new PureJavaCrc32 object.]]>
  43008. </doc>
  43009. </constructor>
  43010. <method name="getValue" return="long"
  43011. abstract="false" native="false" synchronized="false"
  43012. static="false" final="false" visibility="public"
  43013. deprecated="not deprecated">
  43014. </method>
  43015. <method name="reset"
  43016. abstract="false" native="false" synchronized="false"
  43017. static="false" final="false" visibility="public"
  43018. deprecated="not deprecated">
  43019. </method>
  43020. <method name="update"
  43021. abstract="false" native="false" synchronized="false"
  43022. static="false" final="false" visibility="public"
  43023. deprecated="not deprecated">
  43024. <param name="b" type="byte[]"/>
  43025. <param name="off" type="int"/>
  43026. <param name="len" type="int"/>
  43027. </method>
  43028. <method name="update"
  43029. abstract="false" native="false" synchronized="false"
  43030. static="false" final="true" visibility="public"
  43031. deprecated="not deprecated">
  43032. <param name="b" type="int"/>
  43033. </method>
  43034. <doc>
  43035. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  43036. the CRC32-C polynomial, the same polynomial used by iSCSI
  43037. and implemented on many Intel chipsets supporting SSE4.2.]]>
  43038. </doc>
  43039. </class>
  43040. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  43041. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  43042. <class name="ReflectionUtils" extends="java.lang.Object"
  43043. abstract="false"
  43044. static="false" final="false" visibility="public"
  43045. deprecated="not deprecated">
  43046. <constructor name="ReflectionUtils"
  43047. static="false" final="false" visibility="public"
  43048. deprecated="not deprecated">
  43049. </constructor>
  43050. <method name="setConf"
  43051. abstract="false" native="false" synchronized="false"
  43052. static="true" final="false" visibility="public"
  43053. deprecated="not deprecated">
  43054. <param name="theObject" type="java.lang.Object"/>
  43055. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43056. <doc>
  43057. <![CDATA[Check and set 'configuration' if necessary.
  43058. @param theObject object for which to set configuration
  43059. @param conf Configuration]]>
  43060. </doc>
  43061. </method>
  43062. <method name="newInstance" return="T"
  43063. abstract="false" native="false" synchronized="false"
  43064. static="true" final="false" visibility="public"
  43065. deprecated="not deprecated">
  43066. <param name="theClass" type="java.lang.Class"/>
  43067. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43068. <doc>
  43069. <![CDATA[Create an object for the given class and initialize it from conf
  43070. @param theClass class of which an object is created
  43071. @param conf Configuration
  43072. @return a new object]]>
  43073. </doc>
  43074. </method>
  43075. <method name="setContentionTracing"
  43076. abstract="false" native="false" synchronized="false"
  43077. static="true" final="false" visibility="public"
  43078. deprecated="not deprecated">
  43079. <param name="val" type="boolean"/>
  43080. </method>
  43081. <method name="printThreadInfo"
  43082. abstract="false" native="false" synchronized="true"
  43083. static="true" final="false" visibility="public"
  43084. deprecated="not deprecated">
  43085. <param name="stream" type="java.io.PrintWriter"/>
  43086. <param name="title" type="java.lang.String"/>
  43087. <doc>
  43088. <![CDATA[Print all of the thread's information and stack traces.
  43089. @param stream the stream to
  43090. @param title a string title for the stack trace]]>
  43091. </doc>
  43092. </method>
  43093. <method name="logThreadInfo"
  43094. abstract="false" native="false" synchronized="false"
  43095. static="true" final="false" visibility="public"
  43096. deprecated="not deprecated">
  43097. <param name="log" type="org.apache.commons.logging.Log"/>
  43098. <param name="title" type="java.lang.String"/>
  43099. <param name="minInterval" type="long"/>
  43100. <doc>
  43101. <![CDATA[Log the current thread stacks at INFO level.
  43102. @param log the logger that logs the stack trace
  43103. @param title a descriptive title for the call stacks
  43104. @param minInterval the minimum time from the last]]>
  43105. </doc>
  43106. </method>
  43107. <method name="getClass" return="java.lang.Class"
  43108. abstract="false" native="false" synchronized="false"
  43109. static="true" final="false" visibility="public"
  43110. deprecated="not deprecated">
  43111. <param name="o" type="T"/>
  43112. <doc>
  43113. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  43114. @param o object whose correctly-typed <code>Class</code> is to be obtained
  43115. @return the correctly typed <code>Class</code> of the given object.]]>
  43116. </doc>
  43117. </method>
  43118. <method name="copy" return="T"
  43119. abstract="false" native="false" synchronized="false"
  43120. static="true" final="false" visibility="public"
  43121. deprecated="not deprecated">
  43122. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43123. <param name="src" type="T"/>
  43124. <param name="dst" type="T"/>
  43125. <exception name="IOException" type="java.io.IOException"/>
  43126. <doc>
  43127. <![CDATA[Make a copy of the writable object using serialization to a buffer
  43128. @param src the object to copy from
  43129. @param dst the object to copy into, which is destroyed
  43130. @return dst param (the copy)
  43131. @throws IOException]]>
  43132. </doc>
  43133. </method>
  43134. <method name="cloneWritableInto"
  43135. abstract="false" native="false" synchronized="false"
  43136. static="true" final="false" visibility="public"
  43137. deprecated="not deprecated">
  43138. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  43139. <param name="src" type="org.apache.hadoop.io.Writable"/>
  43140. <exception name="IOException" type="java.io.IOException"/>
  43141. </method>
  43142. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  43143. abstract="false" native="false" synchronized="false"
  43144. static="true" final="false" visibility="public"
  43145. deprecated="not deprecated">
  43146. <param name="clazz" type="java.lang.Class"/>
  43147. <doc>
  43148. <![CDATA[Gets all the declared fields of a class including fields declared in
  43149. superclasses.]]>
  43150. </doc>
  43151. </method>
  43152. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  43153. abstract="false" native="false" synchronized="false"
  43154. static="true" final="false" visibility="public"
  43155. deprecated="not deprecated">
  43156. <param name="clazz" type="java.lang.Class"/>
  43157. <doc>
  43158. <![CDATA[Gets all the declared methods of a class including methods declared in
  43159. superclasses.]]>
  43160. </doc>
  43161. </method>
  43162. <doc>
  43163. <![CDATA[General reflection utils]]>
  43164. </doc>
  43165. </class>
  43166. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  43167. <!-- start interface org.apache.hadoop.util.Shell.CommandExecutor -->
  43168. <interface name="Shell.CommandExecutor" abstract="true"
  43169. static="true" final="false" visibility="public"
  43170. deprecated="not deprecated">
  43171. <method name="execute"
  43172. abstract="false" native="false" synchronized="false"
  43173. static="false" final="false" visibility="public"
  43174. deprecated="not deprecated">
  43175. <exception name="IOException" type="java.io.IOException"/>
  43176. </method>
  43177. <method name="getExitCode" return="int"
  43178. abstract="false" native="false" synchronized="false"
  43179. static="false" final="false" visibility="public"
  43180. deprecated="not deprecated">
  43181. <exception name="IOException" type="java.io.IOException"/>
  43182. </method>
  43183. <method name="getOutput" return="java.lang.String"
  43184. abstract="false" native="false" synchronized="false"
  43185. static="false" final="false" visibility="public"
  43186. deprecated="not deprecated">
  43187. <exception name="IOException" type="java.io.IOException"/>
  43188. </method>
  43189. <method name="close"
  43190. abstract="false" native="false" synchronized="false"
  43191. static="false" final="false" visibility="public"
  43192. deprecated="not deprecated">
  43193. </method>
  43194. </interface>
  43195. <!-- end interface org.apache.hadoop.util.Shell.CommandExecutor -->
  43196. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  43197. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  43198. abstract="false"
  43199. static="true" final="false" visibility="public"
  43200. deprecated="not deprecated">
  43201. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  43202. static="false" final="false" visibility="public"
  43203. deprecated="not deprecated">
  43204. </constructor>
  43205. <method name="getExitCode" return="int"
  43206. abstract="false" native="false" synchronized="false"
  43207. static="false" final="false" visibility="public"
  43208. deprecated="not deprecated">
  43209. </method>
  43210. <method name="toString" return="java.lang.String"
  43211. abstract="false" native="false" synchronized="false"
  43212. static="false" final="false" visibility="public"
  43213. deprecated="not deprecated">
  43214. </method>
  43215. <doc>
  43216. <![CDATA[This is an IOException with exit code added.]]>
  43217. </doc>
  43218. </class>
  43219. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  43220. <!-- start class org.apache.hadoop.util.Shell.OSType -->
  43221. <class name="Shell.OSType" extends="java.lang.Enum"
  43222. abstract="false"
  43223. static="true" final="true" visibility="public"
  43224. deprecated="not deprecated">
  43225. <method name="values" return="org.apache.hadoop.util.Shell.OSType[]"
  43226. abstract="false" native="false" synchronized="false"
  43227. static="true" final="false" visibility="public"
  43228. deprecated="not deprecated">
  43229. </method>
  43230. <method name="valueOf" return="org.apache.hadoop.util.Shell.OSType"
  43231. abstract="false" native="false" synchronized="false"
  43232. static="true" final="false" visibility="public"
  43233. deprecated="not deprecated">
  43234. <param name="name" type="java.lang.String"/>
  43235. </method>
  43236. </class>
  43237. <!-- end class org.apache.hadoop.util.Shell.OSType -->
  43238. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  43239. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  43240. abstract="false"
  43241. static="true" final="false" visibility="public"
  43242. deprecated="not deprecated">
  43243. <implements name="org.apache.hadoop.util.Shell.CommandExecutor"/>
  43244. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  43245. static="false" final="false" visibility="public"
  43246. deprecated="not deprecated">
  43247. </constructor>
  43248. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  43249. static="false" final="false" visibility="public"
  43250. deprecated="not deprecated">
  43251. </constructor>
  43252. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  43253. static="false" final="false" visibility="public"
  43254. deprecated="not deprecated">
  43255. </constructor>
  43256. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  43257. static="false" final="false" visibility="public"
  43258. deprecated="not deprecated">
  43259. <doc>
  43260. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  43261. @param execString The command to execute with arguments
  43262. @param dir If not-null, specifies the directory which should be set
  43263. as the current working directory for the command.
  43264. If null, the current working directory is not modified.
  43265. @param env If not-null, environment of the command will include the
  43266. key-value pairs specified in the map. If null, the current
  43267. environment is not modified.
  43268. @param timeout Specifies the time in milliseconds, after which the
  43269. command will be killed and the status marked as timedout.
  43270. If 0, the command will not be timed out.]]>
  43271. </doc>
  43272. </constructor>
  43273. <method name="execute"
  43274. abstract="false" native="false" synchronized="false"
  43275. static="false" final="false" visibility="public"
  43276. deprecated="not deprecated">
  43277. <exception name="IOException" type="java.io.IOException"/>
  43278. <doc>
  43279. <![CDATA[Execute the shell command.]]>
  43280. </doc>
  43281. </method>
  43282. <method name="getExecString" return="java.lang.String[]"
  43283. abstract="false" native="false" synchronized="false"
  43284. static="false" final="false" visibility="public"
  43285. deprecated="not deprecated">
  43286. </method>
  43287. <method name="parseExecResult"
  43288. abstract="false" native="false" synchronized="false"
  43289. static="false" final="false" visibility="protected"
  43290. deprecated="not deprecated">
  43291. <param name="lines" type="java.io.BufferedReader"/>
  43292. <exception name="IOException" type="java.io.IOException"/>
  43293. </method>
  43294. <method name="getOutput" return="java.lang.String"
  43295. abstract="false" native="false" synchronized="false"
  43296. static="false" final="false" visibility="public"
  43297. deprecated="not deprecated">
  43298. <doc>
  43299. <![CDATA[Get the output of the shell command.]]>
  43300. </doc>
  43301. </method>
  43302. <method name="toString" return="java.lang.String"
  43303. abstract="false" native="false" synchronized="false"
  43304. static="false" final="false" visibility="public"
  43305. deprecated="not deprecated">
  43306. <doc>
  43307. <![CDATA[Returns the commands of this instance.
  43308. Arguments with spaces in are presented with quotes round; other
  43309. arguments are presented raw
  43310. @return a string representation of the object.]]>
  43311. </doc>
  43312. </method>
  43313. <method name="close"
  43314. abstract="false" native="false" synchronized="false"
  43315. static="false" final="false" visibility="public"
  43316. deprecated="not deprecated">
  43317. </method>
  43318. <doc>
  43319. <![CDATA[A simple shell command executor.
  43320. <code>ShellCommandExecutor</code>should be used in cases where the output
  43321. of the command needs no explicit parsing and where the command, working
  43322. directory and the environment remains unchanged. The output of the command
  43323. is stored as-is and is expected to be small.]]>
  43324. </doc>
  43325. </class>
  43326. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  43327. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  43328. <class name="ShutdownHookManager" extends="java.lang.Object"
  43329. abstract="false"
  43330. static="false" final="false" visibility="public"
  43331. deprecated="not deprecated">
  43332. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  43333. abstract="false" native="false" synchronized="false"
  43334. static="true" final="false" visibility="public"
  43335. deprecated="not deprecated">
  43336. <doc>
  43337. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  43338. @return <code>ShutdownHookManager</code> singleton.]]>
  43339. </doc>
  43340. </method>
  43341. <method name="addShutdownHook"
  43342. abstract="false" native="false" synchronized="false"
  43343. static="false" final="false" visibility="public"
  43344. deprecated="not deprecated">
  43345. <param name="shutdownHook" type="java.lang.Runnable"/>
  43346. <param name="priority" type="int"/>
  43347. <doc>
  43348. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  43349. the earlier will run. ShutdownHooks with same priority run
  43350. in a non-deterministic order.
  43351. @param shutdownHook shutdownHook <code>Runnable</code>
  43352. @param priority priority of the shutdownHook.]]>
  43353. </doc>
  43354. </method>
  43355. <method name="removeShutdownHook" return="boolean"
  43356. abstract="false" native="false" synchronized="false"
  43357. static="false" final="false" visibility="public"
  43358. deprecated="not deprecated">
  43359. <param name="shutdownHook" type="java.lang.Runnable"/>
  43360. <doc>
  43361. <![CDATA[Removes a shutdownHook.
  43362. @param shutdownHook shutdownHook to remove.
  43363. @return TRUE if the shutdownHook was registered and removed,
  43364. FALSE otherwise.]]>
  43365. </doc>
  43366. </method>
  43367. <method name="hasShutdownHook" return="boolean"
  43368. abstract="false" native="false" synchronized="false"
  43369. static="false" final="false" visibility="public"
  43370. deprecated="not deprecated">
  43371. <param name="shutdownHook" type="java.lang.Runnable"/>
  43372. <doc>
  43373. <![CDATA[Indicates if a shutdownHook is registered or not.
  43374. @param shutdownHook shutdownHook to check if registered.
  43375. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  43376. </doc>
  43377. </method>
  43378. <method name="isShutdownInProgress" return="boolean"
  43379. abstract="false" native="false" synchronized="false"
  43380. static="false" final="false" visibility="public"
  43381. deprecated="not deprecated">
  43382. <doc>
  43383. <![CDATA[Indicates if shutdown is in progress or not.
  43384. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  43385. </doc>
  43386. </method>
  43387. <doc>
  43388. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  43389. in a deterministic order, higher priority first.
  43390. <p/>
  43391. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  43392. This class registers a single JVM shutdownHook and run all the
  43393. shutdownHooks registered to it (to this class) in order based on their
  43394. priority.]]>
  43395. </doc>
  43396. </class>
  43397. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  43398. <!-- start class org.apache.hadoop.util.ShutdownThreadsHelper -->
  43399. <class name="ShutdownThreadsHelper" extends="java.lang.Object"
  43400. abstract="false"
  43401. static="false" final="false" visibility="public"
  43402. deprecated="not deprecated">
  43403. <constructor name="ShutdownThreadsHelper"
  43404. static="false" final="false" visibility="public"
  43405. deprecated="not deprecated">
  43406. </constructor>
  43407. <method name="shutdownThread" return="boolean"
  43408. abstract="false" native="false" synchronized="false"
  43409. static="true" final="false" visibility="public"
  43410. deprecated="not deprecated">
  43411. <param name="thread" type="java.lang.Thread"/>
  43412. <doc>
  43413. <![CDATA[@param thread {@link Thread to be shutdown}
  43414. @return <tt>true</tt> if the thread is successfully interrupted,
  43415. <tt>false</tt> otherwise
  43416. @throws InterruptedException]]>
  43417. </doc>
  43418. </method>
  43419. <method name="shutdownThread" return="boolean"
  43420. abstract="false" native="false" synchronized="false"
  43421. static="true" final="false" visibility="public"
  43422. deprecated="not deprecated">
  43423. <param name="thread" type="java.lang.Thread"/>
  43424. <param name="timeoutInMilliSeconds" type="long"/>
  43425. <doc>
  43426. <![CDATA[@param thread {@link Thread to be shutdown}
  43427. @param timeoutInMilliSeconds time to wait for thread to join after being
  43428. interrupted
  43429. @return <tt>true</tt> if the thread is successfully interrupted,
  43430. <tt>false</tt> otherwise
  43431. @throws InterruptedException]]>
  43432. </doc>
  43433. </method>
  43434. <method name="shutdownExecutorService" return="boolean"
  43435. abstract="false" native="false" synchronized="false"
  43436. static="true" final="false" visibility="public"
  43437. deprecated="not deprecated">
  43438. <param name="service" type="java.util.concurrent.ExecutorService"/>
  43439. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  43440. <doc>
  43441. <![CDATA[@param service {@link ExecutorService to be shutdown}
  43442. @return <tt>true</tt> if the service is terminated,
  43443. <tt>false</tt> otherwise
  43444. @throws InterruptedException]]>
  43445. </doc>
  43446. </method>
  43447. <method name="shutdownExecutorService" return="boolean"
  43448. abstract="false" native="false" synchronized="false"
  43449. static="true" final="false" visibility="public"
  43450. deprecated="not deprecated">
  43451. <param name="service" type="java.util.concurrent.ExecutorService"/>
  43452. <param name="timeoutInMs" type="long"/>
  43453. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  43454. <doc>
  43455. <![CDATA[@param service {@link ExecutorService to be shutdown}
  43456. @param timeoutInMs time to wait for {@link
  43457. ExecutorService#awaitTermination(long, java.util.concurrent.TimeUnit)}
  43458. calls in milli seconds.
  43459. @return <tt>true</tt> if the service is terminated,
  43460. <tt>false</tt> otherwise
  43461. @throws InterruptedException]]>
  43462. </doc>
  43463. </method>
  43464. <doc>
  43465. <![CDATA[Helper class to shutdown {@link Thread}s and {@link ExecutorService}s.]]>
  43466. </doc>
  43467. </class>
  43468. <!-- end class org.apache.hadoop.util.ShutdownThreadsHelper -->
  43469. <!-- start class org.apache.hadoop.util.StringInterner -->
  43470. <class name="StringInterner" extends="java.lang.Object"
  43471. abstract="false"
  43472. static="false" final="false" visibility="public"
  43473. deprecated="not deprecated">
  43474. <constructor name="StringInterner"
  43475. static="false" final="false" visibility="public"
  43476. deprecated="not deprecated">
  43477. </constructor>
  43478. <method name="strongIntern" return="java.lang.String"
  43479. abstract="false" native="false" synchronized="false"
  43480. static="true" final="false" visibility="public"
  43481. deprecated="not deprecated">
  43482. <param name="sample" type="java.lang.String"/>
  43483. <doc>
  43484. <![CDATA[Interns and returns a reference to the representative instance
  43485. for any of a collection of string instances that are equal to each other.
  43486. Retains strong reference to the instance,
  43487. thus preventing it from being garbage-collected.
  43488. @param sample string instance to be interned
  43489. @return strong reference to interned string instance]]>
  43490. </doc>
  43491. </method>
  43492. <method name="weakIntern" return="java.lang.String"
  43493. abstract="false" native="false" synchronized="false"
  43494. static="true" final="false" visibility="public"
  43495. deprecated="not deprecated">
  43496. <param name="sample" type="java.lang.String"/>
  43497. <doc>
  43498. <![CDATA[Interns and returns a reference to the representative instance
  43499. for any of a collection of string instances that are equal to each other.
  43500. Retains weak reference to the instance,
  43501. and so does not prevent it from being garbage-collected.
  43502. @param sample string instance to be interned
  43503. @return weak reference to interned string instance]]>
  43504. </doc>
  43505. </method>
  43506. <doc>
  43507. <![CDATA[Provides equivalent behavior to String.intern() to optimize performance,
  43508. whereby does not consume memory in the permanent generation.]]>
  43509. </doc>
  43510. </class>
  43511. <!-- end class org.apache.hadoop.util.StringInterner -->
  43512. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  43513. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  43514. abstract="false"
  43515. static="true" final="true" visibility="public"
  43516. deprecated="not deprecated">
  43517. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  43518. abstract="false" native="false" synchronized="false"
  43519. static="true" final="false" visibility="public"
  43520. deprecated="not deprecated">
  43521. </method>
  43522. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43523. abstract="false" native="false" synchronized="false"
  43524. static="true" final="false" visibility="public"
  43525. deprecated="not deprecated">
  43526. <param name="name" type="java.lang.String"/>
  43527. </method>
  43528. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43529. abstract="false" native="false" synchronized="false"
  43530. static="true" final="false" visibility="public"
  43531. deprecated="not deprecated">
  43532. <param name="symbol" type="char"/>
  43533. <doc>
  43534. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  43535. </doc>
  43536. </method>
  43537. <method name="string2long" return="long"
  43538. abstract="false" native="false" synchronized="false"
  43539. static="true" final="false" visibility="public"
  43540. deprecated="not deprecated">
  43541. <param name="s" type="java.lang.String"/>
  43542. <doc>
  43543. <![CDATA[Convert a string to long.
  43544. The input string is first be trimmed
  43545. and then it is parsed with traditional binary prefix.
  43546. For example,
  43547. "-1230k" will be converted to -1230 * 1024 = -1259520;
  43548. "891g" will be converted to 891 * 1024^3 = 956703965184;
  43549. @param s input string
  43550. @return a long value represented by the input string.]]>
  43551. </doc>
  43552. </method>
  43553. <method name="long2String" return="java.lang.String"
  43554. abstract="false" native="false" synchronized="false"
  43555. static="true" final="false" visibility="public"
  43556. deprecated="not deprecated">
  43557. <param name="n" type="long"/>
  43558. <param name="unit" type="java.lang.String"/>
  43559. <param name="decimalPlaces" type="int"/>
  43560. <doc>
  43561. <![CDATA[Convert a long integer to a string with traditional binary prefix.
  43562. @param n the value to be converted
  43563. @param unit The unit, e.g. "B" for bytes.
  43564. @param decimalPlaces The number of decimal places.
  43565. @return a string with traditional binary prefix.]]>
  43566. </doc>
  43567. </method>
  43568. <field name="value" type="long"
  43569. transient="false" volatile="false"
  43570. static="false" final="true" visibility="public"
  43571. deprecated="not deprecated">
  43572. </field>
  43573. <field name="symbol" type="char"
  43574. transient="false" volatile="false"
  43575. static="false" final="true" visibility="public"
  43576. deprecated="not deprecated">
  43577. </field>
  43578. <field name="bitShift" type="int"
  43579. transient="false" volatile="false"
  43580. static="false" final="true" visibility="public"
  43581. deprecated="not deprecated">
  43582. </field>
  43583. <field name="bitMask" type="long"
  43584. transient="false" volatile="false"
  43585. static="false" final="true" visibility="public"
  43586. deprecated="not deprecated">
  43587. </field>
  43588. <doc>
  43589. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  43590. which can be represented by a 64-bit integer.
  43591. TraditionalBinaryPrefix symbol are case insensitive.]]>
  43592. </doc>
  43593. </class>
  43594. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  43595. <!-- start class org.apache.hadoop.util.ThreadUtil -->
  43596. <class name="ThreadUtil" extends="java.lang.Object"
  43597. abstract="false"
  43598. static="false" final="false" visibility="public"
  43599. deprecated="not deprecated">
  43600. <constructor name="ThreadUtil"
  43601. static="false" final="false" visibility="public"
  43602. deprecated="not deprecated">
  43603. </constructor>
  43604. <method name="sleepAtLeastIgnoreInterrupts"
  43605. abstract="false" native="false" synchronized="false"
  43606. static="true" final="false" visibility="public"
  43607. deprecated="not deprecated">
  43608. <param name="millis" type="long"/>
  43609. <doc>
  43610. <![CDATA[Cause the current thread to sleep as close as possible to the provided
  43611. number of milliseconds. This method will log and ignore any
  43612. {@link InterruptedException} encountered.
  43613. @param millis the number of milliseconds for the current thread to sleep]]>
  43614. </doc>
  43615. </method>
  43616. </class>
  43617. <!-- end class org.apache.hadoop.util.ThreadUtil -->
  43618. <!-- start interface org.apache.hadoop.util.Tool -->
  43619. <interface name="Tool" abstract="true"
  43620. static="false" final="false" visibility="public"
  43621. deprecated="not deprecated">
  43622. <implements name="org.apache.hadoop.conf.Configurable"/>
  43623. <method name="run" return="int"
  43624. abstract="false" native="false" synchronized="false"
  43625. static="false" final="false" visibility="public"
  43626. deprecated="not deprecated">
  43627. <param name="args" type="java.lang.String[]"/>
  43628. <exception name="Exception" type="java.lang.Exception"/>
  43629. <doc>
  43630. <![CDATA[Execute the command with the given arguments.
  43631. @param args command specific arguments.
  43632. @return exit code.
  43633. @throws Exception]]>
  43634. </doc>
  43635. </method>
  43636. <doc>
  43637. <![CDATA[A tool interface that supports handling of generic command-line options.
  43638. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  43639. The tool/application should delegate the handling of
  43640. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  43641. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  43642. and only handle its custom arguments.</p>
  43643. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  43644. <p><blockquote><pre>
  43645. public class MyApp extends Configured implements Tool {
  43646. public int run(String[] args) throws Exception {
  43647. // <code>Configuration</code> processed by <code>ToolRunner</code>
  43648. Configuration conf = getConf();
  43649. // Create a JobConf using the processed <code>conf</code>
  43650. JobConf job = new JobConf(conf, MyApp.class);
  43651. // Process custom command-line options
  43652. Path in = new Path(args[1]);
  43653. Path out = new Path(args[2]);
  43654. // Specify various job-specific parameters
  43655. job.setJobName("my-app");
  43656. job.setInputPath(in);
  43657. job.setOutputPath(out);
  43658. job.setMapperClass(MyMapper.class);
  43659. job.setReducerClass(MyReducer.class);
  43660. // Submit the job, then poll for progress until the job is complete
  43661. JobClient.runJob(job);
  43662. return 0;
  43663. }
  43664. public static void main(String[] args) throws Exception {
  43665. // Let <code>ToolRunner</code> handle generic command-line options
  43666. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  43667. System.exit(res);
  43668. }
  43669. }
  43670. </pre></blockquote></p>
  43671. @see GenericOptionsParser
  43672. @see ToolRunner]]>
  43673. </doc>
  43674. </interface>
  43675. <!-- end interface org.apache.hadoop.util.Tool -->
  43676. <!-- start class org.apache.hadoop.util.ToolRunner -->
  43677. <class name="ToolRunner" extends="java.lang.Object"
  43678. abstract="false"
  43679. static="false" final="false" visibility="public"
  43680. deprecated="not deprecated">
  43681. <constructor name="ToolRunner"
  43682. static="false" final="false" visibility="public"
  43683. deprecated="not deprecated">
  43684. </constructor>
  43685. <method name="run" return="int"
  43686. abstract="false" native="false" synchronized="false"
  43687. static="true" final="false" visibility="public"
  43688. deprecated="not deprecated">
  43689. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43690. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  43691. <param name="args" type="java.lang.String[]"/>
  43692. <exception name="Exception" type="java.lang.Exception"/>
  43693. <doc>
  43694. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  43695. parsing with the given generic arguments. Uses the given
  43696. <code>Configuration</code>, or builds one if null.
  43697. Sets the <code>Tool</code>'s configuration with the possibly modified
  43698. version of the <code>conf</code>.
  43699. @param conf <code>Configuration</code> for the <code>Tool</code>.
  43700. @param tool <code>Tool</code> to run.
  43701. @param args command-line arguments to the tool.
  43702. @return exit code of the {@link Tool#run(String[])} method.]]>
  43703. </doc>
  43704. </method>
  43705. <method name="run" return="int"
  43706. abstract="false" native="false" synchronized="false"
  43707. static="true" final="false" visibility="public"
  43708. deprecated="not deprecated">
  43709. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  43710. <param name="args" type="java.lang.String[]"/>
  43711. <exception name="Exception" type="java.lang.Exception"/>
  43712. <doc>
  43713. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  43714. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  43715. @param tool <code>Tool</code> to run.
  43716. @param args command-line arguments to the tool.
  43717. @return exit code of the {@link Tool#run(String[])} method.]]>
  43718. </doc>
  43719. </method>
  43720. <method name="printGenericCommandUsage"
  43721. abstract="false" native="false" synchronized="false"
  43722. static="true" final="false" visibility="public"
  43723. deprecated="not deprecated">
  43724. <param name="out" type="java.io.PrintStream"/>
  43725. <doc>
  43726. <![CDATA[Prints generic command-line argurments and usage information.
  43727. @param out stream to write usage information to.]]>
  43728. </doc>
  43729. </method>
  43730. <method name="confirmPrompt" return="boolean"
  43731. abstract="false" native="false" synchronized="false"
  43732. static="true" final="false" visibility="public"
  43733. deprecated="not deprecated">
  43734. <param name="prompt" type="java.lang.String"/>
  43735. <exception name="IOException" type="java.io.IOException"/>
  43736. <doc>
  43737. <![CDATA[Print out a prompt to the user, and return true if the user
  43738. responds with "y" or "yes". (case insensitive)]]>
  43739. </doc>
  43740. </method>
  43741. <doc>
  43742. <![CDATA[A utility to help run {@link Tool}s.
  43743. <p><code>ToolRunner</code> can be used to run classes implementing
  43744. <code>Tool</code> interface. It works in conjunction with
  43745. {@link GenericOptionsParser} to parse the
  43746. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  43747. generic hadoop command line arguments</a> and modifies the
  43748. <code>Configuration</code> of the <code>Tool</code>. The
  43749. application-specific options are passed along without being modified.
  43750. </p>
  43751. @see Tool
  43752. @see GenericOptionsParser]]>
  43753. </doc>
  43754. </class>
  43755. <!-- end class org.apache.hadoop.util.ToolRunner -->
  43756. <!-- start class org.apache.hadoop.util.Waitable -->
  43757. <class name="Waitable" extends="java.lang.Object"
  43758. abstract="false"
  43759. static="false" final="false" visibility="public"
  43760. deprecated="not deprecated">
  43761. <constructor name="Waitable" type="java.util.concurrent.locks.Condition"
  43762. static="false" final="false" visibility="public"
  43763. deprecated="not deprecated">
  43764. </constructor>
  43765. <method name="await" return="T"
  43766. abstract="false" native="false" synchronized="false"
  43767. static="false" final="false" visibility="public"
  43768. deprecated="not deprecated">
  43769. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  43770. </method>
  43771. <method name="provide"
  43772. abstract="false" native="false" synchronized="false"
  43773. static="false" final="false" visibility="public"
  43774. deprecated="not deprecated">
  43775. <param name="val" type="T"/>
  43776. </method>
  43777. <method name="hasVal" return="boolean"
  43778. abstract="false" native="false" synchronized="false"
  43779. static="false" final="false" visibility="public"
  43780. deprecated="not deprecated">
  43781. </method>
  43782. <method name="getVal" return="T"
  43783. abstract="false" native="false" synchronized="false"
  43784. static="false" final="false" visibility="public"
  43785. deprecated="not deprecated">
  43786. </method>
  43787. <doc>
  43788. <![CDATA[Represents an object that you can wait for.]]>
  43789. </doc>
  43790. </class>
  43791. <!-- end class org.apache.hadoop.util.Waitable -->
  43792. <doc>
  43793. <![CDATA[Common utilities.]]>
  43794. </doc>
  43795. </package>
  43796. <package name="org.apache.hadoop.util.bloom">
  43797. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  43798. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43799. abstract="false"
  43800. static="false" final="false" visibility="public"
  43801. deprecated="not deprecated">
  43802. <constructor name="BloomFilter"
  43803. static="false" final="false" visibility="public"
  43804. deprecated="not deprecated">
  43805. <doc>
  43806. <![CDATA[Default constructor - use with readFields]]>
  43807. </doc>
  43808. </constructor>
  43809. <constructor name="BloomFilter" type="int, int, int"
  43810. static="false" final="false" visibility="public"
  43811. deprecated="not deprecated">
  43812. <doc>
  43813. <![CDATA[Constructor
  43814. @param vectorSize The vector size of <i>this</i> filter.
  43815. @param nbHash The number of hash function to consider.
  43816. @param hashType type of the hashing function (see
  43817. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43818. </doc>
  43819. </constructor>
  43820. <method name="add"
  43821. abstract="false" native="false" synchronized="false"
  43822. static="false" final="false" visibility="public"
  43823. deprecated="not deprecated">
  43824. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43825. </method>
  43826. <method name="and"
  43827. abstract="false" native="false" synchronized="false"
  43828. static="false" final="false" visibility="public"
  43829. deprecated="not deprecated">
  43830. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43831. </method>
  43832. <method name="membershipTest" return="boolean"
  43833. abstract="false" native="false" synchronized="false"
  43834. static="false" final="false" visibility="public"
  43835. deprecated="not deprecated">
  43836. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43837. </method>
  43838. <method name="not"
  43839. abstract="false" native="false" synchronized="false"
  43840. static="false" final="false" visibility="public"
  43841. deprecated="not deprecated">
  43842. </method>
  43843. <method name="or"
  43844. abstract="false" native="false" synchronized="false"
  43845. static="false" final="false" visibility="public"
  43846. deprecated="not deprecated">
  43847. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43848. </method>
  43849. <method name="xor"
  43850. abstract="false" native="false" synchronized="false"
  43851. static="false" final="false" visibility="public"
  43852. deprecated="not deprecated">
  43853. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43854. </method>
  43855. <method name="toString" return="java.lang.String"
  43856. abstract="false" native="false" synchronized="false"
  43857. static="false" final="false" visibility="public"
  43858. deprecated="not deprecated">
  43859. </method>
  43860. <method name="getVectorSize" return="int"
  43861. abstract="false" native="false" synchronized="false"
  43862. static="false" final="false" visibility="public"
  43863. deprecated="not deprecated">
  43864. <doc>
  43865. <![CDATA[@return size of the the bloomfilter]]>
  43866. </doc>
  43867. </method>
  43868. <method name="write"
  43869. abstract="false" native="false" synchronized="false"
  43870. static="false" final="false" visibility="public"
  43871. deprecated="not deprecated">
  43872. <param name="out" type="java.io.DataOutput"/>
  43873. <exception name="IOException" type="java.io.IOException"/>
  43874. </method>
  43875. <method name="readFields"
  43876. abstract="false" native="false" synchronized="false"
  43877. static="false" final="false" visibility="public"
  43878. deprecated="not deprecated">
  43879. <param name="in" type="java.io.DataInput"/>
  43880. <exception name="IOException" type="java.io.IOException"/>
  43881. </method>
  43882. <doc>
  43883. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  43884. <p>
  43885. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  43886. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  43887. offers for the transmission of set membership information between networked hosts. A sender encodes
  43888. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  43889. representation. Computation and space costs for construction are linear in the number of elements.
  43890. The receiver uses the filter to test whether various elements are members of the set. Though the
  43891. filter will occasionally return a false positive, it will never return a false negative. When creating
  43892. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  43893. <p>
  43894. Originally created by
  43895. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43896. @see Filter The general behavior of a filter
  43897. @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>]]>
  43898. </doc>
  43899. </class>
  43900. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  43901. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  43902. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43903. abstract="false"
  43904. static="false" final="true" visibility="public"
  43905. deprecated="not deprecated">
  43906. <constructor name="CountingBloomFilter"
  43907. static="false" final="false" visibility="public"
  43908. deprecated="not deprecated">
  43909. <doc>
  43910. <![CDATA[Default constructor - use with readFields]]>
  43911. </doc>
  43912. </constructor>
  43913. <constructor name="CountingBloomFilter" type="int, int, int"
  43914. static="false" final="false" visibility="public"
  43915. deprecated="not deprecated">
  43916. <doc>
  43917. <![CDATA[Constructor
  43918. @param vectorSize The vector size of <i>this</i> filter.
  43919. @param nbHash The number of hash function to consider.
  43920. @param hashType type of the hashing function (see
  43921. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43922. </doc>
  43923. </constructor>
  43924. <method name="add"
  43925. abstract="false" native="false" synchronized="false"
  43926. static="false" final="false" visibility="public"
  43927. deprecated="not deprecated">
  43928. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43929. </method>
  43930. <method name="delete"
  43931. abstract="false" native="false" synchronized="false"
  43932. static="false" final="false" visibility="public"
  43933. deprecated="not deprecated">
  43934. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43935. <doc>
  43936. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  43937. <p>
  43938. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  43939. @param key The key to remove.]]>
  43940. </doc>
  43941. </method>
  43942. <method name="and"
  43943. abstract="false" native="false" synchronized="false"
  43944. static="false" final="false" visibility="public"
  43945. deprecated="not deprecated">
  43946. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43947. </method>
  43948. <method name="membershipTest" return="boolean"
  43949. abstract="false" native="false" synchronized="false"
  43950. static="false" final="false" visibility="public"
  43951. deprecated="not deprecated">
  43952. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43953. </method>
  43954. <method name="approximateCount" return="int"
  43955. abstract="false" native="false" synchronized="false"
  43956. static="false" final="false" visibility="public"
  43957. deprecated="not deprecated">
  43958. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43959. <doc>
  43960. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  43961. times the key was added to the filter. This allows the filter to be
  43962. used as an approximate <code>key -&gt; count</code> map.
  43963. <p>NOTE: due to the bucket size of this filter, inserting the same
  43964. key more than 15 times will cause an overflow at all filter positions
  43965. associated with this key, and it will significantly increase the error
  43966. rate for this and other keys. For this reason the filter can only be
  43967. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  43968. @param key key to be tested
  43969. @return 0 if the key is not present. Otherwise, a positive value v will
  43970. be returned such that <code>v == count</code> with probability equal to the
  43971. error rate of this filter, and <code>v &gt; count</code> otherwise.
  43972. Additionally, if the filter experienced an underflow as a result of
  43973. {@link #delete(Key)} operation, the return value may be lower than the
  43974. <code>count</code> with the probability of the false negative rate of such
  43975. filter.]]>
  43976. </doc>
  43977. </method>
  43978. <method name="not"
  43979. abstract="false" native="false" synchronized="false"
  43980. static="false" final="false" visibility="public"
  43981. deprecated="not deprecated">
  43982. </method>
  43983. <method name="or"
  43984. abstract="false" native="false" synchronized="false"
  43985. static="false" final="false" visibility="public"
  43986. deprecated="not deprecated">
  43987. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43988. </method>
  43989. <method name="xor"
  43990. abstract="false" native="false" synchronized="false"
  43991. static="false" final="false" visibility="public"
  43992. deprecated="not deprecated">
  43993. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43994. </method>
  43995. <method name="toString" return="java.lang.String"
  43996. abstract="false" native="false" synchronized="false"
  43997. static="false" final="false" visibility="public"
  43998. deprecated="not deprecated">
  43999. </method>
  44000. <method name="write"
  44001. abstract="false" native="false" synchronized="false"
  44002. static="false" final="false" visibility="public"
  44003. deprecated="not deprecated">
  44004. <param name="out" type="java.io.DataOutput"/>
  44005. <exception name="IOException" type="java.io.IOException"/>
  44006. </method>
  44007. <method name="readFields"
  44008. abstract="false" native="false" synchronized="false"
  44009. static="false" final="false" visibility="public"
  44010. deprecated="not deprecated">
  44011. <param name="in" type="java.io.DataInput"/>
  44012. <exception name="IOException" type="java.io.IOException"/>
  44013. </method>
  44014. <doc>
  44015. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  44016. 2000 paper.
  44017. <p>
  44018. A counting Bloom filter is an improvement to standard a Bloom filter as it
  44019. allows dynamic additions and deletions of set membership information. This
  44020. is achieved through the use of a counting vector instead of a bit vector.
  44021. <p>
  44022. Originally created by
  44023. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  44024. @see Filter The general behavior of a filter
  44025. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  44026. </doc>
  44027. </class>
  44028. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  44029. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  44030. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  44031. abstract="false"
  44032. static="false" final="false" visibility="public"
  44033. deprecated="not deprecated">
  44034. <constructor name="DynamicBloomFilter"
  44035. static="false" final="false" visibility="public"
  44036. deprecated="not deprecated">
  44037. <doc>
  44038. <![CDATA[Zero-args constructor for the serialization.]]>
  44039. </doc>
  44040. </constructor>
  44041. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  44042. static="false" final="false" visibility="public"
  44043. deprecated="not deprecated">
  44044. <doc>
  44045. <![CDATA[Constructor.
  44046. <p>
  44047. Builds an empty Dynamic Bloom filter.
  44048. @param vectorSize The number of bits in the vector.
  44049. @param nbHash The number of hash function to consider.
  44050. @param hashType type of the hashing function (see
  44051. {@link org.apache.hadoop.util.hash.Hash}).
  44052. @param nr The threshold for the maximum number of keys to record in a
  44053. dynamic Bloom filter row.]]>
  44054. </doc>
  44055. </constructor>
  44056. <method name="add"
  44057. abstract="false" native="false" synchronized="false"
  44058. static="false" final="false" visibility="public"
  44059. deprecated="not deprecated">
  44060. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44061. </method>
  44062. <method name="and"
  44063. abstract="false" native="false" synchronized="false"
  44064. static="false" final="false" visibility="public"
  44065. deprecated="not deprecated">
  44066. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  44067. </method>
  44068. <method name="membershipTest" return="boolean"
  44069. abstract="false" native="false" synchronized="false"
  44070. static="false" final="false" visibility="public"
  44071. deprecated="not deprecated">
  44072. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44073. </method>
  44074. <method name="not"
  44075. abstract="false" native="false" synchronized="false"
  44076. static="false" final="false" visibility="public"
  44077. deprecated="not deprecated">
  44078. </method>
  44079. <method name="or"
  44080. abstract="false" native="false" synchronized="false"
  44081. static="false" final="false" visibility="public"
  44082. deprecated="not deprecated">
  44083. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  44084. </method>
  44085. <method name="xor"
  44086. abstract="false" native="false" synchronized="false"
  44087. static="false" final="false" visibility="public"
  44088. deprecated="not deprecated">
  44089. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  44090. </method>
  44091. <method name="toString" return="java.lang.String"
  44092. abstract="false" native="false" synchronized="false"
  44093. static="false" final="false" visibility="public"
  44094. deprecated="not deprecated">
  44095. </method>
  44096. <method name="write"
  44097. abstract="false" native="false" synchronized="false"
  44098. static="false" final="false" visibility="public"
  44099. deprecated="not deprecated">
  44100. <param name="out" type="java.io.DataOutput"/>
  44101. <exception name="IOException" type="java.io.IOException"/>
  44102. </method>
  44103. <method name="readFields"
  44104. abstract="false" native="false" synchronized="false"
  44105. static="false" final="false" visibility="public"
  44106. deprecated="not deprecated">
  44107. <param name="in" type="java.io.DataInput"/>
  44108. <exception name="IOException" type="java.io.IOException"/>
  44109. </method>
  44110. <doc>
  44111. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  44112. <p>
  44113. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  44114. each of the <code>s</code> rows is a standard Bloom filter. The creation
  44115. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  44116. bit matrix, i.e., it is composed of a single standard Bloom filter.
  44117. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  44118. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  44119. the cardinality of the set <code>A</code> to record in the filter).
  44120. <p>
  44121. As the size of <code>A</code> grows during the execution of the application,
  44122. several keys must be inserted in the DBF. When inserting a key into the DBF,
  44123. one must first get an active Bloom filter in the matrix. A Bloom filter is
  44124. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  44125. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  44126. If an active Bloom filter is found, the key is inserted and
  44127. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  44128. is no active Bloom filter, a new one is created (i.e., a new row is added to
  44129. the matrix) according to the current size of <code>A</code> and the element
  44130. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  44131. this new Bloom filter is set to one. A given key is said to belong to the
  44132. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  44133. <p>
  44134. Originally created by
  44135. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  44136. @see Filter The general behavior of a filter
  44137. @see BloomFilter A Bloom filter
  44138. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  44139. </doc>
  44140. </class>
  44141. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  44142. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  44143. <class name="HashFunction" extends="java.lang.Object"
  44144. abstract="false"
  44145. static="false" final="true" visibility="public"
  44146. deprecated="not deprecated">
  44147. <constructor name="HashFunction" type="int, int, int"
  44148. static="false" final="false" visibility="public"
  44149. deprecated="not deprecated">
  44150. <doc>
  44151. <![CDATA[Constructor.
  44152. <p>
  44153. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  44154. @param maxValue The maximum highest returned value.
  44155. @param nbHash The number of resulting hashed values.
  44156. @param hashType type of the hashing function (see {@link Hash}).]]>
  44157. </doc>
  44158. </constructor>
  44159. <method name="clear"
  44160. abstract="false" native="false" synchronized="false"
  44161. static="false" final="false" visibility="public"
  44162. deprecated="not deprecated">
  44163. <doc>
  44164. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  44165. </doc>
  44166. </method>
  44167. <method name="hash" return="int[]"
  44168. abstract="false" native="false" synchronized="false"
  44169. static="false" final="false" visibility="public"
  44170. deprecated="not deprecated">
  44171. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  44172. <doc>
  44173. <![CDATA[Hashes a specified key into several integers.
  44174. @param k The specified key.
  44175. @return The array of hashed values.]]>
  44176. </doc>
  44177. </method>
  44178. <doc>
  44179. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  44180. @see Key The general behavior of a key being stored in a filter
  44181. @see Filter The general behavior of a filter]]>
  44182. </doc>
  44183. </class>
  44184. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  44185. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  44186. <interface name="RemoveScheme" abstract="true"
  44187. static="false" final="false" visibility="public"
  44188. deprecated="not deprecated">
  44189. <field name="RANDOM" type="short"
  44190. transient="false" volatile="false"
  44191. static="true" final="true" visibility="public"
  44192. deprecated="not deprecated">
  44193. <doc>
  44194. <![CDATA[Random selection.
  44195. <p>
  44196. The idea is to randomly select a bit to reset.]]>
  44197. </doc>
  44198. </field>
  44199. <field name="MINIMUM_FN" type="short"
  44200. transient="false" volatile="false"
  44201. static="true" final="true" visibility="public"
  44202. deprecated="not deprecated">
  44203. <doc>
  44204. <![CDATA[MinimumFN Selection.
  44205. <p>
  44206. The idea is to select the bit to reset that will generate the minimum
  44207. number of false negative.]]>
  44208. </doc>
  44209. </field>
  44210. <field name="MAXIMUM_FP" type="short"
  44211. transient="false" volatile="false"
  44212. static="true" final="true" visibility="public"
  44213. deprecated="not deprecated">
  44214. <doc>
  44215. <![CDATA[MaximumFP Selection.
  44216. <p>
  44217. The idea is to select the bit to reset that will remove the maximum number
  44218. of false positive.]]>
  44219. </doc>
  44220. </field>
  44221. <field name="RATIO" type="short"
  44222. transient="false" volatile="false"
  44223. static="true" final="true" visibility="public"
  44224. deprecated="not deprecated">
  44225. <doc>
  44226. <![CDATA[Ratio Selection.
  44227. <p>
  44228. The idea is to select the bit to reset that will, at the same time, remove
  44229. the maximum number of false positve while minimizing the amount of false
  44230. negative generated.]]>
  44231. </doc>
  44232. </field>
  44233. <doc>
  44234. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  44235. <p>
  44236. Originally created by
  44237. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  44238. </doc>
  44239. </interface>
  44240. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  44241. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  44242. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  44243. abstract="false"
  44244. static="false" final="true" visibility="public"
  44245. deprecated="not deprecated">
  44246. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  44247. <constructor name="RetouchedBloomFilter"
  44248. static="false" final="false" visibility="public"
  44249. deprecated="not deprecated">
  44250. <doc>
  44251. <![CDATA[Default constructor - use with readFields]]>
  44252. </doc>
  44253. </constructor>
  44254. <constructor name="RetouchedBloomFilter" type="int, int, int"
  44255. static="false" final="false" visibility="public"
  44256. deprecated="not deprecated">
  44257. <doc>
  44258. <![CDATA[Constructor
  44259. @param vectorSize The vector size of <i>this</i> filter.
  44260. @param nbHash The number of hash function to consider.
  44261. @param hashType type of the hashing function (see
  44262. {@link org.apache.hadoop.util.hash.Hash}).]]>
  44263. </doc>
  44264. </constructor>
  44265. <method name="add"
  44266. abstract="false" native="false" synchronized="false"
  44267. static="false" final="false" visibility="public"
  44268. deprecated="not deprecated">
  44269. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44270. </method>
  44271. <method name="addFalsePositive"
  44272. abstract="false" native="false" synchronized="false"
  44273. static="false" final="false" visibility="public"
  44274. deprecated="not deprecated">
  44275. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44276. <doc>
  44277. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  44278. <p>
  44279. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  44280. @param key The false positive key to add.]]>
  44281. </doc>
  44282. </method>
  44283. <method name="addFalsePositive"
  44284. abstract="false" native="false" synchronized="false"
  44285. static="false" final="false" visibility="public"
  44286. deprecated="not deprecated">
  44287. <param name="coll" type="java.util.Collection"/>
  44288. <doc>
  44289. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  44290. @param coll The collection of false positive.]]>
  44291. </doc>
  44292. </method>
  44293. <method name="addFalsePositive"
  44294. abstract="false" native="false" synchronized="false"
  44295. static="false" final="false" visibility="public"
  44296. deprecated="not deprecated">
  44297. <param name="keys" type="java.util.List"/>
  44298. <doc>
  44299. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  44300. @param keys The list of false positive.]]>
  44301. </doc>
  44302. </method>
  44303. <method name="addFalsePositive"
  44304. abstract="false" native="false" synchronized="false"
  44305. static="false" final="false" visibility="public"
  44306. deprecated="not deprecated">
  44307. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  44308. <doc>
  44309. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  44310. @param keys The array of false positive.]]>
  44311. </doc>
  44312. </method>
  44313. <method name="selectiveClearing"
  44314. abstract="false" native="false" synchronized="false"
  44315. static="false" final="false" visibility="public"
  44316. deprecated="not deprecated">
  44317. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  44318. <param name="scheme" type="short"/>
  44319. <doc>
  44320. <![CDATA[Performs the selective clearing for a given key.
  44321. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  44322. @param scheme The selective clearing scheme to apply.]]>
  44323. </doc>
  44324. </method>
  44325. <method name="write"
  44326. abstract="false" native="false" synchronized="false"
  44327. static="false" final="false" visibility="public"
  44328. deprecated="not deprecated">
  44329. <param name="out" type="java.io.DataOutput"/>
  44330. <exception name="IOException" type="java.io.IOException"/>
  44331. </method>
  44332. <method name="readFields"
  44333. abstract="false" native="false" synchronized="false"
  44334. static="false" final="false" visibility="public"
  44335. deprecated="not deprecated">
  44336. <param name="in" type="java.io.DataInput"/>
  44337. <exception name="IOException" type="java.io.IOException"/>
  44338. </method>
  44339. <doc>
  44340. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  44341. <p>
  44342. It allows the removal of selected false positives at the cost of introducing
  44343. random false negatives, and with the benefit of eliminating some random false
  44344. positives at the same time.
  44345. <p>
  44346. Originally created by
  44347. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  44348. @see Filter The general behavior of a filter
  44349. @see BloomFilter A Bloom filter
  44350. @see RemoveScheme The different selective clearing algorithms
  44351. @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>]]>
  44352. </doc>
  44353. </class>
  44354. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  44355. </package>
  44356. <package name="org.apache.hadoop.util.hash">
  44357. </package>
  44358. </api>