Apache_Hadoop_Common_2.7.2.xml 1.9 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Thu Aug 18 16:00:16 PDT 2016 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 2.7.2"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet -docletpath /Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-common/target/classes:/Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-2.7.2.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/lib/tools.jar:/Users/wtan/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/Users/wtan/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/wtan/.m2/repository/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/Users/wtan/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/wtan/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/wtan/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/wtan/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/wtan/.m2/repository/commons-net/commons-net/3.1/commons-net-3.1.jar:/Users/wtan/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/Users/wtan/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/wtan/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/wtan/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/wtan/.m2/repository/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/Users/wtan/.m2/repository/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/Users/wtan/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/Users/wtan/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/wtan/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/Users/wtan/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/Users/wtan/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/wtan/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/Users/wtan/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/Users/wtan/.m2/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/Users/wtan/.m2/repository/asm/asm/3.2/asm-3.2.jar:/Users/wtan/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/wtan/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/wtan/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/Users/wtan/.m2/repository/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar:/Users/wtan/.m2/repository/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar:/Users/wtan/.m2/repository/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/Users/wtan/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/wtan/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/wtan/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/wtan/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/wtan/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/Users/wtan/.m2/repository/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar:/Users/wtan/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/wtan/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/wtan/.m2/repository/org/apache/avro/avro/1.7.4/avro-1.7.4.jar:/Users/wtan/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/Users/wtan/.m2/repository/org/xerial/snappy/snappy-java/1.0.4.1/snappy-java-1.0.4.1.jar:/Users/wtan/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/Users/wtan/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/Users/wtan/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/Users/wtan/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-auth/target/hadoop-auth-2.7.2.jar:/Users/wtan/.m2/repository/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/Users/wtan/.m2/repository/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/Users/wtan/.m2/repository/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/Users/wtan/.m2/repository/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/Users/wtan/.m2/repository/org/apache/curator/curator-framework/2.7.1/curator-framework-2.7.1.jar:/Users/wtan/.m2/repository/com/jcraft/jsch/0.1.42/jsch-0.1.42.jar:/Users/wtan/.m2/repository/org/apache/curator/curator-client/2.7.1/curator-client-2.7.1.jar:/Users/wtan/.m2/repository/org/apache/curator/curator-recipes/2.7.1/curator-recipes-2.7.1.jar:/Users/wtan/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/Users/wtan/.m2/repository/org/apache/htrace/htrace-core/3.1.0-incubating/htrace-core-3.1.0-incubating.jar:/Users/wtan/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar:/Users/wtan/.m2/repository/io/netty/netty/3.6.2.Final/netty-3.6.2.Final.jar:/Users/wtan/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/Users/wtan/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar -sourcepath /Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-common/src/main/java -doclet org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet -docletpath /Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-common/target/jdiff.jar -apidir /Users/wtan/project/github/hadoop-common-trunk/hadoop-common-project/hadoop-common/target/site/jdiff/xml -apiname Apache Hadoop Common 2.7.2 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopIllegalArgumentException -->
  13. <class name="HadoopIllegalArgumentException" extends="java.lang.IllegalArgumentException"
  14. abstract="false"
  15. static="false" final="false" visibility="public"
  16. deprecated="not deprecated">
  17. <constructor name="HadoopIllegalArgumentException" type="java.lang.String"
  18. static="false" final="false" visibility="public"
  19. deprecated="not deprecated">
  20. <doc>
  21. <![CDATA[Constructs exception with the specified detail message.
  22. @param message detailed message.]]>
  23. </doc>
  24. </constructor>
  25. <doc>
  26. <![CDATA[Indicates that a method has been passed illegal or invalid argument. This
  27. exception is thrown instead of IllegalArgumentException to differentiate the
  28. exception thrown in Hadoop implementation from the one thrown in JDK.]]>
  29. </doc>
  30. </class>
  31. <!-- end class org.apache.hadoop.HadoopIllegalArgumentException -->
  32. </package>
  33. <package name="org.apache.hadoop.conf">
  34. <!-- start interface org.apache.hadoop.conf.Configurable -->
  35. <interface name="Configurable" abstract="true"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <method name="setConf"
  39. abstract="true" native="false" synchronized="false"
  40. static="false" final="false" visibility="public"
  41. deprecated="not deprecated">
  42. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43. <doc>
  44. <![CDATA[Set the configuration to be used by this object.]]>
  45. </doc>
  46. </method>
  47. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  48. abstract="true" native="false" synchronized="false"
  49. static="false" final="false" visibility="public"
  50. deprecated="not deprecated">
  51. <doc>
  52. <![CDATA[Return the configuration used by this object.]]>
  53. </doc>
  54. </method>
  55. <doc>
  56. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  57. </doc>
  58. </interface>
  59. <!-- end interface org.apache.hadoop.conf.Configurable -->
  60. <!-- start class org.apache.hadoop.conf.Configuration -->
  61. <class name="Configuration" extends="java.lang.Object"
  62. abstract="false"
  63. static="false" final="false" visibility="public"
  64. deprecated="not deprecated">
  65. <implements name="java.lang.Iterable"/>
  66. <implements name="org.apache.hadoop.io.Writable"/>
  67. <constructor name="Configuration"
  68. static="false" final="false" visibility="public"
  69. deprecated="not deprecated">
  70. <doc>
  71. <![CDATA[A new configuration.]]>
  72. </doc>
  73. </constructor>
  74. <constructor name="Configuration" type="boolean"
  75. static="false" final="false" visibility="public"
  76. deprecated="not deprecated">
  77. <doc>
  78. <![CDATA[A new configuration where the behavior of reading from the default
  79. resources can be turned off.
  80. If the parameter {@code loadDefaults} is false, the new instance
  81. will not load resources from the default files.
  82. @param loadDefaults specifies whether to load from the default files]]>
  83. </doc>
  84. </constructor>
  85. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <doc>
  89. <![CDATA[A new configuration with the same settings cloned from another.
  90. @param other the configuration from which to clone settings.]]>
  91. </doc>
  92. </constructor>
  93. <method name="addDeprecations"
  94. abstract="false" native="false" synchronized="false"
  95. static="true" final="false" visibility="public"
  96. deprecated="not deprecated">
  97. <param name="deltas" type="org.apache.hadoop.conf.Configuration.DeprecationDelta[]"/>
  98. <doc>
  99. <![CDATA[Adds a set of deprecated keys to the global deprecations.
  100. This method is lockless. It works by means of creating a new
  101. DeprecationContext based on the old one, and then atomically swapping in
  102. the new context. If someone else updated the context in between us reading
  103. the old context and swapping in the new one, we try again until we win the
  104. race.
  105. @param deltas The deprecations to add.]]>
  106. </doc>
  107. </method>
  108. <method name="addDeprecation"
  109. abstract="false" native="false" synchronized="false"
  110. static="true" final="false" visibility="public"
  111. deprecated="use {@link #addDeprecation(String key, String newKey,
  112. String customMessage)} instead">
  113. <param name="key" type="java.lang.String"/>
  114. <param name="newKeys" type="java.lang.String[]"/>
  115. <param name="customMessage" type="java.lang.String"/>
  116. <doc>
  117. <![CDATA[Adds the deprecated key to the global deprecation map.
  118. It does not override any existing entries in the deprecation map.
  119. This is to be used only by the developers in order to add deprecation of
  120. keys, and attempts to call this method after loading resources once,
  121. would lead to <tt>UnsupportedOperationException</tt>
  122. If a key is deprecated in favor of multiple keys, they are all treated as
  123. aliases of each other, and setting any one of them resets all the others
  124. to the new value.
  125. If you have multiple deprecation entries to add, it is more efficient to
  126. use #addDeprecations(DeprecationDelta[] deltas) instead.
  127. @param key
  128. @param newKeys
  129. @param customMessage
  130. @deprecated use {@link #addDeprecation(String key, String newKey,
  131. String customMessage)} instead]]>
  132. </doc>
  133. </method>
  134. <method name="addDeprecation"
  135. abstract="false" native="false" synchronized="false"
  136. static="true" final="false" visibility="public"
  137. deprecated="not deprecated">
  138. <param name="key" type="java.lang.String"/>
  139. <param name="newKey" type="java.lang.String"/>
  140. <param name="customMessage" type="java.lang.String"/>
  141. <doc>
  142. <![CDATA[Adds the deprecated key to the global deprecation map.
  143. It does not override any existing entries in the deprecation map.
  144. This is to be used only by the developers in order to add deprecation of
  145. keys, and attempts to call this method after loading resources once,
  146. would lead to <tt>UnsupportedOperationException</tt>
  147. If you have multiple deprecation entries to add, it is more efficient to
  148. use #addDeprecations(DeprecationDelta[] deltas) instead.
  149. @param key
  150. @param newKey
  151. @param customMessage]]>
  152. </doc>
  153. </method>
  154. <method name="addDeprecation"
  155. abstract="false" native="false" synchronized="false"
  156. static="true" final="false" visibility="public"
  157. deprecated="use {@link #addDeprecation(String key, String newKey)} instead">
  158. <param name="key" type="java.lang.String"/>
  159. <param name="newKeys" type="java.lang.String[]"/>
  160. <doc>
  161. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  162. message is provided.
  163. It does not override any existing entries in the deprecation map.
  164. This is to be used only by the developers in order to add deprecation of
  165. keys, and attempts to call this method after loading resources once,
  166. would lead to <tt>UnsupportedOperationException</tt>
  167. If a key is deprecated in favor of multiple keys, they are all treated as
  168. aliases of each other, and setting any one of them resets all the others
  169. to the new value.
  170. If you have multiple deprecation entries to add, it is more efficient to
  171. use #addDeprecations(DeprecationDelta[] deltas) instead.
  172. @param key Key that is to be deprecated
  173. @param newKeys list of keys that take up the values of deprecated key
  174. @deprecated use {@link #addDeprecation(String key, String newKey)} instead]]>
  175. </doc>
  176. </method>
  177. <method name="addDeprecation"
  178. abstract="false" native="false" synchronized="false"
  179. static="true" final="false" visibility="public"
  180. deprecated="not deprecated">
  181. <param name="key" type="java.lang.String"/>
  182. <param name="newKey" type="java.lang.String"/>
  183. <doc>
  184. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  185. message is provided.
  186. It does not override any existing entries in the deprecation map.
  187. This is to be used only by the developers in order to add deprecation of
  188. keys, and attempts to call this method after loading resources once,
  189. would lead to <tt>UnsupportedOperationException</tt>
  190. If you have multiple deprecation entries to add, it is more efficient to
  191. use #addDeprecations(DeprecationDelta[] deltas) instead.
  192. @param key Key that is to be deprecated
  193. @param newKey key that takes up the value of deprecated key]]>
  194. </doc>
  195. </method>
  196. <method name="isDeprecated" return="boolean"
  197. abstract="false" native="false" synchronized="false"
  198. static="true" final="false" visibility="public"
  199. deprecated="not deprecated">
  200. <param name="key" type="java.lang.String"/>
  201. <doc>
  202. <![CDATA[checks whether the given <code>key</code> is deprecated.
  203. @param key the parameter which is to be checked for deprecation
  204. @return <code>true</code> if the key is deprecated and
  205. <code>false</code> otherwise.]]>
  206. </doc>
  207. </method>
  208. <method name="setDeprecatedProperties"
  209. abstract="false" native="false" synchronized="false"
  210. static="false" final="false" visibility="public"
  211. deprecated="not deprecated">
  212. <doc>
  213. <![CDATA[Sets all deprecated properties that are not currently set but have a
  214. corresponding new property that is set. Useful for iterating the
  215. properties when all deprecated properties for currently set properties
  216. need to be present.]]>
  217. </doc>
  218. </method>
  219. <method name="addDefaultResource"
  220. abstract="false" native="false" synchronized="true"
  221. static="true" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <param name="name" type="java.lang.String"/>
  224. <doc>
  225. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  226. added.
  227. @param name file name. File should be present in the classpath.]]>
  228. </doc>
  229. </method>
  230. <method name="addResource"
  231. abstract="false" native="false" synchronized="false"
  232. static="false" final="false" visibility="public"
  233. deprecated="not deprecated">
  234. <param name="name" type="java.lang.String"/>
  235. <doc>
  236. <![CDATA[Add a configuration resource.
  237. The properties of this resource will override properties of previously
  238. added resources, unless they were marked <a href="#Final">final</a>.
  239. @param name resource to be added, the classpath is examined for a file
  240. with that name.]]>
  241. </doc>
  242. </method>
  243. <method name="addResource"
  244. abstract="false" native="false" synchronized="false"
  245. static="false" final="false" visibility="public"
  246. deprecated="not deprecated">
  247. <param name="url" type="java.net.URL"/>
  248. <doc>
  249. <![CDATA[Add a configuration resource.
  250. The properties of this resource will override properties of previously
  251. added resources, unless they were marked <a href="#Final">final</a>.
  252. @param url url of the resource to be added, the local filesystem is
  253. examined directly to find the resource, without referring to
  254. the classpath.]]>
  255. </doc>
  256. </method>
  257. <method name="addResource"
  258. abstract="false" native="false" synchronized="false"
  259. static="false" final="false" visibility="public"
  260. deprecated="not deprecated">
  261. <param name="file" type="org.apache.hadoop.fs.Path"/>
  262. <doc>
  263. <![CDATA[Add a configuration resource.
  264. The properties of this resource will override properties of previously
  265. added resources, unless they were marked <a href="#Final">final</a>.
  266. @param file file-path of resource to be added, the local filesystem is
  267. examined directly to find the resource, without referring to
  268. the classpath.]]>
  269. </doc>
  270. </method>
  271. <method name="addResource"
  272. abstract="false" native="false" synchronized="false"
  273. static="false" final="false" visibility="public"
  274. deprecated="not deprecated">
  275. <param name="in" type="java.io.InputStream"/>
  276. <doc>
  277. <![CDATA[Add a configuration resource.
  278. The properties of this resource will override properties of previously
  279. added resources, unless they were marked <a href="#Final">final</a>.
  280. WARNING: The contents of the InputStream will be cached, by this method.
  281. So use this sparingly because it does increase the memory consumption.
  282. @param in InputStream to deserialize the object from. In will be read from
  283. when a get or set is called next. After it is read the stream will be
  284. closed.]]>
  285. </doc>
  286. </method>
  287. <method name="addResource"
  288. abstract="false" native="false" synchronized="false"
  289. static="false" final="false" visibility="public"
  290. deprecated="not deprecated">
  291. <param name="in" type="java.io.InputStream"/>
  292. <param name="name" type="java.lang.String"/>
  293. <doc>
  294. <![CDATA[Add a configuration resource.
  295. The properties of this resource will override properties of previously
  296. added resources, unless they were marked <a href="#Final">final</a>.
  297. @param in InputStream to deserialize the object from.
  298. @param name the name of the resource because InputStream.toString is not
  299. very descriptive some times.]]>
  300. </doc>
  301. </method>
  302. <method name="addResource"
  303. abstract="false" native="false" synchronized="false"
  304. static="false" final="false" visibility="public"
  305. deprecated="not deprecated">
  306. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  307. <doc>
  308. <![CDATA[Add a configuration resource.
  309. The properties of this resource will override properties of previously
  310. added resources, unless they were marked <a href="#Final">final</a>.
  311. @param conf Configuration object from which to load properties]]>
  312. </doc>
  313. </method>
  314. <method name="reloadConfiguration"
  315. abstract="false" native="false" synchronized="true"
  316. static="false" final="false" visibility="public"
  317. deprecated="not deprecated">
  318. <doc>
  319. <![CDATA[Reload configuration from previously added resources.
  320. This method will clear all the configuration read from the added
  321. resources, and final parameters. This will make the resources to
  322. be read again before accessing the values. Values that are added
  323. via set methods will overlay values read from the resources.]]>
  324. </doc>
  325. </method>
  326. <method name="get" return="java.lang.String"
  327. abstract="false" native="false" synchronized="false"
  328. static="false" final="false" visibility="public"
  329. deprecated="not deprecated">
  330. <param name="name" type="java.lang.String"/>
  331. <doc>
  332. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  333. no such property exists. If the key is deprecated, it returns the value of
  334. the first key which replaces the deprecated key and is not null.
  335. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  336. before being returned.
  337. @param name the property name, will be trimmed before get value.
  338. @return the value of the <code>name</code> or its replacing property,
  339. or null if no such property exists.]]>
  340. </doc>
  341. </method>
  342. <method name="setAllowNullValueProperties"
  343. abstract="false" native="false" synchronized="false"
  344. static="false" final="false" visibility="public"
  345. deprecated="not deprecated">
  346. <param name="val" type="boolean"/>
  347. <doc>
  348. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  349. for use during testing.
  350. @param val If true, will allow Configuration to store keys without values]]>
  351. </doc>
  352. </method>
  353. <method name="onlyKeyExists" return="boolean"
  354. abstract="false" native="false" synchronized="false"
  355. static="false" final="false" visibility="public"
  356. deprecated="not deprecated">
  357. <param name="name" type="java.lang.String"/>
  358. <doc>
  359. <![CDATA[Return existence of the <code>name</code> property, but only for
  360. names which have no valid value, usually non-existent or commented
  361. out in XML.
  362. @param name the property name
  363. @return true if the property <code>name</code> exists without value]]>
  364. </doc>
  365. </method>
  366. <method name="getTrimmed" return="java.lang.String"
  367. abstract="false" native="false" synchronized="false"
  368. static="false" final="false" visibility="public"
  369. deprecated="not deprecated">
  370. <param name="name" type="java.lang.String"/>
  371. <doc>
  372. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  373. <code>null</code> if no such property exists.
  374. If the key is deprecated, it returns the value of
  375. the first key which replaces the deprecated key and is not null
  376. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  377. before being returned.
  378. @param name the property name.
  379. @return the value of the <code>name</code> or its replacing property,
  380. or null if no such property exists.]]>
  381. </doc>
  382. </method>
  383. <method name="getTrimmed" return="java.lang.String"
  384. abstract="false" native="false" synchronized="false"
  385. static="false" final="false" visibility="public"
  386. deprecated="not deprecated">
  387. <param name="name" type="java.lang.String"/>
  388. <param name="defaultValue" type="java.lang.String"/>
  389. <doc>
  390. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  391. <code>defaultValue</code> if no such property exists.
  392. See @{Configuration#getTrimmed} for more details.
  393. @param name the property name.
  394. @param defaultValue the property default value.
  395. @return the value of the <code>name</code> or defaultValue
  396. if it is not set.]]>
  397. </doc>
  398. </method>
  399. <method name="getRaw" return="java.lang.String"
  400. abstract="false" native="false" synchronized="false"
  401. static="false" final="false" visibility="public"
  402. deprecated="not deprecated">
  403. <param name="name" type="java.lang.String"/>
  404. <doc>
  405. <![CDATA[Get the value of the <code>name</code> property, without doing
  406. <a href="#VariableExpansion">variable expansion</a>.If the key is
  407. deprecated, it returns the value of the first key which replaces
  408. the deprecated key and is not null.
  409. @param name the property name.
  410. @return the value of the <code>name</code> property or
  411. its replacing property and null if no such property exists.]]>
  412. </doc>
  413. </method>
  414. <method name="set"
  415. abstract="false" native="false" synchronized="false"
  416. static="false" final="false" visibility="public"
  417. deprecated="not deprecated">
  418. <param name="name" type="java.lang.String"/>
  419. <param name="value" type="java.lang.String"/>
  420. <doc>
  421. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  422. <code>name</code> is deprecated or there is a deprecated name associated to it,
  423. it sets the value to both names. Name will be trimmed before put into
  424. configuration.
  425. @param name property name.
  426. @param value property value.]]>
  427. </doc>
  428. </method>
  429. <method name="set"
  430. abstract="false" native="false" synchronized="false"
  431. static="false" final="false" visibility="public"
  432. deprecated="not deprecated">
  433. <param name="name" type="java.lang.String"/>
  434. <param name="value" type="java.lang.String"/>
  435. <param name="source" type="java.lang.String"/>
  436. <doc>
  437. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  438. <code>name</code> is deprecated, it also sets the <code>value</code> to
  439. the keys that replace the deprecated key. Name will be trimmed before put
  440. into configuration.
  441. @param name property name.
  442. @param value property value.
  443. @param source the place that this configuration value came from
  444. (For debugging).
  445. @throws IllegalArgumentException when the value or name is null.]]>
  446. </doc>
  447. </method>
  448. <method name="unset"
  449. abstract="false" native="false" synchronized="true"
  450. static="false" final="false" visibility="public"
  451. deprecated="not deprecated">
  452. <param name="name" type="java.lang.String"/>
  453. <doc>
  454. <![CDATA[Unset a previously set property.]]>
  455. </doc>
  456. </method>
  457. <method name="setIfUnset"
  458. abstract="false" native="false" synchronized="true"
  459. static="false" final="false" visibility="public"
  460. deprecated="not deprecated">
  461. <param name="name" type="java.lang.String"/>
  462. <param name="value" type="java.lang.String"/>
  463. <doc>
  464. <![CDATA[Sets a property if it is currently unset.
  465. @param name the property name
  466. @param value the new value]]>
  467. </doc>
  468. </method>
  469. <method name="get" return="java.lang.String"
  470. abstract="false" native="false" synchronized="false"
  471. static="false" final="false" visibility="public"
  472. deprecated="not deprecated">
  473. <param name="name" type="java.lang.String"/>
  474. <param name="defaultValue" type="java.lang.String"/>
  475. <doc>
  476. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  477. it returns the value of the first key which replaces the deprecated key
  478. and is not null.
  479. If no such property exists,
  480. then <code>defaultValue</code> is returned.
  481. @param name property name, will be trimmed before get value.
  482. @param defaultValue default value.
  483. @return property value, or <code>defaultValue</code> if the property
  484. doesn't exist.]]>
  485. </doc>
  486. </method>
  487. <method name="getInt" return="int"
  488. abstract="false" native="false" synchronized="false"
  489. static="false" final="false" visibility="public"
  490. deprecated="not deprecated">
  491. <param name="name" type="java.lang.String"/>
  492. <param name="defaultValue" type="int"/>
  493. <doc>
  494. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  495. If no such property exists, the provided default value is returned,
  496. or if the specified value is not a valid <code>int</code>,
  497. then an error is thrown.
  498. @param name property name.
  499. @param defaultValue default value.
  500. @throws NumberFormatException when the value is invalid
  501. @return property value as an <code>int</code>,
  502. or <code>defaultValue</code>.]]>
  503. </doc>
  504. </method>
  505. <method name="getInts" return="int[]"
  506. abstract="false" native="false" synchronized="false"
  507. static="false" final="false" visibility="public"
  508. deprecated="not deprecated">
  509. <param name="name" type="java.lang.String"/>
  510. <doc>
  511. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  512. <code>int</code> values.
  513. If no such property exists, an empty array is returned.
  514. @param name property name
  515. @return property value interpreted as an array of comma-delimited
  516. <code>int</code> values]]>
  517. </doc>
  518. </method>
  519. <method name="setInt"
  520. abstract="false" native="false" synchronized="false"
  521. static="false" final="false" visibility="public"
  522. deprecated="not deprecated">
  523. <param name="name" type="java.lang.String"/>
  524. <param name="value" type="int"/>
  525. <doc>
  526. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  527. @param name property name.
  528. @param value <code>int</code> value of the property.]]>
  529. </doc>
  530. </method>
  531. <method name="getLong" return="long"
  532. abstract="false" native="false" synchronized="false"
  533. static="false" final="false" visibility="public"
  534. deprecated="not deprecated">
  535. <param name="name" type="java.lang.String"/>
  536. <param name="defaultValue" type="long"/>
  537. <doc>
  538. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  539. If no such property exists, the provided default value is returned,
  540. or if the specified value is not a valid <code>long</code>,
  541. then an error is thrown.
  542. @param name property name.
  543. @param defaultValue default value.
  544. @throws NumberFormatException when the value is invalid
  545. @return property value as a <code>long</code>,
  546. or <code>defaultValue</code>.]]>
  547. </doc>
  548. </method>
  549. <method name="getLongBytes" return="long"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="name" type="java.lang.String"/>
  554. <param name="defaultValue" type="long"/>
  555. <doc>
  556. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  557. human readable format. If no such property exists, the provided default
  558. value is returned, or if the specified value is not a valid
  559. <code>long</code> or human readable format, then an error is thrown. You
  560. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  561. t(tera), p(peta), e(exa)
  562. @param name property name.
  563. @param defaultValue default value.
  564. @throws NumberFormatException when the value is invalid
  565. @return property value as a <code>long</code>,
  566. or <code>defaultValue</code>.]]>
  567. </doc>
  568. </method>
  569. <method name="setLong"
  570. abstract="false" native="false" synchronized="false"
  571. static="false" final="false" visibility="public"
  572. deprecated="not deprecated">
  573. <param name="name" type="java.lang.String"/>
  574. <param name="value" type="long"/>
  575. <doc>
  576. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  577. @param name property name.
  578. @param value <code>long</code> value of the property.]]>
  579. </doc>
  580. </method>
  581. <method name="getFloat" return="float"
  582. abstract="false" native="false" synchronized="false"
  583. static="false" final="false" visibility="public"
  584. deprecated="not deprecated">
  585. <param name="name" type="java.lang.String"/>
  586. <param name="defaultValue" type="float"/>
  587. <doc>
  588. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  589. If no such property exists, the provided default value is returned,
  590. or if the specified value is not a valid <code>float</code>,
  591. then an error is thrown.
  592. @param name property name.
  593. @param defaultValue default value.
  594. @throws NumberFormatException when the value is invalid
  595. @return property value as a <code>float</code>,
  596. or <code>defaultValue</code>.]]>
  597. </doc>
  598. </method>
  599. <method name="setFloat"
  600. abstract="false" native="false" synchronized="false"
  601. static="false" final="false" visibility="public"
  602. deprecated="not deprecated">
  603. <param name="name" type="java.lang.String"/>
  604. <param name="value" type="float"/>
  605. <doc>
  606. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  607. @param name property name.
  608. @param value property value.]]>
  609. </doc>
  610. </method>
  611. <method name="getDouble" return="double"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="name" type="java.lang.String"/>
  616. <param name="defaultValue" type="double"/>
  617. <doc>
  618. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  619. If no such property exists, the provided default value is returned,
  620. or if the specified value is not a valid <code>double</code>,
  621. then an error is thrown.
  622. @param name property name.
  623. @param defaultValue default value.
  624. @throws NumberFormatException when the value is invalid
  625. @return property value as a <code>double</code>,
  626. or <code>defaultValue</code>.]]>
  627. </doc>
  628. </method>
  629. <method name="setDouble"
  630. abstract="false" native="false" synchronized="false"
  631. static="false" final="false" visibility="public"
  632. deprecated="not deprecated">
  633. <param name="name" type="java.lang.String"/>
  634. <param name="value" type="double"/>
  635. <doc>
  636. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  637. @param name property name.
  638. @param value property value.]]>
  639. </doc>
  640. </method>
  641. <method name="getBoolean" return="boolean"
  642. abstract="false" native="false" synchronized="false"
  643. static="false" final="false" visibility="public"
  644. deprecated="not deprecated">
  645. <param name="name" type="java.lang.String"/>
  646. <param name="defaultValue" type="boolean"/>
  647. <doc>
  648. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  649. If no such property is specified, or if the specified value is not a valid
  650. <code>boolean</code>, then <code>defaultValue</code> is returned.
  651. @param name property name.
  652. @param defaultValue default value.
  653. @return property value as a <code>boolean</code>,
  654. or <code>defaultValue</code>.]]>
  655. </doc>
  656. </method>
  657. <method name="setBoolean"
  658. abstract="false" native="false" synchronized="false"
  659. static="false" final="false" visibility="public"
  660. deprecated="not deprecated">
  661. <param name="name" type="java.lang.String"/>
  662. <param name="value" type="boolean"/>
  663. <doc>
  664. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  665. @param name property name.
  666. @param value <code>boolean</code> value of the property.]]>
  667. </doc>
  668. </method>
  669. <method name="setBooleanIfUnset"
  670. abstract="false" native="false" synchronized="false"
  671. static="false" final="false" visibility="public"
  672. deprecated="not deprecated">
  673. <param name="name" type="java.lang.String"/>
  674. <param name="value" type="boolean"/>
  675. <doc>
  676. <![CDATA[Set the given property, if it is currently unset.
  677. @param name property name
  678. @param value new value]]>
  679. </doc>
  680. </method>
  681. <method name="setEnum"
  682. abstract="false" native="false" synchronized="false"
  683. static="false" final="false" visibility="public"
  684. deprecated="not deprecated">
  685. <param name="name" type="java.lang.String"/>
  686. <param name="value" type="T"/>
  687. <doc>
  688. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  689. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  690. @param name property name
  691. @param value new value]]>
  692. </doc>
  693. </method>
  694. <method name="getEnum" return="T"
  695. abstract="false" native="false" synchronized="false"
  696. static="false" final="false" visibility="public"
  697. deprecated="not deprecated">
  698. <param name="name" type="java.lang.String"/>
  699. <param name="defaultValue" type="T"/>
  700. <doc>
  701. <![CDATA[Return value matching this enumerated type.
  702. Note that the returned value is trimmed by this method.
  703. @param name Property name
  704. @param defaultValue Value returned if no mapping exists
  705. @throws IllegalArgumentException If mapping is illegal for the type
  706. provided]]>
  707. </doc>
  708. </method>
  709. <method name="setTimeDuration"
  710. abstract="false" native="false" synchronized="false"
  711. static="false" final="false" visibility="public"
  712. deprecated="not deprecated">
  713. <param name="name" type="java.lang.String"/>
  714. <param name="value" type="long"/>
  715. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  716. <doc>
  717. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  718. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  719. @param name Property name
  720. @param value Time duration
  721. @param unit Unit of time]]>
  722. </doc>
  723. </method>
  724. <method name="getTimeDuration" return="long"
  725. abstract="false" native="false" synchronized="false"
  726. static="false" final="false" visibility="public"
  727. deprecated="not deprecated">
  728. <param name="name" type="java.lang.String"/>
  729. <param name="defaultValue" type="long"/>
  730. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  731. <doc>
  732. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  733. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  734. (ms), seconds (s), minutes (m), hours (h), and days (d).
  735. @param name Property name
  736. @param defaultValue Value returned if no mapping exists.
  737. @param unit Unit to convert the stored property, if it exists.
  738. @throws NumberFormatException If the property stripped of its unit is not
  739. a number]]>
  740. </doc>
  741. </method>
  742. <method name="getPattern" return="java.util.regex.Pattern"
  743. abstract="false" native="false" synchronized="false"
  744. static="false" final="false" visibility="public"
  745. deprecated="not deprecated">
  746. <param name="name" type="java.lang.String"/>
  747. <param name="defaultValue" type="java.util.regex.Pattern"/>
  748. <doc>
  749. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  750. If no such property is specified, or if the specified value is not a valid
  751. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  752. Note that the returned value is NOT trimmed by this method.
  753. @param name property name
  754. @param defaultValue default value
  755. @return property value as a compiled Pattern, or defaultValue]]>
  756. </doc>
  757. </method>
  758. <method name="setPattern"
  759. abstract="false" native="false" synchronized="false"
  760. static="false" final="false" visibility="public"
  761. deprecated="not deprecated">
  762. <param name="name" type="java.lang.String"/>
  763. <param name="pattern" type="java.util.regex.Pattern"/>
  764. <doc>
  765. <![CDATA[Set the given property to <code>Pattern</code>.
  766. If the pattern is passed as null, sets the empty pattern which results in
  767. further calls to getPattern(...) returning the default value.
  768. @param name property name
  769. @param pattern new value]]>
  770. </doc>
  771. </method>
  772. <method name="getPropertySources" return="java.lang.String[]"
  773. abstract="false" native="false" synchronized="true"
  774. static="false" final="false" visibility="public"
  775. deprecated="not deprecated">
  776. <param name="name" type="java.lang.String"/>
  777. <doc>
  778. <![CDATA[Gets information about why a property was set. Typically this is the
  779. path to the resource objects (file, URL, etc.) the property came from, but
  780. it can also indicate that it was set programatically, or because of the
  781. command line.
  782. @param name - The property name to get the source of.
  783. @return null - If the property or its source wasn't found. Otherwise,
  784. returns a list of the sources of the resource. The older sources are
  785. the first ones in the list. So for example if a configuration is set from
  786. the command line, and then written out to a file that is read back in the
  787. first entry would indicate that it was set from the command line, while
  788. the second one would indicate the file that the new configuration was read
  789. in from.]]>
  790. </doc>
  791. </method>
  792. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  793. abstract="false" native="false" synchronized="false"
  794. static="false" final="false" visibility="public"
  795. deprecated="not deprecated">
  796. <param name="name" type="java.lang.String"/>
  797. <param name="defaultValue" type="java.lang.String"/>
  798. <doc>
  799. <![CDATA[Parse the given attribute as a set of integer ranges
  800. @param name the attribute name
  801. @param defaultValue the default value if it is not set
  802. @return a new set of ranges from the configured value]]>
  803. </doc>
  804. </method>
  805. <method name="getStringCollection" return="java.util.Collection"
  806. abstract="false" native="false" synchronized="false"
  807. static="false" final="false" visibility="public"
  808. deprecated="not deprecated">
  809. <param name="name" type="java.lang.String"/>
  810. <doc>
  811. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  812. a collection of <code>String</code>s.
  813. If no such property is specified then empty collection is returned.
  814. <p>
  815. This is an optimized version of {@link #getStrings(String)}
  816. @param name property name.
  817. @return property value as a collection of <code>String</code>s.]]>
  818. </doc>
  819. </method>
  820. <method name="getStrings" return="java.lang.String[]"
  821. abstract="false" native="false" synchronized="false"
  822. static="false" final="false" visibility="public"
  823. deprecated="not deprecated">
  824. <param name="name" type="java.lang.String"/>
  825. <doc>
  826. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  827. an array of <code>String</code>s.
  828. If no such property is specified then <code>null</code> is returned.
  829. @param name property name.
  830. @return property value as an array of <code>String</code>s,
  831. or <code>null</code>.]]>
  832. </doc>
  833. </method>
  834. <method name="getStrings" return="java.lang.String[]"
  835. abstract="false" native="false" synchronized="false"
  836. static="false" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="name" type="java.lang.String"/>
  839. <param name="defaultValue" type="java.lang.String[]"/>
  840. <doc>
  841. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  842. an array of <code>String</code>s.
  843. If no such property is specified then default value is returned.
  844. @param name property name.
  845. @param defaultValue The default value
  846. @return property value as an array of <code>String</code>s,
  847. or default value.]]>
  848. </doc>
  849. </method>
  850. <method name="getTrimmedStringCollection" return="java.util.Collection"
  851. abstract="false" native="false" synchronized="false"
  852. static="false" final="false" visibility="public"
  853. deprecated="not deprecated">
  854. <param name="name" type="java.lang.String"/>
  855. <doc>
  856. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  857. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  858. If no such property is specified then empty <code>Collection</code> is returned.
  859. @param name property name.
  860. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  861. </doc>
  862. </method>
  863. <method name="getTrimmedStrings" return="java.lang.String[]"
  864. abstract="false" native="false" synchronized="false"
  865. static="false" final="false" visibility="public"
  866. deprecated="not deprecated">
  867. <param name="name" type="java.lang.String"/>
  868. <doc>
  869. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  870. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  871. If no such property is specified then an empty array is returned.
  872. @param name property name.
  873. @return property value as an array of trimmed <code>String</code>s,
  874. or empty array.]]>
  875. </doc>
  876. </method>
  877. <method name="getTrimmedStrings" return="java.lang.String[]"
  878. abstract="false" native="false" synchronized="false"
  879. static="false" final="false" visibility="public"
  880. deprecated="not deprecated">
  881. <param name="name" type="java.lang.String"/>
  882. <param name="defaultValue" type="java.lang.String[]"/>
  883. <doc>
  884. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  885. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  886. If no such property is specified then default value is returned.
  887. @param name property name.
  888. @param defaultValue The default value
  889. @return property value as an array of trimmed <code>String</code>s,
  890. or default value.]]>
  891. </doc>
  892. </method>
  893. <method name="setStrings"
  894. abstract="false" native="false" synchronized="false"
  895. static="false" final="false" visibility="public"
  896. deprecated="not deprecated">
  897. <param name="name" type="java.lang.String"/>
  898. <param name="values" type="java.lang.String[]"/>
  899. <doc>
  900. <![CDATA[Set the array of string values for the <code>name</code> property as
  901. as comma delimited values.
  902. @param name property name.
  903. @param values The values]]>
  904. </doc>
  905. </method>
  906. <method name="getPassword" return="char[]"
  907. abstract="false" native="false" synchronized="false"
  908. static="false" final="false" visibility="public"
  909. deprecated="not deprecated">
  910. <param name="name" type="java.lang.String"/>
  911. <exception name="IOException" type="java.io.IOException"/>
  912. <doc>
  913. <![CDATA[Get the value for a known password configuration element.
  914. In order to enable the elimination of clear text passwords in config,
  915. this method attempts to resolve the property name as an alias through
  916. the CredentialProvider API and conditionally fallsback to config.
  917. @param name property name
  918. @return password]]>
  919. </doc>
  920. </method>
  921. <method name="getPasswordFromCredentialProviders" return="char[]"
  922. abstract="false" native="false" synchronized="false"
  923. static="false" final="false" visibility="protected"
  924. deprecated="not deprecated">
  925. <param name="name" type="java.lang.String"/>
  926. <exception name="IOException" type="java.io.IOException"/>
  927. <doc>
  928. <![CDATA[Try and resolve the provided element name as a credential provider
  929. alias.
  930. @param name alias of the provisioned credential
  931. @return password or null if not found
  932. @throws IOException]]>
  933. </doc>
  934. </method>
  935. <method name="getPasswordFromConfig" return="char[]"
  936. abstract="false" native="false" synchronized="false"
  937. static="false" final="false" visibility="protected"
  938. deprecated="not deprecated">
  939. <param name="name" type="java.lang.String"/>
  940. <doc>
  941. <![CDATA[Fallback to clear text passwords in configuration.
  942. @param name
  943. @return clear text password or null]]>
  944. </doc>
  945. </method>
  946. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  947. abstract="false" native="false" synchronized="false"
  948. static="false" final="false" visibility="public"
  949. deprecated="not deprecated">
  950. <param name="hostProperty" type="java.lang.String"/>
  951. <param name="addressProperty" type="java.lang.String"/>
  952. <param name="defaultAddressValue" type="java.lang.String"/>
  953. <param name="defaultPort" type="int"/>
  954. <doc>
  955. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  956. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  957. <code>null</code>, <code>addressProperty</code> will be used. This
  958. is useful for cases where we want to differentiate between host
  959. bind address and address clients should use to establish connection.
  960. @param hostProperty bind host property name.
  961. @param addressProperty address property name.
  962. @param defaultAddressValue the default value
  963. @param defaultPort the default port
  964. @return InetSocketAddress]]>
  965. </doc>
  966. </method>
  967. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  968. abstract="false" native="false" synchronized="false"
  969. static="false" final="false" visibility="public"
  970. deprecated="not deprecated">
  971. <param name="name" type="java.lang.String"/>
  972. <param name="defaultAddress" type="java.lang.String"/>
  973. <param name="defaultPort" type="int"/>
  974. <doc>
  975. <![CDATA[Get the socket address for <code>name</code> property as a
  976. <code>InetSocketAddress</code>.
  977. @param name property name.
  978. @param defaultAddress the default value
  979. @param defaultPort the default port
  980. @return InetSocketAddress]]>
  981. </doc>
  982. </method>
  983. <method name="setSocketAddr"
  984. abstract="false" native="false" synchronized="false"
  985. static="false" final="false" visibility="public"
  986. deprecated="not deprecated">
  987. <param name="name" type="java.lang.String"/>
  988. <param name="addr" type="java.net.InetSocketAddress"/>
  989. <doc>
  990. <![CDATA[Set the socket address for the <code>name</code> property as
  991. a <code>host:port</code>.]]>
  992. </doc>
  993. </method>
  994. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  995. abstract="false" native="false" synchronized="false"
  996. static="false" final="false" visibility="public"
  997. deprecated="not deprecated">
  998. <param name="hostProperty" type="java.lang.String"/>
  999. <param name="addressProperty" type="java.lang.String"/>
  1000. <param name="defaultAddressValue" type="java.lang.String"/>
  1001. <param name="addr" type="java.net.InetSocketAddress"/>
  1002. <doc>
  1003. <![CDATA[Set the socket address a client can use to connect for the
  1004. <code>name</code> property as a <code>host:port</code>. The wildcard
  1005. address is replaced with the local host's address. If the host and address
  1006. properties are configured the host component of the address will be combined
  1007. with the port component of the addr to generate the address. This is to allow
  1008. optional control over which host name is used in multi-home bind-host
  1009. cases where a host can have multiple names
  1010. @param hostProperty the bind-host configuration name
  1011. @param addressProperty the service address configuration name
  1012. @param defaultAddressValue the service default address configuration value
  1013. @param addr InetSocketAddress of the service listener
  1014. @return InetSocketAddress for clients to connect]]>
  1015. </doc>
  1016. </method>
  1017. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1018. abstract="false" native="false" synchronized="false"
  1019. static="false" final="false" visibility="public"
  1020. deprecated="not deprecated">
  1021. <param name="name" type="java.lang.String"/>
  1022. <param name="addr" type="java.net.InetSocketAddress"/>
  1023. <doc>
  1024. <![CDATA[Set the socket address a client can use to connect for the
  1025. <code>name</code> property as a <code>host:port</code>. The wildcard
  1026. address is replaced with the local host's address.
  1027. @param name property name.
  1028. @param addr InetSocketAddress of a listener to store in the given property
  1029. @return InetSocketAddress for clients to connect]]>
  1030. </doc>
  1031. </method>
  1032. <method name="getClassByName" 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. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1038. <doc>
  1039. <![CDATA[Load a class by name.
  1040. @param name the class name.
  1041. @return the class object.
  1042. @throws ClassNotFoundException if the class is not found.]]>
  1043. </doc>
  1044. </method>
  1045. <method name="getClassByNameOrNull" return="java.lang.Class"
  1046. abstract="false" native="false" synchronized="false"
  1047. static="false" final="false" visibility="public"
  1048. deprecated="not deprecated">
  1049. <param name="name" type="java.lang.String"/>
  1050. <doc>
  1051. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1052. if it couldn't be loaded. This is to avoid the overhead of creating
  1053. an exception.
  1054. @param name the class name
  1055. @return the class object, or null if it could not be found.]]>
  1056. </doc>
  1057. </method>
  1058. <method name="getClasses" return="java.lang.Class[]"
  1059. abstract="false" native="false" synchronized="false"
  1060. static="false" final="false" visibility="public"
  1061. deprecated="not deprecated">
  1062. <param name="name" type="java.lang.String"/>
  1063. <param name="defaultValue" type="java.lang.Class[]"/>
  1064. <doc>
  1065. <![CDATA[Get the value of the <code>name</code> property
  1066. as an array of <code>Class</code>.
  1067. The value of the property specifies a list of comma separated class names.
  1068. If no such property is specified, then <code>defaultValue</code> is
  1069. returned.
  1070. @param name the property name.
  1071. @param defaultValue default value.
  1072. @return property value as a <code>Class[]</code>,
  1073. or <code>defaultValue</code>.]]>
  1074. </doc>
  1075. </method>
  1076. <method name="getClass" return="java.lang.Class"
  1077. abstract="false" native="false" synchronized="false"
  1078. static="false" final="false" visibility="public"
  1079. deprecated="not deprecated">
  1080. <param name="name" type="java.lang.String"/>
  1081. <param name="defaultValue" type="java.lang.Class"/>
  1082. <doc>
  1083. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1084. If no such property is specified, then <code>defaultValue</code> is
  1085. returned.
  1086. @param name the class name.
  1087. @param defaultValue default value.
  1088. @return property value as a <code>Class</code>,
  1089. or <code>defaultValue</code>.]]>
  1090. </doc>
  1091. </method>
  1092. <method name="getClass" return="java.lang.Class"
  1093. abstract="false" native="false" synchronized="false"
  1094. static="false" final="false" visibility="public"
  1095. deprecated="not deprecated">
  1096. <param name="name" type="java.lang.String"/>
  1097. <param name="defaultValue" type="java.lang.Class"/>
  1098. <param name="xface" type="java.lang.Class"/>
  1099. <doc>
  1100. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1101. implementing the interface specified by <code>xface</code>.
  1102. If no such property is specified, then <code>defaultValue</code> is
  1103. returned.
  1104. An exception is thrown if the returned class does not implement the named
  1105. interface.
  1106. @param name the class name.
  1107. @param defaultValue default value.
  1108. @param xface the interface implemented by the named class.
  1109. @return property value as a <code>Class</code>,
  1110. or <code>defaultValue</code>.]]>
  1111. </doc>
  1112. </method>
  1113. <method name="getInstances" return="java.util.List"
  1114. abstract="false" native="false" synchronized="false"
  1115. static="false" final="false" visibility="public"
  1116. deprecated="not deprecated">
  1117. <param name="name" type="java.lang.String"/>
  1118. <param name="xface" type="java.lang.Class"/>
  1119. <doc>
  1120. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1121. of objects implementing the interface specified by <code>xface</code>.
  1122. An exception is thrown if any of the classes does not exist, or if it does
  1123. not implement the named interface.
  1124. @param name the property name.
  1125. @param xface the interface implemented by the classes named by
  1126. <code>name</code>.
  1127. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1128. </doc>
  1129. </method>
  1130. <method name="setClass"
  1131. abstract="false" native="false" synchronized="false"
  1132. static="false" final="false" visibility="public"
  1133. deprecated="not deprecated">
  1134. <param name="name" type="java.lang.String"/>
  1135. <param name="theClass" type="java.lang.Class"/>
  1136. <param name="xface" type="java.lang.Class"/>
  1137. <doc>
  1138. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1139. <code>theClass</code> implementing the given interface <code>xface</code>.
  1140. An exception is thrown if <code>theClass</code> does not implement the
  1141. interface <code>xface</code>.
  1142. @param name property name.
  1143. @param theClass property value.
  1144. @param xface the interface implemented by the named class.]]>
  1145. </doc>
  1146. </method>
  1147. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1148. abstract="false" native="false" synchronized="false"
  1149. static="false" final="false" visibility="public"
  1150. deprecated="not deprecated">
  1151. <param name="dirsProp" type="java.lang.String"/>
  1152. <param name="path" type="java.lang.String"/>
  1153. <exception name="IOException" type="java.io.IOException"/>
  1154. <doc>
  1155. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1156. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1157. then one is chosen based on <i>path</i>'s hash code. If the selected
  1158. directory does not exist, an attempt is made to create it.
  1159. @param dirsProp directory in which to locate the file.
  1160. @param path file-path.
  1161. @return local file under the directory with the given path.]]>
  1162. </doc>
  1163. </method>
  1164. <method name="getFile" return="java.io.File"
  1165. abstract="false" native="false" synchronized="false"
  1166. static="false" final="false" visibility="public"
  1167. deprecated="not deprecated">
  1168. <param name="dirsProp" type="java.lang.String"/>
  1169. <param name="path" type="java.lang.String"/>
  1170. <exception name="IOException" type="java.io.IOException"/>
  1171. <doc>
  1172. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1173. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1174. then one is chosen based on <i>path</i>'s hash code. If the selected
  1175. directory does not exist, an attempt is made to create it.
  1176. @param dirsProp directory in which to locate the file.
  1177. @param path file-path.
  1178. @return local file under the directory with the given path.]]>
  1179. </doc>
  1180. </method>
  1181. <method name="getResource" return="java.net.URL"
  1182. abstract="false" native="false" synchronized="false"
  1183. static="false" final="false" visibility="public"
  1184. deprecated="not deprecated">
  1185. <param name="name" type="java.lang.String"/>
  1186. <doc>
  1187. <![CDATA[Get the {@link URL} for the named resource.
  1188. @param name resource name.
  1189. @return the url for the named resource.]]>
  1190. </doc>
  1191. </method>
  1192. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1193. abstract="false" native="false" synchronized="false"
  1194. static="false" final="false" visibility="public"
  1195. deprecated="not deprecated">
  1196. <param name="name" type="java.lang.String"/>
  1197. <doc>
  1198. <![CDATA[Get an input stream attached to the configuration resource with the
  1199. given <code>name</code>.
  1200. @param name configuration resource name.
  1201. @return an input stream attached to the resource.]]>
  1202. </doc>
  1203. </method>
  1204. <method name="getConfResourceAsReader" return="java.io.Reader"
  1205. abstract="false" native="false" synchronized="false"
  1206. static="false" final="false" visibility="public"
  1207. deprecated="not deprecated">
  1208. <param name="name" type="java.lang.String"/>
  1209. <doc>
  1210. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1211. given <code>name</code>.
  1212. @param name configuration resource name.
  1213. @return a reader attached to the resource.]]>
  1214. </doc>
  1215. </method>
  1216. <method name="getFinalParameters" return="java.util.Set"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <doc>
  1221. <![CDATA[Get the set of parameters marked final.
  1222. @return final parameter set.]]>
  1223. </doc>
  1224. </method>
  1225. <method name="getProps" return="java.util.Properties"
  1226. abstract="false" native="false" synchronized="true"
  1227. static="false" final="false" visibility="protected"
  1228. deprecated="not deprecated">
  1229. </method>
  1230. <method name="size" return="int"
  1231. abstract="false" native="false" synchronized="false"
  1232. static="false" final="false" visibility="public"
  1233. deprecated="not deprecated">
  1234. <doc>
  1235. <![CDATA[Return the number of keys in the configuration.
  1236. @return number of keys in the configuration.]]>
  1237. </doc>
  1238. </method>
  1239. <method name="clear"
  1240. abstract="false" native="false" synchronized="false"
  1241. static="false" final="false" visibility="public"
  1242. deprecated="not deprecated">
  1243. <doc>
  1244. <![CDATA[Clears all keys from the configuration.]]>
  1245. </doc>
  1246. </method>
  1247. <method name="iterator" return="java.util.Iterator"
  1248. abstract="false" native="false" synchronized="false"
  1249. static="false" final="false" visibility="public"
  1250. deprecated="not deprecated">
  1251. <doc>
  1252. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1253. key-value pairs in the configuration.
  1254. @return an iterator over the entries.]]>
  1255. </doc>
  1256. </method>
  1257. <method name="writeXml"
  1258. abstract="false" native="false" synchronized="false"
  1259. static="false" final="false" visibility="public"
  1260. deprecated="not deprecated">
  1261. <param name="out" type="java.io.OutputStream"/>
  1262. <exception name="IOException" type="java.io.IOException"/>
  1263. <doc>
  1264. <![CDATA[Write out the non-default properties in this configuration to the given
  1265. {@link OutputStream} using UTF-8 encoding.
  1266. @param out the output stream to write to.]]>
  1267. </doc>
  1268. </method>
  1269. <method name="writeXml"
  1270. abstract="false" native="false" synchronized="false"
  1271. static="false" final="false" visibility="public"
  1272. deprecated="not deprecated">
  1273. <param name="out" type="java.io.Writer"/>
  1274. <exception name="IOException" type="java.io.IOException"/>
  1275. <doc>
  1276. <![CDATA[Write out the non-default properties in this configuration to the given
  1277. {@link Writer}.
  1278. @param out the writer to write to.]]>
  1279. </doc>
  1280. </method>
  1281. <method name="dumpConfiguration"
  1282. abstract="false" native="false" synchronized="false"
  1283. static="true" final="false" visibility="public"
  1284. deprecated="not deprecated">
  1285. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1286. <param name="out" type="java.io.Writer"/>
  1287. <exception name="IOException" type="java.io.IOException"/>
  1288. <doc>
  1289. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  1290. the given {@link Writer}
  1291. The format of the output would be
  1292. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  1293. key2.isFinal,key2.resource}... ] }
  1294. It does not output the parameters of the configuration object which is
  1295. loaded from an input stream.
  1296. @param out the Writer to write to
  1297. @throws IOException]]>
  1298. </doc>
  1299. </method>
  1300. <method name="getClassLoader" return="java.lang.ClassLoader"
  1301. abstract="false" native="false" synchronized="false"
  1302. static="false" final="false" visibility="public"
  1303. deprecated="not deprecated">
  1304. <doc>
  1305. <![CDATA[Get the {@link ClassLoader} for this job.
  1306. @return the correct class loader.]]>
  1307. </doc>
  1308. </method>
  1309. <method name="setClassLoader"
  1310. abstract="false" native="false" synchronized="false"
  1311. static="false" final="false" visibility="public"
  1312. deprecated="not deprecated">
  1313. <param name="classLoader" type="java.lang.ClassLoader"/>
  1314. <doc>
  1315. <![CDATA[Set the class loader that will be used to load the various objects.
  1316. @param classLoader the new class loader.]]>
  1317. </doc>
  1318. </method>
  1319. <method name="toString" return="java.lang.String"
  1320. abstract="false" native="false" synchronized="false"
  1321. static="false" final="false" visibility="public"
  1322. deprecated="not deprecated">
  1323. </method>
  1324. <method name="setQuietMode"
  1325. abstract="false" native="false" synchronized="true"
  1326. static="false" final="false" visibility="public"
  1327. deprecated="not deprecated">
  1328. <param name="quietmode" type="boolean"/>
  1329. <doc>
  1330. <![CDATA[Set the quietness-mode.
  1331. In the quiet-mode, error and informational messages might not be logged.
  1332. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1333. to turn it off.]]>
  1334. </doc>
  1335. </method>
  1336. <method name="main"
  1337. abstract="false" native="false" synchronized="false"
  1338. static="true" final="false" visibility="public"
  1339. deprecated="not deprecated">
  1340. <param name="args" type="java.lang.String[]"/>
  1341. <exception name="Exception" type="java.lang.Exception"/>
  1342. <doc>
  1343. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1344. </doc>
  1345. </method>
  1346. <method name="readFields"
  1347. abstract="false" native="false" synchronized="false"
  1348. static="false" final="false" visibility="public"
  1349. deprecated="not deprecated">
  1350. <param name="in" type="java.io.DataInput"/>
  1351. <exception name="IOException" type="java.io.IOException"/>
  1352. </method>
  1353. <method name="write"
  1354. abstract="false" native="false" synchronized="false"
  1355. static="false" final="false" visibility="public"
  1356. deprecated="not deprecated">
  1357. <param name="out" type="java.io.DataOutput"/>
  1358. <exception name="IOException" type="java.io.IOException"/>
  1359. </method>
  1360. <method name="getValByRegex" return="java.util.Map"
  1361. abstract="false" native="false" synchronized="false"
  1362. static="false" final="false" visibility="public"
  1363. deprecated="not deprecated">
  1364. <param name="regex" type="java.lang.String"/>
  1365. <doc>
  1366. <![CDATA[get keys matching the the regex
  1367. @param regex
  1368. @return Map<String,String> with matching keys]]>
  1369. </doc>
  1370. </method>
  1371. <method name="dumpDeprecatedKeys"
  1372. abstract="false" native="false" synchronized="false"
  1373. static="true" final="false" visibility="public"
  1374. deprecated="not deprecated">
  1375. </method>
  1376. <method name="hasWarnedDeprecation" return="boolean"
  1377. abstract="false" native="false" synchronized="false"
  1378. static="true" final="false" visibility="public"
  1379. deprecated="not deprecated">
  1380. <param name="name" type="java.lang.String"/>
  1381. <doc>
  1382. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1383. deprecated then always return false]]>
  1384. </doc>
  1385. </method>
  1386. <doc>
  1387. <![CDATA[Provides access to configuration parameters.
  1388. <h4 id="Resources">Resources</h4>
  1389. <p>Configurations are specified by resources. A resource contains a set of
  1390. name/value pairs as XML data. Each resource is named by either a
  1391. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1392. then the classpath is examined for a file with that name. If named by a
  1393. <code>Path</code>, then the local filesystem is examined directly, without
  1394. referring to the classpath.
  1395. <p>Unless explicitly turned off, Hadoop by default specifies two
  1396. resources, loaded in-order from the classpath: <ol>
  1397. <li><tt>
  1398. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1399. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1400. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1401. installation.</li>
  1402. </ol>
  1403. Applications may add additional resources, which are loaded
  1404. subsequent to these resources in the order they are added.
  1405. <h4 id="FinalParams">Final Parameters</h4>
  1406. <p>Configuration parameters may be declared <i>final</i>.
  1407. Once a resource declares a value final, no subsequently-loaded
  1408. resource can alter that value.
  1409. For example, one might define a final parameter with:
  1410. <tt><pre>
  1411. &lt;property&gt;
  1412. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1413. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1414. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1415. &lt;/property&gt;</pre></tt>
  1416. Administrators typically define parameters as final in
  1417. <tt>core-site.xml</tt> for values that user applications may not alter.
  1418. <h4 id="VariableExpansion">Variable Expansion</h4>
  1419. <p>Value strings are first processed for <i>variable expansion</i>. The
  1420. available properties are:<ol>
  1421. <li>Other properties defined in this Configuration; and, if a name is
  1422. undefined here,</li>
  1423. <li>Properties in {@link System#getProperties()}.</li>
  1424. </ol>
  1425. <p>For example, if a configuration resource contains the following property
  1426. definitions:
  1427. <tt><pre>
  1428. &lt;property&gt;
  1429. &lt;name&gt;basedir&lt;/name&gt;
  1430. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1431. &lt;/property&gt;
  1432. &lt;property&gt;
  1433. &lt;name&gt;tempdir&lt;/name&gt;
  1434. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1435. &lt;/property&gt;</pre></tt>
  1436. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1437. will be resolved to another property in this Configuration, while
  1438. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1439. of the System property with that name.
  1440. By default, warnings will be given to any deprecated configuration
  1441. parameters and these are suppressible by configuring
  1442. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1443. log4j.properties file.]]>
  1444. </doc>
  1445. </class>
  1446. <!-- end class org.apache.hadoop.conf.Configuration -->
  1447. <!-- start class org.apache.hadoop.conf.Configuration.DeprecationDelta -->
  1448. <class name="Configuration.DeprecationDelta" extends="java.lang.Object"
  1449. abstract="false"
  1450. static="true" final="false" visibility="public"
  1451. deprecated="not deprecated">
  1452. <constructor name="DeprecationDelta" type="java.lang.String, java.lang.String, java.lang.String"
  1453. static="false" final="false" visibility="public"
  1454. deprecated="not deprecated">
  1455. </constructor>
  1456. <constructor name="DeprecationDelta" type="java.lang.String, java.lang.String"
  1457. static="false" final="false" visibility="public"
  1458. deprecated="not deprecated">
  1459. </constructor>
  1460. <method name="getKey" return="java.lang.String"
  1461. abstract="false" native="false" synchronized="false"
  1462. static="false" final="false" visibility="public"
  1463. deprecated="not deprecated">
  1464. </method>
  1465. <method name="getNewKeys" return="java.lang.String[]"
  1466. abstract="false" native="false" synchronized="false"
  1467. static="false" final="false" visibility="public"
  1468. deprecated="not deprecated">
  1469. </method>
  1470. <method name="getCustomMessage" return="java.lang.String"
  1471. abstract="false" native="false" synchronized="false"
  1472. static="false" final="false" visibility="public"
  1473. deprecated="not deprecated">
  1474. </method>
  1475. <doc>
  1476. <![CDATA[A pending addition to the global set of deprecated keys.]]>
  1477. </doc>
  1478. </class>
  1479. <!-- end class org.apache.hadoop.conf.Configuration.DeprecationDelta -->
  1480. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1481. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  1482. abstract="false"
  1483. static="true" final="false" visibility="public"
  1484. deprecated="not deprecated">
  1485. <implements name="java.lang.Iterable"/>
  1486. <constructor name="IntegerRanges"
  1487. static="false" final="false" visibility="public"
  1488. deprecated="not deprecated">
  1489. </constructor>
  1490. <constructor name="IntegerRanges" type="java.lang.String"
  1491. static="false" final="false" visibility="public"
  1492. deprecated="not deprecated">
  1493. </constructor>
  1494. <method name="isIncluded" return="boolean"
  1495. abstract="false" native="false" synchronized="false"
  1496. static="false" final="false" visibility="public"
  1497. deprecated="not deprecated">
  1498. <param name="value" type="int"/>
  1499. <doc>
  1500. <![CDATA[Is the given value in the set of ranges
  1501. @param value the value to check
  1502. @return is the value in the ranges?]]>
  1503. </doc>
  1504. </method>
  1505. <method name="isEmpty" return="boolean"
  1506. abstract="false" native="false" synchronized="false"
  1507. static="false" final="false" visibility="public"
  1508. deprecated="not deprecated">
  1509. <doc>
  1510. <![CDATA[@return true if there are no values in this range, else false.]]>
  1511. </doc>
  1512. </method>
  1513. <method name="toString" return="java.lang.String"
  1514. abstract="false" native="false" synchronized="false"
  1515. static="false" final="false" visibility="public"
  1516. deprecated="not deprecated">
  1517. </method>
  1518. <method name="iterator" return="java.util.Iterator"
  1519. abstract="false" native="false" synchronized="false"
  1520. static="false" final="false" visibility="public"
  1521. deprecated="not deprecated">
  1522. </method>
  1523. <doc>
  1524. <![CDATA[A class that represents a set of positive integer ranges. It parses
  1525. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  1526. the lower/upper bounds are separated by dash. Either the lower or upper
  1527. bound may be omitted meaning all values up to or over. So the string
  1528. above means 2, 3, 5, and 7, 8, 9, ...]]>
  1529. </doc>
  1530. </class>
  1531. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1532. <!-- start class org.apache.hadoop.conf.Configured -->
  1533. <class name="Configured" extends="java.lang.Object"
  1534. abstract="false"
  1535. static="false" final="false" visibility="public"
  1536. deprecated="not deprecated">
  1537. <implements name="org.apache.hadoop.conf.Configurable"/>
  1538. <constructor name="Configured"
  1539. static="false" final="false" visibility="public"
  1540. deprecated="not deprecated">
  1541. <doc>
  1542. <![CDATA[Construct a Configured.]]>
  1543. </doc>
  1544. </constructor>
  1545. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1546. static="false" final="false" visibility="public"
  1547. deprecated="not deprecated">
  1548. <doc>
  1549. <![CDATA[Construct a Configured.]]>
  1550. </doc>
  1551. </constructor>
  1552. <method name="setConf"
  1553. abstract="false" native="false" synchronized="false"
  1554. static="false" final="false" visibility="public"
  1555. deprecated="not deprecated">
  1556. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1557. </method>
  1558. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1559. abstract="false" native="false" synchronized="false"
  1560. static="false" final="false" visibility="public"
  1561. deprecated="not deprecated">
  1562. </method>
  1563. <doc>
  1564. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1565. </doc>
  1566. </class>
  1567. <!-- end class org.apache.hadoop.conf.Configured -->
  1568. <!-- start class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1569. <class name="ConfServlet.BadFormatException" extends="java.lang.Exception"
  1570. abstract="false"
  1571. static="true" final="false" visibility="public"
  1572. deprecated="not deprecated">
  1573. <constructor name="BadFormatException" type="java.lang.String"
  1574. static="false" final="false" visibility="public"
  1575. deprecated="not deprecated">
  1576. </constructor>
  1577. </class>
  1578. <!-- end class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1579. <!-- start interface org.apache.hadoop.conf.Reconfigurable -->
  1580. <interface name="Reconfigurable" abstract="true"
  1581. static="false" final="false" visibility="public"
  1582. deprecated="not deprecated">
  1583. <implements name="org.apache.hadoop.conf.Configurable"/>
  1584. <method name="reconfigureProperty" return="java.lang.String"
  1585. abstract="true" native="false" synchronized="false"
  1586. static="false" final="false" visibility="public"
  1587. deprecated="not deprecated">
  1588. <param name="property" type="java.lang.String"/>
  1589. <param name="newVal" type="java.lang.String"/>
  1590. <exception name="ReconfigurationException" type="org.apache.hadoop.conf.ReconfigurationException"/>
  1591. <doc>
  1592. <![CDATA[Change a configuration property on this object to the value specified.
  1593. Change a configuration property on this object to the value specified
  1594. and return the previous value that the configuration property was set to
  1595. (or null if it was not previously set). If newVal is null, set the property
  1596. to its default value;
  1597. If the property cannot be changed, throw a
  1598. {@link ReconfigurationException}.]]>
  1599. </doc>
  1600. </method>
  1601. <method name="isPropertyReconfigurable" return="boolean"
  1602. abstract="true" native="false" synchronized="false"
  1603. static="false" final="false" visibility="public"
  1604. deprecated="not deprecated">
  1605. <param name="property" type="java.lang.String"/>
  1606. <doc>
  1607. <![CDATA[Return whether a given property is changeable at run time.
  1608. If isPropertyReconfigurable returns true for a property,
  1609. then changeConf should not throw an exception when changing
  1610. this property.]]>
  1611. </doc>
  1612. </method>
  1613. <method name="getReconfigurableProperties" return="java.util.Collection"
  1614. abstract="true" native="false" synchronized="false"
  1615. static="false" final="false" visibility="public"
  1616. deprecated="not deprecated">
  1617. <doc>
  1618. <![CDATA[Return all the properties that can be changed at run time.]]>
  1619. </doc>
  1620. </method>
  1621. <doc>
  1622. <![CDATA[Something whose {@link Configuration} can be changed at run time.]]>
  1623. </doc>
  1624. </interface>
  1625. <!-- end interface org.apache.hadoop.conf.Reconfigurable -->
  1626. <!-- start class org.apache.hadoop.conf.ReconfigurableBase -->
  1627. <class name="ReconfigurableBase" extends="org.apache.hadoop.conf.Configured"
  1628. abstract="true"
  1629. static="false" final="false" visibility="public"
  1630. deprecated="not deprecated">
  1631. <implements name="org.apache.hadoop.conf.Reconfigurable"/>
  1632. <constructor name="ReconfigurableBase"
  1633. static="false" final="false" visibility="public"
  1634. deprecated="not deprecated">
  1635. <doc>
  1636. <![CDATA[Construct a ReconfigurableBase.]]>
  1637. </doc>
  1638. </constructor>
  1639. <constructor name="ReconfigurableBase" type="org.apache.hadoop.conf.Configuration"
  1640. static="false" final="false" visibility="public"
  1641. deprecated="not deprecated">
  1642. <doc>
  1643. <![CDATA[Construct a ReconfigurableBase with the {@link Configuration}
  1644. conf.]]>
  1645. </doc>
  1646. </constructor>
  1647. <method name="setReconfigurationUtil"
  1648. abstract="false" native="false" synchronized="false"
  1649. static="false" final="false" visibility="public"
  1650. deprecated="not deprecated">
  1651. <param name="ru" type="org.apache.hadoop.conf.ReconfigurationUtil"/>
  1652. </method>
  1653. <method name="getChangedProperties" return="java.util.Collection"
  1654. abstract="false" native="false" synchronized="false"
  1655. static="false" final="false" visibility="public"
  1656. deprecated="not deprecated">
  1657. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  1658. <param name="oldConf" type="org.apache.hadoop.conf.Configuration"/>
  1659. </method>
  1660. <method name="startReconfigurationTask"
  1661. abstract="false" native="false" synchronized="false"
  1662. static="false" final="false" visibility="public"
  1663. deprecated="not deprecated">
  1664. <exception name="IOException" type="java.io.IOException"/>
  1665. <doc>
  1666. <![CDATA[Start a reconfiguration task to reload configuration in background.]]>
  1667. </doc>
  1668. </method>
  1669. <method name="getReconfigurationTaskStatus" return="org.apache.hadoop.conf.ReconfigurationTaskStatus"
  1670. abstract="false" native="false" synchronized="false"
  1671. static="false" final="false" visibility="public"
  1672. deprecated="not deprecated">
  1673. </method>
  1674. <method name="shutdownReconfigurationTask"
  1675. abstract="false" native="false" synchronized="false"
  1676. static="false" final="false" visibility="public"
  1677. deprecated="not deprecated">
  1678. </method>
  1679. <method name="reconfigureProperty" return="java.lang.String"
  1680. abstract="false" native="false" synchronized="false"
  1681. static="false" final="true" visibility="public"
  1682. deprecated="not deprecated">
  1683. <param name="property" type="java.lang.String"/>
  1684. <param name="newVal" type="java.lang.String"/>
  1685. <exception name="ReconfigurationException" type="org.apache.hadoop.conf.ReconfigurationException"/>
  1686. <doc>
  1687. <![CDATA[{@inheritDoc}
  1688. This method makes the change to this objects {@link Configuration}
  1689. and calls reconfigurePropertyImpl to update internal data structures.
  1690. This method cannot be overridden, subclasses should instead override
  1691. reconfigureProperty.]]>
  1692. </doc>
  1693. </method>
  1694. <method name="getReconfigurableProperties" return="java.util.Collection"
  1695. abstract="true" native="false" synchronized="false"
  1696. static="false" final="false" visibility="public"
  1697. deprecated="not deprecated">
  1698. <doc>
  1699. <![CDATA[{@inheritDoc}
  1700. Subclasses must override this.]]>
  1701. </doc>
  1702. </method>
  1703. <method name="isPropertyReconfigurable" return="boolean"
  1704. abstract="false" native="false" synchronized="false"
  1705. static="false" final="false" visibility="public"
  1706. deprecated="not deprecated">
  1707. <param name="property" type="java.lang.String"/>
  1708. <doc>
  1709. <![CDATA[{@inheritDoc}
  1710. Subclasses may wish to override this with a more efficient implementation.]]>
  1711. </doc>
  1712. </method>
  1713. <method name="reconfigurePropertyImpl"
  1714. abstract="true" native="false" synchronized="false"
  1715. static="false" final="false" visibility="protected"
  1716. deprecated="not deprecated">
  1717. <param name="property" type="java.lang.String"/>
  1718. <param name="newVal" type="java.lang.String"/>
  1719. <exception name="ReconfigurationException" type="org.apache.hadoop.conf.ReconfigurationException"/>
  1720. <doc>
  1721. <![CDATA[Change a configuration property.
  1722. Subclasses must override this. This method applies the change to
  1723. all internal data structures derived from the configuration property
  1724. that is being changed. If this object owns other Reconfigurable objects
  1725. reconfigureProperty should be called recursively to make sure that
  1726. to make sure that the configuration of these objects is updated.]]>
  1727. </doc>
  1728. </method>
  1729. <doc>
  1730. <![CDATA[Utility base class for implementing the Reconfigurable interface.
  1731. Subclasses should override reconfigurePropertyImpl to change individual
  1732. properties and getReconfigurableProperties to get all properties that
  1733. can be changed at run time.]]>
  1734. </doc>
  1735. </class>
  1736. <!-- end class org.apache.hadoop.conf.ReconfigurableBase -->
  1737. <!-- start class org.apache.hadoop.conf.ReconfigurationException -->
  1738. <class name="ReconfigurationException" extends="java.lang.Exception"
  1739. abstract="false"
  1740. static="false" final="false" visibility="public"
  1741. deprecated="not deprecated">
  1742. <constructor name="ReconfigurationException"
  1743. static="false" final="false" visibility="public"
  1744. deprecated="not deprecated">
  1745. <doc>
  1746. <![CDATA[Create a new instance of {@link ReconfigurationException}.]]>
  1747. </doc>
  1748. </constructor>
  1749. <constructor name="ReconfigurationException" type="java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable"
  1750. static="false" final="false" visibility="public"
  1751. deprecated="not deprecated">
  1752. <doc>
  1753. <![CDATA[Create a new instance of {@link ReconfigurationException}.]]>
  1754. </doc>
  1755. </constructor>
  1756. <constructor name="ReconfigurationException" type="java.lang.String, java.lang.String, java.lang.String"
  1757. static="false" final="false" visibility="public"
  1758. deprecated="not deprecated">
  1759. <doc>
  1760. <![CDATA[Create a new instance of {@link ReconfigurationException}.]]>
  1761. </doc>
  1762. </constructor>
  1763. <method name="getProperty" return="java.lang.String"
  1764. abstract="false" native="false" synchronized="false"
  1765. static="false" final="false" visibility="public"
  1766. deprecated="not deprecated">
  1767. <doc>
  1768. <![CDATA[Get property that cannot be changed.]]>
  1769. </doc>
  1770. </method>
  1771. <method name="getNewValue" return="java.lang.String"
  1772. abstract="false" native="false" synchronized="false"
  1773. static="false" final="false" visibility="public"
  1774. deprecated="not deprecated">
  1775. <doc>
  1776. <![CDATA[Get value to which property was supposed to be changed.]]>
  1777. </doc>
  1778. </method>
  1779. <method name="getOldValue" return="java.lang.String"
  1780. abstract="false" native="false" synchronized="false"
  1781. static="false" final="false" visibility="public"
  1782. deprecated="not deprecated">
  1783. <doc>
  1784. <![CDATA[Get old value of property that cannot be changed.]]>
  1785. </doc>
  1786. </method>
  1787. <doc>
  1788. <![CDATA[Exception indicating that configuration property cannot be changed
  1789. at run time.]]>
  1790. </doc>
  1791. </class>
  1792. <!-- end class org.apache.hadoop.conf.ReconfigurationException -->
  1793. <!-- start class org.apache.hadoop.conf.ReconfigurationServlet -->
  1794. <class name="ReconfigurationServlet" extends="javax.servlet.http.HttpServlet"
  1795. abstract="false"
  1796. static="false" final="false" visibility="public"
  1797. deprecated="not deprecated">
  1798. <constructor name="ReconfigurationServlet"
  1799. static="false" final="false" visibility="public"
  1800. deprecated="not deprecated">
  1801. </constructor>
  1802. <method name="init"
  1803. abstract="false" native="false" synchronized="false"
  1804. static="false" final="false" visibility="public"
  1805. deprecated="not deprecated">
  1806. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1807. </method>
  1808. <method name="doGet"
  1809. abstract="false" native="false" synchronized="false"
  1810. static="false" final="false" visibility="protected"
  1811. deprecated="not deprecated">
  1812. <param name="req" type="javax.servlet.http.HttpServletRequest"/>
  1813. <param name="resp" type="javax.servlet.http.HttpServletResponse"/>
  1814. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1815. <exception name="IOException" type="java.io.IOException"/>
  1816. </method>
  1817. <method name="doPost"
  1818. abstract="false" native="false" synchronized="false"
  1819. static="false" final="false" visibility="protected"
  1820. deprecated="not deprecated">
  1821. <param name="req" type="javax.servlet.http.HttpServletRequest"/>
  1822. <param name="resp" type="javax.servlet.http.HttpServletResponse"/>
  1823. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1824. <exception name="IOException" type="java.io.IOException"/>
  1825. </method>
  1826. <field name="CONF_SERVLET_RECONFIGURABLE_PREFIX" type="java.lang.String"
  1827. transient="false" volatile="false"
  1828. static="true" final="true" visibility="public"
  1829. deprecated="not deprecated">
  1830. </field>
  1831. <doc>
  1832. <![CDATA[A servlet for changing a node's configuration.
  1833. Reloads the configuration file, verifies whether changes are
  1834. possible and asks the admin to approve the change.]]>
  1835. </doc>
  1836. </class>
  1837. <!-- end class org.apache.hadoop.conf.ReconfigurationServlet -->
  1838. <!-- start class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1839. <class name="ReconfigurationTaskStatus" extends="java.lang.Object"
  1840. abstract="false"
  1841. static="false" final="false" visibility="public"
  1842. deprecated="not deprecated">
  1843. <constructor name="ReconfigurationTaskStatus" type="long, long, java.util.Map"
  1844. static="false" final="false" visibility="public"
  1845. deprecated="not deprecated">
  1846. </constructor>
  1847. <method name="hasTask" return="boolean"
  1848. abstract="false" native="false" synchronized="false"
  1849. static="false" final="false" visibility="public"
  1850. deprecated="not deprecated">
  1851. <doc>
  1852. <![CDATA[Return true if
  1853. - A reconfiguration task has finished or
  1854. - an active reconfiguration task is running]]>
  1855. </doc>
  1856. </method>
  1857. <method name="stopped" return="boolean"
  1858. abstract="false" native="false" synchronized="false"
  1859. static="false" final="false" visibility="public"
  1860. deprecated="not deprecated">
  1861. <doc>
  1862. <![CDATA[Return true if the latest reconfiguration task has finished and there is
  1863. no another active task running.]]>
  1864. </doc>
  1865. </method>
  1866. <method name="getStartTime" return="long"
  1867. abstract="false" native="false" synchronized="false"
  1868. static="false" final="false" visibility="public"
  1869. deprecated="not deprecated">
  1870. </method>
  1871. <method name="getEndTime" return="long"
  1872. abstract="false" native="false" synchronized="false"
  1873. static="false" final="false" visibility="public"
  1874. deprecated="not deprecated">
  1875. </method>
  1876. <method name="getStatus" return="java.util.Map"
  1877. abstract="false" native="false" synchronized="false"
  1878. static="false" final="true" visibility="public"
  1879. deprecated="not deprecated">
  1880. </method>
  1881. </class>
  1882. <!-- end class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1883. <!-- start class org.apache.hadoop.conf.ReconfigurationUtil -->
  1884. <class name="ReconfigurationUtil" extends="java.lang.Object"
  1885. abstract="false"
  1886. static="false" final="false" visibility="public"
  1887. deprecated="not deprecated">
  1888. <constructor name="ReconfigurationUtil"
  1889. static="false" final="false" visibility="public"
  1890. deprecated="not deprecated">
  1891. </constructor>
  1892. <method name="getChangedProperties" return="java.util.Collection"
  1893. abstract="false" native="false" synchronized="false"
  1894. static="true" final="false" visibility="public"
  1895. deprecated="not deprecated">
  1896. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  1897. <param name="oldConf" type="org.apache.hadoop.conf.Configuration"/>
  1898. </method>
  1899. <method name="parseChangedProperties" return="java.util.Collection"
  1900. abstract="false" native="false" synchronized="false"
  1901. static="false" final="false" visibility="public"
  1902. deprecated="not deprecated">
  1903. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  1904. <param name="oldConf" type="org.apache.hadoop.conf.Configuration"/>
  1905. </method>
  1906. </class>
  1907. <!-- end class org.apache.hadoop.conf.ReconfigurationUtil -->
  1908. <!-- start class org.apache.hadoop.conf.ReconfigurationUtil.PropertyChange -->
  1909. <class name="ReconfigurationUtil.PropertyChange" extends="java.lang.Object"
  1910. abstract="false"
  1911. static="true" final="false" visibility="public"
  1912. deprecated="not deprecated">
  1913. <constructor name="PropertyChange" type="java.lang.String, java.lang.String, java.lang.String"
  1914. static="false" final="false" visibility="public"
  1915. deprecated="not deprecated">
  1916. </constructor>
  1917. <field name="prop" type="java.lang.String"
  1918. transient="false" volatile="false"
  1919. static="false" final="false" visibility="public"
  1920. deprecated="not deprecated">
  1921. </field>
  1922. <field name="oldVal" type="java.lang.String"
  1923. transient="false" volatile="false"
  1924. static="false" final="false" visibility="public"
  1925. deprecated="not deprecated">
  1926. </field>
  1927. <field name="newVal" type="java.lang.String"
  1928. transient="false" volatile="false"
  1929. static="false" final="false" visibility="public"
  1930. deprecated="not deprecated">
  1931. </field>
  1932. </class>
  1933. <!-- end class org.apache.hadoop.conf.ReconfigurationUtil.PropertyChange -->
  1934. <doc>
  1935. <![CDATA[Configuration of system parameters.]]>
  1936. </doc>
  1937. </package>
  1938. <package name="org.apache.hadoop.crypto">
  1939. <!-- start class org.apache.hadoop.crypto.UnsupportedCodecException -->
  1940. <class name="UnsupportedCodecException" extends="java.lang.RuntimeException"
  1941. abstract="false"
  1942. static="false" final="false" visibility="public"
  1943. deprecated="not deprecated">
  1944. <constructor name="UnsupportedCodecException"
  1945. static="false" final="false" visibility="public"
  1946. deprecated="not deprecated">
  1947. <doc>
  1948. <![CDATA[Default constructor]]>
  1949. </doc>
  1950. </constructor>
  1951. <constructor name="UnsupportedCodecException" type="java.lang.String"
  1952. static="false" final="false" visibility="public"
  1953. deprecated="not deprecated">
  1954. <doc>
  1955. <![CDATA[Constructs an UnsupportedCodecException with the specified
  1956. detail message.
  1957. @param message the detail message]]>
  1958. </doc>
  1959. </constructor>
  1960. <constructor name="UnsupportedCodecException" type="java.lang.String, java.lang.Throwable"
  1961. static="false" final="false" visibility="public"
  1962. deprecated="not deprecated">
  1963. <doc>
  1964. <![CDATA[Constructs a new exception with the specified detail message and
  1965. cause.
  1966. @param message the detail message
  1967. @param cause the cause]]>
  1968. </doc>
  1969. </constructor>
  1970. <constructor name="UnsupportedCodecException" type="java.lang.Throwable"
  1971. static="false" final="false" visibility="public"
  1972. deprecated="not deprecated">
  1973. <doc>
  1974. <![CDATA[Constructs a new exception with the specified cause.
  1975. @param cause the cause]]>
  1976. </doc>
  1977. </constructor>
  1978. <doc>
  1979. <![CDATA[Thrown to indicate that the specific codec is not supported.]]>
  1980. </doc>
  1981. </class>
  1982. <!-- end class org.apache.hadoop.crypto.UnsupportedCodecException -->
  1983. </package>
  1984. <package name="org.apache.hadoop.crypto.key">
  1985. <!-- start class org.apache.hadoop.crypto.key.CachingKeyProvider -->
  1986. <class name="CachingKeyProvider" extends="org.apache.hadoop.crypto.key.KeyProviderExtension"
  1987. abstract="false"
  1988. static="false" final="false" visibility="public"
  1989. deprecated="not deprecated">
  1990. <constructor name="CachingKeyProvider" type="org.apache.hadoop.crypto.key.KeyProvider, long, long"
  1991. static="false" final="false" visibility="public"
  1992. deprecated="not deprecated">
  1993. </constructor>
  1994. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1995. abstract="false" native="false" synchronized="false"
  1996. static="false" final="false" visibility="public"
  1997. deprecated="not deprecated">
  1998. <param name="name" type="java.lang.String"/>
  1999. <exception name="IOException" type="java.io.IOException"/>
  2000. </method>
  2001. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2002. abstract="false" native="false" synchronized="false"
  2003. static="false" final="false" visibility="public"
  2004. deprecated="not deprecated">
  2005. <param name="versionName" type="java.lang.String"/>
  2006. <exception name="IOException" type="java.io.IOException"/>
  2007. </method>
  2008. <method name="deleteKey"
  2009. abstract="false" native="false" synchronized="false"
  2010. static="false" final="false" visibility="public"
  2011. deprecated="not deprecated">
  2012. <param name="name" type="java.lang.String"/>
  2013. <exception name="IOException" type="java.io.IOException"/>
  2014. </method>
  2015. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2016. abstract="false" native="false" synchronized="false"
  2017. static="false" final="false" visibility="public"
  2018. deprecated="not deprecated">
  2019. <param name="name" type="java.lang.String"/>
  2020. <param name="material" type="byte[]"/>
  2021. <exception name="IOException" type="java.io.IOException"/>
  2022. </method>
  2023. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2024. abstract="false" native="false" synchronized="false"
  2025. static="false" final="false" visibility="public"
  2026. deprecated="not deprecated">
  2027. <param name="name" type="java.lang.String"/>
  2028. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2029. <exception name="IOException" type="java.io.IOException"/>
  2030. </method>
  2031. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  2032. abstract="false" native="false" synchronized="false"
  2033. static="false" final="false" visibility="public"
  2034. deprecated="not deprecated">
  2035. <param name="name" type="java.lang.String"/>
  2036. <exception name="IOException" type="java.io.IOException"/>
  2037. </method>
  2038. <doc>
  2039. <![CDATA[A <code>KeyProviderExtension</code> implementation providing a short lived
  2040. cache for <code>KeyVersions</code> and <code>Metadata</code>to avoid burst
  2041. of requests to hit the underlying <code>KeyProvider</code>.]]>
  2042. </doc>
  2043. </class>
  2044. <!-- end class org.apache.hadoop.crypto.key.CachingKeyProvider -->
  2045. <!-- start class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.Factory -->
  2046. <class name="JavaKeyStoreProvider.Factory" extends="org.apache.hadoop.crypto.key.KeyProviderFactory"
  2047. abstract="false"
  2048. static="true" final="false" visibility="public"
  2049. deprecated="not deprecated">
  2050. <constructor name="Factory"
  2051. static="false" final="false" visibility="public"
  2052. deprecated="not deprecated">
  2053. </constructor>
  2054. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2055. abstract="false" native="false" synchronized="false"
  2056. static="false" final="false" visibility="public"
  2057. deprecated="not deprecated">
  2058. <param name="providerName" type="java.net.URI"/>
  2059. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2060. <exception name="IOException" type="java.io.IOException"/>
  2061. </method>
  2062. <doc>
  2063. <![CDATA[The factory to create JksProviders, which is used by the ServiceLoader.]]>
  2064. </doc>
  2065. </class>
  2066. <!-- end class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.Factory -->
  2067. <!-- start class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.KeyMetadata -->
  2068. <class name="JavaKeyStoreProvider.KeyMetadata" extends="java.lang.Object"
  2069. abstract="false"
  2070. static="true" final="false" visibility="public"
  2071. deprecated="not deprecated">
  2072. <implements name="java.security.Key"/>
  2073. <implements name="java.io.Serializable"/>
  2074. <method name="getAlgorithm" return="java.lang.String"
  2075. abstract="false" native="false" synchronized="false"
  2076. static="false" final="false" visibility="public"
  2077. deprecated="not deprecated">
  2078. </method>
  2079. <method name="getFormat" return="java.lang.String"
  2080. abstract="false" native="false" synchronized="false"
  2081. static="false" final="false" visibility="public"
  2082. deprecated="not deprecated">
  2083. </method>
  2084. <method name="getEncoded" return="byte[]"
  2085. abstract="false" native="false" synchronized="false"
  2086. static="false" final="false" visibility="public"
  2087. deprecated="not deprecated">
  2088. </method>
  2089. <doc>
  2090. <![CDATA[An adapter between a KeyStore Key and our Metadata. This is used to store
  2091. the metadata in a KeyStore even though isn't really a key.]]>
  2092. </doc>
  2093. </class>
  2094. <!-- end class org.apache.hadoop.crypto.key.JavaKeyStoreProvider.KeyMetadata -->
  2095. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  2096. <class name="KeyProvider" extends="java.lang.Object"
  2097. abstract="true"
  2098. static="false" final="false" visibility="public"
  2099. deprecated="not deprecated">
  2100. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  2101. static="false" final="false" visibility="public"
  2102. deprecated="not deprecated">
  2103. <doc>
  2104. <![CDATA[Constructor.
  2105. @param conf configuration for the provider]]>
  2106. </doc>
  2107. </constructor>
  2108. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  2109. abstract="false" native="false" synchronized="false"
  2110. static="false" final="false" visibility="public"
  2111. deprecated="not deprecated">
  2112. <doc>
  2113. <![CDATA[Return the provider configuration.
  2114. @return the provider configuration]]>
  2115. </doc>
  2116. </method>
  2117. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2118. abstract="false" native="false" synchronized="false"
  2119. static="true" final="false" visibility="public"
  2120. deprecated="not deprecated">
  2121. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2122. <doc>
  2123. <![CDATA[A helper function to create an options object.
  2124. @param conf the configuration to use
  2125. @return a new options object]]>
  2126. </doc>
  2127. </method>
  2128. <method name="isTransient" return="boolean"
  2129. abstract="false" native="false" synchronized="false"
  2130. static="false" final="false" visibility="public"
  2131. deprecated="not deprecated">
  2132. <doc>
  2133. <![CDATA[Indicates whether this provider represents a store
  2134. that is intended for transient use - such as the UserProvider
  2135. is. These providers are generally used to provide access to
  2136. keying material rather than for long term storage.
  2137. @return true if transient, false otherwise]]>
  2138. </doc>
  2139. </method>
  2140. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2141. abstract="true" native="false" synchronized="false"
  2142. static="false" final="false" visibility="public"
  2143. deprecated="not deprecated">
  2144. <param name="versionName" type="java.lang.String"/>
  2145. <exception name="IOException" type="java.io.IOException"/>
  2146. <doc>
  2147. <![CDATA[Get the key material for a specific version of the key. This method is used
  2148. when decrypting data.
  2149. @param versionName the name of a specific version of the key
  2150. @return the key material
  2151. @throws IOException]]>
  2152. </doc>
  2153. </method>
  2154. <method name="getKeys" return="java.util.List"
  2155. abstract="true" native="false" synchronized="false"
  2156. static="false" final="false" visibility="public"
  2157. deprecated="not deprecated">
  2158. <exception name="IOException" type="java.io.IOException"/>
  2159. <doc>
  2160. <![CDATA[Get the key names for all keys.
  2161. @return the list of key names
  2162. @throws IOException]]>
  2163. </doc>
  2164. </method>
  2165. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  2166. abstract="false" native="false" synchronized="false"
  2167. static="false" final="false" visibility="public"
  2168. deprecated="not deprecated">
  2169. <param name="names" type="java.lang.String[]"/>
  2170. <exception name="IOException" type="java.io.IOException"/>
  2171. <doc>
  2172. <![CDATA[Get key metadata in bulk.
  2173. @param names the names of the keys to get
  2174. @throws IOException]]>
  2175. </doc>
  2176. </method>
  2177. <method name="getKeyVersions" return="java.util.List"
  2178. abstract="true" native="false" synchronized="false"
  2179. static="false" final="false" visibility="public"
  2180. deprecated="not deprecated">
  2181. <param name="name" type="java.lang.String"/>
  2182. <exception name="IOException" type="java.io.IOException"/>
  2183. <doc>
  2184. <![CDATA[Get the key material for all versions of a specific key name.
  2185. @return the list of key material
  2186. @throws IOException]]>
  2187. </doc>
  2188. </method>
  2189. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2190. abstract="false" native="false" synchronized="false"
  2191. static="false" final="false" visibility="public"
  2192. deprecated="not deprecated">
  2193. <param name="name" type="java.lang.String"/>
  2194. <exception name="IOException" type="java.io.IOException"/>
  2195. <doc>
  2196. <![CDATA[Get the current version of the key, which should be used for encrypting new
  2197. data.
  2198. @param name the base name of the key
  2199. @return the version name of the current version of the key or null if the
  2200. key version doesn't exist
  2201. @throws IOException]]>
  2202. </doc>
  2203. </method>
  2204. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  2205. abstract="true" native="false" synchronized="false"
  2206. static="false" final="false" visibility="public"
  2207. deprecated="not deprecated">
  2208. <param name="name" type="java.lang.String"/>
  2209. <exception name="IOException" type="java.io.IOException"/>
  2210. <doc>
  2211. <![CDATA[Get metadata about the key.
  2212. @param name the basename of the key
  2213. @return the key's metadata or null if the key doesn't exist
  2214. @throws IOException]]>
  2215. </doc>
  2216. </method>
  2217. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2218. abstract="true" native="false" synchronized="false"
  2219. static="false" final="false" visibility="public"
  2220. deprecated="not deprecated">
  2221. <param name="name" type="java.lang.String"/>
  2222. <param name="material" type="byte[]"/>
  2223. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2224. <exception name="IOException" type="java.io.IOException"/>
  2225. <doc>
  2226. <![CDATA[Create a new key. The given key must not already exist.
  2227. @param name the base name of the key
  2228. @param material the key material for the first version of the key.
  2229. @param options the options for the new key.
  2230. @return the version name of the first version of the key.
  2231. @throws IOException]]>
  2232. </doc>
  2233. </method>
  2234. <method name="generateKey" return="byte[]"
  2235. abstract="false" native="false" synchronized="false"
  2236. static="false" final="false" visibility="protected"
  2237. deprecated="not deprecated">
  2238. <param name="size" type="int"/>
  2239. <param name="algorithm" type="java.lang.String"/>
  2240. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2241. <doc>
  2242. <![CDATA[Generates a key material.
  2243. @param size length of the key.
  2244. @param algorithm algorithm to use for generating the key.
  2245. @return the generated key.
  2246. @throws NoSuchAlgorithmException]]>
  2247. </doc>
  2248. </method>
  2249. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2250. abstract="false" native="false" synchronized="false"
  2251. static="false" final="false" visibility="public"
  2252. deprecated="not deprecated">
  2253. <param name="name" type="java.lang.String"/>
  2254. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2255. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2256. <exception name="IOException" type="java.io.IOException"/>
  2257. <doc>
  2258. <![CDATA[Create a new key generating the material for it.
  2259. The given key must not already exist.
  2260. <p/>
  2261. This implementation generates the key material and calls the
  2262. {@link #createKey(String, byte[], Options)} method.
  2263. @param name the base name of the key
  2264. @param options the options for the new key.
  2265. @return the version name of the first version of the key.
  2266. @throws IOException
  2267. @throws NoSuchAlgorithmException]]>
  2268. </doc>
  2269. </method>
  2270. <method name="deleteKey"
  2271. abstract="true" native="false" synchronized="false"
  2272. static="false" final="false" visibility="public"
  2273. deprecated="not deprecated">
  2274. <param name="name" type="java.lang.String"/>
  2275. <exception name="IOException" type="java.io.IOException"/>
  2276. <doc>
  2277. <![CDATA[Delete the given key.
  2278. @param name the name of the key to delete
  2279. @throws IOException]]>
  2280. </doc>
  2281. </method>
  2282. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2283. abstract="true" native="false" synchronized="false"
  2284. static="false" final="false" visibility="public"
  2285. deprecated="not deprecated">
  2286. <param name="name" type="java.lang.String"/>
  2287. <param name="material" type="byte[]"/>
  2288. <exception name="IOException" type="java.io.IOException"/>
  2289. <doc>
  2290. <![CDATA[Roll a new version of the given key.
  2291. @param name the basename of the key
  2292. @param material the new key material
  2293. @return the name of the new version of the key
  2294. @throws IOException]]>
  2295. </doc>
  2296. </method>
  2297. <method name="close"
  2298. abstract="false" native="false" synchronized="false"
  2299. static="false" final="false" visibility="public"
  2300. deprecated="not deprecated">
  2301. <exception name="IOException" type="java.io.IOException"/>
  2302. <doc>
  2303. <![CDATA[Can be used by implementing classes to close any resources
  2304. that require closing]]>
  2305. </doc>
  2306. </method>
  2307. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2308. abstract="false" native="false" synchronized="false"
  2309. static="false" final="false" visibility="public"
  2310. deprecated="not deprecated">
  2311. <param name="name" type="java.lang.String"/>
  2312. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2313. <exception name="IOException" type="java.io.IOException"/>
  2314. <doc>
  2315. <![CDATA[Roll a new version of the given key generating the material for it.
  2316. <p/>
  2317. This implementation generates the key material and calls the
  2318. {@link #rollNewVersion(String, byte[])} method.
  2319. @param name the basename of the key
  2320. @return the name of the new version of the key
  2321. @throws IOException]]>
  2322. </doc>
  2323. </method>
  2324. <method name="flush"
  2325. abstract="true" native="false" synchronized="false"
  2326. static="false" final="false" visibility="public"
  2327. deprecated="not deprecated">
  2328. <exception name="IOException" type="java.io.IOException"/>
  2329. <doc>
  2330. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  2331. @throws IOException]]>
  2332. </doc>
  2333. </method>
  2334. <method name="getBaseName" return="java.lang.String"
  2335. abstract="false" native="false" synchronized="false"
  2336. static="true" final="false" visibility="public"
  2337. deprecated="not deprecated">
  2338. <param name="versionName" type="java.lang.String"/>
  2339. <exception name="IOException" type="java.io.IOException"/>
  2340. <doc>
  2341. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  2342. "/aaa/bbb".
  2343. @param versionName the version name to split
  2344. @return the base name of the key
  2345. @throws IOException]]>
  2346. </doc>
  2347. </method>
  2348. <method name="buildVersionName" return="java.lang.String"
  2349. abstract="false" native="false" synchronized="false"
  2350. static="true" final="false" visibility="protected"
  2351. deprecated="not deprecated">
  2352. <param name="name" type="java.lang.String"/>
  2353. <param name="version" type="int"/>
  2354. <doc>
  2355. <![CDATA[Build a version string from a basename and version number. Converts
  2356. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  2357. @param name the basename of the key
  2358. @param version the version of the key
  2359. @return the versionName of the key.]]>
  2360. </doc>
  2361. </method>
  2362. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2363. abstract="false" native="false" synchronized="false"
  2364. static="true" final="false" visibility="public"
  2365. deprecated="not deprecated">
  2366. <param name="providerList" type="java.util.List"/>
  2367. <param name="keyName" type="java.lang.String"/>
  2368. <exception name="IOException" type="java.io.IOException"/>
  2369. <doc>
  2370. <![CDATA[Find the provider with the given key.
  2371. @param providerList the list of providers
  2372. @param keyName the key name we are looking for
  2373. @return the KeyProvider that has the key]]>
  2374. </doc>
  2375. </method>
  2376. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2377. transient="false" volatile="false"
  2378. static="true" final="true" visibility="public"
  2379. deprecated="not deprecated">
  2380. </field>
  2381. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2382. transient="false" volatile="false"
  2383. static="true" final="true" visibility="public"
  2384. deprecated="not deprecated">
  2385. </field>
  2386. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2387. transient="false" volatile="false"
  2388. static="true" final="true" visibility="public"
  2389. deprecated="not deprecated">
  2390. </field>
  2391. <field name="DEFAULT_BITLENGTH" type="int"
  2392. transient="false" volatile="false"
  2393. static="true" final="true" visibility="public"
  2394. deprecated="not deprecated">
  2395. </field>
  2396. <doc>
  2397. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2398. abstraction to separate key storage from users of encryption. It
  2399. is intended to support getting or storing keys in a variety of ways,
  2400. including third party bindings.
  2401. <P/>
  2402. <code>KeyProvider</code> implementations must be thread safe.]]>
  2403. </doc>
  2404. </class>
  2405. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2406. <!-- start class org.apache.hadoop.crypto.key.KeyProvider.KeyVersion -->
  2407. <class name="KeyProvider.KeyVersion" extends="java.lang.Object"
  2408. abstract="false"
  2409. static="true" final="false" visibility="public"
  2410. deprecated="not deprecated">
  2411. <constructor name="KeyVersion" type="java.lang.String, java.lang.String, byte[]"
  2412. static="false" final="false" visibility="protected"
  2413. deprecated="not deprecated">
  2414. </constructor>
  2415. <method name="getName" return="java.lang.String"
  2416. abstract="false" native="false" synchronized="false"
  2417. static="false" final="false" visibility="public"
  2418. deprecated="not deprecated">
  2419. </method>
  2420. <method name="getVersionName" return="java.lang.String"
  2421. abstract="false" native="false" synchronized="false"
  2422. static="false" final="false" visibility="public"
  2423. deprecated="not deprecated">
  2424. </method>
  2425. <method name="getMaterial" return="byte[]"
  2426. abstract="false" native="false" synchronized="false"
  2427. static="false" final="false" visibility="public"
  2428. deprecated="not deprecated">
  2429. </method>
  2430. <method name="toString" return="java.lang.String"
  2431. abstract="false" native="false" synchronized="false"
  2432. static="false" final="false" visibility="public"
  2433. deprecated="not deprecated">
  2434. </method>
  2435. <doc>
  2436. <![CDATA[The combination of both the key version name and the key material.]]>
  2437. </doc>
  2438. </class>
  2439. <!-- end class org.apache.hadoop.crypto.key.KeyProvider.KeyVersion -->
  2440. <!-- start class org.apache.hadoop.crypto.key.KeyProvider.Metadata -->
  2441. <class name="KeyProvider.Metadata" extends="java.lang.Object"
  2442. abstract="false"
  2443. static="true" final="false" visibility="public"
  2444. deprecated="not deprecated">
  2445. <constructor name="Metadata" type="java.lang.String, int, java.lang.String, java.util.Map, java.util.Date, int"
  2446. static="false" final="false" visibility="protected"
  2447. deprecated="not deprecated">
  2448. </constructor>
  2449. <constructor name="Metadata" type="byte[]"
  2450. static="false" final="false" visibility="protected"
  2451. deprecated="not deprecated">
  2452. <exception name="IOException" type="java.io.IOException"/>
  2453. <doc>
  2454. <![CDATA[Deserialize a new metadata object from a set of bytes.
  2455. @param bytes the serialized metadata
  2456. @throws IOException]]>
  2457. </doc>
  2458. </constructor>
  2459. <method name="toString" return="java.lang.String"
  2460. abstract="false" native="false" synchronized="false"
  2461. static="false" final="false" visibility="public"
  2462. deprecated="not deprecated">
  2463. </method>
  2464. <method name="getDescription" return="java.lang.String"
  2465. abstract="false" native="false" synchronized="false"
  2466. static="false" final="false" visibility="public"
  2467. deprecated="not deprecated">
  2468. </method>
  2469. <method name="getCreated" return="java.util.Date"
  2470. abstract="false" native="false" synchronized="false"
  2471. static="false" final="false" visibility="public"
  2472. deprecated="not deprecated">
  2473. </method>
  2474. <method name="getCipher" return="java.lang.String"
  2475. abstract="false" native="false" synchronized="false"
  2476. static="false" final="false" visibility="public"
  2477. deprecated="not deprecated">
  2478. </method>
  2479. <method name="getAttributes" return="java.util.Map"
  2480. abstract="false" native="false" synchronized="false"
  2481. static="false" final="false" visibility="public"
  2482. deprecated="not deprecated">
  2483. </method>
  2484. <method name="getAlgorithm" return="java.lang.String"
  2485. abstract="false" native="false" synchronized="false"
  2486. static="false" final="false" visibility="public"
  2487. deprecated="not deprecated">
  2488. <doc>
  2489. <![CDATA[Get the algorithm from the cipher.
  2490. @return the algorithm name]]>
  2491. </doc>
  2492. </method>
  2493. <method name="getBitLength" return="int"
  2494. abstract="false" native="false" synchronized="false"
  2495. static="false" final="false" visibility="public"
  2496. deprecated="not deprecated">
  2497. </method>
  2498. <method name="getVersions" return="int"
  2499. abstract="false" native="false" synchronized="false"
  2500. static="false" final="false" visibility="public"
  2501. deprecated="not deprecated">
  2502. </method>
  2503. <method name="addVersion" return="int"
  2504. abstract="false" native="false" synchronized="false"
  2505. static="false" final="false" visibility="protected"
  2506. deprecated="not deprecated">
  2507. </method>
  2508. <method name="serialize" return="byte[]"
  2509. abstract="false" native="false" synchronized="false"
  2510. static="false" final="false" visibility="protected"
  2511. deprecated="not deprecated">
  2512. <exception name="IOException" type="java.io.IOException"/>
  2513. <doc>
  2514. <![CDATA[Serialize the metadata to a set of bytes.
  2515. @return the serialized bytes
  2516. @throws IOException]]>
  2517. </doc>
  2518. </method>
  2519. <doc>
  2520. <![CDATA[Key metadata that is associated with the key.]]>
  2521. </doc>
  2522. </class>
  2523. <!-- end class org.apache.hadoop.crypto.key.KeyProvider.Metadata -->
  2524. <!-- start class org.apache.hadoop.crypto.key.KeyProvider.Options -->
  2525. <class name="KeyProvider.Options" extends="java.lang.Object"
  2526. abstract="false"
  2527. static="true" final="false" visibility="public"
  2528. deprecated="not deprecated">
  2529. <constructor name="Options" type="org.apache.hadoop.conf.Configuration"
  2530. static="false" final="false" visibility="public"
  2531. deprecated="not deprecated">
  2532. </constructor>
  2533. <method name="setCipher" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2534. abstract="false" native="false" synchronized="false"
  2535. static="false" final="false" visibility="public"
  2536. deprecated="not deprecated">
  2537. <param name="cipher" type="java.lang.String"/>
  2538. </method>
  2539. <method name="setBitLength" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2540. abstract="false" native="false" synchronized="false"
  2541. static="false" final="false" visibility="public"
  2542. deprecated="not deprecated">
  2543. <param name="bitLength" type="int"/>
  2544. </method>
  2545. <method name="setDescription" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2546. abstract="false" native="false" synchronized="false"
  2547. static="false" final="false" visibility="public"
  2548. deprecated="not deprecated">
  2549. <param name="description" type="java.lang.String"/>
  2550. </method>
  2551. <method name="setAttributes" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  2552. abstract="false" native="false" synchronized="false"
  2553. static="false" final="false" visibility="public"
  2554. deprecated="not deprecated">
  2555. <param name="attributes" type="java.util.Map"/>
  2556. </method>
  2557. <method name="getCipher" return="java.lang.String"
  2558. abstract="false" native="false" synchronized="false"
  2559. static="false" final="false" visibility="public"
  2560. deprecated="not deprecated">
  2561. </method>
  2562. <method name="getBitLength" return="int"
  2563. abstract="false" native="false" synchronized="false"
  2564. static="false" final="false" visibility="public"
  2565. deprecated="not deprecated">
  2566. </method>
  2567. <method name="getDescription" return="java.lang.String"
  2568. abstract="false" native="false" synchronized="false"
  2569. static="false" final="false" visibility="public"
  2570. deprecated="not deprecated">
  2571. </method>
  2572. <method name="getAttributes" return="java.util.Map"
  2573. abstract="false" native="false" synchronized="false"
  2574. static="false" final="false" visibility="public"
  2575. deprecated="not deprecated">
  2576. </method>
  2577. <method name="toString" return="java.lang.String"
  2578. abstract="false" native="false" synchronized="false"
  2579. static="false" final="false" visibility="public"
  2580. deprecated="not deprecated">
  2581. </method>
  2582. <doc>
  2583. <![CDATA[Options when creating key objects.]]>
  2584. </doc>
  2585. </class>
  2586. <!-- end class org.apache.hadoop.crypto.key.KeyProvider.Options -->
  2587. <!-- start interface org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.CryptoExtension -->
  2588. <interface name="KeyProviderCryptoExtension.CryptoExtension" abstract="true"
  2589. static="true" final="false" visibility="public"
  2590. deprecated="not deprecated">
  2591. <implements name="org.apache.hadoop.crypto.key.KeyProviderExtension.Extension"/>
  2592. <method name="warmUpEncryptedKeys"
  2593. abstract="true" native="false" synchronized="false"
  2594. static="false" final="false" visibility="public"
  2595. deprecated="not deprecated">
  2596. <param name="keyNames" type="java.lang.String[]"/>
  2597. <exception name="IOException" type="java.io.IOException"/>
  2598. <doc>
  2599. <![CDATA[Calls to this method allows the underlying KeyProvider to warm-up any
  2600. implementation specific caches used to store the Encrypted Keys.
  2601. @param keyNames Array of Key Names]]>
  2602. </doc>
  2603. </method>
  2604. <method name="drain"
  2605. abstract="true" native="false" synchronized="false"
  2606. static="false" final="false" visibility="public"
  2607. deprecated="not deprecated">
  2608. <param name="keyName" type="java.lang.String"/>
  2609. <doc>
  2610. <![CDATA[Drains the Queue for the provided key.
  2611. @param keyName the key to drain the Queue for]]>
  2612. </doc>
  2613. </method>
  2614. <method name="generateEncryptedKey" return="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"
  2615. abstract="true" native="false" synchronized="false"
  2616. static="false" final="false" visibility="public"
  2617. deprecated="not deprecated">
  2618. <param name="encryptionKeyName" type="java.lang.String"/>
  2619. <exception name="IOException" type="java.io.IOException"/>
  2620. <exception name="GeneralSecurityException" type="java.security.GeneralSecurityException"/>
  2621. <doc>
  2622. <![CDATA[Generates a key material and encrypts it using the given key version name
  2623. and initialization vector. The generated key material is of the same
  2624. length as the <code>KeyVersion</code> material of the latest key version
  2625. of the key and is encrypted using the same cipher.
  2626. <p/>
  2627. NOTE: The generated key is not stored by the <code>KeyProvider</code>
  2628. @param encryptionKeyName
  2629. The latest KeyVersion of this key's material will be encrypted.
  2630. @return EncryptedKeyVersion with the generated key material, the version
  2631. name is 'EEK' (for Encrypted Encryption Key)
  2632. @throws IOException
  2633. thrown if the key material could not be generated
  2634. @throws GeneralSecurityException
  2635. thrown if the key material could not be encrypted because of a
  2636. cryptographic issue.]]>
  2637. </doc>
  2638. </method>
  2639. <method name="decryptEncryptedKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2640. abstract="true" native="false" synchronized="false"
  2641. static="false" final="false" visibility="public"
  2642. deprecated="not deprecated">
  2643. <param name="encryptedKeyVersion" type="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"/>
  2644. <exception name="IOException" type="java.io.IOException"/>
  2645. <exception name="GeneralSecurityException" type="java.security.GeneralSecurityException"/>
  2646. <doc>
  2647. <![CDATA[Decrypts an encrypted byte[] key material using the given a key version
  2648. name and initialization vector.
  2649. @param encryptedKeyVersion
  2650. contains keyVersionName and IV to decrypt the encrypted key
  2651. material
  2652. @return a KeyVersion with the decrypted key material, the version name is
  2653. 'EK' (For Encryption Key)
  2654. @throws IOException
  2655. thrown if the key material could not be decrypted
  2656. @throws GeneralSecurityException
  2657. thrown if the key material could not be decrypted because of a
  2658. cryptographic issue.]]>
  2659. </doc>
  2660. </method>
  2661. <doc>
  2662. <![CDATA[CryptoExtension is a type of Extension that exposes methods to generate
  2663. EncryptedKeys and to decrypt the same.]]>
  2664. </doc>
  2665. </interface>
  2666. <!-- end interface org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.CryptoExtension -->
  2667. <!-- start class org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion -->
  2668. <class name="KeyProviderCryptoExtension.EncryptedKeyVersion" extends="java.lang.Object"
  2669. abstract="false"
  2670. static="true" final="false" visibility="public"
  2671. deprecated="not deprecated">
  2672. <constructor name="EncryptedKeyVersion" type="java.lang.String, java.lang.String, byte[], org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2673. static="false" final="false" visibility="protected"
  2674. deprecated="not deprecated">
  2675. <doc>
  2676. <![CDATA[Create a new EncryptedKeyVersion.
  2677. @param keyName Name of the encryption key used to
  2678. encrypt the encrypted key.
  2679. @param encryptionKeyVersionName Version name of the encryption key used
  2680. to encrypt the encrypted key.
  2681. @param encryptedKeyIv Initialization vector of the encrypted
  2682. key. The IV of the encryption key used to
  2683. encrypt the encrypted key is derived from
  2684. this IV.
  2685. @param encryptedKeyVersion The encrypted encryption key version.]]>
  2686. </doc>
  2687. </constructor>
  2688. <method name="createForDecryption" return="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"
  2689. abstract="false" native="false" synchronized="false"
  2690. static="true" final="false" visibility="public"
  2691. deprecated="not deprecated">
  2692. <param name="keyName" type="java.lang.String"/>
  2693. <param name="encryptionKeyVersionName" type="java.lang.String"/>
  2694. <param name="encryptedKeyIv" type="byte[]"/>
  2695. <param name="encryptedKeyMaterial" type="byte[]"/>
  2696. <doc>
  2697. <![CDATA[Factory method to create a new EncryptedKeyVersion that can then be
  2698. passed into {@link #decryptEncryptedKey}. Note that the fields of the
  2699. returned EncryptedKeyVersion will only partially be populated; it is not
  2700. necessarily suitable for operations besides decryption.
  2701. @param keyName Key name of the encryption key use to encrypt the
  2702. encrypted key.
  2703. @param encryptionKeyVersionName Version name of the encryption key used
  2704. to encrypt the encrypted key.
  2705. @param encryptedKeyIv Initialization vector of the encrypted
  2706. key. The IV of the encryption key used to
  2707. encrypt the encrypted key is derived from
  2708. this IV.
  2709. @param encryptedKeyMaterial Key material of the encrypted key.
  2710. @return EncryptedKeyVersion suitable for decryption.]]>
  2711. </doc>
  2712. </method>
  2713. <method name="getEncryptionKeyName" return="java.lang.String"
  2714. abstract="false" native="false" synchronized="false"
  2715. static="false" final="false" visibility="public"
  2716. deprecated="not deprecated">
  2717. <doc>
  2718. <![CDATA[@return Name of the encryption key used to encrypt the encrypted key.]]>
  2719. </doc>
  2720. </method>
  2721. <method name="getEncryptionKeyVersionName" return="java.lang.String"
  2722. abstract="false" native="false" synchronized="false"
  2723. static="false" final="false" visibility="public"
  2724. deprecated="not deprecated">
  2725. <doc>
  2726. <![CDATA[@return Version name of the encryption key used to encrypt the encrypted
  2727. key.]]>
  2728. </doc>
  2729. </method>
  2730. <method name="getEncryptedKeyIv" return="byte[]"
  2731. abstract="false" native="false" synchronized="false"
  2732. static="false" final="false" visibility="public"
  2733. deprecated="not deprecated">
  2734. <doc>
  2735. <![CDATA[@return Initialization vector of the encrypted key. The IV of the
  2736. encryption key used to encrypt the encrypted key is derived from this
  2737. IV.]]>
  2738. </doc>
  2739. </method>
  2740. <method name="getEncryptedKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2741. abstract="false" native="false" synchronized="false"
  2742. static="false" final="false" visibility="public"
  2743. deprecated="not deprecated">
  2744. <doc>
  2745. <![CDATA[@return The encrypted encryption key version.]]>
  2746. </doc>
  2747. </method>
  2748. <method name="deriveIV" return="byte[]"
  2749. abstract="false" native="false" synchronized="false"
  2750. static="true" final="false" visibility="protected"
  2751. deprecated="not deprecated">
  2752. <param name="encryptedKeyIV" type="byte[]"/>
  2753. <doc>
  2754. <![CDATA[Derive the initialization vector (IV) for the encryption key from the IV
  2755. of the encrypted key. This derived IV is used with the encryption key to
  2756. decrypt the encrypted key.
  2757. <p/>
  2758. The alternative to this is using the same IV for both the encryption key
  2759. and the encrypted key. Even a simple symmetric transformation like this
  2760. improves security by avoiding IV re-use. IVs will also be fairly unique
  2761. among different EEKs.
  2762. @param encryptedKeyIV of the encrypted key (i.e. {@link
  2763. #getEncryptedKeyIv()})
  2764. @return IV for the encryption key]]>
  2765. </doc>
  2766. </method>
  2767. <doc>
  2768. <![CDATA[An encrypted encryption key (EEK) and related information. An EEK must be
  2769. decrypted using the key's encryption key before it can be used.]]>
  2770. </doc>
  2771. </class>
  2772. <!-- end class org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion -->
  2773. <!-- start class org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension -->
  2774. <class name="KeyProviderDelegationTokenExtension" extends="org.apache.hadoop.crypto.key.KeyProviderExtension"
  2775. abstract="false"
  2776. static="false" final="false" visibility="public"
  2777. deprecated="not deprecated">
  2778. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  2779. abstract="false" native="false" synchronized="false"
  2780. static="false" final="false" visibility="public"
  2781. deprecated="not deprecated">
  2782. <param name="renewer" type="java.lang.String"/>
  2783. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  2784. <exception name="IOException" type="java.io.IOException"/>
  2785. <doc>
  2786. <![CDATA[Passes the renewer and Credentials object to the underlying
  2787. {@link DelegationTokenExtension}
  2788. @param renewer the user allowed to renew the delegation tokens
  2789. @param credentials cache in which to add new delegation tokens
  2790. @return list of new delegation tokens
  2791. @throws IOException thrown if IOException if an IO error occurs.]]>
  2792. </doc>
  2793. </method>
  2794. <method name="createKeyProviderDelegationTokenExtension" return="org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension"
  2795. abstract="false" native="false" synchronized="false"
  2796. static="true" final="false" visibility="public"
  2797. deprecated="not deprecated">
  2798. <param name="keyProvider" type="org.apache.hadoop.crypto.key.KeyProvider"/>
  2799. <doc>
  2800. <![CDATA[Creates a <code>KeyProviderDelegationTokenExtension</code> using a given
  2801. {@link KeyProvider}.
  2802. <p/>
  2803. If the given <code>KeyProvider</code> implements the
  2804. {@link DelegationTokenExtension} interface the <code>KeyProvider</code>
  2805. itself will provide the extension functionality, otherwise a default
  2806. extension implementation will be used.
  2807. @param keyProvider <code>KeyProvider</code> to use to create the
  2808. <code>KeyProviderDelegationTokenExtension</code> extension.
  2809. @return a <code>KeyProviderDelegationTokenExtension</code> instance
  2810. using the given <code>KeyProvider</code>.]]>
  2811. </doc>
  2812. </method>
  2813. <doc>
  2814. <![CDATA[A KeyProvider extension with the ability to add a renewer's Delegation
  2815. Tokens to the provided Credentials.]]>
  2816. </doc>
  2817. </class>
  2818. <!-- end class org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension -->
  2819. <!-- start interface org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension.DelegationTokenExtension -->
  2820. <interface name="KeyProviderDelegationTokenExtension.DelegationTokenExtension" abstract="true"
  2821. static="true" final="false" visibility="public"
  2822. deprecated="not deprecated">
  2823. <implements name="org.apache.hadoop.crypto.key.KeyProviderExtension.Extension"/>
  2824. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  2825. abstract="true" native="false" synchronized="false"
  2826. static="false" final="false" visibility="public"
  2827. deprecated="not deprecated">
  2828. <param name="renewer" type="java.lang.String"/>
  2829. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  2830. <exception name="IOException" type="java.io.IOException"/>
  2831. <doc>
  2832. <![CDATA[The implementer of this class will take a renewer and add all
  2833. delegation tokens associated with the renewer to the
  2834. <code>Credentials</code> object if it is not already present,
  2835. @param renewer the user allowed to renew the delegation tokens
  2836. @param credentials cache in which to add new delegation tokens
  2837. @return list of new delegation tokens
  2838. @throws IOException thrown if IOException if an IO error occurs.]]>
  2839. </doc>
  2840. </method>
  2841. <doc>
  2842. <![CDATA[DelegationTokenExtension is a type of Extension that exposes methods to
  2843. needed to work with Delegation Tokens.]]>
  2844. </doc>
  2845. </interface>
  2846. <!-- end interface org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension.DelegationTokenExtension -->
  2847. <!-- start class org.apache.hadoop.crypto.key.KeyProviderExtension -->
  2848. <class name="KeyProviderExtension" extends="org.apache.hadoop.crypto.key.KeyProvider"
  2849. abstract="true"
  2850. static="false" final="false" visibility="public"
  2851. deprecated="not deprecated">
  2852. <constructor name="KeyProviderExtension" type="org.apache.hadoop.crypto.key.KeyProvider, E"
  2853. static="false" final="false" visibility="public"
  2854. deprecated="not deprecated">
  2855. </constructor>
  2856. <method name="getExtension" return="E"
  2857. abstract="false" native="false" synchronized="false"
  2858. static="false" final="false" visibility="protected"
  2859. deprecated="not deprecated">
  2860. </method>
  2861. <method name="getKeyProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2862. abstract="false" native="false" synchronized="false"
  2863. static="false" final="false" visibility="protected"
  2864. deprecated="not deprecated">
  2865. </method>
  2866. <method name="isTransient" return="boolean"
  2867. abstract="false" native="false" synchronized="false"
  2868. static="false" final="false" visibility="public"
  2869. deprecated="not deprecated">
  2870. </method>
  2871. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  2872. abstract="false" native="false" synchronized="false"
  2873. static="false" final="false" visibility="public"
  2874. deprecated="not deprecated">
  2875. <param name="names" type="java.lang.String[]"/>
  2876. <exception name="IOException" type="java.io.IOException"/>
  2877. </method>
  2878. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2879. abstract="false" native="false" synchronized="false"
  2880. static="false" final="false" visibility="public"
  2881. deprecated="not deprecated">
  2882. <param name="name" type="java.lang.String"/>
  2883. <exception name="IOException" type="java.io.IOException"/>
  2884. </method>
  2885. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2886. abstract="false" native="false" synchronized="false"
  2887. static="false" final="false" visibility="public"
  2888. deprecated="not deprecated">
  2889. <param name="name" type="java.lang.String"/>
  2890. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2891. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2892. <exception name="IOException" type="java.io.IOException"/>
  2893. </method>
  2894. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2895. abstract="false" native="false" synchronized="false"
  2896. static="false" final="false" visibility="public"
  2897. deprecated="not deprecated">
  2898. <param name="name" type="java.lang.String"/>
  2899. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  2900. <exception name="IOException" type="java.io.IOException"/>
  2901. </method>
  2902. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2903. abstract="false" native="false" synchronized="false"
  2904. static="false" final="false" visibility="public"
  2905. deprecated="not deprecated">
  2906. <param name="versionName" type="java.lang.String"/>
  2907. <exception name="IOException" type="java.io.IOException"/>
  2908. </method>
  2909. <method name="getKeys" return="java.util.List"
  2910. abstract="false" native="false" synchronized="false"
  2911. static="false" final="false" visibility="public"
  2912. deprecated="not deprecated">
  2913. <exception name="IOException" type="java.io.IOException"/>
  2914. </method>
  2915. <method name="getKeyVersions" return="java.util.List"
  2916. abstract="false" native="false" synchronized="false"
  2917. static="false" final="false" visibility="public"
  2918. deprecated="not deprecated">
  2919. <param name="name" type="java.lang.String"/>
  2920. <exception name="IOException" type="java.io.IOException"/>
  2921. </method>
  2922. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  2923. abstract="false" native="false" synchronized="false"
  2924. static="false" final="false" visibility="public"
  2925. deprecated="not deprecated">
  2926. <param name="name" type="java.lang.String"/>
  2927. <exception name="IOException" type="java.io.IOException"/>
  2928. </method>
  2929. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2930. abstract="false" native="false" synchronized="false"
  2931. static="false" final="false" visibility="public"
  2932. deprecated="not deprecated">
  2933. <param name="name" type="java.lang.String"/>
  2934. <param name="material" type="byte[]"/>
  2935. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  2936. <exception name="IOException" type="java.io.IOException"/>
  2937. </method>
  2938. <method name="deleteKey"
  2939. abstract="false" native="false" synchronized="false"
  2940. static="false" final="false" visibility="public"
  2941. deprecated="not deprecated">
  2942. <param name="name" type="java.lang.String"/>
  2943. <exception name="IOException" type="java.io.IOException"/>
  2944. </method>
  2945. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  2946. abstract="false" native="false" synchronized="false"
  2947. static="false" final="false" visibility="public"
  2948. deprecated="not deprecated">
  2949. <param name="name" type="java.lang.String"/>
  2950. <param name="material" type="byte[]"/>
  2951. <exception name="IOException" type="java.io.IOException"/>
  2952. </method>
  2953. <method name="flush"
  2954. abstract="false" native="false" synchronized="false"
  2955. static="false" final="false" visibility="public"
  2956. deprecated="not deprecated">
  2957. <exception name="IOException" type="java.io.IOException"/>
  2958. </method>
  2959. <method name="toString" return="java.lang.String"
  2960. abstract="false" native="false" synchronized="false"
  2961. static="false" final="false" visibility="public"
  2962. deprecated="not deprecated">
  2963. </method>
  2964. <doc>
  2965. <![CDATA[This is a utility class used to extend the functionality of KeyProvider, that
  2966. takes a KeyProvider and an Extension. It implements all the required methods
  2967. of the KeyProvider by delegating it to the provided KeyProvider.]]>
  2968. </doc>
  2969. </class>
  2970. <!-- end class org.apache.hadoop.crypto.key.KeyProviderExtension -->
  2971. <!-- start interface org.apache.hadoop.crypto.key.KeyProviderExtension.Extension -->
  2972. <interface name="KeyProviderExtension.Extension" abstract="true"
  2973. static="true" final="false" visibility="public"
  2974. deprecated="not deprecated">
  2975. <doc>
  2976. <![CDATA[A marker interface for the KeyProviderExtension subclass implement.]]>
  2977. </doc>
  2978. </interface>
  2979. <!-- end interface org.apache.hadoop.crypto.key.KeyProviderExtension.Extension -->
  2980. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2981. <class name="KeyProviderFactory" extends="java.lang.Object"
  2982. abstract="true"
  2983. static="false" final="false" visibility="public"
  2984. deprecated="not deprecated">
  2985. <constructor name="KeyProviderFactory"
  2986. static="false" final="false" visibility="public"
  2987. deprecated="not deprecated">
  2988. </constructor>
  2989. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2990. abstract="true" native="false" synchronized="false"
  2991. static="false" final="false" visibility="public"
  2992. deprecated="not deprecated">
  2993. <param name="providerName" type="java.net.URI"/>
  2994. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2995. <exception name="IOException" type="java.io.IOException"/>
  2996. </method>
  2997. <method name="getProviders" return="java.util.List"
  2998. abstract="false" native="false" synchronized="false"
  2999. static="true" final="false" visibility="public"
  3000. deprecated="not deprecated">
  3001. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3002. <exception name="IOException" type="java.io.IOException"/>
  3003. </method>
  3004. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  3005. abstract="false" native="false" synchronized="false"
  3006. static="true" final="false" visibility="public"
  3007. deprecated="not deprecated">
  3008. <param name="uri" type="java.net.URI"/>
  3009. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3010. <exception name="IOException" type="java.io.IOException"/>
  3011. <doc>
  3012. <![CDATA[Create a KeyProvider based on a provided URI.
  3013. @param uri key provider URI
  3014. @param conf configuration to initialize the key provider
  3015. @return the key provider for the specified URI, or <code>NULL</code> if
  3016. a provider for the specified URI scheme could not be found.
  3017. @throws IOException thrown if the provider failed to initialize.]]>
  3018. </doc>
  3019. </method>
  3020. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  3021. transient="false" volatile="false"
  3022. static="true" final="true" visibility="public"
  3023. deprecated="not deprecated">
  3024. </field>
  3025. <doc>
  3026. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  3027. Configuration. It uses a service loader interface to find the available
  3028. KeyProviders and create them based on the list of URIs.]]>
  3029. </doc>
  3030. </class>
  3031. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  3032. <!-- start class org.apache.hadoop.crypto.key.KeyShell -->
  3033. <class name="KeyShell" extends="org.apache.hadoop.conf.Configured"
  3034. abstract="false"
  3035. static="false" final="false" visibility="public"
  3036. deprecated="not deprecated">
  3037. <implements name="org.apache.hadoop.util.Tool"/>
  3038. <constructor name="KeyShell"
  3039. static="false" final="false" visibility="public"
  3040. deprecated="not deprecated">
  3041. </constructor>
  3042. <method name="run" return="int"
  3043. abstract="false" native="false" synchronized="false"
  3044. static="false" final="false" visibility="public"
  3045. deprecated="not deprecated">
  3046. <param name="args" type="java.lang.String[]"/>
  3047. <exception name="Exception" type="java.lang.Exception"/>
  3048. <doc>
  3049. <![CDATA[Primary entry point for the KeyShell; called via main().
  3050. @param args Command line arguments.
  3051. @return 0 on success and 1 on failure. This value is passed back to
  3052. the unix shell, so we must follow shell return code conventions:
  3053. the return code is an unsigned character, and 0 means success, and
  3054. small positive integers mean failure.
  3055. @throws Exception]]>
  3056. </doc>
  3057. </method>
  3058. <method name="main"
  3059. abstract="false" native="false" synchronized="false"
  3060. static="true" final="false" visibility="public"
  3061. deprecated="not deprecated">
  3062. <param name="args" type="java.lang.String[]"/>
  3063. <exception name="Exception" type="java.lang.Exception"/>
  3064. <doc>
  3065. <![CDATA[main() entry point for the KeyShell. While strictly speaking the
  3066. return is void, it will System.exit() with a return code: 0 is for
  3067. success and 1 for failure.
  3068. @param args Command line arguments.
  3069. @throws Exception]]>
  3070. </doc>
  3071. </method>
  3072. <field name="out" type="java.io.PrintStream"
  3073. transient="false" volatile="false"
  3074. static="false" final="false" visibility="public"
  3075. deprecated="not deprecated">
  3076. <doc>
  3077. <![CDATA[allows stdout to be captured if necessary]]>
  3078. </doc>
  3079. </field>
  3080. <field name="err" type="java.io.PrintStream"
  3081. transient="false" volatile="false"
  3082. static="false" final="false" visibility="public"
  3083. deprecated="not deprecated">
  3084. <doc>
  3085. <![CDATA[allows stderr to be captured if necessary]]>
  3086. </doc>
  3087. </field>
  3088. <doc>
  3089. <![CDATA[This program is the CLI utility for the KeyProvider facilities in Hadoop.]]>
  3090. </doc>
  3091. </class>
  3092. <!-- end class org.apache.hadoop.crypto.key.KeyShell -->
  3093. <!-- start class org.apache.hadoop.crypto.key.UserProvider.Factory -->
  3094. <class name="UserProvider.Factory" extends="org.apache.hadoop.crypto.key.KeyProviderFactory"
  3095. abstract="false"
  3096. static="true" final="false" visibility="public"
  3097. deprecated="not deprecated">
  3098. <constructor name="Factory"
  3099. static="false" final="false" visibility="public"
  3100. deprecated="not deprecated">
  3101. </constructor>
  3102. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  3103. abstract="false" native="false" synchronized="false"
  3104. static="false" final="false" visibility="public"
  3105. deprecated="not deprecated">
  3106. <param name="providerName" type="java.net.URI"/>
  3107. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3108. <exception name="IOException" type="java.io.IOException"/>
  3109. </method>
  3110. </class>
  3111. <!-- end class org.apache.hadoop.crypto.key.UserProvider.Factory -->
  3112. </package>
  3113. <package name="org.apache.hadoop.crypto.key.kms">
  3114. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.Factory -->
  3115. <class name="KMSClientProvider.Factory" extends="org.apache.hadoop.crypto.key.KeyProviderFactory"
  3116. abstract="false"
  3117. static="true" final="false" visibility="public"
  3118. deprecated="not deprecated">
  3119. <constructor name="Factory"
  3120. static="false" final="false" visibility="public"
  3121. deprecated="not deprecated">
  3122. </constructor>
  3123. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  3124. abstract="false" native="false" synchronized="false"
  3125. static="false" final="false" visibility="public"
  3126. deprecated="not deprecated">
  3127. <param name="providerUri" type="java.net.URI"/>
  3128. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3129. <exception name="IOException" type="java.io.IOException"/>
  3130. <doc>
  3131. <![CDATA[This provider expects URIs in the following form :
  3132. kms://<PROTO>@<AUTHORITY>/<PATH>
  3133. where :
  3134. - PROTO = http or https
  3135. - AUTHORITY = <HOSTS>[:<PORT>]
  3136. - HOSTS = <HOSTNAME>[;<HOSTS>]
  3137. - HOSTNAME = string
  3138. - PORT = integer
  3139. If multiple hosts are provider, the Factory will create a
  3140. {@link LoadBalancingKMSClientProvider} that round-robins requests
  3141. across the provided list of hosts.]]>
  3142. </doc>
  3143. </method>
  3144. <doc>
  3145. <![CDATA[The factory to create KMSClientProvider, which is used by the
  3146. ServiceLoader.]]>
  3147. </doc>
  3148. </class>
  3149. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.Factory -->
  3150. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSEncryptedKeyVersion -->
  3151. <class name="KMSClientProvider.KMSEncryptedKeyVersion" extends="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"
  3152. abstract="false"
  3153. static="true" final="false" visibility="public"
  3154. deprecated="not deprecated">
  3155. <constructor name="KMSEncryptedKeyVersion" type="java.lang.String, java.lang.String, byte[], java.lang.String, byte[]"
  3156. static="false" final="false" visibility="public"
  3157. deprecated="not deprecated">
  3158. </constructor>
  3159. </class>
  3160. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSEncryptedKeyVersion -->
  3161. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSKeyVersion -->
  3162. <class name="KMSClientProvider.KMSKeyVersion" extends="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3163. abstract="false"
  3164. static="true" final="false" visibility="public"
  3165. deprecated="not deprecated">
  3166. <constructor name="KMSKeyVersion" type="java.lang.String, java.lang.String, byte[]"
  3167. static="false" final="false" visibility="public"
  3168. deprecated="not deprecated">
  3169. </constructor>
  3170. </class>
  3171. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSKeyVersion -->
  3172. <!-- start class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSMetadata -->
  3173. <class name="KMSClientProvider.KMSMetadata" extends="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  3174. abstract="false"
  3175. static="true" final="false" visibility="public"
  3176. deprecated="not deprecated">
  3177. <constructor name="KMSMetadata" type="java.lang.String, int, java.lang.String, java.util.Map, java.util.Date, int"
  3178. static="false" final="false" visibility="public"
  3179. deprecated="not deprecated">
  3180. </constructor>
  3181. </class>
  3182. <!-- end class org.apache.hadoop.crypto.key.kms.KMSClientProvider.KMSMetadata -->
  3183. <!-- start class org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider -->
  3184. <class name="LoadBalancingKMSClientProvider" extends="org.apache.hadoop.crypto.key.KeyProvider"
  3185. abstract="false"
  3186. static="false" final="false" visibility="public"
  3187. deprecated="not deprecated">
  3188. <implements name="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.CryptoExtension"/>
  3189. <implements name="org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension.DelegationTokenExtension"/>
  3190. <constructor name="LoadBalancingKMSClientProvider" type="org.apache.hadoop.crypto.key.kms.KMSClientProvider[], org.apache.hadoop.conf.Configuration"
  3191. static="false" final="false" visibility="public"
  3192. deprecated="not deprecated">
  3193. </constructor>
  3194. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  3195. abstract="false" native="false" synchronized="false"
  3196. static="false" final="false" visibility="public"
  3197. deprecated="not deprecated">
  3198. <param name="renewer" type="java.lang.String"/>
  3199. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  3200. <exception name="IOException" type="java.io.IOException"/>
  3201. </method>
  3202. <method name="warmUpEncryptedKeys"
  3203. abstract="false" native="false" synchronized="false"
  3204. static="false" final="false" visibility="public"
  3205. deprecated="not deprecated">
  3206. <param name="keyNames" type="java.lang.String[]"/>
  3207. <exception name="IOException" type="java.io.IOException"/>
  3208. </method>
  3209. <method name="drain"
  3210. abstract="false" native="false" synchronized="false"
  3211. static="false" final="false" visibility="public"
  3212. deprecated="not deprecated">
  3213. <param name="keyName" type="java.lang.String"/>
  3214. </method>
  3215. <method name="generateEncryptedKey" return="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"
  3216. abstract="false" native="false" synchronized="false"
  3217. static="false" final="false" visibility="public"
  3218. deprecated="not deprecated">
  3219. <param name="encryptionKeyName" type="java.lang.String"/>
  3220. <exception name="IOException" type="java.io.IOException"/>
  3221. <exception name="GeneralSecurityException" type="java.security.GeneralSecurityException"/>
  3222. </method>
  3223. <method name="decryptEncryptedKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3224. abstract="false" native="false" synchronized="false"
  3225. static="false" final="false" visibility="public"
  3226. deprecated="not deprecated">
  3227. <param name="encryptedKeyVersion" type="org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion"/>
  3228. <exception name="IOException" type="java.io.IOException"/>
  3229. <exception name="GeneralSecurityException" type="java.security.GeneralSecurityException"/>
  3230. </method>
  3231. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3232. abstract="false" native="false" synchronized="false"
  3233. static="false" final="false" visibility="public"
  3234. deprecated="not deprecated">
  3235. <param name="versionName" type="java.lang.String"/>
  3236. <exception name="IOException" type="java.io.IOException"/>
  3237. </method>
  3238. <method name="getKeys" return="java.util.List"
  3239. abstract="false" native="false" synchronized="false"
  3240. static="false" final="false" visibility="public"
  3241. deprecated="not deprecated">
  3242. <exception name="IOException" type="java.io.IOException"/>
  3243. </method>
  3244. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  3245. abstract="false" native="false" synchronized="false"
  3246. static="false" final="false" visibility="public"
  3247. deprecated="not deprecated">
  3248. <param name="names" type="java.lang.String[]"/>
  3249. <exception name="IOException" type="java.io.IOException"/>
  3250. </method>
  3251. <method name="getKeyVersions" return="java.util.List"
  3252. abstract="false" native="false" synchronized="false"
  3253. static="false" final="false" visibility="public"
  3254. deprecated="not deprecated">
  3255. <param name="name" type="java.lang.String"/>
  3256. <exception name="IOException" type="java.io.IOException"/>
  3257. </method>
  3258. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3259. abstract="false" native="false" synchronized="false"
  3260. static="false" final="false" visibility="public"
  3261. deprecated="not deprecated">
  3262. <param name="name" type="java.lang.String"/>
  3263. <exception name="IOException" type="java.io.IOException"/>
  3264. </method>
  3265. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  3266. abstract="false" native="false" synchronized="false"
  3267. static="false" final="false" visibility="public"
  3268. deprecated="not deprecated">
  3269. <param name="name" type="java.lang.String"/>
  3270. <exception name="IOException" type="java.io.IOException"/>
  3271. </method>
  3272. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3273. abstract="false" native="false" synchronized="false"
  3274. static="false" final="false" visibility="public"
  3275. deprecated="not deprecated">
  3276. <param name="name" type="java.lang.String"/>
  3277. <param name="material" type="byte[]"/>
  3278. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  3279. <exception name="IOException" type="java.io.IOException"/>
  3280. </method>
  3281. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3282. abstract="false" native="false" synchronized="false"
  3283. static="false" final="false" visibility="public"
  3284. deprecated="not deprecated">
  3285. <param name="name" type="java.lang.String"/>
  3286. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  3287. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  3288. <exception name="IOException" type="java.io.IOException"/>
  3289. </method>
  3290. <method name="deleteKey"
  3291. abstract="false" native="false" synchronized="false"
  3292. static="false" final="false" visibility="public"
  3293. deprecated="not deprecated">
  3294. <param name="name" type="java.lang.String"/>
  3295. <exception name="IOException" type="java.io.IOException"/>
  3296. </method>
  3297. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3298. abstract="false" native="false" synchronized="false"
  3299. static="false" final="false" visibility="public"
  3300. deprecated="not deprecated">
  3301. <param name="name" type="java.lang.String"/>
  3302. <param name="material" type="byte[]"/>
  3303. <exception name="IOException" type="java.io.IOException"/>
  3304. </method>
  3305. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  3306. abstract="false" native="false" synchronized="false"
  3307. static="false" final="false" visibility="public"
  3308. deprecated="not deprecated">
  3309. <param name="name" type="java.lang.String"/>
  3310. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  3311. <exception name="IOException" type="java.io.IOException"/>
  3312. </method>
  3313. <method name="close"
  3314. abstract="false" native="false" synchronized="false"
  3315. static="false" final="false" visibility="public"
  3316. deprecated="not deprecated">
  3317. <exception name="IOException" type="java.io.IOException"/>
  3318. </method>
  3319. <method name="flush"
  3320. abstract="false" native="false" synchronized="false"
  3321. static="false" final="false" visibility="public"
  3322. deprecated="not deprecated">
  3323. <exception name="IOException" type="java.io.IOException"/>
  3324. </method>
  3325. <field name="LOG" type="org.slf4j.Logger"
  3326. transient="false" volatile="false"
  3327. static="true" final="false" visibility="public"
  3328. deprecated="not deprecated">
  3329. </field>
  3330. <doc>
  3331. <![CDATA[A simple LoadBalancing KMSClientProvider that round-robins requests
  3332. across a provided array of KMSClientProviders. It also retries failed
  3333. requests on the next available provider in the load balancer group. It
  3334. only retries failed requests that result in an IOException, sending back
  3335. all other Exceptions to the caller without retry.]]>
  3336. </doc>
  3337. </class>
  3338. <!-- end class org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider -->
  3339. <!-- start interface org.apache.hadoop.crypto.key.kms.ValueQueue.QueueRefiller -->
  3340. <interface name="ValueQueue.QueueRefiller" abstract="true"
  3341. static="true" final="false" visibility="public"
  3342. deprecated="not deprecated">
  3343. <method name="fillQueueForKey"
  3344. abstract="true" native="false" synchronized="false"
  3345. static="false" final="false" visibility="public"
  3346. deprecated="not deprecated">
  3347. <param name="keyName" type="java.lang.String"/>
  3348. <param name="keyQueue" type="java.util.Queue"/>
  3349. <param name="numValues" type="int"/>
  3350. <exception name="IOException" type="java.io.IOException"/>
  3351. <doc>
  3352. <![CDATA[Method that has to be implemented by implementing classes to fill the
  3353. Queue.
  3354. @param keyName Key name
  3355. @param keyQueue Queue that needs to be filled
  3356. @param numValues number of Values to be added to the queue.
  3357. @throws IOException]]>
  3358. </doc>
  3359. </method>
  3360. <doc>
  3361. <![CDATA[QueueRefiller interface a client must implement to use this class]]>
  3362. </doc>
  3363. </interface>
  3364. <!-- end interface org.apache.hadoop.crypto.key.kms.ValueQueue.QueueRefiller -->
  3365. <!-- start class org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy -->
  3366. <class name="ValueQueue.SyncGenerationPolicy" extends="java.lang.Enum"
  3367. abstract="false"
  3368. static="true" final="true" visibility="public"
  3369. deprecated="not deprecated">
  3370. <method name="values" return="org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy[]"
  3371. abstract="false" native="false" synchronized="false"
  3372. static="true" final="false" visibility="public"
  3373. deprecated="not deprecated">
  3374. </method>
  3375. <method name="valueOf" return="org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy"
  3376. abstract="false" native="false" synchronized="false"
  3377. static="true" final="false" visibility="public"
  3378. deprecated="not deprecated">
  3379. <param name="name" type="java.lang.String"/>
  3380. </method>
  3381. <doc>
  3382. <![CDATA[Policy to decide how many values to return to client when client asks for
  3383. "n" values and Queue is empty.
  3384. This decides how many values to return when client calls "getAtMost"]]>
  3385. </doc>
  3386. </class>
  3387. <!-- end class org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy -->
  3388. </package>
  3389. <package name="org.apache.hadoop.crypto.random">
  3390. </package>
  3391. <package name="org.apache.hadoop.fs">
  3392. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  3393. <class name="AbstractFileSystem" extends="java.lang.Object"
  3394. abstract="true"
  3395. static="false" final="false" visibility="public"
  3396. deprecated="not deprecated">
  3397. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  3398. static="false" final="false" visibility="public"
  3399. deprecated="not deprecated">
  3400. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  3401. <doc>
  3402. <![CDATA[Constructor to be called by subclasses.
  3403. @param uri for this file system.
  3404. @param supportedScheme the scheme supported by the implementor
  3405. @param authorityNeeded if true then theURI must have authority, if false
  3406. then the URI must have null authority.
  3407. @throws URISyntaxException <code>uri</code> has syntax error]]>
  3408. </doc>
  3409. </constructor>
  3410. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3411. abstract="false" native="false" synchronized="false"
  3412. static="false" final="false" visibility="public"
  3413. deprecated="not deprecated">
  3414. </method>
  3415. <method name="isValidName" return="boolean"
  3416. abstract="false" native="false" synchronized="false"
  3417. static="false" final="false" visibility="public"
  3418. deprecated="not deprecated">
  3419. <param name="src" type="java.lang.String"/>
  3420. <doc>
  3421. <![CDATA[Returns true if the specified string is considered valid in the path part
  3422. of a URI by this file system. The default implementation enforces the rules
  3423. of HDFS, but subclasses may override this method to implement specific
  3424. validation rules for specific file systems.
  3425. @param src String source filename to check, path part of the URI
  3426. @return boolean true if the specified string is considered valid]]>
  3427. </doc>
  3428. </method>
  3429. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  3430. abstract="false" native="false" synchronized="false"
  3431. static="true" final="false" visibility="public"
  3432. deprecated="not deprecated">
  3433. <param name="uri" type="java.net.URI"/>
  3434. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3435. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3436. <doc>
  3437. <![CDATA[Create a file system instance for the specified uri using the conf. The
  3438. conf is used to find the class name that implements the file system. The
  3439. conf is also passed to the file system for its configuration.
  3440. @param uri URI of the file system
  3441. @param conf Configuration for the file system
  3442. @return Returns the file system for the given URI
  3443. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  3444. not found]]>
  3445. </doc>
  3446. </method>
  3447. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3448. abstract="false" native="false" synchronized="true"
  3449. static="true" final="false" visibility="protected"
  3450. deprecated="not deprecated">
  3451. <param name="uri" type="java.net.URI"/>
  3452. <doc>
  3453. <![CDATA[Get the statistics for a particular file system.
  3454. @param uri
  3455. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  3456. part of the uri are used.
  3457. @return a statistics object]]>
  3458. </doc>
  3459. </method>
  3460. <method name="clearStatistics"
  3461. abstract="false" native="false" synchronized="true"
  3462. static="true" final="false" visibility="public"
  3463. deprecated="not deprecated">
  3464. </method>
  3465. <method name="printStatistics"
  3466. abstract="false" native="false" synchronized="true"
  3467. static="true" final="false" visibility="public"
  3468. deprecated="not deprecated">
  3469. <doc>
  3470. <![CDATA[Prints statistics for all file systems.]]>
  3471. </doc>
  3472. </method>
  3473. <method name="getAllStatistics" return="java.util.Map"
  3474. abstract="false" native="false" synchronized="true"
  3475. static="true" final="false" visibility="protected"
  3476. deprecated="not deprecated">
  3477. </method>
  3478. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  3479. abstract="false" native="false" synchronized="false"
  3480. static="true" final="false" visibility="public"
  3481. deprecated="not deprecated">
  3482. <param name="uri" type="java.net.URI"/>
  3483. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3484. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3485. <doc>
  3486. <![CDATA[The main factory method for creating a file system. Get a file system for
  3487. the URI's scheme and authority. The scheme of the <code>uri</code>
  3488. determines a configuration property name,
  3489. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  3490. AbstractFileSystem class.
  3491. The entire URI and conf is passed to the AbstractFileSystem factory method.
  3492. @param uri for the file system to be created.
  3493. @param conf which is passed to the file system impl.
  3494. @return file system for the given URI.
  3495. @throws UnsupportedFileSystemException if the file system for
  3496. <code>uri</code> is not supported.]]>
  3497. </doc>
  3498. </method>
  3499. <method name="checkScheme"
  3500. abstract="false" native="false" synchronized="false"
  3501. static="false" final="false" visibility="public"
  3502. deprecated="not deprecated">
  3503. <param name="uri" type="java.net.URI"/>
  3504. <param name="supportedScheme" type="java.lang.String"/>
  3505. <doc>
  3506. <![CDATA[Check that the Uri's scheme matches
  3507. @param uri
  3508. @param supportedScheme]]>
  3509. </doc>
  3510. </method>
  3511. <method name="getUriDefaultPort" return="int"
  3512. abstract="true" native="false" synchronized="false"
  3513. static="false" final="false" visibility="public"
  3514. deprecated="not deprecated">
  3515. <doc>
  3516. <![CDATA[The default port of this file system.
  3517. @return default port of this file system's Uri scheme
  3518. A uri with a port of -1 => default port;]]>
  3519. </doc>
  3520. </method>
  3521. <method name="getUri" return="java.net.URI"
  3522. abstract="false" native="false" synchronized="false"
  3523. static="false" final="false" visibility="public"
  3524. deprecated="not deprecated">
  3525. <doc>
  3526. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  3527. @return the uri of this file system.]]>
  3528. </doc>
  3529. </method>
  3530. <method name="checkPath"
  3531. abstract="false" native="false" synchronized="false"
  3532. static="false" final="false" visibility="public"
  3533. deprecated="not deprecated">
  3534. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3535. <doc>
  3536. <![CDATA[Check that a Path belongs to this FileSystem.
  3537. If the path is fully qualified URI, then its scheme and authority
  3538. matches that of this file system. Otherwise the path must be
  3539. slash-relative name.
  3540. @throws InvalidPathException if the path is invalid]]>
  3541. </doc>
  3542. </method>
  3543. <method name="getUriPath" return="java.lang.String"
  3544. abstract="false" native="false" synchronized="false"
  3545. static="false" final="false" visibility="public"
  3546. deprecated="not deprecated">
  3547. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3548. <doc>
  3549. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  3550. and that the path-part is a valid name.
  3551. @param p path
  3552. @return path-part of the Path p]]>
  3553. </doc>
  3554. </method>
  3555. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  3556. abstract="false" native="false" synchronized="false"
  3557. static="false" final="false" visibility="public"
  3558. deprecated="not deprecated">
  3559. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3560. <doc>
  3561. <![CDATA[Make the path fully qualified to this file system
  3562. @param path
  3563. @return the qualified path]]>
  3564. </doc>
  3565. </method>
  3566. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3567. abstract="false" native="false" synchronized="false"
  3568. static="false" final="false" visibility="public"
  3569. deprecated="not deprecated">
  3570. <doc>
  3571. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  3572. that is used as the starting workingDir. For other file systems
  3573. like HDFS there is no built in notion of an initial workingDir.
  3574. @return the initial workingDir if the file system has such a notion
  3575. otherwise return a null.]]>
  3576. </doc>
  3577. </method>
  3578. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3579. abstract="false" native="false" synchronized="false"
  3580. static="false" final="false" visibility="public"
  3581. deprecated="not deprecated">
  3582. <doc>
  3583. <![CDATA[Return the current user's home directory in this file system.
  3584. The default implementation returns "/user/$USER/".
  3585. @return current user's home directory.]]>
  3586. </doc>
  3587. </method>
  3588. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  3589. abstract="true" native="false" synchronized="false"
  3590. static="false" final="false" visibility="public"
  3591. deprecated="not deprecated">
  3592. <exception name="IOException" type="java.io.IOException"/>
  3593. <doc>
  3594. <![CDATA[Return a set of server default configuration values.
  3595. @return server default configuration values
  3596. @throws IOException an I/O error occurred]]>
  3597. </doc>
  3598. </method>
  3599. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  3600. abstract="false" native="false" synchronized="false"
  3601. static="false" final="false" visibility="public"
  3602. deprecated="not deprecated">
  3603. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3604. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3605. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3606. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3607. <exception name="IOException" type="java.io.IOException"/>
  3608. <doc>
  3609. <![CDATA[Return the fully-qualified path of path f resolving the path
  3610. through any internal symlinks or mount point
  3611. @param p path to be resolved
  3612. @return fully qualified path
  3613. @throws FileNotFoundException, AccessControlException, IOException
  3614. UnresolvedLinkException if symbolic link on path cannot be resolved
  3615. internally]]>
  3616. </doc>
  3617. </method>
  3618. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3619. abstract="false" native="false" synchronized="false"
  3620. static="false" final="true" visibility="public"
  3621. deprecated="not deprecated">
  3622. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3623. <param name="createFlag" type="java.util.EnumSet"/>
  3624. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  3625. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3626. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3627. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3628. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3629. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3630. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3631. <exception name="IOException" type="java.io.IOException"/>
  3632. <doc>
  3633. <![CDATA[The specification of this method matches that of
  3634. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  3635. that the Path f must be fully qualified and the permission is absolute
  3636. (i.e. umask has been applied).]]>
  3637. </doc>
  3638. </method>
  3639. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  3640. abstract="true" native="false" synchronized="false"
  3641. static="false" final="false" visibility="public"
  3642. deprecated="not deprecated">
  3643. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3644. <param name="flag" type="java.util.EnumSet"/>
  3645. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3646. <param name="bufferSize" type="int"/>
  3647. <param name="replication" type="short"/>
  3648. <param name="blockSize" type="long"/>
  3649. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3650. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  3651. <param name="createParent" type="boolean"/>
  3652. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3653. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3654. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3655. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3656. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3657. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3658. <exception name="IOException" type="java.io.IOException"/>
  3659. <doc>
  3660. <![CDATA[The specification of this method matches that of
  3661. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  3662. have been declared explicitly.]]>
  3663. </doc>
  3664. </method>
  3665. <method name="mkdir"
  3666. abstract="true" native="false" synchronized="false"
  3667. static="false" final="false" visibility="public"
  3668. deprecated="not deprecated">
  3669. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3670. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3671. <param name="createParent" type="boolean"/>
  3672. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3673. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  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#mkdir(Path, FsPermission, boolean)} except that the Path
  3680. f must be fully qualified and the permission is absolute (i.e.
  3681. umask has been applied).]]>
  3682. </doc>
  3683. </method>
  3684. <method name="delete" return="boolean"
  3685. abstract="true" native="false" synchronized="false"
  3686. static="false" final="false" visibility="public"
  3687. deprecated="not deprecated">
  3688. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3689. <param name="recursive" type="boolean"/>
  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#delete(Path, boolean)} except that Path f must be for
  3697. this file system.]]>
  3698. </doc>
  3699. </method>
  3700. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3701. abstract="false" native="false" synchronized="false"
  3702. static="false" final="false" visibility="public"
  3703. deprecated="not deprecated">
  3704. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3705. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3706. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3707. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3708. <exception name="IOException" type="java.io.IOException"/>
  3709. <doc>
  3710. <![CDATA[The specification of this method matches that of
  3711. {@link FileContext#open(Path)} except that Path f must be for this
  3712. file system.]]>
  3713. </doc>
  3714. </method>
  3715. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3716. abstract="true" native="false" synchronized="false"
  3717. static="false" final="false" visibility="public"
  3718. deprecated="not deprecated">
  3719. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3720. <param name="bufferSize" type="int"/>
  3721. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3722. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3723. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3724. <exception name="IOException" type="java.io.IOException"/>
  3725. <doc>
  3726. <![CDATA[The specification of this method matches that of
  3727. {@link FileContext#open(Path, int)} except that Path f must be for this
  3728. file system.]]>
  3729. </doc>
  3730. </method>
  3731. <method name="truncate" return="boolean"
  3732. abstract="false" native="false" synchronized="false"
  3733. static="false" final="false" visibility="public"
  3734. deprecated="not deprecated">
  3735. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3736. <param name="newLength" type="long"/>
  3737. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3738. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3739. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3740. <exception name="IOException" type="java.io.IOException"/>
  3741. <doc>
  3742. <![CDATA[The specification of this method matches that of
  3743. {@link FileContext#truncate(Path, long)} except that Path f must be for
  3744. this file system.]]>
  3745. </doc>
  3746. </method>
  3747. <method name="setReplication" return="boolean"
  3748. abstract="true" native="false" synchronized="false"
  3749. static="false" final="false" visibility="public"
  3750. deprecated="not deprecated">
  3751. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3752. <param name="replication" type="short"/>
  3753. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3754. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3755. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3756. <exception name="IOException" type="java.io.IOException"/>
  3757. <doc>
  3758. <![CDATA[The specification of this method matches that of
  3759. {@link FileContext#setReplication(Path, short)} except that Path f must be
  3760. for this file system.]]>
  3761. </doc>
  3762. </method>
  3763. <method name="rename"
  3764. abstract="false" native="false" synchronized="false"
  3765. static="false" final="true" visibility="public"
  3766. deprecated="not deprecated">
  3767. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3768. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3769. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  3770. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3771. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3772. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3773. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3774. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3775. <exception name="IOException" type="java.io.IOException"/>
  3776. <doc>
  3777. <![CDATA[The specification of this method matches that of
  3778. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  3779. f must be for this file system.]]>
  3780. </doc>
  3781. </method>
  3782. <method name="renameInternal"
  3783. abstract="true" native="false" synchronized="false"
  3784. static="false" final="false" visibility="public"
  3785. deprecated="not deprecated">
  3786. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3787. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3788. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3789. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3790. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3791. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3792. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3793. <exception name="IOException" type="java.io.IOException"/>
  3794. <doc>
  3795. <![CDATA[The specification of this method matches that of
  3796. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  3797. f must be for this file system and NO OVERWRITE is performed.
  3798. File systems that do not have a built in overwrite need implement only this
  3799. method and can take advantage of the default impl of the other
  3800. {@link #renameInternal(Path, Path, boolean)}]]>
  3801. </doc>
  3802. </method>
  3803. <method name="renameInternal"
  3804. abstract="false" native="false" synchronized="false"
  3805. static="false" final="false" visibility="public"
  3806. deprecated="not deprecated">
  3807. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3808. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3809. <param name="overwrite" type="boolean"/>
  3810. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3811. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3812. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3813. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3814. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3815. <exception name="IOException" type="java.io.IOException"/>
  3816. <doc>
  3817. <![CDATA[The specification of this method matches that of
  3818. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  3819. f must be for this file system.]]>
  3820. </doc>
  3821. </method>
  3822. <method name="supportsSymlinks" return="boolean"
  3823. abstract="false" native="false" synchronized="false"
  3824. static="false" final="false" visibility="public"
  3825. deprecated="not deprecated">
  3826. <doc>
  3827. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  3828. @return true if filesystem supports symlinks]]>
  3829. </doc>
  3830. </method>
  3831. <method name="createSymlink"
  3832. abstract="false" native="false" synchronized="false"
  3833. static="false" final="false" visibility="public"
  3834. deprecated="not deprecated">
  3835. <param name="target" type="org.apache.hadoop.fs.Path"/>
  3836. <param name="link" type="org.apache.hadoop.fs.Path"/>
  3837. <param name="createParent" type="boolean"/>
  3838. <exception name="IOException" type="java.io.IOException"/>
  3839. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3840. <doc>
  3841. <![CDATA[The specification of this method matches that of
  3842. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  3843. </doc>
  3844. </method>
  3845. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  3846. abstract="false" native="false" synchronized="false"
  3847. static="false" final="false" visibility="public"
  3848. deprecated="not deprecated">
  3849. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3850. <exception name="IOException" type="java.io.IOException"/>
  3851. <doc>
  3852. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  3853. {@link FSLinkResolver}, and differs from the similarly named method
  3854. {@link FileContext#getLinkTarget(Path)}.
  3855. @throws IOException subclass implementations may throw IOException]]>
  3856. </doc>
  3857. </method>
  3858. <method name="setPermission"
  3859. abstract="true" native="false" synchronized="false"
  3860. static="false" final="false" visibility="public"
  3861. deprecated="not deprecated">
  3862. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3863. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3864. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3865. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3866. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3867. <exception name="IOException" type="java.io.IOException"/>
  3868. <doc>
  3869. <![CDATA[The specification of this method matches that of
  3870. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  3871. must be for this file system.]]>
  3872. </doc>
  3873. </method>
  3874. <method name="setOwner"
  3875. abstract="true" native="false" synchronized="false"
  3876. static="false" final="false" visibility="public"
  3877. deprecated="not deprecated">
  3878. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3879. <param name="username" type="java.lang.String"/>
  3880. <param name="groupname" type="java.lang.String"/>
  3881. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3882. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3883. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3884. <exception name="IOException" type="java.io.IOException"/>
  3885. <doc>
  3886. <![CDATA[The specification of this method matches that of
  3887. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  3888. be for this file system.]]>
  3889. </doc>
  3890. </method>
  3891. <method name="setTimes"
  3892. abstract="true" native="false" synchronized="false"
  3893. static="false" final="false" visibility="public"
  3894. deprecated="not deprecated">
  3895. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3896. <param name="mtime" type="long"/>
  3897. <param name="atime" type="long"/>
  3898. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3899. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3900. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3901. <exception name="IOException" type="java.io.IOException"/>
  3902. <doc>
  3903. <![CDATA[The specification of this method matches that of
  3904. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  3905. for this file system.]]>
  3906. </doc>
  3907. </method>
  3908. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3909. abstract="true" native="false" synchronized="false"
  3910. static="false" final="false" visibility="public"
  3911. deprecated="not deprecated">
  3912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3913. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3914. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3915. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3916. <exception name="IOException" type="java.io.IOException"/>
  3917. <doc>
  3918. <![CDATA[The specification of this method matches that of
  3919. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  3920. this file system.]]>
  3921. </doc>
  3922. </method>
  3923. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3924. abstract="true" native="false" synchronized="false"
  3925. static="false" final="false" visibility="public"
  3926. deprecated="not deprecated">
  3927. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3928. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3929. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3930. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3931. <exception name="IOException" type="java.io.IOException"/>
  3932. <doc>
  3933. <![CDATA[The specification of this method matches that of
  3934. {@link FileContext#getFileStatus(Path)}
  3935. except that an UnresolvedLinkException may be thrown if a symlink is
  3936. encountered in the path.]]>
  3937. </doc>
  3938. </method>
  3939. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  3940. abstract="false" native="false" synchronized="false"
  3941. static="false" final="false" visibility="public"
  3942. deprecated="not deprecated">
  3943. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3944. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3945. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3946. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3947. <exception name="IOException" type="java.io.IOException"/>
  3948. <doc>
  3949. <![CDATA[The specification of this method matches that of
  3950. {@link FileContext#getFileLinkStatus(Path)}
  3951. except that an UnresolvedLinkException may be thrown if a symlink is
  3952. encountered in the path leading up to the final path component.
  3953. If the file system does not support symlinks then the behavior is
  3954. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  3955. </doc>
  3956. </method>
  3957. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3958. abstract="true" native="false" synchronized="false"
  3959. static="false" final="false" visibility="public"
  3960. deprecated="not deprecated">
  3961. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3962. <param name="start" type="long"/>
  3963. <param name="len" type="long"/>
  3964. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3965. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3966. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3967. <exception name="IOException" type="java.io.IOException"/>
  3968. <doc>
  3969. <![CDATA[The specification of this method matches that of
  3970. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  3971. Path f must be for this file system.]]>
  3972. </doc>
  3973. </method>
  3974. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3975. abstract="false" native="false" synchronized="false"
  3976. static="false" final="false" visibility="public"
  3977. deprecated="not deprecated">
  3978. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3979. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3980. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3981. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3982. <exception name="IOException" type="java.io.IOException"/>
  3983. <doc>
  3984. <![CDATA[The specification of this method matches that of
  3985. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  3986. file system.]]>
  3987. </doc>
  3988. </method>
  3989. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3990. abstract="true" native="false" synchronized="false"
  3991. static="false" final="false" visibility="public"
  3992. deprecated="not deprecated">
  3993. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3994. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3995. <exception name="IOException" type="java.io.IOException"/>
  3996. <doc>
  3997. <![CDATA[The specification of this method matches that of
  3998. {@link FileContext#getFsStatus(Path)}.]]>
  3999. </doc>
  4000. </method>
  4001. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  4002. abstract="false" native="false" synchronized="false"
  4003. static="false" final="false" visibility="public"
  4004. deprecated="not deprecated">
  4005. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4006. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4007. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4008. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  4009. <exception name="IOException" type="java.io.IOException"/>
  4010. <doc>
  4011. <![CDATA[The specification of this method matches that of
  4012. {@link FileContext#listStatus(Path)} except that Path f must be for this
  4013. file system.]]>
  4014. </doc>
  4015. </method>
  4016. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  4017. abstract="false" native="false" synchronized="false"
  4018. static="false" final="false" visibility="public"
  4019. deprecated="not deprecated">
  4020. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4021. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4022. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4023. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  4024. <exception name="IOException" type="java.io.IOException"/>
  4025. <doc>
  4026. <![CDATA[The specification of this method matches that of
  4027. {@link FileContext#listLocatedStatus(Path)} except that Path f
  4028. must be for this file system.]]>
  4029. </doc>
  4030. </method>
  4031. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4032. abstract="true" native="false" synchronized="false"
  4033. static="false" final="false" visibility="public"
  4034. deprecated="not deprecated">
  4035. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4036. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4037. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4038. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  4039. <exception name="IOException" type="java.io.IOException"/>
  4040. <doc>
  4041. <![CDATA[The specification of this method matches that of
  4042. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  4043. for this file system.]]>
  4044. </doc>
  4045. </method>
  4046. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  4047. abstract="false" native="false" synchronized="false"
  4048. static="false" final="false" visibility="public"
  4049. deprecated="not deprecated">
  4050. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4051. <exception name="IOException" type="java.io.IOException"/>
  4052. <doc>
  4053. <![CDATA[@return an iterator over the corrupt files under the given path
  4054. (may contain duplicates if a file has more than one corrupt block)
  4055. @throws IOException]]>
  4056. </doc>
  4057. </method>
  4058. <method name="setVerifyChecksum"
  4059. abstract="true" native="false" synchronized="false"
  4060. static="false" final="false" visibility="public"
  4061. deprecated="not deprecated">
  4062. <param name="verifyChecksum" type="boolean"/>
  4063. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4064. <exception name="IOException" type="java.io.IOException"/>
  4065. <doc>
  4066. <![CDATA[The specification of this method matches that of
  4067. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  4068. must be for this file system.]]>
  4069. </doc>
  4070. </method>
  4071. <method name="getCanonicalServiceName" return="java.lang.String"
  4072. abstract="false" native="false" synchronized="false"
  4073. static="false" final="false" visibility="public"
  4074. deprecated="not deprecated">
  4075. <doc>
  4076. <![CDATA[Get a canonical name for this file system.
  4077. @return a URI string that uniquely identifies this file system]]>
  4078. </doc>
  4079. </method>
  4080. <method name="modifyAclEntries"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="false" final="false" visibility="public"
  4083. deprecated="not deprecated">
  4084. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4085. <param name="aclSpec" type="java.util.List"/>
  4086. <exception name="IOException" type="java.io.IOException"/>
  4087. <doc>
  4088. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  4089. entries or modify the permissions on existing ACL entries. All existing
  4090. ACL entries that are not specified in this call are retained without
  4091. changes. (Modifications are merged into the current ACL.)
  4092. @param path Path to modify
  4093. @param aclSpec List<AclEntry> describing modifications
  4094. @throws IOException if an ACL could not be modified]]>
  4095. </doc>
  4096. </method>
  4097. <method name="removeAclEntries"
  4098. abstract="false" native="false" synchronized="false"
  4099. static="false" final="false" visibility="public"
  4100. deprecated="not deprecated">
  4101. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4102. <param name="aclSpec" type="java.util.List"/>
  4103. <exception name="IOException" type="java.io.IOException"/>
  4104. <doc>
  4105. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  4106. retained.
  4107. @param path Path to modify
  4108. @param aclSpec List<AclEntry> describing entries to remove
  4109. @throws IOException if an ACL could not be modified]]>
  4110. </doc>
  4111. </method>
  4112. <method name="removeDefaultAcl"
  4113. abstract="false" native="false" synchronized="false"
  4114. static="false" final="false" visibility="public"
  4115. deprecated="not deprecated">
  4116. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4117. <exception name="IOException" type="java.io.IOException"/>
  4118. <doc>
  4119. <![CDATA[Removes all default ACL entries from files and directories.
  4120. @param path Path to modify
  4121. @throws IOException if an ACL could not be modified]]>
  4122. </doc>
  4123. </method>
  4124. <method name="removeAcl"
  4125. abstract="false" native="false" synchronized="false"
  4126. static="false" final="false" visibility="public"
  4127. deprecated="not deprecated">
  4128. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4129. <exception name="IOException" type="java.io.IOException"/>
  4130. <doc>
  4131. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  4132. for user, group, and others are retained for compatibility with permission
  4133. bits.
  4134. @param path Path to modify
  4135. @throws IOException if an ACL could not be removed]]>
  4136. </doc>
  4137. </method>
  4138. <method name="setAcl"
  4139. abstract="false" native="false" synchronized="false"
  4140. static="false" final="false" visibility="public"
  4141. deprecated="not deprecated">
  4142. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4143. <param name="aclSpec" type="java.util.List"/>
  4144. <exception name="IOException" type="java.io.IOException"/>
  4145. <doc>
  4146. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  4147. entries.
  4148. @param path Path to modify
  4149. @param aclSpec List<AclEntry> describing modifications, must include entries
  4150. for user, group, and others for compatibility with permission bits.
  4151. @throws IOException if an ACL could not be modified]]>
  4152. </doc>
  4153. </method>
  4154. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  4155. abstract="false" native="false" synchronized="false"
  4156. static="false" final="false" visibility="public"
  4157. deprecated="not deprecated">
  4158. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4159. <exception name="IOException" type="java.io.IOException"/>
  4160. <doc>
  4161. <![CDATA[Gets the ACLs of files and directories.
  4162. @param path Path to get
  4163. @return RemoteIterator<AclStatus> which returns each AclStatus
  4164. @throws IOException if an ACL could not be read]]>
  4165. </doc>
  4166. </method>
  4167. <method name="setXAttr"
  4168. abstract="false" native="false" synchronized="false"
  4169. static="false" final="false" visibility="public"
  4170. deprecated="not deprecated">
  4171. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4172. <param name="name" type="java.lang.String"/>
  4173. <param name="value" type="byte[]"/>
  4174. <exception name="IOException" type="java.io.IOException"/>
  4175. <doc>
  4176. <![CDATA[Set an xattr of a file or directory.
  4177. The name must be prefixed with the namespace followed by ".". For example,
  4178. "user.attr".
  4179. <p/>
  4180. Refer to the HDFS extended attributes user documentation for details.
  4181. @param path Path to modify
  4182. @param name xattr name.
  4183. @param value xattr value.
  4184. @throws IOException]]>
  4185. </doc>
  4186. </method>
  4187. <method name="setXAttr"
  4188. abstract="false" native="false" synchronized="false"
  4189. static="false" final="false" visibility="public"
  4190. deprecated="not deprecated">
  4191. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4192. <param name="name" type="java.lang.String"/>
  4193. <param name="value" type="byte[]"/>
  4194. <param name="flag" type="java.util.EnumSet"/>
  4195. <exception name="IOException" type="java.io.IOException"/>
  4196. <doc>
  4197. <![CDATA[Set an xattr of a file or directory.
  4198. The name must be prefixed with the namespace followed by ".". For example,
  4199. "user.attr".
  4200. <p/>
  4201. Refer to the HDFS extended attributes user documentation for details.
  4202. @param path Path to modify
  4203. @param name xattr name.
  4204. @param value xattr value.
  4205. @param flag xattr set flag
  4206. @throws IOException]]>
  4207. </doc>
  4208. </method>
  4209. <method name="getXAttr" return="byte[]"
  4210. abstract="false" native="false" synchronized="false"
  4211. static="false" final="false" visibility="public"
  4212. deprecated="not deprecated">
  4213. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4214. <param name="name" type="java.lang.String"/>
  4215. <exception name="IOException" type="java.io.IOException"/>
  4216. <doc>
  4217. <![CDATA[Get an xattr for a file or directory.
  4218. The name must be prefixed with the namespace followed by ".". For example,
  4219. "user.attr".
  4220. <p/>
  4221. Refer to the HDFS extended attributes user documentation for details.
  4222. @param path Path to get extended attribute
  4223. @param name xattr name.
  4224. @return byte[] xattr value.
  4225. @throws IOException]]>
  4226. </doc>
  4227. </method>
  4228. <method name="getXAttrs" return="java.util.Map"
  4229. abstract="false" native="false" synchronized="false"
  4230. static="false" final="false" visibility="public"
  4231. deprecated="not deprecated">
  4232. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4233. <exception name="IOException" type="java.io.IOException"/>
  4234. <doc>
  4235. <![CDATA[Get all of the xattrs for a file or directory.
  4236. Only those xattrs for which the logged-in user has permissions to view
  4237. are returned.
  4238. <p/>
  4239. Refer to the HDFS extended attributes user documentation for details.
  4240. @param path Path to get extended attributes
  4241. @return Map<String, byte[]> describing the XAttrs of the file or directory
  4242. @throws IOException]]>
  4243. </doc>
  4244. </method>
  4245. <method name="getXAttrs" return="java.util.Map"
  4246. abstract="false" native="false" synchronized="false"
  4247. static="false" final="false" visibility="public"
  4248. deprecated="not deprecated">
  4249. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4250. <param name="names" type="java.util.List"/>
  4251. <exception name="IOException" type="java.io.IOException"/>
  4252. <doc>
  4253. <![CDATA[Get all of the xattrs for a file or directory.
  4254. Only those xattrs for which the logged-in user has permissions to view
  4255. are returned.
  4256. <p/>
  4257. Refer to the HDFS extended attributes user documentation for details.
  4258. @param path Path to get extended attributes
  4259. @param names XAttr names.
  4260. @return Map<String, byte[]> describing the XAttrs of the file or directory
  4261. @throws IOException]]>
  4262. </doc>
  4263. </method>
  4264. <method name="listXAttrs" return="java.util.List"
  4265. abstract="false" native="false" synchronized="false"
  4266. static="false" final="false" visibility="public"
  4267. deprecated="not deprecated">
  4268. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4269. <exception name="IOException" type="java.io.IOException"/>
  4270. <doc>
  4271. <![CDATA[Get all of the xattr names for a file or directory.
  4272. Only the xattr names for which the logged-in user has permissions to view
  4273. are returned.
  4274. <p/>
  4275. Refer to the HDFS extended attributes user documentation for details.
  4276. @param path Path to get extended attributes
  4277. @return Map<String, byte[]> describing the XAttrs of the file or directory
  4278. @throws IOException]]>
  4279. </doc>
  4280. </method>
  4281. <method name="removeXAttr"
  4282. abstract="false" native="false" synchronized="false"
  4283. static="false" final="false" visibility="public"
  4284. deprecated="not deprecated">
  4285. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4286. <param name="name" type="java.lang.String"/>
  4287. <exception name="IOException" type="java.io.IOException"/>
  4288. <doc>
  4289. <![CDATA[Remove an xattr of a file or directory.
  4290. The name must be prefixed with the namespace followed by ".". For example,
  4291. "user.attr".
  4292. <p/>
  4293. Refer to the HDFS extended attributes user documentation for details.
  4294. @param path Path to remove extended attribute
  4295. @param name xattr name
  4296. @throws IOException]]>
  4297. </doc>
  4298. </method>
  4299. <method name="hashCode" return="int"
  4300. abstract="false" native="false" synchronized="false"
  4301. static="false" final="false" visibility="public"
  4302. deprecated="not deprecated">
  4303. </method>
  4304. <method name="equals" return="boolean"
  4305. abstract="false" native="false" synchronized="false"
  4306. static="false" final="false" visibility="public"
  4307. deprecated="not deprecated">
  4308. <param name="other" type="java.lang.Object"/>
  4309. </method>
  4310. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  4311. transient="false" volatile="false"
  4312. static="false" final="false" visibility="protected"
  4313. deprecated="not deprecated">
  4314. <doc>
  4315. <![CDATA[The statistics for this file system.]]>
  4316. </doc>
  4317. </field>
  4318. <doc>
  4319. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  4320. (analogous to the VFS of Unix). Applications do not access this class;
  4321. instead they access files across all file systems using {@link FileContext}.
  4322. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  4323. matches the "this" file system (ie same scheme and authority)
  4324. or a Slash-relative name that is assumed to be relative
  4325. to the root of the "this" file system .]]>
  4326. </doc>
  4327. </class>
  4328. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  4329. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  4330. <class name="AvroFSInput" extends="java.lang.Object"
  4331. abstract="false"
  4332. static="false" final="false" visibility="public"
  4333. deprecated="not deprecated">
  4334. <implements name="java.io.Closeable"/>
  4335. <implements name="org.apache.avro.file.SeekableInput"/>
  4336. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  4337. static="false" final="false" visibility="public"
  4338. deprecated="not deprecated">
  4339. <doc>
  4340. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  4341. </doc>
  4342. </constructor>
  4343. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  4344. static="false" final="false" visibility="public"
  4345. deprecated="not deprecated">
  4346. <exception name="IOException" type="java.io.IOException"/>
  4347. <doc>
  4348. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  4349. </doc>
  4350. </constructor>
  4351. <method name="length" return="long"
  4352. abstract="false" native="false" synchronized="false"
  4353. static="false" final="false" visibility="public"
  4354. deprecated="not deprecated">
  4355. </method>
  4356. <method name="read" return="int"
  4357. abstract="false" native="false" synchronized="false"
  4358. static="false" final="false" visibility="public"
  4359. deprecated="not deprecated">
  4360. <param name="b" type="byte[]"/>
  4361. <param name="off" type="int"/>
  4362. <param name="len" type="int"/>
  4363. <exception name="IOException" type="java.io.IOException"/>
  4364. </method>
  4365. <method name="seek"
  4366. abstract="false" native="false" synchronized="false"
  4367. static="false" final="false" visibility="public"
  4368. deprecated="not deprecated">
  4369. <param name="p" type="long"/>
  4370. <exception name="IOException" type="java.io.IOException"/>
  4371. </method>
  4372. <method name="tell" return="long"
  4373. abstract="false" native="false" synchronized="false"
  4374. static="false" final="false" visibility="public"
  4375. deprecated="not deprecated">
  4376. <exception name="IOException" type="java.io.IOException"/>
  4377. </method>
  4378. <method name="close"
  4379. abstract="false" native="false" synchronized="false"
  4380. static="false" final="false" visibility="public"
  4381. deprecated="not deprecated">
  4382. <exception name="IOException" type="java.io.IOException"/>
  4383. </method>
  4384. <doc>
  4385. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  4386. </doc>
  4387. </class>
  4388. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  4389. <!-- start class org.apache.hadoop.fs.BatchedRemoteIterator -->
  4390. <class name="BatchedRemoteIterator" extends="java.lang.Object"
  4391. abstract="true"
  4392. static="false" final="false" visibility="public"
  4393. deprecated="not deprecated">
  4394. <implements name="org.apache.hadoop.fs.RemoteIterator"/>
  4395. <constructor name="BatchedRemoteIterator" type="K"
  4396. static="false" final="false" visibility="public"
  4397. deprecated="not deprecated">
  4398. </constructor>
  4399. <method name="makeRequest" return="org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries"
  4400. abstract="true" native="false" synchronized="false"
  4401. static="false" final="false" visibility="public"
  4402. deprecated="not deprecated">
  4403. <param name="prevKey" type="K"/>
  4404. <exception name="IOException" type="java.io.IOException"/>
  4405. <doc>
  4406. <![CDATA[Perform the actual remote request.
  4407. @param prevKey The key to send.
  4408. @return A list of replies.]]>
  4409. </doc>
  4410. </method>
  4411. <method name="hasNext" return="boolean"
  4412. abstract="false" native="false" synchronized="false"
  4413. static="false" final="false" visibility="public"
  4414. deprecated="not deprecated">
  4415. <exception name="IOException" type="java.io.IOException"/>
  4416. </method>
  4417. <method name="elementToPrevKey" return="K"
  4418. abstract="true" native="false" synchronized="false"
  4419. static="false" final="false" visibility="public"
  4420. deprecated="not deprecated">
  4421. <param name="element" type="E"/>
  4422. <doc>
  4423. <![CDATA[Return the next list key associated with an element.]]>
  4424. </doc>
  4425. </method>
  4426. <method name="next" return="E"
  4427. abstract="false" native="false" synchronized="false"
  4428. static="false" final="false" visibility="public"
  4429. deprecated="not deprecated">
  4430. <exception name="IOException" type="java.io.IOException"/>
  4431. </method>
  4432. <doc>
  4433. <![CDATA[A RemoteIterator that fetches elements in batches.]]>
  4434. </doc>
  4435. </class>
  4436. <!-- end class org.apache.hadoop.fs.BatchedRemoteIterator -->
  4437. <!-- start interface org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries -->
  4438. <interface name="BatchedRemoteIterator.BatchedEntries" abstract="true"
  4439. static="true" final="false" visibility="public"
  4440. deprecated="not deprecated">
  4441. <method name="get" return="E"
  4442. abstract="true" native="false" synchronized="false"
  4443. static="false" final="false" visibility="public"
  4444. deprecated="not deprecated">
  4445. <param name="i" type="int"/>
  4446. </method>
  4447. <method name="size" return="int"
  4448. abstract="true" native="false" synchronized="false"
  4449. static="false" final="false" visibility="public"
  4450. deprecated="not deprecated">
  4451. </method>
  4452. <method name="hasMore" return="boolean"
  4453. abstract="true" native="false" synchronized="false"
  4454. static="false" final="false" visibility="public"
  4455. deprecated="not deprecated">
  4456. </method>
  4457. </interface>
  4458. <!-- end interface org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries -->
  4459. <!-- start class org.apache.hadoop.fs.BatchedRemoteIterator.BatchedListEntries -->
  4460. <class name="BatchedRemoteIterator.BatchedListEntries" extends="java.lang.Object"
  4461. abstract="false"
  4462. static="true" final="false" visibility="public"
  4463. deprecated="not deprecated">
  4464. <implements name="org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries"/>
  4465. <constructor name="BatchedListEntries" type="java.util.List, boolean"
  4466. static="false" final="false" visibility="public"
  4467. deprecated="not deprecated">
  4468. </constructor>
  4469. <method name="get" return="E"
  4470. abstract="false" native="false" synchronized="false"
  4471. static="false" final="false" visibility="public"
  4472. deprecated="not deprecated">
  4473. <param name="i" type="int"/>
  4474. </method>
  4475. <method name="size" return="int"
  4476. abstract="false" native="false" synchronized="false"
  4477. static="false" final="false" visibility="public"
  4478. deprecated="not deprecated">
  4479. </method>
  4480. <method name="hasMore" return="boolean"
  4481. abstract="false" native="false" synchronized="false"
  4482. static="false" final="false" visibility="public"
  4483. deprecated="not deprecated">
  4484. </method>
  4485. </class>
  4486. <!-- end class org.apache.hadoop.fs.BatchedRemoteIterator.BatchedListEntries -->
  4487. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  4488. <class name="BlockLocation" extends="java.lang.Object"
  4489. abstract="false"
  4490. static="false" final="false" visibility="public"
  4491. deprecated="not deprecated">
  4492. <constructor name="BlockLocation"
  4493. static="false" final="false" visibility="public"
  4494. deprecated="not deprecated">
  4495. <doc>
  4496. <![CDATA[Default Constructor]]>
  4497. </doc>
  4498. </constructor>
  4499. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. <doc>
  4503. <![CDATA[Copy constructor]]>
  4504. </doc>
  4505. </constructor>
  4506. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  4507. static="false" final="false" visibility="public"
  4508. deprecated="not deprecated">
  4509. <doc>
  4510. <![CDATA[Constructor with host, name, offset and length]]>
  4511. </doc>
  4512. </constructor>
  4513. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  4514. static="false" final="false" visibility="public"
  4515. deprecated="not deprecated">
  4516. <doc>
  4517. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  4518. </doc>
  4519. </constructor>
  4520. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  4521. static="false" final="false" visibility="public"
  4522. deprecated="not deprecated">
  4523. <doc>
  4524. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  4525. </doc>
  4526. </constructor>
  4527. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  4528. static="false" final="false" visibility="public"
  4529. deprecated="not deprecated">
  4530. <doc>
  4531. <![CDATA[Constructor with host, name, network topology, offset, length
  4532. and corrupt flag]]>
  4533. </doc>
  4534. </constructor>
  4535. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  4536. static="false" final="false" visibility="public"
  4537. deprecated="not deprecated">
  4538. </constructor>
  4539. <method name="getHosts" return="java.lang.String[]"
  4540. abstract="false" native="false" synchronized="false"
  4541. static="false" final="false" visibility="public"
  4542. deprecated="not deprecated">
  4543. <exception name="IOException" type="java.io.IOException"/>
  4544. <doc>
  4545. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  4546. </doc>
  4547. </method>
  4548. <method name="getCachedHosts" return="java.lang.String[]"
  4549. abstract="false" native="false" synchronized="false"
  4550. static="false" final="false" visibility="public"
  4551. deprecated="not deprecated">
  4552. <doc>
  4553. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  4554. </doc>
  4555. </method>
  4556. <method name="getNames" return="java.lang.String[]"
  4557. abstract="false" native="false" synchronized="false"
  4558. static="false" final="false" visibility="public"
  4559. deprecated="not deprecated">
  4560. <exception name="IOException" type="java.io.IOException"/>
  4561. <doc>
  4562. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  4563. </doc>
  4564. </method>
  4565. <method name="getTopologyPaths" return="java.lang.String[]"
  4566. abstract="false" native="false" synchronized="false"
  4567. static="false" final="false" visibility="public"
  4568. deprecated="not deprecated">
  4569. <exception name="IOException" type="java.io.IOException"/>
  4570. <doc>
  4571. <![CDATA[Get the list of network topology paths for each of the hosts.
  4572. The last component of the path is the "name" (IP:xferPort).]]>
  4573. </doc>
  4574. </method>
  4575. <method name="getOffset" return="long"
  4576. abstract="false" native="false" synchronized="false"
  4577. static="false" final="false" visibility="public"
  4578. deprecated="not deprecated">
  4579. <doc>
  4580. <![CDATA[Get the start offset of file associated with this block]]>
  4581. </doc>
  4582. </method>
  4583. <method name="getLength" return="long"
  4584. abstract="false" native="false" synchronized="false"
  4585. static="false" final="false" visibility="public"
  4586. deprecated="not deprecated">
  4587. <doc>
  4588. <![CDATA[Get the length of the block]]>
  4589. </doc>
  4590. </method>
  4591. <method name="isCorrupt" return="boolean"
  4592. abstract="false" native="false" synchronized="false"
  4593. static="false" final="false" visibility="public"
  4594. deprecated="not deprecated">
  4595. <doc>
  4596. <![CDATA[Get the corrupt flag.]]>
  4597. </doc>
  4598. </method>
  4599. <method name="setOffset"
  4600. abstract="false" native="false" synchronized="false"
  4601. static="false" final="false" visibility="public"
  4602. deprecated="not deprecated">
  4603. <param name="offset" type="long"/>
  4604. <doc>
  4605. <![CDATA[Set the start offset of file associated with this block]]>
  4606. </doc>
  4607. </method>
  4608. <method name="setLength"
  4609. abstract="false" native="false" synchronized="false"
  4610. static="false" final="false" visibility="public"
  4611. deprecated="not deprecated">
  4612. <param name="length" type="long"/>
  4613. <doc>
  4614. <![CDATA[Set the length of block]]>
  4615. </doc>
  4616. </method>
  4617. <method name="setCorrupt"
  4618. abstract="false" native="false" synchronized="false"
  4619. static="false" final="false" visibility="public"
  4620. deprecated="not deprecated">
  4621. <param name="corrupt" type="boolean"/>
  4622. <doc>
  4623. <![CDATA[Set the corrupt flag.]]>
  4624. </doc>
  4625. </method>
  4626. <method name="setHosts"
  4627. abstract="false" native="false" synchronized="false"
  4628. static="false" final="false" visibility="public"
  4629. deprecated="not deprecated">
  4630. <param name="hosts" type="java.lang.String[]"/>
  4631. <exception name="IOException" type="java.io.IOException"/>
  4632. <doc>
  4633. <![CDATA[Set the hosts hosting this block]]>
  4634. </doc>
  4635. </method>
  4636. <method name="setCachedHosts"
  4637. abstract="false" native="false" synchronized="false"
  4638. static="false" final="false" visibility="public"
  4639. deprecated="not deprecated">
  4640. <param name="cachedHosts" type="java.lang.String[]"/>
  4641. <doc>
  4642. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  4643. </doc>
  4644. </method>
  4645. <method name="setNames"
  4646. abstract="false" native="false" synchronized="false"
  4647. static="false" final="false" visibility="public"
  4648. deprecated="not deprecated">
  4649. <param name="names" type="java.lang.String[]"/>
  4650. <exception name="IOException" type="java.io.IOException"/>
  4651. <doc>
  4652. <![CDATA[Set the names (host:port) hosting this block]]>
  4653. </doc>
  4654. </method>
  4655. <method name="setTopologyPaths"
  4656. abstract="false" native="false" synchronized="false"
  4657. static="false" final="false" visibility="public"
  4658. deprecated="not deprecated">
  4659. <param name="topologyPaths" type="java.lang.String[]"/>
  4660. <exception name="IOException" type="java.io.IOException"/>
  4661. <doc>
  4662. <![CDATA[Set the network topology paths of the hosts]]>
  4663. </doc>
  4664. </method>
  4665. <method name="toString" return="java.lang.String"
  4666. abstract="false" native="false" synchronized="false"
  4667. static="false" final="false" visibility="public"
  4668. deprecated="not deprecated">
  4669. </method>
  4670. <doc>
  4671. <![CDATA[Represents the network location of a block, information about the hosts
  4672. that contain block replicas, and other block metadata (E.g. the file
  4673. offset associated with the block, length, whether it is corrupt, etc).]]>
  4674. </doc>
  4675. </class>
  4676. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  4677. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  4678. <interface name="ByteBufferReadable" abstract="true"
  4679. static="false" final="false" visibility="public"
  4680. deprecated="not deprecated">
  4681. <method name="read" return="int"
  4682. abstract="true" native="false" synchronized="false"
  4683. static="false" final="false" visibility="public"
  4684. deprecated="not deprecated">
  4685. <param name="buf" type="java.nio.ByteBuffer"/>
  4686. <exception name="IOException" type="java.io.IOException"/>
  4687. <doc>
  4688. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  4689. buf.limit(..) to control the size of the desired read.
  4690. <p/>
  4691. After a successful call, buf.position() will be advanced by the number
  4692. of bytes read and buf.limit() should be unchanged.
  4693. <p/>
  4694. In the case of an exception, the values of buf.position() and buf.limit()
  4695. are undefined, and callers should be prepared to recover from this
  4696. eventuality.
  4697. <p/>
  4698. Many implementations will throw {@link UnsupportedOperationException}, so
  4699. callers that are not confident in support for this method from the
  4700. underlying filesystem should be prepared to handle that exception.
  4701. <p/>
  4702. Implementations should treat 0-length requests as legitimate, and must not
  4703. signal an error upon their receipt.
  4704. @param buf
  4705. the ByteBuffer to receive the results of the read operation.
  4706. @return the number of bytes read, possibly zero, or -1 if
  4707. reach end-of-stream
  4708. @throws IOException
  4709. if there is some error performing the read]]>
  4710. </doc>
  4711. </method>
  4712. <doc>
  4713. <![CDATA[Implementers of this interface provide a read API that writes to a
  4714. ByteBuffer, not a byte[].]]>
  4715. </doc>
  4716. </interface>
  4717. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  4718. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  4719. <interface name="CanSetDropBehind" abstract="true"
  4720. static="false" final="false" visibility="public"
  4721. deprecated="not deprecated">
  4722. <method name="setDropBehind"
  4723. abstract="true" native="false" synchronized="false"
  4724. static="false" final="false" visibility="public"
  4725. deprecated="not deprecated">
  4726. <param name="dropCache" type="java.lang.Boolean"/>
  4727. <exception name="IOException" type="java.io.IOException"/>
  4728. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4729. <doc>
  4730. <![CDATA[Configure whether the stream should drop the cache.
  4731. @param dropCache Whether to drop the cache. null means to use the
  4732. default value.
  4733. @throws IOException If there was an error changing the dropBehind
  4734. setting.
  4735. UnsupportedOperationException If this stream doesn't support
  4736. setting the drop-behind.]]>
  4737. </doc>
  4738. </method>
  4739. </interface>
  4740. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  4741. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  4742. <interface name="CanSetReadahead" abstract="true"
  4743. static="false" final="false" visibility="public"
  4744. deprecated="not deprecated">
  4745. <method name="setReadahead"
  4746. abstract="true" native="false" synchronized="false"
  4747. static="false" final="false" visibility="public"
  4748. deprecated="not deprecated">
  4749. <param name="readahead" type="java.lang.Long"/>
  4750. <exception name="IOException" type="java.io.IOException"/>
  4751. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  4752. <doc>
  4753. <![CDATA[Set the readahead on this stream.
  4754. @param readahead The readahead to use. null means to use the default.
  4755. @throws IOException If there was an error changing the dropBehind
  4756. setting.
  4757. UnsupportedOperationException If this stream doesn't support
  4758. setting readahead.]]>
  4759. </doc>
  4760. </method>
  4761. </interface>
  4762. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  4763. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  4764. <class name="ChecksumException" extends="java.io.IOException"
  4765. abstract="false"
  4766. static="false" final="false" visibility="public"
  4767. deprecated="not deprecated">
  4768. <constructor name="ChecksumException" type="java.lang.String, long"
  4769. static="false" final="false" visibility="public"
  4770. deprecated="not deprecated">
  4771. </constructor>
  4772. <method name="getPos" return="long"
  4773. abstract="false" native="false" synchronized="false"
  4774. static="false" final="false" visibility="public"
  4775. deprecated="not deprecated">
  4776. </method>
  4777. <doc>
  4778. <![CDATA[Thrown for checksum errors.]]>
  4779. </doc>
  4780. </class>
  4781. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  4782. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  4783. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  4784. abstract="true"
  4785. static="false" final="false" visibility="public"
  4786. deprecated="not deprecated">
  4787. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4788. static="false" final="false" visibility="public"
  4789. deprecated="not deprecated">
  4790. </constructor>
  4791. <method name="getApproxChkSumLength" return="double"
  4792. abstract="false" native="false" synchronized="false"
  4793. static="true" final="false" visibility="public"
  4794. deprecated="not deprecated">
  4795. <param name="size" type="long"/>
  4796. </method>
  4797. <method name="setConf"
  4798. abstract="false" native="false" synchronized="false"
  4799. static="false" final="false" visibility="public"
  4800. deprecated="not deprecated">
  4801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4802. </method>
  4803. <method name="setVerifyChecksum"
  4804. abstract="false" native="false" synchronized="false"
  4805. static="false" final="false" visibility="public"
  4806. deprecated="not deprecated">
  4807. <param name="verifyChecksum" type="boolean"/>
  4808. <doc>
  4809. <![CDATA[Set whether to verify checksum.]]>
  4810. </doc>
  4811. </method>
  4812. <method name="setWriteChecksum"
  4813. abstract="false" native="false" synchronized="false"
  4814. static="false" final="false" visibility="public"
  4815. deprecated="not deprecated">
  4816. <param name="writeChecksum" type="boolean"/>
  4817. </method>
  4818. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  4819. abstract="false" native="false" synchronized="false"
  4820. static="false" final="false" visibility="public"
  4821. deprecated="not deprecated">
  4822. <doc>
  4823. <![CDATA[get the raw file system]]>
  4824. </doc>
  4825. </method>
  4826. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  4827. abstract="false" native="false" synchronized="false"
  4828. static="false" final="false" visibility="public"
  4829. deprecated="not deprecated">
  4830. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4831. <doc>
  4832. <![CDATA[Return the name of the checksum file associated with a file.]]>
  4833. </doc>
  4834. </method>
  4835. <method name="isChecksumFile" return="boolean"
  4836. abstract="false" native="false" synchronized="false"
  4837. static="true" final="false" visibility="public"
  4838. deprecated="not deprecated">
  4839. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4840. <doc>
  4841. <![CDATA[Return true iff file is a checksum file name.]]>
  4842. </doc>
  4843. </method>
  4844. <method name="getChecksumFileLength" return="long"
  4845. abstract="false" native="false" synchronized="false"
  4846. static="false" final="false" visibility="public"
  4847. deprecated="not deprecated">
  4848. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4849. <param name="fileSize" type="long"/>
  4850. <doc>
  4851. <![CDATA[Return the length of the checksum file given the size of the
  4852. actual file.]]>
  4853. </doc>
  4854. </method>
  4855. <method name="getBytesPerSum" return="int"
  4856. abstract="false" native="false" synchronized="false"
  4857. static="false" final="false" visibility="public"
  4858. deprecated="not deprecated">
  4859. <doc>
  4860. <![CDATA[Return the bytes Per Checksum]]>
  4861. </doc>
  4862. </method>
  4863. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4864. abstract="false" native="false" synchronized="false"
  4865. static="false" final="false" visibility="public"
  4866. deprecated="not deprecated">
  4867. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4868. <param name="bufferSize" type="int"/>
  4869. <exception name="IOException" type="java.io.IOException"/>
  4870. <doc>
  4871. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4872. @param f the file name to open
  4873. @param bufferSize the size of the buffer to be used.]]>
  4874. </doc>
  4875. </method>
  4876. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4877. abstract="false" native="false" synchronized="false"
  4878. static="false" final="false" visibility="public"
  4879. deprecated="not deprecated">
  4880. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4881. <param name="bufferSize" type="int"/>
  4882. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4883. <exception name="IOException" type="java.io.IOException"/>
  4884. </method>
  4885. <method name="truncate" return="boolean"
  4886. abstract="false" native="false" synchronized="false"
  4887. static="false" final="false" visibility="public"
  4888. deprecated="not deprecated">
  4889. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4890. <param name="newLength" type="long"/>
  4891. <exception name="IOException" type="java.io.IOException"/>
  4892. </method>
  4893. <method name="getChecksumLength" return="long"
  4894. abstract="false" native="false" synchronized="false"
  4895. static="true" final="false" visibility="public"
  4896. deprecated="not deprecated">
  4897. <param name="size" type="long"/>
  4898. <param name="bytesPerSum" type="int"/>
  4899. <doc>
  4900. <![CDATA[Calculated the length of the checksum file in bytes.
  4901. @param size the length of the data file in bytes
  4902. @param bytesPerSum the number of bytes in a checksum block
  4903. @return the number of bytes in the checksum file]]>
  4904. </doc>
  4905. </method>
  4906. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4907. abstract="false" native="false" synchronized="false"
  4908. static="false" final="false" visibility="public"
  4909. deprecated="not deprecated">
  4910. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4911. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4912. <param name="overwrite" type="boolean"/>
  4913. <param name="bufferSize" type="int"/>
  4914. <param name="replication" type="short"/>
  4915. <param name="blockSize" type="long"/>
  4916. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4917. <exception name="IOException" type="java.io.IOException"/>
  4918. </method>
  4919. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  4920. abstract="false" native="false" synchronized="false"
  4921. static="false" final="false" visibility="public"
  4922. deprecated="not deprecated">
  4923. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4924. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4925. <param name="overwrite" type="boolean"/>
  4926. <param name="bufferSize" type="int"/>
  4927. <param name="replication" type="short"/>
  4928. <param name="blockSize" type="long"/>
  4929. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4930. <exception name="IOException" type="java.io.IOException"/>
  4931. </method>
  4932. <method name="setReplication" return="boolean"
  4933. abstract="false" native="false" synchronized="false"
  4934. static="false" final="false" visibility="public"
  4935. deprecated="not deprecated">
  4936. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4937. <param name="replication" type="short"/>
  4938. <exception name="IOException" type="java.io.IOException"/>
  4939. <doc>
  4940. <![CDATA[Set replication for an existing file.
  4941. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  4942. @param src file name
  4943. @param replication new replication
  4944. @throws IOException
  4945. @return true if successful;
  4946. false if file does not exist or is a directory]]>
  4947. </doc>
  4948. </method>
  4949. <method name="rename" return="boolean"
  4950. abstract="false" native="false" synchronized="false"
  4951. static="false" final="false" visibility="public"
  4952. deprecated="not deprecated">
  4953. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4954. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4955. <exception name="IOException" type="java.io.IOException"/>
  4956. <doc>
  4957. <![CDATA[Rename files/dirs]]>
  4958. </doc>
  4959. </method>
  4960. <method name="delete" return="boolean"
  4961. abstract="false" native="false" synchronized="false"
  4962. static="false" final="false" visibility="public"
  4963. deprecated="not deprecated">
  4964. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4965. <param name="recursive" type="boolean"/>
  4966. <exception name="IOException" type="java.io.IOException"/>
  4967. <doc>
  4968. <![CDATA[Implement the delete(Path, boolean) in checksum
  4969. file system.]]>
  4970. </doc>
  4971. </method>
  4972. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4973. abstract="false" native="false" synchronized="false"
  4974. static="false" final="false" visibility="public"
  4975. deprecated="not deprecated">
  4976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4977. <exception name="IOException" type="java.io.IOException"/>
  4978. <doc>
  4979. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4980. a directory.
  4981. @param f
  4982. given path
  4983. @return the statuses of the files/directories in the given path
  4984. @throws IOException]]>
  4985. </doc>
  4986. </method>
  4987. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  4988. abstract="false" native="false" synchronized="false"
  4989. static="false" final="false" visibility="public"
  4990. deprecated="not deprecated">
  4991. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4992. <exception name="IOException" type="java.io.IOException"/>
  4993. <doc>
  4994. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4995. a directory.
  4996. @param f
  4997. given path
  4998. @return the statuses of the files/directories in the given patch
  4999. @throws IOException]]>
  5000. </doc>
  5001. </method>
  5002. <method name="mkdirs" return="boolean"
  5003. abstract="false" native="false" synchronized="false"
  5004. static="false" final="false" visibility="public"
  5005. deprecated="not deprecated">
  5006. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5007. <exception name="IOException" type="java.io.IOException"/>
  5008. </method>
  5009. <method name="copyFromLocalFile"
  5010. abstract="false" native="false" synchronized="false"
  5011. static="false" final="false" visibility="public"
  5012. deprecated="not deprecated">
  5013. <param name="delSrc" type="boolean"/>
  5014. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5015. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5016. <exception name="IOException" type="java.io.IOException"/>
  5017. </method>
  5018. <method name="copyToLocalFile"
  5019. abstract="false" native="false" synchronized="false"
  5020. static="false" final="false" visibility="public"
  5021. deprecated="not deprecated">
  5022. <param name="delSrc" type="boolean"/>
  5023. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5024. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5025. <exception name="IOException" type="java.io.IOException"/>
  5026. <doc>
  5027. <![CDATA[The src file is under FS, and the dst is on the local disk.
  5028. Copy it from FS control to the local dst name.]]>
  5029. </doc>
  5030. </method>
  5031. <method name="copyToLocalFile"
  5032. abstract="false" native="false" synchronized="false"
  5033. static="false" final="false" visibility="public"
  5034. deprecated="not deprecated">
  5035. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5036. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5037. <param name="copyCrc" type="boolean"/>
  5038. <exception name="IOException" type="java.io.IOException"/>
  5039. <doc>
  5040. <![CDATA[The src file is under FS, and the dst is on the local disk.
  5041. Copy it from FS control to the local dst name.
  5042. If src and dst are directories, the copyCrc parameter
  5043. determines whether to copy CRC files.]]>
  5044. </doc>
  5045. </method>
  5046. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5047. abstract="false" native="false" synchronized="false"
  5048. static="false" final="false" visibility="public"
  5049. deprecated="not deprecated">
  5050. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5051. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5052. <exception name="IOException" type="java.io.IOException"/>
  5053. </method>
  5054. <method name="completeLocalOutput"
  5055. abstract="false" native="false" synchronized="false"
  5056. static="false" final="false" visibility="public"
  5057. deprecated="not deprecated">
  5058. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5059. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5060. <exception name="IOException" type="java.io.IOException"/>
  5061. </method>
  5062. <method name="reportChecksumFailure" return="boolean"
  5063. abstract="false" native="false" synchronized="false"
  5064. static="false" final="false" visibility="public"
  5065. deprecated="not deprecated">
  5066. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5067. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5068. <param name="inPos" type="long"/>
  5069. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5070. <param name="sumsPos" type="long"/>
  5071. <doc>
  5072. <![CDATA[Report a checksum error to the file system.
  5073. @param f the file name containing the error
  5074. @param in the stream open on the file
  5075. @param inPos the position of the beginning of the bad data in the file
  5076. @param sums the stream open on the checksum file
  5077. @param sumsPos the position of the beginning of the bad data in the checksum file
  5078. @return if retry is neccessary]]>
  5079. </doc>
  5080. </method>
  5081. <doc>
  5082. <![CDATA[Abstract Checksumed FileSystem.
  5083. It provide a basic implementation of a Checksumed FileSystem,
  5084. which creates a checksum file for each raw file.
  5085. It generates & verifies checksums at the client side.]]>
  5086. </doc>
  5087. </class>
  5088. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  5089. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5090. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  5091. abstract="false"
  5092. static="false" final="false" visibility="public"
  5093. deprecated="not deprecated">
  5094. <constructor name="CommonConfigurationKeysPublic"
  5095. static="false" final="false" visibility="public"
  5096. deprecated="not deprecated">
  5097. </constructor>
  5098. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  5099. transient="false" volatile="false"
  5100. static="true" final="true" visibility="public"
  5101. deprecated="not deprecated">
  5102. <doc>
  5103. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5104. </doc>
  5105. </field>
  5106. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  5107. transient="false" volatile="false"
  5108. static="true" final="true" visibility="public"
  5109. deprecated="not deprecated">
  5110. <doc>
  5111. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  5112. </doc>
  5113. </field>
  5114. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  5115. transient="false" volatile="false"
  5116. static="true" final="true" visibility="public"
  5117. deprecated="not deprecated">
  5118. <doc>
  5119. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5120. </doc>
  5121. </field>
  5122. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  5123. transient="false" volatile="false"
  5124. static="true" final="true" visibility="public"
  5125. deprecated="not deprecated">
  5126. <doc>
  5127. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  5128. </doc>
  5129. </field>
  5130. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  5131. transient="false" volatile="false"
  5132. static="true" final="true" visibility="public"
  5133. deprecated="not deprecated">
  5134. <doc>
  5135. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5136. </doc>
  5137. </field>
  5138. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  5139. transient="false" volatile="false"
  5140. static="true" final="true" visibility="public"
  5141. deprecated="not deprecated">
  5142. <doc>
  5143. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  5144. </doc>
  5145. </field>
  5146. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  5147. transient="false" volatile="false"
  5148. static="true" final="true" visibility="public"
  5149. deprecated="not deprecated">
  5150. <doc>
  5151. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5152. </doc>
  5153. </field>
  5154. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  5155. transient="false" volatile="false"
  5156. static="true" final="true" visibility="public"
  5157. deprecated="not deprecated">
  5158. <doc>
  5159. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  5160. </doc>
  5161. </field>
  5162. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  5163. transient="false" volatile="false"
  5164. static="true" final="true" visibility="public"
  5165. deprecated="not deprecated">
  5166. <doc>
  5167. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5168. </doc>
  5169. </field>
  5170. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  5171. transient="false" volatile="false"
  5172. static="true" final="true" visibility="public"
  5173. deprecated="not deprecated">
  5174. <doc>
  5175. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  5176. </doc>
  5177. </field>
  5178. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  5179. transient="false" volatile="false"
  5180. static="true" final="true" visibility="public"
  5181. deprecated="not deprecated">
  5182. <doc>
  5183. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5184. </doc>
  5185. </field>
  5186. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  5187. transient="false" volatile="false"
  5188. static="true" final="true" visibility="public"
  5189. deprecated="not deprecated">
  5190. <doc>
  5191. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  5192. </doc>
  5193. </field>
  5194. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  5195. transient="false" volatile="false"
  5196. static="true" final="true" visibility="public"
  5197. deprecated="not deprecated">
  5198. <doc>
  5199. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5200. </doc>
  5201. </field>
  5202. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  5203. transient="false" volatile="false"
  5204. static="true" final="true" visibility="public"
  5205. deprecated="not deprecated">
  5206. <doc>
  5207. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5208. </doc>
  5209. </field>
  5210. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  5211. transient="false" volatile="false"
  5212. static="true" final="true" visibility="public"
  5213. deprecated="not deprecated">
  5214. <doc>
  5215. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5216. </doc>
  5217. </field>
  5218. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  5219. transient="false" volatile="false"
  5220. static="true" final="true" visibility="public"
  5221. deprecated="not deprecated">
  5222. <doc>
  5223. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5224. </doc>
  5225. </field>
  5226. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  5227. transient="false" volatile="false"
  5228. static="true" final="true" visibility="public"
  5229. deprecated="not deprecated">
  5230. </field>
  5231. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  5232. transient="false" volatile="false"
  5233. static="true" final="true" visibility="public"
  5234. deprecated="not deprecated">
  5235. <doc>
  5236. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5237. </doc>
  5238. </field>
  5239. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  5240. transient="false" volatile="false"
  5241. static="true" final="true" visibility="public"
  5242. deprecated="not deprecated">
  5243. <doc>
  5244. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  5245. </doc>
  5246. </field>
  5247. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  5248. transient="false" volatile="false"
  5249. static="true" final="true" visibility="public"
  5250. deprecated="not deprecated">
  5251. <doc>
  5252. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  5253. </doc>
  5254. </field>
  5255. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  5256. transient="false" volatile="false"
  5257. static="true" final="true" visibility="public"
  5258. deprecated="not deprecated">
  5259. <doc>
  5260. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5261. </doc>
  5262. </field>
  5263. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  5264. transient="false" volatile="false"
  5265. static="true" final="true" visibility="public"
  5266. deprecated="not deprecated">
  5267. <doc>
  5268. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  5269. </doc>
  5270. </field>
  5271. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  5272. transient="false" volatile="false"
  5273. static="true" final="true" visibility="public"
  5274. deprecated="not deprecated">
  5275. <doc>
  5276. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5277. </doc>
  5278. </field>
  5279. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  5280. transient="false" volatile="false"
  5281. static="true" final="true" visibility="public"
  5282. deprecated="not deprecated">
  5283. <doc>
  5284. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5285. </doc>
  5286. </field>
  5287. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  5288. transient="false" volatile="false"
  5289. static="true" final="true" visibility="public"
  5290. deprecated="not deprecated">
  5291. <doc>
  5292. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5293. </doc>
  5294. </field>
  5295. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  5296. transient="false" volatile="false"
  5297. static="true" final="true" visibility="public"
  5298. deprecated="not deprecated">
  5299. <doc>
  5300. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5301. </doc>
  5302. </field>
  5303. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  5304. transient="false" volatile="false"
  5305. static="true" final="true" visibility="public"
  5306. deprecated="not deprecated">
  5307. <doc>
  5308. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  5309. </doc>
  5310. </field>
  5311. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  5312. transient="false" volatile="false"
  5313. static="true" final="true" visibility="public"
  5314. deprecated="not deprecated">
  5315. <doc>
  5316. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5317. </doc>
  5318. </field>
  5319. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  5320. transient="false" volatile="false"
  5321. static="true" final="true" visibility="public"
  5322. deprecated="not deprecated">
  5323. <doc>
  5324. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  5325. </doc>
  5326. </field>
  5327. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  5328. transient="false" volatile="false"
  5329. static="true" final="true" visibility="public"
  5330. deprecated="not deprecated">
  5331. <doc>
  5332. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5333. </doc>
  5334. </field>
  5335. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  5336. transient="false" volatile="false"
  5337. static="true" final="true" visibility="public"
  5338. deprecated="not deprecated">
  5339. <doc>
  5340. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  5341. </doc>
  5342. </field>
  5343. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  5344. transient="false" volatile="false"
  5345. static="true" final="true" visibility="public"
  5346. deprecated="not deprecated">
  5347. <doc>
  5348. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  5349. </doc>
  5350. </field>
  5351. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  5352. transient="false" volatile="false"
  5353. static="true" final="true" visibility="public"
  5354. deprecated="not deprecated">
  5355. <doc>
  5356. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5357. </doc>
  5358. </field>
  5359. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  5360. transient="false" volatile="false"
  5361. static="true" final="true" visibility="public"
  5362. deprecated="not deprecated">
  5363. <doc>
  5364. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  5365. </doc>
  5366. </field>
  5367. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  5368. transient="false" volatile="false"
  5369. static="true" final="true" visibility="public"
  5370. deprecated="not deprecated">
  5371. <doc>
  5372. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5373. </doc>
  5374. </field>
  5375. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  5376. transient="false" volatile="false"
  5377. static="true" final="true" visibility="public"
  5378. deprecated="not deprecated">
  5379. <doc>
  5380. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  5381. </doc>
  5382. </field>
  5383. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  5384. transient="false" volatile="false"
  5385. static="true" final="true" visibility="public"
  5386. deprecated="not deprecated">
  5387. <doc>
  5388. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5389. </doc>
  5390. </field>
  5391. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  5392. transient="false" volatile="false"
  5393. static="true" final="true" visibility="public"
  5394. deprecated="not deprecated">
  5395. <doc>
  5396. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  5397. </doc>
  5398. </field>
  5399. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  5400. transient="false" volatile="false"
  5401. static="true" final="true" visibility="public"
  5402. deprecated="not deprecated">
  5403. <doc>
  5404. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5405. </doc>
  5406. </field>
  5407. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  5408. transient="false" volatile="false"
  5409. static="true" final="true" visibility="public"
  5410. deprecated="not deprecated">
  5411. <doc>
  5412. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  5413. </doc>
  5414. </field>
  5415. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  5416. transient="false" volatile="false"
  5417. static="true" final="true" visibility="public"
  5418. deprecated="not deprecated">
  5419. <doc>
  5420. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5421. </doc>
  5422. </field>
  5423. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  5424. transient="false" volatile="false"
  5425. static="true" final="true" visibility="public"
  5426. deprecated="not deprecated">
  5427. <doc>
  5428. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  5429. </doc>
  5430. </field>
  5431. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  5432. transient="false" volatile="false"
  5433. static="true" final="true" visibility="public"
  5434. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  5435. in mapred-default.xml
  5436. See https://issues.apache.org/jira/browse/HADOOP-6801">
  5437. <doc>
  5438. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  5439. in mapred-default.xml
  5440. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  5441. </doc>
  5442. </field>
  5443. <field name="IO_SORT_MB_DEFAULT" type="int"
  5444. transient="false" volatile="false"
  5445. static="true" final="true" visibility="public"
  5446. deprecated="not deprecated">
  5447. <doc>
  5448. <![CDATA[Default value for IO_SORT_MB_DEFAULT]]>
  5449. </doc>
  5450. </field>
  5451. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  5452. transient="false" volatile="false"
  5453. static="true" final="true" visibility="public"
  5454. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  5455. in mapred-default.xml
  5456. See https://issues.apache.org/jira/browse/HADOOP-6801">
  5457. <doc>
  5458. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  5459. in mapred-default.xml
  5460. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  5461. </doc>
  5462. </field>
  5463. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  5464. transient="false" volatile="false"
  5465. static="true" final="true" visibility="public"
  5466. deprecated="not deprecated">
  5467. <doc>
  5468. <![CDATA[Default value for IO_SORT_FACTOR_DEFAULT]]>
  5469. </doc>
  5470. </field>
  5471. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  5472. transient="false" volatile="false"
  5473. static="true" final="true" visibility="public"
  5474. deprecated="not deprecated">
  5475. <doc>
  5476. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5477. </doc>
  5478. </field>
  5479. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  5480. transient="false" volatile="false"
  5481. static="true" final="true" visibility="public"
  5482. deprecated="not deprecated">
  5483. <doc>
  5484. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5485. </doc>
  5486. </field>
  5487. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  5488. transient="false" volatile="false"
  5489. static="true" final="true" visibility="public"
  5490. deprecated="not deprecated">
  5491. <doc>
  5492. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  5493. </doc>
  5494. </field>
  5495. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5496. transient="false" volatile="false"
  5497. static="true" final="true" visibility="public"
  5498. deprecated="not deprecated">
  5499. <doc>
  5500. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5501. </doc>
  5502. </field>
  5503. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  5504. transient="false" volatile="false"
  5505. static="true" final="true" visibility="public"
  5506. deprecated="not deprecated">
  5507. <doc>
  5508. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  5509. </doc>
  5510. </field>
  5511. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  5512. transient="false" volatile="false"
  5513. static="true" final="true" visibility="public"
  5514. deprecated="not deprecated">
  5515. <doc>
  5516. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5517. </doc>
  5518. </field>
  5519. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  5520. transient="false" volatile="false"
  5521. static="true" final="true" visibility="public"
  5522. deprecated="not deprecated">
  5523. <doc>
  5524. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  5525. </doc>
  5526. </field>
  5527. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  5528. transient="false" volatile="false"
  5529. static="true" final="true" visibility="public"
  5530. deprecated="not deprecated">
  5531. <doc>
  5532. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5533. </doc>
  5534. </field>
  5535. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  5536. transient="false" volatile="false"
  5537. static="true" final="true" visibility="public"
  5538. deprecated="not deprecated">
  5539. <doc>
  5540. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  5541. </doc>
  5542. </field>
  5543. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  5544. transient="false" volatile="false"
  5545. static="true" final="true" visibility="public"
  5546. deprecated="not deprecated">
  5547. <doc>
  5548. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5549. </doc>
  5550. </field>
  5551. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  5552. transient="false" volatile="false"
  5553. static="true" final="true" visibility="public"
  5554. deprecated="not deprecated">
  5555. <doc>
  5556. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  5557. </doc>
  5558. </field>
  5559. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  5560. transient="false" volatile="false"
  5561. static="true" final="true" visibility="public"
  5562. deprecated="not deprecated">
  5563. <doc>
  5564. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5565. </doc>
  5566. </field>
  5567. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  5568. transient="false" volatile="false"
  5569. static="true" final="true" visibility="public"
  5570. deprecated="not deprecated">
  5571. <doc>
  5572. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  5573. </doc>
  5574. </field>
  5575. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  5576. transient="false" volatile="false"
  5577. static="true" final="true" visibility="public"
  5578. deprecated="not deprecated">
  5579. <doc>
  5580. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5581. </doc>
  5582. </field>
  5583. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  5584. transient="false" volatile="false"
  5585. static="true" final="true" visibility="public"
  5586. deprecated="not deprecated">
  5587. <doc>
  5588. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  5589. </doc>
  5590. </field>
  5591. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  5592. transient="false" volatile="false"
  5593. static="true" final="true" visibility="public"
  5594. deprecated="not deprecated">
  5595. <doc>
  5596. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5597. </doc>
  5598. </field>
  5599. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  5600. transient="false" volatile="false"
  5601. static="true" final="true" visibility="public"
  5602. deprecated="not deprecated">
  5603. <doc>
  5604. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  5605. </doc>
  5606. </field>
  5607. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  5608. transient="false" volatile="false"
  5609. static="true" final="true" visibility="public"
  5610. deprecated="not deprecated">
  5611. <doc>
  5612. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5613. </doc>
  5614. </field>
  5615. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  5616. transient="false" volatile="false"
  5617. static="true" final="true" visibility="public"
  5618. deprecated="not deprecated">
  5619. <doc>
  5620. <![CDATA[Defalt value for IPC_CLIENT_TCPNODELAY_KEY]]>
  5621. </doc>
  5622. </field>
  5623. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  5624. transient="false" volatile="false"
  5625. static="true" final="true" visibility="public"
  5626. deprecated="not deprecated">
  5627. <doc>
  5628. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5629. </doc>
  5630. </field>
  5631. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  5632. transient="false" volatile="false"
  5633. static="true" final="true" visibility="public"
  5634. deprecated="not deprecated">
  5635. <doc>
  5636. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  5637. </doc>
  5638. </field>
  5639. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  5640. transient="false" volatile="false"
  5641. static="true" final="true" visibility="public"
  5642. deprecated="not deprecated">
  5643. <doc>
  5644. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5645. </doc>
  5646. </field>
  5647. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  5648. transient="false" volatile="false"
  5649. static="true" final="true" visibility="public"
  5650. deprecated="not deprecated">
  5651. <doc>
  5652. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  5653. </doc>
  5654. </field>
  5655. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  5656. transient="false" volatile="false"
  5657. static="true" final="true" visibility="public"
  5658. deprecated="not deprecated">
  5659. <doc>
  5660. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5661. </doc>
  5662. </field>
  5663. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  5664. transient="false" volatile="false"
  5665. static="true" final="true" visibility="public"
  5666. deprecated="not deprecated">
  5667. <doc>
  5668. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  5669. </doc>
  5670. </field>
  5671. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  5672. transient="false" volatile="false"
  5673. static="true" final="true" visibility="public"
  5674. deprecated="not deprecated">
  5675. <doc>
  5676. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5677. </doc>
  5678. </field>
  5679. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  5680. transient="false" volatile="false"
  5681. static="true" final="true" visibility="public"
  5682. deprecated="not deprecated">
  5683. <doc>
  5684. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  5685. </doc>
  5686. </field>
  5687. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  5688. transient="false" volatile="false"
  5689. static="true" final="true" visibility="public"
  5690. deprecated="not deprecated">
  5691. <doc>
  5692. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5693. </doc>
  5694. </field>
  5695. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  5696. transient="false" volatile="false"
  5697. static="true" final="true" visibility="public"
  5698. deprecated="not deprecated">
  5699. <doc>
  5700. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  5701. </doc>
  5702. </field>
  5703. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  5704. transient="false" volatile="false"
  5705. static="true" final="true" visibility="public"
  5706. deprecated="not deprecated">
  5707. <doc>
  5708. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5709. </doc>
  5710. </field>
  5711. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  5712. transient="false" volatile="false"
  5713. static="true" final="true" visibility="public"
  5714. deprecated="not deprecated">
  5715. </field>
  5716. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  5717. transient="false" volatile="false"
  5718. static="true" final="true" visibility="public"
  5719. deprecated="not deprecated">
  5720. <doc>
  5721. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5722. </doc>
  5723. </field>
  5724. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  5725. transient="false" volatile="false"
  5726. static="true" final="true" visibility="public"
  5727. deprecated="not deprecated">
  5728. <doc>
  5729. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5730. </doc>
  5731. </field>
  5732. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  5733. transient="false" volatile="false"
  5734. static="true" final="true" visibility="public"
  5735. deprecated="not deprecated">
  5736. <doc>
  5737. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  5738. </doc>
  5739. </field>
  5740. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  5741. transient="false" volatile="false"
  5742. static="true" final="true" visibility="public"
  5743. deprecated="not deprecated">
  5744. <doc>
  5745. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5746. </doc>
  5747. </field>
  5748. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  5749. transient="false" volatile="false"
  5750. static="true" final="true" visibility="public"
  5751. deprecated="not deprecated">
  5752. <doc>
  5753. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5754. </doc>
  5755. </field>
  5756. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  5757. transient="false" volatile="false"
  5758. static="true" final="true" visibility="public"
  5759. deprecated="not deprecated">
  5760. <doc>
  5761. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5762. </doc>
  5763. </field>
  5764. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  5765. transient="false" volatile="false"
  5766. static="true" final="true" visibility="public"
  5767. deprecated="not deprecated">
  5768. <doc>
  5769. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5770. </doc>
  5771. </field>
  5772. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  5773. transient="false" volatile="false"
  5774. static="true" final="true" visibility="public"
  5775. deprecated="not deprecated">
  5776. <doc>
  5777. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5778. </doc>
  5779. </field>
  5780. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  5781. transient="false" volatile="false"
  5782. static="true" final="true" visibility="public"
  5783. deprecated="not deprecated">
  5784. <doc>
  5785. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5786. </doc>
  5787. </field>
  5788. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  5789. transient="false" volatile="false"
  5790. static="true" final="true" visibility="public"
  5791. deprecated="not deprecated">
  5792. </field>
  5793. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5794. transient="false" volatile="false"
  5795. static="true" final="true" visibility="public"
  5796. deprecated="not deprecated">
  5797. <doc>
  5798. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5799. </doc>
  5800. </field>
  5801. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  5802. transient="false" volatile="false"
  5803. static="true" final="true" visibility="public"
  5804. deprecated="not deprecated">
  5805. <doc>
  5806. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5807. </doc>
  5808. </field>
  5809. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5810. transient="false" volatile="false"
  5811. static="true" final="true" visibility="public"
  5812. deprecated="not deprecated">
  5813. <doc>
  5814. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5815. </doc>
  5816. </field>
  5817. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5818. transient="false" volatile="false"
  5819. static="true" final="true" visibility="public"
  5820. deprecated="not deprecated">
  5821. <doc>
  5822. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5823. </doc>
  5824. </field>
  5825. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5826. transient="false" volatile="false"
  5827. static="true" final="true" visibility="public"
  5828. deprecated="not deprecated">
  5829. <doc>
  5830. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5831. </doc>
  5832. </field>
  5833. <field name="HADOOP_SSL_ENABLED_KEY" type="java.lang.String"
  5834. transient="false" volatile="false"
  5835. static="true" final="true" visibility="public"
  5836. deprecated="not deprecated">
  5837. </field>
  5838. <field name="HADOOP_SSL_ENABLED_DEFAULT" type="boolean"
  5839. transient="false" volatile="false"
  5840. static="true" final="true" visibility="public"
  5841. deprecated="not deprecated">
  5842. </field>
  5843. <field name="HTTP_POLICY_HTTP_ONLY" type="java.lang.String"
  5844. transient="false" volatile="false"
  5845. static="true" final="true" visibility="public"
  5846. deprecated="not deprecated">
  5847. </field>
  5848. <field name="HTTP_POLICY_HTTPS_ONLY" type="java.lang.String"
  5849. transient="false" volatile="false"
  5850. static="true" final="true" visibility="public"
  5851. deprecated="not deprecated">
  5852. </field>
  5853. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5854. transient="false" volatile="false"
  5855. static="true" final="true" visibility="public"
  5856. deprecated="not deprecated">
  5857. <doc>
  5858. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5859. </doc>
  5860. </field>
  5861. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5862. transient="false" volatile="false"
  5863. static="true" final="true" visibility="public"
  5864. deprecated="not deprecated">
  5865. <doc>
  5866. <![CDATA[Class to override Sasl Properties for a connection]]>
  5867. </doc>
  5868. </field>
  5869. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5870. transient="false" volatile="false"
  5871. static="true" final="true" visibility="public"
  5872. deprecated="not deprecated">
  5873. </field>
  5874. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  5875. transient="false" volatile="false"
  5876. static="true" final="true" visibility="public"
  5877. deprecated="not deprecated">
  5878. <doc>
  5879. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5880. </doc>
  5881. </field>
  5882. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5883. transient="false" volatile="false"
  5884. static="true" final="true" visibility="public"
  5885. deprecated="not deprecated">
  5886. </field>
  5887. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5888. transient="false" volatile="false"
  5889. static="true" final="true" visibility="public"
  5890. deprecated="not deprecated">
  5891. <doc>
  5892. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5893. </doc>
  5894. </field>
  5895. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  5896. transient="false" volatile="false"
  5897. static="true" final="true" visibility="public"
  5898. deprecated="not deprecated">
  5899. <doc>
  5900. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5901. </doc>
  5902. </field>
  5903. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  5904. transient="false" volatile="false"
  5905. static="true" final="true" visibility="public"
  5906. deprecated="not deprecated">
  5907. <doc>
  5908. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5909. </doc>
  5910. </field>
  5911. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5912. transient="false" volatile="false"
  5913. static="true" final="true" visibility="public"
  5914. deprecated="not deprecated">
  5915. <doc>
  5916. <![CDATA[Class to override Impersonation provider]]>
  5917. </doc>
  5918. </field>
  5919. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5920. transient="false" volatile="false"
  5921. static="true" final="true" visibility="public"
  5922. deprecated="not deprecated">
  5923. <doc>
  5924. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5925. </doc>
  5926. </field>
  5927. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5928. transient="false" volatile="false"
  5929. static="true" final="true" visibility="public"
  5930. deprecated="not deprecated">
  5931. <doc>
  5932. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5933. </doc>
  5934. </field>
  5935. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5936. transient="false" volatile="false"
  5937. static="true" final="true" visibility="public"
  5938. deprecated="not deprecated">
  5939. <doc>
  5940. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5941. </doc>
  5942. </field>
  5943. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5944. transient="false" volatile="false"
  5945. static="true" final="true" visibility="public"
  5946. deprecated="not deprecated">
  5947. <doc>
  5948. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5949. </doc>
  5950. </field>
  5951. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5952. transient="false" volatile="false"
  5953. static="true" final="true" visibility="public"
  5954. deprecated="not deprecated">
  5955. <doc>
  5956. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5957. </doc>
  5958. </field>
  5959. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5960. transient="false" volatile="false"
  5961. static="true" final="true" visibility="public"
  5962. deprecated="not deprecated">
  5963. <doc>
  5964. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5965. </doc>
  5966. </field>
  5967. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5968. transient="false" volatile="false"
  5969. static="true" final="true" visibility="public"
  5970. deprecated="not deprecated">
  5971. <doc>
  5972. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5973. </doc>
  5974. </field>
  5975. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5976. transient="false" volatile="false"
  5977. static="true" final="true" visibility="public"
  5978. deprecated="not deprecated">
  5979. <doc>
  5980. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5981. </doc>
  5982. </field>
  5983. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5984. transient="false" volatile="false"
  5985. static="true" final="true" visibility="public"
  5986. deprecated="not deprecated">
  5987. <doc>
  5988. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5989. </doc>
  5990. </field>
  5991. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5992. transient="false" volatile="false"
  5993. static="true" final="true" visibility="public"
  5994. deprecated="not deprecated">
  5995. <doc>
  5996. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5997. </doc>
  5998. </field>
  5999. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  6000. transient="false" volatile="false"
  6001. static="true" final="true" visibility="public"
  6002. deprecated="not deprecated">
  6003. <doc>
  6004. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  6005. </doc>
  6006. </field>
  6007. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  6008. transient="false" volatile="false"
  6009. static="true" final="true" visibility="public"
  6010. deprecated="not deprecated">
  6011. <doc>
  6012. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  6013. </doc>
  6014. </field>
  6015. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  6016. transient="false" volatile="false"
  6017. static="true" final="true" visibility="public"
  6018. deprecated="not deprecated">
  6019. </field>
  6020. <doc>
  6021. <![CDATA[This class contains constants for configuration keys used
  6022. in the common code.
  6023. It includes all publicly documented configuration keys. In general
  6024. this class should not be used directly (use CommonConfigurationKeys
  6025. instead)]]>
  6026. </doc>
  6027. </class>
  6028. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  6029. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  6030. <class name="ContentSummary" extends="java.lang.Object"
  6031. abstract="false"
  6032. static="false" final="false" visibility="public"
  6033. deprecated="not deprecated">
  6034. <implements name="org.apache.hadoop.io.Writable"/>
  6035. <constructor name="ContentSummary"
  6036. static="false" final="false" visibility="public"
  6037. deprecated="not deprecated">
  6038. <doc>
  6039. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  6040. </doc>
  6041. </constructor>
  6042. <constructor name="ContentSummary" type="long, long, long"
  6043. static="false" final="false" visibility="public"
  6044. deprecated="not deprecated">
  6045. <doc>
  6046. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  6047. This constructor implicitly set spaceConsumed the same as length.
  6048. spaceConsumed and length must be set explicitly with
  6049. ContentSummary.Builder]]>
  6050. </doc>
  6051. </constructor>
  6052. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  6053. static="false" final="false" visibility="public"
  6054. deprecated="not deprecated">
  6055. <doc>
  6056. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  6057. </doc>
  6058. </constructor>
  6059. <method name="getLength" return="long"
  6060. abstract="false" native="false" synchronized="false"
  6061. static="false" final="false" visibility="public"
  6062. deprecated="not deprecated">
  6063. <doc>
  6064. <![CDATA[@return the length]]>
  6065. </doc>
  6066. </method>
  6067. <method name="getDirectoryCount" return="long"
  6068. abstract="false" native="false" synchronized="false"
  6069. static="false" final="false" visibility="public"
  6070. deprecated="not deprecated">
  6071. <doc>
  6072. <![CDATA[@return the directory count]]>
  6073. </doc>
  6074. </method>
  6075. <method name="getFileCount" return="long"
  6076. abstract="false" native="false" synchronized="false"
  6077. static="false" final="false" visibility="public"
  6078. deprecated="not deprecated">
  6079. <doc>
  6080. <![CDATA[@return the file count]]>
  6081. </doc>
  6082. </method>
  6083. <method name="getQuota" return="long"
  6084. abstract="false" native="false" synchronized="false"
  6085. static="false" final="false" visibility="public"
  6086. deprecated="not deprecated">
  6087. <doc>
  6088. <![CDATA[Return the directory quota]]>
  6089. </doc>
  6090. </method>
  6091. <method name="getSpaceConsumed" return="long"
  6092. abstract="false" native="false" synchronized="false"
  6093. static="false" final="false" visibility="public"
  6094. deprecated="not deprecated">
  6095. <doc>
  6096. <![CDATA[Retuns storage space consumed]]>
  6097. </doc>
  6098. </method>
  6099. <method name="getSpaceQuota" return="long"
  6100. abstract="false" native="false" synchronized="false"
  6101. static="false" final="false" visibility="public"
  6102. deprecated="not deprecated">
  6103. <doc>
  6104. <![CDATA[Returns storage space quota]]>
  6105. </doc>
  6106. </method>
  6107. <method name="getTypeQuota" return="long"
  6108. abstract="false" native="false" synchronized="false"
  6109. static="false" final="false" visibility="public"
  6110. deprecated="not deprecated">
  6111. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  6112. <doc>
  6113. <![CDATA[Returns storage type quota]]>
  6114. </doc>
  6115. </method>
  6116. <method name="getTypeConsumed" return="long"
  6117. abstract="false" native="false" synchronized="false"
  6118. static="false" final="false" visibility="public"
  6119. deprecated="not deprecated">
  6120. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  6121. <doc>
  6122. <![CDATA[Returns storage type consumed]]>
  6123. </doc>
  6124. </method>
  6125. <method name="isTypeQuotaSet" return="boolean"
  6126. abstract="false" native="false" synchronized="false"
  6127. static="false" final="false" visibility="public"
  6128. deprecated="not deprecated">
  6129. <doc>
  6130. <![CDATA[Returns true if any storage type quota has been set]]>
  6131. </doc>
  6132. </method>
  6133. <method name="isTypeConsumedAvailable" return="boolean"
  6134. abstract="false" native="false" synchronized="false"
  6135. static="false" final="false" visibility="public"
  6136. deprecated="not deprecated">
  6137. <doc>
  6138. <![CDATA[Returns true if any storage type consumption information is available]]>
  6139. </doc>
  6140. </method>
  6141. <method name="getHeader" return="java.lang.String"
  6142. abstract="false" native="false" synchronized="false"
  6143. static="true" final="false" visibility="public"
  6144. deprecated="not deprecated">
  6145. <param name="qOption" type="boolean"/>
  6146. <doc>
  6147. <![CDATA[Return the header of the output.
  6148. if qOption is false, output directory count, file count, and content size;
  6149. if qOption is true, output quota and remaining quota as well.
  6150. @param qOption a flag indicating if quota needs to be printed or not
  6151. @return the header of the output]]>
  6152. </doc>
  6153. </method>
  6154. <method name="toString" return="java.lang.String"
  6155. abstract="false" native="false" synchronized="false"
  6156. static="false" final="false" visibility="public"
  6157. deprecated="not deprecated">
  6158. </method>
  6159. <method name="toString" return="java.lang.String"
  6160. abstract="false" native="false" synchronized="false"
  6161. static="false" final="false" visibility="public"
  6162. deprecated="not deprecated">
  6163. <param name="qOption" type="boolean"/>
  6164. <doc>
  6165. <![CDATA[Return the string representation of the object in the output format.
  6166. if qOption is false, output directory count, file count, and content size;
  6167. if qOption is true, output quota and remaining quota as well.
  6168. @param qOption a flag indicating if quota needs to be printed or not
  6169. @return the string representation of the object]]>
  6170. </doc>
  6171. </method>
  6172. <method name="toString" return="java.lang.String"
  6173. abstract="false" native="false" synchronized="false"
  6174. static="false" final="false" visibility="public"
  6175. deprecated="not deprecated">
  6176. <param name="qOption" type="boolean"/>
  6177. <param name="hOption" type="boolean"/>
  6178. <doc>
  6179. <![CDATA[Return the string representation of the object in the output format.
  6180. if qOption is false, output directory count, file count, and content size;
  6181. if qOption is true, output quota and remaining quota as well.
  6182. if hOption is false file sizes are returned in bytes
  6183. if hOption is true file sizes are returned in human readable
  6184. @param qOption a flag indicating if quota needs to be printed or not
  6185. @param hOption a flag indicating if human readable output if to be used
  6186. @return the string representation of the object]]>
  6187. </doc>
  6188. </method>
  6189. <doc>
  6190. <![CDATA[Store the summary of a content (a directory or a file).]]>
  6191. </doc>
  6192. </class>
  6193. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  6194. <!-- start class org.apache.hadoop.fs.ContentSummary.Builder -->
  6195. <class name="ContentSummary.Builder" extends="java.lang.Object"
  6196. abstract="false"
  6197. static="true" final="false" visibility="public"
  6198. deprecated="not deprecated">
  6199. <constructor name="Builder"
  6200. static="false" final="false" visibility="public"
  6201. deprecated="not deprecated">
  6202. </constructor>
  6203. <method name="length" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6204. abstract="false" native="false" synchronized="false"
  6205. static="false" final="false" visibility="public"
  6206. deprecated="not deprecated">
  6207. <param name="length" type="long"/>
  6208. </method>
  6209. <method name="fileCount" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6210. abstract="false" native="false" synchronized="false"
  6211. static="false" final="false" visibility="public"
  6212. deprecated="not deprecated">
  6213. <param name="fileCount" type="long"/>
  6214. </method>
  6215. <method name="directoryCount" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6216. abstract="false" native="false" synchronized="false"
  6217. static="false" final="false" visibility="public"
  6218. deprecated="not deprecated">
  6219. <param name="directoryCount" type="long"/>
  6220. </method>
  6221. <method name="quota" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6222. abstract="false" native="false" synchronized="false"
  6223. static="false" final="false" visibility="public"
  6224. deprecated="not deprecated">
  6225. <param name="quota" type="long"/>
  6226. </method>
  6227. <method name="spaceConsumed" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6228. abstract="false" native="false" synchronized="false"
  6229. static="false" final="false" visibility="public"
  6230. deprecated="not deprecated">
  6231. <param name="spaceConsumed" type="long"/>
  6232. </method>
  6233. <method name="spaceQuota" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6234. abstract="false" native="false" synchronized="false"
  6235. static="false" final="false" visibility="public"
  6236. deprecated="not deprecated">
  6237. <param name="spaceQuota" type="long"/>
  6238. </method>
  6239. <method name="typeConsumed" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6240. abstract="false" native="false" synchronized="false"
  6241. static="false" final="false" visibility="public"
  6242. deprecated="not deprecated">
  6243. <param name="typeConsumed" type="long[]"/>
  6244. </method>
  6245. <method name="typeQuota" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6246. abstract="false" native="false" synchronized="false"
  6247. static="false" final="false" visibility="public"
  6248. deprecated="not deprecated">
  6249. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  6250. <param name="quota" type="long"/>
  6251. </method>
  6252. <method name="typeConsumed" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6253. abstract="false" native="false" synchronized="false"
  6254. static="false" final="false" visibility="public"
  6255. deprecated="not deprecated">
  6256. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  6257. <param name="consumed" type="long"/>
  6258. </method>
  6259. <method name="typeQuota" return="org.apache.hadoop.fs.ContentSummary.Builder"
  6260. abstract="false" native="false" synchronized="false"
  6261. static="false" final="false" visibility="public"
  6262. deprecated="not deprecated">
  6263. <param name="typeQuota" type="long[]"/>
  6264. </method>
  6265. <method name="build" return="org.apache.hadoop.fs.ContentSummary"
  6266. abstract="false" native="false" synchronized="false"
  6267. static="false" final="false" visibility="public"
  6268. deprecated="not deprecated">
  6269. </method>
  6270. </class>
  6271. <!-- end class org.apache.hadoop.fs.ContentSummary.Builder -->
  6272. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  6273. <class name="CreateFlag" extends="java.lang.Enum"
  6274. abstract="false"
  6275. static="false" final="true" visibility="public"
  6276. deprecated="not deprecated">
  6277. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  6278. abstract="false" native="false" synchronized="false"
  6279. static="true" final="false" visibility="public"
  6280. deprecated="not deprecated">
  6281. </method>
  6282. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  6283. abstract="false" native="false" synchronized="false"
  6284. static="true" final="false" visibility="public"
  6285. deprecated="not deprecated">
  6286. <param name="name" type="java.lang.String"/>
  6287. </method>
  6288. <method name="validate"
  6289. abstract="false" native="false" synchronized="false"
  6290. static="true" final="false" visibility="public"
  6291. deprecated="not deprecated">
  6292. <param name="flag" type="java.util.EnumSet"/>
  6293. <doc>
  6294. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  6295. @param flag set of CreateFlag
  6296. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6297. </doc>
  6298. </method>
  6299. <method name="validate"
  6300. abstract="false" native="false" synchronized="false"
  6301. static="true" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <param name="path" type="java.lang.Object"/>
  6304. <param name="pathExists" type="boolean"/>
  6305. <param name="flag" type="java.util.EnumSet"/>
  6306. <exception name="IOException" type="java.io.IOException"/>
  6307. <doc>
  6308. <![CDATA[Validate the CreateFlag for create operation
  6309. @param path Object representing the path; usually String or {@link Path}
  6310. @param pathExists pass true if the path exists in the file system
  6311. @param flag set of CreateFlag
  6312. @throws IOException on error
  6313. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  6314. </doc>
  6315. </method>
  6316. <method name="validateForAppend"
  6317. abstract="false" native="false" synchronized="false"
  6318. static="true" final="false" visibility="public"
  6319. deprecated="not deprecated">
  6320. <param name="flag" type="java.util.EnumSet"/>
  6321. <doc>
  6322. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  6323. APPEND, and cannot contain OVERWRITE.]]>
  6324. </doc>
  6325. </method>
  6326. <doc>
  6327. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  6328. <code>
  6329. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  6330. <code>
  6331. <p>
  6332. Use the CreateFlag as follows:
  6333. <ol>
  6334. <li> CREATE - to create a file if it does not exist,
  6335. else throw FileAlreadyExists.</li>
  6336. <li> APPEND - to append to a file if it exists,
  6337. else throw FileNotFoundException.</li>
  6338. <li> OVERWRITE - to truncate a file if it exists,
  6339. else throw FileNotFoundException.</li>
  6340. <li> CREATE|APPEND - to create a file if it does not exist,
  6341. else append to an existing file.</li>
  6342. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  6343. else overwrite an existing file.</li>
  6344. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  6345. In addition {@link Syncable#hsync()} should be called after each write,
  6346. if true synchronous behavior is required.</li>
  6347. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  6348. available.</li>
  6349. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  6350. partial block.</li>
  6351. </ol>
  6352. Following combination is not valid and will result in
  6353. {@link HadoopIllegalArgumentException}:
  6354. <ol>
  6355. <li> APPEND|OVERWRITE</li>
  6356. <li> CREATE|APPEND|OVERWRITE</li>
  6357. </ol>]]>
  6358. </doc>
  6359. </class>
  6360. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  6361. <!-- start interface org.apache.hadoop.fs.DelegationTokenRenewer.Renewable -->
  6362. <interface name="DelegationTokenRenewer.Renewable" abstract="true"
  6363. static="true" final="false" visibility="public"
  6364. deprecated="not deprecated">
  6365. <method name="getRenewToken" return="org.apache.hadoop.security.token.Token"
  6366. abstract="true" native="false" synchronized="false"
  6367. static="false" final="false" visibility="public"
  6368. deprecated="not deprecated">
  6369. <doc>
  6370. <![CDATA[@return the renew token.]]>
  6371. </doc>
  6372. </method>
  6373. <method name="setDelegationToken"
  6374. abstract="true" native="false" synchronized="false"
  6375. static="false" final="false" visibility="public"
  6376. deprecated="not deprecated">
  6377. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  6378. <doc>
  6379. <![CDATA[Set delegation token.]]>
  6380. </doc>
  6381. </method>
  6382. <doc>
  6383. <![CDATA[The renewable interface used by the renewer.]]>
  6384. </doc>
  6385. </interface>
  6386. <!-- end interface org.apache.hadoop.fs.DelegationTokenRenewer.Renewable -->
  6387. <!-- start class org.apache.hadoop.fs.DelegationTokenRenewer.RenewAction -->
  6388. <class name="DelegationTokenRenewer.RenewAction" extends="java.lang.Object"
  6389. abstract="false"
  6390. static="true" final="false" visibility="public"
  6391. deprecated="not deprecated">
  6392. <implements name="java.util.concurrent.Delayed"/>
  6393. <method name="isValid" return="boolean"
  6394. abstract="false" native="false" synchronized="false"
  6395. static="false" final="false" visibility="public"
  6396. deprecated="not deprecated">
  6397. </method>
  6398. <method name="getDelay" return="long"
  6399. abstract="false" native="false" synchronized="false"
  6400. static="false" final="false" visibility="public"
  6401. deprecated="not deprecated">
  6402. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  6403. <doc>
  6404. <![CDATA[Get the delay until this event should happen.]]>
  6405. </doc>
  6406. </method>
  6407. <method name="compareTo" return="int"
  6408. abstract="false" native="false" synchronized="false"
  6409. static="false" final="false" visibility="public"
  6410. deprecated="not deprecated">
  6411. <param name="delayed" type="java.util.concurrent.Delayed"/>
  6412. </method>
  6413. <method name="hashCode" return="int"
  6414. abstract="false" native="false" synchronized="false"
  6415. static="false" final="false" visibility="public"
  6416. deprecated="not deprecated">
  6417. </method>
  6418. <method name="equals" return="boolean"
  6419. abstract="false" native="false" synchronized="false"
  6420. static="false" final="false" visibility="public"
  6421. deprecated="not deprecated">
  6422. <param name="that" type="java.lang.Object"/>
  6423. </method>
  6424. <method name="toString" return="java.lang.String"
  6425. abstract="false" native="false" synchronized="false"
  6426. static="false" final="false" visibility="public"
  6427. deprecated="not deprecated">
  6428. </method>
  6429. <doc>
  6430. <![CDATA[An action that will renew and replace the file system's delegation
  6431. tokens automatically.]]>
  6432. </doc>
  6433. </class>
  6434. <!-- end class org.apache.hadoop.fs.DelegationTokenRenewer.RenewAction -->
  6435. <!-- start class org.apache.hadoop.fs.DUHelper -->
  6436. <class name="DUHelper" extends="java.lang.Object"
  6437. abstract="false"
  6438. static="false" final="false" visibility="public"
  6439. deprecated="not deprecated">
  6440. <method name="getFolderUsage" return="long"
  6441. abstract="false" native="false" synchronized="false"
  6442. static="true" final="false" visibility="public"
  6443. deprecated="not deprecated">
  6444. <param name="folder" type="java.lang.String"/>
  6445. </method>
  6446. <method name="check" return="java.lang.String"
  6447. abstract="false" native="false" synchronized="false"
  6448. static="false" final="false" visibility="public"
  6449. deprecated="not deprecated">
  6450. <param name="folder" type="java.lang.String"/>
  6451. </method>
  6452. <method name="getFileCount" return="long"
  6453. abstract="false" native="false" synchronized="false"
  6454. static="false" final="false" visibility="public"
  6455. deprecated="not deprecated">
  6456. </method>
  6457. <method name="getUsage" return="double"
  6458. abstract="false" native="false" synchronized="false"
  6459. static="false" final="false" visibility="public"
  6460. deprecated="not deprecated">
  6461. </method>
  6462. <method name="main"
  6463. abstract="false" native="false" synchronized="false"
  6464. static="true" final="false" visibility="public"
  6465. deprecated="not deprecated">
  6466. <param name="args" type="java.lang.String[]"/>
  6467. </method>
  6468. </class>
  6469. <!-- end class org.apache.hadoop.fs.DUHelper -->
  6470. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6471. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  6472. abstract="false"
  6473. static="false" final="false" visibility="public"
  6474. deprecated="not deprecated">
  6475. <constructor name="FileAlreadyExistsException"
  6476. static="false" final="false" visibility="public"
  6477. deprecated="not deprecated">
  6478. </constructor>
  6479. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  6480. static="false" final="false" visibility="public"
  6481. deprecated="not deprecated">
  6482. </constructor>
  6483. <doc>
  6484. <![CDATA[Used when target file already exists for any operation and
  6485. is not configured to be overwritten.]]>
  6486. </doc>
  6487. </class>
  6488. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6489. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6490. <class name="FileChecksum" extends="java.lang.Object"
  6491. abstract="true"
  6492. static="false" final="false" visibility="public"
  6493. deprecated="not deprecated">
  6494. <implements name="org.apache.hadoop.io.Writable"/>
  6495. <constructor name="FileChecksum"
  6496. static="false" final="false" visibility="public"
  6497. deprecated="not deprecated">
  6498. </constructor>
  6499. <method name="getAlgorithmName" return="java.lang.String"
  6500. abstract="true" native="false" synchronized="false"
  6501. static="false" final="false" visibility="public"
  6502. deprecated="not deprecated">
  6503. <doc>
  6504. <![CDATA[The checksum algorithm name]]>
  6505. </doc>
  6506. </method>
  6507. <method name="getLength" return="int"
  6508. abstract="true" native="false" synchronized="false"
  6509. static="false" final="false" visibility="public"
  6510. deprecated="not deprecated">
  6511. <doc>
  6512. <![CDATA[The length of the checksum in bytes]]>
  6513. </doc>
  6514. </method>
  6515. <method name="getBytes" return="byte[]"
  6516. abstract="true" native="false" synchronized="false"
  6517. static="false" final="false" visibility="public"
  6518. deprecated="not deprecated">
  6519. <doc>
  6520. <![CDATA[The value of the checksum in bytes]]>
  6521. </doc>
  6522. </method>
  6523. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6524. abstract="false" native="false" synchronized="false"
  6525. static="false" final="false" visibility="public"
  6526. deprecated="not deprecated">
  6527. </method>
  6528. <method name="equals" return="boolean"
  6529. abstract="false" native="false" synchronized="false"
  6530. static="false" final="false" visibility="public"
  6531. deprecated="not deprecated">
  6532. <param name="other" type="java.lang.Object"/>
  6533. <doc>
  6534. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6535. </doc>
  6536. </method>
  6537. <method name="hashCode" return="int"
  6538. abstract="false" native="false" synchronized="false"
  6539. static="false" final="false" visibility="public"
  6540. deprecated="not deprecated">
  6541. </method>
  6542. <doc>
  6543. <![CDATA[An abstract class representing file checksums for files.]]>
  6544. </doc>
  6545. </class>
  6546. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6547. <!-- start class org.apache.hadoop.fs.FileContext -->
  6548. <class name="FileContext" extends="java.lang.Object"
  6549. abstract="false"
  6550. static="false" final="false" visibility="public"
  6551. deprecated="not deprecated">
  6552. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6553. abstract="false" native="false" synchronized="false"
  6554. static="false" final="false" visibility="protected"
  6555. deprecated="not deprecated">
  6556. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6557. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6558. <exception name="IOException" type="java.io.IOException"/>
  6559. <doc>
  6560. <![CDATA[Get the file system of supplied path.
  6561. @param absOrFqPath - absolute or fully qualified path
  6562. @return the file system of the path
  6563. @throws UnsupportedFileSystemException If the file system for
  6564. <code>absOrFqPath</code> is not supported.
  6565. @throws IOExcepton If the file system for <code>absOrFqPath</code> could
  6566. not be instantiated.]]>
  6567. </doc>
  6568. </method>
  6569. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6570. abstract="false" native="false" synchronized="false"
  6571. static="true" final="false" visibility="public"
  6572. deprecated="not deprecated">
  6573. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6574. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6575. <doc>
  6576. <![CDATA[Create a FileContext with specified FS as default using the specified
  6577. config.
  6578. @param defFS
  6579. @param aConf
  6580. @return new FileContext with specifed FS as default.]]>
  6581. </doc>
  6582. </method>
  6583. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6584. abstract="false" native="false" synchronized="false"
  6585. static="true" final="false" visibility="protected"
  6586. deprecated="not deprecated">
  6587. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6588. <doc>
  6589. <![CDATA[Create a FileContext for specified file system using the default config.
  6590. @param defaultFS
  6591. @return a FileContext with the specified AbstractFileSystem
  6592. as the default FS.]]>
  6593. </doc>
  6594. </method>
  6595. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6596. abstract="false" native="false" synchronized="false"
  6597. static="true" final="false" visibility="public"
  6598. deprecated="not deprecated">
  6599. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6600. <doc>
  6601. <![CDATA[Create a FileContext using the default config read from the
  6602. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6603. from core-defaults.xml in the release jar.
  6604. @throws UnsupportedFileSystemException If the file system from the default
  6605. configuration is not supported]]>
  6606. </doc>
  6607. </method>
  6608. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6609. abstract="false" native="false" synchronized="false"
  6610. static="true" final="false" visibility="public"
  6611. deprecated="not deprecated">
  6612. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6613. <doc>
  6614. <![CDATA[@return a FileContext for the local file system using the default config.
  6615. @throws UnsupportedFileSystemException If the file system for
  6616. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6617. </doc>
  6618. </method>
  6619. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6620. abstract="false" native="false" synchronized="false"
  6621. static="true" final="false" visibility="public"
  6622. deprecated="not deprecated">
  6623. <param name="defaultFsUri" type="java.net.URI"/>
  6624. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6625. <doc>
  6626. <![CDATA[Create a FileContext for specified URI using the default config.
  6627. @param defaultFsUri
  6628. @return a FileContext with the specified URI as the default FS.
  6629. @throws UnsupportedFileSystemException If the file system for
  6630. <code>defaultFsUri</code> is not supported]]>
  6631. </doc>
  6632. </method>
  6633. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6634. abstract="false" native="false" synchronized="false"
  6635. static="true" final="false" visibility="public"
  6636. deprecated="not deprecated">
  6637. <param name="defaultFsUri" type="java.net.URI"/>
  6638. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6639. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6640. <doc>
  6641. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6642. @param defaultFsUri
  6643. @param aConf
  6644. @return new FileContext for specified uri
  6645. @throws UnsupportedFileSystemException If the file system with specified is
  6646. not supported
  6647. @throws RuntimeException If the file system specified is supported but
  6648. could not be instantiated, or if login fails.]]>
  6649. </doc>
  6650. </method>
  6651. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6652. abstract="false" native="false" synchronized="false"
  6653. static="true" final="false" visibility="public"
  6654. deprecated="not deprecated">
  6655. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6656. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6657. <doc>
  6658. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6659. {@link #getFileContext(URI, Configuration)} instead of this one.
  6660. @param aConf
  6661. @return new FileContext
  6662. @throws UnsupportedFileSystemException If file system in the config
  6663. is not supported]]>
  6664. </doc>
  6665. </method>
  6666. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6667. abstract="false" native="false" synchronized="false"
  6668. static="true" final="false" visibility="public"
  6669. deprecated="not deprecated">
  6670. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6671. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6672. <doc>
  6673. <![CDATA[@param aConf - from which the FileContext is configured
  6674. @return a FileContext for the local file system using the specified config.
  6675. @throws UnsupportedFileSystemException If default file system in the config
  6676. is not supported]]>
  6677. </doc>
  6678. </method>
  6679. <method name="setWorkingDirectory"
  6680. abstract="false" native="false" synchronized="false"
  6681. static="false" final="false" visibility="public"
  6682. deprecated="not deprecated">
  6683. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6684. <exception name="IOException" type="java.io.IOException"/>
  6685. <doc>
  6686. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6687. directory feature is provided by simply prefixing relative names with the
  6688. working dir. Note this is different from Unix where the wd is actually set
  6689. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6690. better in a distributed environment that has multiple independent roots.
  6691. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6692. @param newWDir new working directory
  6693. @throws IOException
  6694. <br>
  6695. NewWdir can be one of:
  6696. <ul>
  6697. <li>relative path: "foo/bar";</li>
  6698. <li>absolute without scheme: "/foo/bar"</li>
  6699. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6700. </ul>
  6701. <br>
  6702. Illegal WDs:
  6703. <ul>
  6704. <li>relative with scheme: "xx:foo/bar"</li>
  6705. <li>non existent directory</li>
  6706. </ul>]]>
  6707. </doc>
  6708. </method>
  6709. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6710. abstract="false" native="false" synchronized="false"
  6711. static="false" final="false" visibility="public"
  6712. deprecated="not deprecated">
  6713. <doc>
  6714. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6715. </doc>
  6716. </method>
  6717. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6718. abstract="false" native="false" synchronized="false"
  6719. static="false" final="false" visibility="public"
  6720. deprecated="not deprecated">
  6721. <doc>
  6722. <![CDATA[Gets the ugi in the file-context
  6723. @return UserGroupInformation]]>
  6724. </doc>
  6725. </method>
  6726. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6727. abstract="false" native="false" synchronized="false"
  6728. static="false" final="false" visibility="public"
  6729. deprecated="not deprecated">
  6730. <doc>
  6731. <![CDATA[Return the current user's home directory in this file system.
  6732. The default implementation returns "/user/$USER/".
  6733. @return the home directory]]>
  6734. </doc>
  6735. </method>
  6736. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6737. abstract="false" native="false" synchronized="false"
  6738. static="false" final="false" visibility="public"
  6739. deprecated="not deprecated">
  6740. <doc>
  6741. <![CDATA[@return the umask of this FileContext]]>
  6742. </doc>
  6743. </method>
  6744. <method name="setUMask"
  6745. abstract="false" native="false" synchronized="false"
  6746. static="false" final="false" visibility="public"
  6747. deprecated="not deprecated">
  6748. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6749. <doc>
  6750. <![CDATA[Set umask to the supplied parameter.
  6751. @param newUmask the new umask]]>
  6752. </doc>
  6753. </method>
  6754. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6755. abstract="false" native="false" synchronized="false"
  6756. static="false" final="false" visibility="public"
  6757. deprecated="not deprecated">
  6758. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6759. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6760. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6761. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6762. <exception name="IOException" type="java.io.IOException"/>
  6763. <doc>
  6764. <![CDATA[Resolve the path following any symlinks or mount points
  6765. @param f to be resolved
  6766. @return fully qualified resolved path
  6767. @throws FileNotFoundException If <code>f</code> does not exist
  6768. @throws AccessControlException if access denied
  6769. @throws IOException If an IO Error occurred
  6770. Exceptions applicable to file systems accessed over RPC:
  6771. @throws RpcClientException If an exception occurred in the RPC client
  6772. @throws RpcServerException If an exception occurred in the RPC server
  6773. @throws UnexpectedServerException If server implementation throws
  6774. undeclared exception to RPC server
  6775. RuntimeExceptions:
  6776. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6777. </doc>
  6778. </method>
  6779. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6780. abstract="false" native="false" synchronized="false"
  6781. static="false" final="false" visibility="public"
  6782. deprecated="not deprecated">
  6783. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6784. <doc>
  6785. <![CDATA[Make the path fully qualified if it is isn't.
  6786. A Fully-qualified path has scheme and authority specified and an absolute
  6787. path.
  6788. Use the default file system and working dir in this FileContext to qualify.
  6789. @param path
  6790. @return qualified path]]>
  6791. </doc>
  6792. </method>
  6793. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6794. abstract="false" native="false" synchronized="false"
  6795. static="false" final="false" visibility="public"
  6796. deprecated="not deprecated">
  6797. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6798. <param name="createFlag" type="java.util.EnumSet"/>
  6799. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6800. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6801. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6802. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6803. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6804. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6805. <exception name="IOException" type="java.io.IOException"/>
  6806. <doc>
  6807. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6808. writing into the file.
  6809. @param f the file name to open
  6810. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6811. @param opts file creation options; see {@link Options.CreateOpts}.
  6812. <ul>
  6813. <li>Progress - to report progress on the operation - default null
  6814. <li>Permission - umask is applied against permisssion: default is
  6815. FsPermissions:getDefault()
  6816. <li>CreateParent - create missing parent path; default is to not
  6817. to create parents
  6818. <li>The defaults for the following are SS defaults of the file
  6819. server implementing the target path. Not all parameters make sense
  6820. for all kinds of file system - eg. localFS ignores Blocksize,
  6821. replication, checksum
  6822. <ul>
  6823. <li>BufferSize - buffersize used in FSDataOutputStream
  6824. <li>Blocksize - block size for file blocks
  6825. <li>ReplicationFactor - replication for blocks
  6826. <li>ChecksumParam - Checksum parameters. server default is used
  6827. if not specified.
  6828. </ul>
  6829. </ul>
  6830. @return {@link FSDataOutputStream} for created file
  6831. @throws AccessControlException If access is denied
  6832. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6833. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6834. and <code>createParent</code> is false
  6835. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6836. directory.
  6837. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6838. not supported
  6839. @throws IOException If an I/O error occurred
  6840. Exceptions applicable to file systems accessed over RPC:
  6841. @throws RpcClientException If an exception occurred in the RPC client
  6842. @throws RpcServerException If an exception occurred in the RPC server
  6843. @throws UnexpectedServerException If server implementation throws
  6844. undeclared exception to RPC server
  6845. RuntimeExceptions:
  6846. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6847. </doc>
  6848. </method>
  6849. <method name="mkdir"
  6850. abstract="false" native="false" synchronized="false"
  6851. static="false" final="false" visibility="public"
  6852. deprecated="not deprecated">
  6853. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6854. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6855. <param name="createParent" type="boolean"/>
  6856. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6857. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6858. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6859. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6860. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6861. <exception name="IOException" type="java.io.IOException"/>
  6862. <doc>
  6863. <![CDATA[Make(create) a directory and all the non-existent parents.
  6864. @param dir - the dir to make
  6865. @param permission - permissions is set permission&~umask
  6866. @param createParent - if true then missing parent dirs are created if false
  6867. then parent must exist
  6868. @throws AccessControlException If access is denied
  6869. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6870. exists
  6871. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6872. and <code>createParent</code> is false
  6873. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6874. directory
  6875. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6876. is not supported
  6877. @throws IOException If an I/O error occurred
  6878. Exceptions applicable to file systems accessed over RPC:
  6879. @throws RpcClientException If an exception occurred in the RPC client
  6880. @throws UnexpectedServerException If server implementation throws
  6881. undeclared exception to RPC server
  6882. RuntimeExceptions:
  6883. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6884. </doc>
  6885. </method>
  6886. <method name="delete" return="boolean"
  6887. abstract="false" native="false" synchronized="false"
  6888. static="false" final="false" visibility="public"
  6889. deprecated="not deprecated">
  6890. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6891. <param name="recursive" type="boolean"/>
  6892. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6893. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6894. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6895. <exception name="IOException" type="java.io.IOException"/>
  6896. <doc>
  6897. <![CDATA[Delete a file.
  6898. @param f the path to delete.
  6899. @param recursive if path is a directory and set to
  6900. true, the directory is deleted else throws an exception. In
  6901. case of a file the recursive can be set to either true or false.
  6902. @throws AccessControlException If access is denied
  6903. @throws FileNotFoundException If <code>f</code> does not exist
  6904. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6905. not supported
  6906. @throws IOException If an I/O error occurred
  6907. Exceptions applicable to file systems accessed over RPC:
  6908. @throws RpcClientException If an exception occurred in the RPC client
  6909. @throws RpcServerException If an exception occurred in the RPC server
  6910. @throws UnexpectedServerException If server implementation throws
  6911. undeclared exception to RPC server
  6912. RuntimeExceptions:
  6913. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6914. </doc>
  6915. </method>
  6916. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6917. abstract="false" native="false" synchronized="false"
  6918. static="false" final="false" visibility="public"
  6919. deprecated="not deprecated">
  6920. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6921. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6922. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6923. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6924. <exception name="IOException" type="java.io.IOException"/>
  6925. <doc>
  6926. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  6927. default buffersize.
  6928. @param f the file name to open
  6929. @throws AccessControlException If access is denied
  6930. @throws FileNotFoundException If file <code>f</code> does not exist
  6931. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6932. is not supported
  6933. @throws IOException If an I/O error occurred
  6934. Exceptions applicable to file systems accessed over RPC:
  6935. @throws RpcClientException If an exception occurred in the RPC client
  6936. @throws RpcServerException If an exception occurred in the RPC server
  6937. @throws UnexpectedServerException If server implementation throws
  6938. undeclared exception to RPC server]]>
  6939. </doc>
  6940. </method>
  6941. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6942. abstract="false" native="false" synchronized="false"
  6943. static="false" final="false" visibility="public"
  6944. deprecated="not deprecated">
  6945. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6946. <param name="bufferSize" type="int"/>
  6947. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6948. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6949. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6950. <exception name="IOException" type="java.io.IOException"/>
  6951. <doc>
  6952. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6953. @param f the file name to open
  6954. @param bufferSize the size of the buffer to be used.
  6955. @throws AccessControlException If access is denied
  6956. @throws FileNotFoundException If file <code>f</code> does not exist
  6957. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6958. not supported
  6959. @throws IOException If an I/O error occurred
  6960. Exceptions applicable to file systems accessed over RPC:
  6961. @throws RpcClientException If an exception occurred in the RPC client
  6962. @throws RpcServerException If an exception occurred in the RPC server
  6963. @throws UnexpectedServerException If server implementation throws
  6964. undeclared exception to RPC server]]>
  6965. </doc>
  6966. </method>
  6967. <method name="truncate" return="boolean"
  6968. abstract="false" native="false" synchronized="false"
  6969. static="false" final="false" visibility="public"
  6970. deprecated="not deprecated">
  6971. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6972. <param name="newLength" type="long"/>
  6973. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6974. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6975. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6976. <exception name="IOException" type="java.io.IOException"/>
  6977. <doc>
  6978. <![CDATA[Truncate the file in the indicated path to the indicated size.
  6979. <ul>
  6980. <li>Fails if path is a directory.
  6981. <li>Fails if path does not exist.
  6982. <li>Fails if path is not closed.
  6983. <li>Fails if new size is greater than current size.
  6984. </ul>
  6985. @param f The path to the file to be truncated
  6986. @param newLength The size the file is to be truncated to
  6987. @return <code>true</code> if the file has been truncated to the desired
  6988. <code>newLength</code> and is immediately available to be reused for
  6989. write operations such as <code>append</code>, or
  6990. <code>false</code> if a background process of adjusting the length of
  6991. the last block has been started, and clients should wait for it to
  6992. complete before proceeding with further file updates.
  6993. @throws AccessControlException If access is denied
  6994. @throws FileNotFoundException If file <code>f</code> does not exist
  6995. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6996. not supported
  6997. @throws IOException If an I/O error occurred
  6998. Exceptions applicable to file systems accessed over RPC:
  6999. @throws RpcClientException If an exception occurred in the RPC client
  7000. @throws RpcServerException If an exception occurred in the RPC server
  7001. @throws UnexpectedServerException If server implementation throws
  7002. undeclared exception to RPC server]]>
  7003. </doc>
  7004. </method>
  7005. <method name="setReplication" return="boolean"
  7006. abstract="false" native="false" synchronized="false"
  7007. static="false" final="false" visibility="public"
  7008. deprecated="not deprecated">
  7009. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7010. <param name="replication" type="short"/>
  7011. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7012. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7013. <exception name="IOException" type="java.io.IOException"/>
  7014. <doc>
  7015. <![CDATA[Set replication for an existing file.
  7016. @param f file name
  7017. @param replication new replication
  7018. @return true if successful
  7019. @throws AccessControlException If access is denied
  7020. @throws FileNotFoundException If file <code>f</code> does not exist
  7021. @throws IOException If an I/O error occurred
  7022. Exceptions applicable to file systems accessed over RPC:
  7023. @throws RpcClientException If an exception occurred in the RPC client
  7024. @throws RpcServerException If an exception occurred in the RPC server
  7025. @throws UnexpectedServerException If server implementation throws
  7026. undeclared exception to RPC server]]>
  7027. </doc>
  7028. </method>
  7029. <method name="rename"
  7030. abstract="false" native="false" synchronized="false"
  7031. static="false" final="false" visibility="public"
  7032. deprecated="not deprecated">
  7033. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7034. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7035. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  7036. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7037. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7038. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7039. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7040. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7041. <exception name="IOException" type="java.io.IOException"/>
  7042. <doc>
  7043. <![CDATA[Renames Path src to Path dst
  7044. <ul>
  7045. <li
  7046. <li>Fails if src is a file and dst is a directory.
  7047. <li>Fails if src is a directory and dst is a file.
  7048. <li>Fails if the parent of dst does not exist or is a file.
  7049. </ul>
  7050. <p>
  7051. If OVERWRITE option is not passed as an argument, rename fails if the dst
  7052. already exists.
  7053. <p>
  7054. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  7055. it is a file or an empty directory. Rename fails if dst is a non-empty
  7056. directory.
  7057. <p>
  7058. Note that atomicity of rename is dependent on the file system
  7059. implementation. Please refer to the file system documentation for details
  7060. <p>
  7061. @param src path to be renamed
  7062. @param dst new path after rename
  7063. @throws AccessControlException If access is denied
  7064. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  7065. <code>options</options> has {@link Options.Rename#OVERWRITE}
  7066. option false.
  7067. @throws FileNotFoundException If <code>src</code> does not exist
  7068. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  7069. directory
  7070. @throws UnsupportedFileSystemException If file system for <code>src</code>
  7071. and <code>dst</code> is not supported
  7072. @throws IOException If an I/O error occurred
  7073. Exceptions applicable to file systems accessed over RPC:
  7074. @throws RpcClientException If an exception occurred in the RPC client
  7075. @throws RpcServerException If an exception occurred in the RPC server
  7076. @throws UnexpectedServerException If server implementation throws
  7077. undeclared exception to RPC server]]>
  7078. </doc>
  7079. </method>
  7080. <method name="setPermission"
  7081. abstract="false" native="false" synchronized="false"
  7082. static="false" final="false" visibility="public"
  7083. deprecated="not deprecated">
  7084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7085. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7086. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7087. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7088. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7089. <exception name="IOException" type="java.io.IOException"/>
  7090. <doc>
  7091. <![CDATA[Set permission of a path.
  7092. @param f
  7093. @param permission - the new absolute permission (umask is not applied)
  7094. @throws AccessControlException If access is denied
  7095. @throws FileNotFoundException If <code>f</code> does not exist
  7096. @throws UnsupportedFileSystemException If file system for <code>f</code>
  7097. is not supported
  7098. @throws IOException If an I/O error occurred
  7099. Exceptions applicable to file systems accessed over RPC:
  7100. @throws RpcClientException If an exception occurred in the RPC client
  7101. @throws RpcServerException If an exception occurred in the RPC server
  7102. @throws UnexpectedServerException If server implementation throws
  7103. undeclared exception to RPC server]]>
  7104. </doc>
  7105. </method>
  7106. <method name="setOwner"
  7107. abstract="false" native="false" synchronized="false"
  7108. static="false" final="false" visibility="public"
  7109. deprecated="not deprecated">
  7110. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7111. <param name="username" type="java.lang.String"/>
  7112. <param name="groupname" type="java.lang.String"/>
  7113. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7114. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7115. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7116. <exception name="IOException" type="java.io.IOException"/>
  7117. <doc>
  7118. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  7119. and groupname cannot both be null.
  7120. @param f The path
  7121. @param username If it is null, the original username remains unchanged.
  7122. @param groupname If it is null, the original groupname remains unchanged.
  7123. @throws AccessControlException If access is denied
  7124. @throws FileNotFoundException If <code>f</code> does not exist
  7125. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7126. not supported
  7127. @throws IOException If an I/O error occurred
  7128. Exceptions applicable to file systems accessed over RPC:
  7129. @throws RpcClientException If an exception occurred in the RPC client
  7130. @throws RpcServerException If an exception occurred in the RPC server
  7131. @throws UnexpectedServerException If server implementation throws
  7132. undeclared exception to RPC server
  7133. RuntimeExceptions:
  7134. @throws HadoopIllegalArgumentException If <code>username</code> or
  7135. <code>groupname</code> is invalid.]]>
  7136. </doc>
  7137. </method>
  7138. <method name="setTimes"
  7139. abstract="false" native="false" synchronized="false"
  7140. static="false" final="false" visibility="public"
  7141. deprecated="not deprecated">
  7142. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7143. <param name="mtime" type="long"/>
  7144. <param name="atime" type="long"/>
  7145. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7146. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7147. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7148. <exception name="IOException" type="java.io.IOException"/>
  7149. <doc>
  7150. <![CDATA[Set access time of a file.
  7151. @param f The path
  7152. @param mtime Set the modification time of this file.
  7153. The number of milliseconds since epoch (Jan 1, 1970).
  7154. A value of -1 means that this call should not set modification time.
  7155. @param atime Set the access time of this file.
  7156. The number of milliseconds since Jan 1, 1970.
  7157. A value of -1 means that this call should not set access time.
  7158. @throws AccessControlException If access is denied
  7159. @throws FileNotFoundException If <code>f</code> does not exist
  7160. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7161. not supported
  7162. @throws IOException If an I/O error occurred
  7163. Exceptions applicable to file systems accessed over RPC:
  7164. @throws RpcClientException If an exception occurred in the RPC client
  7165. @throws RpcServerException If an exception occurred in the RPC server
  7166. @throws UnexpectedServerException If server implementation throws
  7167. undeclared exception to RPC server]]>
  7168. </doc>
  7169. </method>
  7170. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  7171. abstract="false" native="false" synchronized="false"
  7172. static="false" final="false" visibility="public"
  7173. deprecated="not deprecated">
  7174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7175. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7176. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7177. <exception name="IOException" type="java.io.IOException"/>
  7178. <doc>
  7179. <![CDATA[Get the checksum of a file.
  7180. @param f file path
  7181. @return The file checksum. The default return value is null,
  7182. which indicates that no checksum algorithm is implemented
  7183. in the corresponding FileSystem.
  7184. @throws AccessControlException If access is denied
  7185. @throws FileNotFoundException If <code>f</code> does not exist
  7186. @throws IOException If an I/O error occurred
  7187. Exceptions applicable to file systems accessed over RPC:
  7188. @throws RpcClientException If an exception occurred in the RPC client
  7189. @throws RpcServerException If an exception occurred in the RPC server
  7190. @throws UnexpectedServerException If server implementation throws
  7191. undeclared exception to RPC server]]>
  7192. </doc>
  7193. </method>
  7194. <method name="setVerifyChecksum"
  7195. abstract="false" native="false" synchronized="false"
  7196. static="false" final="false" visibility="public"
  7197. deprecated="not deprecated">
  7198. <param name="verifyChecksum" type="boolean"/>
  7199. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7200. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7201. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7202. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7203. <exception name="IOException" type="java.io.IOException"/>
  7204. <doc>
  7205. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  7206. This is only applicable if the
  7207. corresponding FileSystem supports checksum. By default doesn't do anything.
  7208. @param verifyChecksum
  7209. @param f set the verifyChecksum for the Filesystem containing this path
  7210. @throws AccessControlException If access is denied
  7211. @throws FileNotFoundException If <code>f</code> does not exist
  7212. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7213. not supported
  7214. @throws IOException If an I/O error occurred
  7215. Exceptions applicable to file systems accessed over RPC:
  7216. @throws RpcClientException If an exception occurred in the RPC client
  7217. @throws RpcServerException If an exception occurred in the RPC server
  7218. @throws UnexpectedServerException If server implementation throws
  7219. undeclared exception to RPC server]]>
  7220. </doc>
  7221. </method>
  7222. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7223. abstract="false" native="false" synchronized="false"
  7224. static="false" final="false" visibility="public"
  7225. deprecated="not deprecated">
  7226. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7227. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7228. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7229. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7230. <exception name="IOException" type="java.io.IOException"/>
  7231. <doc>
  7232. <![CDATA[Return a file status object that represents the path.
  7233. @param f The path we want information from
  7234. @return a FileStatus object
  7235. @throws AccessControlException If access is denied
  7236. @throws FileNotFoundException If <code>f</code> does not exist
  7237. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7238. not supported
  7239. @throws IOException If an I/O error occurred
  7240. Exceptions applicable to file systems accessed over RPC:
  7241. @throws RpcClientException If an exception occurred in the RPC client
  7242. @throws RpcServerException If an exception occurred in the RPC server
  7243. @throws UnexpectedServerException If server implementation throws
  7244. undeclared exception to RPC server]]>
  7245. </doc>
  7246. </method>
  7247. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  7248. abstract="false" native="false" synchronized="false"
  7249. static="false" final="false" visibility="public"
  7250. deprecated="not deprecated">
  7251. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7252. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7253. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7254. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7255. <exception name="IOException" type="java.io.IOException"/>
  7256. <doc>
  7257. <![CDATA[Return a file status object that represents the path. If the path
  7258. refers to a symlink then the FileStatus of the symlink is returned.
  7259. The behavior is equivalent to #getFileStatus() if the underlying
  7260. file system does not support symbolic links.
  7261. @param f The path we want information from.
  7262. @return A FileStatus object
  7263. @throws AccessControlException If access is denied
  7264. @throws FileNotFoundException If <code>f</code> does not exist
  7265. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7266. not supported
  7267. @throws IOException If an I/O error occurred]]>
  7268. </doc>
  7269. </method>
  7270. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  7271. abstract="false" native="false" synchronized="false"
  7272. static="false" final="false" visibility="public"
  7273. deprecated="not deprecated">
  7274. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7275. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7276. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7277. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7278. <exception name="IOException" type="java.io.IOException"/>
  7279. <doc>
  7280. <![CDATA[Returns the target of the given symbolic link as it was specified
  7281. when the link was created. Links in the path leading up to the
  7282. final path component are resolved transparently.
  7283. @param f the path to return the target of
  7284. @return The un-interpreted target of the symbolic link.
  7285. @throws AccessControlException If access is denied
  7286. @throws FileNotFoundException If path <code>f</code> does not exist
  7287. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7288. not supported
  7289. @throws IOException If the given path does not refer to a symlink
  7290. or an I/O error occurred]]>
  7291. </doc>
  7292. </method>
  7293. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  7294. abstract="false" native="false" synchronized="false"
  7295. static="false" final="false" visibility="public"
  7296. deprecated="not deprecated">
  7297. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7298. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7299. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7300. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7301. <exception name="IOException" type="java.io.IOException"/>
  7302. <doc>
  7303. <![CDATA[Returns a status object describing the use and capacity of the
  7304. file system denoted by the Parh argument p.
  7305. If the file system has multiple partitions, the
  7306. use and capacity of the partition pointed to by the specified
  7307. path is reflected.
  7308. @param f Path for which status should be obtained. null means the
  7309. root partition of the default file system.
  7310. @return a FsStatus object
  7311. @throws AccessControlException If access is denied
  7312. @throws FileNotFoundException If <code>f</code> does not exist
  7313. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7314. not supported
  7315. @throws IOException If an I/O error occurred
  7316. Exceptions applicable to file systems accessed over RPC:
  7317. @throws RpcClientException If an exception occurred in the RPC client
  7318. @throws RpcServerException If an exception occurred in the RPC server
  7319. @throws UnexpectedServerException If server implementation throws
  7320. undeclared exception to RPC server]]>
  7321. </doc>
  7322. </method>
  7323. <method name="createSymlink"
  7324. abstract="false" native="false" synchronized="false"
  7325. static="false" final="false" visibility="public"
  7326. deprecated="not deprecated">
  7327. <param name="target" type="org.apache.hadoop.fs.Path"/>
  7328. <param name="link" type="org.apache.hadoop.fs.Path"/>
  7329. <param name="createParent" type="boolean"/>
  7330. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7331. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  7332. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7333. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  7334. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7335. <exception name="IOException" type="java.io.IOException"/>
  7336. <doc>
  7337. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  7338. the symlink exits, the user does not have permission to create symlink,
  7339. or the underlying file system does not support symlinks.
  7340. Symlink permissions are ignored, access to a symlink is determined by
  7341. the permissions of the symlink target.
  7342. Symlinks in paths leading up to the final path component are resolved
  7343. transparently. If the final path component refers to a symlink some
  7344. functions operate on the symlink itself, these are:
  7345. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  7346. - rename(src, dst) - If src refers to a symlink, the symlink is
  7347. renamed. If dst refers to a symlink, the symlink is over-written.
  7348. - getLinkTarget(f) - Returns the target of the symlink.
  7349. - getFileLinkStatus(f) - Returns a FileStatus object describing
  7350. the symlink.
  7351. Some functions, create() and mkdir(), expect the final path component
  7352. does not exist. If they are given a path that refers to a symlink that
  7353. does exist they behave as if the path referred to an existing file or
  7354. directory. All other functions fully resolve, ie follow, the symlink.
  7355. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  7356. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  7357. getFsStatus, getFileStatus, exists, and listStatus.
  7358. Symlink targets are stored as given to createSymlink, assuming the
  7359. underlying file system is capable of storing a fully qualified URI.
  7360. Dangling symlinks are permitted. FileContext supports four types of
  7361. symlink targets, and resolves them as follows
  7362. <pre>
  7363. Given a path referring to a symlink of form:
  7364. <---X--->
  7365. fs://host/A/B/link
  7366. <-----Y----->
  7367. In this path X is the scheme and authority that identify the file system,
  7368. and Y is the path leading up to the final path component "link". If Y is
  7369. a symlink itself then let Y' be the target of Y and X' be the scheme and
  7370. authority of Y'. Symlink targets may:
  7371. 1. Fully qualified URIs
  7372. fs://hostX/A/B/file Resolved according to the target file system.
  7373. 2. Partially qualified URIs (eg scheme but no host)
  7374. fs:///A/B/file Resolved according to the target file system. Eg resolving
  7375. a symlink to hdfs:///A results in an exception because
  7376. HDFS URIs must be fully qualified, while a symlink to
  7377. file:///A will not since Hadoop's local file systems
  7378. require partially qualified URIs.
  7379. 3. Relative paths
  7380. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  7381. is "../B/file" then [Y'][path] is hdfs://host/B/file
  7382. 4. Absolute paths
  7383. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  7384. is "/file" then [X][path] is hdfs://host/file
  7385. </pre>
  7386. @param target the target of the symbolic link
  7387. @param link the path to be created that points to target
  7388. @param createParent if true then missing parent dirs are created if
  7389. false then parent must exist
  7390. @throws AccessControlException If access is denied
  7391. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  7392. @throws FileNotFoundException If <code>target</code> does not exist
  7393. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  7394. directory.
  7395. @throws UnsupportedFileSystemException If file system for
  7396. <code>target</code> or <code>link</code> is not supported
  7397. @throws IOException If an I/O error occurred]]>
  7398. </doc>
  7399. </method>
  7400. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7401. abstract="false" native="false" synchronized="false"
  7402. static="false" final="false" visibility="public"
  7403. deprecated="not deprecated">
  7404. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7405. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7406. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7407. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7408. <exception name="IOException" type="java.io.IOException"/>
  7409. <doc>
  7410. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7411. a directory.
  7412. @param f is the path
  7413. @return an iterator that traverses statuses of the files/directories
  7414. in the given path
  7415. @throws AccessControlException If access is denied
  7416. @throws FileNotFoundException If <code>f</code> does not exist
  7417. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7418. not supported
  7419. @throws IOException If an I/O error occurred
  7420. Exceptions applicable to file systems accessed over RPC:
  7421. @throws RpcClientException If an exception occurred in the RPC client
  7422. @throws RpcServerException If an exception occurred in the RPC server
  7423. @throws UnexpectedServerException If server implementation throws
  7424. undeclared exception to RPC server]]>
  7425. </doc>
  7426. </method>
  7427. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  7428. abstract="false" native="false" synchronized="false"
  7429. static="false" final="false" visibility="public"
  7430. deprecated="not deprecated">
  7431. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7432. <exception name="IOException" type="java.io.IOException"/>
  7433. <doc>
  7434. <![CDATA[@return an iterator over the corrupt files under the given path
  7435. (may contain duplicates if a file has more than one corrupt block)
  7436. @throws IOException]]>
  7437. </doc>
  7438. </method>
  7439. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7440. abstract="false" native="false" synchronized="false"
  7441. static="false" final="false" visibility="public"
  7442. deprecated="not deprecated">
  7443. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7444. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7445. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7446. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7447. <exception name="IOException" type="java.io.IOException"/>
  7448. <doc>
  7449. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7450. a directory.
  7451. Return the file's status and block locations If the path is a file.
  7452. If a returned status is a file, it contains the file's block locations.
  7453. @param f is the path
  7454. @return an iterator that traverses statuses of the files/directories
  7455. in the given path
  7456. If any IO exception (for example the input directory gets deleted while
  7457. listing is being executed), next() or hasNext() of the returned iterator
  7458. may throw a RuntimeException with the io exception as the cause.
  7459. @throws AccessControlException If access is denied
  7460. @throws FileNotFoundException If <code>f</code> does not exist
  7461. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7462. not supported
  7463. @throws IOException If an I/O error occurred
  7464. Exceptions applicable to file systems accessed over RPC:
  7465. @throws RpcClientException If an exception occurred in the RPC client
  7466. @throws RpcServerException If an exception occurred in the RPC server
  7467. @throws UnexpectedServerException If server implementation throws
  7468. undeclared exception to RPC server]]>
  7469. </doc>
  7470. </method>
  7471. <method name="deleteOnExit" return="boolean"
  7472. abstract="false" native="false" synchronized="false"
  7473. static="false" final="false" visibility="public"
  7474. deprecated="not deprecated">
  7475. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7476. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7477. <exception name="IOException" type="java.io.IOException"/>
  7478. <doc>
  7479. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7480. @param f the existing path to delete.
  7481. @return true if deleteOnExit is successful, otherwise false.
  7482. @throws AccessControlException If access is denied
  7483. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7484. not supported
  7485. @throws IOException If an I/O error occurred
  7486. Exceptions applicable to file systems accessed over RPC:
  7487. @throws RpcClientException If an exception occurred in the RPC client
  7488. @throws RpcServerException If an exception occurred in the RPC server
  7489. @throws UnexpectedServerException If server implementation throws
  7490. undeclared exception to RPC server]]>
  7491. </doc>
  7492. </method>
  7493. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7494. abstract="false" native="false" synchronized="false"
  7495. static="false" final="false" visibility="public"
  7496. deprecated="not deprecated">
  7497. </method>
  7498. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7499. abstract="false" native="false" synchronized="false"
  7500. static="false" final="false" visibility="protected"
  7501. deprecated="not deprecated">
  7502. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7503. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7504. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7505. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7506. <exception name="IOException" type="java.io.IOException"/>
  7507. <doc>
  7508. <![CDATA[Resolves all symbolic links in the specified path.
  7509. Returns the new path object.]]>
  7510. </doc>
  7511. </method>
  7512. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7513. abstract="false" native="false" synchronized="false"
  7514. static="false" final="false" visibility="protected"
  7515. deprecated="not deprecated">
  7516. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7517. <exception name="IOException" type="java.io.IOException"/>
  7518. <doc>
  7519. <![CDATA[Resolves all symbolic links in the specified path leading up
  7520. to, but not including the final path component.
  7521. @param f path to resolve
  7522. @return the new path object.]]>
  7523. </doc>
  7524. </method>
  7525. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7526. abstract="false" native="false" synchronized="false"
  7527. static="true" final="false" visibility="public"
  7528. deprecated="not deprecated">
  7529. <param name="uri" type="java.net.URI"/>
  7530. <doc>
  7531. <![CDATA[Get the statistics for a particular file system
  7532. @param uri
  7533. the uri to lookup the statistics. Only scheme and authority part
  7534. of the uri are used as the key to store and lookup.
  7535. @return a statistics object]]>
  7536. </doc>
  7537. </method>
  7538. <method name="clearStatistics"
  7539. abstract="false" native="false" synchronized="false"
  7540. static="true" final="false" visibility="public"
  7541. deprecated="not deprecated">
  7542. <doc>
  7543. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7544. systems.]]>
  7545. </doc>
  7546. </method>
  7547. <method name="printStatistics"
  7548. abstract="false" native="false" synchronized="false"
  7549. static="true" final="false" visibility="public"
  7550. deprecated="not deprecated">
  7551. <doc>
  7552. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7553. scheme and authority.]]>
  7554. </doc>
  7555. </method>
  7556. <method name="getAllStatistics" return="java.util.Map"
  7557. abstract="false" native="false" synchronized="false"
  7558. static="true" final="false" visibility="public"
  7559. deprecated="not deprecated">
  7560. <doc>
  7561. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7562. consists of scheme and authority for the filesystem.]]>
  7563. </doc>
  7564. </method>
  7565. <method name="modifyAclEntries"
  7566. abstract="false" native="false" synchronized="false"
  7567. static="false" final="false" visibility="public"
  7568. deprecated="not deprecated">
  7569. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7570. <param name="aclSpec" type="java.util.List"/>
  7571. <exception name="IOException" type="java.io.IOException"/>
  7572. <doc>
  7573. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7574. entries or modify the permissions on existing ACL entries. All existing
  7575. ACL entries that are not specified in this call are retained without
  7576. changes. (Modifications are merged into the current ACL.)
  7577. @param path Path to modify
  7578. @param aclSpec List<AclEntry> describing modifications
  7579. @throws IOException if an ACL could not be modified]]>
  7580. </doc>
  7581. </method>
  7582. <method name="removeAclEntries"
  7583. abstract="false" native="false" synchronized="false"
  7584. static="false" final="false" visibility="public"
  7585. deprecated="not deprecated">
  7586. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7587. <param name="aclSpec" type="java.util.List"/>
  7588. <exception name="IOException" type="java.io.IOException"/>
  7589. <doc>
  7590. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7591. retained.
  7592. @param path Path to modify
  7593. @param aclSpec List<AclEntry> describing entries to remove
  7594. @throws IOException if an ACL could not be modified]]>
  7595. </doc>
  7596. </method>
  7597. <method name="removeDefaultAcl"
  7598. abstract="false" native="false" synchronized="false"
  7599. static="false" final="false" visibility="public"
  7600. deprecated="not deprecated">
  7601. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7602. <exception name="IOException" type="java.io.IOException"/>
  7603. <doc>
  7604. <![CDATA[Removes all default ACL entries from files and directories.
  7605. @param path Path to modify
  7606. @throws IOException if an ACL could not be modified]]>
  7607. </doc>
  7608. </method>
  7609. <method name="removeAcl"
  7610. abstract="false" native="false" synchronized="false"
  7611. static="false" final="false" visibility="public"
  7612. deprecated="not deprecated">
  7613. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7614. <exception name="IOException" type="java.io.IOException"/>
  7615. <doc>
  7616. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7617. for user, group, and others are retained for compatibility with permission
  7618. bits.
  7619. @param path Path to modify
  7620. @throws IOException if an ACL could not be removed]]>
  7621. </doc>
  7622. </method>
  7623. <method name="setAcl"
  7624. abstract="false" native="false" synchronized="false"
  7625. static="false" final="false" visibility="public"
  7626. deprecated="not deprecated">
  7627. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7628. <param name="aclSpec" type="java.util.List"/>
  7629. <exception name="IOException" type="java.io.IOException"/>
  7630. <doc>
  7631. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7632. entries.
  7633. @param path Path to modify
  7634. @param aclSpec List<AclEntry> describing modifications, must include entries
  7635. for user, group, and others for compatibility with permission bits.
  7636. @throws IOException if an ACL could not be modified]]>
  7637. </doc>
  7638. </method>
  7639. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7640. abstract="false" native="false" synchronized="false"
  7641. static="false" final="false" visibility="public"
  7642. deprecated="not deprecated">
  7643. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7644. <exception name="IOException" type="java.io.IOException"/>
  7645. <doc>
  7646. <![CDATA[Gets the ACLs of files and directories.
  7647. @param path Path to get
  7648. @return RemoteIterator<AclStatus> which returns each AclStatus
  7649. @throws IOException if an ACL could not be read]]>
  7650. </doc>
  7651. </method>
  7652. <method name="setXAttr"
  7653. abstract="false" native="false" synchronized="false"
  7654. static="false" final="false" visibility="public"
  7655. deprecated="not deprecated">
  7656. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7657. <param name="name" type="java.lang.String"/>
  7658. <param name="value" type="byte[]"/>
  7659. <exception name="IOException" type="java.io.IOException"/>
  7660. <doc>
  7661. <![CDATA[Set an xattr of a file or directory.
  7662. The name must be prefixed with the namespace followed by ".". For example,
  7663. "user.attr".
  7664. <p/>
  7665. Refer to the HDFS extended attributes user documentation for details.
  7666. @param path Path to modify
  7667. @param name xattr name.
  7668. @param value xattr value.
  7669. @throws IOException]]>
  7670. </doc>
  7671. </method>
  7672. <method name="setXAttr"
  7673. abstract="false" native="false" synchronized="false"
  7674. static="false" final="false" visibility="public"
  7675. deprecated="not deprecated">
  7676. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7677. <param name="name" type="java.lang.String"/>
  7678. <param name="value" type="byte[]"/>
  7679. <param name="flag" type="java.util.EnumSet"/>
  7680. <exception name="IOException" type="java.io.IOException"/>
  7681. <doc>
  7682. <![CDATA[Set an xattr of a file or directory.
  7683. The name must be prefixed with the namespace followed by ".". For example,
  7684. "user.attr".
  7685. <p/>
  7686. Refer to the HDFS extended attributes user documentation for details.
  7687. @param path Path to modify
  7688. @param name xattr name.
  7689. @param value xattr value.
  7690. @param flag xattr set flag
  7691. @throws IOException]]>
  7692. </doc>
  7693. </method>
  7694. <method name="getXAttr" return="byte[]"
  7695. abstract="false" native="false" synchronized="false"
  7696. static="false" final="false" visibility="public"
  7697. deprecated="not deprecated">
  7698. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7699. <param name="name" type="java.lang.String"/>
  7700. <exception name="IOException" type="java.io.IOException"/>
  7701. <doc>
  7702. <![CDATA[Get an xattr for a file or directory.
  7703. The name must be prefixed with the namespace followed by ".". For example,
  7704. "user.attr".
  7705. <p/>
  7706. Refer to the HDFS extended attributes user documentation for details.
  7707. @param path Path to get extended attribute
  7708. @param name xattr name.
  7709. @return byte[] xattr value.
  7710. @throws IOException]]>
  7711. </doc>
  7712. </method>
  7713. <method name="getXAttrs" return="java.util.Map"
  7714. abstract="false" native="false" synchronized="false"
  7715. static="false" final="false" visibility="public"
  7716. deprecated="not deprecated">
  7717. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7718. <exception name="IOException" type="java.io.IOException"/>
  7719. <doc>
  7720. <![CDATA[Get all of the xattrs for a file or directory.
  7721. Only those xattrs for which the logged-in user has permissions to view
  7722. are returned.
  7723. <p/>
  7724. Refer to the HDFS extended attributes user documentation for details.
  7725. @param path Path to get extended attributes
  7726. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7727. @throws IOException]]>
  7728. </doc>
  7729. </method>
  7730. <method name="getXAttrs" return="java.util.Map"
  7731. abstract="false" native="false" synchronized="false"
  7732. static="false" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7735. <param name="names" type="java.util.List"/>
  7736. <exception name="IOException" type="java.io.IOException"/>
  7737. <doc>
  7738. <![CDATA[Get all of the xattrs for a file or directory.
  7739. Only those xattrs for which the logged-in user has permissions to view
  7740. are returned.
  7741. <p/>
  7742. Refer to the HDFS extended attributes user documentation for details.
  7743. @param path Path to get extended attributes
  7744. @param names XAttr names.
  7745. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7746. @throws IOException]]>
  7747. </doc>
  7748. </method>
  7749. <method name="removeXAttr"
  7750. abstract="false" native="false" synchronized="false"
  7751. static="false" final="false" visibility="public"
  7752. deprecated="not deprecated">
  7753. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7754. <param name="name" type="java.lang.String"/>
  7755. <exception name="IOException" type="java.io.IOException"/>
  7756. <doc>
  7757. <![CDATA[Remove an xattr of a file or directory.
  7758. The name must be prefixed with the namespace followed by ".". For example,
  7759. "user.attr".
  7760. <p/>
  7761. Refer to the HDFS extended attributes user documentation for details.
  7762. @param path Path to remove extended attribute
  7763. @param name xattr name
  7764. @throws IOException]]>
  7765. </doc>
  7766. </method>
  7767. <method name="listXAttrs" return="java.util.List"
  7768. abstract="false" native="false" synchronized="false"
  7769. static="false" final="false" visibility="public"
  7770. deprecated="not deprecated">
  7771. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7772. <exception name="IOException" type="java.io.IOException"/>
  7773. <doc>
  7774. <![CDATA[Get all of the xattr names for a file or directory.
  7775. Only those xattr names which the logged-in user has permissions to view
  7776. are returned.
  7777. <p/>
  7778. Refer to the HDFS extended attributes user documentation for details.
  7779. @param path Path to get extended attributes
  7780. @return List<String> of the XAttr names of the file or directory
  7781. @throws IOException]]>
  7782. </doc>
  7783. </method>
  7784. <field name="LOG" type="org.apache.commons.logging.Log"
  7785. transient="false" volatile="false"
  7786. static="true" final="true" visibility="public"
  7787. deprecated="not deprecated">
  7788. </field>
  7789. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7790. transient="false" volatile="false"
  7791. static="true" final="true" visibility="public"
  7792. deprecated="not deprecated">
  7793. <doc>
  7794. <![CDATA[Default permission for directory and symlink
  7795. In previous versions, this default permission was also used to
  7796. create files, so files created end up with ugo+x permission.
  7797. See HADOOP-9155 for detail.
  7798. Two new constants are added to solve this, please use
  7799. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  7800. {@link FileContext#FILE_DEFAULT_PERM} for file.
  7801. This constant is kept for compatibility.]]>
  7802. </doc>
  7803. </field>
  7804. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7805. transient="false" volatile="false"
  7806. static="true" final="true" visibility="public"
  7807. deprecated="not deprecated">
  7808. <doc>
  7809. <![CDATA[Default permission for directory]]>
  7810. </doc>
  7811. </field>
  7812. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7813. transient="false" volatile="false"
  7814. static="true" final="true" visibility="public"
  7815. deprecated="not deprecated">
  7816. <doc>
  7817. <![CDATA[Default permission for file]]>
  7818. </doc>
  7819. </field>
  7820. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  7821. transient="false" volatile="false"
  7822. static="true" final="true" visibility="public"
  7823. deprecated="not deprecated">
  7824. <doc>
  7825. <![CDATA[Priority of the FileContext shutdown hook.]]>
  7826. </doc>
  7827. </field>
  7828. <doc>
  7829. <![CDATA[The FileContext class provides an interface to the application writer for
  7830. using the Hadoop file system.
  7831. It provides a set of methods for the usual operation: create, open,
  7832. list, etc
  7833. <p>
  7834. <b> *** Path Names *** </b>
  7835. <p>
  7836. The Hadoop file system supports a URI name space and URI names.
  7837. It offers a forest of file systems that can be referenced using fully
  7838. qualified URIs.
  7839. Two common Hadoop file systems implementations are
  7840. <ul>
  7841. <li> the local file system: file:///path
  7842. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  7843. </ul>
  7844. While URI names are very flexible, it requires knowing the name or address
  7845. of the server. For convenience one often wants to access the default system
  7846. in one's environment without knowing its name/address. This has an
  7847. additional benefit that it allows one to change one's default fs
  7848. (e.g. admin moves application from cluster1 to cluster2).
  7849. <p>
  7850. To facilitate this, Hadoop supports a notion of a default file system.
  7851. The user can set his default file system, although this is
  7852. typically set up for you in your environment via your default config.
  7853. A default file system implies a default scheme and authority; slash-relative
  7854. names (such as /for/bar) are resolved relative to that default FS.
  7855. Similarly a user can also have working-directory-relative names (i.e. names
  7856. not starting with a slash). While the working directory is generally in the
  7857. same default FS, the wd can be in a different FS.
  7858. <p>
  7859. Hence Hadoop path names can be one of:
  7860. <ul>
  7861. <li> fully qualified URI: scheme://authority/path
  7862. <li> slash relative names: /path relative to the default file system
  7863. <li> wd-relative names: path relative to the working dir
  7864. </ul>
  7865. Relative paths with scheme (scheme:foo/bar) are illegal.
  7866. <p>
  7867. <b>****The Role of the FileContext and configuration defaults****</b>
  7868. <p>
  7869. The FileContext provides file namespace context for resolving file names;
  7870. it also contains the umask for permissions, In that sense it is like the
  7871. per-process file-related state in Unix system.
  7872. These two properties
  7873. <ul>
  7874. <li> default file system i.e your slash)
  7875. <li> umask
  7876. </ul>
  7877. in general, are obtained from the default configuration file
  7878. in your environment, (@see {@link Configuration}).
  7879. No other configuration parameters are obtained from the default config as
  7880. far as the file context layer is concerned. All file system instances
  7881. (i.e. deployments of file systems) have default properties; we call these
  7882. server side (SS) defaults. Operation like create allow one to select many
  7883. properties: either pass them in as explicit parameters or use
  7884. the SS properties.
  7885. <p>
  7886. The file system related SS defaults are
  7887. <ul>
  7888. <li> the home directory (default is "/user/userName")
  7889. <li> the initial wd (only for local fs)
  7890. <li> replication factor
  7891. <li> block size
  7892. <li> buffer size
  7893. <li> encryptDataTransfer
  7894. <li> checksum option. (checksumType and bytesPerChecksum)
  7895. </ul>
  7896. <p>
  7897. <b> *** Usage Model for the FileContext class *** </b>
  7898. <p>
  7899. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  7900. Unspecified values come from core-defaults.xml in the release jar.
  7901. <ul>
  7902. <li> myFContext = FileContext.getFileContext(); // uses the default config
  7903. // which has your default FS
  7904. <li> myFContext.create(path, ...);
  7905. <li> myFContext.setWorkingDir(path)
  7906. <li> myFContext.open (path, ...);
  7907. </ul>
  7908. Example 2: Get a FileContext with a specific URI as the default FS
  7909. <ul>
  7910. <li> myFContext = FileContext.getFileContext(URI)
  7911. <li> myFContext.create(path, ...);
  7912. ...
  7913. </ul>
  7914. Example 3: FileContext with local file system as the default
  7915. <ul>
  7916. <li> myFContext = FileContext.getLocalFSFileContext()
  7917. <li> myFContext.create(path, ...);
  7918. <li> ...
  7919. </ul>
  7920. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7921. Generally you should not need use a config unless you are doing
  7922. <ul>
  7923. <li> configX = someConfigSomeOnePassedToYou.
  7924. <li> myFContext = getFileContext(configX); // configX is not changed,
  7925. // is passed down
  7926. <li> myFContext.create(path, ...);
  7927. <li>...
  7928. </ul>]]>
  7929. </doc>
  7930. </class>
  7931. <!-- end class org.apache.hadoop.fs.FileContext -->
  7932. <!-- start class org.apache.hadoop.fs.FileContext.Util -->
  7933. <class name="FileContext.Util" extends="java.lang.Object"
  7934. abstract="false"
  7935. static="false" final="false" visibility="public"
  7936. deprecated="not deprecated">
  7937. <constructor name="Util"
  7938. static="false" final="false" visibility="public"
  7939. deprecated="not deprecated">
  7940. </constructor>
  7941. <method name="exists" return="boolean"
  7942. abstract="false" native="false" synchronized="false"
  7943. static="false" final="false" visibility="public"
  7944. deprecated="not deprecated">
  7945. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7946. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7947. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7948. <exception name="IOException" type="java.io.IOException"/>
  7949. <doc>
  7950. <![CDATA[Does the file exist?
  7951. Note: Avoid using this method if you already have FileStatus in hand.
  7952. Instead reuse the FileStatus
  7953. @param f the file or dir to be checked
  7954. @throws AccessControlException If access is denied
  7955. @throws IOException If an I/O error occurred
  7956. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7957. not supported
  7958. Exceptions applicable to file systems accessed over RPC:
  7959. @throws RpcClientException If an exception occurred in the RPC client
  7960. @throws RpcServerException If an exception occurred in the RPC server
  7961. @throws UnexpectedServerException If server implementation throws
  7962. undeclared exception to RPC server]]>
  7963. </doc>
  7964. </method>
  7965. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  7966. abstract="false" native="false" synchronized="false"
  7967. static="false" final="false" visibility="public"
  7968. deprecated="not deprecated">
  7969. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7970. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7971. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7972. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  7973. <exception name="IOException" type="java.io.IOException"/>
  7974. <doc>
  7975. <![CDATA[Return the {@link ContentSummary} of path f.
  7976. @param f path
  7977. @return the {@link ContentSummary} of path f.
  7978. @throws AccessControlException If access is denied
  7979. @throws FileNotFoundException If <code>f</code> does not exist
  7980. @throws UnsupportedFileSystemException If file system for
  7981. <code>f</code> is not supported
  7982. @throws IOException If an I/O error occurred
  7983. Exceptions applicable to file systems accessed over RPC:
  7984. @throws RpcClientException If an exception occurred in the RPC client
  7985. @throws RpcServerException If an exception occurred in the RPC server
  7986. @throws UnexpectedServerException If server implementation throws
  7987. undeclared exception to RPC server]]>
  7988. </doc>
  7989. </method>
  7990. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7991. abstract="false" native="false" synchronized="false"
  7992. static="false" final="false" visibility="public"
  7993. deprecated="not deprecated">
  7994. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  7995. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7996. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7997. <exception name="IOException" type="java.io.IOException"/>
  7998. <doc>
  7999. <![CDATA[See {@link #listStatus(Path[], PathFilter)}]]>
  8000. </doc>
  8001. </method>
  8002. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8003. abstract="false" native="false" synchronized="false"
  8004. static="false" final="false" visibility="public"
  8005. deprecated="not deprecated">
  8006. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8007. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8008. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8009. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8010. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8011. <exception name="IOException" type="java.io.IOException"/>
  8012. <doc>
  8013. <![CDATA[Filter files/directories in the given path using the user-supplied path
  8014. filter.
  8015. @param f is the path name
  8016. @param filter is the user-supplied path filter
  8017. @return an array of FileStatus objects for the files under the given path
  8018. after applying the filter
  8019. @throws AccessControlException If access is denied
  8020. @throws FileNotFoundException If <code>f</code> does not exist
  8021. @throws UnsupportedFileSystemException If file system for
  8022. <code>pathPattern</code> is not supported
  8023. @throws IOException If an I/O error occurred
  8024. Exceptions applicable to file systems accessed over RPC:
  8025. @throws RpcClientException If an exception occurred in the RPC client
  8026. @throws RpcServerException If an exception occurred in the RPC server
  8027. @throws UnexpectedServerException If server implementation throws
  8028. undeclared exception to RPC server]]>
  8029. </doc>
  8030. </method>
  8031. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8032. abstract="false" native="false" synchronized="false"
  8033. static="false" final="false" visibility="public"
  8034. deprecated="not deprecated">
  8035. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8036. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8037. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8038. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8039. <exception name="IOException" type="java.io.IOException"/>
  8040. <doc>
  8041. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  8042. path filter.
  8043. @param files is a list of paths
  8044. @param filter is the filter
  8045. @return a list of statuses for the files under the given paths after
  8046. applying the filter
  8047. @throws AccessControlException If access is denied
  8048. @throws FileNotFoundException If a file in <code>files</code> does not
  8049. exist
  8050. @throws IOException If an I/O error occurred
  8051. Exceptions applicable to file systems accessed over RPC:
  8052. @throws RpcClientException If an exception occurred in the RPC client
  8053. @throws RpcServerException If an exception occurred in the RPC server
  8054. @throws UnexpectedServerException If server implementation throws
  8055. undeclared exception to RPC server]]>
  8056. </doc>
  8057. </method>
  8058. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8059. abstract="false" native="false" synchronized="false"
  8060. static="false" final="false" visibility="public"
  8061. deprecated="not deprecated">
  8062. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8063. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8064. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8065. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8066. <exception name="IOException" type="java.io.IOException"/>
  8067. <doc>
  8068. <![CDATA[List the statuses of the files/directories in the given path
  8069. if the path is a directory.
  8070. @param f is the path
  8071. @return an array that contains statuses of the files/directories
  8072. in the given path
  8073. @throws AccessControlException If access is denied
  8074. @throws FileNotFoundException If <code>f</code> does not exist
  8075. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  8076. not supported
  8077. @throws IOException If an I/O error occurred
  8078. Exceptions applicable to file systems accessed over RPC:
  8079. @throws RpcClientException If an exception occurred in the RPC client
  8080. @throws RpcServerException If an exception occurred in the RPC server
  8081. @throws UnexpectedServerException If server implementation throws
  8082. undeclared exception to RPC server]]>
  8083. </doc>
  8084. </method>
  8085. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  8086. abstract="false" native="false" synchronized="false"
  8087. static="false" final="false" visibility="public"
  8088. deprecated="not deprecated">
  8089. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8090. <param name="recursive" type="boolean"/>
  8091. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8092. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8093. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8094. <exception name="IOException" type="java.io.IOException"/>
  8095. <doc>
  8096. <![CDATA[List the statuses and block locations of the files in the given path.
  8097. If the path is a directory,
  8098. if recursive is false, returns files in the directory;
  8099. if recursive is true, return files in the subtree rooted at the path.
  8100. The subtree is traversed in the depth-first order.
  8101. If the path is a file, return the file's status and block locations.
  8102. Files across symbolic links are also returned.
  8103. @param f is the path
  8104. @param recursive if the subdirectories need to be traversed recursively
  8105. @return an iterator that traverses statuses of the files
  8106. If any IO exception (for example a sub-directory gets deleted while
  8107. listing is being executed), next() or hasNext() of the returned iterator
  8108. may throw a RuntimeException with the IO exception as the cause.
  8109. @throws AccessControlException If access is denied
  8110. @throws FileNotFoundException If <code>f</code> does not exist
  8111. @throws UnsupportedFileSystemException If file system for <code>f</code>
  8112. is not supported
  8113. @throws IOException If an I/O error occurred
  8114. Exceptions applicable to file systems accessed over RPC:
  8115. @throws RpcClientException If an exception occurred in the RPC client
  8116. @throws RpcServerException If an exception occurred in the RPC server
  8117. @throws UnexpectedServerException If server implementation throws
  8118. undeclared exception to RPC server]]>
  8119. </doc>
  8120. </method>
  8121. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8122. abstract="false" native="false" synchronized="false"
  8123. static="false" final="false" visibility="public"
  8124. deprecated="not deprecated">
  8125. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8126. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8127. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8128. <exception name="IOException" type="java.io.IOException"/>
  8129. <doc>
  8130. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  8131. files. Results are sorted by their names.
  8132. <p>
  8133. A filename pattern is composed of <i>regular</i> characters and
  8134. <i>special pattern matching</i> characters, which are:
  8135. <dl>
  8136. <dd>
  8137. <dl>
  8138. <p>
  8139. <dt> <tt> ? </tt>
  8140. <dd> Matches any single character.
  8141. <p>
  8142. <dt> <tt> * </tt>
  8143. <dd> Matches zero or more characters.
  8144. <p>
  8145. <dt> <tt> [<i>abc</i>] </tt>
  8146. <dd> Matches a single character from character set
  8147. <tt>{<i>a,b,c</i>}</tt>.
  8148. <p>
  8149. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  8150. <dd> Matches a single character from the character range
  8151. <tt>{<i>a...b</i>}</tt>. Note: character <tt><i>a</i></tt> must be
  8152. lexicographically less than or equal to character <tt><i>b</i></tt>.
  8153. <p>
  8154. <dt> <tt> [^<i>a</i>] </tt>
  8155. <dd> Matches a single char that is not from character set or range
  8156. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  8157. immediately to the right of the opening bracket.
  8158. <p>
  8159. <dt> <tt> \<i>c</i> </tt>
  8160. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  8161. <p>
  8162. <dt> <tt> {ab,cd} </tt>
  8163. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  8164. <p>
  8165. <dt> <tt> {ab,c{de,fh}} </tt>
  8166. <dd> Matches a string from string set <tt>{<i>ab, cde, cfh</i>}</tt>
  8167. </dl>
  8168. </dd>
  8169. </dl>
  8170. @param pathPattern a regular expression specifying a pth pattern
  8171. @return an array of paths that match the path pattern
  8172. @throws AccessControlException If access is denied
  8173. @throws UnsupportedFileSystemException If file system for
  8174. <code>pathPattern</code> is not supported
  8175. @throws IOException If an I/O error occurred
  8176. Exceptions applicable to file systems accessed over RPC:
  8177. @throws RpcClientException If an exception occurred in the RPC client
  8178. @throws RpcServerException If an exception occurred in the RPC server
  8179. @throws UnexpectedServerException If server implementation throws
  8180. undeclared exception to RPC server]]>
  8181. </doc>
  8182. </method>
  8183. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8184. abstract="false" native="false" synchronized="false"
  8185. static="false" final="false" visibility="public"
  8186. deprecated="not deprecated">
  8187. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8188. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8189. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8190. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8191. <exception name="IOException" type="java.io.IOException"/>
  8192. <doc>
  8193. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  8194. and is accepted by the user-supplied path filter. Results are sorted by
  8195. their path names.
  8196. Return null if pathPattern has no glob and the path does not exist.
  8197. Return an empty array if pathPattern has a glob and no path matches it.
  8198. @param pathPattern regular expression specifying the path pattern
  8199. @param filter user-supplied path filter
  8200. @return an array of FileStatus objects
  8201. @throws AccessControlException If access is denied
  8202. @throws UnsupportedFileSystemException If file system for
  8203. <code>pathPattern</code> is not supported
  8204. @throws IOException If an I/O error occurred
  8205. Exceptions applicable to file systems accessed over RPC:
  8206. @throws RpcClientException If an exception occurred in the RPC client
  8207. @throws RpcServerException If an exception occurred in the RPC server
  8208. @throws UnexpectedServerException If server implementation throws
  8209. undeclared exception to RPC server]]>
  8210. </doc>
  8211. </method>
  8212. <method name="copy" return="boolean"
  8213. abstract="false" native="false" synchronized="false"
  8214. static="false" final="false" visibility="public"
  8215. deprecated="not deprecated">
  8216. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8217. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8218. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8219. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  8220. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8221. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  8222. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8223. <exception name="IOException" type="java.io.IOException"/>
  8224. <doc>
  8225. <![CDATA[Copy file from src to dest. See
  8226. {@link #copy(Path, Path, boolean, boolean)}]]>
  8227. </doc>
  8228. </method>
  8229. <method name="copy" return="boolean"
  8230. abstract="false" native="false" synchronized="false"
  8231. static="false" final="false" visibility="public"
  8232. deprecated="not deprecated">
  8233. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8234. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8235. <param name="deleteSource" type="boolean"/>
  8236. <param name="overwrite" type="boolean"/>
  8237. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8238. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  8239. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8240. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  8241. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8242. <exception name="IOException" type="java.io.IOException"/>
  8243. <doc>
  8244. <![CDATA[Copy from src to dst, optionally deleting src and overwriting dst.
  8245. @param src
  8246. @param dst
  8247. @param deleteSource - delete src if true
  8248. @param overwrite overwrite dst if true; throw IOException if dst exists
  8249. and overwrite is false.
  8250. @return true if copy is successful
  8251. @throws AccessControlException If access is denied
  8252. @throws FileAlreadyExistsException If <code>dst</code> already exists
  8253. @throws FileNotFoundException If <code>src</code> does not exist
  8254. @throws ParentNotDirectoryException If parent of <code>dst</code> is not
  8255. a directory
  8256. @throws UnsupportedFileSystemException If file system for
  8257. <code>src</code> or <code>dst</code> is not supported
  8258. @throws IOException If an I/O error occurred
  8259. Exceptions applicable to file systems accessed over RPC:
  8260. @throws RpcClientException If an exception occurred in the RPC client
  8261. @throws RpcServerException If an exception occurred in the RPC server
  8262. @throws UnexpectedServerException If server implementation throws
  8263. undeclared exception to RPC server
  8264. RuntimeExceptions:
  8265. @throws InvalidPathException If path <code>dst</code> is invalid]]>
  8266. </doc>
  8267. </method>
  8268. <doc>
  8269. <![CDATA[Utility/library methods built over the basic FileContext methods.
  8270. Since this are library functions, the oprtation are not atomic
  8271. and some of them may partially complete if other threads are making
  8272. changes to the same part of the name space.]]>
  8273. </doc>
  8274. </class>
  8275. <!-- end class org.apache.hadoop.fs.FileContext.Util -->
  8276. <!-- start class org.apache.hadoop.fs.FileStatus -->
  8277. <class name="FileStatus" extends="java.lang.Object"
  8278. abstract="false"
  8279. static="false" final="false" visibility="public"
  8280. deprecated="not deprecated">
  8281. <implements name="org.apache.hadoop.io.Writable"/>
  8282. <implements name="java.lang.Comparable"/>
  8283. <constructor name="FileStatus"
  8284. static="false" final="false" visibility="public"
  8285. deprecated="not deprecated">
  8286. </constructor>
  8287. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  8288. static="false" final="false" visibility="public"
  8289. deprecated="not deprecated">
  8290. </constructor>
  8291. <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"
  8292. static="false" final="false" visibility="public"
  8293. deprecated="not deprecated">
  8294. <doc>
  8295. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  8296. </doc>
  8297. </constructor>
  8298. <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"
  8299. static="false" final="false" visibility="public"
  8300. deprecated="not deprecated">
  8301. </constructor>
  8302. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  8303. static="false" final="false" visibility="public"
  8304. deprecated="not deprecated">
  8305. <exception name="IOException" type="java.io.IOException"/>
  8306. <doc>
  8307. <![CDATA[Copy constructor.
  8308. @param other FileStatus to copy]]>
  8309. </doc>
  8310. </constructor>
  8311. <method name="getLen" return="long"
  8312. abstract="false" native="false" synchronized="false"
  8313. static="false" final="false" visibility="public"
  8314. deprecated="not deprecated">
  8315. <doc>
  8316. <![CDATA[Get the length of this file, in bytes.
  8317. @return the length of this file, in bytes.]]>
  8318. </doc>
  8319. </method>
  8320. <method name="isFile" return="boolean"
  8321. abstract="false" native="false" synchronized="false"
  8322. static="false" final="false" visibility="public"
  8323. deprecated="not deprecated">
  8324. <doc>
  8325. <![CDATA[Is this a file?
  8326. @return true if this is a file]]>
  8327. </doc>
  8328. </method>
  8329. <method name="isDirectory" return="boolean"
  8330. abstract="false" native="false" synchronized="false"
  8331. static="false" final="false" visibility="public"
  8332. deprecated="not deprecated">
  8333. <doc>
  8334. <![CDATA[Is this a directory?
  8335. @return true if this is a directory]]>
  8336. </doc>
  8337. </method>
  8338. <method name="isDir" return="boolean"
  8339. abstract="false" native="false" synchronized="false"
  8340. static="false" final="false" visibility="public"
  8341. deprecated="Use {@link FileStatus#isFile()},
  8342. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8343. instead.">
  8344. <doc>
  8345. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  8346. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8347. @return true if this is a directory.
  8348. @deprecated Use {@link FileStatus#isFile()},
  8349. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  8350. instead.]]>
  8351. </doc>
  8352. </method>
  8353. <method name="isSymlink" return="boolean"
  8354. abstract="false" native="false" synchronized="false"
  8355. static="false" final="false" visibility="public"
  8356. deprecated="not deprecated">
  8357. <doc>
  8358. <![CDATA[Is this a symbolic link?
  8359. @return true if this is a symbolic link]]>
  8360. </doc>
  8361. </method>
  8362. <method name="getBlockSize" return="long"
  8363. abstract="false" native="false" synchronized="false"
  8364. static="false" final="false" visibility="public"
  8365. deprecated="not deprecated">
  8366. <doc>
  8367. <![CDATA[Get the block size of the file.
  8368. @return the number of bytes]]>
  8369. </doc>
  8370. </method>
  8371. <method name="getReplication" return="short"
  8372. abstract="false" native="false" synchronized="false"
  8373. static="false" final="false" visibility="public"
  8374. deprecated="not deprecated">
  8375. <doc>
  8376. <![CDATA[Get the replication factor of a file.
  8377. @return the replication factor of a file.]]>
  8378. </doc>
  8379. </method>
  8380. <method name="getModificationTime" return="long"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <doc>
  8385. <![CDATA[Get the modification time of the file.
  8386. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  8387. </doc>
  8388. </method>
  8389. <method name="getAccessTime" return="long"
  8390. abstract="false" native="false" synchronized="false"
  8391. static="false" final="false" visibility="public"
  8392. deprecated="not deprecated">
  8393. <doc>
  8394. <![CDATA[Get the access time of the file.
  8395. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  8396. </doc>
  8397. </method>
  8398. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  8399. abstract="false" native="false" synchronized="false"
  8400. static="false" final="false" visibility="public"
  8401. deprecated="not deprecated">
  8402. <doc>
  8403. <![CDATA[Get FsPermission associated with the file.
  8404. @return permssion. If a filesystem does not have a notion of permissions
  8405. or if permissions could not be determined, then default
  8406. permissions equivalent of "rwxrwxrwx" is returned.]]>
  8407. </doc>
  8408. </method>
  8409. <method name="isEncrypted" return="boolean"
  8410. abstract="false" native="false" synchronized="false"
  8411. static="false" final="false" visibility="public"
  8412. deprecated="not deprecated">
  8413. <doc>
  8414. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  8415. @return true if the underlying file is encrypted.]]>
  8416. </doc>
  8417. </method>
  8418. <method name="getOwner" return="java.lang.String"
  8419. abstract="false" native="false" synchronized="false"
  8420. static="false" final="false" visibility="public"
  8421. deprecated="not deprecated">
  8422. <doc>
  8423. <![CDATA[Get the owner of the file.
  8424. @return owner of the file. The string could be empty if there is no
  8425. notion of owner of a file in a filesystem or if it could not
  8426. be determined (rare).]]>
  8427. </doc>
  8428. </method>
  8429. <method name="getGroup" return="java.lang.String"
  8430. abstract="false" native="false" synchronized="false"
  8431. static="false" final="false" visibility="public"
  8432. deprecated="not deprecated">
  8433. <doc>
  8434. <![CDATA[Get the group associated with the file.
  8435. @return group for the file. The string could be empty if there is no
  8436. notion of group of a file in a filesystem or if it could not
  8437. be determined (rare).]]>
  8438. </doc>
  8439. </method>
  8440. <method name="getPath" return="org.apache.hadoop.fs.Path"
  8441. abstract="false" native="false" synchronized="false"
  8442. static="false" final="false" visibility="public"
  8443. deprecated="not deprecated">
  8444. </method>
  8445. <method name="setPath"
  8446. abstract="false" native="false" synchronized="false"
  8447. static="false" final="false" visibility="public"
  8448. deprecated="not deprecated">
  8449. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8450. </method>
  8451. <method name="setPermission"
  8452. abstract="false" native="false" synchronized="false"
  8453. static="false" final="false" visibility="protected"
  8454. deprecated="not deprecated">
  8455. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8456. <doc>
  8457. <![CDATA[Sets permission.
  8458. @param permission if permission is null, default value is set]]>
  8459. </doc>
  8460. </method>
  8461. <method name="setOwner"
  8462. abstract="false" native="false" synchronized="false"
  8463. static="false" final="false" visibility="protected"
  8464. deprecated="not deprecated">
  8465. <param name="owner" type="java.lang.String"/>
  8466. <doc>
  8467. <![CDATA[Sets owner.
  8468. @param owner if it is null, default value is set]]>
  8469. </doc>
  8470. </method>
  8471. <method name="setGroup"
  8472. abstract="false" native="false" synchronized="false"
  8473. static="false" final="false" visibility="protected"
  8474. deprecated="not deprecated">
  8475. <param name="group" type="java.lang.String"/>
  8476. <doc>
  8477. <![CDATA[Sets group.
  8478. @param group if it is null, default value is set]]>
  8479. </doc>
  8480. </method>
  8481. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  8482. abstract="false" native="false" synchronized="false"
  8483. static="false" final="false" visibility="public"
  8484. deprecated="not deprecated">
  8485. <exception name="IOException" type="java.io.IOException"/>
  8486. <doc>
  8487. <![CDATA[@return The contents of the symbolic link.]]>
  8488. </doc>
  8489. </method>
  8490. <method name="setSymlink"
  8491. abstract="false" native="false" synchronized="false"
  8492. static="false" final="false" visibility="public"
  8493. deprecated="not deprecated">
  8494. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8495. </method>
  8496. <method name="write"
  8497. abstract="false" native="false" synchronized="false"
  8498. static="false" final="false" visibility="public"
  8499. deprecated="not deprecated">
  8500. <param name="out" type="java.io.DataOutput"/>
  8501. <exception name="IOException" type="java.io.IOException"/>
  8502. </method>
  8503. <method name="readFields"
  8504. abstract="false" native="false" synchronized="false"
  8505. static="false" final="false" visibility="public"
  8506. deprecated="not deprecated">
  8507. <param name="in" type="java.io.DataInput"/>
  8508. <exception name="IOException" type="java.io.IOException"/>
  8509. </method>
  8510. <method name="compareTo" return="int"
  8511. abstract="false" native="false" synchronized="false"
  8512. static="false" final="false" visibility="public"
  8513. deprecated="not deprecated">
  8514. <param name="o" type="java.lang.Object"/>
  8515. <doc>
  8516. <![CDATA[Compare this object to another object
  8517. @param o the object to be compared.
  8518. @return a negative integer, zero, or a positive integer as this object
  8519. is less than, equal to, or greater than the specified object.
  8520. @throws ClassCastException if the specified object's is not of
  8521. type FileStatus]]>
  8522. </doc>
  8523. </method>
  8524. <method name="equals" return="boolean"
  8525. abstract="false" native="false" synchronized="false"
  8526. static="false" final="false" visibility="public"
  8527. deprecated="not deprecated">
  8528. <param name="o" type="java.lang.Object"/>
  8529. <doc>
  8530. <![CDATA[Compare if this object is equal to another object
  8531. @param o the object to be compared.
  8532. @return true if two file status has the same path name; false if not.]]>
  8533. </doc>
  8534. </method>
  8535. <method name="hashCode" return="int"
  8536. abstract="false" native="false" synchronized="false"
  8537. static="false" final="false" visibility="public"
  8538. deprecated="not deprecated">
  8539. <doc>
  8540. <![CDATA[Returns a hash code value for the object, which is defined as
  8541. the hash code of the path name.
  8542. @return a hash code value for the path name.]]>
  8543. </doc>
  8544. </method>
  8545. <method name="toString" return="java.lang.String"
  8546. abstract="false" native="false" synchronized="false"
  8547. static="false" final="false" visibility="public"
  8548. deprecated="not deprecated">
  8549. </method>
  8550. <doc>
  8551. <![CDATA[Interface that represents the client side information for a file.]]>
  8552. </doc>
  8553. </class>
  8554. <!-- end class org.apache.hadoop.fs.FileStatus -->
  8555. <!-- start class org.apache.hadoop.fs.FileSystem -->
  8556. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  8557. abstract="true"
  8558. static="false" final="false" visibility="public"
  8559. deprecated="not deprecated">
  8560. <implements name="java.io.Closeable"/>
  8561. <constructor name="FileSystem"
  8562. static="false" final="false" visibility="protected"
  8563. deprecated="not deprecated">
  8564. </constructor>
  8565. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8566. abstract="false" native="false" synchronized="false"
  8567. static="true" final="false" visibility="public"
  8568. deprecated="not deprecated">
  8569. <param name="uri" type="java.net.URI"/>
  8570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8571. <param name="user" type="java.lang.String"/>
  8572. <exception name="IOException" type="java.io.IOException"/>
  8573. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8574. <doc>
  8575. <![CDATA[Get a filesystem instance based on the uri, the passed
  8576. configuration and the user
  8577. @param uri of the filesystem
  8578. @param conf the configuration to use
  8579. @param user to perform the get as
  8580. @return the filesystem instance
  8581. @throws IOException
  8582. @throws InterruptedException]]>
  8583. </doc>
  8584. </method>
  8585. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8586. abstract="false" native="false" synchronized="false"
  8587. static="true" final="false" visibility="public"
  8588. deprecated="not deprecated">
  8589. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8590. <exception name="IOException" type="java.io.IOException"/>
  8591. <doc>
  8592. <![CDATA[Returns the configured filesystem implementation.
  8593. @param conf the configuration to use]]>
  8594. </doc>
  8595. </method>
  8596. <method name="getDefaultUri" return="java.net.URI"
  8597. abstract="false" native="false" synchronized="false"
  8598. static="true" final="false" visibility="public"
  8599. deprecated="not deprecated">
  8600. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8601. <doc>
  8602. <![CDATA[Get the default filesystem URI from a configuration.
  8603. @param conf the configuration to use
  8604. @return the uri of the default filesystem]]>
  8605. </doc>
  8606. </method>
  8607. <method name="setDefaultUri"
  8608. abstract="false" native="false" synchronized="false"
  8609. static="true" final="false" visibility="public"
  8610. deprecated="not deprecated">
  8611. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8612. <param name="uri" type="java.net.URI"/>
  8613. <doc>
  8614. <![CDATA[Set the default filesystem URI in a configuration.
  8615. @param conf the configuration to alter
  8616. @param uri the new default filesystem uri]]>
  8617. </doc>
  8618. </method>
  8619. <method name="setDefaultUri"
  8620. abstract="false" native="false" synchronized="false"
  8621. static="true" final="false" visibility="public"
  8622. deprecated="not deprecated">
  8623. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8624. <param name="uri" type="java.lang.String"/>
  8625. <doc>
  8626. <![CDATA[Set the default filesystem URI in a configuration.
  8627. @param conf the configuration to alter
  8628. @param uri the new default filesystem uri]]>
  8629. </doc>
  8630. </method>
  8631. <method name="initialize"
  8632. abstract="false" native="false" synchronized="false"
  8633. static="false" final="false" visibility="public"
  8634. deprecated="not deprecated">
  8635. <param name="name" type="java.net.URI"/>
  8636. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8637. <exception name="IOException" type="java.io.IOException"/>
  8638. <doc>
  8639. <![CDATA[Called after a new FileSystem instance is constructed.
  8640. @param name a uri whose authority section names the host, port, etc.
  8641. for this FileSystem
  8642. @param conf the configuration]]>
  8643. </doc>
  8644. </method>
  8645. <method name="getScheme" return="java.lang.String"
  8646. abstract="false" native="false" synchronized="false"
  8647. static="false" final="false" visibility="public"
  8648. deprecated="not deprecated">
  8649. <doc>
  8650. <![CDATA[Return the protocol scheme for the FileSystem.
  8651. <p/>
  8652. This implementation throws an <code>UnsupportedOperationException</code>.
  8653. @return the protocol scheme for the FileSystem.]]>
  8654. </doc>
  8655. </method>
  8656. <method name="getUri" return="java.net.URI"
  8657. abstract="true" native="false" synchronized="false"
  8658. static="false" final="false" visibility="public"
  8659. deprecated="not deprecated">
  8660. <doc>
  8661. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  8662. </doc>
  8663. </method>
  8664. <method name="getCanonicalUri" return="java.net.URI"
  8665. abstract="false" native="false" synchronized="false"
  8666. static="false" final="false" visibility="protected"
  8667. deprecated="not deprecated">
  8668. <doc>
  8669. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  8670. The default implementation simply calls {@link #canonicalizeUri(URI)}
  8671. on the filesystem's own URI, so subclasses typically only need to
  8672. implement that method.
  8673. @see #canonicalizeUri(URI)]]>
  8674. </doc>
  8675. </method>
  8676. <method name="canonicalizeUri" return="java.net.URI"
  8677. abstract="false" native="false" synchronized="false"
  8678. static="false" final="false" visibility="protected"
  8679. deprecated="not deprecated">
  8680. <param name="uri" type="java.net.URI"/>
  8681. <doc>
  8682. <![CDATA[Canonicalize the given URI.
  8683. This is filesystem-dependent, but may for example consist of
  8684. canonicalizing the hostname using DNS and adding the default
  8685. port if not specified.
  8686. The default implementation simply fills in the default port if
  8687. not specified and if the filesystem has a default port.
  8688. @return URI
  8689. @see NetUtils#getCanonicalUri(URI, int)]]>
  8690. </doc>
  8691. </method>
  8692. <method name="getDefaultPort" return="int"
  8693. abstract="false" native="false" synchronized="false"
  8694. static="false" final="false" visibility="protected"
  8695. deprecated="not deprecated">
  8696. <doc>
  8697. <![CDATA[Get the default port for this file system.
  8698. @return the default port or 0 if there isn't one]]>
  8699. </doc>
  8700. </method>
  8701. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  8702. abstract="false" native="false" synchronized="false"
  8703. static="true" final="false" visibility="protected"
  8704. deprecated="not deprecated">
  8705. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  8706. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8707. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8708. <exception name="IOException" type="java.io.IOException"/>
  8709. </method>
  8710. <method name="getName" return="java.lang.String"
  8711. abstract="false" native="false" synchronized="false"
  8712. static="false" final="false" visibility="public"
  8713. deprecated="call #getUri() instead.">
  8714. <doc>
  8715. <![CDATA[@deprecated call #getUri() instead.]]>
  8716. </doc>
  8717. </method>
  8718. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8719. abstract="false" native="false" synchronized="false"
  8720. static="true" final="false" visibility="public"
  8721. deprecated="call #get(URI,Configuration) instead.">
  8722. <param name="name" type="java.lang.String"/>
  8723. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8724. <exception name="IOException" type="java.io.IOException"/>
  8725. <doc>
  8726. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  8727. </doc>
  8728. </method>
  8729. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8730. abstract="false" native="false" synchronized="false"
  8731. static="true" final="false" visibility="public"
  8732. deprecated="not deprecated">
  8733. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8734. <exception name="IOException" type="java.io.IOException"/>
  8735. <doc>
  8736. <![CDATA[Get the local file system.
  8737. @param conf the configuration to configure the file system with
  8738. @return a LocalFileSystem]]>
  8739. </doc>
  8740. </method>
  8741. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8742. abstract="false" native="false" synchronized="false"
  8743. static="true" final="false" visibility="public"
  8744. deprecated="not deprecated">
  8745. <param name="uri" type="java.net.URI"/>
  8746. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8747. <exception name="IOException" type="java.io.IOException"/>
  8748. <doc>
  8749. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  8750. of the URI determines a configuration property name,
  8751. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  8752. The entire URI is passed to the FileSystem instance's initialize method.]]>
  8753. </doc>
  8754. </method>
  8755. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8756. abstract="false" native="false" synchronized="false"
  8757. static="true" final="false" visibility="public"
  8758. deprecated="not deprecated">
  8759. <param name="uri" type="java.net.URI"/>
  8760. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8761. <param name="user" type="java.lang.String"/>
  8762. <exception name="IOException" type="java.io.IOException"/>
  8763. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8764. <doc>
  8765. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8766. passed user. Internally invokes {@link #newInstance(URI, Configuration)}
  8767. @param uri of the filesystem
  8768. @param conf the configuration to use
  8769. @param user to perform the get as
  8770. @return filesystem instance
  8771. @throws IOException
  8772. @throws InterruptedException]]>
  8773. </doc>
  8774. </method>
  8775. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8776. abstract="false" native="false" synchronized="false"
  8777. static="true" final="false" visibility="public"
  8778. deprecated="not deprecated">
  8779. <param name="uri" type="java.net.URI"/>
  8780. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8781. <exception name="IOException" type="java.io.IOException"/>
  8782. <doc>
  8783. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  8784. of the URI determines a configuration property name,
  8785. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  8786. The entire URI is passed to the FileSystem instance's initialize method.
  8787. This always returns a new FileSystem object.]]>
  8788. </doc>
  8789. </method>
  8790. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8791. abstract="false" native="false" synchronized="false"
  8792. static="true" final="false" visibility="public"
  8793. deprecated="not deprecated">
  8794. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8795. <exception name="IOException" type="java.io.IOException"/>
  8796. <doc>
  8797. <![CDATA[Returns a unique configured filesystem implementation.
  8798. This always returns a new FileSystem object.
  8799. @param conf the configuration to use]]>
  8800. </doc>
  8801. </method>
  8802. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8803. abstract="false" native="false" synchronized="false"
  8804. static="true" final="false" visibility="public"
  8805. deprecated="not deprecated">
  8806. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8807. <exception name="IOException" type="java.io.IOException"/>
  8808. <doc>
  8809. <![CDATA[Get a unique local file system object
  8810. @param conf the configuration to configure the file system with
  8811. @return a LocalFileSystem
  8812. This always returns a new FileSystem object.]]>
  8813. </doc>
  8814. </method>
  8815. <method name="closeAll"
  8816. abstract="false" native="false" synchronized="false"
  8817. static="true" final="false" visibility="public"
  8818. deprecated="not deprecated">
  8819. <exception name="IOException" type="java.io.IOException"/>
  8820. <doc>
  8821. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  8822. used anymore.
  8823. @throws IOException]]>
  8824. </doc>
  8825. </method>
  8826. <method name="closeAllForUGI"
  8827. abstract="false" native="false" synchronized="false"
  8828. static="true" final="false" visibility="public"
  8829. deprecated="not deprecated">
  8830. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8831. <exception name="IOException" type="java.io.IOException"/>
  8832. <doc>
  8833. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  8834. are not used anymore.
  8835. @param ugi user group info to close
  8836. @throws IOException]]>
  8837. </doc>
  8838. </method>
  8839. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8840. abstract="false" native="false" synchronized="false"
  8841. static="false" final="false" visibility="public"
  8842. deprecated="not deprecated">
  8843. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8844. <doc>
  8845. <![CDATA[Make sure that a path specifies a FileSystem.
  8846. @param path to use]]>
  8847. </doc>
  8848. </method>
  8849. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8850. abstract="false" native="false" synchronized="false"
  8851. static="true" final="false" visibility="public"
  8852. deprecated="not deprecated">
  8853. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8854. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8855. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8856. <exception name="IOException" type="java.io.IOException"/>
  8857. <doc>
  8858. <![CDATA[create a file with the provided permission
  8859. The permission of the file is set to be the provided permission as in
  8860. setPermission, not permission&~umask
  8861. It is implemented using two RPCs. It is understood that it is inefficient,
  8862. but the implementation is thread-safe. The other option is to change the
  8863. value of umask in configuration to be 0, but it is not thread-safe.
  8864. @param fs file system handle
  8865. @param file the name of the file to be created
  8866. @param permission the permission of the file
  8867. @return an output stream
  8868. @throws IOException]]>
  8869. </doc>
  8870. </method>
  8871. <method name="mkdirs" return="boolean"
  8872. abstract="false" native="false" synchronized="false"
  8873. static="true" final="false" visibility="public"
  8874. deprecated="not deprecated">
  8875. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8876. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8877. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8878. <exception name="IOException" type="java.io.IOException"/>
  8879. <doc>
  8880. <![CDATA[create a directory with the provided permission
  8881. The permission of the directory is set to be the provided permission as in
  8882. setPermission, not permission&~umask
  8883. @see #create(FileSystem, Path, FsPermission)
  8884. @param fs file system handle
  8885. @param dir the name of the directory to be created
  8886. @param permission the permission of the directory
  8887. @return true if the directory creation succeeds; false otherwise
  8888. @throws IOException]]>
  8889. </doc>
  8890. </method>
  8891. <method name="checkPath"
  8892. abstract="false" native="false" synchronized="false"
  8893. static="false" final="false" visibility="protected"
  8894. deprecated="not deprecated">
  8895. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8896. <doc>
  8897. <![CDATA[Check that a Path belongs to this FileSystem.
  8898. @param path to check]]>
  8899. </doc>
  8900. </method>
  8901. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8902. abstract="false" native="false" synchronized="false"
  8903. static="false" final="false" visibility="public"
  8904. deprecated="not deprecated">
  8905. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8906. <param name="start" type="long"/>
  8907. <param name="len" type="long"/>
  8908. <exception name="IOException" type="java.io.IOException"/>
  8909. <doc>
  8910. <![CDATA[Return an array containing hostnames, offset and size of
  8911. portions of the given file. For a nonexistent
  8912. file or regions, null will be returned.
  8913. This call is most helpful with DFS, where it returns
  8914. hostnames of machines that contain the given file.
  8915. The FileSystem will simply return an elt containing 'localhost'.
  8916. @param file FilesStatus to get data from
  8917. @param start offset into the given file
  8918. @param len length for which to get locations for]]>
  8919. </doc>
  8920. </method>
  8921. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8922. abstract="false" native="false" synchronized="false"
  8923. static="false" final="false" visibility="public"
  8924. deprecated="not deprecated">
  8925. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8926. <param name="start" type="long"/>
  8927. <param name="len" type="long"/>
  8928. <exception name="IOException" type="java.io.IOException"/>
  8929. <doc>
  8930. <![CDATA[Return an array containing hostnames, offset and size of
  8931. portions of the given file. For a nonexistent
  8932. file or regions, null will be returned.
  8933. This call is most helpful with DFS, where it returns
  8934. hostnames of machines that contain the given file.
  8935. The FileSystem will simply return an elt containing 'localhost'.
  8936. @param p path is used to identify an FS since an FS could have
  8937. another FS that it could be delegating the call to
  8938. @param start offset into the given file
  8939. @param len length for which to get locations for]]>
  8940. </doc>
  8941. </method>
  8942. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8943. abstract="false" native="false" synchronized="false"
  8944. static="false" final="false" visibility="public"
  8945. deprecated="use {@link #getServerDefaults(Path)} instead">
  8946. <exception name="IOException" type="java.io.IOException"/>
  8947. <doc>
  8948. <![CDATA[Return a set of server default configuration values
  8949. @return server default configuration values
  8950. @throws IOException
  8951. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  8952. </doc>
  8953. </method>
  8954. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8955. abstract="false" native="false" synchronized="false"
  8956. static="false" final="false" visibility="public"
  8957. deprecated="not deprecated">
  8958. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8959. <exception name="IOException" type="java.io.IOException"/>
  8960. <doc>
  8961. <![CDATA[Return a set of server default configuration values
  8962. @param p path is used to identify an FS since an FS could have
  8963. another FS that it could be delegating the call to
  8964. @return server default configuration values
  8965. @throws IOException]]>
  8966. </doc>
  8967. </method>
  8968. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  8969. abstract="false" native="false" synchronized="false"
  8970. static="false" final="false" visibility="public"
  8971. deprecated="not deprecated">
  8972. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8973. <exception name="IOException" type="java.io.IOException"/>
  8974. <doc>
  8975. <![CDATA[Return the fully-qualified path of path f resolving the path
  8976. through any symlinks or mount point
  8977. @param p path to be resolved
  8978. @return fully qualified path
  8979. @throws FileNotFoundException]]>
  8980. </doc>
  8981. </method>
  8982. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8983. abstract="true" native="false" synchronized="false"
  8984. static="false" final="false" visibility="public"
  8985. deprecated="not deprecated">
  8986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8987. <param name="bufferSize" type="int"/>
  8988. <exception name="IOException" type="java.io.IOException"/>
  8989. <doc>
  8990. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8991. @param f the file name to open
  8992. @param bufferSize the size of the buffer to be used.]]>
  8993. </doc>
  8994. </method>
  8995. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8996. abstract="false" native="false" synchronized="false"
  8997. static="false" final="false" visibility="public"
  8998. deprecated="not deprecated">
  8999. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9000. <exception name="IOException" type="java.io.IOException"/>
  9001. <doc>
  9002. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9003. @param f the file to open]]>
  9004. </doc>
  9005. </method>
  9006. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9007. abstract="false" native="false" synchronized="false"
  9008. static="false" final="false" visibility="public"
  9009. deprecated="not deprecated">
  9010. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9011. <exception name="IOException" type="java.io.IOException"/>
  9012. <doc>
  9013. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9014. Files are overwritten by default.
  9015. @param f the file to create]]>
  9016. </doc>
  9017. </method>
  9018. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9019. abstract="false" native="false" synchronized="false"
  9020. static="false" final="false" visibility="public"
  9021. deprecated="not deprecated">
  9022. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9023. <param name="overwrite" type="boolean"/>
  9024. <exception name="IOException" type="java.io.IOException"/>
  9025. <doc>
  9026. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9027. @param f the file to create
  9028. @param overwrite if a file with this name already exists, then if true,
  9029. the file will be overwritten, and if false an exception will be thrown.]]>
  9030. </doc>
  9031. </method>
  9032. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9033. abstract="false" native="false" synchronized="false"
  9034. static="false" final="false" visibility="public"
  9035. deprecated="not deprecated">
  9036. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9037. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9038. <exception name="IOException" type="java.io.IOException"/>
  9039. <doc>
  9040. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9041. reporting.
  9042. Files are overwritten by default.
  9043. @param f the file to create
  9044. @param progress to report progress]]>
  9045. </doc>
  9046. </method>
  9047. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9048. abstract="false" native="false" synchronized="false"
  9049. static="false" final="false" visibility="public"
  9050. deprecated="not deprecated">
  9051. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9052. <param name="replication" type="short"/>
  9053. <exception name="IOException" type="java.io.IOException"/>
  9054. <doc>
  9055. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9056. Files are overwritten by default.
  9057. @param f the file to create
  9058. @param replication the replication factor]]>
  9059. </doc>
  9060. </method>
  9061. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9062. abstract="false" native="false" synchronized="false"
  9063. static="false" final="false" visibility="public"
  9064. deprecated="not deprecated">
  9065. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9066. <param name="replication" type="short"/>
  9067. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9068. <exception name="IOException" type="java.io.IOException"/>
  9069. <doc>
  9070. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9071. reporting.
  9072. Files are overwritten by default.
  9073. @param f the file to create
  9074. @param replication the replication factor
  9075. @param progress to report progress]]>
  9076. </doc>
  9077. </method>
  9078. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9079. abstract="false" native="false" synchronized="false"
  9080. static="false" final="false" visibility="public"
  9081. deprecated="not deprecated">
  9082. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9083. <param name="overwrite" type="boolean"/>
  9084. <param name="bufferSize" type="int"/>
  9085. <exception name="IOException" type="java.io.IOException"/>
  9086. <doc>
  9087. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9088. @param f the file name to create
  9089. @param overwrite if a file with this name already exists, then if true,
  9090. the file will be overwritten, and if false an error will be thrown.
  9091. @param bufferSize the size of the buffer to be used.]]>
  9092. </doc>
  9093. </method>
  9094. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9095. abstract="false" native="false" synchronized="false"
  9096. static="false" final="false" visibility="public"
  9097. deprecated="not deprecated">
  9098. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9099. <param name="overwrite" type="boolean"/>
  9100. <param name="bufferSize" type="int"/>
  9101. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9102. <exception name="IOException" type="java.io.IOException"/>
  9103. <doc>
  9104. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9105. reporting.
  9106. @param f the path of the file to open
  9107. @param overwrite if a file with this name already exists, then if true,
  9108. the file will be overwritten, and if false an error will be thrown.
  9109. @param bufferSize the size of the buffer to be used.]]>
  9110. </doc>
  9111. </method>
  9112. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9113. abstract="false" native="false" synchronized="false"
  9114. static="false" final="false" visibility="public"
  9115. deprecated="not deprecated">
  9116. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9117. <param name="overwrite" type="boolean"/>
  9118. <param name="bufferSize" type="int"/>
  9119. <param name="replication" type="short"/>
  9120. <param name="blockSize" type="long"/>
  9121. <exception name="IOException" type="java.io.IOException"/>
  9122. <doc>
  9123. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  9124. @param f the file name to open
  9125. @param overwrite if a file with this name already exists, then if true,
  9126. the file will be overwritten, and if false an error will be thrown.
  9127. @param bufferSize the size of the buffer to be used.
  9128. @param replication required block replication for the file.]]>
  9129. </doc>
  9130. </method>
  9131. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9132. abstract="false" native="false" synchronized="false"
  9133. static="false" final="false" visibility="public"
  9134. deprecated="not deprecated">
  9135. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9136. <param name="overwrite" type="boolean"/>
  9137. <param name="bufferSize" type="int"/>
  9138. <param name="replication" type="short"/>
  9139. <param name="blockSize" type="long"/>
  9140. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9141. <exception name="IOException" type="java.io.IOException"/>
  9142. <doc>
  9143. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9144. reporting.
  9145. @param f the file name to open
  9146. @param overwrite if a file with this name already exists, then if true,
  9147. the file will be overwritten, and if false an error will be thrown.
  9148. @param bufferSize the size of the buffer to be used.
  9149. @param replication required block replication for the file.]]>
  9150. </doc>
  9151. </method>
  9152. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9153. abstract="true" native="false" synchronized="false"
  9154. static="false" final="false" visibility="public"
  9155. deprecated="not deprecated">
  9156. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9157. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9158. <param name="overwrite" type="boolean"/>
  9159. <param name="bufferSize" type="int"/>
  9160. <param name="replication" type="short"/>
  9161. <param name="blockSize" type="long"/>
  9162. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9163. <exception name="IOException" type="java.io.IOException"/>
  9164. <doc>
  9165. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9166. reporting.
  9167. @param f the file name to open
  9168. @param permission
  9169. @param overwrite if a file with this name already exists, then if true,
  9170. the file will be overwritten, and if false an error will be thrown.
  9171. @param bufferSize the size of the buffer to be used.
  9172. @param replication required block replication for the file.
  9173. @param blockSize
  9174. @param progress
  9175. @throws IOException
  9176. @see #setPermission(Path, FsPermission)]]>
  9177. </doc>
  9178. </method>
  9179. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9180. abstract="false" native="false" synchronized="false"
  9181. static="false" final="false" visibility="public"
  9182. deprecated="not deprecated">
  9183. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9184. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9185. <param name="flags" type="java.util.EnumSet"/>
  9186. <param name="bufferSize" type="int"/>
  9187. <param name="replication" type="short"/>
  9188. <param name="blockSize" type="long"/>
  9189. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9190. <exception name="IOException" type="java.io.IOException"/>
  9191. <doc>
  9192. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  9193. reporting.
  9194. @param f the file name to open
  9195. @param permission
  9196. @param flags {@link CreateFlag}s to use for this stream.
  9197. @param bufferSize the size of the buffer to be used.
  9198. @param replication required block replication for the file.
  9199. @param blockSize
  9200. @param progress
  9201. @throws IOException
  9202. @see #setPermission(Path, FsPermission)]]>
  9203. </doc>
  9204. </method>
  9205. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9206. abstract="false" native="false" synchronized="false"
  9207. static="false" final="false" visibility="public"
  9208. deprecated="not deprecated">
  9209. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9210. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9211. <param name="flags" type="java.util.EnumSet"/>
  9212. <param name="bufferSize" type="int"/>
  9213. <param name="replication" type="short"/>
  9214. <param name="blockSize" type="long"/>
  9215. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9216. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9217. <exception name="IOException" type="java.io.IOException"/>
  9218. <doc>
  9219. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  9220. checksum option
  9221. @param f the file name to open
  9222. @param permission
  9223. @param flags {@link CreateFlag}s to use for this stream.
  9224. @param bufferSize the size of the buffer to be used.
  9225. @param replication required block replication for the file.
  9226. @param blockSize
  9227. @param progress
  9228. @param checksumOpt checksum parameter. If null, the values
  9229. found in conf will be used.
  9230. @throws IOException
  9231. @see #setPermission(Path, FsPermission)]]>
  9232. </doc>
  9233. </method>
  9234. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  9235. abstract="false" native="false" synchronized="false"
  9236. static="false" final="false" visibility="protected"
  9237. deprecated="not deprecated">
  9238. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9239. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9240. <param name="flag" type="java.util.EnumSet"/>
  9241. <param name="bufferSize" type="int"/>
  9242. <param name="replication" type="short"/>
  9243. <param name="blockSize" type="long"/>
  9244. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9245. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9246. <exception name="IOException" type="java.io.IOException"/>
  9247. </method>
  9248. <method name="primitiveMkdir" return="boolean"
  9249. abstract="false" native="false" synchronized="false"
  9250. static="false" final="false" visibility="protected"
  9251. deprecated="not deprecated">
  9252. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9253. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9254. <exception name="IOException" type="java.io.IOException"/>
  9255. <doc>
  9256. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9257. It has been added to support the FileContext that processes the permission
  9258. with umask before calling this method.
  9259. This a temporary method added to support the transition from FileSystem
  9260. to FileContext for user applications.]]>
  9261. </doc>
  9262. </method>
  9263. <method name="primitiveMkdir"
  9264. abstract="false" native="false" synchronized="false"
  9265. static="false" final="false" visibility="protected"
  9266. deprecated="not deprecated">
  9267. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9268. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9269. <param name="createParent" type="boolean"/>
  9270. <exception name="IOException" type="java.io.IOException"/>
  9271. <doc>
  9272. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  9273. It has been added to support the FileContext that processes the permission
  9274. with umask before calling this method.
  9275. This a temporary method added to support the transition from FileSystem
  9276. to FileContext for user applications.]]>
  9277. </doc>
  9278. </method>
  9279. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9280. abstract="false" native="false" synchronized="false"
  9281. static="false" final="false" visibility="public"
  9282. deprecated="API only for 0.20-append">
  9283. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9284. <param name="overwrite" type="boolean"/>
  9285. <param name="bufferSize" type="int"/>
  9286. <param name="replication" type="short"/>
  9287. <param name="blockSize" type="long"/>
  9288. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9289. <exception name="IOException" type="java.io.IOException"/>
  9290. <doc>
  9291. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9292. reporting. Same as create(), except fails if parent directory doesn't
  9293. already exist.
  9294. @param f the file name to open
  9295. @param overwrite if a file with this name already exists, then if true,
  9296. the file will be overwritten, and if false an error will be thrown.
  9297. @param bufferSize the size of the buffer to be used.
  9298. @param replication required block replication for the file.
  9299. @param blockSize
  9300. @param progress
  9301. @throws IOException
  9302. @see #setPermission(Path, FsPermission)
  9303. @deprecated API only for 0.20-append]]>
  9304. </doc>
  9305. </method>
  9306. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9307. abstract="false" native="false" synchronized="false"
  9308. static="false" final="false" visibility="public"
  9309. deprecated="API only for 0.20-append">
  9310. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9311. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9312. <param name="overwrite" type="boolean"/>
  9313. <param name="bufferSize" type="int"/>
  9314. <param name="replication" type="short"/>
  9315. <param name="blockSize" type="long"/>
  9316. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9317. <exception name="IOException" type="java.io.IOException"/>
  9318. <doc>
  9319. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9320. reporting. Same as create(), except fails if parent directory doesn't
  9321. already exist.
  9322. @param f the file name to open
  9323. @param permission
  9324. @param overwrite if a file with this name already exists, then if true,
  9325. the file will be overwritten, and if false an error will be thrown.
  9326. @param bufferSize the size of the buffer to be used.
  9327. @param replication required block replication for the file.
  9328. @param blockSize
  9329. @param progress
  9330. @throws IOException
  9331. @see #setPermission(Path, FsPermission)
  9332. @deprecated API only for 0.20-append]]>
  9333. </doc>
  9334. </method>
  9335. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9336. abstract="false" native="false" synchronized="false"
  9337. static="false" final="false" visibility="public"
  9338. deprecated="API only for 0.20-append">
  9339. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9340. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9341. <param name="flags" type="java.util.EnumSet"/>
  9342. <param name="bufferSize" type="int"/>
  9343. <param name="replication" type="short"/>
  9344. <param name="blockSize" type="long"/>
  9345. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9346. <exception name="IOException" type="java.io.IOException"/>
  9347. <doc>
  9348. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  9349. reporting. Same as create(), except fails if parent directory doesn't
  9350. already exist.
  9351. @param f the file name to open
  9352. @param permission
  9353. @param flags {@link CreateFlag}s to use for this stream.
  9354. @param bufferSize the size of the buffer to be used.
  9355. @param replication required block replication for the file.
  9356. @param blockSize
  9357. @param progress
  9358. @throws IOException
  9359. @see #setPermission(Path, FsPermission)
  9360. @deprecated API only for 0.20-append]]>
  9361. </doc>
  9362. </method>
  9363. <method name="createNewFile" return="boolean"
  9364. abstract="false" native="false" synchronized="false"
  9365. static="false" final="false" visibility="public"
  9366. deprecated="not deprecated">
  9367. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9368. <exception name="IOException" type="java.io.IOException"/>
  9369. <doc>
  9370. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  9371. create fails, or if it already existed, return false.
  9372. @param f path to use for create]]>
  9373. </doc>
  9374. </method>
  9375. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9376. abstract="false" native="false" synchronized="false"
  9377. static="false" final="false" visibility="public"
  9378. deprecated="not deprecated">
  9379. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9380. <exception name="IOException" type="java.io.IOException"/>
  9381. <doc>
  9382. <![CDATA[Append to an existing file (optional operation).
  9383. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  9384. @param f the existing file to be appended.
  9385. @throws IOException]]>
  9386. </doc>
  9387. </method>
  9388. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9389. abstract="false" native="false" synchronized="false"
  9390. static="false" final="false" visibility="public"
  9391. deprecated="not deprecated">
  9392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9393. <param name="bufferSize" type="int"/>
  9394. <exception name="IOException" type="java.io.IOException"/>
  9395. <doc>
  9396. <![CDATA[Append to an existing file (optional operation).
  9397. Same as append(f, bufferSize, null).
  9398. @param f the existing file to be appended.
  9399. @param bufferSize the size of the buffer to be used.
  9400. @throws IOException]]>
  9401. </doc>
  9402. </method>
  9403. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9404. abstract="true" native="false" synchronized="false"
  9405. static="false" final="false" visibility="public"
  9406. deprecated="not deprecated">
  9407. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9408. <param name="bufferSize" type="int"/>
  9409. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9410. <exception name="IOException" type="java.io.IOException"/>
  9411. <doc>
  9412. <![CDATA[Append to an existing file (optional operation).
  9413. @param f the existing file to be appended.
  9414. @param bufferSize the size of the buffer to be used.
  9415. @param progress for reporting progress if it is not null.
  9416. @throws IOException]]>
  9417. </doc>
  9418. </method>
  9419. <method name="concat"
  9420. abstract="false" native="false" synchronized="false"
  9421. static="false" final="false" visibility="public"
  9422. deprecated="not deprecated">
  9423. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  9424. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  9425. <exception name="IOException" type="java.io.IOException"/>
  9426. <doc>
  9427. <![CDATA[Concat existing files together.
  9428. @param trg the path to the target destination.
  9429. @param psrcs the paths to the sources to use for the concatenation.
  9430. @throws IOException]]>
  9431. </doc>
  9432. </method>
  9433. <method name="getReplication" return="short"
  9434. abstract="false" native="false" synchronized="false"
  9435. static="false" final="false" visibility="public"
  9436. deprecated="Use getFileStatus() instead">
  9437. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9438. <exception name="IOException" type="java.io.IOException"/>
  9439. <doc>
  9440. <![CDATA[Get replication.
  9441. @deprecated Use getFileStatus() instead
  9442. @param src file name
  9443. @return file replication
  9444. @throws IOException]]>
  9445. </doc>
  9446. </method>
  9447. <method name="setReplication" return="boolean"
  9448. abstract="false" native="false" synchronized="false"
  9449. static="false" final="false" visibility="public"
  9450. deprecated="not deprecated">
  9451. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9452. <param name="replication" type="short"/>
  9453. <exception name="IOException" type="java.io.IOException"/>
  9454. <doc>
  9455. <![CDATA[Set replication for an existing file.
  9456. @param src file name
  9457. @param replication new replication
  9458. @throws IOException
  9459. @return true if successful;
  9460. false if file does not exist or is a directory]]>
  9461. </doc>
  9462. </method>
  9463. <method name="rename" return="boolean"
  9464. abstract="true" native="false" synchronized="false"
  9465. static="false" final="false" visibility="public"
  9466. deprecated="not deprecated">
  9467. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9468. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9469. <exception name="IOException" type="java.io.IOException"/>
  9470. <doc>
  9471. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  9472. or remote DFS.
  9473. @param src path to be renamed
  9474. @param dst new path after rename
  9475. @throws IOException on failure
  9476. @return true if rename is successful]]>
  9477. </doc>
  9478. </method>
  9479. <method name="rename"
  9480. abstract="false" native="false" synchronized="false"
  9481. static="false" final="false" visibility="protected"
  9482. deprecated="not deprecated">
  9483. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9484. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9485. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  9486. <exception name="IOException" type="java.io.IOException"/>
  9487. <doc>
  9488. <![CDATA[Renames Path src to Path dst
  9489. <ul>
  9490. <li
  9491. <li>Fails if src is a file and dst is a directory.
  9492. <li>Fails if src is a directory and dst is a file.
  9493. <li>Fails if the parent of dst does not exist or is a file.
  9494. </ul>
  9495. <p>
  9496. If OVERWRITE option is not passed as an argument, rename fails
  9497. if the dst already exists.
  9498. <p>
  9499. If OVERWRITE option is passed as an argument, rename overwrites
  9500. the dst if it is a file or an empty directory. Rename fails if dst is
  9501. a non-empty directory.
  9502. <p>
  9503. Note that atomicity of rename is dependent on the file system
  9504. implementation. Please refer to the file system documentation for
  9505. details. This default implementation is non atomic.
  9506. <p>
  9507. This method is deprecated since it is a temporary method added to
  9508. support the transition from FileSystem to FileContext for user
  9509. applications.
  9510. @param src path to be renamed
  9511. @param dst new path after rename
  9512. @throws IOException on failure]]>
  9513. </doc>
  9514. </method>
  9515. <method name="truncate" return="boolean"
  9516. abstract="false" native="false" synchronized="false"
  9517. static="false" final="false" visibility="public"
  9518. deprecated="not deprecated">
  9519. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9520. <param name="newLength" type="long"/>
  9521. <exception name="IOException" type="java.io.IOException"/>
  9522. <doc>
  9523. <![CDATA[Truncate the file in the indicated path to the indicated size.
  9524. <ul>
  9525. <li>Fails if path is a directory.
  9526. <li>Fails if path does not exist.
  9527. <li>Fails if path is not closed.
  9528. <li>Fails if new size is greater than current size.
  9529. </ul>
  9530. @param f The path to the file to be truncated
  9531. @param newLength The size the file is to be truncated to
  9532. @return <code>true</code> if the file has been truncated to the desired
  9533. <code>newLength</code> and is immediately available to be reused for
  9534. write operations such as <code>append</code>, or
  9535. <code>false</code> if a background process of adjusting the length of
  9536. the last block has been started, and clients should wait for it to
  9537. complete before proceeding with further file updates.]]>
  9538. </doc>
  9539. </method>
  9540. <method name="delete" return="boolean"
  9541. abstract="false" native="false" synchronized="false"
  9542. static="false" final="false" visibility="public"
  9543. deprecated="Use {@link #delete(Path, boolean)} instead.">
  9544. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9545. <exception name="IOException" type="java.io.IOException"/>
  9546. <doc>
  9547. <![CDATA[Delete a file
  9548. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  9549. </doc>
  9550. </method>
  9551. <method name="delete" return="boolean"
  9552. abstract="true" native="false" synchronized="false"
  9553. static="false" final="false" visibility="public"
  9554. deprecated="not deprecated">
  9555. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9556. <param name="recursive" type="boolean"/>
  9557. <exception name="IOException" type="java.io.IOException"/>
  9558. <doc>
  9559. <![CDATA[Delete a file.
  9560. @param f the path to delete.
  9561. @param recursive if path is a directory and set to
  9562. true, the directory is deleted else throws an exception. In
  9563. case of a file the recursive can be set to either true or false.
  9564. @return true if delete is successful else false.
  9565. @throws IOException]]>
  9566. </doc>
  9567. </method>
  9568. <method name="deleteOnExit" return="boolean"
  9569. abstract="false" native="false" synchronized="false"
  9570. static="false" final="false" visibility="public"
  9571. deprecated="not deprecated">
  9572. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9573. <exception name="IOException" type="java.io.IOException"/>
  9574. <doc>
  9575. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  9576. When the JVM shuts down,
  9577. all FileSystem objects will be closed automatically.
  9578. Then,
  9579. the marked path will be deleted as a result of closing the FileSystem.
  9580. The path has to exist in the file system.
  9581. @param f the path to delete.
  9582. @return true if deleteOnExit is successful, otherwise false.
  9583. @throws IOException]]>
  9584. </doc>
  9585. </method>
  9586. <method name="cancelDeleteOnExit" return="boolean"
  9587. abstract="false" native="false" synchronized="false"
  9588. static="false" final="false" visibility="public"
  9589. deprecated="not deprecated">
  9590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9591. <doc>
  9592. <![CDATA[Cancel the deletion of the path when the FileSystem is closed
  9593. @param f the path to cancel deletion]]>
  9594. </doc>
  9595. </method>
  9596. <method name="processDeleteOnExit"
  9597. abstract="false" native="false" synchronized="false"
  9598. static="false" final="false" visibility="protected"
  9599. deprecated="not deprecated">
  9600. <doc>
  9601. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  9602. deletes all files in the specified paths.]]>
  9603. </doc>
  9604. </method>
  9605. <method name="exists" return="boolean"
  9606. abstract="false" native="false" synchronized="false"
  9607. static="false" final="false" visibility="public"
  9608. deprecated="not deprecated">
  9609. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9610. <exception name="IOException" type="java.io.IOException"/>
  9611. <doc>
  9612. <![CDATA[Check if exists.
  9613. @param f source file]]>
  9614. </doc>
  9615. </method>
  9616. <method name="isDirectory" return="boolean"
  9617. abstract="false" native="false" synchronized="false"
  9618. static="false" final="false" visibility="public"
  9619. deprecated="not deprecated">
  9620. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9621. <exception name="IOException" type="java.io.IOException"/>
  9622. <doc>
  9623. <![CDATA[True iff the named path is a directory.
  9624. Note: Avoid using this method. Instead reuse the FileStatus
  9625. returned by getFileStatus() or listStatus() methods.
  9626. @param f path to check]]>
  9627. </doc>
  9628. </method>
  9629. <method name="isFile" return="boolean"
  9630. abstract="false" native="false" synchronized="false"
  9631. static="false" final="false" visibility="public"
  9632. deprecated="not deprecated">
  9633. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9634. <exception name="IOException" type="java.io.IOException"/>
  9635. <doc>
  9636. <![CDATA[True iff the named path is a regular file.
  9637. Note: Avoid using this method. Instead reuse the FileStatus
  9638. returned by getFileStatus() or listStatus() methods.
  9639. @param f path to check]]>
  9640. </doc>
  9641. </method>
  9642. <method name="getLength" return="long"
  9643. abstract="false" native="false" synchronized="false"
  9644. static="false" final="false" visibility="public"
  9645. deprecated="Use getFileStatus() instead">
  9646. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9647. <exception name="IOException" type="java.io.IOException"/>
  9648. <doc>
  9649. <![CDATA[@deprecated Use getFileStatus() instead]]>
  9650. </doc>
  9651. </method>
  9652. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9653. abstract="false" native="false" synchronized="false"
  9654. static="false" final="false" visibility="public"
  9655. deprecated="not deprecated">
  9656. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9657. <exception name="IOException" type="java.io.IOException"/>
  9658. <doc>
  9659. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9660. @param f path to use]]>
  9661. </doc>
  9662. </method>
  9663. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9664. abstract="true" native="false" synchronized="false"
  9665. static="false" final="false" visibility="public"
  9666. deprecated="not deprecated">
  9667. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9668. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9669. <exception name="IOException" type="java.io.IOException"/>
  9670. <doc>
  9671. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9672. a directory.
  9673. @param f given path
  9674. @return the statuses of the files/directories in the given patch
  9675. @throws FileNotFoundException when the path does not exist;
  9676. IOException see specific implementation]]>
  9677. </doc>
  9678. </method>
  9679. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9680. abstract="false" native="false" synchronized="false"
  9681. static="false" final="false" visibility="public"
  9682. deprecated="not deprecated">
  9683. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9684. <exception name="IOException" type="java.io.IOException"/>
  9685. <doc>
  9686. <![CDATA[@return an iterator over the corrupt files under the given path
  9687. (may contain duplicates if a file has more than one corrupt block)
  9688. @throws IOException]]>
  9689. </doc>
  9690. </method>
  9691. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9692. abstract="false" native="false" synchronized="false"
  9693. static="false" final="false" visibility="public"
  9694. deprecated="not deprecated">
  9695. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9696. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9697. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9698. <exception name="IOException" type="java.io.IOException"/>
  9699. <doc>
  9700. <![CDATA[Filter files/directories in the given path using the user-supplied path
  9701. filter.
  9702. @param f
  9703. a path name
  9704. @param filter
  9705. the user-supplied path filter
  9706. @return an array of FileStatus objects for the files under the given path
  9707. after applying the filter
  9708. @throws FileNotFoundException when the path does not exist;
  9709. IOException see specific implementation]]>
  9710. </doc>
  9711. </method>
  9712. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9713. abstract="false" native="false" synchronized="false"
  9714. static="false" final="false" visibility="public"
  9715. deprecated="not deprecated">
  9716. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9717. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9718. <exception name="IOException" type="java.io.IOException"/>
  9719. <doc>
  9720. <![CDATA[Filter files/directories in the given list of paths using default
  9721. path filter.
  9722. @param files
  9723. a list of paths
  9724. @return a list of statuses for the files under the given paths after
  9725. applying the filter default Path filter
  9726. @throws FileNotFoundException when the path does not exist;
  9727. IOException see specific implementation]]>
  9728. </doc>
  9729. </method>
  9730. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9731. abstract="false" native="false" synchronized="false"
  9732. static="false" final="false" visibility="public"
  9733. deprecated="not deprecated">
  9734. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9735. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9736. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9737. <exception name="IOException" type="java.io.IOException"/>
  9738. <doc>
  9739. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  9740. path filter.
  9741. @param files
  9742. a list of paths
  9743. @param filter
  9744. the user-supplied path filter
  9745. @return a list of statuses for the files under the given paths after
  9746. applying the filter
  9747. @throws FileNotFoundException when the path does not exist;
  9748. IOException see specific implementation]]>
  9749. </doc>
  9750. </method>
  9751. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9752. abstract="false" native="false" synchronized="false"
  9753. static="false" final="false" visibility="public"
  9754. deprecated="not deprecated">
  9755. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9756. <exception name="IOException" type="java.io.IOException"/>
  9757. <doc>
  9758. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  9759. files. Results are sorted by their names.
  9760. <p>
  9761. A filename pattern is composed of <i>regular</i> characters and
  9762. <i>special pattern matching</i> characters, which are:
  9763. <dl>
  9764. <dd>
  9765. <dl>
  9766. <p>
  9767. <dt> <tt> ? </tt>
  9768. <dd> Matches any single character.
  9769. <p>
  9770. <dt> <tt> * </tt>
  9771. <dd> Matches zero or more characters.
  9772. <p>
  9773. <dt> <tt> [<i>abc</i>] </tt>
  9774. <dd> Matches a single character from character set
  9775. <tt>{<i>a,b,c</i>}</tt>.
  9776. <p>
  9777. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  9778. <dd> Matches a single character from the character range
  9779. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  9780. lexicographically less than or equal to character <tt><i>b</i></tt>.
  9781. <p>
  9782. <dt> <tt> [^<i>a</i>] </tt>
  9783. <dd> Matches a single character that is not from character set or range
  9784. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  9785. immediately to the right of the opening bracket.
  9786. <p>
  9787. <dt> <tt> \<i>c</i> </tt>
  9788. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  9789. <p>
  9790. <dt> <tt> {ab,cd} </tt>
  9791. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  9792. <p>
  9793. <dt> <tt> {ab,c{de,fh}} </tt>
  9794. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  9795. </dl>
  9796. </dd>
  9797. </dl>
  9798. @param pathPattern a regular expression specifying a pth pattern
  9799. @return an array of paths that match the path pattern
  9800. @throws IOException]]>
  9801. </doc>
  9802. </method>
  9803. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9804. abstract="false" native="false" synchronized="false"
  9805. static="false" final="false" visibility="public"
  9806. deprecated="not deprecated">
  9807. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9808. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9809. <exception name="IOException" type="java.io.IOException"/>
  9810. <doc>
  9811. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  9812. and is accepted by the user-supplied path filter. Results are sorted by
  9813. their path names.
  9814. Return null if pathPattern has no glob and the path does not exist.
  9815. Return an empty array if pathPattern has a glob and no path matches it.
  9816. @param pathPattern
  9817. a regular expression specifying the path pattern
  9818. @param filter
  9819. a user-supplied path filter
  9820. @return an array of FileStatus objects
  9821. @throws IOException if any I/O error occurs when fetching file status]]>
  9822. </doc>
  9823. </method>
  9824. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9825. abstract="false" native="false" synchronized="false"
  9826. static="false" final="false" visibility="public"
  9827. deprecated="not deprecated">
  9828. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9829. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9830. <exception name="IOException" type="java.io.IOException"/>
  9831. <doc>
  9832. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9833. a directory.
  9834. Return the file's status and block locations If the path is a file.
  9835. If a returned status is a file, it contains the file's block locations.
  9836. @param f is the path
  9837. @return an iterator that traverses statuses of the files/directories
  9838. in the given path
  9839. @throws FileNotFoundException If <code>f</code> does not exist
  9840. @throws IOException If an I/O error occurred]]>
  9841. </doc>
  9842. </method>
  9843. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9844. abstract="false" native="false" synchronized="false"
  9845. static="false" final="false" visibility="protected"
  9846. deprecated="not deprecated">
  9847. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9848. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9849. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9850. <exception name="IOException" type="java.io.IOException"/>
  9851. <doc>
  9852. <![CDATA[Listing a directory
  9853. The returned results include its block location if it is a file
  9854. The results are filtered by the given path filter
  9855. @param f a path
  9856. @param filter a path filter
  9857. @return an iterator that traverses statuses of the files/directories
  9858. in the given path
  9859. @throws FileNotFoundException if <code>f</code> does not exist
  9860. @throws IOException if any I/O error occurred]]>
  9861. </doc>
  9862. </method>
  9863. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  9864. abstract="false" native="false" synchronized="false"
  9865. static="false" final="false" visibility="public"
  9866. deprecated="not deprecated">
  9867. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9868. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9869. <exception name="IOException" type="java.io.IOException"/>
  9870. <doc>
  9871. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  9872. while consuming the entries. Each file system implementation should
  9873. override this method and provide a more efficient implementation, if
  9874. possible.
  9875. @param p target path
  9876. @return remote iterator]]>
  9877. </doc>
  9878. </method>
  9879. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  9880. abstract="false" native="false" synchronized="false"
  9881. static="false" final="false" visibility="public"
  9882. deprecated="not deprecated">
  9883. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9884. <param name="recursive" type="boolean"/>
  9885. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9886. <exception name="IOException" type="java.io.IOException"/>
  9887. <doc>
  9888. <![CDATA[List the statuses and block locations of the files in the given path.
  9889. If the path is a directory,
  9890. if recursive is false, returns files in the directory;
  9891. if recursive is true, return files in the subtree rooted at the path.
  9892. If the path is a file, return the file's status and block locations.
  9893. @param f is the path
  9894. @param recursive if the subdirectories need to be traversed recursively
  9895. @return an iterator that traverses statuses of the files
  9896. @throws FileNotFoundException when the path does not exist;
  9897. IOException see specific implementation]]>
  9898. </doc>
  9899. </method>
  9900. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9901. abstract="false" native="false" synchronized="false"
  9902. static="false" final="false" visibility="public"
  9903. deprecated="not deprecated">
  9904. <doc>
  9905. <![CDATA[Return the current user's home directory in this filesystem.
  9906. The default implementation returns "/user/$USER/".]]>
  9907. </doc>
  9908. </method>
  9909. <method name="setWorkingDirectory"
  9910. abstract="true" native="false" synchronized="false"
  9911. static="false" final="false" visibility="public"
  9912. deprecated="not deprecated">
  9913. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  9914. <doc>
  9915. <![CDATA[Set the current working directory for the given file system. All relative
  9916. paths will be resolved relative to it.
  9917. @param new_dir]]>
  9918. </doc>
  9919. </method>
  9920. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9921. abstract="true" native="false" synchronized="false"
  9922. static="false" final="false" visibility="public"
  9923. deprecated="not deprecated">
  9924. <doc>
  9925. <![CDATA[Get the current working directory for the given file system
  9926. @return the directory pathname]]>
  9927. </doc>
  9928. </method>
  9929. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9930. abstract="false" native="false" synchronized="false"
  9931. static="false" final="false" visibility="protected"
  9932. deprecated="not deprecated">
  9933. <doc>
  9934. <![CDATA[Note: with the new FilesContext class, getWorkingDirectory()
  9935. will be removed.
  9936. The working directory is implemented in FilesContext.
  9937. Some file systems like LocalFileSystem have an initial workingDir
  9938. that we use as the starting workingDir. For other file systems
  9939. like HDFS there is no built in notion of an initial workingDir.
  9940. @return if there is built in notion of workingDir then it
  9941. is returned; else a null is returned.]]>
  9942. </doc>
  9943. </method>
  9944. <method name="mkdirs" return="boolean"
  9945. abstract="false" native="false" synchronized="false"
  9946. static="false" final="false" visibility="public"
  9947. deprecated="not deprecated">
  9948. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9949. <exception name="IOException" type="java.io.IOException"/>
  9950. <doc>
  9951. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  9952. </doc>
  9953. </method>
  9954. <method name="mkdirs" return="boolean"
  9955. abstract="true" native="false" synchronized="false"
  9956. static="false" final="false" visibility="public"
  9957. deprecated="not deprecated">
  9958. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9959. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9960. <exception name="IOException" type="java.io.IOException"/>
  9961. <doc>
  9962. <![CDATA[Make the given file and all non-existent parents into
  9963. directories. Has the semantics of Unix 'mkdir -p'.
  9964. Existence of the directory hierarchy is not an error.
  9965. @param f path to create
  9966. @param permission to apply to f]]>
  9967. </doc>
  9968. </method>
  9969. <method name="copyFromLocalFile"
  9970. abstract="false" native="false" synchronized="false"
  9971. static="false" final="false" visibility="public"
  9972. deprecated="not deprecated">
  9973. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9974. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9975. <exception name="IOException" type="java.io.IOException"/>
  9976. <doc>
  9977. <![CDATA[The src file is on the local disk. Add it to FS at
  9978. the given dst name and the source is kept intact afterwards
  9979. @param src path
  9980. @param dst path]]>
  9981. </doc>
  9982. </method>
  9983. <method name="moveFromLocalFile"
  9984. abstract="false" native="false" synchronized="false"
  9985. static="false" final="false" visibility="public"
  9986. deprecated="not deprecated">
  9987. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9988. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9989. <exception name="IOException" type="java.io.IOException"/>
  9990. <doc>
  9991. <![CDATA[The src files is on the local disk. Add it to FS at
  9992. the given dst name, removing the source afterwards.
  9993. @param srcs path
  9994. @param dst path]]>
  9995. </doc>
  9996. </method>
  9997. <method name="moveFromLocalFile"
  9998. abstract="false" native="false" synchronized="false"
  9999. static="false" final="false" visibility="public"
  10000. deprecated="not deprecated">
  10001. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10002. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10003. <exception name="IOException" type="java.io.IOException"/>
  10004. <doc>
  10005. <![CDATA[The src file is on the local disk. Add it to FS at
  10006. the given dst name, removing the source afterwards.
  10007. @param src path
  10008. @param dst path]]>
  10009. </doc>
  10010. </method>
  10011. <method name="copyFromLocalFile"
  10012. abstract="false" native="false" synchronized="false"
  10013. static="false" final="false" visibility="public"
  10014. deprecated="not deprecated">
  10015. <param name="delSrc" type="boolean"/>
  10016. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10017. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10018. <exception name="IOException" type="java.io.IOException"/>
  10019. <doc>
  10020. <![CDATA[The src file is on the local disk. Add it to FS at
  10021. the given dst name.
  10022. delSrc indicates if the source should be removed
  10023. @param delSrc whether to delete the src
  10024. @param src path
  10025. @param dst path]]>
  10026. </doc>
  10027. </method>
  10028. <method name="copyFromLocalFile"
  10029. abstract="false" native="false" synchronized="false"
  10030. static="false" final="false" visibility="public"
  10031. deprecated="not deprecated">
  10032. <param name="delSrc" type="boolean"/>
  10033. <param name="overwrite" type="boolean"/>
  10034. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10035. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10036. <exception name="IOException" type="java.io.IOException"/>
  10037. <doc>
  10038. <![CDATA[The src files are on the local disk. Add it to FS at
  10039. the given dst name.
  10040. delSrc indicates if the source should be removed
  10041. @param delSrc whether to delete the src
  10042. @param overwrite whether to overwrite an existing file
  10043. @param srcs array of paths which are source
  10044. @param dst path]]>
  10045. </doc>
  10046. </method>
  10047. <method name="copyFromLocalFile"
  10048. abstract="false" native="false" synchronized="false"
  10049. static="false" final="false" visibility="public"
  10050. deprecated="not deprecated">
  10051. <param name="delSrc" type="boolean"/>
  10052. <param name="overwrite" type="boolean"/>
  10053. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10054. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10055. <exception name="IOException" type="java.io.IOException"/>
  10056. <doc>
  10057. <![CDATA[The src file is on the local disk. Add it to FS at
  10058. the given dst name.
  10059. delSrc indicates if the source should be removed
  10060. @param delSrc whether to delete the src
  10061. @param overwrite whether to overwrite an existing file
  10062. @param src path
  10063. @param dst path]]>
  10064. </doc>
  10065. </method>
  10066. <method name="copyToLocalFile"
  10067. abstract="false" native="false" synchronized="false"
  10068. static="false" final="false" visibility="public"
  10069. deprecated="not deprecated">
  10070. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10071. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10072. <exception name="IOException" type="java.io.IOException"/>
  10073. <doc>
  10074. <![CDATA[The src file is under FS, and the dst is on the local disk.
  10075. Copy it from FS control to the local dst name.
  10076. @param src path
  10077. @param dst path]]>
  10078. </doc>
  10079. </method>
  10080. <method name="moveToLocalFile"
  10081. abstract="false" native="false" synchronized="false"
  10082. static="false" final="false" visibility="public"
  10083. deprecated="not deprecated">
  10084. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10085. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10086. <exception name="IOException" type="java.io.IOException"/>
  10087. <doc>
  10088. <![CDATA[The src file is under FS, and the dst is on the local disk.
  10089. Copy it from FS control to the local dst name.
  10090. Remove the source afterwards
  10091. @param src path
  10092. @param dst path]]>
  10093. </doc>
  10094. </method>
  10095. <method name="copyToLocalFile"
  10096. abstract="false" native="false" synchronized="false"
  10097. static="false" final="false" visibility="public"
  10098. deprecated="not deprecated">
  10099. <param name="delSrc" type="boolean"/>
  10100. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10101. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10102. <exception name="IOException" type="java.io.IOException"/>
  10103. <doc>
  10104. <![CDATA[The src file is under FS, and the dst is on the local disk.
  10105. Copy it from FS control to the local dst name.
  10106. delSrc indicates if the src will be removed or not.
  10107. @param delSrc whether to delete the src
  10108. @param src path
  10109. @param dst path]]>
  10110. </doc>
  10111. </method>
  10112. <method name="copyToLocalFile"
  10113. abstract="false" native="false" synchronized="false"
  10114. static="false" final="false" visibility="public"
  10115. deprecated="not deprecated">
  10116. <param name="delSrc" type="boolean"/>
  10117. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10118. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10119. <param name="useRawLocalFileSystem" type="boolean"/>
  10120. <exception name="IOException" type="java.io.IOException"/>
  10121. <doc>
  10122. <![CDATA[The src file is under FS, and the dst is on the local disk. Copy it from FS
  10123. control to the local dst name. delSrc indicates if the src will be removed
  10124. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  10125. as local file system or not. RawLocalFileSystem is non crc file system.So,
  10126. It will not create any crc files at local.
  10127. @param delSrc
  10128. whether to delete the src
  10129. @param src
  10130. path
  10131. @param dst
  10132. path
  10133. @param useRawLocalFileSystem
  10134. whether to use RawLocalFileSystem as local file system or not.
  10135. @throws IOException
  10136. - if any IO error]]>
  10137. </doc>
  10138. </method>
  10139. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10140. abstract="false" native="false" synchronized="false"
  10141. static="false" final="false" visibility="public"
  10142. deprecated="not deprecated">
  10143. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10144. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10145. <exception name="IOException" type="java.io.IOException"/>
  10146. <doc>
  10147. <![CDATA[Returns a local File that the user can write output to. The caller
  10148. provides both the eventual FS target name and the local working
  10149. file. If the FS is local, we write directly into the target. If
  10150. the FS is remote, we write into the tmp local area.
  10151. @param fsOutputFile path of output file
  10152. @param tmpLocalFile path of local tmp file]]>
  10153. </doc>
  10154. </method>
  10155. <method name="completeLocalOutput"
  10156. abstract="false" native="false" synchronized="false"
  10157. static="false" final="false" visibility="public"
  10158. deprecated="not deprecated">
  10159. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10160. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10161. <exception name="IOException" type="java.io.IOException"/>
  10162. <doc>
  10163. <![CDATA[Called when we're all done writing to the target. A local FS will
  10164. do nothing, because we've written to exactly the right place. A remote
  10165. FS will copy the contents of tmpLocalFile to the correct target at
  10166. fsOutputFile.
  10167. @param fsOutputFile path of output file
  10168. @param tmpLocalFile path to local tmp file]]>
  10169. </doc>
  10170. </method>
  10171. <method name="close"
  10172. abstract="false" native="false" synchronized="false"
  10173. static="false" final="false" visibility="public"
  10174. deprecated="not deprecated">
  10175. <exception name="IOException" type="java.io.IOException"/>
  10176. <doc>
  10177. <![CDATA[No more filesystem operations are needed. Will
  10178. release any held locks.]]>
  10179. </doc>
  10180. </method>
  10181. <method name="getUsed" return="long"
  10182. abstract="false" native="false" synchronized="false"
  10183. static="false" final="false" visibility="public"
  10184. deprecated="not deprecated">
  10185. <exception name="IOException" type="java.io.IOException"/>
  10186. <doc>
  10187. <![CDATA[Return the total size of all files in the filesystem.]]>
  10188. </doc>
  10189. </method>
  10190. <method name="getBlockSize" return="long"
  10191. abstract="false" native="false" synchronized="false"
  10192. static="false" final="false" visibility="public"
  10193. deprecated="Use getFileStatus() instead">
  10194. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10195. <exception name="IOException" type="java.io.IOException"/>
  10196. <doc>
  10197. <![CDATA[@deprecated Use getFileStatus() instead]]>
  10198. </doc>
  10199. </method>
  10200. <method name="getDefaultBlockSize" return="long"
  10201. abstract="false" native="false" synchronized="false"
  10202. static="false" final="false" visibility="public"
  10203. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  10204. <doc>
  10205. <![CDATA[Return the number of bytes that large input files should be optimally
  10206. be split into to minimize i/o time.
  10207. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  10208. </doc>
  10209. </method>
  10210. <method name="getDefaultBlockSize" return="long"
  10211. abstract="false" native="false" synchronized="false"
  10212. static="false" final="false" visibility="public"
  10213. deprecated="not deprecated">
  10214. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10215. <doc>
  10216. <![CDATA[Return the number of bytes that large input files should be optimally
  10217. be split into to minimize i/o time. The given path will be used to
  10218. locate the actual filesystem. The full path does not have to exist.
  10219. @param f path of file
  10220. @return the default block size for the path's filesystem]]>
  10221. </doc>
  10222. </method>
  10223. <method name="getDefaultReplication" return="short"
  10224. abstract="false" native="false" synchronized="false"
  10225. static="false" final="false" visibility="public"
  10226. deprecated="use {@link #getDefaultReplication(Path)} instead">
  10227. <doc>
  10228. <![CDATA[Get the default replication.
  10229. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  10230. </doc>
  10231. </method>
  10232. <method name="getDefaultReplication" return="short"
  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. <doc>
  10238. <![CDATA[Get the default replication for a path. The given path will be used to
  10239. locate the actual filesystem. The full path does not have to exist.
  10240. @param path of the file
  10241. @return default replication for the path's filesystem]]>
  10242. </doc>
  10243. </method>
  10244. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10245. abstract="true" native="false" synchronized="false"
  10246. static="false" final="false" visibility="public"
  10247. deprecated="not deprecated">
  10248. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10249. <exception name="IOException" type="java.io.IOException"/>
  10250. <doc>
  10251. <![CDATA[Return a file status object that represents the path.
  10252. @param f The path we want information from
  10253. @return a FileStatus object
  10254. @throws FileNotFoundException when the path does not exist;
  10255. IOException see specific implementation]]>
  10256. </doc>
  10257. </method>
  10258. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  10259. abstract="false" native="false" synchronized="false"
  10260. static="false" final="false" visibility="protected"
  10261. deprecated="not deprecated">
  10262. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10263. <doc>
  10264. <![CDATA[See {@link FileContext#fixRelativePart}]]>
  10265. </doc>
  10266. </method>
  10267. <method name="createSymlink"
  10268. abstract="false" native="false" synchronized="false"
  10269. static="false" final="false" visibility="public"
  10270. deprecated="not deprecated">
  10271. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10272. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10273. <param name="createParent" type="boolean"/>
  10274. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10275. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  10276. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10277. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  10278. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10279. <exception name="IOException" type="java.io.IOException"/>
  10280. <doc>
  10281. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}]]>
  10282. </doc>
  10283. </method>
  10284. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10285. abstract="false" native="false" synchronized="false"
  10286. static="false" final="false" visibility="public"
  10287. deprecated="not deprecated">
  10288. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10289. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  10290. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  10291. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  10292. <exception name="IOException" type="java.io.IOException"/>
  10293. <doc>
  10294. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}]]>
  10295. </doc>
  10296. </method>
  10297. <method name="supportsSymlinks" return="boolean"
  10298. abstract="false" native="false" synchronized="false"
  10299. static="false" final="false" visibility="public"
  10300. deprecated="not deprecated">
  10301. <doc>
  10302. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}]]>
  10303. </doc>
  10304. </method>
  10305. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10306. abstract="false" native="false" synchronized="false"
  10307. static="false" final="false" visibility="public"
  10308. deprecated="not deprecated">
  10309. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10310. <exception name="IOException" type="java.io.IOException"/>
  10311. <doc>
  10312. <![CDATA[See {@link FileContext#getLinkTarget(Path)}]]>
  10313. </doc>
  10314. </method>
  10315. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  10316. abstract="false" native="false" synchronized="false"
  10317. static="false" final="false" visibility="protected"
  10318. deprecated="not deprecated">
  10319. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10320. <exception name="IOException" type="java.io.IOException"/>
  10321. <doc>
  10322. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}]]>
  10323. </doc>
  10324. </method>
  10325. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10326. abstract="false" native="false" synchronized="false"
  10327. static="false" final="false" visibility="public"
  10328. deprecated="not deprecated">
  10329. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10330. <exception name="IOException" type="java.io.IOException"/>
  10331. <doc>
  10332. <![CDATA[Get the checksum of a file.
  10333. @param f The file path
  10334. @return The file checksum. The default return value is null,
  10335. which indicates that no checksum algorithm is implemented
  10336. in the corresponding FileSystem.]]>
  10337. </doc>
  10338. </method>
  10339. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  10340. abstract="false" native="false" synchronized="false"
  10341. static="false" final="false" visibility="public"
  10342. deprecated="not deprecated">
  10343. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10344. <param name="length" type="long"/>
  10345. <exception name="IOException" type="java.io.IOException"/>
  10346. <doc>
  10347. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  10348. specific length.
  10349. @param f The file path
  10350. @param length The length of the file range for checksum calculation
  10351. @return The file checksum.]]>
  10352. </doc>
  10353. </method>
  10354. <method name="setVerifyChecksum"
  10355. abstract="false" native="false" synchronized="false"
  10356. static="false" final="false" visibility="public"
  10357. deprecated="not deprecated">
  10358. <param name="verifyChecksum" type="boolean"/>
  10359. <doc>
  10360. <![CDATA[Set the verify checksum flag. This is only applicable if the
  10361. corresponding FileSystem supports checksum. By default doesn't do anything.
  10362. @param verifyChecksum]]>
  10363. </doc>
  10364. </method>
  10365. <method name="setWriteChecksum"
  10366. abstract="false" native="false" synchronized="false"
  10367. static="false" final="false" visibility="public"
  10368. deprecated="not deprecated">
  10369. <param name="writeChecksum" type="boolean"/>
  10370. <doc>
  10371. <![CDATA[Set the write checksum flag. This is only applicable if the
  10372. corresponding FileSystem supports checksum. By default doesn't do anything.
  10373. @param writeChecksum]]>
  10374. </doc>
  10375. </method>
  10376. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10377. abstract="false" native="false" synchronized="false"
  10378. static="false" final="false" visibility="public"
  10379. deprecated="not deprecated">
  10380. <exception name="IOException" type="java.io.IOException"/>
  10381. <doc>
  10382. <![CDATA[Returns a status object describing the use and capacity of the
  10383. file system. If the file system has multiple partitions, the
  10384. use and capacity of the root partition is reflected.
  10385. @return a FsStatus object
  10386. @throws IOException
  10387. see specific implementation]]>
  10388. </doc>
  10389. </method>
  10390. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  10391. abstract="false" native="false" synchronized="false"
  10392. static="false" final="false" visibility="public"
  10393. deprecated="not deprecated">
  10394. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10395. <exception name="IOException" type="java.io.IOException"/>
  10396. <doc>
  10397. <![CDATA[Returns a status object describing the use and capacity of the
  10398. file system. If the file system has multiple partitions, the
  10399. use and capacity of the partition pointed to by the specified
  10400. path is reflected.
  10401. @param p Path for which status should be obtained. null means
  10402. the default partition.
  10403. @return a FsStatus object
  10404. @throws IOException
  10405. see specific implementation]]>
  10406. </doc>
  10407. </method>
  10408. <method name="setPermission"
  10409. abstract="false" native="false" synchronized="false"
  10410. static="false" final="false" visibility="public"
  10411. deprecated="not deprecated">
  10412. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10413. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10414. <exception name="IOException" type="java.io.IOException"/>
  10415. <doc>
  10416. <![CDATA[Set permission of a path.
  10417. @param p
  10418. @param permission]]>
  10419. </doc>
  10420. </method>
  10421. <method name="setOwner"
  10422. abstract="false" native="false" synchronized="false"
  10423. static="false" final="false" visibility="public"
  10424. deprecated="not deprecated">
  10425. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10426. <param name="username" type="java.lang.String"/>
  10427. <param name="groupname" type="java.lang.String"/>
  10428. <exception name="IOException" type="java.io.IOException"/>
  10429. <doc>
  10430. <![CDATA[Set owner of a path (i.e. a file or a directory).
  10431. The parameters username and groupname cannot both be null.
  10432. @param p The path
  10433. @param username If it is null, the original username remains unchanged.
  10434. @param groupname If it is null, the original groupname remains unchanged.]]>
  10435. </doc>
  10436. </method>
  10437. <method name="setTimes"
  10438. abstract="false" native="false" synchronized="false"
  10439. static="false" final="false" visibility="public"
  10440. deprecated="not deprecated">
  10441. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10442. <param name="mtime" type="long"/>
  10443. <param name="atime" type="long"/>
  10444. <exception name="IOException" type="java.io.IOException"/>
  10445. <doc>
  10446. <![CDATA[Set access time of a file
  10447. @param p The path
  10448. @param mtime Set the modification time of this file.
  10449. The number of milliseconds since Jan 1, 1970.
  10450. A value of -1 means that this call should not set modification time.
  10451. @param atime Set the access time of this file.
  10452. The number of milliseconds since Jan 1, 1970.
  10453. A value of -1 means that this call should not set access time.]]>
  10454. </doc>
  10455. </method>
  10456. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10457. abstract="false" native="false" synchronized="false"
  10458. static="false" final="true" visibility="public"
  10459. deprecated="not deprecated">
  10460. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10461. <exception name="IOException" type="java.io.IOException"/>
  10462. <doc>
  10463. <![CDATA[Create a snapshot with a default name.
  10464. @param path The directory where snapshots will be taken.
  10465. @return the snapshot path.]]>
  10466. </doc>
  10467. </method>
  10468. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10469. abstract="false" native="false" synchronized="false"
  10470. static="false" final="false" visibility="public"
  10471. deprecated="not deprecated">
  10472. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10473. <param name="snapshotName" type="java.lang.String"/>
  10474. <exception name="IOException" type="java.io.IOException"/>
  10475. <doc>
  10476. <![CDATA[Create a snapshot
  10477. @param path The directory where snapshots will be taken.
  10478. @param snapshotName The name of the snapshot
  10479. @return the snapshot path.]]>
  10480. </doc>
  10481. </method>
  10482. <method name="renameSnapshot"
  10483. abstract="false" native="false" synchronized="false"
  10484. static="false" final="false" visibility="public"
  10485. deprecated="not deprecated">
  10486. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10487. <param name="snapshotOldName" type="java.lang.String"/>
  10488. <param name="snapshotNewName" type="java.lang.String"/>
  10489. <exception name="IOException" type="java.io.IOException"/>
  10490. <doc>
  10491. <![CDATA[Rename a snapshot
  10492. @param path The directory path where the snapshot was taken
  10493. @param snapshotOldName Old name of the snapshot
  10494. @param snapshotNewName New name of the snapshot
  10495. @throws IOException]]>
  10496. </doc>
  10497. </method>
  10498. <method name="deleteSnapshot"
  10499. abstract="false" native="false" synchronized="false"
  10500. static="false" final="false" visibility="public"
  10501. deprecated="not deprecated">
  10502. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10503. <param name="snapshotName" type="java.lang.String"/>
  10504. <exception name="IOException" type="java.io.IOException"/>
  10505. <doc>
  10506. <![CDATA[Delete a snapshot of a directory
  10507. @param path The directory that the to-be-deleted snapshot belongs to
  10508. @param snapshotName The name of the snapshot]]>
  10509. </doc>
  10510. </method>
  10511. <method name="modifyAclEntries"
  10512. abstract="false" native="false" synchronized="false"
  10513. static="false" final="false" visibility="public"
  10514. deprecated="not deprecated">
  10515. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10516. <param name="aclSpec" type="java.util.List"/>
  10517. <exception name="IOException" type="java.io.IOException"/>
  10518. <doc>
  10519. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10520. entries or modify the permissions on existing ACL entries. All existing
  10521. ACL entries that are not specified in this call are retained without
  10522. changes. (Modifications are merged into the current ACL.)
  10523. @param path Path to modify
  10524. @param aclSpec List<AclEntry> describing modifications
  10525. @throws IOException if an ACL could not be modified]]>
  10526. </doc>
  10527. </method>
  10528. <method name="removeAclEntries"
  10529. abstract="false" native="false" synchronized="false"
  10530. static="false" final="false" visibility="public"
  10531. deprecated="not deprecated">
  10532. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10533. <param name="aclSpec" type="java.util.List"/>
  10534. <exception name="IOException" type="java.io.IOException"/>
  10535. <doc>
  10536. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  10537. retained.
  10538. @param path Path to modify
  10539. @param aclSpec List<AclEntry> describing entries to remove
  10540. @throws IOException if an ACL could not be modified]]>
  10541. </doc>
  10542. </method>
  10543. <method name="removeDefaultAcl"
  10544. abstract="false" native="false" synchronized="false"
  10545. static="false" final="false" visibility="public"
  10546. deprecated="not deprecated">
  10547. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10548. <exception name="IOException" type="java.io.IOException"/>
  10549. <doc>
  10550. <![CDATA[Removes all default ACL entries from files and directories.
  10551. @param path Path to modify
  10552. @throws IOException if an ACL could not be modified]]>
  10553. </doc>
  10554. </method>
  10555. <method name="removeAcl"
  10556. abstract="false" native="false" synchronized="false"
  10557. static="false" final="false" visibility="public"
  10558. deprecated="not deprecated">
  10559. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10560. <exception name="IOException" type="java.io.IOException"/>
  10561. <doc>
  10562. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  10563. for user, group, and others are retained for compatibility with permission
  10564. bits.
  10565. @param path Path to modify
  10566. @throws IOException if an ACL could not be removed]]>
  10567. </doc>
  10568. </method>
  10569. <method name="setAcl"
  10570. abstract="false" native="false" synchronized="false"
  10571. static="false" final="false" visibility="public"
  10572. deprecated="not deprecated">
  10573. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10574. <param name="aclSpec" type="java.util.List"/>
  10575. <exception name="IOException" type="java.io.IOException"/>
  10576. <doc>
  10577. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  10578. entries.
  10579. @param path Path to modify
  10580. @param aclSpec List<AclEntry> describing modifications, must include entries
  10581. for user, group, and others for compatibility with permission bits.
  10582. @throws IOException if an ACL could not be modified]]>
  10583. </doc>
  10584. </method>
  10585. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  10586. abstract="false" native="false" synchronized="false"
  10587. static="false" final="false" visibility="public"
  10588. deprecated="not deprecated">
  10589. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10590. <exception name="IOException" type="java.io.IOException"/>
  10591. <doc>
  10592. <![CDATA[Gets the ACL of a file or directory.
  10593. @param path Path to get
  10594. @return AclStatus describing the ACL of the file or directory
  10595. @throws IOException if an ACL could not be read]]>
  10596. </doc>
  10597. </method>
  10598. <method name="setXAttr"
  10599. abstract="false" native="false" synchronized="false"
  10600. static="false" final="false" visibility="public"
  10601. deprecated="not deprecated">
  10602. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10603. <param name="name" type="java.lang.String"/>
  10604. <param name="value" type="byte[]"/>
  10605. <exception name="IOException" type="java.io.IOException"/>
  10606. <doc>
  10607. <![CDATA[Set an xattr of a file or directory.
  10608. The name must be prefixed with the namespace followed by ".". For example,
  10609. "user.attr".
  10610. <p/>
  10611. Refer to the HDFS extended attributes user documentation for details.
  10612. @param path Path to modify
  10613. @param name xattr name.
  10614. @param value xattr value.
  10615. @throws IOException]]>
  10616. </doc>
  10617. </method>
  10618. <method name="setXAttr"
  10619. abstract="false" native="false" synchronized="false"
  10620. static="false" final="false" visibility="public"
  10621. deprecated="not deprecated">
  10622. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10623. <param name="name" type="java.lang.String"/>
  10624. <param name="value" type="byte[]"/>
  10625. <param name="flag" type="java.util.EnumSet"/>
  10626. <exception name="IOException" type="java.io.IOException"/>
  10627. <doc>
  10628. <![CDATA[Set an xattr of a file or directory.
  10629. The name must be prefixed with the namespace followed by ".". For example,
  10630. "user.attr".
  10631. <p/>
  10632. Refer to the HDFS extended attributes user documentation for details.
  10633. @param path Path to modify
  10634. @param name xattr name.
  10635. @param value xattr value.
  10636. @param flag xattr set flag
  10637. @throws IOException]]>
  10638. </doc>
  10639. </method>
  10640. <method name="getXAttr" return="byte[]"
  10641. abstract="false" native="false" synchronized="false"
  10642. static="false" final="false" visibility="public"
  10643. deprecated="not deprecated">
  10644. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10645. <param name="name" type="java.lang.String"/>
  10646. <exception name="IOException" type="java.io.IOException"/>
  10647. <doc>
  10648. <![CDATA[Get an xattr name and value for a file or directory.
  10649. The name must be prefixed with the namespace followed by ".". For example,
  10650. "user.attr".
  10651. <p/>
  10652. Refer to the HDFS extended attributes user documentation for details.
  10653. @param path Path to get extended attribute
  10654. @param name xattr name.
  10655. @return byte[] xattr value.
  10656. @throws IOException]]>
  10657. </doc>
  10658. </method>
  10659. <method name="getXAttrs" return="java.util.Map"
  10660. abstract="false" native="false" synchronized="false"
  10661. static="false" final="false" visibility="public"
  10662. deprecated="not deprecated">
  10663. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10664. <exception name="IOException" type="java.io.IOException"/>
  10665. <doc>
  10666. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  10667. Only those xattrs which the logged-in user has permissions to view
  10668. are returned.
  10669. <p/>
  10670. Refer to the HDFS extended attributes user documentation for details.
  10671. @param path Path to get extended attributes
  10672. @return Map<String, byte[]> describing the XAttrs of the file or directory
  10673. @throws IOException]]>
  10674. </doc>
  10675. </method>
  10676. <method name="getXAttrs" return="java.util.Map"
  10677. abstract="false" native="false" synchronized="false"
  10678. static="false" final="false" visibility="public"
  10679. deprecated="not deprecated">
  10680. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10681. <param name="names" type="java.util.List"/>
  10682. <exception name="IOException" type="java.io.IOException"/>
  10683. <doc>
  10684. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  10685. Only those xattrs which the logged-in user has permissions to view
  10686. are returned.
  10687. <p/>
  10688. Refer to the HDFS extended attributes user documentation for details.
  10689. @param path Path to get extended attributes
  10690. @param names XAttr names.
  10691. @return Map<String, byte[]> describing the XAttrs of the file or directory
  10692. @throws IOException]]>
  10693. </doc>
  10694. </method>
  10695. <method name="listXAttrs" return="java.util.List"
  10696. abstract="false" native="false" synchronized="false"
  10697. static="false" final="false" visibility="public"
  10698. deprecated="not deprecated">
  10699. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10700. <exception name="IOException" type="java.io.IOException"/>
  10701. <doc>
  10702. <![CDATA[Get all of the xattr names for a file or directory.
  10703. Only those xattr names which the logged-in user has permissions to view
  10704. are returned.
  10705. <p/>
  10706. Refer to the HDFS extended attributes user documentation for details.
  10707. @param path Path to get extended attributes
  10708. @return List<String> of the XAttr names of the file or directory
  10709. @throws IOException]]>
  10710. </doc>
  10711. </method>
  10712. <method name="removeXAttr"
  10713. abstract="false" native="false" synchronized="false"
  10714. static="false" final="false" visibility="public"
  10715. deprecated="not deprecated">
  10716. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10717. <param name="name" type="java.lang.String"/>
  10718. <exception name="IOException" type="java.io.IOException"/>
  10719. <doc>
  10720. <![CDATA[Remove an xattr of a file or directory.
  10721. The name must be prefixed with the namespace followed by ".". For example,
  10722. "user.attr".
  10723. <p/>
  10724. Refer to the HDFS extended attributes user documentation for details.
  10725. @param path Path to remove extended attribute
  10726. @param name xattr name
  10727. @throws IOException]]>
  10728. </doc>
  10729. </method>
  10730. <method name="getFileSystemClass" return="java.lang.Class"
  10731. abstract="false" native="false" synchronized="false"
  10732. static="true" final="false" visibility="public"
  10733. deprecated="not deprecated">
  10734. <param name="scheme" type="java.lang.String"/>
  10735. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10736. <exception name="IOException" type="java.io.IOException"/>
  10737. </method>
  10738. <method name="getStatistics" return="java.util.Map"
  10739. abstract="false" native="false" synchronized="true"
  10740. static="true" final="false" visibility="public"
  10741. deprecated="use {@link #getAllStatistics} instead">
  10742. <doc>
  10743. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  10744. @return a Map having a key as URI scheme and value as Statistics object
  10745. @deprecated use {@link #getAllStatistics} instead]]>
  10746. </doc>
  10747. </method>
  10748. <method name="getAllStatistics" return="java.util.List"
  10749. abstract="false" native="false" synchronized="true"
  10750. static="true" final="false" visibility="public"
  10751. deprecated="not deprecated">
  10752. <doc>
  10753. <![CDATA[Return the FileSystem classes that have Statistics]]>
  10754. </doc>
  10755. </method>
  10756. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  10757. abstract="false" native="false" synchronized="true"
  10758. static="true" final="false" visibility="public"
  10759. deprecated="not deprecated">
  10760. <param name="scheme" type="java.lang.String"/>
  10761. <param name="cls" type="java.lang.Class"/>
  10762. <doc>
  10763. <![CDATA[Get the statistics for a particular file system
  10764. @param cls the class to lookup
  10765. @return a statistics object]]>
  10766. </doc>
  10767. </method>
  10768. <method name="clearStatistics"
  10769. abstract="false" native="false" synchronized="true"
  10770. static="true" final="false" visibility="public"
  10771. deprecated="not deprecated">
  10772. <doc>
  10773. <![CDATA[Reset all statistics for all file systems]]>
  10774. </doc>
  10775. </method>
  10776. <method name="printStatistics"
  10777. abstract="false" native="false" synchronized="true"
  10778. static="true" final="false" visibility="public"
  10779. deprecated="not deprecated">
  10780. <exception name="IOException" type="java.io.IOException"/>
  10781. <doc>
  10782. <![CDATA[Print all statistics for all file systems]]>
  10783. </doc>
  10784. </method>
  10785. <method name="areSymlinksEnabled" return="boolean"
  10786. abstract="false" native="false" synchronized="false"
  10787. static="true" final="false" visibility="public"
  10788. deprecated="not deprecated">
  10789. </method>
  10790. <method name="enableSymlinks"
  10791. abstract="false" native="false" synchronized="false"
  10792. static="true" final="false" visibility="public"
  10793. deprecated="not deprecated">
  10794. </method>
  10795. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  10796. transient="false" volatile="false"
  10797. static="true" final="true" visibility="public"
  10798. deprecated="not deprecated">
  10799. </field>
  10800. <field name="DEFAULT_FS" type="java.lang.String"
  10801. transient="false" volatile="false"
  10802. static="true" final="true" visibility="public"
  10803. deprecated="not deprecated">
  10804. </field>
  10805. <field name="LOG" type="org.apache.commons.logging.Log"
  10806. transient="false" volatile="false"
  10807. static="true" final="true" visibility="public"
  10808. deprecated="not deprecated">
  10809. </field>
  10810. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  10811. transient="false" volatile="false"
  10812. static="true" final="true" visibility="public"
  10813. deprecated="not deprecated">
  10814. <doc>
  10815. <![CDATA[Priority of the FileSystem shutdown hook.]]>
  10816. </doc>
  10817. </field>
  10818. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  10819. transient="false" volatile="false"
  10820. static="false" final="false" visibility="protected"
  10821. deprecated="not deprecated">
  10822. <doc>
  10823. <![CDATA[The statistics for this file system.]]>
  10824. </doc>
  10825. </field>
  10826. <doc>
  10827. <![CDATA[An abstract base class for a fairly generic filesystem. It
  10828. may be implemented as a distributed filesystem, or as a "local"
  10829. one that reflects the locally-connected disk. The local version
  10830. exists for small Hadoop instances and for testing.
  10831. <p>
  10832. All user code that may potentially use the Hadoop Distributed
  10833. File System should be written to use a FileSystem object. The
  10834. Hadoop DFS is a multi-machine system that appears as a single
  10835. disk. It's useful because of its fault tolerance and potentially
  10836. very large capacity.
  10837. <p>
  10838. The local implementation is {@link LocalFileSystem} and distributed
  10839. implementation is DistributedFileSystem.]]>
  10840. </doc>
  10841. </class>
  10842. <!-- end class org.apache.hadoop.fs.FileSystem -->
  10843. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  10844. <class name="FileSystem.Statistics" extends="java.lang.Object"
  10845. abstract="false"
  10846. static="true" final="true" visibility="public"
  10847. deprecated="not deprecated">
  10848. <constructor name="Statistics" type="java.lang.String"
  10849. static="false" final="false" visibility="public"
  10850. deprecated="not deprecated">
  10851. </constructor>
  10852. <constructor name="Statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  10853. static="false" final="false" visibility="public"
  10854. deprecated="not deprecated">
  10855. <doc>
  10856. <![CDATA[Copy constructor.
  10857. @param other The input Statistics object which is cloned.]]>
  10858. </doc>
  10859. </constructor>
  10860. <method name="getThreadStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData"
  10861. abstract="false" native="false" synchronized="false"
  10862. static="false" final="false" visibility="public"
  10863. deprecated="not deprecated">
  10864. <doc>
  10865. <![CDATA[Get or create the thread-local data associated with the current thread.]]>
  10866. </doc>
  10867. </method>
  10868. <method name="incrementBytesRead"
  10869. abstract="false" native="false" synchronized="false"
  10870. static="false" final="false" visibility="public"
  10871. deprecated="not deprecated">
  10872. <param name="newBytes" type="long"/>
  10873. <doc>
  10874. <![CDATA[Increment the bytes read in the statistics
  10875. @param newBytes the additional bytes read]]>
  10876. </doc>
  10877. </method>
  10878. <method name="incrementBytesWritten"
  10879. abstract="false" native="false" synchronized="false"
  10880. static="false" final="false" visibility="public"
  10881. deprecated="not deprecated">
  10882. <param name="newBytes" type="long"/>
  10883. <doc>
  10884. <![CDATA[Increment the bytes written in the statistics
  10885. @param newBytes the additional bytes written]]>
  10886. </doc>
  10887. </method>
  10888. <method name="incrementReadOps"
  10889. abstract="false" native="false" synchronized="false"
  10890. static="false" final="false" visibility="public"
  10891. deprecated="not deprecated">
  10892. <param name="count" type="int"/>
  10893. <doc>
  10894. <![CDATA[Increment the number of read operations
  10895. @param count number of read operations]]>
  10896. </doc>
  10897. </method>
  10898. <method name="incrementLargeReadOps"
  10899. abstract="false" native="false" synchronized="false"
  10900. static="false" final="false" visibility="public"
  10901. deprecated="not deprecated">
  10902. <param name="count" type="int"/>
  10903. <doc>
  10904. <![CDATA[Increment the number of large read operations
  10905. @param count number of large read operations]]>
  10906. </doc>
  10907. </method>
  10908. <method name="incrementWriteOps"
  10909. abstract="false" native="false" synchronized="false"
  10910. static="false" final="false" visibility="public"
  10911. deprecated="not deprecated">
  10912. <param name="count" type="int"/>
  10913. <doc>
  10914. <![CDATA[Increment the number of write operations
  10915. @param count number of write operations]]>
  10916. </doc>
  10917. </method>
  10918. <method name="getBytesRead" return="long"
  10919. abstract="false" native="false" synchronized="false"
  10920. static="false" final="false" visibility="public"
  10921. deprecated="not deprecated">
  10922. <doc>
  10923. <![CDATA[Get the total number of bytes read
  10924. @return the number of bytes]]>
  10925. </doc>
  10926. </method>
  10927. <method name="getBytesWritten" return="long"
  10928. abstract="false" native="false" synchronized="false"
  10929. static="false" final="false" visibility="public"
  10930. deprecated="not deprecated">
  10931. <doc>
  10932. <![CDATA[Get the total number of bytes written
  10933. @return the number of bytes]]>
  10934. </doc>
  10935. </method>
  10936. <method name="getReadOps" return="int"
  10937. abstract="false" native="false" synchronized="false"
  10938. static="false" final="false" visibility="public"
  10939. deprecated="not deprecated">
  10940. <doc>
  10941. <![CDATA[Get the number of file system read operations such as list files
  10942. @return number of read operations]]>
  10943. </doc>
  10944. </method>
  10945. <method name="getLargeReadOps" return="int"
  10946. abstract="false" native="false" synchronized="false"
  10947. static="false" final="false" visibility="public"
  10948. deprecated="not deprecated">
  10949. <doc>
  10950. <![CDATA[Get the number of large file system read operations such as list files
  10951. under a large directory
  10952. @return number of large read operations]]>
  10953. </doc>
  10954. </method>
  10955. <method name="getWriteOps" return="int"
  10956. abstract="false" native="false" synchronized="false"
  10957. static="false" final="false" visibility="public"
  10958. deprecated="not deprecated">
  10959. <doc>
  10960. <![CDATA[Get the number of file system write operations such as create, append
  10961. rename etc.
  10962. @return number of write operations]]>
  10963. </doc>
  10964. </method>
  10965. <method name="toString" return="java.lang.String"
  10966. abstract="false" native="false" synchronized="false"
  10967. static="false" final="false" visibility="public"
  10968. deprecated="not deprecated">
  10969. </method>
  10970. <method name="reset"
  10971. abstract="false" native="false" synchronized="false"
  10972. static="false" final="false" visibility="public"
  10973. deprecated="not deprecated">
  10974. <doc>
  10975. <![CDATA[Resets all statistics to 0.
  10976. In order to reset, we add up all the thread-local statistics data, and
  10977. set rootData to the negative of that.
  10978. This may seem like a counterintuitive way to reset the statsitics. Why
  10979. can't we just zero out all the thread-local data? Well, thread-local
  10980. data can only be modified by the thread that owns it. If we tried to
  10981. modify the thread-local data from this thread, our modification might get
  10982. interleaved with a read-modify-write operation done by the thread that
  10983. owns the data. That would result in our update getting lost.
  10984. The approach used here avoids this problem because it only ever reads
  10985. (not writes) the thread-local data. Both reads and writes to rootData
  10986. are done under the lock, so we're free to modify rootData from any thread
  10987. that holds the lock.]]>
  10988. </doc>
  10989. </method>
  10990. <method name="getScheme" return="java.lang.String"
  10991. abstract="false" native="false" synchronized="false"
  10992. static="false" final="false" visibility="public"
  10993. deprecated="not deprecated">
  10994. <doc>
  10995. <![CDATA[Get the uri scheme associated with this statistics object.
  10996. @return the schema associated with this set of statistics]]>
  10997. </doc>
  10998. </method>
  10999. <doc>
  11000. <![CDATA[Tracks statistics about how many reads, writes, and so forth have been
  11001. done in a FileSystem.
  11002. Since there is only one of these objects per FileSystem, there will
  11003. typically be many threads writing to this object. Almost every operation
  11004. on an open file will involve a write to this object. In contrast, reading
  11005. statistics is done infrequently by most programs, and not at all by others.
  11006. Hence, this is optimized for writes.
  11007. Each thread writes to its own thread-local area of memory. This removes
  11008. contention and allows us to scale up to many, many threads. To read
  11009. statistics, the reader thread totals up the contents of all of the
  11010. thread-local data areas.]]>
  11011. </doc>
  11012. </class>
  11013. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  11014. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData -->
  11015. <class name="FileSystem.Statistics.StatisticsData" extends="java.lang.Object"
  11016. abstract="false"
  11017. static="true" final="false" visibility="public"
  11018. deprecated="not deprecated">
  11019. <method name="toString" return="java.lang.String"
  11020. abstract="false" native="false" synchronized="false"
  11021. static="false" final="false" visibility="public"
  11022. deprecated="not deprecated">
  11023. </method>
  11024. <method name="getBytesRead" return="long"
  11025. abstract="false" native="false" synchronized="false"
  11026. static="false" final="false" visibility="public"
  11027. deprecated="not deprecated">
  11028. </method>
  11029. <method name="getBytesWritten" return="long"
  11030. abstract="false" native="false" synchronized="false"
  11031. static="false" final="false" visibility="public"
  11032. deprecated="not deprecated">
  11033. </method>
  11034. <method name="getReadOps" return="int"
  11035. abstract="false" native="false" synchronized="false"
  11036. static="false" final="false" visibility="public"
  11037. deprecated="not deprecated">
  11038. </method>
  11039. <method name="getLargeReadOps" return="int"
  11040. abstract="false" native="false" synchronized="false"
  11041. static="false" final="false" visibility="public"
  11042. deprecated="not deprecated">
  11043. </method>
  11044. <method name="getWriteOps" return="int"
  11045. abstract="false" native="false" synchronized="false"
  11046. static="false" final="false" visibility="public"
  11047. deprecated="not deprecated">
  11048. </method>
  11049. <doc>
  11050. <![CDATA[Statistics data.
  11051. There is only a single writer to thread-local StatisticsData objects.
  11052. Hence, volatile is adequate here-- we do not need AtomicLong or similar
  11053. to prevent lost updates.
  11054. The Java specification guarantees that updates to volatile longs will
  11055. be perceived as atomic with respect to other threads, which is all we
  11056. need.]]>
  11057. </doc>
  11058. </class>
  11059. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData -->
  11060. <!-- start class org.apache.hadoop.fs.FileUtil -->
  11061. <class name="FileUtil" extends="java.lang.Object"
  11062. abstract="false"
  11063. static="false" final="false" visibility="public"
  11064. deprecated="not deprecated">
  11065. <constructor name="FileUtil"
  11066. static="false" final="false" visibility="public"
  11067. deprecated="not deprecated">
  11068. </constructor>
  11069. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11070. abstract="false" native="false" synchronized="false"
  11071. static="true" final="false" visibility="public"
  11072. deprecated="not deprecated">
  11073. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11074. <doc>
  11075. <![CDATA[convert an array of FileStatus to an array of Path
  11076. @param stats
  11077. an array of FileStatus objects
  11078. @return an array of paths corresponding to the input]]>
  11079. </doc>
  11080. </method>
  11081. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  11082. abstract="false" native="false" synchronized="false"
  11083. static="true" final="false" visibility="public"
  11084. deprecated="not deprecated">
  11085. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  11086. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11087. <doc>
  11088. <![CDATA[convert an array of FileStatus to an array of Path.
  11089. If stats if null, return path
  11090. @param stats
  11091. an array of FileStatus objects
  11092. @param path
  11093. default path to return in stats is null
  11094. @return an array of paths corresponding to the input]]>
  11095. </doc>
  11096. </method>
  11097. <method name="fullyDelete" return="boolean"
  11098. abstract="false" native="false" synchronized="false"
  11099. static="true" final="false" visibility="public"
  11100. deprecated="not deprecated">
  11101. <param name="dir" type="java.io.File"/>
  11102. <doc>
  11103. <![CDATA[Delete a directory and all its contents. If
  11104. we return false, the directory may be partially-deleted.
  11105. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11106. to by the symlink is not deleted.
  11107. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11108. pointed to by symlink is not deleted.
  11109. (3) If dir is a normal file, it is deleted.
  11110. (4) If dir is a normal directory, then dir and all its contents recursively
  11111. are deleted.]]>
  11112. </doc>
  11113. </method>
  11114. <method name="fullyDelete" return="boolean"
  11115. abstract="false" native="false" synchronized="false"
  11116. static="true" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <param name="dir" type="java.io.File"/>
  11119. <param name="tryGrantPermissions" type="boolean"/>
  11120. <doc>
  11121. <![CDATA[Delete a directory and all its contents. If
  11122. we return false, the directory may be partially-deleted.
  11123. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  11124. to by the symlink is not deleted.
  11125. (2) If dir is symlink to a directory, symlink is deleted. The directory
  11126. pointed to by symlink is not deleted.
  11127. (3) If dir is a normal file, it is deleted.
  11128. (4) If dir is a normal directory, then dir and all its contents recursively
  11129. are deleted.
  11130. @param dir the file or directory to be deleted
  11131. @param tryGrantPermissions true if permissions should be modified to delete a file.
  11132. @return true on success false on failure.]]>
  11133. </doc>
  11134. </method>
  11135. <method name="readLink" return="java.lang.String"
  11136. abstract="false" native="false" synchronized="false"
  11137. static="true" final="false" visibility="public"
  11138. deprecated="not deprecated">
  11139. <param name="f" type="java.io.File"/>
  11140. <doc>
  11141. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  11142. the given path does not refer to a symlink or there is an error
  11143. accessing the symlink.
  11144. @param f File representing the symbolic link.
  11145. @return The target of the symbolic link, empty string on error or if not
  11146. a symlink.]]>
  11147. </doc>
  11148. </method>
  11149. <method name="fullyDeleteContents" return="boolean"
  11150. abstract="false" native="false" synchronized="false"
  11151. static="true" final="false" visibility="public"
  11152. deprecated="not deprecated">
  11153. <param name="dir" type="java.io.File"/>
  11154. <doc>
  11155. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11156. we return false, the directory may be partially-deleted.
  11157. If dir is a symlink to a directory, all the contents of the actual
  11158. directory pointed to by dir will be deleted.]]>
  11159. </doc>
  11160. </method>
  11161. <method name="fullyDeleteContents" return="boolean"
  11162. abstract="false" native="false" synchronized="false"
  11163. static="true" final="false" visibility="public"
  11164. deprecated="not deprecated">
  11165. <param name="dir" type="java.io.File"/>
  11166. <param name="tryGrantPermissions" type="boolean"/>
  11167. <doc>
  11168. <![CDATA[Delete the contents of a directory, not the directory itself. If
  11169. we return false, the directory may be partially-deleted.
  11170. If dir is a symlink to a directory, all the contents of the actual
  11171. directory pointed to by dir will be deleted.
  11172. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  11173. and all the underlying directories before trying to delete their contents.]]>
  11174. </doc>
  11175. </method>
  11176. <method name="fullyDelete"
  11177. abstract="false" native="false" synchronized="false"
  11178. static="true" final="false" visibility="public"
  11179. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  11180. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11181. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11182. <exception name="IOException" type="java.io.IOException"/>
  11183. <doc>
  11184. <![CDATA[Recursively delete a directory.
  11185. @param fs {@link FileSystem} on which the path is present
  11186. @param dir directory to recursively delete
  11187. @throws IOException
  11188. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  11189. </doc>
  11190. </method>
  11191. <method name="copy" return="boolean"
  11192. abstract="false" native="false" synchronized="false"
  11193. static="true" final="false" visibility="public"
  11194. deprecated="not deprecated">
  11195. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11196. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11197. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11198. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11199. <param name="deleteSource" type="boolean"/>
  11200. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11201. <exception name="IOException" type="java.io.IOException"/>
  11202. <doc>
  11203. <![CDATA[Copy files between FileSystems.]]>
  11204. </doc>
  11205. </method>
  11206. <method name="copy" return="boolean"
  11207. abstract="false" native="false" synchronized="false"
  11208. static="true" final="false" visibility="public"
  11209. deprecated="not deprecated">
  11210. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11211. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11212. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11213. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11214. <param name="deleteSource" type="boolean"/>
  11215. <param name="overwrite" type="boolean"/>
  11216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11217. <exception name="IOException" type="java.io.IOException"/>
  11218. </method>
  11219. <method name="copy" return="boolean"
  11220. abstract="false" native="false" synchronized="false"
  11221. static="true" final="false" visibility="public"
  11222. deprecated="not deprecated">
  11223. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11224. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11225. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11226. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11227. <param name="deleteSource" type="boolean"/>
  11228. <param name="overwrite" type="boolean"/>
  11229. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11230. <exception name="IOException" type="java.io.IOException"/>
  11231. <doc>
  11232. <![CDATA[Copy files between FileSystems.]]>
  11233. </doc>
  11234. </method>
  11235. <method name="copy" return="boolean"
  11236. abstract="false" native="false" synchronized="false"
  11237. static="true" final="false" visibility="public"
  11238. deprecated="not deprecated">
  11239. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11240. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  11241. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11242. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11243. <param name="deleteSource" type="boolean"/>
  11244. <param name="overwrite" type="boolean"/>
  11245. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11246. <exception name="IOException" type="java.io.IOException"/>
  11247. <doc>
  11248. <![CDATA[Copy files between FileSystems.]]>
  11249. </doc>
  11250. </method>
  11251. <method name="copyMerge" return="boolean"
  11252. abstract="false" native="false" synchronized="false"
  11253. static="true" final="false" visibility="public"
  11254. deprecated="not deprecated">
  11255. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11256. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  11257. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11258. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  11259. <param name="deleteSource" type="boolean"/>
  11260. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11261. <param name="addString" type="java.lang.String"/>
  11262. <exception name="IOException" type="java.io.IOException"/>
  11263. <doc>
  11264. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  11265. </doc>
  11266. </method>
  11267. <method name="copy" return="boolean"
  11268. abstract="false" native="false" synchronized="false"
  11269. static="true" final="false" visibility="public"
  11270. deprecated="not deprecated">
  11271. <param name="src" type="java.io.File"/>
  11272. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  11273. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11274. <param name="deleteSource" type="boolean"/>
  11275. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11276. <exception name="IOException" type="java.io.IOException"/>
  11277. <doc>
  11278. <![CDATA[Copy local files to a FileSystem.]]>
  11279. </doc>
  11280. </method>
  11281. <method name="copy" return="boolean"
  11282. abstract="false" native="false" synchronized="false"
  11283. static="true" final="false" visibility="public"
  11284. deprecated="not deprecated">
  11285. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  11286. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11287. <param name="dst" type="java.io.File"/>
  11288. <param name="deleteSource" type="boolean"/>
  11289. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11290. <exception name="IOException" type="java.io.IOException"/>
  11291. <doc>
  11292. <![CDATA[Copy FileSystem files to local files.]]>
  11293. </doc>
  11294. </method>
  11295. <method name="makeShellPath" return="java.lang.String"
  11296. abstract="false" native="false" synchronized="false"
  11297. static="true" final="false" visibility="public"
  11298. deprecated="not deprecated">
  11299. <param name="filename" type="java.lang.String"/>
  11300. <exception name="IOException" type="java.io.IOException"/>
  11301. <doc>
  11302. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11303. @param filename The filename to convert
  11304. @return The unix pathname
  11305. @throws IOException on windows, there can be problems with the subprocess]]>
  11306. </doc>
  11307. </method>
  11308. <method name="makeShellPath" return="java.lang.String"
  11309. abstract="false" native="false" synchronized="false"
  11310. static="true" final="false" visibility="public"
  11311. deprecated="not deprecated">
  11312. <param name="file" type="java.io.File"/>
  11313. <exception name="IOException" type="java.io.IOException"/>
  11314. <doc>
  11315. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11316. @param file The filename to convert
  11317. @return The unix pathname
  11318. @throws IOException on windows, there can be problems with the subprocess]]>
  11319. </doc>
  11320. </method>
  11321. <method name="makeShellPath" return="java.lang.String"
  11322. abstract="false" native="false" synchronized="false"
  11323. static="true" final="false" visibility="public"
  11324. deprecated="not deprecated">
  11325. <param name="file" type="java.io.File"/>
  11326. <param name="makeCanonicalPath" type="boolean"/>
  11327. <exception name="IOException" type="java.io.IOException"/>
  11328. <doc>
  11329. <![CDATA[Convert a os-native filename to a path that works for the shell.
  11330. @param file The filename to convert
  11331. @param makeCanonicalPath
  11332. Whether to make canonical path for the file passed
  11333. @return The unix pathname
  11334. @throws IOException on windows, there can be problems with the subprocess]]>
  11335. </doc>
  11336. </method>
  11337. <method name="getDU" return="long"
  11338. abstract="false" native="false" synchronized="false"
  11339. static="true" final="false" visibility="public"
  11340. deprecated="not deprecated">
  11341. <param name="dir" type="java.io.File"/>
  11342. <doc>
  11343. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  11344. implementation.
  11345. @param dir
  11346. The input dir to get the disk space of this local dir
  11347. @return The total disk space of the input local directory]]>
  11348. </doc>
  11349. </method>
  11350. <method name="unZip"
  11351. abstract="false" native="false" synchronized="false"
  11352. static="true" final="false" visibility="public"
  11353. deprecated="not deprecated">
  11354. <param name="inFile" type="java.io.File"/>
  11355. <param name="unzipDir" type="java.io.File"/>
  11356. <exception name="IOException" type="java.io.IOException"/>
  11357. <doc>
  11358. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  11359. passed as the second parameter
  11360. @param inFile The zip file as input
  11361. @param unzipDir The unzip directory where to unzip the zip file.
  11362. @throws IOException]]>
  11363. </doc>
  11364. </method>
  11365. <method name="unTar"
  11366. abstract="false" native="false" synchronized="false"
  11367. static="true" final="false" visibility="public"
  11368. deprecated="not deprecated">
  11369. <param name="inFile" type="java.io.File"/>
  11370. <param name="untarDir" type="java.io.File"/>
  11371. <exception name="IOException" type="java.io.IOException"/>
  11372. <doc>
  11373. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  11374. passed as the second parameter
  11375. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  11376. @param inFile The tar file as input.
  11377. @param untarDir The untar directory where to untar the tar file.
  11378. @throws IOException]]>
  11379. </doc>
  11380. </method>
  11381. <method name="symLink" return="int"
  11382. abstract="false" native="false" synchronized="false"
  11383. static="true" final="false" visibility="public"
  11384. deprecated="not deprecated">
  11385. <param name="target" type="java.lang.String"/>
  11386. <param name="linkname" type="java.lang.String"/>
  11387. <exception name="IOException" type="java.io.IOException"/>
  11388. <doc>
  11389. <![CDATA[Create a soft link between a src and destination
  11390. only on a local disk. HDFS does not support this.
  11391. On Windows, when symlink creation fails due to security
  11392. setting, we will log a warning. The return code in this
  11393. case is 2.
  11394. @param target the target for symlink
  11395. @param linkname the symlink
  11396. @return 0 on success]]>
  11397. </doc>
  11398. </method>
  11399. <method name="chmod" return="int"
  11400. abstract="false" native="false" synchronized="false"
  11401. static="true" final="false" visibility="public"
  11402. deprecated="not deprecated">
  11403. <param name="filename" type="java.lang.String"/>
  11404. <param name="perm" type="java.lang.String"/>
  11405. <exception name="IOException" type="java.io.IOException"/>
  11406. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11407. <doc>
  11408. <![CDATA[Change the permissions on a filename.
  11409. @param filename the name of the file to change
  11410. @param perm the permission string
  11411. @return the exit code from the command
  11412. @throws IOException
  11413. @throws InterruptedException]]>
  11414. </doc>
  11415. </method>
  11416. <method name="chmod" return="int"
  11417. abstract="false" native="false" synchronized="false"
  11418. static="true" final="false" visibility="public"
  11419. deprecated="not deprecated">
  11420. <param name="filename" type="java.lang.String"/>
  11421. <param name="perm" type="java.lang.String"/>
  11422. <param name="recursive" type="boolean"/>
  11423. <exception name="IOException" type="java.io.IOException"/>
  11424. <doc>
  11425. <![CDATA[Change the permissions on a file / directory, recursively, if
  11426. needed.
  11427. @param filename name of the file whose permissions are to change
  11428. @param perm permission string
  11429. @param recursive true, if permissions should be changed recursively
  11430. @return the exit code from the command.
  11431. @throws IOException]]>
  11432. </doc>
  11433. </method>
  11434. <method name="setOwner"
  11435. abstract="false" native="false" synchronized="false"
  11436. static="true" final="false" visibility="public"
  11437. deprecated="not deprecated">
  11438. <param name="file" type="java.io.File"/>
  11439. <param name="username" type="java.lang.String"/>
  11440. <param name="groupname" type="java.lang.String"/>
  11441. <exception name="IOException" type="java.io.IOException"/>
  11442. <doc>
  11443. <![CDATA[Set the ownership on a file / directory. User name and group name
  11444. cannot both be null.
  11445. @param file the file to change
  11446. @param username the new user owner name
  11447. @param groupname the new group owner name
  11448. @throws IOException]]>
  11449. </doc>
  11450. </method>
  11451. <method name="setReadable" return="boolean"
  11452. abstract="false" native="false" synchronized="false"
  11453. static="true" final="false" visibility="public"
  11454. deprecated="not deprecated">
  11455. <param name="f" type="java.io.File"/>
  11456. <param name="readable" type="boolean"/>
  11457. <doc>
  11458. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  11459. File#setReadable does not work as expected on Windows.
  11460. @param f input file
  11461. @param readable
  11462. @return true on success, false otherwise]]>
  11463. </doc>
  11464. </method>
  11465. <method name="setWritable" return="boolean"
  11466. abstract="false" native="false" synchronized="false"
  11467. static="true" final="false" visibility="public"
  11468. deprecated="not deprecated">
  11469. <param name="f" type="java.io.File"/>
  11470. <param name="writable" type="boolean"/>
  11471. <doc>
  11472. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  11473. File#setWritable does not work as expected on Windows.
  11474. @param f input file
  11475. @param writable
  11476. @return true on success, false otherwise]]>
  11477. </doc>
  11478. </method>
  11479. <method name="setExecutable" return="boolean"
  11480. abstract="false" native="false" synchronized="false"
  11481. static="true" final="false" visibility="public"
  11482. deprecated="not deprecated">
  11483. <param name="f" type="java.io.File"/>
  11484. <param name="executable" type="boolean"/>
  11485. <doc>
  11486. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  11487. File#setExecutable does not work as expected on Windows.
  11488. Note: revoking execute permission on folders does not have the same
  11489. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  11490. a file within that folder will still succeed on Windows.
  11491. @param f input file
  11492. @param executable
  11493. @return true on success, false otherwise]]>
  11494. </doc>
  11495. </method>
  11496. <method name="canRead" return="boolean"
  11497. abstract="false" native="false" synchronized="false"
  11498. static="true" final="false" visibility="public"
  11499. deprecated="not deprecated">
  11500. <param name="f" type="java.io.File"/>
  11501. <doc>
  11502. <![CDATA[Platform independent implementation for {@link File#canRead()}
  11503. @param f input file
  11504. @return On Unix, same as {@link File#canRead()}
  11505. On Windows, true if process has read access on the path]]>
  11506. </doc>
  11507. </method>
  11508. <method name="canWrite" return="boolean"
  11509. abstract="false" native="false" synchronized="false"
  11510. static="true" final="false" visibility="public"
  11511. deprecated="not deprecated">
  11512. <param name="f" type="java.io.File"/>
  11513. <doc>
  11514. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  11515. @param f input file
  11516. @return On Unix, same as {@link File#canWrite()}
  11517. On Windows, true if process has write access on the path]]>
  11518. </doc>
  11519. </method>
  11520. <method name="canExecute" return="boolean"
  11521. abstract="false" native="false" synchronized="false"
  11522. static="true" final="false" visibility="public"
  11523. deprecated="not deprecated">
  11524. <param name="f" type="java.io.File"/>
  11525. <doc>
  11526. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  11527. @param f input file
  11528. @return On Unix, same as {@link File#canExecute()}
  11529. On Windows, true if process has execute access on the path]]>
  11530. </doc>
  11531. </method>
  11532. <method name="setPermission"
  11533. abstract="false" native="false" synchronized="false"
  11534. static="true" final="false" visibility="public"
  11535. deprecated="not deprecated">
  11536. <param name="f" type="java.io.File"/>
  11537. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11538. <exception name="IOException" type="java.io.IOException"/>
  11539. <doc>
  11540. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  11541. of forking if group == other.
  11542. @param f the file to change
  11543. @param permission the new permissions
  11544. @throws IOException]]>
  11545. </doc>
  11546. </method>
  11547. <method name="createLocalTempFile" return="java.io.File"
  11548. abstract="false" native="false" synchronized="false"
  11549. static="true" final="true" visibility="public"
  11550. deprecated="not deprecated">
  11551. <param name="basefile" type="java.io.File"/>
  11552. <param name="prefix" type="java.lang.String"/>
  11553. <param name="isDeleteOnExit" type="boolean"/>
  11554. <exception name="IOException" type="java.io.IOException"/>
  11555. <doc>
  11556. <![CDATA[Create a tmp file for a base file.
  11557. @param basefile the base file of the tmp
  11558. @param prefix file name prefix of tmp
  11559. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  11560. @return a newly created tmp file
  11561. @exception IOException If a tmp file cannot created
  11562. @see java.io.File#createTempFile(String, String, File)
  11563. @see java.io.File#deleteOnExit()]]>
  11564. </doc>
  11565. </method>
  11566. <method name="replaceFile"
  11567. abstract="false" native="false" synchronized="false"
  11568. static="true" final="false" visibility="public"
  11569. deprecated="not deprecated">
  11570. <param name="src" type="java.io.File"/>
  11571. <param name="target" type="java.io.File"/>
  11572. <exception name="IOException" type="java.io.IOException"/>
  11573. <doc>
  11574. <![CDATA[Move the src file to the name specified by target.
  11575. @param src the source file
  11576. @param target the target file
  11577. @exception IOException If this operation fails]]>
  11578. </doc>
  11579. </method>
  11580. <method name="listFiles" return="java.io.File[]"
  11581. abstract="false" native="false" synchronized="false"
  11582. static="true" final="false" visibility="public"
  11583. deprecated="not deprecated">
  11584. <param name="dir" type="java.io.File"/>
  11585. <exception name="IOException" type="java.io.IOException"/>
  11586. <doc>
  11587. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  11588. when a dir is not a directory or for any I/O error. Instead of having
  11589. null check everywhere File#listFiles() is used, we will add utility API
  11590. to get around this problem. For the majority of cases where we prefer
  11591. an IOException to be thrown.
  11592. @param dir directory for which listing should be performed
  11593. @return list of files or empty list
  11594. @exception IOException for invalid directory or for a bad disk.]]>
  11595. </doc>
  11596. </method>
  11597. <method name="list" return="java.lang.String[]"
  11598. abstract="false" native="false" synchronized="false"
  11599. static="true" final="false" visibility="public"
  11600. deprecated="not deprecated">
  11601. <param name="dir" type="java.io.File"/>
  11602. <exception name="IOException" type="java.io.IOException"/>
  11603. <doc>
  11604. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  11605. when a dir is not a directory or for any I/O error. Instead of having
  11606. null check everywhere File#list() is used, we will add utility API
  11607. to get around this problem. For the majority of cases where we prefer
  11608. an IOException to be thrown.
  11609. @param dir directory for which listing should be performed
  11610. @return list of file names or empty string list
  11611. @exception IOException for invalid directory or for a bad disk.]]>
  11612. </doc>
  11613. </method>
  11614. <method name="createJarWithClassPath" return="java.lang.String[]"
  11615. abstract="false" native="false" synchronized="false"
  11616. static="true" final="false" visibility="public"
  11617. deprecated="not deprecated">
  11618. <param name="inputClassPath" type="java.lang.String"/>
  11619. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11620. <param name="callerEnv" type="java.util.Map"/>
  11621. <exception name="IOException" type="java.io.IOException"/>
  11622. </method>
  11623. <method name="createJarWithClassPath" return="java.lang.String[]"
  11624. abstract="false" native="false" synchronized="false"
  11625. static="true" final="false" visibility="public"
  11626. deprecated="not deprecated">
  11627. <param name="inputClassPath" type="java.lang.String"/>
  11628. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11629. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  11630. <param name="callerEnv" type="java.util.Map"/>
  11631. <exception name="IOException" type="java.io.IOException"/>
  11632. <doc>
  11633. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  11634. that references all specified entries.
  11635. Some platforms may have an upper limit on command line length. For example,
  11636. the maximum command line length on Windows is 8191 characters, but the
  11637. length of the classpath may exceed this. To work around this limitation,
  11638. use this method to create a small intermediate jar with a manifest that
  11639. contains the full classpath. It returns the absolute path to the new jar,
  11640. which the caller may set as the classpath for a new process.
  11641. Environment variable evaluation is not supported within a jar manifest, so
  11642. this method expands environment variables before inserting classpath entries
  11643. to the manifest. The method parses environment variables according to
  11644. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  11645. environment variables are case-insensitive. For example, %VAR% and %var%
  11646. evaluate to the same value.
  11647. Specifying the classpath in a jar manifest does not support wildcards, so
  11648. this method expands wildcards internally. Any classpath entry that ends
  11649. with * is translated to all files at that path with extension .jar or .JAR.
  11650. @param inputClassPath String input classpath to bundle into the jar manifest
  11651. @param pwd Path to working directory to save jar
  11652. @param targetDir path to where the jar execution will have its working dir
  11653. @param callerEnv Map<String, String> caller's environment variables to use
  11654. for expansion
  11655. @return String[] with absolute path to new jar in position 0 and
  11656. unexpanded wild card entry path in position 1
  11657. @throws IOException if there is an I/O error while writing the jar file]]>
  11658. </doc>
  11659. </method>
  11660. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  11661. transient="false" volatile="false"
  11662. static="true" final="true" visibility="public"
  11663. deprecated="not deprecated">
  11664. </field>
  11665. <doc>
  11666. <![CDATA[A collection of file-processing util methods]]>
  11667. </doc>
  11668. </class>
  11669. <!-- end class org.apache.hadoop.fs.FileUtil -->
  11670. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  11671. <class name="FileUtil.HardLink" extends="org.apache.hadoop.fs.HardLink"
  11672. abstract="false"
  11673. static="true" final="false" visibility="public"
  11674. deprecated="Use {@link org.apache.hadoop.fs.HardLink}">
  11675. <constructor name="HardLink"
  11676. static="false" final="false" visibility="public"
  11677. deprecated="not deprecated">
  11678. </constructor>
  11679. <doc>
  11680. <![CDATA[Class for creating hardlinks.
  11681. Supports Unix, WindXP.
  11682. @deprecated Use {@link org.apache.hadoop.fs.HardLink}]]>
  11683. </doc>
  11684. </class>
  11685. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  11686. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  11687. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11688. abstract="false"
  11689. static="false" final="false" visibility="public"
  11690. deprecated="not deprecated">
  11691. <constructor name="FilterFileSystem"
  11692. static="false" final="false" visibility="public"
  11693. deprecated="not deprecated">
  11694. </constructor>
  11695. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11696. static="false" final="false" visibility="public"
  11697. deprecated="not deprecated">
  11698. </constructor>
  11699. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11700. abstract="false" native="false" synchronized="false"
  11701. static="false" final="false" visibility="public"
  11702. deprecated="not deprecated">
  11703. <doc>
  11704. <![CDATA[Get the raw file system
  11705. @return FileSystem being filtered]]>
  11706. </doc>
  11707. </method>
  11708. <method name="initialize"
  11709. abstract="false" native="false" synchronized="false"
  11710. static="false" final="false" visibility="public"
  11711. deprecated="not deprecated">
  11712. <param name="name" type="java.net.URI"/>
  11713. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11714. <exception name="IOException" type="java.io.IOException"/>
  11715. <doc>
  11716. <![CDATA[Called after a new FileSystem instance is constructed.
  11717. @param name a uri whose authority section names the host, port, etc.
  11718. for this FileSystem
  11719. @param conf the configuration]]>
  11720. </doc>
  11721. </method>
  11722. <method name="getUri" return="java.net.URI"
  11723. abstract="false" native="false" synchronized="false"
  11724. static="false" final="false" visibility="public"
  11725. deprecated="not deprecated">
  11726. <doc>
  11727. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  11728. </doc>
  11729. </method>
  11730. <method name="getCanonicalUri" return="java.net.URI"
  11731. abstract="false" native="false" synchronized="false"
  11732. static="false" final="false" visibility="protected"
  11733. deprecated="not deprecated">
  11734. </method>
  11735. <method name="canonicalizeUri" return="java.net.URI"
  11736. abstract="false" native="false" synchronized="false"
  11737. static="false" final="false" visibility="protected"
  11738. deprecated="not deprecated">
  11739. <param name="uri" type="java.net.URI"/>
  11740. </method>
  11741. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  11742. abstract="false" native="false" synchronized="false"
  11743. static="false" final="false" visibility="public"
  11744. deprecated="not deprecated">
  11745. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11746. <doc>
  11747. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  11748. </doc>
  11749. </method>
  11750. <method name="checkPath"
  11751. abstract="false" native="false" synchronized="false"
  11752. static="false" final="false" visibility="protected"
  11753. deprecated="not deprecated">
  11754. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11755. <doc>
  11756. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  11757. </doc>
  11758. </method>
  11759. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  11760. abstract="false" native="false" synchronized="false"
  11761. static="false" final="false" visibility="public"
  11762. deprecated="not deprecated">
  11763. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  11764. <param name="start" type="long"/>
  11765. <param name="len" type="long"/>
  11766. <exception name="IOException" type="java.io.IOException"/>
  11767. </method>
  11768. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  11769. abstract="false" native="false" synchronized="false"
  11770. static="false" final="false" visibility="public"
  11771. deprecated="not deprecated">
  11772. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11773. <exception name="IOException" type="java.io.IOException"/>
  11774. </method>
  11775. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11776. abstract="false" native="false" synchronized="false"
  11777. static="false" final="false" visibility="public"
  11778. deprecated="not deprecated">
  11779. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11780. <param name="bufferSize" type="int"/>
  11781. <exception name="IOException" type="java.io.IOException"/>
  11782. <doc>
  11783. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  11784. @param f the file name to open
  11785. @param bufferSize the size of the buffer to be used.]]>
  11786. </doc>
  11787. </method>
  11788. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11789. abstract="false" native="false" synchronized="false"
  11790. static="false" final="false" visibility="public"
  11791. deprecated="not deprecated">
  11792. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11793. <param name="bufferSize" type="int"/>
  11794. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11795. <exception name="IOException" type="java.io.IOException"/>
  11796. </method>
  11797. <method name="concat"
  11798. abstract="false" native="false" synchronized="false"
  11799. static="false" final="false" visibility="public"
  11800. deprecated="not deprecated">
  11801. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11802. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  11803. <exception name="IOException" type="java.io.IOException"/>
  11804. </method>
  11805. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11806. abstract="false" native="false" synchronized="false"
  11807. static="false" final="false" visibility="public"
  11808. deprecated="not deprecated">
  11809. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11810. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11811. <param name="overwrite" type="boolean"/>
  11812. <param name="bufferSize" type="int"/>
  11813. <param name="replication" type="short"/>
  11814. <param name="blockSize" type="long"/>
  11815. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11816. <exception name="IOException" type="java.io.IOException"/>
  11817. </method>
  11818. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11819. abstract="false" native="false" synchronized="false"
  11820. static="false" final="false" visibility="public"
  11821. deprecated="not deprecated">
  11822. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11823. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11824. <param name="flags" type="java.util.EnumSet"/>
  11825. <param name="bufferSize" type="int"/>
  11826. <param name="replication" type="short"/>
  11827. <param name="blockSize" type="long"/>
  11828. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11829. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11830. <exception name="IOException" type="java.io.IOException"/>
  11831. </method>
  11832. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  11833. abstract="false" native="false" synchronized="false"
  11834. static="false" final="false" visibility="public"
  11835. deprecated="not deprecated">
  11836. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11837. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11838. <param name="flags" type="java.util.EnumSet"/>
  11839. <param name="bufferSize" type="int"/>
  11840. <param name="replication" type="short"/>
  11841. <param name="blockSize" type="long"/>
  11842. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11843. <exception name="IOException" type="java.io.IOException"/>
  11844. </method>
  11845. <method name="setReplication" return="boolean"
  11846. abstract="false" native="false" synchronized="false"
  11847. static="false" final="false" visibility="public"
  11848. deprecated="not deprecated">
  11849. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11850. <param name="replication" type="short"/>
  11851. <exception name="IOException" type="java.io.IOException"/>
  11852. <doc>
  11853. <![CDATA[Set replication for an existing file.
  11854. @param src file name
  11855. @param replication new replication
  11856. @throws IOException
  11857. @return true if successful;
  11858. false if file does not exist or is a directory]]>
  11859. </doc>
  11860. </method>
  11861. <method name="rename" return="boolean"
  11862. abstract="false" native="false" synchronized="false"
  11863. static="false" final="false" visibility="public"
  11864. deprecated="not deprecated">
  11865. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11866. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11867. <exception name="IOException" type="java.io.IOException"/>
  11868. <doc>
  11869. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  11870. or remote DFS.]]>
  11871. </doc>
  11872. </method>
  11873. <method name="truncate" return="boolean"
  11874. abstract="false" native="false" synchronized="false"
  11875. static="false" final="false" visibility="public"
  11876. deprecated="not deprecated">
  11877. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11878. <param name="newLength" type="long"/>
  11879. <exception name="IOException" type="java.io.IOException"/>
  11880. </method>
  11881. <method name="delete" return="boolean"
  11882. abstract="false" native="false" synchronized="false"
  11883. static="false" final="false" visibility="public"
  11884. deprecated="not deprecated">
  11885. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11886. <param name="recursive" type="boolean"/>
  11887. <exception name="IOException" type="java.io.IOException"/>
  11888. <doc>
  11889. <![CDATA[Delete a file]]>
  11890. </doc>
  11891. </method>
  11892. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11893. abstract="false" native="false" synchronized="false"
  11894. static="false" final="false" visibility="public"
  11895. deprecated="not deprecated">
  11896. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11897. <exception name="IOException" type="java.io.IOException"/>
  11898. <doc>
  11899. <![CDATA[List files in a directory.]]>
  11900. </doc>
  11901. </method>
  11902. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  11903. abstract="false" native="false" synchronized="false"
  11904. static="false" final="false" visibility="public"
  11905. deprecated="not deprecated">
  11906. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11907. <exception name="IOException" type="java.io.IOException"/>
  11908. </method>
  11909. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11910. abstract="false" native="false" synchronized="false"
  11911. static="false" final="false" visibility="public"
  11912. deprecated="not deprecated">
  11913. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11914. <exception name="IOException" type="java.io.IOException"/>
  11915. <doc>
  11916. <![CDATA[List files and its block locations in a directory.]]>
  11917. </doc>
  11918. </method>
  11919. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  11920. abstract="false" native="false" synchronized="false"
  11921. static="false" final="false" visibility="public"
  11922. deprecated="not deprecated">
  11923. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11924. <exception name="IOException" type="java.io.IOException"/>
  11925. <doc>
  11926. <![CDATA[Return a remote iterator for listing in a directory]]>
  11927. </doc>
  11928. </method>
  11929. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11930. abstract="false" native="false" synchronized="false"
  11931. static="false" final="false" visibility="public"
  11932. deprecated="not deprecated">
  11933. </method>
  11934. <method name="setWorkingDirectory"
  11935. abstract="false" native="false" synchronized="false"
  11936. static="false" final="false" visibility="public"
  11937. deprecated="not deprecated">
  11938. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11939. <doc>
  11940. <![CDATA[Set the current working directory for the given file system. All relative
  11941. paths will be resolved relative to it.
  11942. @param newDir]]>
  11943. </doc>
  11944. </method>
  11945. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11946. abstract="false" native="false" synchronized="false"
  11947. static="false" final="false" visibility="public"
  11948. deprecated="not deprecated">
  11949. <doc>
  11950. <![CDATA[Get the current working directory for the given file system
  11951. @return the directory pathname]]>
  11952. </doc>
  11953. </method>
  11954. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11955. abstract="false" native="false" synchronized="false"
  11956. static="false" final="false" visibility="protected"
  11957. deprecated="not deprecated">
  11958. </method>
  11959. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11960. abstract="false" native="false" synchronized="false"
  11961. static="false" final="false" visibility="public"
  11962. deprecated="not deprecated">
  11963. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11964. <exception name="IOException" type="java.io.IOException"/>
  11965. </method>
  11966. <method name="mkdirs" return="boolean"
  11967. abstract="false" native="false" synchronized="false"
  11968. static="false" final="false" visibility="public"
  11969. deprecated="not deprecated">
  11970. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11971. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11972. <exception name="IOException" type="java.io.IOException"/>
  11973. </method>
  11974. <method name="copyFromLocalFile"
  11975. abstract="false" native="false" synchronized="false"
  11976. static="false" final="false" visibility="public"
  11977. deprecated="not deprecated">
  11978. <param name="delSrc" type="boolean"/>
  11979. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11980. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11981. <exception name="IOException" type="java.io.IOException"/>
  11982. <doc>
  11983. <![CDATA[The src file is on the local disk. Add it to FS at
  11984. the given dst name.
  11985. delSrc indicates if the source should be removed]]>
  11986. </doc>
  11987. </method>
  11988. <method name="copyFromLocalFile"
  11989. abstract="false" native="false" synchronized="false"
  11990. static="false" final="false" visibility="public"
  11991. deprecated="not deprecated">
  11992. <param name="delSrc" type="boolean"/>
  11993. <param name="overwrite" type="boolean"/>
  11994. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11995. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11996. <exception name="IOException" type="java.io.IOException"/>
  11997. <doc>
  11998. <![CDATA[The src files are on the local disk. Add it to FS at
  11999. the given dst name.
  12000. delSrc indicates if the source should be removed]]>
  12001. </doc>
  12002. </method>
  12003. <method name="copyFromLocalFile"
  12004. abstract="false" native="false" synchronized="false"
  12005. static="false" final="false" visibility="public"
  12006. deprecated="not deprecated">
  12007. <param name="delSrc" type="boolean"/>
  12008. <param name="overwrite" type="boolean"/>
  12009. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12010. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12011. <exception name="IOException" type="java.io.IOException"/>
  12012. <doc>
  12013. <![CDATA[The src file is on the local disk. Add it to FS at
  12014. the given dst name.
  12015. delSrc indicates if the source should be removed]]>
  12016. </doc>
  12017. </method>
  12018. <method name="copyToLocalFile"
  12019. abstract="false" native="false" synchronized="false"
  12020. static="false" final="false" visibility="public"
  12021. deprecated="not deprecated">
  12022. <param name="delSrc" type="boolean"/>
  12023. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12024. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12025. <exception name="IOException" type="java.io.IOException"/>
  12026. <doc>
  12027. <![CDATA[The src file is under FS, and the dst is on the local disk.
  12028. Copy it from FS control to the local dst name.
  12029. delSrc indicates if the src will be removed or not.]]>
  12030. </doc>
  12031. </method>
  12032. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  12033. abstract="false" native="false" synchronized="false"
  12034. static="false" final="false" visibility="public"
  12035. deprecated="not deprecated">
  12036. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12037. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12038. <exception name="IOException" type="java.io.IOException"/>
  12039. <doc>
  12040. <![CDATA[Returns a local File that the user can write output to. The caller
  12041. provides both the eventual FS target name and the local working
  12042. file. If the FS is local, we write directly into the target. If
  12043. the FS is remote, we write into the tmp local area.]]>
  12044. </doc>
  12045. </method>
  12046. <method name="completeLocalOutput"
  12047. abstract="false" native="false" synchronized="false"
  12048. static="false" final="false" visibility="public"
  12049. deprecated="not deprecated">
  12050. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12051. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12052. <exception name="IOException" type="java.io.IOException"/>
  12053. <doc>
  12054. <![CDATA[Called when we're all done writing to the target. A local FS will
  12055. do nothing, because we've written to exactly the right place. A remote
  12056. FS will copy the contents of tmpLocalFile to the correct target at
  12057. fsOutputFile.]]>
  12058. </doc>
  12059. </method>
  12060. <method name="getUsed" return="long"
  12061. abstract="false" native="false" synchronized="false"
  12062. static="false" final="false" visibility="public"
  12063. deprecated="not deprecated">
  12064. <exception name="IOException" type="java.io.IOException"/>
  12065. <doc>
  12066. <![CDATA[Return the total size of all files in the filesystem.]]>
  12067. </doc>
  12068. </method>
  12069. <method name="getDefaultBlockSize" return="long"
  12070. abstract="false" native="false" synchronized="false"
  12071. static="false" final="false" visibility="public"
  12072. deprecated="not deprecated">
  12073. </method>
  12074. <method name="getDefaultReplication" return="short"
  12075. abstract="false" native="false" synchronized="false"
  12076. static="false" final="false" visibility="public"
  12077. deprecated="not deprecated">
  12078. </method>
  12079. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  12080. abstract="false" native="false" synchronized="false"
  12081. static="false" final="false" visibility="public"
  12082. deprecated="not deprecated">
  12083. <exception name="IOException" type="java.io.IOException"/>
  12084. </method>
  12085. <method name="getDefaultBlockSize" return="long"
  12086. abstract="false" native="false" synchronized="false"
  12087. static="false" final="false" visibility="public"
  12088. deprecated="not deprecated">
  12089. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12090. </method>
  12091. <method name="getDefaultReplication" return="short"
  12092. abstract="false" native="false" synchronized="false"
  12093. static="false" final="false" visibility="public"
  12094. deprecated="not deprecated">
  12095. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12096. </method>
  12097. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  12098. abstract="false" native="false" synchronized="false"
  12099. static="false" final="false" visibility="public"
  12100. deprecated="not deprecated">
  12101. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12102. <exception name="IOException" type="java.io.IOException"/>
  12103. </method>
  12104. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  12105. abstract="false" native="false" synchronized="false"
  12106. static="false" final="false" visibility="public"
  12107. deprecated="not deprecated">
  12108. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12109. <exception name="IOException" type="java.io.IOException"/>
  12110. <doc>
  12111. <![CDATA[Get file status.]]>
  12112. </doc>
  12113. </method>
  12114. <method name="access"
  12115. abstract="false" native="false" synchronized="false"
  12116. static="false" final="false" visibility="public"
  12117. deprecated="not deprecated">
  12118. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12119. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  12120. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12121. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12122. <exception name="IOException" type="java.io.IOException"/>
  12123. </method>
  12124. <method name="createSymlink"
  12125. abstract="false" native="false" synchronized="false"
  12126. static="false" final="false" visibility="public"
  12127. deprecated="not deprecated">
  12128. <param name="target" type="org.apache.hadoop.fs.Path"/>
  12129. <param name="link" type="org.apache.hadoop.fs.Path"/>
  12130. <param name="createParent" type="boolean"/>
  12131. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12132. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  12133. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12134. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  12135. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  12136. <exception name="IOException" type="java.io.IOException"/>
  12137. </method>
  12138. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  12139. abstract="false" native="false" synchronized="false"
  12140. static="false" final="false" visibility="public"
  12141. deprecated="not deprecated">
  12142. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12143. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12144. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12145. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  12146. <exception name="IOException" type="java.io.IOException"/>
  12147. </method>
  12148. <method name="supportsSymlinks" return="boolean"
  12149. abstract="false" native="false" synchronized="false"
  12150. static="false" final="false" visibility="public"
  12151. deprecated="not deprecated">
  12152. </method>
  12153. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  12154. abstract="false" native="false" synchronized="false"
  12155. static="false" final="false" visibility="public"
  12156. deprecated="not deprecated">
  12157. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12158. <exception name="IOException" type="java.io.IOException"/>
  12159. </method>
  12160. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  12161. abstract="false" native="false" synchronized="false"
  12162. static="false" final="false" visibility="protected"
  12163. deprecated="not deprecated">
  12164. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12165. <exception name="IOException" type="java.io.IOException"/>
  12166. </method>
  12167. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12168. abstract="false" native="false" synchronized="false"
  12169. static="false" final="false" visibility="public"
  12170. deprecated="not deprecated">
  12171. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12172. <exception name="IOException" type="java.io.IOException"/>
  12173. </method>
  12174. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12175. abstract="false" native="false" synchronized="false"
  12176. static="false" final="false" visibility="public"
  12177. deprecated="not deprecated">
  12178. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12179. <param name="length" type="long"/>
  12180. <exception name="IOException" type="java.io.IOException"/>
  12181. </method>
  12182. <method name="setVerifyChecksum"
  12183. abstract="false" native="false" synchronized="false"
  12184. static="false" final="false" visibility="public"
  12185. deprecated="not deprecated">
  12186. <param name="verifyChecksum" type="boolean"/>
  12187. </method>
  12188. <method name="setWriteChecksum"
  12189. abstract="false" native="false" synchronized="false"
  12190. static="false" final="false" visibility="public"
  12191. deprecated="not deprecated">
  12192. <param name="writeChecksum" type="boolean"/>
  12193. </method>
  12194. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12195. abstract="false" native="false" synchronized="false"
  12196. static="false" final="false" visibility="public"
  12197. deprecated="not deprecated">
  12198. </method>
  12199. <method name="close"
  12200. abstract="false" native="false" synchronized="false"
  12201. static="false" final="false" visibility="public"
  12202. deprecated="not deprecated">
  12203. <exception name="IOException" type="java.io.IOException"/>
  12204. </method>
  12205. <method name="setOwner"
  12206. abstract="false" native="false" synchronized="false"
  12207. static="false" final="false" visibility="public"
  12208. deprecated="not deprecated">
  12209. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12210. <param name="username" type="java.lang.String"/>
  12211. <param name="groupname" type="java.lang.String"/>
  12212. <exception name="IOException" type="java.io.IOException"/>
  12213. </method>
  12214. <method name="setTimes"
  12215. abstract="false" native="false" synchronized="false"
  12216. static="false" final="false" visibility="public"
  12217. deprecated="not deprecated">
  12218. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12219. <param name="mtime" type="long"/>
  12220. <param name="atime" type="long"/>
  12221. <exception name="IOException" type="java.io.IOException"/>
  12222. </method>
  12223. <method name="setPermission"
  12224. abstract="false" native="false" synchronized="false"
  12225. static="false" final="false" visibility="public"
  12226. deprecated="not deprecated">
  12227. <param name="p" type="org.apache.hadoop.fs.Path"/>
  12228. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12229. <exception name="IOException" type="java.io.IOException"/>
  12230. </method>
  12231. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  12232. abstract="false" native="false" synchronized="false"
  12233. static="false" final="false" visibility="protected"
  12234. deprecated="not deprecated">
  12235. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12236. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12237. <param name="flag" type="java.util.EnumSet"/>
  12238. <param name="bufferSize" type="int"/>
  12239. <param name="replication" type="short"/>
  12240. <param name="blockSize" type="long"/>
  12241. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12242. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12243. <exception name="IOException" type="java.io.IOException"/>
  12244. </method>
  12245. <method name="primitiveMkdir" return="boolean"
  12246. abstract="false" native="false" synchronized="false"
  12247. static="false" final="false" visibility="protected"
  12248. deprecated="not deprecated">
  12249. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12250. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12251. <exception name="IOException" type="java.io.IOException"/>
  12252. </method>
  12253. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  12254. abstract="false" native="false" synchronized="false"
  12255. static="false" final="false" visibility="public"
  12256. deprecated="not deprecated">
  12257. </method>
  12258. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  12259. abstract="false" native="false" synchronized="false"
  12260. static="false" final="false" visibility="public"
  12261. deprecated="not deprecated">
  12262. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12263. <param name="snapshotName" type="java.lang.String"/>
  12264. <exception name="IOException" type="java.io.IOException"/>
  12265. </method>
  12266. <method name="renameSnapshot"
  12267. abstract="false" native="false" synchronized="false"
  12268. static="false" final="false" visibility="public"
  12269. deprecated="not deprecated">
  12270. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12271. <param name="snapshotOldName" type="java.lang.String"/>
  12272. <param name="snapshotNewName" type="java.lang.String"/>
  12273. <exception name="IOException" type="java.io.IOException"/>
  12274. </method>
  12275. <method name="deleteSnapshot"
  12276. abstract="false" native="false" synchronized="false"
  12277. static="false" final="false" visibility="public"
  12278. deprecated="not deprecated">
  12279. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12280. <param name="snapshotName" type="java.lang.String"/>
  12281. <exception name="IOException" type="java.io.IOException"/>
  12282. </method>
  12283. <method name="modifyAclEntries"
  12284. abstract="false" native="false" synchronized="false"
  12285. static="false" final="false" visibility="public"
  12286. deprecated="not deprecated">
  12287. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12288. <param name="aclSpec" type="java.util.List"/>
  12289. <exception name="IOException" type="java.io.IOException"/>
  12290. </method>
  12291. <method name="removeAclEntries"
  12292. abstract="false" native="false" synchronized="false"
  12293. static="false" final="false" visibility="public"
  12294. deprecated="not deprecated">
  12295. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12296. <param name="aclSpec" type="java.util.List"/>
  12297. <exception name="IOException" type="java.io.IOException"/>
  12298. </method>
  12299. <method name="removeDefaultAcl"
  12300. abstract="false" native="false" synchronized="false"
  12301. static="false" final="false" visibility="public"
  12302. deprecated="not deprecated">
  12303. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12304. <exception name="IOException" type="java.io.IOException"/>
  12305. </method>
  12306. <method name="removeAcl"
  12307. abstract="false" native="false" synchronized="false"
  12308. static="false" final="false" visibility="public"
  12309. deprecated="not deprecated">
  12310. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12311. <exception name="IOException" type="java.io.IOException"/>
  12312. </method>
  12313. <method name="setAcl"
  12314. abstract="false" native="false" synchronized="false"
  12315. static="false" final="false" visibility="public"
  12316. deprecated="not deprecated">
  12317. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12318. <param name="aclSpec" type="java.util.List"/>
  12319. <exception name="IOException" type="java.io.IOException"/>
  12320. </method>
  12321. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  12322. abstract="false" native="false" synchronized="false"
  12323. static="false" final="false" visibility="public"
  12324. deprecated="not deprecated">
  12325. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12326. <exception name="IOException" type="java.io.IOException"/>
  12327. </method>
  12328. <method name="setXAttr"
  12329. abstract="false" native="false" synchronized="false"
  12330. static="false" final="false" visibility="public"
  12331. deprecated="not deprecated">
  12332. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12333. <param name="name" type="java.lang.String"/>
  12334. <param name="value" type="byte[]"/>
  12335. <exception name="IOException" type="java.io.IOException"/>
  12336. </method>
  12337. <method name="setXAttr"
  12338. abstract="false" native="false" synchronized="false"
  12339. static="false" final="false" visibility="public"
  12340. deprecated="not deprecated">
  12341. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12342. <param name="name" type="java.lang.String"/>
  12343. <param name="value" type="byte[]"/>
  12344. <param name="flag" type="java.util.EnumSet"/>
  12345. <exception name="IOException" type="java.io.IOException"/>
  12346. </method>
  12347. <method name="getXAttr" return="byte[]"
  12348. abstract="false" native="false" synchronized="false"
  12349. static="false" final="false" visibility="public"
  12350. deprecated="not deprecated">
  12351. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12352. <param name="name" type="java.lang.String"/>
  12353. <exception name="IOException" type="java.io.IOException"/>
  12354. </method>
  12355. <method name="getXAttrs" return="java.util.Map"
  12356. abstract="false" native="false" synchronized="false"
  12357. static="false" final="false" visibility="public"
  12358. deprecated="not deprecated">
  12359. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12360. <exception name="IOException" type="java.io.IOException"/>
  12361. </method>
  12362. <method name="getXAttrs" return="java.util.Map"
  12363. abstract="false" native="false" synchronized="false"
  12364. static="false" final="false" visibility="public"
  12365. deprecated="not deprecated">
  12366. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12367. <param name="names" type="java.util.List"/>
  12368. <exception name="IOException" type="java.io.IOException"/>
  12369. </method>
  12370. <method name="listXAttrs" return="java.util.List"
  12371. abstract="false" native="false" synchronized="false"
  12372. static="false" final="false" visibility="public"
  12373. deprecated="not deprecated">
  12374. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12375. <exception name="IOException" type="java.io.IOException"/>
  12376. </method>
  12377. <method name="removeXAttr"
  12378. abstract="false" native="false" synchronized="false"
  12379. static="false" final="false" visibility="public"
  12380. deprecated="not deprecated">
  12381. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12382. <param name="name" type="java.lang.String"/>
  12383. <exception name="IOException" type="java.io.IOException"/>
  12384. </method>
  12385. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  12386. transient="false" volatile="false"
  12387. static="false" final="false" visibility="protected"
  12388. deprecated="not deprecated">
  12389. </field>
  12390. <field name="swapScheme" type="java.lang.String"
  12391. transient="false" volatile="false"
  12392. static="false" final="false" visibility="protected"
  12393. deprecated="not deprecated">
  12394. </field>
  12395. <doc>
  12396. <![CDATA[A <code>FilterFileSystem</code> contains
  12397. some other file system, which it uses as
  12398. its basic file system, possibly transforming
  12399. the data along the way or providing additional
  12400. functionality. The class <code>FilterFileSystem</code>
  12401. itself simply overrides all methods of
  12402. <code>FileSystem</code> with versions that
  12403. pass all requests to the contained file
  12404. system. Subclasses of <code>FilterFileSystem</code>
  12405. may further override some of these methods
  12406. and may also provide additional methods
  12407. and fields.]]>
  12408. </doc>
  12409. </class>
  12410. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  12411. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  12412. <interface name="FsConstants" abstract="true"
  12413. static="false" final="false" visibility="public"
  12414. deprecated="not deprecated">
  12415. <field name="LOCAL_FS_URI" type="java.net.URI"
  12416. transient="false" volatile="false"
  12417. static="true" final="true" visibility="public"
  12418. deprecated="not deprecated">
  12419. </field>
  12420. <field name="FTP_SCHEME" type="java.lang.String"
  12421. transient="false" volatile="false"
  12422. static="true" final="true" visibility="public"
  12423. deprecated="not deprecated">
  12424. </field>
  12425. <field name="MAX_PATH_LINKS" type="int"
  12426. transient="false" volatile="false"
  12427. static="true" final="true" visibility="public"
  12428. deprecated="not deprecated">
  12429. </field>
  12430. <field name="VIEWFS_URI" type="java.net.URI"
  12431. transient="false" volatile="false"
  12432. static="true" final="true" visibility="public"
  12433. deprecated="not deprecated">
  12434. <doc>
  12435. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  12436. </doc>
  12437. </field>
  12438. <field name="VIEWFS_SCHEME" type="java.lang.String"
  12439. transient="false" volatile="false"
  12440. static="true" final="true" visibility="public"
  12441. deprecated="not deprecated">
  12442. </field>
  12443. <doc>
  12444. <![CDATA[FileSystem related constants.]]>
  12445. </doc>
  12446. </interface>
  12447. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  12448. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  12449. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  12450. abstract="false"
  12451. static="false" final="false" visibility="public"
  12452. deprecated="not deprecated">
  12453. <implements name="org.apache.hadoop.fs.Seekable"/>
  12454. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12455. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  12456. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  12457. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12458. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  12459. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  12460. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  12461. <constructor name="FSDataInputStream" type="java.io.InputStream"
  12462. static="false" final="false" visibility="public"
  12463. deprecated="not deprecated">
  12464. </constructor>
  12465. <method name="seek"
  12466. abstract="false" native="false" synchronized="false"
  12467. static="false" final="false" visibility="public"
  12468. deprecated="not deprecated">
  12469. <param name="desired" type="long"/>
  12470. <exception name="IOException" type="java.io.IOException"/>
  12471. <doc>
  12472. <![CDATA[Seek to the given offset.
  12473. @param desired offset to seek to]]>
  12474. </doc>
  12475. </method>
  12476. <method name="getPos" return="long"
  12477. abstract="false" native="false" synchronized="false"
  12478. static="false" final="false" visibility="public"
  12479. deprecated="not deprecated">
  12480. <exception name="IOException" type="java.io.IOException"/>
  12481. <doc>
  12482. <![CDATA[Get the current position in the input stream.
  12483. @return current position in the input stream]]>
  12484. </doc>
  12485. </method>
  12486. <method name="read" return="int"
  12487. abstract="false" native="false" synchronized="false"
  12488. static="false" final="false" visibility="public"
  12489. deprecated="not deprecated">
  12490. <param name="position" type="long"/>
  12491. <param name="buffer" type="byte[]"/>
  12492. <param name="offset" type="int"/>
  12493. <param name="length" type="int"/>
  12494. <exception name="IOException" type="java.io.IOException"/>
  12495. <doc>
  12496. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12497. @param position position in the input stream to seek
  12498. @param buffer buffer into which data is read
  12499. @param offset offset into the buffer in which data is written
  12500. @param length maximum number of bytes to read
  12501. @return total number of bytes read into the buffer, or <code>-1</code>
  12502. if there is no more data because the end of the stream has been
  12503. reached]]>
  12504. </doc>
  12505. </method>
  12506. <method name="readFully"
  12507. abstract="false" native="false" synchronized="false"
  12508. static="false" final="false" visibility="public"
  12509. deprecated="not deprecated">
  12510. <param name="position" type="long"/>
  12511. <param name="buffer" type="byte[]"/>
  12512. <param name="offset" type="int"/>
  12513. <param name="length" type="int"/>
  12514. <exception name="IOException" type="java.io.IOException"/>
  12515. <doc>
  12516. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12517. Continues to read until <code>length</code> bytes have been read.
  12518. @param position position in the input stream to seek
  12519. @param buffer buffer into which data is read
  12520. @param offset offset into the buffer in which data is written
  12521. @param length the number of bytes to read
  12522. @throws EOFException If the end of stream is reached while reading.
  12523. If an exception is thrown an undetermined number
  12524. of bytes in the buffer may have been written.]]>
  12525. </doc>
  12526. </method>
  12527. <method name="readFully"
  12528. abstract="false" native="false" synchronized="false"
  12529. static="false" final="false" visibility="public"
  12530. deprecated="not deprecated">
  12531. <param name="position" type="long"/>
  12532. <param name="buffer" type="byte[]"/>
  12533. <exception name="IOException" type="java.io.IOException"/>
  12534. <doc>
  12535. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  12536. </doc>
  12537. </method>
  12538. <method name="seekToNewSource" return="boolean"
  12539. abstract="false" native="false" synchronized="false"
  12540. static="false" final="false" visibility="public"
  12541. deprecated="not deprecated">
  12542. <param name="targetPos" type="long"/>
  12543. <exception name="IOException" type="java.io.IOException"/>
  12544. <doc>
  12545. <![CDATA[Seek to the given position on an alternate copy of the data.
  12546. @param targetPos position to seek to
  12547. @return true if a new source is found, false otherwise]]>
  12548. </doc>
  12549. </method>
  12550. <method name="read" return="int"
  12551. abstract="false" native="false" synchronized="false"
  12552. static="false" final="false" visibility="public"
  12553. deprecated="not deprecated">
  12554. <param name="buf" type="java.nio.ByteBuffer"/>
  12555. <exception name="IOException" type="java.io.IOException"/>
  12556. </method>
  12557. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  12558. abstract="false" native="false" synchronized="false"
  12559. static="false" final="false" visibility="public"
  12560. deprecated="not deprecated">
  12561. <exception name="IOException" type="java.io.IOException"/>
  12562. </method>
  12563. <method name="setReadahead"
  12564. abstract="false" native="false" synchronized="false"
  12565. static="false" final="false" visibility="public"
  12566. deprecated="not deprecated">
  12567. <param name="readahead" type="java.lang.Long"/>
  12568. <exception name="IOException" type="java.io.IOException"/>
  12569. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12570. </method>
  12571. <method name="setDropBehind"
  12572. abstract="false" native="false" synchronized="false"
  12573. static="false" final="false" visibility="public"
  12574. deprecated="not deprecated">
  12575. <param name="dropBehind" type="java.lang.Boolean"/>
  12576. <exception name="IOException" type="java.io.IOException"/>
  12577. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12578. </method>
  12579. <method name="read" return="java.nio.ByteBuffer"
  12580. abstract="false" native="false" synchronized="false"
  12581. static="false" final="false" visibility="public"
  12582. deprecated="not deprecated">
  12583. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12584. <param name="maxLength" type="int"/>
  12585. <param name="opts" type="java.util.EnumSet"/>
  12586. <exception name="IOException" type="java.io.IOException"/>
  12587. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12588. </method>
  12589. <method name="read" return="java.nio.ByteBuffer"
  12590. abstract="false" native="false" synchronized="false"
  12591. static="false" final="true" visibility="public"
  12592. deprecated="not deprecated">
  12593. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12594. <param name="maxLength" type="int"/>
  12595. <exception name="IOException" type="java.io.IOException"/>
  12596. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12597. </method>
  12598. <method name="releaseBuffer"
  12599. abstract="false" native="false" synchronized="false"
  12600. static="false" final="false" visibility="public"
  12601. deprecated="not deprecated">
  12602. <param name="buffer" type="java.nio.ByteBuffer"/>
  12603. </method>
  12604. <method name="unbuffer"
  12605. abstract="false" native="false" synchronized="false"
  12606. static="false" final="false" visibility="public"
  12607. deprecated="not deprecated">
  12608. </method>
  12609. <doc>
  12610. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  12611. and buffers input through a {@link BufferedInputStream}.]]>
  12612. </doc>
  12613. </class>
  12614. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  12615. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  12616. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  12617. abstract="false"
  12618. static="false" final="false" visibility="public"
  12619. deprecated="not deprecated">
  12620. <implements name="org.apache.hadoop.fs.Syncable"/>
  12621. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12622. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  12623. static="false" final="false" visibility="public"
  12624. deprecated="not deprecated">
  12625. <exception name="IOException" type="java.io.IOException"/>
  12626. </constructor>
  12627. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  12628. static="false" final="false" visibility="public"
  12629. deprecated="not deprecated">
  12630. <exception name="IOException" type="java.io.IOException"/>
  12631. </constructor>
  12632. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  12633. static="false" final="false" visibility="public"
  12634. deprecated="not deprecated">
  12635. <exception name="IOException" type="java.io.IOException"/>
  12636. </constructor>
  12637. <method name="getPos" return="long"
  12638. abstract="false" native="false" synchronized="false"
  12639. static="false" final="false" visibility="public"
  12640. deprecated="not deprecated">
  12641. <exception name="IOException" type="java.io.IOException"/>
  12642. <doc>
  12643. <![CDATA[Get the current position in the output stream.
  12644. @return the current position in the output stream]]>
  12645. </doc>
  12646. </method>
  12647. <method name="close"
  12648. abstract="false" native="false" synchronized="false"
  12649. static="false" final="false" visibility="public"
  12650. deprecated="not deprecated">
  12651. <exception name="IOException" type="java.io.IOException"/>
  12652. <doc>
  12653. <![CDATA[Close the underlying output stream.]]>
  12654. </doc>
  12655. </method>
  12656. <method name="sync"
  12657. abstract="false" native="false" synchronized="false"
  12658. static="false" final="false" visibility="public"
  12659. deprecated="not deprecated">
  12660. <exception name="IOException" type="java.io.IOException"/>
  12661. </method>
  12662. <method name="hflush"
  12663. abstract="false" native="false" synchronized="false"
  12664. static="false" final="false" visibility="public"
  12665. deprecated="not deprecated">
  12666. <exception name="IOException" type="java.io.IOException"/>
  12667. </method>
  12668. <method name="hsync"
  12669. abstract="false" native="false" synchronized="false"
  12670. static="false" final="false" visibility="public"
  12671. deprecated="not deprecated">
  12672. <exception name="IOException" type="java.io.IOException"/>
  12673. </method>
  12674. <method name="setDropBehind"
  12675. abstract="false" native="false" synchronized="false"
  12676. static="false" final="false" visibility="public"
  12677. deprecated="not deprecated">
  12678. <param name="dropBehind" type="java.lang.Boolean"/>
  12679. <exception name="IOException" type="java.io.IOException"/>
  12680. </method>
  12681. <doc>
  12682. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  12683. </doc>
  12684. </class>
  12685. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  12686. <!-- start class org.apache.hadoop.fs.FSError -->
  12687. <class name="FSError" extends="java.lang.Error"
  12688. abstract="false"
  12689. static="false" final="false" visibility="public"
  12690. deprecated="not deprecated">
  12691. <doc>
  12692. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  12693. in the native filesystem.]]>
  12694. </doc>
  12695. </class>
  12696. <!-- end class org.apache.hadoop.fs.FSError -->
  12697. <!-- start class org.apache.hadoop.fs.FSExceptionMessages -->
  12698. <class name="FSExceptionMessages" extends="java.lang.Object"
  12699. abstract="false"
  12700. static="false" final="false" visibility="public"
  12701. deprecated="not deprecated">
  12702. <constructor name="FSExceptionMessages"
  12703. static="false" final="false" visibility="public"
  12704. deprecated="not deprecated">
  12705. </constructor>
  12706. <field name="STREAM_IS_CLOSED" type="java.lang.String"
  12707. transient="false" volatile="false"
  12708. static="true" final="true" visibility="public"
  12709. deprecated="not deprecated">
  12710. <doc>
  12711. <![CDATA[The operation failed because the stream is closed: {@value}]]>
  12712. </doc>
  12713. </field>
  12714. <field name="NEGATIVE_SEEK" type="java.lang.String"
  12715. transient="false" volatile="false"
  12716. static="true" final="true" visibility="public"
  12717. deprecated="not deprecated">
  12718. <doc>
  12719. <![CDATA[Negative offset seek forbidden : {@value}]]>
  12720. </doc>
  12721. </field>
  12722. <field name="CANNOT_SEEK_PAST_EOF" type="java.lang.String"
  12723. transient="false" volatile="false"
  12724. static="true" final="true" visibility="public"
  12725. deprecated="not deprecated">
  12726. <doc>
  12727. <![CDATA[Seeks : {@value}]]>
  12728. </doc>
  12729. </field>
  12730. <doc>
  12731. <![CDATA[Standard strings to use in exception messages in filesystems
  12732. HDFS is used as the reference source of the strings]]>
  12733. </doc>
  12734. </class>
  12735. <!-- end class org.apache.hadoop.fs.FSExceptionMessages -->
  12736. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  12737. <class name="FsServerDefaults" extends="java.lang.Object"
  12738. abstract="false"
  12739. static="false" final="false" visibility="public"
  12740. deprecated="not deprecated">
  12741. <implements name="org.apache.hadoop.io.Writable"/>
  12742. <constructor name="FsServerDefaults"
  12743. static="false" final="false" visibility="public"
  12744. deprecated="not deprecated">
  12745. </constructor>
  12746. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  12747. static="false" final="false" visibility="public"
  12748. deprecated="not deprecated">
  12749. </constructor>
  12750. <method name="getBlockSize" return="long"
  12751. abstract="false" native="false" synchronized="false"
  12752. static="false" final="false" visibility="public"
  12753. deprecated="not deprecated">
  12754. </method>
  12755. <method name="getBytesPerChecksum" return="int"
  12756. abstract="false" native="false" synchronized="false"
  12757. static="false" final="false" visibility="public"
  12758. deprecated="not deprecated">
  12759. </method>
  12760. <method name="getWritePacketSize" return="int"
  12761. abstract="false" native="false" synchronized="false"
  12762. static="false" final="false" visibility="public"
  12763. deprecated="not deprecated">
  12764. </method>
  12765. <method name="getReplication" return="short"
  12766. abstract="false" native="false" synchronized="false"
  12767. static="false" final="false" visibility="public"
  12768. deprecated="not deprecated">
  12769. </method>
  12770. <method name="getFileBufferSize" return="int"
  12771. abstract="false" native="false" synchronized="false"
  12772. static="false" final="false" visibility="public"
  12773. deprecated="not deprecated">
  12774. </method>
  12775. <method name="getEncryptDataTransfer" return="boolean"
  12776. abstract="false" native="false" synchronized="false"
  12777. static="false" final="false" visibility="public"
  12778. deprecated="not deprecated">
  12779. </method>
  12780. <method name="getTrashInterval" return="long"
  12781. abstract="false" native="false" synchronized="false"
  12782. static="false" final="false" visibility="public"
  12783. deprecated="not deprecated">
  12784. </method>
  12785. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  12786. abstract="false" native="false" synchronized="false"
  12787. static="false" final="false" visibility="public"
  12788. deprecated="not deprecated">
  12789. </method>
  12790. <doc>
  12791. <![CDATA[Provides server default configuration values to clients.]]>
  12792. </doc>
  12793. </class>
  12794. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  12795. <!-- start class org.apache.hadoop.fs.FsShell.Help -->
  12796. <class name="FsShell.Help" extends="org.apache.hadoop.fs.shell.FsCommand"
  12797. abstract="false"
  12798. static="false" final="false" visibility="protected"
  12799. deprecated="not deprecated">
  12800. <constructor name="Help"
  12801. static="false" final="false" visibility="protected"
  12802. deprecated="not deprecated">
  12803. </constructor>
  12804. <method name="processRawArguments"
  12805. abstract="false" native="false" synchronized="false"
  12806. static="false" final="false" visibility="protected"
  12807. deprecated="not deprecated">
  12808. <param name="args" type="java.util.LinkedList"/>
  12809. </method>
  12810. <field name="NAME" type="java.lang.String"
  12811. transient="false" volatile="false"
  12812. static="true" final="true" visibility="public"
  12813. deprecated="not deprecated">
  12814. </field>
  12815. <field name="USAGE" type="java.lang.String"
  12816. transient="false" volatile="false"
  12817. static="true" final="true" visibility="public"
  12818. deprecated="not deprecated">
  12819. </field>
  12820. <field name="DESCRIPTION" type="java.lang.String"
  12821. transient="false" volatile="false"
  12822. static="true" final="true" visibility="public"
  12823. deprecated="not deprecated">
  12824. </field>
  12825. <doc>
  12826. <![CDATA[Displays short usage of commands sans the long description]]>
  12827. </doc>
  12828. </class>
  12829. <!-- end class org.apache.hadoop.fs.FsShell.Help -->
  12830. <!-- start class org.apache.hadoop.fs.FsShell.Usage -->
  12831. <class name="FsShell.Usage" extends="org.apache.hadoop.fs.shell.FsCommand"
  12832. abstract="false"
  12833. static="false" final="false" visibility="protected"
  12834. deprecated="not deprecated">
  12835. <constructor name="Usage"
  12836. static="false" final="false" visibility="protected"
  12837. deprecated="not deprecated">
  12838. </constructor>
  12839. <method name="processRawArguments"
  12840. abstract="false" native="false" synchronized="false"
  12841. static="false" final="false" visibility="protected"
  12842. deprecated="not deprecated">
  12843. <param name="args" type="java.util.LinkedList"/>
  12844. </method>
  12845. <field name="NAME" type="java.lang.String"
  12846. transient="false" volatile="false"
  12847. static="true" final="true" visibility="public"
  12848. deprecated="not deprecated">
  12849. </field>
  12850. <field name="USAGE" type="java.lang.String"
  12851. transient="false" volatile="false"
  12852. static="true" final="true" visibility="public"
  12853. deprecated="not deprecated">
  12854. </field>
  12855. <field name="DESCRIPTION" type="java.lang.String"
  12856. transient="false" volatile="false"
  12857. static="true" final="true" visibility="public"
  12858. deprecated="not deprecated">
  12859. </field>
  12860. <doc>
  12861. <![CDATA[Display help for commands with their short usage and long description]]>
  12862. </doc>
  12863. </class>
  12864. <!-- end class org.apache.hadoop.fs.FsShell.Usage -->
  12865. <!-- start class org.apache.hadoop.fs.FsShellPermissions.Chgrp -->
  12866. <class name="FsShellPermissions.Chgrp" extends="org.apache.hadoop.fs.FsShellPermissions.Chown"
  12867. abstract="false"
  12868. static="true" final="false" visibility="public"
  12869. deprecated="not deprecated">
  12870. <constructor name="Chgrp"
  12871. static="false" final="false" visibility="public"
  12872. deprecated="not deprecated">
  12873. </constructor>
  12874. <method name="parseOwnerGroup"
  12875. abstract="false" native="false" synchronized="false"
  12876. static="false" final="false" visibility="protected"
  12877. deprecated="not deprecated">
  12878. <param name="groupStr" type="java.lang.String"/>
  12879. </method>
  12880. <field name="NAME" type="java.lang.String"
  12881. transient="false" volatile="false"
  12882. static="true" final="true" visibility="public"
  12883. deprecated="not deprecated">
  12884. </field>
  12885. <field name="USAGE" type="java.lang.String"
  12886. transient="false" volatile="false"
  12887. static="true" final="true" visibility="public"
  12888. deprecated="not deprecated">
  12889. </field>
  12890. <field name="DESCRIPTION" type="java.lang.String"
  12891. transient="false" volatile="false"
  12892. static="true" final="true" visibility="public"
  12893. deprecated="not deprecated">
  12894. </field>
  12895. <doc>
  12896. <![CDATA[Used to change group of files]]>
  12897. </doc>
  12898. </class>
  12899. <!-- end class org.apache.hadoop.fs.FsShellPermissions.Chgrp -->
  12900. <!-- start class org.apache.hadoop.fs.FsShellPermissions.Chmod -->
  12901. <class name="FsShellPermissions.Chmod" extends="org.apache.hadoop.fs.FsShellPermissions"
  12902. abstract="false"
  12903. static="true" final="false" visibility="public"
  12904. deprecated="not deprecated">
  12905. <constructor name="Chmod"
  12906. static="false" final="false" visibility="public"
  12907. deprecated="not deprecated">
  12908. </constructor>
  12909. <method name="processOptions"
  12910. abstract="false" native="false" synchronized="false"
  12911. static="false" final="false" visibility="protected"
  12912. deprecated="not deprecated">
  12913. <param name="args" type="java.util.LinkedList"/>
  12914. <exception name="IOException" type="java.io.IOException"/>
  12915. </method>
  12916. <method name="processPath"
  12917. abstract="false" native="false" synchronized="false"
  12918. static="false" final="false" visibility="protected"
  12919. deprecated="not deprecated">
  12920. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  12921. <exception name="IOException" type="java.io.IOException"/>
  12922. </method>
  12923. <field name="NAME" type="java.lang.String"
  12924. transient="false" volatile="false"
  12925. static="true" final="true" visibility="public"
  12926. deprecated="not deprecated">
  12927. </field>
  12928. <field name="USAGE" type="java.lang.String"
  12929. transient="false" volatile="false"
  12930. static="true" final="true" visibility="public"
  12931. deprecated="not deprecated">
  12932. </field>
  12933. <field name="DESCRIPTION" type="java.lang.String"
  12934. transient="false" volatile="false"
  12935. static="true" final="true" visibility="public"
  12936. deprecated="not deprecated">
  12937. </field>
  12938. <field name="pp" type="org.apache.hadoop.fs.permission.ChmodParser"
  12939. transient="false" volatile="false"
  12940. static="false" final="false" visibility="protected"
  12941. deprecated="not deprecated">
  12942. </field>
  12943. <doc>
  12944. <![CDATA[The pattern is almost as flexible as mode allowed by chmod shell command.
  12945. The main restriction is that we recognize only rwxXt. To reduce errors we
  12946. also enforce octal mode specifications of either 3 digits without a sticky
  12947. bit setting or four digits with a sticky bit setting.]]>
  12948. </doc>
  12949. </class>
  12950. <!-- end class org.apache.hadoop.fs.FsShellPermissions.Chmod -->
  12951. <!-- start class org.apache.hadoop.fs.FsShellPermissions.Chown -->
  12952. <class name="FsShellPermissions.Chown" extends="org.apache.hadoop.fs.FsShellPermissions"
  12953. abstract="false"
  12954. static="true" final="false" visibility="public"
  12955. deprecated="not deprecated">
  12956. <constructor name="Chown"
  12957. static="false" final="false" visibility="public"
  12958. deprecated="not deprecated">
  12959. </constructor>
  12960. <method name="processOptions"
  12961. abstract="false" native="false" synchronized="false"
  12962. static="false" final="false" visibility="protected"
  12963. deprecated="not deprecated">
  12964. <param name="args" type="java.util.LinkedList"/>
  12965. <exception name="IOException" type="java.io.IOException"/>
  12966. </method>
  12967. <method name="parseOwnerGroup"
  12968. abstract="false" native="false" synchronized="false"
  12969. static="false" final="false" visibility="protected"
  12970. deprecated="not deprecated">
  12971. <param name="ownerStr" type="java.lang.String"/>
  12972. <doc>
  12973. <![CDATA[Parse the first argument into an owner and group
  12974. @param ownerStr string describing new ownership]]>
  12975. </doc>
  12976. </method>
  12977. <method name="processPath"
  12978. abstract="false" native="false" synchronized="false"
  12979. static="false" final="false" visibility="protected"
  12980. deprecated="not deprecated">
  12981. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  12982. <exception name="IOException" type="java.io.IOException"/>
  12983. </method>
  12984. <field name="NAME" type="java.lang.String"
  12985. transient="false" volatile="false"
  12986. static="true" final="true" visibility="public"
  12987. deprecated="not deprecated">
  12988. </field>
  12989. <field name="USAGE" type="java.lang.String"
  12990. transient="false" volatile="false"
  12991. static="true" final="true" visibility="public"
  12992. deprecated="not deprecated">
  12993. </field>
  12994. <field name="DESCRIPTION" type="java.lang.String"
  12995. transient="false" volatile="false"
  12996. static="true" final="true" visibility="public"
  12997. deprecated="not deprecated">
  12998. </field>
  12999. <field name="owner" type="java.lang.String"
  13000. transient="false" volatile="false"
  13001. static="false" final="false" visibility="protected"
  13002. deprecated="not deprecated">
  13003. </field>
  13004. <field name="group" type="java.lang.String"
  13005. transient="false" volatile="false"
  13006. static="false" final="false" visibility="protected"
  13007. deprecated="not deprecated">
  13008. </field>
  13009. <doc>
  13010. <![CDATA[Used to change owner and/or group of files]]>
  13011. </doc>
  13012. </class>
  13013. <!-- end class org.apache.hadoop.fs.FsShellPermissions.Chown -->
  13014. <!-- start class org.apache.hadoop.fs.FsStatus -->
  13015. <class name="FsStatus" extends="java.lang.Object"
  13016. abstract="false"
  13017. static="false" final="false" visibility="public"
  13018. deprecated="not deprecated">
  13019. <implements name="org.apache.hadoop.io.Writable"/>
  13020. <constructor name="FsStatus" type="long, long, long"
  13021. static="false" final="false" visibility="public"
  13022. deprecated="not deprecated">
  13023. <doc>
  13024. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  13025. </doc>
  13026. </constructor>
  13027. <method name="getCapacity" return="long"
  13028. abstract="false" native="false" synchronized="false"
  13029. static="false" final="false" visibility="public"
  13030. deprecated="not deprecated">
  13031. <doc>
  13032. <![CDATA[Return the capacity in bytes of the file system]]>
  13033. </doc>
  13034. </method>
  13035. <method name="getUsed" return="long"
  13036. abstract="false" native="false" synchronized="false"
  13037. static="false" final="false" visibility="public"
  13038. deprecated="not deprecated">
  13039. <doc>
  13040. <![CDATA[Return the number of bytes used on the file system]]>
  13041. </doc>
  13042. </method>
  13043. <method name="getRemaining" return="long"
  13044. abstract="false" native="false" synchronized="false"
  13045. static="false" final="false" visibility="public"
  13046. deprecated="not deprecated">
  13047. <doc>
  13048. <![CDATA[Return the number of remaining bytes on the file system]]>
  13049. </doc>
  13050. </method>
  13051. <method name="write"
  13052. abstract="false" native="false" synchronized="false"
  13053. static="false" final="false" visibility="public"
  13054. deprecated="not deprecated">
  13055. <param name="out" type="java.io.DataOutput"/>
  13056. <exception name="IOException" type="java.io.IOException"/>
  13057. </method>
  13058. <method name="readFields"
  13059. abstract="false" native="false" synchronized="false"
  13060. static="false" final="false" visibility="public"
  13061. deprecated="not deprecated">
  13062. <param name="in" type="java.io.DataInput"/>
  13063. <exception name="IOException" type="java.io.IOException"/>
  13064. </method>
  13065. <doc>
  13066. <![CDATA[This class is used to represent the capacity, free and used space on a
  13067. {@link FileSystem}.]]>
  13068. </doc>
  13069. </class>
  13070. <!-- end class org.apache.hadoop.fs.FsStatus -->
  13071. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  13072. <class name="GlobFilter" extends="java.lang.Object"
  13073. abstract="false"
  13074. static="false" final="false" visibility="public"
  13075. deprecated="not deprecated">
  13076. <implements name="org.apache.hadoop.fs.PathFilter"/>
  13077. <constructor name="GlobFilter" type="java.lang.String"
  13078. static="false" final="false" visibility="public"
  13079. deprecated="not deprecated">
  13080. <exception name="IOException" type="java.io.IOException"/>
  13081. <doc>
  13082. <![CDATA[Creates a glob filter with the specified file pattern.
  13083. @param filePattern the file pattern.
  13084. @throws IOException thrown if the file pattern is incorrect.]]>
  13085. </doc>
  13086. </constructor>
  13087. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  13088. static="false" final="false" visibility="public"
  13089. deprecated="not deprecated">
  13090. <exception name="IOException" type="java.io.IOException"/>
  13091. <doc>
  13092. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  13093. @param filePattern the file pattern.
  13094. @param filter user filter in addition to the glob pattern.
  13095. @throws IOException thrown if the file pattern is incorrect.]]>
  13096. </doc>
  13097. </constructor>
  13098. <method name="accept" return="boolean"
  13099. abstract="false" native="false" synchronized="false"
  13100. static="false" final="false" visibility="public"
  13101. deprecated="not deprecated">
  13102. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13103. </method>
  13104. <doc>
  13105. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  13106. </doc>
  13107. </class>
  13108. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  13109. <!-- start class org.apache.hadoop.fs.HardLink -->
  13110. <class name="HardLink" extends="java.lang.Object"
  13111. abstract="false"
  13112. static="false" final="false" visibility="public"
  13113. deprecated="not deprecated">
  13114. <constructor name="HardLink"
  13115. static="false" final="false" visibility="public"
  13116. deprecated="not deprecated">
  13117. </constructor>
  13118. <method name="createHardLink"
  13119. abstract="false" native="false" synchronized="false"
  13120. static="true" final="false" visibility="public"
  13121. deprecated="not deprecated">
  13122. <param name="file" type="java.io.File"/>
  13123. <param name="linkName" type="java.io.File"/>
  13124. <exception name="IOException" type="java.io.IOException"/>
  13125. <doc>
  13126. <![CDATA[Creates a hardlink
  13127. @param file - existing source file
  13128. @param linkName - desired target link file]]>
  13129. </doc>
  13130. </method>
  13131. <method name="createHardLinkMult"
  13132. abstract="false" native="false" synchronized="false"
  13133. static="true" final="false" visibility="public"
  13134. deprecated="not deprecated">
  13135. <param name="parentDir" type="java.io.File"/>
  13136. <param name="fileBaseNames" type="java.lang.String[]"/>
  13137. <param name="linkDir" type="java.io.File"/>
  13138. <exception name="IOException" type="java.io.IOException"/>
  13139. <doc>
  13140. <![CDATA[Creates hardlinks from multiple existing files within one parent
  13141. directory, into one target directory.
  13142. @param parentDir - directory containing source files
  13143. @param fileBaseNames - list of path-less file names, as returned by
  13144. parentDir.list()
  13145. @param linkDir - where the hardlinks should be put. It must already exist.]]>
  13146. </doc>
  13147. </method>
  13148. <method name="getLinkCount" return="int"
  13149. abstract="false" native="false" synchronized="false"
  13150. static="true" final="false" visibility="public"
  13151. deprecated="not deprecated">
  13152. <param name="fileName" type="java.io.File"/>
  13153. <exception name="IOException" type="java.io.IOException"/>
  13154. <doc>
  13155. <![CDATA[Retrieves the number of links to the specified file.]]>
  13156. </doc>
  13157. </method>
  13158. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  13159. transient="false" volatile="false"
  13160. static="false" final="true" visibility="public"
  13161. deprecated="not deprecated">
  13162. </field>
  13163. <doc>
  13164. <![CDATA[Class for creating hardlinks.
  13165. Supports Unix/Linux, Windows via winutils , and Mac OS X.
  13166. The HardLink class was formerly a static inner class of FSUtil,
  13167. and the methods provided were blatantly non-thread-safe.
  13168. To enable volume-parallel Update snapshots, we now provide static
  13169. threadsafe methods that allocate new buffer string arrays
  13170. upon each call. We also provide an API to hardlink all files in a
  13171. directory with a single command, which is up to 128 times more
  13172. efficient - and minimizes the impact of the extra buffer creations.]]>
  13173. </doc>
  13174. </class>
  13175. <!-- end class org.apache.hadoop.fs.HardLink -->
  13176. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  13177. <class name="HardLink.LinkStats" extends="java.lang.Object"
  13178. abstract="false"
  13179. static="true" final="false" visibility="public"
  13180. deprecated="not deprecated">
  13181. <constructor name="LinkStats"
  13182. static="false" final="false" visibility="public"
  13183. deprecated="not deprecated">
  13184. </constructor>
  13185. <method name="clear"
  13186. abstract="false" native="false" synchronized="false"
  13187. static="false" final="false" visibility="public"
  13188. deprecated="not deprecated">
  13189. </method>
  13190. <method name="report" return="java.lang.String"
  13191. abstract="false" native="false" synchronized="false"
  13192. static="false" final="false" visibility="public"
  13193. deprecated="not deprecated">
  13194. </method>
  13195. <field name="countDirs" type="int"
  13196. transient="false" volatile="false"
  13197. static="false" final="false" visibility="public"
  13198. deprecated="not deprecated">
  13199. </field>
  13200. <field name="countSingleLinks" type="int"
  13201. transient="false" volatile="false"
  13202. static="false" final="false" visibility="public"
  13203. deprecated="not deprecated">
  13204. </field>
  13205. <field name="countMultLinks" type="int"
  13206. transient="false" volatile="false"
  13207. static="false" final="false" visibility="public"
  13208. deprecated="not deprecated">
  13209. </field>
  13210. <field name="countFilesMultLinks" type="int"
  13211. transient="false" volatile="false"
  13212. static="false" final="false" visibility="public"
  13213. deprecated="not deprecated">
  13214. </field>
  13215. <field name="countEmptyDirs" type="int"
  13216. transient="false" volatile="false"
  13217. static="false" final="false" visibility="public"
  13218. deprecated="not deprecated">
  13219. </field>
  13220. <field name="countPhysicalFileCopies" type="int"
  13221. transient="false" volatile="false"
  13222. static="false" final="false" visibility="public"
  13223. deprecated="not deprecated">
  13224. </field>
  13225. <doc>
  13226. <![CDATA[HardLink statistics counters and methods.
  13227. Not multi-thread safe, obviously.
  13228. Init is called during HardLink instantiation, above.
  13229. These are intended for use by knowledgeable clients, not internally,
  13230. because many of the internal methods are static and can't update these
  13231. per-instance counters.]]>
  13232. </doc>
  13233. </class>
  13234. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  13235. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  13236. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13237. abstract="false"
  13238. static="false" final="false" visibility="public"
  13239. deprecated="not deprecated">
  13240. <constructor name="HarFileSystem"
  13241. static="false" final="false" visibility="public"
  13242. deprecated="not deprecated">
  13243. <doc>
  13244. <![CDATA[public construction of harfilesystem]]>
  13245. </doc>
  13246. </constructor>
  13247. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13248. static="false" final="false" visibility="public"
  13249. deprecated="not deprecated">
  13250. <doc>
  13251. <![CDATA[Constructor to create a HarFileSystem with an
  13252. underlying filesystem.
  13253. @param fs underlying file system]]>
  13254. </doc>
  13255. </constructor>
  13256. <method name="getScheme" return="java.lang.String"
  13257. abstract="false" native="false" synchronized="false"
  13258. static="false" final="false" visibility="public"
  13259. deprecated="not deprecated">
  13260. <doc>
  13261. <![CDATA[Return the protocol scheme for the FileSystem.
  13262. <p/>
  13263. @return <code>har</code>]]>
  13264. </doc>
  13265. </method>
  13266. <method name="initialize"
  13267. abstract="false" native="false" synchronized="false"
  13268. static="false" final="false" visibility="public"
  13269. deprecated="not deprecated">
  13270. <param name="name" type="java.net.URI"/>
  13271. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13272. <exception name="IOException" type="java.io.IOException"/>
  13273. <doc>
  13274. <![CDATA[Initialize a Har filesystem per har archive. The
  13275. archive home directory is the top level directory
  13276. in the filesystem that contains the HAR archive.
  13277. Be careful with this method, you do not want to go
  13278. on creating new Filesystem instances per call to
  13279. path.getFileSystem().
  13280. the uri of Har is
  13281. har://underlyingfsscheme-host:port/archivepath.
  13282. or
  13283. har:///archivepath. This assumes the underlying filesystem
  13284. to be used in case not specified.]]>
  13285. </doc>
  13286. </method>
  13287. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13288. abstract="false" native="false" synchronized="false"
  13289. static="false" final="false" visibility="public"
  13290. deprecated="not deprecated">
  13291. </method>
  13292. <method name="getHarVersion" return="int"
  13293. abstract="false" native="false" synchronized="false"
  13294. static="false" final="false" visibility="public"
  13295. deprecated="not deprecated">
  13296. <exception name="IOException" type="java.io.IOException"/>
  13297. </method>
  13298. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13299. abstract="false" native="false" synchronized="false"
  13300. static="false" final="false" visibility="public"
  13301. deprecated="not deprecated">
  13302. <doc>
  13303. <![CDATA[return the top level archive.]]>
  13304. </doc>
  13305. </method>
  13306. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13307. abstract="false" native="false" synchronized="false"
  13308. static="false" final="false" visibility="public"
  13309. deprecated="not deprecated">
  13310. </method>
  13311. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  13312. abstract="false" native="false" synchronized="false"
  13313. static="false" final="false" visibility="public"
  13314. deprecated="not deprecated">
  13315. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13316. <exception name="IOException" type="java.io.IOException"/>
  13317. </method>
  13318. <method name="getCanonicalUri" return="java.net.URI"
  13319. abstract="false" native="false" synchronized="false"
  13320. static="false" final="false" visibility="protected"
  13321. deprecated="not deprecated">
  13322. <doc>
  13323. <![CDATA[Used for delegation token related functionality. Must delegate to
  13324. underlying file system.]]>
  13325. </doc>
  13326. </method>
  13327. <method name="canonicalizeUri" return="java.net.URI"
  13328. abstract="false" native="false" synchronized="false"
  13329. static="false" final="false" visibility="protected"
  13330. deprecated="not deprecated">
  13331. <param name="uri" type="java.net.URI"/>
  13332. </method>
  13333. <method name="getUri" return="java.net.URI"
  13334. abstract="false" native="false" synchronized="false"
  13335. static="false" final="false" visibility="public"
  13336. deprecated="not deprecated">
  13337. <doc>
  13338. <![CDATA[Returns the uri of this filesystem.
  13339. The uri is of the form
  13340. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  13341. </doc>
  13342. </method>
  13343. <method name="checkPath"
  13344. abstract="false" native="false" synchronized="false"
  13345. static="false" final="false" visibility="protected"
  13346. deprecated="not deprecated">
  13347. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13348. </method>
  13349. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  13350. abstract="false" native="false" synchronized="false"
  13351. static="false" final="false" visibility="public"
  13352. deprecated="not deprecated">
  13353. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13354. <exception name="IOException" type="java.io.IOException"/>
  13355. </method>
  13356. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  13357. abstract="false" native="false" synchronized="false"
  13358. static="false" final="false" visibility="public"
  13359. deprecated="not deprecated">
  13360. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13361. </method>
  13362. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13363. abstract="false" native="false" synchronized="false"
  13364. static="false" final="false" visibility="public"
  13365. deprecated="not deprecated">
  13366. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  13367. <param name="start" type="long"/>
  13368. <param name="len" type="long"/>
  13369. <exception name="IOException" type="java.io.IOException"/>
  13370. <doc>
  13371. <![CDATA[Get block locations from the underlying fs and fix their
  13372. offsets and lengths.
  13373. @param file the input file status to get block locations
  13374. @param start the start of the desired range in the contained file
  13375. @param len the length of the desired range
  13376. @return block locations for this segment of file
  13377. @throws IOException]]>
  13378. </doc>
  13379. </method>
  13380. <method name="getHarHash" return="int"
  13381. abstract="false" native="false" synchronized="false"
  13382. static="true" final="false" visibility="public"
  13383. deprecated="not deprecated">
  13384. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13385. <doc>
  13386. <![CDATA[the hash of the path p inside the filesystem
  13387. @param p the path in the harfilesystem
  13388. @return the hash code of the path.]]>
  13389. </doc>
  13390. </method>
  13391. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13392. abstract="false" native="false" synchronized="false"
  13393. static="false" final="false" visibility="public"
  13394. deprecated="not deprecated">
  13395. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13396. <exception name="IOException" type="java.io.IOException"/>
  13397. <doc>
  13398. <![CDATA[return the filestatus of files in har archive.
  13399. The permission returned are that of the archive
  13400. index files. The permissions are not persisted
  13401. while creating a hadoop archive.
  13402. @param f the path in har filesystem
  13403. @return filestatus.
  13404. @throws IOException]]>
  13405. </doc>
  13406. </method>
  13407. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13408. abstract="false" native="false" synchronized="false"
  13409. static="false" final="false" visibility="public"
  13410. deprecated="not deprecated">
  13411. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13412. <param name="length" type="long"/>
  13413. <doc>
  13414. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  13415. </doc>
  13416. </method>
  13417. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13418. abstract="false" native="false" synchronized="false"
  13419. static="false" final="false" visibility="public"
  13420. deprecated="not deprecated">
  13421. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13422. <param name="bufferSize" type="int"/>
  13423. <exception name="IOException" type="java.io.IOException"/>
  13424. <doc>
  13425. <![CDATA[Returns a har input stream which fakes end of
  13426. file. It reads the index files to get the part
  13427. file name and the size and start of the file.]]>
  13428. </doc>
  13429. </method>
  13430. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  13431. abstract="false" native="false" synchronized="false"
  13432. static="false" final="false" visibility="public"
  13433. deprecated="not deprecated">
  13434. <doc>
  13435. <![CDATA[Used for delegation token related functionality. Must delegate to
  13436. underlying file system.]]>
  13437. </doc>
  13438. </method>
  13439. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13440. abstract="false" native="false" synchronized="false"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13444. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13445. <param name="overwrite" type="boolean"/>
  13446. <param name="bufferSize" type="int"/>
  13447. <param name="replication" type="short"/>
  13448. <param name="blockSize" type="long"/>
  13449. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13450. <exception name="IOException" type="java.io.IOException"/>
  13451. </method>
  13452. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13453. abstract="false" native="false" synchronized="false"
  13454. static="false" final="false" visibility="public"
  13455. deprecated="not deprecated">
  13456. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13457. <param name="overwrite" type="boolean"/>
  13458. <param name="bufferSize" type="int"/>
  13459. <param name="replication" type="short"/>
  13460. <param name="blockSize" type="long"/>
  13461. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13462. <exception name="IOException" type="java.io.IOException"/>
  13463. </method>
  13464. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13465. abstract="false" native="false" synchronized="false"
  13466. static="false" final="false" visibility="public"
  13467. deprecated="not deprecated">
  13468. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13469. <param name="bufferSize" type="int"/>
  13470. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13471. <exception name="IOException" type="java.io.IOException"/>
  13472. </method>
  13473. <method name="close"
  13474. abstract="false" native="false" synchronized="false"
  13475. static="false" final="false" visibility="public"
  13476. deprecated="not deprecated">
  13477. <exception name="IOException" type="java.io.IOException"/>
  13478. </method>
  13479. <method name="setReplication" return="boolean"
  13480. abstract="false" native="false" synchronized="false"
  13481. static="false" final="false" visibility="public"
  13482. deprecated="not deprecated">
  13483. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13484. <param name="replication" type="short"/>
  13485. <exception name="IOException" type="java.io.IOException"/>
  13486. <doc>
  13487. <![CDATA[Not implemented.]]>
  13488. </doc>
  13489. </method>
  13490. <method name="rename" return="boolean"
  13491. abstract="false" native="false" synchronized="false"
  13492. static="false" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13495. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13496. <exception name="IOException" type="java.io.IOException"/>
  13497. </method>
  13498. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13499. abstract="false" native="false" synchronized="false"
  13500. static="false" final="false" visibility="public"
  13501. deprecated="not deprecated">
  13502. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13503. <exception name="IOException" type="java.io.IOException"/>
  13504. </method>
  13505. <method name="truncate" return="boolean"
  13506. abstract="false" native="false" synchronized="false"
  13507. static="false" final="false" visibility="public"
  13508. deprecated="not deprecated">
  13509. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13510. <param name="newLength" type="long"/>
  13511. <exception name="IOException" type="java.io.IOException"/>
  13512. <doc>
  13513. <![CDATA[Not implemented.]]>
  13514. </doc>
  13515. </method>
  13516. <method name="delete" return="boolean"
  13517. abstract="false" native="false" synchronized="false"
  13518. static="false" final="false" visibility="public"
  13519. deprecated="not deprecated">
  13520. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13521. <param name="recursive" type="boolean"/>
  13522. <exception name="IOException" type="java.io.IOException"/>
  13523. <doc>
  13524. <![CDATA[Not implemented.]]>
  13525. </doc>
  13526. </method>
  13527. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13528. abstract="false" native="false" synchronized="false"
  13529. static="false" final="false" visibility="public"
  13530. deprecated="not deprecated">
  13531. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13532. <exception name="IOException" type="java.io.IOException"/>
  13533. <doc>
  13534. <![CDATA[liststatus returns the children of a directory
  13535. after looking up the index files.]]>
  13536. </doc>
  13537. </method>
  13538. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13539. abstract="false" native="false" synchronized="false"
  13540. static="false" final="false" visibility="public"
  13541. deprecated="not deprecated">
  13542. <doc>
  13543. <![CDATA[return the top level archive path.]]>
  13544. </doc>
  13545. </method>
  13546. <method name="setWorkingDirectory"
  13547. abstract="false" native="false" synchronized="false"
  13548. static="false" final="false" visibility="public"
  13549. deprecated="not deprecated">
  13550. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13551. </method>
  13552. <method name="mkdirs" return="boolean"
  13553. abstract="false" native="false" synchronized="false"
  13554. static="false" final="false" visibility="public"
  13555. deprecated="not deprecated">
  13556. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13557. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13558. <exception name="IOException" type="java.io.IOException"/>
  13559. <doc>
  13560. <![CDATA[not implemented.]]>
  13561. </doc>
  13562. </method>
  13563. <method name="copyFromLocalFile"
  13564. abstract="false" native="false" synchronized="false"
  13565. static="false" final="false" visibility="public"
  13566. deprecated="not deprecated">
  13567. <param name="delSrc" type="boolean"/>
  13568. <param name="overwrite" type="boolean"/>
  13569. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13570. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13571. <exception name="IOException" type="java.io.IOException"/>
  13572. <doc>
  13573. <![CDATA[not implemented.]]>
  13574. </doc>
  13575. </method>
  13576. <method name="copyFromLocalFile"
  13577. abstract="false" native="false" synchronized="false"
  13578. static="false" final="false" visibility="public"
  13579. deprecated="not deprecated">
  13580. <param name="delSrc" type="boolean"/>
  13581. <param name="overwrite" type="boolean"/>
  13582. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  13583. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13584. <exception name="IOException" type="java.io.IOException"/>
  13585. </method>
  13586. <method name="copyToLocalFile"
  13587. abstract="false" native="false" synchronized="false"
  13588. static="false" final="false" visibility="public"
  13589. deprecated="not deprecated">
  13590. <param name="delSrc" type="boolean"/>
  13591. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13592. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13593. <exception name="IOException" type="java.io.IOException"/>
  13594. <doc>
  13595. <![CDATA[copies the file in the har filesystem to a local file.]]>
  13596. </doc>
  13597. </method>
  13598. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  13599. abstract="false" native="false" synchronized="false"
  13600. static="false" final="false" visibility="public"
  13601. deprecated="not deprecated">
  13602. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13603. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13604. <exception name="IOException" type="java.io.IOException"/>
  13605. <doc>
  13606. <![CDATA[not implemented.]]>
  13607. </doc>
  13608. </method>
  13609. <method name="completeLocalOutput"
  13610. abstract="false" native="false" synchronized="false"
  13611. static="false" final="false" visibility="public"
  13612. deprecated="not deprecated">
  13613. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  13614. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  13615. <exception name="IOException" type="java.io.IOException"/>
  13616. <doc>
  13617. <![CDATA[not implemented.]]>
  13618. </doc>
  13619. </method>
  13620. <method name="setOwner"
  13621. abstract="false" native="false" synchronized="false"
  13622. static="false" final="false" visibility="public"
  13623. deprecated="not deprecated">
  13624. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13625. <param name="username" type="java.lang.String"/>
  13626. <param name="groupname" type="java.lang.String"/>
  13627. <exception name="IOException" type="java.io.IOException"/>
  13628. <doc>
  13629. <![CDATA[not implemented.]]>
  13630. </doc>
  13631. </method>
  13632. <method name="setTimes"
  13633. abstract="false" native="false" synchronized="false"
  13634. static="false" final="false" visibility="public"
  13635. deprecated="not deprecated">
  13636. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13637. <param name="mtime" type="long"/>
  13638. <param name="atime" type="long"/>
  13639. <exception name="IOException" type="java.io.IOException"/>
  13640. </method>
  13641. <method name="setPermission"
  13642. abstract="false" native="false" synchronized="false"
  13643. static="false" final="false" visibility="public"
  13644. deprecated="not deprecated">
  13645. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13646. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13647. <exception name="IOException" type="java.io.IOException"/>
  13648. <doc>
  13649. <![CDATA[Not implemented.]]>
  13650. </doc>
  13651. </method>
  13652. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13653. abstract="false" native="false" synchronized="false"
  13654. static="false" final="false" visibility="public"
  13655. deprecated="not deprecated">
  13656. <exception name="IOException" type="java.io.IOException"/>
  13657. </method>
  13658. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13659. abstract="false" native="false" synchronized="false"
  13660. static="false" final="false" visibility="public"
  13661. deprecated="not deprecated">
  13662. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13663. <exception name="IOException" type="java.io.IOException"/>
  13664. </method>
  13665. <method name="getUsed" return="long"
  13666. abstract="false" native="false" synchronized="false"
  13667. static="false" final="false" visibility="public"
  13668. deprecated="not deprecated">
  13669. <exception name="IOException" type="java.io.IOException"/>
  13670. </method>
  13671. <method name="getDefaultBlockSize" return="long"
  13672. abstract="false" native="false" synchronized="false"
  13673. static="false" final="false" visibility="public"
  13674. deprecated="not deprecated">
  13675. </method>
  13676. <method name="getDefaultBlockSize" return="long"
  13677. abstract="false" native="false" synchronized="false"
  13678. static="false" final="false" visibility="public"
  13679. deprecated="not deprecated">
  13680. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13681. </method>
  13682. <method name="getDefaultReplication" return="short"
  13683. abstract="false" native="false" synchronized="false"
  13684. static="false" final="false" visibility="public"
  13685. deprecated="not deprecated">
  13686. </method>
  13687. <method name="getDefaultReplication" return="short"
  13688. abstract="false" native="false" synchronized="false"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13692. </method>
  13693. <field name="METADATA_CACHE_ENTRIES_KEY" type="java.lang.String"
  13694. transient="false" volatile="false"
  13695. static="true" final="true" visibility="public"
  13696. deprecated="not deprecated">
  13697. </field>
  13698. <field name="METADATA_CACHE_ENTRIES_DEFAULT" type="int"
  13699. transient="false" volatile="false"
  13700. static="true" final="true" visibility="public"
  13701. deprecated="not deprecated">
  13702. </field>
  13703. <field name="VERSION" type="int"
  13704. transient="false" volatile="false"
  13705. static="true" final="true" visibility="public"
  13706. deprecated="not deprecated">
  13707. </field>
  13708. <doc>
  13709. <![CDATA[This is an implementation of the Hadoop Archive
  13710. Filesystem. This archive Filesystem has index files
  13711. of the form _index* and has contents of the form
  13712. part-*. The index files store the indexes of the
  13713. real files. The index files are of the form _masterindex
  13714. and _index. The master index is a level of indirection
  13715. in to the index file to make the look ups faster. the index
  13716. file is sorted with hash code of the paths that it contains
  13717. and the master index contains pointers to the positions in
  13718. index for ranges of hashcodes.]]>
  13719. </doc>
  13720. </class>
  13721. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  13722. <!-- start class org.apache.hadoop.fs.HarFs -->
  13723. <class name="HarFs" extends="org.apache.hadoop.fs.DelegateToFileSystem"
  13724. abstract="false"
  13725. static="false" final="false" visibility="public"
  13726. deprecated="not deprecated">
  13727. <method name="getUriDefaultPort" return="int"
  13728. abstract="false" native="false" synchronized="false"
  13729. static="false" final="false" visibility="public"
  13730. deprecated="not deprecated">
  13731. </method>
  13732. </class>
  13733. <!-- end class org.apache.hadoop.fs.HarFs -->
  13734. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  13735. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  13736. abstract="false"
  13737. static="false" final="false" visibility="public"
  13738. deprecated="not deprecated">
  13739. <constructor name="InvalidPathException" type="java.lang.String"
  13740. static="false" final="false" visibility="public"
  13741. deprecated="not deprecated">
  13742. <doc>
  13743. <![CDATA[Constructs exception with the specified detail message.
  13744. @param path invalid path.]]>
  13745. </doc>
  13746. </constructor>
  13747. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  13748. static="false" final="false" visibility="public"
  13749. deprecated="not deprecated">
  13750. <doc>
  13751. <![CDATA[Constructs exception with the specified detail message.
  13752. @param path invalid path.
  13753. @param reason Reason <code>path</code> is invalid]]>
  13754. </doc>
  13755. </constructor>
  13756. <doc>
  13757. <![CDATA[Path string is invalid either because it has invalid characters or due to
  13758. other file system specific reasons.]]>
  13759. </doc>
  13760. </class>
  13761. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  13762. <!-- start class org.apache.hadoop.fs.InvalidRequestException -->
  13763. <class name="InvalidRequestException" extends="java.io.IOException"
  13764. abstract="false"
  13765. static="false" final="false" visibility="public"
  13766. deprecated="not deprecated">
  13767. <constructor name="InvalidRequestException" type="java.lang.String"
  13768. static="false" final="false" visibility="public"
  13769. deprecated="not deprecated">
  13770. </constructor>
  13771. <doc>
  13772. <![CDATA[Thrown when the user makes a malformed request, for example missing required
  13773. parameters or parameters that are not valid.]]>
  13774. </doc>
  13775. </class>
  13776. <!-- end class org.apache.hadoop.fs.InvalidRequestException -->
  13777. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  13778. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  13779. abstract="false"
  13780. static="false" final="false" visibility="public"
  13781. deprecated="not deprecated">
  13782. <constructor name="LocalFileSystem"
  13783. static="false" final="false" visibility="public"
  13784. deprecated="not deprecated">
  13785. </constructor>
  13786. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13787. static="false" final="false" visibility="public"
  13788. deprecated="not deprecated">
  13789. </constructor>
  13790. <method name="initialize"
  13791. abstract="false" native="false" synchronized="false"
  13792. static="false" final="false" visibility="public"
  13793. deprecated="not deprecated">
  13794. <param name="name" type="java.net.URI"/>
  13795. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13796. <exception name="IOException" type="java.io.IOException"/>
  13797. </method>
  13798. <method name="getScheme" return="java.lang.String"
  13799. abstract="false" native="false" synchronized="false"
  13800. static="false" final="false" visibility="public"
  13801. deprecated="not deprecated">
  13802. <doc>
  13803. <![CDATA[Return the protocol scheme for the FileSystem.
  13804. <p/>
  13805. @return <code>file</code>]]>
  13806. </doc>
  13807. </method>
  13808. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  13809. abstract="false" native="false" synchronized="false"
  13810. static="false" final="false" visibility="public"
  13811. deprecated="not deprecated">
  13812. </method>
  13813. <method name="pathToFile" return="java.io.File"
  13814. abstract="false" native="false" synchronized="false"
  13815. static="false" final="false" visibility="public"
  13816. deprecated="not deprecated">
  13817. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13818. <doc>
  13819. <![CDATA[Convert a path to a File.]]>
  13820. </doc>
  13821. </method>
  13822. <method name="copyFromLocalFile"
  13823. abstract="false" native="false" synchronized="false"
  13824. static="false" final="false" visibility="public"
  13825. deprecated="not deprecated">
  13826. <param name="delSrc" type="boolean"/>
  13827. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13828. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13829. <exception name="IOException" type="java.io.IOException"/>
  13830. </method>
  13831. <method name="copyToLocalFile"
  13832. abstract="false" native="false" synchronized="false"
  13833. static="false" final="false" visibility="public"
  13834. deprecated="not deprecated">
  13835. <param name="delSrc" type="boolean"/>
  13836. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13837. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13838. <exception name="IOException" type="java.io.IOException"/>
  13839. </method>
  13840. <method name="reportChecksumFailure" return="boolean"
  13841. abstract="false" native="false" synchronized="false"
  13842. static="false" final="false" visibility="public"
  13843. deprecated="not deprecated">
  13844. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13845. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13846. <param name="inPos" type="long"/>
  13847. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13848. <param name="sumsPos" type="long"/>
  13849. <doc>
  13850. <![CDATA[Moves files to a bad file directory on the same device, so that their
  13851. storage will not be reused.]]>
  13852. </doc>
  13853. </method>
  13854. <method name="supportsSymlinks" return="boolean"
  13855. abstract="false" native="false" synchronized="false"
  13856. static="false" final="false" visibility="public"
  13857. deprecated="not deprecated">
  13858. </method>
  13859. <method name="createSymlink"
  13860. abstract="false" native="false" synchronized="false"
  13861. static="false" final="false" visibility="public"
  13862. deprecated="not deprecated">
  13863. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13864. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13865. <param name="createParent" type="boolean"/>
  13866. <exception name="IOException" type="java.io.IOException"/>
  13867. </method>
  13868. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13869. abstract="false" native="false" synchronized="false"
  13870. static="false" final="false" visibility="public"
  13871. deprecated="not deprecated">
  13872. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13873. <exception name="IOException" type="java.io.IOException"/>
  13874. </method>
  13875. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13876. abstract="false" native="false" synchronized="false"
  13877. static="false" final="false" visibility="public"
  13878. deprecated="not deprecated">
  13879. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13880. <exception name="IOException" type="java.io.IOException"/>
  13881. </method>
  13882. <doc>
  13883. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  13884. </doc>
  13885. </class>
  13886. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  13887. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  13888. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  13889. abstract="false"
  13890. static="false" final="false" visibility="public"
  13891. deprecated="not deprecated">
  13892. <constructor name="LocatedFileStatus"
  13893. static="false" final="false" visibility="public"
  13894. deprecated="not deprecated">
  13895. </constructor>
  13896. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  13897. static="false" final="false" visibility="public"
  13898. deprecated="not deprecated">
  13899. <exception name="IOException" type="java.io.IOException"/>
  13900. <doc>
  13901. <![CDATA[Constructor
  13902. @param stat a file status
  13903. @param locations a file's block locations]]>
  13904. </doc>
  13905. </constructor>
  13906. <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[]"
  13907. static="false" final="false" visibility="public"
  13908. deprecated="not deprecated">
  13909. <doc>
  13910. <![CDATA[Constructor
  13911. @param length a file's length
  13912. @param isdir if the path is a directory
  13913. @param block_replication the file's replication factor
  13914. @param blocksize a file's block size
  13915. @param modification_time a file's modification time
  13916. @param access_time a file's access time
  13917. @param permission a file's permission
  13918. @param owner a file's owner
  13919. @param group a file's group
  13920. @param symlink symlink if the path is a symbolic link
  13921. @param path the path's qualified name
  13922. @param locations a file's block locations]]>
  13923. </doc>
  13924. </constructor>
  13925. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13926. abstract="false" native="false" synchronized="false"
  13927. static="false" final="false" visibility="public"
  13928. deprecated="not deprecated">
  13929. <doc>
  13930. <![CDATA[Get the file's block locations
  13931. @return the file's block locations]]>
  13932. </doc>
  13933. </method>
  13934. <method name="compareTo" return="int"
  13935. abstract="false" native="false" synchronized="false"
  13936. static="false" final="false" visibility="public"
  13937. deprecated="not deprecated">
  13938. <param name="o" type="java.lang.Object"/>
  13939. <doc>
  13940. <![CDATA[Compare this object to another object
  13941. @param o the object to be compared.
  13942. @return a negative integer, zero, or a positive integer as this object
  13943. is less than, equal to, or greater than the specified object.
  13944. @throws ClassCastException if the specified object's is not of
  13945. type FileStatus]]>
  13946. </doc>
  13947. </method>
  13948. <method name="equals" return="boolean"
  13949. abstract="false" native="false" synchronized="false"
  13950. static="false" final="false" visibility="public"
  13951. deprecated="not deprecated">
  13952. <param name="o" type="java.lang.Object"/>
  13953. <doc>
  13954. <![CDATA[Compare if this object is equal to another object
  13955. @param o the object to be compared.
  13956. @return true if two file status has the same path name; false if not.]]>
  13957. </doc>
  13958. </method>
  13959. <method name="hashCode" return="int"
  13960. abstract="false" native="false" synchronized="false"
  13961. static="false" final="false" visibility="public"
  13962. deprecated="not deprecated">
  13963. <doc>
  13964. <![CDATA[Returns a hash code value for the object, which is defined as
  13965. the hash code of the path name.
  13966. @return a hash code value for the path name.]]>
  13967. </doc>
  13968. </method>
  13969. <doc>
  13970. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  13971. </doc>
  13972. </class>
  13973. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  13974. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32CastagnoliFileChecksum -->
  13975. <class name="MD5MD5CRC32CastagnoliFileChecksum" extends="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  13976. abstract="false"
  13977. static="false" final="false" visibility="public"
  13978. deprecated="not deprecated">
  13979. <constructor name="MD5MD5CRC32CastagnoliFileChecksum"
  13980. static="false" final="false" visibility="public"
  13981. deprecated="not deprecated">
  13982. <doc>
  13983. <![CDATA[Same as this(0, 0, null)]]>
  13984. </doc>
  13985. </constructor>
  13986. <constructor name="MD5MD5CRC32CastagnoliFileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  13987. static="false" final="false" visibility="public"
  13988. deprecated="not deprecated">
  13989. <doc>
  13990. <![CDATA[Create a MD5FileChecksum]]>
  13991. </doc>
  13992. </constructor>
  13993. <method name="getCrcType" return="org.apache.hadoop.util.DataChecksum.Type"
  13994. abstract="false" native="false" synchronized="false"
  13995. static="false" final="false" visibility="public"
  13996. deprecated="not deprecated">
  13997. </method>
  13998. <doc>
  13999. <![CDATA[For CRC32 with the Castagnoli polynomial]]>
  14000. </doc>
  14001. </class>
  14002. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32CastagnoliFileChecksum -->
  14003. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32GzipFileChecksum -->
  14004. <class name="MD5MD5CRC32GzipFileChecksum" extends="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  14005. abstract="false"
  14006. static="false" final="false" visibility="public"
  14007. deprecated="not deprecated">
  14008. <constructor name="MD5MD5CRC32GzipFileChecksum"
  14009. static="false" final="false" visibility="public"
  14010. deprecated="not deprecated">
  14011. <doc>
  14012. <![CDATA[Same as this(0, 0, null)]]>
  14013. </doc>
  14014. </constructor>
  14015. <constructor name="MD5MD5CRC32GzipFileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  14016. static="false" final="false" visibility="public"
  14017. deprecated="not deprecated">
  14018. <doc>
  14019. <![CDATA[Create a MD5FileChecksum]]>
  14020. </doc>
  14021. </constructor>
  14022. <method name="getCrcType" return="org.apache.hadoop.util.DataChecksum.Type"
  14023. abstract="false" native="false" synchronized="false"
  14024. static="false" final="false" visibility="public"
  14025. deprecated="not deprecated">
  14026. </method>
  14027. <doc>
  14028. <![CDATA[For CRC32 with the Gzip polynomial]]>
  14029. </doc>
  14030. </class>
  14031. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32GzipFileChecksum -->
  14032. <!-- start class org.apache.hadoop.fs.Options -->
  14033. <class name="Options" extends="java.lang.Object"
  14034. abstract="false"
  14035. static="false" final="true" visibility="public"
  14036. deprecated="not deprecated">
  14037. <constructor name="Options"
  14038. static="false" final="false" visibility="public"
  14039. deprecated="not deprecated">
  14040. </constructor>
  14041. <doc>
  14042. <![CDATA[This class contains options related to file system operations.]]>
  14043. </doc>
  14044. </class>
  14045. <!-- end class org.apache.hadoop.fs.Options -->
  14046. <!-- start class org.apache.hadoop.fs.Options.ChecksumOpt -->
  14047. <class name="Options.ChecksumOpt" extends="java.lang.Object"
  14048. abstract="false"
  14049. static="true" final="false" visibility="public"
  14050. deprecated="not deprecated">
  14051. <constructor name="ChecksumOpt"
  14052. static="false" final="false" visibility="public"
  14053. deprecated="not deprecated">
  14054. <doc>
  14055. <![CDATA[Create a uninitialized one]]>
  14056. </doc>
  14057. </constructor>
  14058. <constructor name="ChecksumOpt" type="org.apache.hadoop.util.DataChecksum.Type, int"
  14059. static="false" final="false" visibility="public"
  14060. deprecated="not deprecated">
  14061. <doc>
  14062. <![CDATA[Normal ctor
  14063. @param type checksum type
  14064. @param size bytes per checksum]]>
  14065. </doc>
  14066. </constructor>
  14067. <method name="getBytesPerChecksum" return="int"
  14068. abstract="false" native="false" synchronized="false"
  14069. static="false" final="false" visibility="public"
  14070. deprecated="not deprecated">
  14071. </method>
  14072. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  14073. abstract="false" native="false" synchronized="false"
  14074. static="false" final="false" visibility="public"
  14075. deprecated="not deprecated">
  14076. </method>
  14077. <method name="toString" return="java.lang.String"
  14078. abstract="false" native="false" synchronized="false"
  14079. static="false" final="false" visibility="public"
  14080. deprecated="not deprecated">
  14081. </method>
  14082. <method name="createDisabled" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14083. abstract="false" native="false" synchronized="false"
  14084. static="true" final="false" visibility="public"
  14085. deprecated="not deprecated">
  14086. <doc>
  14087. <![CDATA[Create a ChecksumOpts that disables checksum]]>
  14088. </doc>
  14089. </method>
  14090. <method name="processChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14091. abstract="false" native="false" synchronized="false"
  14092. static="true" final="false" visibility="public"
  14093. deprecated="not deprecated">
  14094. <param name="defaultOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14095. <param name="userOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14096. <param name="userBytesPerChecksum" type="int"/>
  14097. <doc>
  14098. <![CDATA[A helper method for processing user input and default value to
  14099. create a combined checksum option. This is a bit complicated because
  14100. bytesPerChecksum is kept for backward compatibility.
  14101. @param defaultOpt Default checksum option
  14102. @param userOpt User-specified checksum option. Ignored if null.
  14103. @param userBytesPerChecksum User-specified bytesPerChecksum
  14104. Ignored if < 0.]]>
  14105. </doc>
  14106. </method>
  14107. <method name="processChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14108. abstract="false" native="false" synchronized="false"
  14109. static="true" final="false" visibility="public"
  14110. deprecated="not deprecated">
  14111. <param name="defaultOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14112. <param name="userOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14113. <doc>
  14114. <![CDATA[A helper method for processing user input and default value to
  14115. create a combined checksum option.
  14116. @param defaultOpt Default checksum option
  14117. @param userOpt User-specified checksum option]]>
  14118. </doc>
  14119. </method>
  14120. <doc>
  14121. <![CDATA[This is used in FileSystem and FileContext to specify checksum options.]]>
  14122. </doc>
  14123. </class>
  14124. <!-- end class org.apache.hadoop.fs.Options.ChecksumOpt -->
  14125. <!-- start class org.apache.hadoop.fs.Options.CreateOpts -->
  14126. <class name="Options.CreateOpts" extends="java.lang.Object"
  14127. abstract="false"
  14128. static="true" final="false" visibility="public"
  14129. deprecated="not deprecated">
  14130. <method name="blockSize" return="org.apache.hadoop.fs.Options.CreateOpts.BlockSize"
  14131. abstract="false" native="false" synchronized="false"
  14132. static="true" final="false" visibility="public"
  14133. deprecated="not deprecated">
  14134. <param name="bs" type="long"/>
  14135. </method>
  14136. <method name="bufferSize" return="org.apache.hadoop.fs.Options.CreateOpts.BufferSize"
  14137. abstract="false" native="false" synchronized="false"
  14138. static="true" final="false" visibility="public"
  14139. deprecated="not deprecated">
  14140. <param name="bs" type="int"/>
  14141. </method>
  14142. <method name="repFac" return="org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor"
  14143. abstract="false" native="false" synchronized="false"
  14144. static="true" final="false" visibility="public"
  14145. deprecated="not deprecated">
  14146. <param name="rf" type="short"/>
  14147. </method>
  14148. <method name="bytesPerChecksum" return="org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum"
  14149. abstract="false" native="false" synchronized="false"
  14150. static="true" final="false" visibility="public"
  14151. deprecated="not deprecated">
  14152. <param name="crc" type="short"/>
  14153. </method>
  14154. <method name="checksumParam" return="org.apache.hadoop.fs.Options.CreateOpts.ChecksumParam"
  14155. abstract="false" native="false" synchronized="false"
  14156. static="true" final="false" visibility="public"
  14157. deprecated="not deprecated">
  14158. <param name="csumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  14159. </method>
  14160. <method name="perms" return="org.apache.hadoop.fs.Options.CreateOpts.Perms"
  14161. abstract="false" native="false" synchronized="false"
  14162. static="true" final="false" visibility="public"
  14163. deprecated="not deprecated">
  14164. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14165. </method>
  14166. <method name="createParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  14167. abstract="false" native="false" synchronized="false"
  14168. static="true" final="false" visibility="public"
  14169. deprecated="not deprecated">
  14170. </method>
  14171. <method name="donotCreateParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  14172. abstract="false" native="false" synchronized="false"
  14173. static="true" final="false" visibility="public"
  14174. deprecated="not deprecated">
  14175. </method>
  14176. <doc>
  14177. <![CDATA[Class to support the varargs for create() options.]]>
  14178. </doc>
  14179. </class>
  14180. <!-- end class org.apache.hadoop.fs.Options.CreateOpts -->
  14181. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  14182. <class name="Options.CreateOpts.BlockSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14183. abstract="false"
  14184. static="true" final="false" visibility="public"
  14185. deprecated="not deprecated">
  14186. <constructor name="BlockSize" type="long"
  14187. static="false" final="false" visibility="protected"
  14188. deprecated="not deprecated">
  14189. </constructor>
  14190. <method name="getValue" return="long"
  14191. abstract="false" native="false" synchronized="false"
  14192. static="false" final="false" visibility="public"
  14193. deprecated="not deprecated">
  14194. </method>
  14195. </class>
  14196. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  14197. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  14198. <class name="Options.CreateOpts.BufferSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14199. abstract="false"
  14200. static="true" final="false" visibility="public"
  14201. deprecated="not deprecated">
  14202. <constructor name="BufferSize" type="int"
  14203. static="false" final="false" visibility="protected"
  14204. deprecated="not deprecated">
  14205. </constructor>
  14206. <method name="getValue" return="int"
  14207. abstract="false" native="false" synchronized="false"
  14208. static="false" final="false" visibility="public"
  14209. deprecated="not deprecated">
  14210. </method>
  14211. </class>
  14212. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  14213. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  14214. <class name="Options.CreateOpts.BytesPerChecksum" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14215. abstract="false"
  14216. static="true" final="false" visibility="public"
  14217. deprecated="not deprecated">
  14218. <constructor name="BytesPerChecksum" type="short"
  14219. static="false" final="false" visibility="protected"
  14220. deprecated="not deprecated">
  14221. </constructor>
  14222. <method name="getValue" return="int"
  14223. abstract="false" native="false" synchronized="false"
  14224. static="false" final="false" visibility="public"
  14225. deprecated="not deprecated">
  14226. </method>
  14227. <doc>
  14228. <![CDATA[This is not needed if ChecksumParam is specified.]]>
  14229. </doc>
  14230. </class>
  14231. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  14232. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.ChecksumParam -->
  14233. <class name="Options.CreateOpts.ChecksumParam" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14234. abstract="false"
  14235. static="true" final="false" visibility="public"
  14236. deprecated="not deprecated">
  14237. <constructor name="ChecksumParam" type="org.apache.hadoop.fs.Options.ChecksumOpt"
  14238. static="false" final="false" visibility="protected"
  14239. deprecated="not deprecated">
  14240. </constructor>
  14241. <method name="getValue" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  14242. abstract="false" native="false" synchronized="false"
  14243. static="false" final="false" visibility="public"
  14244. deprecated="not deprecated">
  14245. </method>
  14246. </class>
  14247. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.ChecksumParam -->
  14248. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  14249. <class name="Options.CreateOpts.CreateParent" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14250. abstract="false"
  14251. static="true" final="false" visibility="public"
  14252. deprecated="not deprecated">
  14253. <constructor name="CreateParent" type="boolean"
  14254. static="false" final="false" visibility="protected"
  14255. deprecated="not deprecated">
  14256. </constructor>
  14257. <method name="getValue" return="boolean"
  14258. abstract="false" native="false" synchronized="false"
  14259. static="false" final="false" visibility="public"
  14260. deprecated="not deprecated">
  14261. </method>
  14262. </class>
  14263. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  14264. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  14265. <class name="Options.CreateOpts.Perms" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14266. abstract="false"
  14267. static="true" final="false" visibility="public"
  14268. deprecated="not deprecated">
  14269. <constructor name="Perms" type="org.apache.hadoop.fs.permission.FsPermission"
  14270. static="false" final="false" visibility="protected"
  14271. deprecated="not deprecated">
  14272. </constructor>
  14273. <method name="getValue" return="org.apache.hadoop.fs.permission.FsPermission"
  14274. abstract="false" native="false" synchronized="false"
  14275. static="false" final="false" visibility="public"
  14276. deprecated="not deprecated">
  14277. </method>
  14278. </class>
  14279. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  14280. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  14281. <class name="Options.CreateOpts.Progress" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14282. abstract="false"
  14283. static="true" final="false" visibility="public"
  14284. deprecated="not deprecated">
  14285. <constructor name="Progress" type="org.apache.hadoop.util.Progressable"
  14286. static="false" final="false" visibility="protected"
  14287. deprecated="not deprecated">
  14288. </constructor>
  14289. <method name="getValue" return="org.apache.hadoop.util.Progressable"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="false" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. </method>
  14294. </class>
  14295. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  14296. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  14297. <class name="Options.CreateOpts.ReplicationFactor" extends="org.apache.hadoop.fs.Options.CreateOpts"
  14298. abstract="false"
  14299. static="true" final="false" visibility="public"
  14300. deprecated="not deprecated">
  14301. <constructor name="ReplicationFactor" type="short"
  14302. static="false" final="false" visibility="protected"
  14303. deprecated="not deprecated">
  14304. </constructor>
  14305. <method name="getValue" return="short"
  14306. abstract="false" native="false" synchronized="false"
  14307. static="false" final="false" visibility="public"
  14308. deprecated="not deprecated">
  14309. </method>
  14310. </class>
  14311. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  14312. <!-- start class org.apache.hadoop.fs.Options.Rename -->
  14313. <class name="Options.Rename" extends="java.lang.Enum"
  14314. abstract="false"
  14315. static="true" final="true" visibility="public"
  14316. deprecated="not deprecated">
  14317. <method name="values" return="org.apache.hadoop.fs.Options.Rename[]"
  14318. abstract="false" native="false" synchronized="false"
  14319. static="true" final="false" visibility="public"
  14320. deprecated="not deprecated">
  14321. </method>
  14322. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  14323. abstract="false" native="false" synchronized="false"
  14324. static="true" final="false" visibility="public"
  14325. deprecated="not deprecated">
  14326. <param name="name" type="java.lang.String"/>
  14327. </method>
  14328. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  14329. abstract="false" native="false" synchronized="false"
  14330. static="true" final="false" visibility="public"
  14331. deprecated="not deprecated">
  14332. <param name="code" type="byte"/>
  14333. </method>
  14334. <method name="value" return="byte"
  14335. abstract="false" native="false" synchronized="false"
  14336. static="false" final="false" visibility="public"
  14337. deprecated="not deprecated">
  14338. </method>
  14339. <doc>
  14340. <![CDATA[Enum to support the varargs for rename() options]]>
  14341. </doc>
  14342. </class>
  14343. <!-- end class org.apache.hadoop.fs.Options.Rename -->
  14344. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14345. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  14346. abstract="false"
  14347. static="false" final="false" visibility="public"
  14348. deprecated="not deprecated">
  14349. <constructor name="ParentNotDirectoryException"
  14350. static="false" final="false" visibility="public"
  14351. deprecated="not deprecated">
  14352. </constructor>
  14353. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  14354. static="false" final="false" visibility="public"
  14355. deprecated="not deprecated">
  14356. </constructor>
  14357. <doc>
  14358. <![CDATA[Indicates that the parent of specified Path is not a directory
  14359. as expected.]]>
  14360. </doc>
  14361. </class>
  14362. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  14363. <!-- start class org.apache.hadoop.fs.Path -->
  14364. <class name="Path" extends="java.lang.Object"
  14365. abstract="false"
  14366. static="false" final="false" visibility="public"
  14367. deprecated="not deprecated">
  14368. <implements name="java.lang.Comparable"/>
  14369. <constructor name="Path" type="java.lang.String, java.lang.String"
  14370. static="false" final="false" visibility="public"
  14371. deprecated="not deprecated">
  14372. <doc>
  14373. <![CDATA[Resolve a child path against a parent path.]]>
  14374. </doc>
  14375. </constructor>
  14376. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  14377. static="false" final="false" visibility="public"
  14378. deprecated="not deprecated">
  14379. <doc>
  14380. <![CDATA[Resolve a child path against a parent path.]]>
  14381. </doc>
  14382. </constructor>
  14383. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  14384. static="false" final="false" visibility="public"
  14385. deprecated="not deprecated">
  14386. <doc>
  14387. <![CDATA[Resolve a child path against a parent path.]]>
  14388. </doc>
  14389. </constructor>
  14390. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  14391. static="false" final="false" visibility="public"
  14392. deprecated="not deprecated">
  14393. <doc>
  14394. <![CDATA[Resolve a child path against a parent path.]]>
  14395. </doc>
  14396. </constructor>
  14397. <constructor name="Path" type="java.lang.String"
  14398. static="false" final="false" visibility="public"
  14399. deprecated="not deprecated">
  14400. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14401. <doc>
  14402. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  14403. unescaped elements and some additional normalization.]]>
  14404. </doc>
  14405. </constructor>
  14406. <constructor name="Path" type="java.net.URI"
  14407. static="false" final="false" visibility="public"
  14408. deprecated="not deprecated">
  14409. <doc>
  14410. <![CDATA[Construct a path from a URI]]>
  14411. </doc>
  14412. </constructor>
  14413. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  14414. static="false" final="false" visibility="public"
  14415. deprecated="not deprecated">
  14416. <doc>
  14417. <![CDATA[Construct a Path from components.]]>
  14418. </doc>
  14419. </constructor>
  14420. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  14421. abstract="false" native="false" synchronized="false"
  14422. static="true" final="false" visibility="public"
  14423. deprecated="not deprecated">
  14424. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14425. </method>
  14426. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  14427. abstract="false" native="false" synchronized="false"
  14428. static="true" final="false" visibility="public"
  14429. deprecated="not deprecated">
  14430. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  14431. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  14432. <doc>
  14433. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  14434. The returned path has the scheme and authority of the first path. On
  14435. Windows, the drive specification in the second path is discarded.
  14436. @param path1 Path first path
  14437. @param path2 Path second path, to be appended relative to path1
  14438. @return Path merged path]]>
  14439. </doc>
  14440. </method>
  14441. <method name="isWindowsAbsolutePath" return="boolean"
  14442. abstract="false" native="false" synchronized="false"
  14443. static="true" final="false" visibility="public"
  14444. deprecated="not deprecated">
  14445. <param name="pathString" type="java.lang.String"/>
  14446. <param name="slashed" type="boolean"/>
  14447. <doc>
  14448. <![CDATA[Determine whether a given path string represents an absolute path on
  14449. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  14450. @param pathString Supplies the path string to evaluate.
  14451. @param slashed true if the given path is prefixed with "/".
  14452. @return true if the supplied path looks like an absolute path with a Windows
  14453. drive-specifier.]]>
  14454. </doc>
  14455. </method>
  14456. <method name="toUri" return="java.net.URI"
  14457. abstract="false" native="false" synchronized="false"
  14458. static="false" final="false" visibility="public"
  14459. deprecated="not deprecated">
  14460. <doc>
  14461. <![CDATA[Convert this to a URI.]]>
  14462. </doc>
  14463. </method>
  14464. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  14465. abstract="false" native="false" synchronized="false"
  14466. static="false" final="false" visibility="public"
  14467. deprecated="not deprecated">
  14468. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14469. <exception name="IOException" type="java.io.IOException"/>
  14470. <doc>
  14471. <![CDATA[Return the FileSystem that owns this Path.]]>
  14472. </doc>
  14473. </method>
  14474. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  14475. abstract="false" native="false" synchronized="false"
  14476. static="false" final="false" visibility="public"
  14477. deprecated="not deprecated">
  14478. <doc>
  14479. <![CDATA[Is an absolute path (ie a slash relative path part)
  14480. AND a scheme is null AND authority is null.]]>
  14481. </doc>
  14482. </method>
  14483. <method name="isUriPathAbsolute" return="boolean"
  14484. abstract="false" native="false" synchronized="false"
  14485. static="false" final="false" visibility="public"
  14486. deprecated="not deprecated">
  14487. <doc>
  14488. <![CDATA[True if the path component (i.e. directory) of this URI is absolute.]]>
  14489. </doc>
  14490. </method>
  14491. <method name="isAbsolute" return="boolean"
  14492. abstract="false" native="false" synchronized="false"
  14493. static="false" final="false" visibility="public"
  14494. deprecated="not deprecated">
  14495. <doc>
  14496. <![CDATA[There is some ambiguity here. An absolute path is a slash
  14497. relative name without a scheme or an authority.
  14498. So either this method was incorrectly named or its
  14499. implementation is incorrect. This method returns true
  14500. even if there is a scheme and authority.]]>
  14501. </doc>
  14502. </method>
  14503. <method name="isRoot" return="boolean"
  14504. abstract="false" native="false" synchronized="false"
  14505. static="false" final="false" visibility="public"
  14506. deprecated="not deprecated">
  14507. <doc>
  14508. <![CDATA[@return true if and only if this path represents the root of a file system]]>
  14509. </doc>
  14510. </method>
  14511. <method name="getName" return="java.lang.String"
  14512. abstract="false" native="false" synchronized="false"
  14513. static="false" final="false" visibility="public"
  14514. deprecated="not deprecated">
  14515. <doc>
  14516. <![CDATA[Returns the final component of this path.]]>
  14517. </doc>
  14518. </method>
  14519. <method name="getParent" return="org.apache.hadoop.fs.Path"
  14520. abstract="false" native="false" synchronized="false"
  14521. static="false" final="false" visibility="public"
  14522. deprecated="not deprecated">
  14523. <doc>
  14524. <![CDATA[Returns the parent of a path or null if at root.]]>
  14525. </doc>
  14526. </method>
  14527. <method name="suffix" return="org.apache.hadoop.fs.Path"
  14528. abstract="false" native="false" synchronized="false"
  14529. static="false" final="false" visibility="public"
  14530. deprecated="not deprecated">
  14531. <param name="suffix" type="java.lang.String"/>
  14532. <doc>
  14533. <![CDATA[Adds a suffix to the final name in the path.]]>
  14534. </doc>
  14535. </method>
  14536. <method name="toString" return="java.lang.String"
  14537. abstract="false" native="false" synchronized="false"
  14538. static="false" final="false" visibility="public"
  14539. deprecated="not deprecated">
  14540. </method>
  14541. <method name="equals" return="boolean"
  14542. abstract="false" native="false" synchronized="false"
  14543. static="false" final="false" visibility="public"
  14544. deprecated="not deprecated">
  14545. <param name="o" type="java.lang.Object"/>
  14546. </method>
  14547. <method name="hashCode" return="int"
  14548. abstract="false" native="false" synchronized="false"
  14549. static="false" final="false" visibility="public"
  14550. deprecated="not deprecated">
  14551. </method>
  14552. <method name="compareTo" return="int"
  14553. abstract="false" native="false" synchronized="false"
  14554. static="false" final="false" visibility="public"
  14555. deprecated="not deprecated">
  14556. <param name="o" type="java.lang.Object"/>
  14557. </method>
  14558. <method name="depth" return="int"
  14559. abstract="false" native="false" synchronized="false"
  14560. static="false" final="false" visibility="public"
  14561. deprecated="not deprecated">
  14562. <doc>
  14563. <![CDATA[Return the number of elements in this path.]]>
  14564. </doc>
  14565. </method>
  14566. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  14567. abstract="false" native="false" synchronized="false"
  14568. static="false" final="false" visibility="public"
  14569. deprecated="not deprecated">
  14570. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14571. <doc>
  14572. <![CDATA[Returns a qualified path object.
  14573. Deprecated - use {@link #makeQualified(URI, Path)}]]>
  14574. </doc>
  14575. </method>
  14576. <field name="SEPARATOR" type="java.lang.String"
  14577. transient="false" volatile="false"
  14578. static="true" final="true" visibility="public"
  14579. deprecated="not deprecated">
  14580. <doc>
  14581. <![CDATA[The directory separator, a slash.]]>
  14582. </doc>
  14583. </field>
  14584. <field name="SEPARATOR_CHAR" type="char"
  14585. transient="false" volatile="false"
  14586. static="true" final="true" visibility="public"
  14587. deprecated="not deprecated">
  14588. </field>
  14589. <field name="CUR_DIR" type="java.lang.String"
  14590. transient="false" volatile="false"
  14591. static="true" final="true" visibility="public"
  14592. deprecated="not deprecated">
  14593. </field>
  14594. <field name="WINDOWS" type="boolean"
  14595. transient="false" volatile="false"
  14596. static="true" final="true" visibility="public"
  14597. deprecated="not deprecated">
  14598. </field>
  14599. <doc>
  14600. <![CDATA[Names a file or directory in a {@link FileSystem}.
  14601. Path strings use slash as the directory separator. A path string is
  14602. absolute if it begins with a slash.]]>
  14603. </doc>
  14604. </class>
  14605. <!-- end class org.apache.hadoop.fs.Path -->
  14606. <!-- start class org.apache.hadoop.fs.PathAccessDeniedException -->
  14607. <class name="PathAccessDeniedException" extends="org.apache.hadoop.fs.PathIOException"
  14608. abstract="false"
  14609. static="false" final="false" visibility="public"
  14610. deprecated="not deprecated">
  14611. <constructor name="PathAccessDeniedException" type="java.lang.String"
  14612. static="false" final="false" visibility="public"
  14613. deprecated="not deprecated">
  14614. <doc>
  14615. <![CDATA[@param path for the exception]]>
  14616. </doc>
  14617. </constructor>
  14618. <doc>
  14619. <![CDATA[EACCES]]>
  14620. </doc>
  14621. </class>
  14622. <!-- end class org.apache.hadoop.fs.PathAccessDeniedException -->
  14623. <!-- start class org.apache.hadoop.fs.PathExistsException -->
  14624. <class name="PathExistsException" extends="org.apache.hadoop.fs.PathIOException"
  14625. abstract="false"
  14626. static="false" final="false" visibility="public"
  14627. deprecated="not deprecated">
  14628. <constructor name="PathExistsException" type="java.lang.String"
  14629. static="false" final="false" visibility="public"
  14630. deprecated="not deprecated">
  14631. <doc>
  14632. <![CDATA[@param path for the exception]]>
  14633. </doc>
  14634. </constructor>
  14635. <constructor name="PathExistsException" type="java.lang.String, java.lang.String"
  14636. static="false" final="false" visibility="protected"
  14637. deprecated="not deprecated">
  14638. </constructor>
  14639. <doc>
  14640. <![CDATA[Exception corresponding to File Exists - EEXISTS]]>
  14641. </doc>
  14642. </class>
  14643. <!-- end class org.apache.hadoop.fs.PathExistsException -->
  14644. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  14645. <interface name="PathFilter" abstract="true"
  14646. static="false" final="false" visibility="public"
  14647. deprecated="not deprecated">
  14648. <method name="accept" return="boolean"
  14649. abstract="true" native="false" synchronized="false"
  14650. static="false" final="false" visibility="public"
  14651. deprecated="not deprecated">
  14652. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14653. <doc>
  14654. <![CDATA[Tests whether or not the specified abstract pathname should be
  14655. included in a pathname list.
  14656. @param path The abstract pathname to be tested
  14657. @return <code>true</code> if and only if <code>pathname</code>
  14658. should be included]]>
  14659. </doc>
  14660. </method>
  14661. </interface>
  14662. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  14663. <!-- start class org.apache.hadoop.fs.PathIOException -->
  14664. <class name="PathIOException" extends="java.io.IOException"
  14665. abstract="false"
  14666. static="false" final="false" visibility="public"
  14667. deprecated="not deprecated">
  14668. <constructor name="PathIOException" type="java.lang.String"
  14669. static="false" final="false" visibility="public"
  14670. deprecated="not deprecated">
  14671. <doc>
  14672. <![CDATA[Constructor a generic I/O error exception
  14673. @param path for the exception]]>
  14674. </doc>
  14675. </constructor>
  14676. <constructor name="PathIOException" type="java.lang.String, java.lang.Throwable"
  14677. static="false" final="false" visibility="public"
  14678. deprecated="not deprecated">
  14679. <doc>
  14680. <![CDATA[Appends the text of a Throwable to the default error message
  14681. @param path for the exception
  14682. @param cause a throwable to extract the error message]]>
  14683. </doc>
  14684. </constructor>
  14685. <constructor name="PathIOException" type="java.lang.String, java.lang.String"
  14686. static="false" final="false" visibility="public"
  14687. deprecated="not deprecated">
  14688. <doc>
  14689. <![CDATA[Avoid using this method. Use a subclass of PathIOException if
  14690. possible.
  14691. @param path for the exception
  14692. @param error custom string to use an the error text]]>
  14693. </doc>
  14694. </constructor>
  14695. <constructor name="PathIOException" type="java.lang.String, java.lang.String, java.lang.Throwable"
  14696. static="false" final="false" visibility="protected"
  14697. deprecated="not deprecated">
  14698. </constructor>
  14699. <method name="getMessage" return="java.lang.String"
  14700. abstract="false" native="false" synchronized="false"
  14701. static="false" final="false" visibility="public"
  14702. deprecated="not deprecated">
  14703. <doc>
  14704. <![CDATA[Format:
  14705. cmd: {operation} `path' {to `target'}: error string]]>
  14706. </doc>
  14707. </method>
  14708. <method name="getPath" return="org.apache.hadoop.fs.Path"
  14709. abstract="false" native="false" synchronized="false"
  14710. static="false" final="false" visibility="public"
  14711. deprecated="not deprecated">
  14712. <doc>
  14713. <![CDATA[@return Path that generated the exception]]>
  14714. </doc>
  14715. </method>
  14716. <method name="getTargetPath" return="org.apache.hadoop.fs.Path"
  14717. abstract="false" native="false" synchronized="false"
  14718. static="false" final="false" visibility="public"
  14719. deprecated="not deprecated">
  14720. <doc>
  14721. <![CDATA[@return Path if the operation involved copying or moving, else null]]>
  14722. </doc>
  14723. </method>
  14724. <method name="setOperation"
  14725. abstract="false" native="false" synchronized="false"
  14726. static="false" final="false" visibility="public"
  14727. deprecated="not deprecated">
  14728. <param name="operation" type="java.lang.String"/>
  14729. <doc>
  14730. <![CDATA[Optional operation that will preface the path
  14731. @param operation a string]]>
  14732. </doc>
  14733. </method>
  14734. <method name="setTargetPath"
  14735. abstract="false" native="false" synchronized="false"
  14736. static="false" final="false" visibility="public"
  14737. deprecated="not deprecated">
  14738. <param name="targetPath" type="java.lang.String"/>
  14739. <doc>
  14740. <![CDATA[Optional path if the exception involved two paths, ex. a copy operation
  14741. @param targetPath the of the operation]]>
  14742. </doc>
  14743. </method>
  14744. <doc>
  14745. <![CDATA[Exceptions based on standard posix/linux style exceptions for path related
  14746. errors. Returns an exception with the format "path: standard error string".
  14747. This exception corresponds to Error Input/ouput(EIO)]]>
  14748. </doc>
  14749. </class>
  14750. <!-- end class org.apache.hadoop.fs.PathIOException -->
  14751. <!-- start class org.apache.hadoop.fs.PathIsDirectoryException -->
  14752. <class name="PathIsDirectoryException" extends="org.apache.hadoop.fs.PathExistsException"
  14753. abstract="false"
  14754. static="false" final="false" visibility="public"
  14755. deprecated="not deprecated">
  14756. <constructor name="PathIsDirectoryException" type="java.lang.String"
  14757. static="false" final="false" visibility="public"
  14758. deprecated="not deprecated">
  14759. <doc>
  14760. <![CDATA[@param path for the exception]]>
  14761. </doc>
  14762. </constructor>
  14763. <doc>
  14764. <![CDATA[EISDIR]]>
  14765. </doc>
  14766. </class>
  14767. <!-- end class org.apache.hadoop.fs.PathIsDirectoryException -->
  14768. <!-- start class org.apache.hadoop.fs.PathIsNotDirectoryException -->
  14769. <class name="PathIsNotDirectoryException" extends="org.apache.hadoop.fs.PathExistsException"
  14770. abstract="false"
  14771. static="false" final="false" visibility="public"
  14772. deprecated="not deprecated">
  14773. <constructor name="PathIsNotDirectoryException" type="java.lang.String"
  14774. static="false" final="false" visibility="public"
  14775. deprecated="not deprecated">
  14776. <doc>
  14777. <![CDATA[@param path for the exception]]>
  14778. </doc>
  14779. </constructor>
  14780. <doc>
  14781. <![CDATA[ENOTDIR]]>
  14782. </doc>
  14783. </class>
  14784. <!-- end class org.apache.hadoop.fs.PathIsNotDirectoryException -->
  14785. <!-- start class org.apache.hadoop.fs.PathIsNotEmptyDirectoryException -->
  14786. <class name="PathIsNotEmptyDirectoryException" extends="org.apache.hadoop.fs.PathExistsException"
  14787. abstract="false"
  14788. static="false" final="false" visibility="public"
  14789. deprecated="not deprecated">
  14790. <constructor name="PathIsNotEmptyDirectoryException" type="java.lang.String"
  14791. static="false" final="false" visibility="public"
  14792. deprecated="not deprecated">
  14793. <doc>
  14794. <![CDATA[@param path for the exception]]>
  14795. </doc>
  14796. </constructor>
  14797. <doc>
  14798. <![CDATA[Generated by rm commands]]>
  14799. </doc>
  14800. </class>
  14801. <!-- end class org.apache.hadoop.fs.PathIsNotEmptyDirectoryException -->
  14802. <!-- start class org.apache.hadoop.fs.PathNotFoundException -->
  14803. <class name="PathNotFoundException" extends="org.apache.hadoop.fs.PathIOException"
  14804. abstract="false"
  14805. static="false" final="false" visibility="public"
  14806. deprecated="not deprecated">
  14807. <constructor name="PathNotFoundException" type="java.lang.String"
  14808. static="false" final="false" visibility="public"
  14809. deprecated="not deprecated">
  14810. <doc>
  14811. <![CDATA[@param path for the exception]]>
  14812. </doc>
  14813. </constructor>
  14814. <doc>
  14815. <![CDATA[Exception corresponding to Permission denied - ENOENT]]>
  14816. </doc>
  14817. </class>
  14818. <!-- end class org.apache.hadoop.fs.PathNotFoundException -->
  14819. <!-- start class org.apache.hadoop.fs.PathOperationException -->
  14820. <class name="PathOperationException" extends="org.apache.hadoop.fs.PathExistsException"
  14821. abstract="false"
  14822. static="false" final="false" visibility="public"
  14823. deprecated="not deprecated">
  14824. <constructor name="PathOperationException" type="java.lang.String"
  14825. static="false" final="false" visibility="public"
  14826. deprecated="not deprecated">
  14827. <doc>
  14828. <![CDATA[@param path for the exception]]>
  14829. </doc>
  14830. </constructor>
  14831. <doc>
  14832. <![CDATA[ENOTSUP]]>
  14833. </doc>
  14834. </class>
  14835. <!-- end class org.apache.hadoop.fs.PathOperationException -->
  14836. <!-- start class org.apache.hadoop.fs.PathPermissionException -->
  14837. <class name="PathPermissionException" extends="org.apache.hadoop.fs.PathIOException"
  14838. abstract="false"
  14839. static="false" final="false" visibility="public"
  14840. deprecated="not deprecated">
  14841. <constructor name="PathPermissionException" type="java.lang.String"
  14842. static="false" final="false" visibility="public"
  14843. deprecated="not deprecated">
  14844. <doc>
  14845. <![CDATA[@param path for the exception]]>
  14846. </doc>
  14847. </constructor>
  14848. <doc>
  14849. <![CDATA[Exception corresponding to Operation Not Permitted - EPERM]]>
  14850. </doc>
  14851. </class>
  14852. <!-- end class org.apache.hadoop.fs.PathPermissionException -->
  14853. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  14854. <interface name="PositionedReadable" abstract="true"
  14855. static="false" final="false" visibility="public"
  14856. deprecated="not deprecated">
  14857. <method name="read" return="int"
  14858. abstract="true" native="false" synchronized="false"
  14859. static="false" final="false" visibility="public"
  14860. deprecated="not deprecated">
  14861. <param name="position" type="long"/>
  14862. <param name="buffer" type="byte[]"/>
  14863. <param name="offset" type="int"/>
  14864. <param name="length" type="int"/>
  14865. <exception name="IOException" type="java.io.IOException"/>
  14866. <doc>
  14867. <![CDATA[Read upto the specified number of bytes, from a given
  14868. position within a file, and return the number of bytes read. This does not
  14869. change the current offset of a file, and is thread-safe.]]>
  14870. </doc>
  14871. </method>
  14872. <method name="readFully"
  14873. abstract="true" native="false" synchronized="false"
  14874. static="false" final="false" visibility="public"
  14875. deprecated="not deprecated">
  14876. <param name="position" type="long"/>
  14877. <param name="buffer" type="byte[]"/>
  14878. <param name="offset" type="int"/>
  14879. <param name="length" type="int"/>
  14880. <exception name="IOException" type="java.io.IOException"/>
  14881. <doc>
  14882. <![CDATA[Read the specified number of bytes, from a given
  14883. position within a file. This does not
  14884. change the current offset of a file, and is thread-safe.]]>
  14885. </doc>
  14886. </method>
  14887. <method name="readFully"
  14888. abstract="true" native="false" synchronized="false"
  14889. static="false" final="false" visibility="public"
  14890. deprecated="not deprecated">
  14891. <param name="position" type="long"/>
  14892. <param name="buffer" type="byte[]"/>
  14893. <exception name="IOException" type="java.io.IOException"/>
  14894. <doc>
  14895. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  14896. position within a file. This does not
  14897. change the current offset of a file, and is thread-safe.]]>
  14898. </doc>
  14899. </method>
  14900. <doc>
  14901. <![CDATA[Stream that permits positional reading.]]>
  14902. </doc>
  14903. </interface>
  14904. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  14905. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  14906. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14907. abstract="false"
  14908. static="false" final="false" visibility="public"
  14909. deprecated="not deprecated">
  14910. <constructor name="RawLocalFileSystem"
  14911. static="false" final="false" visibility="public"
  14912. deprecated="not deprecated">
  14913. </constructor>
  14914. <method name="useStatIfAvailable"
  14915. abstract="false" native="false" synchronized="false"
  14916. static="true" final="false" visibility="public"
  14917. deprecated="not deprecated">
  14918. </method>
  14919. <method name="pathToFile" return="java.io.File"
  14920. abstract="false" native="false" synchronized="false"
  14921. static="false" final="false" visibility="public"
  14922. deprecated="not deprecated">
  14923. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14924. <doc>
  14925. <![CDATA[Convert a path to a File.]]>
  14926. </doc>
  14927. </method>
  14928. <method name="getUri" return="java.net.URI"
  14929. abstract="false" native="false" synchronized="false"
  14930. static="false" final="false" visibility="public"
  14931. deprecated="not deprecated">
  14932. </method>
  14933. <method name="initialize"
  14934. abstract="false" native="false" synchronized="false"
  14935. static="false" final="false" visibility="public"
  14936. deprecated="not deprecated">
  14937. <param name="uri" type="java.net.URI"/>
  14938. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14939. <exception name="IOException" type="java.io.IOException"/>
  14940. </method>
  14941. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14942. abstract="false" native="false" synchronized="false"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14946. <param name="bufferSize" type="int"/>
  14947. <exception name="IOException" type="java.io.IOException"/>
  14948. </method>
  14949. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14950. abstract="false" native="false" synchronized="false"
  14951. static="false" final="false" visibility="public"
  14952. deprecated="not deprecated">
  14953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14954. <param name="bufferSize" type="int"/>
  14955. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14956. <exception name="IOException" type="java.io.IOException"/>
  14957. </method>
  14958. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14959. abstract="false" native="false" synchronized="false"
  14960. static="false" final="false" visibility="public"
  14961. deprecated="not deprecated">
  14962. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14963. <param name="overwrite" type="boolean"/>
  14964. <param name="bufferSize" type="int"/>
  14965. <param name="replication" type="short"/>
  14966. <param name="blockSize" type="long"/>
  14967. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14968. <exception name="IOException" type="java.io.IOException"/>
  14969. </method>
  14970. <method name="createOutputStream" return="java.io.OutputStream"
  14971. abstract="false" native="false" synchronized="false"
  14972. static="false" final="false" visibility="protected"
  14973. deprecated="not deprecated">
  14974. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14975. <param name="append" type="boolean"/>
  14976. <exception name="IOException" type="java.io.IOException"/>
  14977. </method>
  14978. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  14979. abstract="false" native="false" synchronized="false"
  14980. static="false" final="false" visibility="protected"
  14981. deprecated="not deprecated">
  14982. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14983. <param name="append" type="boolean"/>
  14984. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14985. <exception name="IOException" type="java.io.IOException"/>
  14986. </method>
  14987. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  14988. abstract="false" native="false" synchronized="false"
  14989. static="false" final="false" visibility="public"
  14990. deprecated="not deprecated">
  14991. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14992. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14993. <param name="flags" type="java.util.EnumSet"/>
  14994. <param name="bufferSize" type="int"/>
  14995. <param name="replication" type="short"/>
  14996. <param name="blockSize" type="long"/>
  14997. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14998. <exception name="IOException" type="java.io.IOException"/>
  14999. </method>
  15000. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15001. abstract="false" native="false" synchronized="false"
  15002. static="false" final="false" visibility="public"
  15003. deprecated="not deprecated">
  15004. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15005. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15006. <param name="overwrite" type="boolean"/>
  15007. <param name="bufferSize" type="int"/>
  15008. <param name="replication" type="short"/>
  15009. <param name="blockSize" type="long"/>
  15010. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15011. <exception name="IOException" type="java.io.IOException"/>
  15012. </method>
  15013. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  15014. abstract="false" native="false" synchronized="false"
  15015. static="false" final="false" visibility="public"
  15016. deprecated="not deprecated">
  15017. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15018. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15019. <param name="overwrite" type="boolean"/>
  15020. <param name="bufferSize" type="int"/>
  15021. <param name="replication" type="short"/>
  15022. <param name="blockSize" type="long"/>
  15023. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15024. <exception name="IOException" type="java.io.IOException"/>
  15025. </method>
  15026. <method name="rename" return="boolean"
  15027. abstract="false" native="false" synchronized="false"
  15028. static="false" final="false" visibility="public"
  15029. deprecated="not deprecated">
  15030. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15031. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15032. <exception name="IOException" type="java.io.IOException"/>
  15033. </method>
  15034. <method name="truncate" return="boolean"
  15035. abstract="false" native="false" synchronized="false"
  15036. static="false" final="false" visibility="public"
  15037. deprecated="not deprecated">
  15038. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15039. <param name="newLength" type="long"/>
  15040. <exception name="IOException" type="java.io.IOException"/>
  15041. </method>
  15042. <method name="delete" return="boolean"
  15043. abstract="false" native="false" synchronized="false"
  15044. static="false" final="false" visibility="public"
  15045. deprecated="not deprecated">
  15046. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15047. <param name="recursive" type="boolean"/>
  15048. <exception name="IOException" type="java.io.IOException"/>
  15049. <doc>
  15050. <![CDATA[Delete the given path to a file or directory.
  15051. @param p the path to delete
  15052. @param recursive to delete sub-directories
  15053. @return true if the file or directory and all its contents were deleted
  15054. @throws IOException if p is non-empty and recursive is false]]>
  15055. </doc>
  15056. </method>
  15057. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15058. abstract="false" native="false" synchronized="false"
  15059. static="false" final="false" visibility="public"
  15060. deprecated="not deprecated">
  15061. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15062. <exception name="IOException" type="java.io.IOException"/>
  15063. </method>
  15064. <method name="mkOneDir" return="boolean"
  15065. abstract="false" native="false" synchronized="false"
  15066. static="false" final="false" visibility="protected"
  15067. deprecated="not deprecated">
  15068. <param name="p2f" type="java.io.File"/>
  15069. <exception name="IOException" type="java.io.IOException"/>
  15070. </method>
  15071. <method name="mkOneDirWithMode" return="boolean"
  15072. abstract="false" native="false" synchronized="false"
  15073. static="false" final="false" visibility="protected"
  15074. deprecated="not deprecated">
  15075. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15076. <param name="p2f" type="java.io.File"/>
  15077. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15078. <exception name="IOException" type="java.io.IOException"/>
  15079. </method>
  15080. <method name="mkdirs" return="boolean"
  15081. abstract="false" native="false" synchronized="false"
  15082. static="false" final="false" visibility="public"
  15083. deprecated="not deprecated">
  15084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15085. <exception name="IOException" type="java.io.IOException"/>
  15086. <doc>
  15087. <![CDATA[Creates the specified directory hierarchy. Does not
  15088. treat existence as an error.]]>
  15089. </doc>
  15090. </method>
  15091. <method name="mkdirs" return="boolean"
  15092. abstract="false" native="false" synchronized="false"
  15093. static="false" final="false" visibility="public"
  15094. deprecated="not deprecated">
  15095. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15096. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15097. <exception name="IOException" type="java.io.IOException"/>
  15098. </method>
  15099. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15100. abstract="false" native="false" synchronized="false"
  15101. static="false" final="false" visibility="public"
  15102. deprecated="not deprecated">
  15103. </method>
  15104. <method name="setWorkingDirectory"
  15105. abstract="false" native="false" synchronized="false"
  15106. static="false" final="false" visibility="public"
  15107. deprecated="not deprecated">
  15108. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15109. <doc>
  15110. <![CDATA[Set the working directory to the given directory.]]>
  15111. </doc>
  15112. </method>
  15113. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15114. abstract="false" native="false" synchronized="false"
  15115. static="false" final="false" visibility="public"
  15116. deprecated="not deprecated">
  15117. </method>
  15118. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15119. abstract="false" native="false" synchronized="false"
  15120. static="false" final="false" visibility="protected"
  15121. deprecated="not deprecated">
  15122. </method>
  15123. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  15124. abstract="false" native="false" synchronized="false"
  15125. static="false" final="false" visibility="public"
  15126. deprecated="not deprecated">
  15127. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15128. <exception name="IOException" type="java.io.IOException"/>
  15129. </method>
  15130. <method name="moveFromLocalFile"
  15131. abstract="false" native="false" synchronized="false"
  15132. static="false" final="false" visibility="public"
  15133. deprecated="not deprecated">
  15134. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15135. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15136. <exception name="IOException" type="java.io.IOException"/>
  15137. </method>
  15138. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  15139. abstract="false" native="false" synchronized="false"
  15140. static="false" final="false" visibility="public"
  15141. deprecated="not deprecated">
  15142. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  15143. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  15144. <exception name="IOException" type="java.io.IOException"/>
  15145. </method>
  15146. <method name="completeLocalOutput"
  15147. abstract="false" native="false" synchronized="false"
  15148. static="false" final="false" visibility="public"
  15149. deprecated="not deprecated">
  15150. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  15151. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  15152. <exception name="IOException" type="java.io.IOException"/>
  15153. </method>
  15154. <method name="close"
  15155. abstract="false" native="false" synchronized="false"
  15156. static="false" final="false" visibility="public"
  15157. deprecated="not deprecated">
  15158. <exception name="IOException" type="java.io.IOException"/>
  15159. </method>
  15160. <method name="toString" return="java.lang.String"
  15161. abstract="false" native="false" synchronized="false"
  15162. static="false" final="false" visibility="public"
  15163. deprecated="not deprecated">
  15164. </method>
  15165. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15166. abstract="false" native="false" synchronized="false"
  15167. static="false" final="false" visibility="public"
  15168. deprecated="not deprecated">
  15169. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15170. <exception name="IOException" type="java.io.IOException"/>
  15171. </method>
  15172. <method name="setOwner"
  15173. abstract="false" native="false" synchronized="false"
  15174. static="false" final="false" visibility="public"
  15175. deprecated="not deprecated">
  15176. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15177. <param name="username" type="java.lang.String"/>
  15178. <param name="groupname" type="java.lang.String"/>
  15179. <exception name="IOException" type="java.io.IOException"/>
  15180. <doc>
  15181. <![CDATA[Use the command chown to set owner.]]>
  15182. </doc>
  15183. </method>
  15184. <method name="setPermission"
  15185. abstract="false" native="false" synchronized="false"
  15186. static="false" final="false" visibility="public"
  15187. deprecated="not deprecated">
  15188. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15189. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15190. <exception name="IOException" type="java.io.IOException"/>
  15191. <doc>
  15192. <![CDATA[Use the command chmod to set permission.]]>
  15193. </doc>
  15194. </method>
  15195. <method name="setTimes"
  15196. abstract="false" native="false" synchronized="false"
  15197. static="false" final="false" visibility="public"
  15198. deprecated="not deprecated">
  15199. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15200. <param name="mtime" type="long"/>
  15201. <param name="atime" type="long"/>
  15202. <exception name="IOException" type="java.io.IOException"/>
  15203. <doc>
  15204. <![CDATA[Sets the {@link Path}'s last modified time <em>only</em> to the given
  15205. valid time.
  15206. @param mtime the modification time to set (only if greater than zero).
  15207. @param atime currently ignored.
  15208. @throws IOException if setting the last modified time fails.]]>
  15209. </doc>
  15210. </method>
  15211. <method name="supportsSymlinks" return="boolean"
  15212. abstract="false" native="false" synchronized="false"
  15213. static="false" final="false" visibility="public"
  15214. deprecated="not deprecated">
  15215. </method>
  15216. <method name="createSymlink"
  15217. abstract="false" native="false" synchronized="false"
  15218. static="false" final="false" visibility="public"
  15219. deprecated="not deprecated">
  15220. <param name="target" type="org.apache.hadoop.fs.Path"/>
  15221. <param name="link" type="org.apache.hadoop.fs.Path"/>
  15222. <param name="createParent" type="boolean"/>
  15223. <exception name="IOException" type="java.io.IOException"/>
  15224. </method>
  15225. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  15226. abstract="false" native="false" synchronized="false"
  15227. static="false" final="false" visibility="public"
  15228. deprecated="not deprecated">
  15229. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15230. <exception name="IOException" type="java.io.IOException"/>
  15231. <doc>
  15232. <![CDATA[Return a FileStatus representing the given path. If the path refers
  15233. to a symlink return a FileStatus representing the link rather than
  15234. the object the link refers to.]]>
  15235. </doc>
  15236. </method>
  15237. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  15238. abstract="false" native="false" synchronized="false"
  15239. static="false" final="false" visibility="public"
  15240. deprecated="not deprecated">
  15241. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15242. <exception name="IOException" type="java.io.IOException"/>
  15243. </method>
  15244. <doc>
  15245. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  15246. </doc>
  15247. </class>
  15248. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  15249. <!-- start class org.apache.hadoop.fs.ReadOption -->
  15250. <class name="ReadOption" extends="java.lang.Enum"
  15251. abstract="false"
  15252. static="false" final="true" visibility="public"
  15253. deprecated="not deprecated">
  15254. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  15255. abstract="false" native="false" synchronized="false"
  15256. static="true" final="false" visibility="public"
  15257. deprecated="not deprecated">
  15258. </method>
  15259. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  15260. abstract="false" native="false" synchronized="false"
  15261. static="true" final="false" visibility="public"
  15262. deprecated="not deprecated">
  15263. <param name="name" type="java.lang.String"/>
  15264. </method>
  15265. <doc>
  15266. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  15267. </doc>
  15268. </class>
  15269. <!-- end class org.apache.hadoop.fs.ReadOption -->
  15270. <!-- start interface org.apache.hadoop.fs.RemoteIterator -->
  15271. <interface name="RemoteIterator" abstract="true"
  15272. static="false" final="false" visibility="public"
  15273. deprecated="not deprecated">
  15274. <method name="hasNext" return="boolean"
  15275. abstract="true" native="false" synchronized="false"
  15276. static="false" final="false" visibility="public"
  15277. deprecated="not deprecated">
  15278. <exception name="IOException" type="java.io.IOException"/>
  15279. <doc>
  15280. <![CDATA[Returns <tt>true</tt> if the iteration has more elements.
  15281. @return <tt>true</tt> if the iterator has more elements.
  15282. @throws IOException if any IO error occurs]]>
  15283. </doc>
  15284. </method>
  15285. <method name="next" return="E"
  15286. abstract="true" native="false" synchronized="false"
  15287. static="false" final="false" visibility="public"
  15288. deprecated="not deprecated">
  15289. <exception name="IOException" type="java.io.IOException"/>
  15290. <doc>
  15291. <![CDATA[Returns the next element in the iteration.
  15292. @return the next element in the iteration.
  15293. @throws NoSuchElementException iteration has no more elements.
  15294. @throws IOException if any IO error occurs]]>
  15295. </doc>
  15296. </method>
  15297. <doc>
  15298. <![CDATA[An iterator over a collection whose elements need to be fetched remotely]]>
  15299. </doc>
  15300. </interface>
  15301. <!-- end interface org.apache.hadoop.fs.RemoteIterator -->
  15302. <!-- start interface org.apache.hadoop.fs.Seekable -->
  15303. <interface name="Seekable" abstract="true"
  15304. static="false" final="false" visibility="public"
  15305. deprecated="not deprecated">
  15306. <method name="seek"
  15307. abstract="true" native="false" synchronized="false"
  15308. static="false" final="false" visibility="public"
  15309. deprecated="not deprecated">
  15310. <param name="pos" type="long"/>
  15311. <exception name="IOException" type="java.io.IOException"/>
  15312. <doc>
  15313. <![CDATA[Seek to the given offset from the start of the file.
  15314. The next read() will be from that location. Can't
  15315. seek past the end of the file.]]>
  15316. </doc>
  15317. </method>
  15318. <method name="getPos" return="long"
  15319. abstract="true" native="false" synchronized="false"
  15320. static="false" final="false" visibility="public"
  15321. deprecated="not deprecated">
  15322. <exception name="IOException" type="java.io.IOException"/>
  15323. <doc>
  15324. <![CDATA[Return the current offset from the start of the file]]>
  15325. </doc>
  15326. </method>
  15327. <doc>
  15328. <![CDATA[Stream that permits seeking.]]>
  15329. </doc>
  15330. </interface>
  15331. <!-- end interface org.apache.hadoop.fs.Seekable -->
  15332. <!-- start class org.apache.hadoop.fs.StorageType -->
  15333. <class name="StorageType" extends="java.lang.Enum"
  15334. abstract="false"
  15335. static="false" final="true" visibility="public"
  15336. deprecated="not deprecated">
  15337. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  15338. abstract="false" native="false" synchronized="false"
  15339. static="true" final="false" visibility="public"
  15340. deprecated="not deprecated">
  15341. </method>
  15342. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  15343. abstract="false" native="false" synchronized="false"
  15344. static="true" final="false" visibility="public"
  15345. deprecated="not deprecated">
  15346. <param name="name" type="java.lang.String"/>
  15347. </method>
  15348. <method name="isTransient" return="boolean"
  15349. abstract="false" native="false" synchronized="false"
  15350. static="false" final="false" visibility="public"
  15351. deprecated="not deprecated">
  15352. </method>
  15353. <method name="supportTypeQuota" return="boolean"
  15354. abstract="false" native="false" synchronized="false"
  15355. static="false" final="false" visibility="public"
  15356. deprecated="not deprecated">
  15357. </method>
  15358. <method name="isMovable" return="boolean"
  15359. abstract="false" native="false" synchronized="false"
  15360. static="false" final="false" visibility="public"
  15361. deprecated="not deprecated">
  15362. </method>
  15363. <method name="asList" return="java.util.List"
  15364. abstract="false" native="false" synchronized="false"
  15365. static="true" final="false" visibility="public"
  15366. deprecated="not deprecated">
  15367. </method>
  15368. <method name="getMovableTypes" return="java.util.List"
  15369. abstract="false" native="false" synchronized="false"
  15370. static="true" final="false" visibility="public"
  15371. deprecated="not deprecated">
  15372. </method>
  15373. <method name="getTypesSupportingQuota" return="java.util.List"
  15374. abstract="false" native="false" synchronized="false"
  15375. static="true" final="false" visibility="public"
  15376. deprecated="not deprecated">
  15377. </method>
  15378. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  15379. abstract="false" native="false" synchronized="false"
  15380. static="true" final="false" visibility="public"
  15381. deprecated="not deprecated">
  15382. <param name="i" type="int"/>
  15383. </method>
  15384. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  15385. abstract="false" native="false" synchronized="false"
  15386. static="true" final="false" visibility="public"
  15387. deprecated="not deprecated">
  15388. <param name="s" type="java.lang.String"/>
  15389. </method>
  15390. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  15391. transient="false" volatile="false"
  15392. static="true" final="true" visibility="public"
  15393. deprecated="not deprecated">
  15394. </field>
  15395. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  15396. transient="false" volatile="false"
  15397. static="true" final="true" visibility="public"
  15398. deprecated="not deprecated">
  15399. </field>
  15400. <doc>
  15401. <![CDATA[Defines the types of supported storage media. The default storage
  15402. medium is assumed to be DISK.]]>
  15403. </doc>
  15404. </class>
  15405. <!-- end class org.apache.hadoop.fs.StorageType -->
  15406. <!-- start interface org.apache.hadoop.fs.Syncable -->
  15407. <interface name="Syncable" abstract="true"
  15408. static="false" final="false" visibility="public"
  15409. deprecated="not deprecated">
  15410. <method name="sync"
  15411. abstract="true" native="false" synchronized="false"
  15412. static="false" final="false" visibility="public"
  15413. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  15414. <exception name="IOException" type="java.io.IOException"/>
  15415. <doc>
  15416. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  15417. @see #hflush()]]>
  15418. </doc>
  15419. </method>
  15420. <method name="hflush"
  15421. abstract="true" native="false" synchronized="false"
  15422. static="false" final="false" visibility="public"
  15423. deprecated="not deprecated">
  15424. <exception name="IOException" type="java.io.IOException"/>
  15425. <doc>
  15426. <![CDATA[Flush out the data in client's user buffer. After the return of
  15427. this call, new readers will see the data.
  15428. @throws IOException if any error occurs]]>
  15429. </doc>
  15430. </method>
  15431. <method name="hsync"
  15432. abstract="true" native="false" synchronized="false"
  15433. static="false" final="false" visibility="public"
  15434. deprecated="not deprecated">
  15435. <exception name="IOException" type="java.io.IOException"/>
  15436. <doc>
  15437. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  15438. all the way to the disk device (but the disk may have it in its cache).
  15439. @throws IOException if error occurs]]>
  15440. </doc>
  15441. </method>
  15442. <doc>
  15443. <![CDATA[This interface for flush/sync operation.]]>
  15444. </doc>
  15445. </interface>
  15446. <!-- end interface org.apache.hadoop.fs.Syncable -->
  15447. <!-- start class org.apache.hadoop.fs.Trash -->
  15448. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  15449. abstract="false"
  15450. static="false" final="false" visibility="public"
  15451. deprecated="not deprecated">
  15452. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  15453. static="false" final="false" visibility="public"
  15454. deprecated="not deprecated">
  15455. <exception name="IOException" type="java.io.IOException"/>
  15456. <doc>
  15457. <![CDATA[Construct a trash can accessor.
  15458. @param conf a Configuration]]>
  15459. </doc>
  15460. </constructor>
  15461. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  15462. static="false" final="false" visibility="public"
  15463. deprecated="not deprecated">
  15464. <exception name="IOException" type="java.io.IOException"/>
  15465. <doc>
  15466. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  15467. @param fs the FileSystem
  15468. @param conf a Configuration]]>
  15469. </doc>
  15470. </constructor>
  15471. <method name="moveToAppropriateTrash" return="boolean"
  15472. abstract="false" native="false" synchronized="false"
  15473. static="true" final="false" visibility="public"
  15474. deprecated="not deprecated">
  15475. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15476. <param name="p" type="org.apache.hadoop.fs.Path"/>
  15477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15478. <exception name="IOException" type="java.io.IOException"/>
  15479. <doc>
  15480. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  15481. trashbin in the actual volume of the path p being deleted.
  15482. Hence we get the file system of the fully-qualified resolved-path and
  15483. then move the path p to the trashbin in that volume,
  15484. @param fs - the filesystem of path p
  15485. @param p - the path being deleted - to be moved to trasg
  15486. @param conf - configuration
  15487. @return false if the item is already in the trash or trash is disabled
  15488. @throws IOException on error]]>
  15489. </doc>
  15490. </method>
  15491. <method name="isEnabled" return="boolean"
  15492. abstract="false" native="false" synchronized="false"
  15493. static="false" final="false" visibility="public"
  15494. deprecated="not deprecated">
  15495. <doc>
  15496. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  15497. </doc>
  15498. </method>
  15499. <method name="moveToTrash" return="boolean"
  15500. abstract="false" native="false" synchronized="false"
  15501. static="false" final="false" visibility="public"
  15502. deprecated="not deprecated">
  15503. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15504. <exception name="IOException" type="java.io.IOException"/>
  15505. <doc>
  15506. <![CDATA[Move a file or directory to the current trash directory.
  15507. @return false if the item is already in the trash or trash is disabled]]>
  15508. </doc>
  15509. </method>
  15510. <method name="checkpoint"
  15511. abstract="false" native="false" synchronized="false"
  15512. static="false" final="false" visibility="public"
  15513. deprecated="not deprecated">
  15514. <exception name="IOException" type="java.io.IOException"/>
  15515. <doc>
  15516. <![CDATA[Create a trash checkpoint.]]>
  15517. </doc>
  15518. </method>
  15519. <method name="expunge"
  15520. abstract="false" native="false" synchronized="false"
  15521. static="false" final="false" visibility="public"
  15522. deprecated="not deprecated">
  15523. <exception name="IOException" type="java.io.IOException"/>
  15524. <doc>
  15525. <![CDATA[Delete old checkpoint(s).]]>
  15526. </doc>
  15527. </method>
  15528. <method name="getEmptier" return="java.lang.Runnable"
  15529. abstract="false" native="false" synchronized="false"
  15530. static="false" final="false" visibility="public"
  15531. deprecated="not deprecated">
  15532. <exception name="IOException" type="java.io.IOException"/>
  15533. <doc>
  15534. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15535. users, intended to be run by the superuser.]]>
  15536. </doc>
  15537. </method>
  15538. <doc>
  15539. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  15540. See the implementation of the configured TrashPolicy for more
  15541. details.]]>
  15542. </doc>
  15543. </class>
  15544. <!-- end class org.apache.hadoop.fs.Trash -->
  15545. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  15546. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  15547. abstract="true"
  15548. static="false" final="false" visibility="public"
  15549. deprecated="not deprecated">
  15550. <constructor name="TrashPolicy"
  15551. static="false" final="false" visibility="public"
  15552. deprecated="not deprecated">
  15553. </constructor>
  15554. <method name="initialize"
  15555. abstract="true" native="false" synchronized="false"
  15556. static="false" final="false" visibility="public"
  15557. deprecated="not deprecated">
  15558. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15559. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15560. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15561. <doc>
  15562. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  15563. implementations
  15564. @param conf the configuration to be used
  15565. @param fs the filesystem to be used
  15566. @param home the home directory]]>
  15567. </doc>
  15568. </method>
  15569. <method name="isEnabled" return="boolean"
  15570. abstract="true" native="false" synchronized="false"
  15571. static="false" final="false" visibility="public"
  15572. deprecated="not deprecated">
  15573. <doc>
  15574. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem]]>
  15575. </doc>
  15576. </method>
  15577. <method name="moveToTrash" return="boolean"
  15578. abstract="true" native="false" synchronized="false"
  15579. static="false" final="false" visibility="public"
  15580. deprecated="not deprecated">
  15581. <param name="path" type="org.apache.hadoop.fs.Path"/>
  15582. <exception name="IOException" type="java.io.IOException"/>
  15583. <doc>
  15584. <![CDATA[Move a file or directory to the current trash directory.
  15585. @return false if the item is already in the trash or trash is disabled]]>
  15586. </doc>
  15587. </method>
  15588. <method name="createCheckpoint"
  15589. abstract="true" native="false" synchronized="false"
  15590. static="false" final="false" visibility="public"
  15591. deprecated="not deprecated">
  15592. <exception name="IOException" type="java.io.IOException"/>
  15593. <doc>
  15594. <![CDATA[Create a trash checkpoint.]]>
  15595. </doc>
  15596. </method>
  15597. <method name="deleteCheckpoint"
  15598. abstract="true" native="false" synchronized="false"
  15599. static="false" final="false" visibility="public"
  15600. deprecated="not deprecated">
  15601. <exception name="IOException" type="java.io.IOException"/>
  15602. <doc>
  15603. <![CDATA[Delete old trash checkpoint(s).]]>
  15604. </doc>
  15605. </method>
  15606. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  15607. abstract="true" native="false" synchronized="false"
  15608. static="false" final="false" visibility="public"
  15609. deprecated="not deprecated">
  15610. <doc>
  15611. <![CDATA[Get the current working directory of the Trash Policy]]>
  15612. </doc>
  15613. </method>
  15614. <method name="getEmptier" return="java.lang.Runnable"
  15615. abstract="true" native="false" synchronized="false"
  15616. static="false" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. <exception name="IOException" type="java.io.IOException"/>
  15619. <doc>
  15620. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  15621. users, intended to be run by the superuser.]]>
  15622. </doc>
  15623. </method>
  15624. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  15625. abstract="false" native="false" synchronized="false"
  15626. static="true" final="false" visibility="public"
  15627. deprecated="not deprecated">
  15628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15629. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15630. <param name="home" type="org.apache.hadoop.fs.Path"/>
  15631. <doc>
  15632. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  15633. of the configuration parameter fs.trash.classname.
  15634. @param conf the configuration to be used
  15635. @param fs the file system to be used
  15636. @param home the home directory
  15637. @return an instance of TrashPolicy]]>
  15638. </doc>
  15639. </method>
  15640. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  15641. transient="false" volatile="false"
  15642. static="false" final="false" visibility="protected"
  15643. deprecated="not deprecated">
  15644. </field>
  15645. <field name="trash" type="org.apache.hadoop.fs.Path"
  15646. transient="false" volatile="false"
  15647. static="false" final="false" visibility="protected"
  15648. deprecated="not deprecated">
  15649. </field>
  15650. <field name="deletionInterval" type="long"
  15651. transient="false" volatile="false"
  15652. static="false" final="false" visibility="protected"
  15653. deprecated="not deprecated">
  15654. </field>
  15655. <doc>
  15656. <![CDATA[This interface is used for implementing different Trash policies.
  15657. Provides factory method to create instances of the configured Trash policy.]]>
  15658. </doc>
  15659. </class>
  15660. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  15661. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15662. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  15663. abstract="false"
  15664. static="false" final="false" visibility="public"
  15665. deprecated="not deprecated">
  15666. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  15667. static="false" final="false" visibility="public"
  15668. deprecated="not deprecated">
  15669. <doc>
  15670. <![CDATA[Constructs exception with the specified detail message.
  15671. @param message exception message.]]>
  15672. </doc>
  15673. </constructor>
  15674. <doc>
  15675. <![CDATA[File system for a given file system name/scheme is not supported]]>
  15676. </doc>
  15677. </class>
  15678. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  15679. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  15680. <class name="XAttrCodec" extends="java.lang.Enum"
  15681. abstract="false"
  15682. static="false" final="true" visibility="public"
  15683. deprecated="not deprecated">
  15684. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  15685. abstract="false" native="false" synchronized="false"
  15686. static="true" final="false" visibility="public"
  15687. deprecated="not deprecated">
  15688. </method>
  15689. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  15690. abstract="false" native="false" synchronized="false"
  15691. static="true" final="false" visibility="public"
  15692. deprecated="not deprecated">
  15693. <param name="name" type="java.lang.String"/>
  15694. </method>
  15695. <method name="decodeValue" return="byte[]"
  15696. abstract="false" native="false" synchronized="false"
  15697. static="true" final="false" visibility="public"
  15698. deprecated="not deprecated">
  15699. <param name="value" type="java.lang.String"/>
  15700. <exception name="IOException" type="java.io.IOException"/>
  15701. <doc>
  15702. <![CDATA[Decode string representation of a value and check whether it's
  15703. encoded. If the given string begins with 0x or 0X, it expresses
  15704. a hexadecimal number. If the given string begins with 0s or 0S,
  15705. base64 encoding is expected. If the given string is enclosed in
  15706. double quotes, the inner string is treated as text. Otherwise
  15707. the given string is treated as text.
  15708. @param value string representation of the value.
  15709. @return byte[] the value
  15710. @throws IOException]]>
  15711. </doc>
  15712. </method>
  15713. <method name="encodeValue" return="java.lang.String"
  15714. abstract="false" native="false" synchronized="false"
  15715. static="true" final="false" visibility="public"
  15716. deprecated="not deprecated">
  15717. <param name="value" type="byte[]"/>
  15718. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  15719. <exception name="IOException" type="java.io.IOException"/>
  15720. <doc>
  15721. <![CDATA[Encode byte[] value to string representation with encoding.
  15722. Values encoded as text strings are enclosed in double quotes (\"),
  15723. while strings encoded as hexadecimal and base64 are prefixed with
  15724. 0x and 0s, respectively.
  15725. @param value byte[] value
  15726. @param encoding
  15727. @return String string representation of value
  15728. @throws IOException]]>
  15729. </doc>
  15730. </method>
  15731. <doc>
  15732. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  15733. covert byte[] to some kind of string representation or convert back.
  15734. String representation is convenient for display and input. For example
  15735. display in screen as shell response and json response, input as http
  15736. or shell parameter.]]>
  15737. </doc>
  15738. </class>
  15739. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  15740. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  15741. <class name="XAttrSetFlag" extends="java.lang.Enum"
  15742. abstract="false"
  15743. static="false" final="true" visibility="public"
  15744. deprecated="not deprecated">
  15745. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  15746. abstract="false" native="false" synchronized="false"
  15747. static="true" final="false" visibility="public"
  15748. deprecated="not deprecated">
  15749. </method>
  15750. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  15751. abstract="false" native="false" synchronized="false"
  15752. static="true" final="false" visibility="public"
  15753. deprecated="not deprecated">
  15754. <param name="name" type="java.lang.String"/>
  15755. </method>
  15756. <method name="validate"
  15757. abstract="false" native="false" synchronized="false"
  15758. static="true" final="false" visibility="public"
  15759. deprecated="not deprecated">
  15760. <param name="xAttrName" type="java.lang.String"/>
  15761. <param name="xAttrExists" type="boolean"/>
  15762. <param name="flag" type="java.util.EnumSet"/>
  15763. <exception name="IOException" type="java.io.IOException"/>
  15764. </method>
  15765. </class>
  15766. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  15767. <!-- start class org.apache.hadoop.fs.ZeroCopyUnavailableException -->
  15768. <class name="ZeroCopyUnavailableException" extends="java.io.IOException"
  15769. abstract="false"
  15770. static="false" final="false" visibility="public"
  15771. deprecated="not deprecated">
  15772. <constructor name="ZeroCopyUnavailableException" type="java.lang.String"
  15773. static="false" final="false" visibility="public"
  15774. deprecated="not deprecated">
  15775. </constructor>
  15776. <constructor name="ZeroCopyUnavailableException" type="java.lang.String, java.lang.Exception"
  15777. static="false" final="false" visibility="public"
  15778. deprecated="not deprecated">
  15779. </constructor>
  15780. <constructor name="ZeroCopyUnavailableException" type="java.lang.Exception"
  15781. static="false" final="false" visibility="public"
  15782. deprecated="not deprecated">
  15783. </constructor>
  15784. </class>
  15785. <!-- end class org.apache.hadoop.fs.ZeroCopyUnavailableException -->
  15786. <doc>
  15787. <![CDATA[An abstract file system API.]]>
  15788. </doc>
  15789. </package>
  15790. <package name="org.apache.hadoop.fs.crypto">
  15791. <!-- start class org.apache.hadoop.fs.crypto.CryptoFSDataInputStream -->
  15792. <class name="CryptoFSDataInputStream" extends="org.apache.hadoop.fs.FSDataInputStream"
  15793. abstract="false"
  15794. static="false" final="false" visibility="public"
  15795. deprecated="not deprecated">
  15796. <constructor name="CryptoFSDataInputStream" type="org.apache.hadoop.fs.FSDataInputStream, org.apache.hadoop.crypto.CryptoCodec, int, byte[], byte[]"
  15797. static="false" final="false" visibility="public"
  15798. deprecated="not deprecated">
  15799. <exception name="IOException" type="java.io.IOException"/>
  15800. </constructor>
  15801. <constructor name="CryptoFSDataInputStream" type="org.apache.hadoop.fs.FSDataInputStream, org.apache.hadoop.crypto.CryptoCodec, byte[], byte[]"
  15802. static="false" final="false" visibility="public"
  15803. deprecated="not deprecated">
  15804. <exception name="IOException" type="java.io.IOException"/>
  15805. </constructor>
  15806. </class>
  15807. <!-- end class org.apache.hadoop.fs.crypto.CryptoFSDataInputStream -->
  15808. <!-- start class org.apache.hadoop.fs.crypto.CryptoFSDataOutputStream -->
  15809. <class name="CryptoFSDataOutputStream" extends="org.apache.hadoop.fs.FSDataOutputStream"
  15810. abstract="false"
  15811. static="false" final="false" visibility="public"
  15812. deprecated="not deprecated">
  15813. <constructor name="CryptoFSDataOutputStream" type="org.apache.hadoop.fs.FSDataOutputStream, org.apache.hadoop.crypto.CryptoCodec, int, byte[], byte[]"
  15814. static="false" final="false" visibility="public"
  15815. deprecated="not deprecated">
  15816. <exception name="IOException" type="java.io.IOException"/>
  15817. </constructor>
  15818. <constructor name="CryptoFSDataOutputStream" type="org.apache.hadoop.fs.FSDataOutputStream, org.apache.hadoop.crypto.CryptoCodec, byte[], byte[]"
  15819. static="false" final="false" visibility="public"
  15820. deprecated="not deprecated">
  15821. <exception name="IOException" type="java.io.IOException"/>
  15822. </constructor>
  15823. <method name="getPos" return="long"
  15824. abstract="false" native="false" synchronized="false"
  15825. static="false" final="false" visibility="public"
  15826. deprecated="not deprecated">
  15827. <exception name="IOException" type="java.io.IOException"/>
  15828. </method>
  15829. </class>
  15830. <!-- end class org.apache.hadoop.fs.crypto.CryptoFSDataOutputStream -->
  15831. </package>
  15832. <package name="org.apache.hadoop.fs.ftp">
  15833. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  15834. <class name="FTPException" extends="java.lang.RuntimeException"
  15835. abstract="false"
  15836. static="false" final="false" visibility="public"
  15837. deprecated="not deprecated">
  15838. <constructor name="FTPException" type="java.lang.String"
  15839. static="false" final="false" visibility="public"
  15840. deprecated="not deprecated">
  15841. </constructor>
  15842. <constructor name="FTPException" type="java.lang.Throwable"
  15843. static="false" final="false" visibility="public"
  15844. deprecated="not deprecated">
  15845. </constructor>
  15846. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  15847. static="false" final="false" visibility="public"
  15848. deprecated="not deprecated">
  15849. </constructor>
  15850. <doc>
  15851. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  15852. </doc>
  15853. </class>
  15854. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  15855. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  15856. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  15857. abstract="false"
  15858. static="false" final="false" visibility="public"
  15859. deprecated="not deprecated">
  15860. <constructor name="FTPFileSystem"
  15861. static="false" final="false" visibility="public"
  15862. deprecated="not deprecated">
  15863. </constructor>
  15864. <method name="getScheme" return="java.lang.String"
  15865. abstract="false" native="false" synchronized="false"
  15866. static="false" final="false" visibility="public"
  15867. deprecated="not deprecated">
  15868. <doc>
  15869. <![CDATA[Return the protocol scheme for the FileSystem.
  15870. <p/>
  15871. @return <code>ftp</code>]]>
  15872. </doc>
  15873. </method>
  15874. <method name="getDefaultPort" return="int"
  15875. abstract="false" native="false" synchronized="false"
  15876. static="false" final="false" visibility="protected"
  15877. deprecated="not deprecated">
  15878. <doc>
  15879. <![CDATA[Get the default port for this FTPFileSystem.
  15880. @return the default port]]>
  15881. </doc>
  15882. </method>
  15883. <method name="initialize"
  15884. abstract="false" native="false" synchronized="false"
  15885. static="false" final="false" visibility="public"
  15886. deprecated="not deprecated">
  15887. <param name="uri" type="java.net.URI"/>
  15888. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15889. <exception name="IOException" type="java.io.IOException"/>
  15890. </method>
  15891. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  15892. abstract="false" native="false" synchronized="false"
  15893. static="false" final="false" visibility="public"
  15894. deprecated="not deprecated">
  15895. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15896. <param name="bufferSize" type="int"/>
  15897. <exception name="IOException" type="java.io.IOException"/>
  15898. </method>
  15899. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15900. abstract="false" native="false" synchronized="false"
  15901. static="false" final="false" visibility="public"
  15902. deprecated="not deprecated">
  15903. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15904. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15905. <param name="overwrite" type="boolean"/>
  15906. <param name="bufferSize" type="int"/>
  15907. <param name="replication" type="short"/>
  15908. <param name="blockSize" type="long"/>
  15909. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15910. <exception name="IOException" type="java.io.IOException"/>
  15911. <doc>
  15912. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  15913. this class or else the invocation will block.]]>
  15914. </doc>
  15915. </method>
  15916. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  15917. abstract="false" native="false" synchronized="false"
  15918. static="false" final="false" visibility="public"
  15919. deprecated="not deprecated">
  15920. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15921. <param name="bufferSize" type="int"/>
  15922. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15923. <exception name="IOException" type="java.io.IOException"/>
  15924. <doc>
  15925. <![CDATA[This optional operation is not yet supported.]]>
  15926. </doc>
  15927. </method>
  15928. <method name="delete" return="boolean"
  15929. abstract="false" native="false" synchronized="false"
  15930. static="false" final="false" visibility="public"
  15931. deprecated="not deprecated">
  15932. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15933. <param name="recursive" type="boolean"/>
  15934. <exception name="IOException" type="java.io.IOException"/>
  15935. </method>
  15936. <method name="getUri" return="java.net.URI"
  15937. abstract="false" native="false" synchronized="false"
  15938. static="false" final="false" visibility="public"
  15939. deprecated="not deprecated">
  15940. </method>
  15941. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15942. abstract="false" native="false" synchronized="false"
  15943. static="false" final="false" visibility="public"
  15944. deprecated="not deprecated">
  15945. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15946. <exception name="IOException" type="java.io.IOException"/>
  15947. </method>
  15948. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15949. abstract="false" native="false" synchronized="false"
  15950. static="false" final="false" visibility="public"
  15951. deprecated="not deprecated">
  15952. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15953. <exception name="IOException" type="java.io.IOException"/>
  15954. </method>
  15955. <method name="mkdirs" return="boolean"
  15956. abstract="false" native="false" synchronized="false"
  15957. static="false" final="false" visibility="public"
  15958. deprecated="not deprecated">
  15959. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15960. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15961. <exception name="IOException" type="java.io.IOException"/>
  15962. </method>
  15963. <method name="rename" return="boolean"
  15964. abstract="false" native="false" synchronized="false"
  15965. static="false" final="false" visibility="public"
  15966. deprecated="not deprecated">
  15967. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15968. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15969. <exception name="IOException" type="java.io.IOException"/>
  15970. </method>
  15971. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15972. abstract="false" native="false" synchronized="false"
  15973. static="false" final="false" visibility="public"
  15974. deprecated="not deprecated">
  15975. </method>
  15976. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15977. abstract="false" native="false" synchronized="false"
  15978. static="false" final="false" visibility="public"
  15979. deprecated="not deprecated">
  15980. </method>
  15981. <method name="setWorkingDirectory"
  15982. abstract="false" native="false" synchronized="false"
  15983. static="false" final="false" visibility="public"
  15984. deprecated="not deprecated">
  15985. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15986. </method>
  15987. <field name="LOG" type="org.apache.commons.logging.Log"
  15988. transient="false" volatile="false"
  15989. static="true" final="true" visibility="public"
  15990. deprecated="not deprecated">
  15991. </field>
  15992. <field name="DEFAULT_BUFFER_SIZE" type="int"
  15993. transient="false" volatile="false"
  15994. static="true" final="true" visibility="public"
  15995. deprecated="not deprecated">
  15996. </field>
  15997. <field name="DEFAULT_BLOCK_SIZE" type="int"
  15998. transient="false" volatile="false"
  15999. static="true" final="true" visibility="public"
  16000. deprecated="not deprecated">
  16001. </field>
  16002. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  16003. transient="false" volatile="false"
  16004. static="true" final="true" visibility="public"
  16005. deprecated="not deprecated">
  16006. </field>
  16007. <field name="FS_FTP_HOST" type="java.lang.String"
  16008. transient="false" volatile="false"
  16009. static="true" final="true" visibility="public"
  16010. deprecated="not deprecated">
  16011. </field>
  16012. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  16013. transient="false" volatile="false"
  16014. static="true" final="true" visibility="public"
  16015. deprecated="not deprecated">
  16016. </field>
  16017. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  16018. transient="false" volatile="false"
  16019. static="true" final="true" visibility="public"
  16020. deprecated="not deprecated">
  16021. </field>
  16022. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  16023. transient="false" volatile="false"
  16024. static="true" final="true" visibility="public"
  16025. deprecated="not deprecated">
  16026. </field>
  16027. <doc>
  16028. <![CDATA[<p>
  16029. A {@link FileSystem} backed by an FTP client provided by <a
  16030. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  16031. </p>]]>
  16032. </doc>
  16033. </class>
  16034. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  16035. </package>
  16036. <package name="org.apache.hadoop.fs.permission">
  16037. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  16038. <class name="AccessControlException" extends="java.io.IOException"
  16039. abstract="false"
  16040. static="false" final="false" visibility="public"
  16041. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  16042. instead.">
  16043. <constructor name="AccessControlException"
  16044. static="false" final="false" visibility="public"
  16045. deprecated="not deprecated">
  16046. <doc>
  16047. <![CDATA[Default constructor is needed for unwrapping from
  16048. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  16049. </doc>
  16050. </constructor>
  16051. <constructor name="AccessControlException" type="java.lang.String"
  16052. static="false" final="false" visibility="public"
  16053. deprecated="not deprecated">
  16054. <doc>
  16055. <![CDATA[Constructs an {@link AccessControlException}
  16056. with the specified detail message.
  16057. @param s the detail message.]]>
  16058. </doc>
  16059. </constructor>
  16060. <constructor name="AccessControlException" type="java.lang.Throwable"
  16061. static="false" final="false" visibility="public"
  16062. deprecated="not deprecated">
  16063. <doc>
  16064. <![CDATA[Constructs a new exception with the specified cause and a detail
  16065. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  16066. typically contains the class and detail message of <tt>cause</tt>).
  16067. @param cause the cause (which is saved for later retrieval by the
  16068. {@link #getCause()} method). (A <tt>null</tt> value is
  16069. permitted, and indicates that the cause is nonexistent or
  16070. unknown.)]]>
  16071. </doc>
  16072. </constructor>
  16073. <doc>
  16074. <![CDATA[An exception class for access control related issues.
  16075. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  16076. instead.]]>
  16077. </doc>
  16078. </class>
  16079. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  16080. <!-- start class org.apache.hadoop.fs.permission.AclEntry -->
  16081. <class name="AclEntry" extends="java.lang.Object"
  16082. abstract="false"
  16083. static="false" final="false" visibility="public"
  16084. deprecated="not deprecated">
  16085. <method name="getType" return="org.apache.hadoop.fs.permission.AclEntryType"
  16086. abstract="false" native="false" synchronized="false"
  16087. static="false" final="false" visibility="public"
  16088. deprecated="not deprecated">
  16089. <doc>
  16090. <![CDATA[Returns the ACL entry type.
  16091. @return AclEntryType ACL entry type]]>
  16092. </doc>
  16093. </method>
  16094. <method name="getName" return="java.lang.String"
  16095. abstract="false" native="false" synchronized="false"
  16096. static="false" final="false" visibility="public"
  16097. deprecated="not deprecated">
  16098. <doc>
  16099. <![CDATA[Returns the optional ACL entry name.
  16100. @return String ACL entry name, or null if undefined]]>
  16101. </doc>
  16102. </method>
  16103. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsAction"
  16104. abstract="false" native="false" synchronized="false"
  16105. static="false" final="false" visibility="public"
  16106. deprecated="not deprecated">
  16107. <doc>
  16108. <![CDATA[Returns the set of permissions in the ACL entry.
  16109. @return FsAction set of permissions in the ACL entry]]>
  16110. </doc>
  16111. </method>
  16112. <method name="getScope" return="org.apache.hadoop.fs.permission.AclEntryScope"
  16113. abstract="false" native="false" synchronized="false"
  16114. static="false" final="false" visibility="public"
  16115. deprecated="not deprecated">
  16116. <doc>
  16117. <![CDATA[Returns the scope of the ACL entry.
  16118. @return AclEntryScope scope of the ACL entry]]>
  16119. </doc>
  16120. </method>
  16121. <method name="equals" return="boolean"
  16122. abstract="false" native="false" synchronized="false"
  16123. static="false" final="false" visibility="public"
  16124. deprecated="not deprecated">
  16125. <param name="o" type="java.lang.Object"/>
  16126. </method>
  16127. <method name="hashCode" return="int"
  16128. abstract="false" native="false" synchronized="false"
  16129. static="false" final="false" visibility="public"
  16130. deprecated="not deprecated">
  16131. </method>
  16132. <method name="toString" return="java.lang.String"
  16133. abstract="false" native="false" synchronized="false"
  16134. static="false" final="false" visibility="public"
  16135. deprecated="not deprecated">
  16136. </method>
  16137. <method name="parseAclSpec" return="java.util.List"
  16138. abstract="false" native="false" synchronized="false"
  16139. static="true" final="false" visibility="public"
  16140. deprecated="not deprecated">
  16141. <param name="aclSpec" type="java.lang.String"/>
  16142. <param name="includePermission" type="boolean"/>
  16143. <doc>
  16144. <![CDATA[Parses a string representation of an ACL spec into a list of AclEntry
  16145. objects. Example: "user::rwx,user:foo:rw-,group::r--,other::---"
  16146. @param aclSpec
  16147. String representation of an ACL spec.
  16148. @param includePermission
  16149. for setAcl operations this will be true. i.e. AclSpec should
  16150. include permissions.<br>
  16151. But for removeAcl operation it will be false. i.e. AclSpec should
  16152. not contain permissions.<br>
  16153. Example: "user:foo,group:bar"
  16154. @return Returns list of {@link AclEntry} parsed]]>
  16155. </doc>
  16156. </method>
  16157. <method name="parseAclEntry" return="org.apache.hadoop.fs.permission.AclEntry"
  16158. abstract="false" native="false" synchronized="false"
  16159. static="true" final="false" visibility="public"
  16160. deprecated="not deprecated">
  16161. <param name="aclStr" type="java.lang.String"/>
  16162. <param name="includePermission" type="boolean"/>
  16163. <doc>
  16164. <![CDATA[Parses a string representation of an ACL into a AclEntry object.<br>
  16165. @param aclStr
  16166. String representation of an ACL.<br>
  16167. Example: "user:foo:rw-"
  16168. @param includePermission
  16169. for setAcl operations this will be true. i.e. Acl should include
  16170. permissions.<br>
  16171. But for removeAcl operation it will be false. i.e. Acl should not
  16172. contain permissions.<br>
  16173. Example: "user:foo,group:bar,mask::"
  16174. @return Returns an {@link AclEntry} object]]>
  16175. </doc>
  16176. </method>
  16177. <method name="aclSpecToString" return="java.lang.String"
  16178. abstract="false" native="false" synchronized="false"
  16179. static="true" final="false" visibility="public"
  16180. deprecated="not deprecated">
  16181. <param name="aclSpec" type="java.util.List"/>
  16182. <doc>
  16183. <![CDATA[Convert a List of AclEntries into a string - the reverse of parseAclSpec.
  16184. @param aclSpec List of AclEntries to convert
  16185. @return String representation of aclSpec]]>
  16186. </doc>
  16187. </method>
  16188. <doc>
  16189. <![CDATA[Defines a single entry in an ACL. An ACL entry has a type (user, group,
  16190. mask, or other), an optional name (referring to a specific user or group), a
  16191. set of permissions (any combination of read, write and execute), and a scope
  16192. (access or default). AclEntry instances are immutable. Use a {@link Builder}
  16193. to create a new instance.]]>
  16194. </doc>
  16195. </class>
  16196. <!-- end class org.apache.hadoop.fs.permission.AclEntry -->
  16197. <!-- start class org.apache.hadoop.fs.permission.AclEntry.Builder -->
  16198. <class name="AclEntry.Builder" extends="java.lang.Object"
  16199. abstract="false"
  16200. static="true" final="false" visibility="public"
  16201. deprecated="not deprecated">
  16202. <constructor name="Builder"
  16203. static="false" final="false" visibility="public"
  16204. deprecated="not deprecated">
  16205. </constructor>
  16206. <method name="setType" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  16207. abstract="false" native="false" synchronized="false"
  16208. static="false" final="false" visibility="public"
  16209. deprecated="not deprecated">
  16210. <param name="type" type="org.apache.hadoop.fs.permission.AclEntryType"/>
  16211. <doc>
  16212. <![CDATA[Sets the ACL entry type.
  16213. @param type AclEntryType ACL entry type
  16214. @return Builder this builder, for call chaining]]>
  16215. </doc>
  16216. </method>
  16217. <method name="setName" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  16218. abstract="false" native="false" synchronized="false"
  16219. static="false" final="false" visibility="public"
  16220. deprecated="not deprecated">
  16221. <param name="name" type="java.lang.String"/>
  16222. <doc>
  16223. <![CDATA[Sets the optional ACL entry name.
  16224. @param name String optional ACL entry name
  16225. @return Builder this builder, for call chaining]]>
  16226. </doc>
  16227. </method>
  16228. <method name="setPermission" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  16229. abstract="false" native="false" synchronized="false"
  16230. static="false" final="false" visibility="public"
  16231. deprecated="not deprecated">
  16232. <param name="permission" type="org.apache.hadoop.fs.permission.FsAction"/>
  16233. <doc>
  16234. <![CDATA[Sets the set of permissions in the ACL entry.
  16235. @param permission FsAction set of permissions in the ACL entry
  16236. @return Builder this builder, for call chaining]]>
  16237. </doc>
  16238. </method>
  16239. <method name="setScope" return="org.apache.hadoop.fs.permission.AclEntry.Builder"
  16240. abstract="false" native="false" synchronized="false"
  16241. static="false" final="false" visibility="public"
  16242. deprecated="not deprecated">
  16243. <param name="scope" type="org.apache.hadoop.fs.permission.AclEntryScope"/>
  16244. <doc>
  16245. <![CDATA[Sets the scope of the ACL entry. If this method is not called, then the
  16246. builder assumes {@link AclEntryScope#ACCESS}.
  16247. @param scope AclEntryScope scope of the ACL entry
  16248. @return Builder this builder, for call chaining]]>
  16249. </doc>
  16250. </method>
  16251. <method name="build" return="org.apache.hadoop.fs.permission.AclEntry"
  16252. abstract="false" native="false" synchronized="false"
  16253. static="false" final="false" visibility="public"
  16254. deprecated="not deprecated">
  16255. <doc>
  16256. <![CDATA[Builds a new AclEntry populated with the set properties.
  16257. @return AclEntry new AclEntry]]>
  16258. </doc>
  16259. </method>
  16260. <doc>
  16261. <![CDATA[Builder for creating new AclEntry instances.]]>
  16262. </doc>
  16263. </class>
  16264. <!-- end class org.apache.hadoop.fs.permission.AclEntry.Builder -->
  16265. <!-- start class org.apache.hadoop.fs.permission.AclEntryScope -->
  16266. <class name="AclEntryScope" extends="java.lang.Enum"
  16267. abstract="false"
  16268. static="false" final="true" visibility="public"
  16269. deprecated="not deprecated">
  16270. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryScope[]"
  16271. abstract="false" native="false" synchronized="false"
  16272. static="true" final="false" visibility="public"
  16273. deprecated="not deprecated">
  16274. </method>
  16275. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryScope"
  16276. abstract="false" native="false" synchronized="false"
  16277. static="true" final="false" visibility="public"
  16278. deprecated="not deprecated">
  16279. <param name="name" type="java.lang.String"/>
  16280. </method>
  16281. <doc>
  16282. <![CDATA[Specifies the scope or intended usage of an ACL entry.]]>
  16283. </doc>
  16284. </class>
  16285. <!-- end class org.apache.hadoop.fs.permission.AclEntryScope -->
  16286. <!-- start class org.apache.hadoop.fs.permission.AclEntryType -->
  16287. <class name="AclEntryType" extends="java.lang.Enum"
  16288. abstract="false"
  16289. static="false" final="true" visibility="public"
  16290. deprecated="not deprecated">
  16291. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryType[]"
  16292. abstract="false" native="false" synchronized="false"
  16293. static="true" final="false" visibility="public"
  16294. deprecated="not deprecated">
  16295. </method>
  16296. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryType"
  16297. abstract="false" native="false" synchronized="false"
  16298. static="true" final="false" visibility="public"
  16299. deprecated="not deprecated">
  16300. <param name="name" type="java.lang.String"/>
  16301. </method>
  16302. <doc>
  16303. <![CDATA[Specifies the type of an ACL entry.]]>
  16304. </doc>
  16305. </class>
  16306. <!-- end class org.apache.hadoop.fs.permission.AclEntryType -->
  16307. <!-- start class org.apache.hadoop.fs.permission.AclStatus -->
  16308. <class name="AclStatus" extends="java.lang.Object"
  16309. abstract="false"
  16310. static="false" final="false" visibility="public"
  16311. deprecated="not deprecated">
  16312. <method name="getOwner" return="java.lang.String"
  16313. abstract="false" native="false" synchronized="false"
  16314. static="false" final="false" visibility="public"
  16315. deprecated="not deprecated">
  16316. <doc>
  16317. <![CDATA[Returns the file owner.
  16318. @return String file owner]]>
  16319. </doc>
  16320. </method>
  16321. <method name="getGroup" return="java.lang.String"
  16322. abstract="false" native="false" synchronized="false"
  16323. static="false" final="false" visibility="public"
  16324. deprecated="not deprecated">
  16325. <doc>
  16326. <![CDATA[Returns the file group.
  16327. @return String file group]]>
  16328. </doc>
  16329. </method>
  16330. <method name="isStickyBit" return="boolean"
  16331. abstract="false" native="false" synchronized="false"
  16332. static="false" final="false" visibility="public"
  16333. deprecated="not deprecated">
  16334. <doc>
  16335. <![CDATA[Returns the sticky bit.
  16336. @return boolean sticky bit]]>
  16337. </doc>
  16338. </method>
  16339. <method name="getEntries" return="java.util.List"
  16340. abstract="false" native="false" synchronized="false"
  16341. static="false" final="false" visibility="public"
  16342. deprecated="not deprecated">
  16343. <doc>
  16344. <![CDATA[Returns the list of all ACL entries, ordered by their natural ordering.
  16345. @return List<AclEntry> unmodifiable ordered list of all ACL entries]]>
  16346. </doc>
  16347. </method>
  16348. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  16349. abstract="false" native="false" synchronized="false"
  16350. static="false" final="false" visibility="public"
  16351. deprecated="not deprecated">
  16352. <doc>
  16353. <![CDATA[Returns the permission set for the path
  16354. @return {@link FsPermission} for the path]]>
  16355. </doc>
  16356. </method>
  16357. <method name="equals" return="boolean"
  16358. abstract="false" native="false" synchronized="false"
  16359. static="false" final="false" visibility="public"
  16360. deprecated="not deprecated">
  16361. <param name="o" type="java.lang.Object"/>
  16362. </method>
  16363. <method name="hashCode" return="int"
  16364. abstract="false" native="false" synchronized="false"
  16365. static="false" final="false" visibility="public"
  16366. deprecated="not deprecated">
  16367. </method>
  16368. <method name="toString" return="java.lang.String"
  16369. abstract="false" native="false" synchronized="false"
  16370. static="false" final="false" visibility="public"
  16371. deprecated="not deprecated">
  16372. </method>
  16373. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  16374. abstract="false" native="false" synchronized="false"
  16375. static="false" final="false" visibility="public"
  16376. deprecated="not deprecated">
  16377. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  16378. <doc>
  16379. <![CDATA[Get the effective permission for the AclEntry
  16380. @param entry AclEntry to get the effective action]]>
  16381. </doc>
  16382. </method>
  16383. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  16384. abstract="false" native="false" synchronized="false"
  16385. static="false" final="false" visibility="public"
  16386. deprecated="not deprecated">
  16387. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  16388. <param name="permArg" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16389. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  16390. <doc>
  16391. <![CDATA[Get the effective permission for the AclEntry. <br>
  16392. Recommended to use this API ONLY if client communicates with the old
  16393. NameNode, needs to pass the Permission for the path to get effective
  16394. permission, else use {@link AclStatus#getEffectivePermission(AclEntry)}.
  16395. @param entry AclEntry to get the effective action
  16396. @param permArg Permission for the path. However if the client is NOT
  16397. communicating with old namenode, then this argument will not have
  16398. any preference.
  16399. @return Returns the effective permission for the entry.
  16400. @throws IllegalArgumentException If the client communicating with old
  16401. namenode and permission is not passed as an argument.]]>
  16402. </doc>
  16403. </method>
  16404. <doc>
  16405. <![CDATA[An AclStatus contains the ACL information of a specific file. AclStatus
  16406. instances are immutable. Use a {@link Builder} to create a new instance.]]>
  16407. </doc>
  16408. </class>
  16409. <!-- end class org.apache.hadoop.fs.permission.AclStatus -->
  16410. <!-- start class org.apache.hadoop.fs.permission.AclStatus.Builder -->
  16411. <class name="AclStatus.Builder" extends="java.lang.Object"
  16412. abstract="false"
  16413. static="true" final="false" visibility="public"
  16414. deprecated="not deprecated">
  16415. <constructor name="Builder"
  16416. static="false" final="false" visibility="public"
  16417. deprecated="not deprecated">
  16418. </constructor>
  16419. <method name="owner" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16420. abstract="false" native="false" synchronized="false"
  16421. static="false" final="false" visibility="public"
  16422. deprecated="not deprecated">
  16423. <param name="owner" type="java.lang.String"/>
  16424. <doc>
  16425. <![CDATA[Sets the file owner.
  16426. @param owner String file owner
  16427. @return Builder this builder, for call chaining]]>
  16428. </doc>
  16429. </method>
  16430. <method name="group" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16431. abstract="false" native="false" synchronized="false"
  16432. static="false" final="false" visibility="public"
  16433. deprecated="not deprecated">
  16434. <param name="group" type="java.lang.String"/>
  16435. <doc>
  16436. <![CDATA[Sets the file group.
  16437. @param group String file group
  16438. @return Builder this builder, for call chaining]]>
  16439. </doc>
  16440. </method>
  16441. <method name="addEntry" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16442. abstract="false" native="false" synchronized="false"
  16443. static="false" final="false" visibility="public"
  16444. deprecated="not deprecated">
  16445. <param name="e" type="org.apache.hadoop.fs.permission.AclEntry"/>
  16446. <doc>
  16447. <![CDATA[Adds an ACL entry.
  16448. @param e AclEntry entry to add
  16449. @return Builder this builder, for call chaining]]>
  16450. </doc>
  16451. </method>
  16452. <method name="addEntries" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16453. abstract="false" native="false" synchronized="false"
  16454. static="false" final="false" visibility="public"
  16455. deprecated="not deprecated">
  16456. <param name="entries" type="java.lang.Iterable"/>
  16457. <doc>
  16458. <![CDATA[Adds a list of ACL entries.
  16459. @param entries AclEntry entries to add
  16460. @return Builder this builder, for call chaining]]>
  16461. </doc>
  16462. </method>
  16463. <method name="stickyBit" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16464. abstract="false" native="false" synchronized="false"
  16465. static="false" final="false" visibility="public"
  16466. deprecated="not deprecated">
  16467. <param name="stickyBit" type="boolean"/>
  16468. <doc>
  16469. <![CDATA[Sets sticky bit. If this method is not called, then the builder assumes
  16470. false.
  16471. @param stickyBit
  16472. boolean sticky bit
  16473. @return Builder this builder, for call chaining]]>
  16474. </doc>
  16475. </method>
  16476. <method name="setPermission" return="org.apache.hadoop.fs.permission.AclStatus.Builder"
  16477. abstract="false" native="false" synchronized="false"
  16478. static="false" final="false" visibility="public"
  16479. deprecated="not deprecated">
  16480. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16481. <doc>
  16482. <![CDATA[Sets the permission for the file.
  16483. @param permission]]>
  16484. </doc>
  16485. </method>
  16486. <method name="build" return="org.apache.hadoop.fs.permission.AclStatus"
  16487. abstract="false" native="false" synchronized="false"
  16488. static="false" final="false" visibility="public"
  16489. deprecated="not deprecated">
  16490. <doc>
  16491. <![CDATA[Builds a new AclStatus populated with the set properties.
  16492. @return AclStatus new AclStatus]]>
  16493. </doc>
  16494. </method>
  16495. <doc>
  16496. <![CDATA[Builder for creating new Acl instances.]]>
  16497. </doc>
  16498. </class>
  16499. <!-- end class org.apache.hadoop.fs.permission.AclStatus.Builder -->
  16500. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  16501. <class name="FsAction" extends="java.lang.Enum"
  16502. abstract="false"
  16503. static="false" final="true" visibility="public"
  16504. deprecated="not deprecated">
  16505. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  16506. abstract="false" native="false" synchronized="false"
  16507. static="true" final="false" visibility="public"
  16508. deprecated="not deprecated">
  16509. </method>
  16510. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  16511. abstract="false" native="false" synchronized="false"
  16512. static="true" final="false" visibility="public"
  16513. deprecated="not deprecated">
  16514. <param name="name" type="java.lang.String"/>
  16515. </method>
  16516. <method name="implies" return="boolean"
  16517. abstract="false" native="false" synchronized="false"
  16518. static="false" final="false" visibility="public"
  16519. deprecated="not deprecated">
  16520. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  16521. <doc>
  16522. <![CDATA[Return true if this action implies that action.
  16523. @param that]]>
  16524. </doc>
  16525. </method>
  16526. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  16527. abstract="false" native="false" synchronized="false"
  16528. static="false" final="false" visibility="public"
  16529. deprecated="not deprecated">
  16530. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  16531. <doc>
  16532. <![CDATA[AND operation.]]>
  16533. </doc>
  16534. </method>
  16535. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  16536. abstract="false" native="false" synchronized="false"
  16537. static="false" final="false" visibility="public"
  16538. deprecated="not deprecated">
  16539. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  16540. <doc>
  16541. <![CDATA[OR operation.]]>
  16542. </doc>
  16543. </method>
  16544. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  16545. abstract="false" native="false" synchronized="false"
  16546. static="false" final="false" visibility="public"
  16547. deprecated="not deprecated">
  16548. <doc>
  16549. <![CDATA[NOT operation.]]>
  16550. </doc>
  16551. </method>
  16552. <method name="getFsAction" return="org.apache.hadoop.fs.permission.FsAction"
  16553. abstract="false" native="false" synchronized="false"
  16554. static="true" final="false" visibility="public"
  16555. deprecated="not deprecated">
  16556. <param name="permission" type="java.lang.String"/>
  16557. <doc>
  16558. <![CDATA[Get the FsAction enum for String representation of permissions
  16559. @param permission
  16560. 3-character string representation of permission. ex: rwx
  16561. @return Returns FsAction enum if the corresponding FsAction exists for permission.
  16562. Otherwise returns null]]>
  16563. </doc>
  16564. </method>
  16565. <field name="SYMBOL" type="java.lang.String"
  16566. transient="false" volatile="false"
  16567. static="false" final="true" visibility="public"
  16568. deprecated="not deprecated">
  16569. <doc>
  16570. <![CDATA[Symbolic representation]]>
  16571. </doc>
  16572. </field>
  16573. <doc>
  16574. <![CDATA[File system actions, e.g. read, write, etc.]]>
  16575. </doc>
  16576. </class>
  16577. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  16578. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  16579. <class name="FsPermission" extends="java.lang.Object"
  16580. abstract="false"
  16581. static="false" final="false" visibility="public"
  16582. deprecated="not deprecated">
  16583. <implements name="org.apache.hadoop.io.Writable"/>
  16584. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  16585. static="false" final="false" visibility="public"
  16586. deprecated="not deprecated">
  16587. <doc>
  16588. <![CDATA[Construct by the given {@link FsAction}.
  16589. @param u user action
  16590. @param g group action
  16591. @param o other action]]>
  16592. </doc>
  16593. </constructor>
  16594. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  16595. static="false" final="false" visibility="public"
  16596. deprecated="not deprecated">
  16597. </constructor>
  16598. <constructor name="FsPermission" type="short"
  16599. static="false" final="false" visibility="public"
  16600. deprecated="not deprecated">
  16601. <doc>
  16602. <![CDATA[Construct by the given mode.
  16603. @param mode
  16604. @see #toShort()]]>
  16605. </doc>
  16606. </constructor>
  16607. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  16608. static="false" final="false" visibility="public"
  16609. deprecated="not deprecated">
  16610. <doc>
  16611. <![CDATA[Copy constructor
  16612. @param other other permission]]>
  16613. </doc>
  16614. </constructor>
  16615. <constructor name="FsPermission" type="java.lang.String"
  16616. static="false" final="false" visibility="public"
  16617. deprecated="not deprecated">
  16618. <doc>
  16619. <![CDATA[Construct by given mode, either in octal or symbolic format.
  16620. @param mode mode as a string, either in octal or symbolic format
  16621. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  16622. </doc>
  16623. </constructor>
  16624. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  16625. abstract="false" native="false" synchronized="false"
  16626. static="true" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <param name="permission" type="short"/>
  16629. <doc>
  16630. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  16631. </doc>
  16632. </method>
  16633. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  16634. abstract="false" native="false" synchronized="false"
  16635. static="false" final="false" visibility="public"
  16636. deprecated="not deprecated">
  16637. <doc>
  16638. <![CDATA[Return user {@link FsAction}.]]>
  16639. </doc>
  16640. </method>
  16641. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  16642. abstract="false" native="false" synchronized="false"
  16643. static="false" final="false" visibility="public"
  16644. deprecated="not deprecated">
  16645. <doc>
  16646. <![CDATA[Return group {@link FsAction}.]]>
  16647. </doc>
  16648. </method>
  16649. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  16650. abstract="false" native="false" synchronized="false"
  16651. static="false" final="false" visibility="public"
  16652. deprecated="not deprecated">
  16653. <doc>
  16654. <![CDATA[Return other {@link FsAction}.]]>
  16655. </doc>
  16656. </method>
  16657. <method name="fromShort"
  16658. abstract="false" native="false" synchronized="false"
  16659. static="false" final="false" visibility="public"
  16660. deprecated="not deprecated">
  16661. <param name="n" type="short"/>
  16662. </method>
  16663. <method name="write"
  16664. abstract="false" native="false" synchronized="false"
  16665. static="false" final="false" visibility="public"
  16666. deprecated="not deprecated">
  16667. <param name="out" type="java.io.DataOutput"/>
  16668. <exception name="IOException" type="java.io.IOException"/>
  16669. </method>
  16670. <method name="readFields"
  16671. abstract="false" native="false" synchronized="false"
  16672. static="false" final="false" visibility="public"
  16673. deprecated="not deprecated">
  16674. <param name="in" type="java.io.DataInput"/>
  16675. <exception name="IOException" type="java.io.IOException"/>
  16676. </method>
  16677. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  16678. abstract="false" native="false" synchronized="false"
  16679. static="true" final="false" visibility="public"
  16680. deprecated="not deprecated">
  16681. <param name="in" type="java.io.DataInput"/>
  16682. <exception name="IOException" type="java.io.IOException"/>
  16683. <doc>
  16684. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  16685. </doc>
  16686. </method>
  16687. <method name="toShort" return="short"
  16688. abstract="false" native="false" synchronized="false"
  16689. static="false" final="false" visibility="public"
  16690. deprecated="not deprecated">
  16691. <doc>
  16692. <![CDATA[Encode the object to a short.]]>
  16693. </doc>
  16694. </method>
  16695. <method name="toExtendedShort" return="short"
  16696. abstract="false" native="false" synchronized="false"
  16697. static="false" final="false" visibility="public"
  16698. deprecated="not deprecated">
  16699. <doc>
  16700. <![CDATA[Encodes the object to a short. Unlike {@link #toShort()}, this method may
  16701. return values outside the fixed range 00000 - 01777 if extended features
  16702. are encoded into this permission, such as the ACL bit.
  16703. @return short extended short representation of this permission]]>
  16704. </doc>
  16705. </method>
  16706. <method name="equals" return="boolean"
  16707. abstract="false" native="false" synchronized="false"
  16708. static="false" final="false" visibility="public"
  16709. deprecated="not deprecated">
  16710. <param name="obj" type="java.lang.Object"/>
  16711. </method>
  16712. <method name="hashCode" return="int"
  16713. abstract="false" native="false" synchronized="false"
  16714. static="false" final="false" visibility="public"
  16715. deprecated="not deprecated">
  16716. </method>
  16717. <method name="toString" return="java.lang.String"
  16718. abstract="false" native="false" synchronized="false"
  16719. static="false" final="false" visibility="public"
  16720. deprecated="not deprecated">
  16721. </method>
  16722. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  16723. abstract="false" native="false" synchronized="false"
  16724. static="false" final="false" visibility="public"
  16725. deprecated="not deprecated">
  16726. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16727. <doc>
  16728. <![CDATA[Apply a umask to this permission and return a new one.
  16729. The umask is used by create, mkdir, and other Hadoop filesystem operations.
  16730. The mode argument for these operations is modified by removing the bits
  16731. which are set in the umask. Thus, the umask limits the permissions which
  16732. newly created files and directories get.
  16733. @param umask The umask to use
  16734. @return The effective permission]]>
  16735. </doc>
  16736. </method>
  16737. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  16738. abstract="false" native="false" synchronized="false"
  16739. static="true" final="false" visibility="public"
  16740. deprecated="not deprecated">
  16741. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16742. <doc>
  16743. <![CDATA[Get the user file creation mask (umask)
  16744. {@code UMASK_LABEL} config param has umask value that is either symbolic
  16745. or octal.
  16746. Symbolic umask is applied relative to file mode creation mask;
  16747. the permission op characters '+' clears the corresponding bit in the mask,
  16748. '-' sets bits in the mask.
  16749. Octal umask, the specified bits are set in the file mode creation mask.
  16750. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  16751. </doc>
  16752. </method>
  16753. <method name="getStickyBit" return="boolean"
  16754. abstract="false" native="false" synchronized="false"
  16755. static="false" final="false" visibility="public"
  16756. deprecated="not deprecated">
  16757. </method>
  16758. <method name="getAclBit" return="boolean"
  16759. abstract="false" native="false" synchronized="false"
  16760. static="false" final="false" visibility="public"
  16761. deprecated="not deprecated">
  16762. <doc>
  16763. <![CDATA[Returns true if there is also an ACL (access control list).
  16764. @return boolean true if there is also an ACL (access control list).]]>
  16765. </doc>
  16766. </method>
  16767. <method name="getEncryptedBit" return="boolean"
  16768. abstract="false" native="false" synchronized="false"
  16769. static="false" final="false" visibility="public"
  16770. deprecated="not deprecated">
  16771. <doc>
  16772. <![CDATA[Returns true if the file is encrypted or directory is in an encryption zone]]>
  16773. </doc>
  16774. </method>
  16775. <method name="setUMask"
  16776. abstract="false" native="false" synchronized="false"
  16777. static="true" final="false" visibility="public"
  16778. deprecated="not deprecated">
  16779. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16780. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16781. <doc>
  16782. <![CDATA[Set the user file creation mask (umask)]]>
  16783. </doc>
  16784. </method>
  16785. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16786. abstract="false" native="false" synchronized="false"
  16787. static="true" final="false" visibility="public"
  16788. deprecated="not deprecated">
  16789. <doc>
  16790. <![CDATA[Get the default permission for directory and symlink.
  16791. In previous versions, this default permission was also used to
  16792. create files, so files created end up with ugo+x permission.
  16793. See HADOOP-9155 for detail.
  16794. Two new methods are added to solve this, please use
  16795. {@link FsPermission#getDirDefault()} for directory, and use
  16796. {@link FsPermission#getFileDefault()} for file.
  16797. This method is kept for compatibility.]]>
  16798. </doc>
  16799. </method>
  16800. <method name="getDirDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16801. abstract="false" native="false" synchronized="false"
  16802. static="true" final="false" visibility="public"
  16803. deprecated="not deprecated">
  16804. <doc>
  16805. <![CDATA[Get the default permission for directory.]]>
  16806. </doc>
  16807. </method>
  16808. <method name="getFileDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16809. abstract="false" native="false" synchronized="false"
  16810. static="true" final="false" visibility="public"
  16811. deprecated="not deprecated">
  16812. <doc>
  16813. <![CDATA[Get the default permission for file.]]>
  16814. </doc>
  16815. </method>
  16816. <method name="getCachePoolDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  16817. abstract="false" native="false" synchronized="false"
  16818. static="true" final="false" visibility="public"
  16819. deprecated="not deprecated">
  16820. <doc>
  16821. <![CDATA[Get the default permission for cache pools.]]>
  16822. </doc>
  16823. </method>
  16824. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  16825. abstract="false" native="false" synchronized="false"
  16826. static="true" final="false" visibility="public"
  16827. deprecated="not deprecated">
  16828. <param name="unixSymbolicPermission" type="java.lang.String"/>
  16829. <doc>
  16830. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  16831. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  16832. </doc>
  16833. </method>
  16834. <field name="MAX_PERMISSION_LENGTH" type="int"
  16835. transient="false" volatile="false"
  16836. static="true" final="true" visibility="public"
  16837. deprecated="not deprecated">
  16838. <doc>
  16839. <![CDATA[Maximum acceptable length of a permission string to parse]]>
  16840. </doc>
  16841. </field>
  16842. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  16843. transient="false" volatile="false"
  16844. static="true" final="true" visibility="public"
  16845. deprecated="not deprecated">
  16846. <doc>
  16847. <![CDATA[umask property label deprecated key and code in getUMask method
  16848. to accommodate it may be removed in version .23]]>
  16849. </doc>
  16850. </field>
  16851. <field name="UMASK_LABEL" type="java.lang.String"
  16852. transient="false" volatile="false"
  16853. static="true" final="true" visibility="public"
  16854. deprecated="not deprecated">
  16855. </field>
  16856. <field name="DEFAULT_UMASK" type="int"
  16857. transient="false" volatile="false"
  16858. static="true" final="true" visibility="public"
  16859. deprecated="not deprecated">
  16860. </field>
  16861. <doc>
  16862. <![CDATA[A class for file/directory permissions.]]>
  16863. </doc>
  16864. </class>
  16865. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  16866. </package>
  16867. <package name="org.apache.hadoop.fs.shell.find">
  16868. <!-- start class org.apache.hadoop.fs.shell.find.BaseExpression -->
  16869. <class name="BaseExpression" extends="java.lang.Object"
  16870. abstract="true"
  16871. static="false" final="false" visibility="public"
  16872. deprecated="not deprecated">
  16873. <implements name="org.apache.hadoop.fs.shell.find.Expression"/>
  16874. <implements name="org.apache.hadoop.conf.Configurable"/>
  16875. <constructor name="BaseExpression"
  16876. static="false" final="false" visibility="public"
  16877. deprecated="not deprecated">
  16878. </constructor>
  16879. <method name="setUsage"
  16880. abstract="false" native="false" synchronized="false"
  16881. static="false" final="false" visibility="protected"
  16882. deprecated="not deprecated">
  16883. <param name="usage" type="java.lang.String[]"/>
  16884. <doc>
  16885. <![CDATA[Sets the usage text for this {@link Expression}]]>
  16886. </doc>
  16887. </method>
  16888. <method name="setHelp"
  16889. abstract="false" native="false" synchronized="false"
  16890. static="false" final="false" visibility="protected"
  16891. deprecated="not deprecated">
  16892. <param name="help" type="java.lang.String[]"/>
  16893. <doc>
  16894. <![CDATA[Sets the help text for this {@link Expression}]]>
  16895. </doc>
  16896. </method>
  16897. <method name="getUsage" return="java.lang.String[]"
  16898. abstract="false" native="false" synchronized="false"
  16899. static="false" final="false" visibility="public"
  16900. deprecated="not deprecated">
  16901. </method>
  16902. <method name="getHelp" return="java.lang.String[]"
  16903. abstract="false" native="false" synchronized="false"
  16904. static="false" final="false" visibility="public"
  16905. deprecated="not deprecated">
  16906. </method>
  16907. <method name="setOptions"
  16908. abstract="false" native="false" synchronized="false"
  16909. static="false" final="false" visibility="public"
  16910. deprecated="not deprecated">
  16911. <param name="options" type="org.apache.hadoop.fs.shell.find.FindOptions"/>
  16912. <exception name="IOException" type="java.io.IOException"/>
  16913. </method>
  16914. <method name="prepare"
  16915. abstract="false" native="false" synchronized="false"
  16916. static="false" final="false" visibility="public"
  16917. deprecated="not deprecated">
  16918. <exception name="IOException" type="java.io.IOException"/>
  16919. </method>
  16920. <method name="finish"
  16921. abstract="false" native="false" synchronized="false"
  16922. static="false" final="false" visibility="public"
  16923. deprecated="not deprecated">
  16924. <exception name="IOException" type="java.io.IOException"/>
  16925. </method>
  16926. <method name="getOptions" return="org.apache.hadoop.fs.shell.find.FindOptions"
  16927. abstract="false" native="false" synchronized="false"
  16928. static="false" final="false" visibility="protected"
  16929. deprecated="not deprecated">
  16930. <doc>
  16931. <![CDATA[Return the options to be used by this expression.]]>
  16932. </doc>
  16933. </method>
  16934. <method name="setConf"
  16935. abstract="false" native="false" synchronized="false"
  16936. static="false" final="false" visibility="public"
  16937. deprecated="not deprecated">
  16938. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16939. </method>
  16940. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16941. abstract="false" native="false" synchronized="false"
  16942. static="false" final="false" visibility="public"
  16943. deprecated="not deprecated">
  16944. </method>
  16945. <method name="toString" return="java.lang.String"
  16946. abstract="false" native="false" synchronized="false"
  16947. static="false" final="false" visibility="public"
  16948. deprecated="not deprecated">
  16949. </method>
  16950. <method name="isAction" return="boolean"
  16951. abstract="false" native="false" synchronized="false"
  16952. static="false" final="false" visibility="public"
  16953. deprecated="not deprecated">
  16954. </method>
  16955. <method name="isOperator" return="boolean"
  16956. abstract="false" native="false" synchronized="false"
  16957. static="false" final="false" visibility="public"
  16958. deprecated="not deprecated">
  16959. </method>
  16960. <method name="getArguments" return="java.util.List"
  16961. abstract="false" native="false" synchronized="false"
  16962. static="false" final="false" visibility="protected"
  16963. deprecated="not deprecated">
  16964. <doc>
  16965. <![CDATA[Returns the arguments of this expression
  16966. @return list of argument strings]]>
  16967. </doc>
  16968. </method>
  16969. <method name="getArgument" return="java.lang.String"
  16970. abstract="false" native="false" synchronized="false"
  16971. static="false" final="false" visibility="protected"
  16972. deprecated="not deprecated">
  16973. <param name="position" type="int"/>
  16974. <exception name="IOException" type="java.io.IOException"/>
  16975. <doc>
  16976. <![CDATA[Returns the argument at the given position (starting from 1).
  16977. @param position
  16978. argument to be returned
  16979. @return requested argument
  16980. @throws IOException
  16981. if the argument doesn't exist or is null]]>
  16982. </doc>
  16983. </method>
  16984. <method name="getChildren" return="java.util.List"
  16985. abstract="false" native="false" synchronized="false"
  16986. static="false" final="false" visibility="protected"
  16987. deprecated="not deprecated">
  16988. <doc>
  16989. <![CDATA[Returns the children of this expression.
  16990. @return list of child expressions]]>
  16991. </doc>
  16992. </method>
  16993. <method name="getPrecedence" return="int"
  16994. abstract="false" native="false" synchronized="false"
  16995. static="false" final="false" visibility="public"
  16996. deprecated="not deprecated">
  16997. </method>
  16998. <method name="addChildren"
  16999. abstract="false" native="false" synchronized="false"
  17000. static="false" final="false" visibility="public"
  17001. deprecated="not deprecated">
  17002. <param name="exprs" type="java.util.Deque"/>
  17003. </method>
  17004. <method name="addChildren"
  17005. abstract="false" native="false" synchronized="false"
  17006. static="false" final="false" visibility="protected"
  17007. deprecated="not deprecated">
  17008. <param name="exprs" type="java.util.Deque"/>
  17009. <param name="count" type="int"/>
  17010. <doc>
  17011. <![CDATA[Add a specific number of children to this expression. The children are
  17012. popped off the head of the expressions.
  17013. @param exprs
  17014. deque of expressions from which to take the children
  17015. @param count
  17016. number of children to be added]]>
  17017. </doc>
  17018. </method>
  17019. <method name="addArguments"
  17020. abstract="false" native="false" synchronized="false"
  17021. static="false" final="false" visibility="public"
  17022. deprecated="not deprecated">
  17023. <param name="args" type="java.util.Deque"/>
  17024. </method>
  17025. <method name="addArguments"
  17026. abstract="false" native="false" synchronized="false"
  17027. static="false" final="false" visibility="protected"
  17028. deprecated="not deprecated">
  17029. <param name="args" type="java.util.Deque"/>
  17030. <param name="count" type="int"/>
  17031. <doc>
  17032. <![CDATA[Add a specific number of arguments to this expression. The children are
  17033. popped off the head of the expressions.
  17034. @param args
  17035. deque of arguments from which to take the argument
  17036. @param count
  17037. number of children to be added]]>
  17038. </doc>
  17039. </method>
  17040. <method name="addArgument"
  17041. abstract="false" native="false" synchronized="false"
  17042. static="false" final="false" visibility="protected"
  17043. deprecated="not deprecated">
  17044. <param name="arg" type="java.lang.String"/>
  17045. <doc>
  17046. <![CDATA[Add a single argument to this expression. The argument is popped off the
  17047. head of the expressions.
  17048. @param arg
  17049. argument to add to the expression]]>
  17050. </doc>
  17051. </method>
  17052. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  17053. abstract="false" native="false" synchronized="false"
  17054. static="false" final="false" visibility="protected"
  17055. deprecated="not deprecated">
  17056. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  17057. <param name="depth" type="int"/>
  17058. <exception name="IOException" type="java.io.IOException"/>
  17059. <doc>
  17060. <![CDATA[Returns the {@link FileStatus} from the {@link PathData} item. If the
  17061. current options require links to be followed then the returned file status
  17062. is that of the linked file.
  17063. @param item
  17064. PathData
  17065. @param depth
  17066. current depth in the process directories
  17067. @return FileStatus]]>
  17068. </doc>
  17069. </method>
  17070. <method name="getPath" return="org.apache.hadoop.fs.Path"
  17071. abstract="false" native="false" synchronized="false"
  17072. static="false" final="false" visibility="protected"
  17073. deprecated="not deprecated">
  17074. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  17075. <exception name="IOException" type="java.io.IOException"/>
  17076. <doc>
  17077. <![CDATA[Returns the {@link Path} from the {@link PathData} item.
  17078. @param item
  17079. PathData
  17080. @return Path]]>
  17081. </doc>
  17082. </method>
  17083. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  17084. abstract="false" native="false" synchronized="false"
  17085. static="false" final="false" visibility="protected"
  17086. deprecated="not deprecated">
  17087. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  17088. <exception name="IOException" type="java.io.IOException"/>
  17089. <doc>
  17090. <![CDATA[Returns the {@link FileSystem} associated with the {@link PathData} item.
  17091. @param item PathData
  17092. @return FileSystem]]>
  17093. </doc>
  17094. </method>
  17095. <doc>
  17096. <![CDATA[Abstract expression for use in the
  17097. {@link org.apache.hadoop.fs.shell.find.Find} command. Provides default
  17098. behavior for a no-argument primary expression.]]>
  17099. </doc>
  17100. </class>
  17101. <!-- end class org.apache.hadoop.fs.shell.find.BaseExpression -->
  17102. <!-- start interface org.apache.hadoop.fs.shell.find.Expression -->
  17103. <interface name="Expression" abstract="true"
  17104. static="false" final="false" visibility="public"
  17105. deprecated="not deprecated">
  17106. <method name="setOptions"
  17107. abstract="true" native="false" synchronized="false"
  17108. static="false" final="false" visibility="public"
  17109. deprecated="not deprecated">
  17110. <param name="options" type="org.apache.hadoop.fs.shell.find.FindOptions"/>
  17111. <exception name="IOException" type="java.io.IOException"/>
  17112. <doc>
  17113. <![CDATA[Set the options for this expression, called once before processing any
  17114. items.]]>
  17115. </doc>
  17116. </method>
  17117. <method name="prepare"
  17118. abstract="true" native="false" synchronized="false"
  17119. static="false" final="false" visibility="public"
  17120. deprecated="not deprecated">
  17121. <exception name="IOException" type="java.io.IOException"/>
  17122. <doc>
  17123. <![CDATA[Prepares the expression for execution, called once after setting options
  17124. and before processing any options.
  17125. @throws IOException]]>
  17126. </doc>
  17127. </method>
  17128. <method name="apply" return="org.apache.hadoop.fs.shell.find.Result"
  17129. abstract="true" native="false" synchronized="false"
  17130. static="false" final="false" visibility="public"
  17131. deprecated="not deprecated">
  17132. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  17133. <param name="depth" type="int"/>
  17134. <exception name="IOException" type="java.io.IOException"/>
  17135. <doc>
  17136. <![CDATA[Apply the expression to the specified item, called once for each item.
  17137. @param item {@link PathData} item to be processed
  17138. @param depth distance of the item from the command line argument
  17139. @return {@link Result} of applying the expression to the item]]>
  17140. </doc>
  17141. </method>
  17142. <method name="finish"
  17143. abstract="true" native="false" synchronized="false"
  17144. static="false" final="false" visibility="public"
  17145. deprecated="not deprecated">
  17146. <exception name="IOException" type="java.io.IOException"/>
  17147. <doc>
  17148. <![CDATA[Finishes the expression, called once after processing all items.
  17149. @throws IOException]]>
  17150. </doc>
  17151. </method>
  17152. <method name="getUsage" return="java.lang.String[]"
  17153. abstract="true" native="false" synchronized="false"
  17154. static="false" final="false" visibility="public"
  17155. deprecated="not deprecated">
  17156. <doc>
  17157. <![CDATA[Returns brief usage instructions for this expression. Multiple items should
  17158. be returned if there are multiple ways to use this expression.
  17159. @return array of usage instructions]]>
  17160. </doc>
  17161. </method>
  17162. <method name="getHelp" return="java.lang.String[]"
  17163. abstract="true" native="false" synchronized="false"
  17164. static="false" final="false" visibility="public"
  17165. deprecated="not deprecated">
  17166. <doc>
  17167. <![CDATA[Returns a description of the expression for use in help. Multiple lines
  17168. should be returned array items. Lines should be formated to 60 characters
  17169. or less.
  17170. @return array of description lines]]>
  17171. </doc>
  17172. </method>
  17173. <method name="isAction" return="boolean"
  17174. abstract="true" native="false" synchronized="false"
  17175. static="false" final="false" visibility="public"
  17176. deprecated="not deprecated">
  17177. <doc>
  17178. <![CDATA[Indicates whether this expression performs an action, i.e. provides output
  17179. back to the user.]]>
  17180. </doc>
  17181. </method>
  17182. <method name="isOperator" return="boolean"
  17183. abstract="true" native="false" synchronized="false"
  17184. static="false" final="false" visibility="public"
  17185. deprecated="not deprecated">
  17186. <doc>
  17187. <![CDATA[Identifies the expression as an operator rather than a primary.]]>
  17188. </doc>
  17189. </method>
  17190. <method name="getPrecedence" return="int"
  17191. abstract="true" native="false" synchronized="false"
  17192. static="false" final="false" visibility="public"
  17193. deprecated="not deprecated">
  17194. <doc>
  17195. <![CDATA[Returns the precedence of this expression
  17196. (only applicable to operators).]]>
  17197. </doc>
  17198. </method>
  17199. <method name="addChildren"
  17200. abstract="true" native="false" synchronized="false"
  17201. static="false" final="false" visibility="public"
  17202. deprecated="not deprecated">
  17203. <param name="expressions" type="java.util.Deque"/>
  17204. <doc>
  17205. <![CDATA[Adds children to this expression. Children are popped from the head of the
  17206. deque.
  17207. @param expressions
  17208. deque of expressions from which to take the children]]>
  17209. </doc>
  17210. </method>
  17211. <method name="addArguments"
  17212. abstract="true" native="false" synchronized="false"
  17213. static="false" final="false" visibility="public"
  17214. deprecated="not deprecated">
  17215. <param name="args" type="java.util.Deque"/>
  17216. <doc>
  17217. <![CDATA[Adds arguments to this expression. Arguments are popped from the head of
  17218. the deque and added to the front of the child list, ie last child added is
  17219. the first evaluated.
  17220. @param args deque of arguments from which to take expression arguments]]>
  17221. </doc>
  17222. </method>
  17223. <doc>
  17224. <![CDATA[Interface describing an expression to be used in the
  17225. {@link org.apache.hadoop.fs.shell.find.Find} command.]]>
  17226. </doc>
  17227. </interface>
  17228. <!-- end interface org.apache.hadoop.fs.shell.find.Expression -->
  17229. <!-- start class org.apache.hadoop.fs.shell.find.FilterExpression -->
  17230. <class name="FilterExpression" extends="java.lang.Object"
  17231. abstract="true"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. <implements name="org.apache.hadoop.fs.shell.find.Expression"/>
  17235. <implements name="org.apache.hadoop.conf.Configurable"/>
  17236. <constructor name="FilterExpression" type="org.apache.hadoop.fs.shell.find.Expression"
  17237. static="false" final="false" visibility="protected"
  17238. deprecated="not deprecated">
  17239. </constructor>
  17240. <method name="setOptions"
  17241. abstract="false" native="false" synchronized="false"
  17242. static="false" final="false" visibility="public"
  17243. deprecated="not deprecated">
  17244. <param name="options" type="org.apache.hadoop.fs.shell.find.FindOptions"/>
  17245. <exception name="IOException" type="java.io.IOException"/>
  17246. </method>
  17247. <method name="prepare"
  17248. abstract="false" native="false" synchronized="false"
  17249. static="false" final="false" visibility="public"
  17250. deprecated="not deprecated">
  17251. <exception name="IOException" type="java.io.IOException"/>
  17252. </method>
  17253. <method name="apply" return="org.apache.hadoop.fs.shell.find.Result"
  17254. abstract="false" native="false" synchronized="false"
  17255. static="false" final="false" visibility="public"
  17256. deprecated="not deprecated">
  17257. <param name="item" type="org.apache.hadoop.fs.shell.PathData"/>
  17258. <param name="depth" type="int"/>
  17259. <exception name="IOException" type="java.io.IOException"/>
  17260. </method>
  17261. <method name="finish"
  17262. abstract="false" native="false" synchronized="false"
  17263. static="false" final="false" visibility="public"
  17264. deprecated="not deprecated">
  17265. <exception name="IOException" type="java.io.IOException"/>
  17266. </method>
  17267. <method name="getUsage" return="java.lang.String[]"
  17268. abstract="false" native="false" synchronized="false"
  17269. static="false" final="false" visibility="public"
  17270. deprecated="not deprecated">
  17271. </method>
  17272. <method name="getHelp" return="java.lang.String[]"
  17273. abstract="false" native="false" synchronized="false"
  17274. static="false" final="false" visibility="public"
  17275. deprecated="not deprecated">
  17276. </method>
  17277. <method name="isAction" return="boolean"
  17278. abstract="false" native="false" synchronized="false"
  17279. static="false" final="false" visibility="public"
  17280. deprecated="not deprecated">
  17281. </method>
  17282. <method name="isOperator" return="boolean"
  17283. abstract="false" native="false" synchronized="false"
  17284. static="false" final="false" visibility="public"
  17285. deprecated="not deprecated">
  17286. </method>
  17287. <method name="getPrecedence" return="int"
  17288. abstract="false" native="false" synchronized="false"
  17289. static="false" final="false" visibility="public"
  17290. deprecated="not deprecated">
  17291. </method>
  17292. <method name="addChildren"
  17293. abstract="false" native="false" synchronized="false"
  17294. static="false" final="false" visibility="public"
  17295. deprecated="not deprecated">
  17296. <param name="expressions" type="java.util.Deque"/>
  17297. </method>
  17298. <method name="addArguments"
  17299. abstract="false" native="false" synchronized="false"
  17300. static="false" final="false" visibility="public"
  17301. deprecated="not deprecated">
  17302. <param name="args" type="java.util.Deque"/>
  17303. </method>
  17304. <method name="setConf"
  17305. abstract="false" native="false" synchronized="false"
  17306. static="false" final="false" visibility="public"
  17307. deprecated="not deprecated">
  17308. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17309. </method>
  17310. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17311. abstract="false" native="false" synchronized="false"
  17312. static="false" final="false" visibility="public"
  17313. deprecated="not deprecated">
  17314. </method>
  17315. <method name="toString" return="java.lang.String"
  17316. abstract="false" native="false" synchronized="false"
  17317. static="false" final="false" visibility="public"
  17318. deprecated="not deprecated">
  17319. </method>
  17320. <field name="expression" type="org.apache.hadoop.fs.shell.find.Expression"
  17321. transient="false" volatile="false"
  17322. static="false" final="false" visibility="protected"
  17323. deprecated="not deprecated">
  17324. </field>
  17325. <doc>
  17326. <![CDATA[Provides an abstract composition filter for the {@link Expression} interface.
  17327. Allows other {@link Expression} implementations to be reused without
  17328. inheritance.]]>
  17329. </doc>
  17330. </class>
  17331. <!-- end class org.apache.hadoop.fs.shell.find.FilterExpression -->
  17332. <!-- start class org.apache.hadoop.fs.shell.find.FindOptions -->
  17333. <class name="FindOptions" extends="java.lang.Object"
  17334. abstract="false"
  17335. static="false" final="false" visibility="public"
  17336. deprecated="not deprecated">
  17337. <constructor name="FindOptions"
  17338. static="false" final="false" visibility="public"
  17339. deprecated="not deprecated">
  17340. </constructor>
  17341. <method name="setOut"
  17342. abstract="false" native="false" synchronized="false"
  17343. static="false" final="false" visibility="public"
  17344. deprecated="not deprecated">
  17345. <param name="out" type="java.io.PrintStream"/>
  17346. <doc>
  17347. <![CDATA[Sets the output stream to be used.
  17348. @param out output stream to be used]]>
  17349. </doc>
  17350. </method>
  17351. <method name="getOut" return="java.io.PrintStream"
  17352. abstract="false" native="false" synchronized="false"
  17353. static="false" final="false" visibility="public"
  17354. deprecated="not deprecated">
  17355. <doc>
  17356. <![CDATA[Returns the output stream to be used.
  17357. @return output stream to be used]]>
  17358. </doc>
  17359. </method>
  17360. <method name="setErr"
  17361. abstract="false" native="false" synchronized="false"
  17362. static="false" final="false" visibility="public"
  17363. deprecated="not deprecated">
  17364. <param name="err" type="java.io.PrintStream"/>
  17365. <doc>
  17366. <![CDATA[Sets the error stream to be used.
  17367. @param err error stream to be used]]>
  17368. </doc>
  17369. </method>
  17370. <method name="getErr" return="java.io.PrintStream"
  17371. abstract="false" native="false" synchronized="false"
  17372. static="false" final="false" visibility="public"
  17373. deprecated="not deprecated">
  17374. <doc>
  17375. <![CDATA[Returns the error stream to be used.
  17376. @return error stream to be used]]>
  17377. </doc>
  17378. </method>
  17379. <method name="setIn"
  17380. abstract="false" native="false" synchronized="false"
  17381. static="false" final="false" visibility="public"
  17382. deprecated="not deprecated">
  17383. <param name="in" type="java.io.InputStream"/>
  17384. <doc>
  17385. <![CDATA[Sets the input stream to be used.
  17386. @param in input stream to be used]]>
  17387. </doc>
  17388. </method>
  17389. <method name="getIn" return="java.io.InputStream"
  17390. abstract="false" native="false" synchronized="false"
  17391. static="false" final="false" visibility="public"
  17392. deprecated="not deprecated">
  17393. <doc>
  17394. <![CDATA[Returns the input stream to be used.
  17395. @return input stream to be used]]>
  17396. </doc>
  17397. </method>
  17398. <method name="setDepthFirst"
  17399. abstract="false" native="false" synchronized="false"
  17400. static="false" final="false" visibility="public"
  17401. deprecated="not deprecated">
  17402. <param name="depthFirst" type="boolean"/>
  17403. <doc>
  17404. <![CDATA[Sets flag indicating whether the expression should be applied to the
  17405. directory tree depth first.
  17406. @param depthFirst true indicates depth first traversal]]>
  17407. </doc>
  17408. </method>
  17409. <method name="isDepthFirst" return="boolean"
  17410. abstract="false" native="false" synchronized="false"
  17411. static="false" final="false" visibility="public"
  17412. deprecated="not deprecated">
  17413. <doc>
  17414. <![CDATA[Should directory tree be traversed depth first?
  17415. @return true indicate depth first traversal]]>
  17416. </doc>
  17417. </method>
  17418. <method name="setFollowLink"
  17419. abstract="false" native="false" synchronized="false"
  17420. static="false" final="false" visibility="public"
  17421. deprecated="not deprecated">
  17422. <param name="followLink" type="boolean"/>
  17423. <doc>
  17424. <![CDATA[Sets flag indicating whether symbolic links should be followed.
  17425. @param followLink true indicates follow links]]>
  17426. </doc>
  17427. </method>
  17428. <method name="isFollowLink" return="boolean"
  17429. abstract="false" native="false" synchronized="false"
  17430. static="false" final="false" visibility="public"
  17431. deprecated="not deprecated">
  17432. <doc>
  17433. <![CDATA[Should symbolic links be follows?
  17434. @return true indicates links should be followed]]>
  17435. </doc>
  17436. </method>
  17437. <method name="setFollowArgLink"
  17438. abstract="false" native="false" synchronized="false"
  17439. static="false" final="false" visibility="public"
  17440. deprecated="not deprecated">
  17441. <param name="followArgLink" type="boolean"/>
  17442. <doc>
  17443. <![CDATA[Sets flag indicating whether command line symbolic links should be
  17444. followed.
  17445. @param followArgLink true indicates follow links]]>
  17446. </doc>
  17447. </method>
  17448. <method name="isFollowArgLink" return="boolean"
  17449. abstract="false" native="false" synchronized="false"
  17450. static="false" final="false" visibility="public"
  17451. deprecated="not deprecated">
  17452. <doc>
  17453. <![CDATA[Should command line symbolic links be follows?
  17454. @return true indicates links should be followed]]>
  17455. </doc>
  17456. </method>
  17457. <method name="getStartTime" return="long"
  17458. abstract="false" native="false" synchronized="false"
  17459. static="false" final="false" visibility="public"
  17460. deprecated="not deprecated">
  17461. <doc>
  17462. <![CDATA[Returns the start time of this {@link Find} command.
  17463. @return start time (in milliseconds since epoch)]]>
  17464. </doc>
  17465. </method>
  17466. <method name="setStartTime"
  17467. abstract="false" native="false" synchronized="false"
  17468. static="false" final="false" visibility="public"
  17469. deprecated="not deprecated">
  17470. <param name="time" type="long"/>
  17471. <doc>
  17472. <![CDATA[Set the start time of this {@link Find} command.
  17473. @param time start time (in milliseconds since epoch)]]>
  17474. </doc>
  17475. </method>
  17476. <method name="getMinDepth" return="int"
  17477. abstract="false" native="false" synchronized="false"
  17478. static="false" final="false" visibility="public"
  17479. deprecated="not deprecated">
  17480. <doc>
  17481. <![CDATA[Returns the minimum depth for applying expressions.
  17482. @return min depth]]>
  17483. </doc>
  17484. </method>
  17485. <method name="setMinDepth"
  17486. abstract="false" native="false" synchronized="false"
  17487. static="false" final="false" visibility="public"
  17488. deprecated="not deprecated">
  17489. <param name="minDepth" type="int"/>
  17490. <doc>
  17491. <![CDATA[Sets the minimum depth for applying expressions.
  17492. @param minDepth minimum depth]]>
  17493. </doc>
  17494. </method>
  17495. <method name="getMaxDepth" return="int"
  17496. abstract="false" native="false" synchronized="false"
  17497. static="false" final="false" visibility="public"
  17498. deprecated="not deprecated">
  17499. <doc>
  17500. <![CDATA[Returns the maximum depth for applying expressions.
  17501. @return maximum depth]]>
  17502. </doc>
  17503. </method>
  17504. <method name="setMaxDepth"
  17505. abstract="false" native="false" synchronized="false"
  17506. static="false" final="false" visibility="public"
  17507. deprecated="not deprecated">
  17508. <param name="maxDepth" type="int"/>
  17509. <doc>
  17510. <![CDATA[Sets the maximum depth for applying expressions.
  17511. @param maxDepth maximum depth]]>
  17512. </doc>
  17513. </method>
  17514. <method name="setCommandFactory"
  17515. abstract="false" native="false" synchronized="false"
  17516. static="false" final="false" visibility="public"
  17517. deprecated="not deprecated">
  17518. <param name="factory" type="org.apache.hadoop.fs.shell.CommandFactory"/>
  17519. <doc>
  17520. <![CDATA[Set the command factory.
  17521. @param factory {@link CommandFactory}]]>
  17522. </doc>
  17523. </method>
  17524. <method name="getCommandFactory" return="org.apache.hadoop.fs.shell.CommandFactory"
  17525. abstract="false" native="false" synchronized="false"
  17526. static="false" final="false" visibility="public"
  17527. deprecated="not deprecated">
  17528. <doc>
  17529. <![CDATA[Return the command factory.
  17530. @return {@link CommandFactory}]]>
  17531. </doc>
  17532. </method>
  17533. <method name="setConfiguration"
  17534. abstract="false" native="false" synchronized="false"
  17535. static="false" final="false" visibility="public"
  17536. deprecated="not deprecated">
  17537. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  17538. <doc>
  17539. <![CDATA[Set the {@link Configuration}
  17540. @param configuration {@link Configuration}]]>
  17541. </doc>
  17542. </method>
  17543. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  17544. abstract="false" native="false" synchronized="false"
  17545. static="false" final="false" visibility="public"
  17546. deprecated="not deprecated">
  17547. <doc>
  17548. <![CDATA[Return the {@link Configuration} return configuration {@link Configuration}]]>
  17549. </doc>
  17550. </method>
  17551. <doc>
  17552. <![CDATA[Options to be used by the {@link Find} command and its {@link Expression}s.]]>
  17553. </doc>
  17554. </class>
  17555. <!-- end class org.apache.hadoop.fs.shell.find.FindOptions -->
  17556. <!-- start class org.apache.hadoop.fs.shell.find.Result -->
  17557. <class name="Result" extends="java.lang.Object"
  17558. abstract="false"
  17559. static="false" final="true" visibility="public"
  17560. deprecated="not deprecated">
  17561. <method name="isDescend" return="boolean"
  17562. abstract="false" native="false" synchronized="false"
  17563. static="false" final="false" visibility="public"
  17564. deprecated="not deprecated">
  17565. <doc>
  17566. <![CDATA[Should further directories be descended.]]>
  17567. </doc>
  17568. </method>
  17569. <method name="isPass" return="boolean"
  17570. abstract="false" native="false" synchronized="false"
  17571. static="false" final="false" visibility="public"
  17572. deprecated="not deprecated">
  17573. <doc>
  17574. <![CDATA[Should processing continue.]]>
  17575. </doc>
  17576. </method>
  17577. <method name="combine" return="org.apache.hadoop.fs.shell.find.Result"
  17578. abstract="false" native="false" synchronized="false"
  17579. static="false" final="false" visibility="public"
  17580. deprecated="not deprecated">
  17581. <param name="other" type="org.apache.hadoop.fs.shell.find.Result"/>
  17582. <doc>
  17583. <![CDATA[Returns the combination of this and another result.]]>
  17584. </doc>
  17585. </method>
  17586. <method name="negate" return="org.apache.hadoop.fs.shell.find.Result"
  17587. abstract="false" native="false" synchronized="false"
  17588. static="false" final="false" visibility="public"
  17589. deprecated="not deprecated">
  17590. <doc>
  17591. <![CDATA[Negate this result.]]>
  17592. </doc>
  17593. </method>
  17594. <method name="toString" return="java.lang.String"
  17595. abstract="false" native="false" synchronized="false"
  17596. static="false" final="false" visibility="public"
  17597. deprecated="not deprecated">
  17598. </method>
  17599. <method name="hashCode" return="int"
  17600. abstract="false" native="false" synchronized="false"
  17601. static="false" final="false" visibility="public"
  17602. deprecated="not deprecated">
  17603. </method>
  17604. <method name="equals" return="boolean"
  17605. abstract="false" native="false" synchronized="false"
  17606. static="false" final="false" visibility="public"
  17607. deprecated="not deprecated">
  17608. <param name="obj" type="java.lang.Object"/>
  17609. </method>
  17610. <field name="PASS" type="org.apache.hadoop.fs.shell.find.Result"
  17611. transient="false" volatile="false"
  17612. static="true" final="true" visibility="public"
  17613. deprecated="not deprecated">
  17614. <doc>
  17615. <![CDATA[Result indicating {@link Expression} processing should continue.]]>
  17616. </doc>
  17617. </field>
  17618. <field name="FAIL" type="org.apache.hadoop.fs.shell.find.Result"
  17619. transient="false" volatile="false"
  17620. static="true" final="true" visibility="public"
  17621. deprecated="not deprecated">
  17622. <doc>
  17623. <![CDATA[Result indicating {@link Expression} processing should stop.]]>
  17624. </doc>
  17625. </field>
  17626. <field name="STOP" type="org.apache.hadoop.fs.shell.find.Result"
  17627. transient="false" volatile="false"
  17628. static="true" final="true" visibility="public"
  17629. deprecated="not deprecated">
  17630. <doc>
  17631. <![CDATA[Result indicating {@link Expression} processing should not descend any more
  17632. directories.]]>
  17633. </doc>
  17634. </field>
  17635. </class>
  17636. <!-- end class org.apache.hadoop.fs.shell.find.Result -->
  17637. </package>
  17638. <package name="org.apache.hadoop.fs.viewfs">
  17639. <!-- start class org.apache.hadoop.fs.viewfs.ConfigUtil -->
  17640. <class name="ConfigUtil" extends="java.lang.Object"
  17641. abstract="false"
  17642. static="false" final="false" visibility="public"
  17643. deprecated="not deprecated">
  17644. <constructor name="ConfigUtil"
  17645. static="false" final="false" visibility="public"
  17646. deprecated="not deprecated">
  17647. </constructor>
  17648. <method name="getConfigViewFsPrefix" return="java.lang.String"
  17649. abstract="false" native="false" synchronized="false"
  17650. static="true" final="false" visibility="public"
  17651. deprecated="not deprecated">
  17652. <param name="mountTableName" type="java.lang.String"/>
  17653. <doc>
  17654. <![CDATA[Get the config variable prefix for the specified mount table
  17655. @param mountTableName - the name of the mount table
  17656. @return the config variable prefix for the specified mount table]]>
  17657. </doc>
  17658. </method>
  17659. <method name="getConfigViewFsPrefix" return="java.lang.String"
  17660. abstract="false" native="false" synchronized="false"
  17661. static="true" final="false" visibility="public"
  17662. deprecated="not deprecated">
  17663. <doc>
  17664. <![CDATA[Get the config variable prefix for the default mount table
  17665. @return the config variable prefix for the default mount table]]>
  17666. </doc>
  17667. </method>
  17668. <method name="addLink"
  17669. abstract="false" native="false" synchronized="false"
  17670. static="true" final="false" visibility="public"
  17671. deprecated="not deprecated">
  17672. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17673. <param name="mountTableName" type="java.lang.String"/>
  17674. <param name="src" type="java.lang.String"/>
  17675. <param name="target" type="java.net.URI"/>
  17676. <doc>
  17677. <![CDATA[Add a link to the config for the specified mount table
  17678. @param conf - add the link to this conf
  17679. @param mountTableName
  17680. @param src - the src path name
  17681. @param target - the target URI link]]>
  17682. </doc>
  17683. </method>
  17684. <method name="addLink"
  17685. abstract="false" native="false" synchronized="false"
  17686. static="true" final="false" visibility="public"
  17687. deprecated="not deprecated">
  17688. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17689. <param name="src" type="java.lang.String"/>
  17690. <param name="target" type="java.net.URI"/>
  17691. <doc>
  17692. <![CDATA[Add a link to the config for the default mount table
  17693. @param conf - add the link to this conf
  17694. @param src - the src path name
  17695. @param target - the target URI link]]>
  17696. </doc>
  17697. </method>
  17698. <method name="setHomeDirConf"
  17699. abstract="false" native="false" synchronized="false"
  17700. static="true" final="false" visibility="public"
  17701. deprecated="not deprecated">
  17702. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17703. <param name="homedir" type="java.lang.String"/>
  17704. <doc>
  17705. <![CDATA[Add config variable for homedir for default mount table
  17706. @param conf - add to this conf
  17707. @param homedir - the home dir path starting with slash]]>
  17708. </doc>
  17709. </method>
  17710. <method name="setHomeDirConf"
  17711. abstract="false" native="false" synchronized="false"
  17712. static="true" final="false" visibility="public"
  17713. deprecated="not deprecated">
  17714. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17715. <param name="mountTableName" type="java.lang.String"/>
  17716. <param name="homedir" type="java.lang.String"/>
  17717. <doc>
  17718. <![CDATA[Add config variable for homedir the specified mount table
  17719. @param conf - add to this conf
  17720. @param homedir - the home dir path starting with slash]]>
  17721. </doc>
  17722. </method>
  17723. <method name="getHomeDirValue" return="java.lang.String"
  17724. abstract="false" native="false" synchronized="false"
  17725. static="true" final="false" visibility="public"
  17726. deprecated="not deprecated">
  17727. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17728. <doc>
  17729. <![CDATA[Get the value of the home dir conf value for default mount table
  17730. @param conf - from this conf
  17731. @return home dir value, null if variable is not in conf]]>
  17732. </doc>
  17733. </method>
  17734. <method name="getHomeDirValue" return="java.lang.String"
  17735. abstract="false" native="false" synchronized="false"
  17736. static="true" final="false" visibility="public"
  17737. deprecated="not deprecated">
  17738. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17739. <param name="mountTableName" type="java.lang.String"/>
  17740. <doc>
  17741. <![CDATA[Get the value of the home dir conf value for specfied mount table
  17742. @param conf - from this conf
  17743. @param mountTableName - the mount table
  17744. @return home dir value, null if variable is not in conf]]>
  17745. </doc>
  17746. </method>
  17747. <doc>
  17748. <![CDATA[Utilities for config variables of the viewFs See {@link ViewFs}]]>
  17749. </doc>
  17750. </class>
  17751. <!-- end class org.apache.hadoop.fs.viewfs.ConfigUtil -->
  17752. <!-- start interface org.apache.hadoop.fs.viewfs.Constants -->
  17753. <interface name="Constants" abstract="true"
  17754. static="false" final="false" visibility="public"
  17755. deprecated="not deprecated">
  17756. <field name="CONFIG_VIEWFS_PREFIX" type="java.lang.String"
  17757. transient="false" volatile="false"
  17758. static="true" final="true" visibility="public"
  17759. deprecated="not deprecated">
  17760. <doc>
  17761. <![CDATA[Prefix for the config variable prefix for the ViewFs mount-table]]>
  17762. </doc>
  17763. </field>
  17764. <field name="CONFIG_VIEWFS_HOMEDIR" type="java.lang.String"
  17765. transient="false" volatile="false"
  17766. static="true" final="true" visibility="public"
  17767. deprecated="not deprecated">
  17768. <doc>
  17769. <![CDATA[Prefix for the home dir for the mount table - if not specified
  17770. then the hadoop default value (/user) is used.]]>
  17771. </doc>
  17772. </field>
  17773. <field name="CONFIG_VIEWFS_DEFAULT_MOUNT_TABLE" type="java.lang.String"
  17774. transient="false" volatile="false"
  17775. static="true" final="true" visibility="public"
  17776. deprecated="not deprecated">
  17777. <doc>
  17778. <![CDATA[Config variable name for the default mount table.]]>
  17779. </doc>
  17780. </field>
  17781. <field name="CONFIG_VIEWFS_PREFIX_DEFAULT_MOUNT_TABLE" type="java.lang.String"
  17782. transient="false" volatile="false"
  17783. static="true" final="true" visibility="public"
  17784. deprecated="not deprecated">
  17785. <doc>
  17786. <![CDATA[Config variable full prefix for the default mount table.]]>
  17787. </doc>
  17788. </field>
  17789. <field name="CONFIG_VIEWFS_LINK" type="java.lang.String"
  17790. transient="false" volatile="false"
  17791. static="true" final="true" visibility="public"
  17792. deprecated="not deprecated">
  17793. <doc>
  17794. <![CDATA[Config variable for specifying a simple link]]>
  17795. </doc>
  17796. </field>
  17797. <field name="CONFIG_VIEWFS_LINK_MERGE" type="java.lang.String"
  17798. transient="false" volatile="false"
  17799. static="true" final="true" visibility="public"
  17800. deprecated="not deprecated">
  17801. <doc>
  17802. <![CDATA[Config variable for specifying a merge link]]>
  17803. </doc>
  17804. </field>
  17805. <field name="CONFIG_VIEWFS_LINK_MERGE_SLASH" type="java.lang.String"
  17806. transient="false" volatile="false"
  17807. static="true" final="true" visibility="public"
  17808. deprecated="not deprecated">
  17809. <doc>
  17810. <![CDATA[Config variable for specifying a merge of the root of the mount-table
  17811. with the root of another file system.]]>
  17812. </doc>
  17813. </field>
  17814. <field name="PERMISSION_555" type="org.apache.hadoop.fs.permission.FsPermission"
  17815. transient="false" volatile="false"
  17816. static="true" final="true" visibility="public"
  17817. deprecated="not deprecated">
  17818. </field>
  17819. <doc>
  17820. <![CDATA[Config variable prefixes for ViewFs -
  17821. see {@link org.apache.hadoop.fs.viewfs.ViewFs} for examples.
  17822. The mount table is specified in the config using these prefixes.
  17823. See {@link org.apache.hadoop.fs.viewfs.ConfigUtil} for convenience lib.]]>
  17824. </doc>
  17825. </interface>
  17826. <!-- end interface org.apache.hadoop.fs.viewfs.Constants -->
  17827. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  17828. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  17829. abstract="false"
  17830. static="false" final="false" visibility="public"
  17831. deprecated="not deprecated">
  17832. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  17833. static="false" final="false" visibility="public"
  17834. deprecated="not deprecated">
  17835. </constructor>
  17836. <constructor name="NotInMountpointException" type="java.lang.String"
  17837. static="false" final="false" visibility="public"
  17838. deprecated="not deprecated">
  17839. </constructor>
  17840. <method name="getMessage" return="java.lang.String"
  17841. abstract="false" native="false" synchronized="false"
  17842. static="false" final="false" visibility="public"
  17843. deprecated="not deprecated">
  17844. </method>
  17845. <doc>
  17846. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  17847. Exception class used in cases where the given path is not mounted
  17848. through viewfs.]]>
  17849. </doc>
  17850. </class>
  17851. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  17852. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  17853. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  17854. abstract="false"
  17855. static="false" final="false" visibility="public"
  17856. deprecated="not deprecated">
  17857. <constructor name="ViewFileSystem"
  17858. static="false" final="false" visibility="public"
  17859. deprecated="not deprecated">
  17860. <exception name="IOException" type="java.io.IOException"/>
  17861. <doc>
  17862. <![CDATA[This is the constructor with the signature needed by
  17863. {@link FileSystem#createFileSystem(URI, Configuration)}
  17864. After this constructor is called initialize() is called.
  17865. @throws IOException]]>
  17866. </doc>
  17867. </constructor>
  17868. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  17869. static="false" final="false" visibility="public"
  17870. deprecated="not deprecated">
  17871. <exception name="IOException" type="java.io.IOException"/>
  17872. <doc>
  17873. <![CDATA[Convenience Constructor for apps to call directly
  17874. @param conf
  17875. @throws IOException]]>
  17876. </doc>
  17877. </constructor>
  17878. <method name="getScheme" return="java.lang.String"
  17879. abstract="false" native="false" synchronized="false"
  17880. static="false" final="false" visibility="public"
  17881. deprecated="not deprecated">
  17882. <doc>
  17883. <![CDATA[Return the protocol scheme for the FileSystem.
  17884. <p/>
  17885. @return <code>viewfs</code>]]>
  17886. </doc>
  17887. </method>
  17888. <method name="initialize"
  17889. abstract="false" native="false" synchronized="false"
  17890. static="false" final="false" visibility="public"
  17891. deprecated="not deprecated">
  17892. <param name="theUri" type="java.net.URI"/>
  17893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17894. <exception name="IOException" type="java.io.IOException"/>
  17895. <doc>
  17896. <![CDATA[Called after a new FileSystem instance is constructed.
  17897. @param theUri a uri whose authority section names the host, port, etc. for
  17898. this FileSystem
  17899. @param conf the configuration]]>
  17900. </doc>
  17901. </method>
  17902. <method name="getTrashCanLocation" return="org.apache.hadoop.fs.Path"
  17903. abstract="false" native="false" synchronized="false"
  17904. static="false" final="false" visibility="public"
  17905. deprecated="not deprecated">
  17906. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17907. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17908. </method>
  17909. <method name="getUri" return="java.net.URI"
  17910. abstract="false" native="false" synchronized="false"
  17911. static="false" final="false" visibility="public"
  17912. deprecated="not deprecated">
  17913. </method>
  17914. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  17915. abstract="false" native="false" synchronized="false"
  17916. static="false" final="false" visibility="public"
  17917. deprecated="not deprecated">
  17918. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17919. <exception name="IOException" type="java.io.IOException"/>
  17920. </method>
  17921. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  17922. abstract="false" native="false" synchronized="false"
  17923. static="false" final="false" visibility="public"
  17924. deprecated="not deprecated">
  17925. </method>
  17926. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  17927. abstract="false" native="false" synchronized="false"
  17928. static="false" final="false" visibility="public"
  17929. deprecated="not deprecated">
  17930. </method>
  17931. <method name="setWorkingDirectory"
  17932. abstract="false" native="false" synchronized="false"
  17933. static="false" final="false" visibility="public"
  17934. deprecated="not deprecated">
  17935. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  17936. </method>
  17937. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  17938. abstract="false" native="false" synchronized="false"
  17939. static="false" final="false" visibility="public"
  17940. deprecated="not deprecated">
  17941. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17942. <param name="bufferSize" type="int"/>
  17943. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  17944. <exception name="IOException" type="java.io.IOException"/>
  17945. </method>
  17946. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  17947. abstract="false" native="false" synchronized="false"
  17948. static="false" final="false" visibility="public"
  17949. deprecated="not deprecated">
  17950. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17951. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17952. <param name="flags" type="java.util.EnumSet"/>
  17953. <param name="bufferSize" type="int"/>
  17954. <param name="replication" type="short"/>
  17955. <param name="blockSize" type="long"/>
  17956. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  17957. <exception name="IOException" type="java.io.IOException"/>
  17958. </method>
  17959. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  17960. abstract="false" native="false" synchronized="false"
  17961. static="false" final="false" visibility="public"
  17962. deprecated="not deprecated">
  17963. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17964. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  17965. <param name="overwrite" type="boolean"/>
  17966. <param name="bufferSize" type="int"/>
  17967. <param name="replication" type="short"/>
  17968. <param name="blockSize" type="long"/>
  17969. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  17970. <exception name="IOException" type="java.io.IOException"/>
  17971. </method>
  17972. <method name="delete" return="boolean"
  17973. abstract="false" native="false" synchronized="false"
  17974. static="false" final="false" visibility="public"
  17975. deprecated="not deprecated">
  17976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17977. <param name="recursive" type="boolean"/>
  17978. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17979. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17980. <exception name="IOException" type="java.io.IOException"/>
  17981. </method>
  17982. <method name="delete" return="boolean"
  17983. abstract="false" native="false" synchronized="false"
  17984. static="false" final="false" visibility="public"
  17985. deprecated="not deprecated">
  17986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  17987. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17988. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17989. <exception name="IOException" type="java.io.IOException"/>
  17990. </method>
  17991. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  17992. abstract="false" native="false" synchronized="false"
  17993. static="false" final="false" visibility="public"
  17994. deprecated="not deprecated">
  17995. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  17996. <param name="start" type="long"/>
  17997. <param name="len" type="long"/>
  17998. <exception name="IOException" type="java.io.IOException"/>
  17999. </method>
  18000. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  18001. abstract="false" native="false" synchronized="false"
  18002. static="false" final="false" visibility="public"
  18003. deprecated="not deprecated">
  18004. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18005. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18006. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18007. <exception name="IOException" type="java.io.IOException"/>
  18008. </method>
  18009. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  18010. abstract="false" native="false" synchronized="false"
  18011. static="false" final="false" visibility="public"
  18012. deprecated="not deprecated">
  18013. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18014. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18015. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18016. <exception name="IOException" type="java.io.IOException"/>
  18017. </method>
  18018. <method name="access"
  18019. abstract="false" native="false" synchronized="false"
  18020. static="false" final="false" visibility="public"
  18021. deprecated="not deprecated">
  18022. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18023. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  18024. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18025. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18026. <exception name="IOException" type="java.io.IOException"/>
  18027. </method>
  18028. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  18029. abstract="false" native="false" synchronized="false"
  18030. static="false" final="false" visibility="public"
  18031. deprecated="not deprecated">
  18032. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18033. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18034. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18035. <exception name="IOException" type="java.io.IOException"/>
  18036. </method>
  18037. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  18038. abstract="false" native="false" synchronized="false"
  18039. static="false" final="false" visibility="public"
  18040. deprecated="not deprecated">
  18041. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18042. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  18043. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18044. <exception name="IOException" type="java.io.IOException"/>
  18045. </method>
  18046. <method name="mkdirs" return="boolean"
  18047. abstract="false" native="false" synchronized="false"
  18048. static="false" final="false" visibility="public"
  18049. deprecated="not deprecated">
  18050. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18051. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18052. <exception name="IOException" type="java.io.IOException"/>
  18053. </method>
  18054. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  18055. abstract="false" native="false" synchronized="false"
  18056. static="false" final="false" visibility="public"
  18057. deprecated="not deprecated">
  18058. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18059. <param name="bufferSize" type="int"/>
  18060. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18061. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18062. <exception name="IOException" type="java.io.IOException"/>
  18063. </method>
  18064. <method name="rename" return="boolean"
  18065. abstract="false" native="false" synchronized="false"
  18066. static="false" final="false" visibility="public"
  18067. deprecated="not deprecated">
  18068. <param name="src" type="org.apache.hadoop.fs.Path"/>
  18069. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  18070. <exception name="IOException" type="java.io.IOException"/>
  18071. </method>
  18072. <method name="truncate" return="boolean"
  18073. abstract="false" native="false" synchronized="false"
  18074. static="false" final="false" visibility="public"
  18075. deprecated="not deprecated">
  18076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18077. <param name="newLength" type="long"/>
  18078. <exception name="IOException" type="java.io.IOException"/>
  18079. </method>
  18080. <method name="setOwner"
  18081. abstract="false" native="false" synchronized="false"
  18082. static="false" final="false" visibility="public"
  18083. deprecated="not deprecated">
  18084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18085. <param name="username" type="java.lang.String"/>
  18086. <param name="groupname" type="java.lang.String"/>
  18087. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18088. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18089. <exception name="IOException" type="java.io.IOException"/>
  18090. </method>
  18091. <method name="setPermission"
  18092. abstract="false" native="false" synchronized="false"
  18093. static="false" final="false" visibility="public"
  18094. deprecated="not deprecated">
  18095. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18096. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18097. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18098. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18099. <exception name="IOException" type="java.io.IOException"/>
  18100. </method>
  18101. <method name="setReplication" return="boolean"
  18102. abstract="false" native="false" synchronized="false"
  18103. static="false" final="false" visibility="public"
  18104. deprecated="not deprecated">
  18105. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18106. <param name="replication" type="short"/>
  18107. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18108. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18109. <exception name="IOException" type="java.io.IOException"/>
  18110. </method>
  18111. <method name="setTimes"
  18112. abstract="false" native="false" synchronized="false"
  18113. static="false" final="false" visibility="public"
  18114. deprecated="not deprecated">
  18115. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18116. <param name="mtime" type="long"/>
  18117. <param name="atime" type="long"/>
  18118. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18119. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18120. <exception name="IOException" type="java.io.IOException"/>
  18121. </method>
  18122. <method name="modifyAclEntries"
  18123. abstract="false" native="false" synchronized="false"
  18124. static="false" final="false" visibility="public"
  18125. deprecated="not deprecated">
  18126. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18127. <param name="aclSpec" type="java.util.List"/>
  18128. <exception name="IOException" type="java.io.IOException"/>
  18129. </method>
  18130. <method name="removeAclEntries"
  18131. abstract="false" native="false" synchronized="false"
  18132. static="false" final="false" visibility="public"
  18133. deprecated="not deprecated">
  18134. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18135. <param name="aclSpec" type="java.util.List"/>
  18136. <exception name="IOException" type="java.io.IOException"/>
  18137. </method>
  18138. <method name="removeDefaultAcl"
  18139. abstract="false" native="false" synchronized="false"
  18140. static="false" final="false" visibility="public"
  18141. deprecated="not deprecated">
  18142. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18143. <exception name="IOException" type="java.io.IOException"/>
  18144. </method>
  18145. <method name="removeAcl"
  18146. abstract="false" native="false" synchronized="false"
  18147. static="false" final="false" visibility="public"
  18148. deprecated="not deprecated">
  18149. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18150. <exception name="IOException" type="java.io.IOException"/>
  18151. </method>
  18152. <method name="setAcl"
  18153. abstract="false" native="false" synchronized="false"
  18154. static="false" final="false" visibility="public"
  18155. deprecated="not deprecated">
  18156. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18157. <param name="aclSpec" type="java.util.List"/>
  18158. <exception name="IOException" type="java.io.IOException"/>
  18159. </method>
  18160. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  18161. abstract="false" native="false" synchronized="false"
  18162. static="false" final="false" visibility="public"
  18163. deprecated="not deprecated">
  18164. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18165. <exception name="IOException" type="java.io.IOException"/>
  18166. </method>
  18167. <method name="setXAttr"
  18168. abstract="false" native="false" synchronized="false"
  18169. static="false" final="false" visibility="public"
  18170. deprecated="not deprecated">
  18171. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18172. <param name="name" type="java.lang.String"/>
  18173. <param name="value" type="byte[]"/>
  18174. <param name="flag" type="java.util.EnumSet"/>
  18175. <exception name="IOException" type="java.io.IOException"/>
  18176. </method>
  18177. <method name="getXAttr" return="byte[]"
  18178. abstract="false" native="false" synchronized="false"
  18179. static="false" final="false" visibility="public"
  18180. deprecated="not deprecated">
  18181. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18182. <param name="name" type="java.lang.String"/>
  18183. <exception name="IOException" type="java.io.IOException"/>
  18184. </method>
  18185. <method name="getXAttrs" return="java.util.Map"
  18186. abstract="false" native="false" synchronized="false"
  18187. static="false" final="false" visibility="public"
  18188. deprecated="not deprecated">
  18189. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18190. <exception name="IOException" type="java.io.IOException"/>
  18191. </method>
  18192. <method name="getXAttrs" return="java.util.Map"
  18193. abstract="false" native="false" synchronized="false"
  18194. static="false" final="false" visibility="public"
  18195. deprecated="not deprecated">
  18196. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18197. <param name="names" type="java.util.List"/>
  18198. <exception name="IOException" type="java.io.IOException"/>
  18199. </method>
  18200. <method name="listXAttrs" return="java.util.List"
  18201. abstract="false" native="false" synchronized="false"
  18202. static="false" final="false" visibility="public"
  18203. deprecated="not deprecated">
  18204. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18205. <exception name="IOException" type="java.io.IOException"/>
  18206. </method>
  18207. <method name="removeXAttr"
  18208. abstract="false" native="false" synchronized="false"
  18209. static="false" final="false" visibility="public"
  18210. deprecated="not deprecated">
  18211. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18212. <param name="name" type="java.lang.String"/>
  18213. <exception name="IOException" type="java.io.IOException"/>
  18214. </method>
  18215. <method name="setVerifyChecksum"
  18216. abstract="false" native="false" synchronized="false"
  18217. static="false" final="false" visibility="public"
  18218. deprecated="not deprecated">
  18219. <param name="verifyChecksum" type="boolean"/>
  18220. </method>
  18221. <method name="getDefaultBlockSize" return="long"
  18222. abstract="false" native="false" synchronized="false"
  18223. static="false" final="false" visibility="public"
  18224. deprecated="not deprecated">
  18225. </method>
  18226. <method name="getDefaultReplication" return="short"
  18227. abstract="false" native="false" synchronized="false"
  18228. static="false" final="false" visibility="public"
  18229. deprecated="not deprecated">
  18230. </method>
  18231. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  18232. abstract="false" native="false" synchronized="false"
  18233. static="false" final="false" visibility="public"
  18234. deprecated="not deprecated">
  18235. <exception name="IOException" type="java.io.IOException"/>
  18236. </method>
  18237. <method name="getDefaultBlockSize" return="long"
  18238. abstract="false" native="false" synchronized="false"
  18239. static="false" final="false" visibility="public"
  18240. deprecated="not deprecated">
  18241. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18242. </method>
  18243. <method name="getDefaultReplication" return="short"
  18244. abstract="false" native="false" synchronized="false"
  18245. static="false" final="false" visibility="public"
  18246. deprecated="not deprecated">
  18247. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18248. </method>
  18249. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  18250. abstract="false" native="false" synchronized="false"
  18251. static="false" final="false" visibility="public"
  18252. deprecated="not deprecated">
  18253. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18254. <exception name="IOException" type="java.io.IOException"/>
  18255. </method>
  18256. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  18257. abstract="false" native="false" synchronized="false"
  18258. static="false" final="false" visibility="public"
  18259. deprecated="not deprecated">
  18260. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18261. <exception name="IOException" type="java.io.IOException"/>
  18262. </method>
  18263. <method name="setWriteChecksum"
  18264. abstract="false" native="false" synchronized="false"
  18265. static="false" final="false" visibility="public"
  18266. deprecated="not deprecated">
  18267. <param name="writeChecksum" type="boolean"/>
  18268. </method>
  18269. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  18270. abstract="false" native="false" synchronized="false"
  18271. static="false" final="false" visibility="public"
  18272. deprecated="not deprecated">
  18273. </method>
  18274. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  18275. abstract="false" native="false" synchronized="false"
  18276. static="false" final="false" visibility="public"
  18277. deprecated="not deprecated">
  18278. </method>
  18279. <doc>
  18280. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  18281. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  18282. </doc>
  18283. </class>
  18284. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  18285. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint -->
  18286. <class name="ViewFileSystem.MountPoint" extends="java.lang.Object"
  18287. abstract="false"
  18288. static="true" final="false" visibility="public"
  18289. deprecated="not deprecated">
  18290. </class>
  18291. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint -->
  18292. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  18293. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  18294. abstract="false"
  18295. static="false" final="false" visibility="public"
  18296. deprecated="not deprecated">
  18297. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  18298. static="false" final="false" visibility="public"
  18299. deprecated="not deprecated">
  18300. <exception name="IOException" type="java.io.IOException"/>
  18301. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  18302. </constructor>
  18303. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  18304. abstract="false" native="false" synchronized="false"
  18305. static="false" final="false" visibility="public"
  18306. deprecated="not deprecated">
  18307. <exception name="IOException" type="java.io.IOException"/>
  18308. </method>
  18309. <method name="getUriDefaultPort" return="int"
  18310. abstract="false" native="false" synchronized="false"
  18311. static="false" final="false" visibility="public"
  18312. deprecated="not deprecated">
  18313. </method>
  18314. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  18315. abstract="false" native="false" synchronized="false"
  18316. static="false" final="false" visibility="public"
  18317. deprecated="not deprecated">
  18318. </method>
  18319. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  18320. abstract="false" native="false" synchronized="false"
  18321. static="false" final="false" visibility="public"
  18322. deprecated="not deprecated">
  18323. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18324. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18325. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18326. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18327. <exception name="IOException" type="java.io.IOException"/>
  18328. </method>
  18329. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  18330. abstract="false" native="false" synchronized="false"
  18331. static="false" final="false" visibility="public"
  18332. deprecated="not deprecated">
  18333. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18334. <param name="flag" type="java.util.EnumSet"/>
  18335. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18336. <param name="bufferSize" type="int"/>
  18337. <param name="replication" type="short"/>
  18338. <param name="blockSize" type="long"/>
  18339. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  18340. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  18341. <param name="createParent" type="boolean"/>
  18342. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18343. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  18344. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18345. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  18346. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  18347. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18348. <exception name="IOException" type="java.io.IOException"/>
  18349. </method>
  18350. <method name="delete" return="boolean"
  18351. abstract="false" native="false" synchronized="false"
  18352. static="false" final="false" visibility="public"
  18353. deprecated="not deprecated">
  18354. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18355. <param name="recursive" type="boolean"/>
  18356. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18357. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18358. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18359. <exception name="IOException" type="java.io.IOException"/>
  18360. </method>
  18361. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  18362. abstract="false" native="false" synchronized="false"
  18363. static="false" final="false" visibility="public"
  18364. deprecated="not deprecated">
  18365. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18366. <param name="start" type="long"/>
  18367. <param name="len" type="long"/>
  18368. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18369. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18370. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18371. <exception name="IOException" type="java.io.IOException"/>
  18372. </method>
  18373. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  18374. abstract="false" native="false" synchronized="false"
  18375. static="false" final="false" visibility="public"
  18376. deprecated="not deprecated">
  18377. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18378. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18379. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18380. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18381. <exception name="IOException" type="java.io.IOException"/>
  18382. </method>
  18383. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  18384. abstract="false" native="false" synchronized="false"
  18385. static="false" final="false" visibility="public"
  18386. deprecated="not deprecated">
  18387. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18388. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18389. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18390. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18391. <exception name="IOException" type="java.io.IOException"/>
  18392. </method>
  18393. <method name="access"
  18394. abstract="false" native="false" synchronized="false"
  18395. static="false" final="false" visibility="public"
  18396. deprecated="not deprecated">
  18397. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18398. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  18399. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18400. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18401. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18402. <exception name="IOException" type="java.io.IOException"/>
  18403. </method>
  18404. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  18405. abstract="false" native="false" synchronized="false"
  18406. static="false" final="false" visibility="public"
  18407. deprecated="not deprecated">
  18408. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18409. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18410. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18411. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  18412. <exception name="IOException" type="java.io.IOException"/>
  18413. </method>
  18414. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  18415. abstract="false" native="false" synchronized="false"
  18416. static="false" final="false" visibility="public"
  18417. deprecated="not deprecated">
  18418. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18419. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18420. <exception name="IOException" type="java.io.IOException"/>
  18421. </method>
  18422. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  18423. abstract="false" native="false" synchronized="false"
  18424. static="false" final="false" visibility="public"
  18425. deprecated="not deprecated">
  18426. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18427. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18428. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18429. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18430. <exception name="IOException" type="java.io.IOException"/>
  18431. </method>
  18432. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  18433. abstract="false" native="false" synchronized="false"
  18434. static="false" final="false" visibility="public"
  18435. deprecated="not deprecated">
  18436. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18437. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18438. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18439. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18440. <exception name="IOException" type="java.io.IOException"/>
  18441. </method>
  18442. <method name="mkdir"
  18443. abstract="false" native="false" synchronized="false"
  18444. static="false" final="false" visibility="public"
  18445. deprecated="not deprecated">
  18446. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18447. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18448. <param name="createParent" type="boolean"/>
  18449. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18450. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  18451. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18452. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18453. <exception name="IOException" type="java.io.IOException"/>
  18454. </method>
  18455. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  18456. abstract="false" native="false" synchronized="false"
  18457. static="false" final="false" visibility="public"
  18458. deprecated="not deprecated">
  18459. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18460. <param name="bufferSize" type="int"/>
  18461. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18462. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18463. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18464. <exception name="IOException" type="java.io.IOException"/>
  18465. </method>
  18466. <method name="truncate" return="boolean"
  18467. abstract="false" native="false" synchronized="false"
  18468. static="false" final="false" visibility="public"
  18469. deprecated="not deprecated">
  18470. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18471. <param name="newLength" type="long"/>
  18472. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18473. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18474. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18475. <exception name="IOException" type="java.io.IOException"/>
  18476. </method>
  18477. <method name="renameInternal"
  18478. abstract="false" native="false" synchronized="false"
  18479. static="false" final="false" visibility="public"
  18480. deprecated="not deprecated">
  18481. <param name="src" type="org.apache.hadoop.fs.Path"/>
  18482. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  18483. <param name="overwrite" type="boolean"/>
  18484. <exception name="IOException" type="java.io.IOException"/>
  18485. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18486. </method>
  18487. <method name="renameInternal"
  18488. abstract="false" native="false" synchronized="false"
  18489. static="false" final="false" visibility="public"
  18490. deprecated="not deprecated">
  18491. <param name="src" type="org.apache.hadoop.fs.Path"/>
  18492. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  18493. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18494. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  18495. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18496. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  18497. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18498. <exception name="IOException" type="java.io.IOException"/>
  18499. </method>
  18500. <method name="supportsSymlinks" return="boolean"
  18501. abstract="false" native="false" synchronized="false"
  18502. static="false" final="false" visibility="public"
  18503. deprecated="not deprecated">
  18504. </method>
  18505. <method name="createSymlink"
  18506. abstract="false" native="false" synchronized="false"
  18507. static="false" final="false" visibility="public"
  18508. deprecated="not deprecated">
  18509. <param name="target" type="org.apache.hadoop.fs.Path"/>
  18510. <param name="link" type="org.apache.hadoop.fs.Path"/>
  18511. <param name="createParent" type="boolean"/>
  18512. <exception name="IOException" type="java.io.IOException"/>
  18513. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18514. </method>
  18515. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  18516. abstract="false" native="false" synchronized="false"
  18517. static="false" final="false" visibility="public"
  18518. deprecated="not deprecated">
  18519. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18520. <exception name="IOException" type="java.io.IOException"/>
  18521. </method>
  18522. <method name="setOwner"
  18523. abstract="false" native="false" synchronized="false"
  18524. static="false" final="false" visibility="public"
  18525. deprecated="not deprecated">
  18526. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18527. <param name="username" type="java.lang.String"/>
  18528. <param name="groupname" type="java.lang.String"/>
  18529. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18530. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18531. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18532. <exception name="IOException" type="java.io.IOException"/>
  18533. </method>
  18534. <method name="setPermission"
  18535. abstract="false" native="false" synchronized="false"
  18536. static="false" final="false" visibility="public"
  18537. deprecated="not deprecated">
  18538. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18539. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  18540. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18541. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18542. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18543. <exception name="IOException" type="java.io.IOException"/>
  18544. </method>
  18545. <method name="setReplication" return="boolean"
  18546. abstract="false" native="false" synchronized="false"
  18547. static="false" final="false" visibility="public"
  18548. deprecated="not deprecated">
  18549. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18550. <param name="replication" type="short"/>
  18551. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18552. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18553. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18554. <exception name="IOException" type="java.io.IOException"/>
  18555. </method>
  18556. <method name="setTimes"
  18557. abstract="false" native="false" synchronized="false"
  18558. static="false" final="false" visibility="public"
  18559. deprecated="not deprecated">
  18560. <param name="f" type="org.apache.hadoop.fs.Path"/>
  18561. <param name="mtime" type="long"/>
  18562. <param name="atime" type="long"/>
  18563. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18564. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18565. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  18566. <exception name="IOException" type="java.io.IOException"/>
  18567. </method>
  18568. <method name="setVerifyChecksum"
  18569. abstract="false" native="false" synchronized="false"
  18570. static="false" final="false" visibility="public"
  18571. deprecated="not deprecated">
  18572. <param name="verifyChecksum" type="boolean"/>
  18573. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18574. <exception name="IOException" type="java.io.IOException"/>
  18575. </method>
  18576. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  18577. abstract="false" native="false" synchronized="false"
  18578. static="false" final="false" visibility="public"
  18579. deprecated="not deprecated">
  18580. </method>
  18581. <method name="getDelegationTokens" return="java.util.List"
  18582. abstract="false" native="false" synchronized="false"
  18583. static="false" final="false" visibility="public"
  18584. deprecated="not deprecated">
  18585. <param name="renewer" type="java.lang.String"/>
  18586. <exception name="IOException" type="java.io.IOException"/>
  18587. </method>
  18588. <method name="isValidName" return="boolean"
  18589. abstract="false" native="false" synchronized="false"
  18590. static="false" final="false" visibility="public"
  18591. deprecated="not deprecated">
  18592. <param name="src" type="java.lang.String"/>
  18593. </method>
  18594. <method name="modifyAclEntries"
  18595. abstract="false" native="false" synchronized="false"
  18596. static="false" final="false" visibility="public"
  18597. deprecated="not deprecated">
  18598. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18599. <param name="aclSpec" type="java.util.List"/>
  18600. <exception name="IOException" type="java.io.IOException"/>
  18601. </method>
  18602. <method name="removeAclEntries"
  18603. abstract="false" native="false" synchronized="false"
  18604. static="false" final="false" visibility="public"
  18605. deprecated="not deprecated">
  18606. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18607. <param name="aclSpec" type="java.util.List"/>
  18608. <exception name="IOException" type="java.io.IOException"/>
  18609. </method>
  18610. <method name="removeDefaultAcl"
  18611. abstract="false" native="false" synchronized="false"
  18612. static="false" final="false" visibility="public"
  18613. deprecated="not deprecated">
  18614. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18615. <exception name="IOException" type="java.io.IOException"/>
  18616. </method>
  18617. <method name="removeAcl"
  18618. abstract="false" native="false" synchronized="false"
  18619. static="false" final="false" visibility="public"
  18620. deprecated="not deprecated">
  18621. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18622. <exception name="IOException" type="java.io.IOException"/>
  18623. </method>
  18624. <method name="setAcl"
  18625. abstract="false" native="false" synchronized="false"
  18626. static="false" final="false" visibility="public"
  18627. deprecated="not deprecated">
  18628. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18629. <param name="aclSpec" type="java.util.List"/>
  18630. <exception name="IOException" type="java.io.IOException"/>
  18631. </method>
  18632. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  18633. abstract="false" native="false" synchronized="false"
  18634. static="false" final="false" visibility="public"
  18635. deprecated="not deprecated">
  18636. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18637. <exception name="IOException" type="java.io.IOException"/>
  18638. </method>
  18639. <method name="setXAttr"
  18640. abstract="false" native="false" synchronized="false"
  18641. static="false" final="false" visibility="public"
  18642. deprecated="not deprecated">
  18643. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18644. <param name="name" type="java.lang.String"/>
  18645. <param name="value" type="byte[]"/>
  18646. <param name="flag" type="java.util.EnumSet"/>
  18647. <exception name="IOException" type="java.io.IOException"/>
  18648. </method>
  18649. <method name="getXAttr" return="byte[]"
  18650. abstract="false" native="false" synchronized="false"
  18651. static="false" final="false" visibility="public"
  18652. deprecated="not deprecated">
  18653. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18654. <param name="name" type="java.lang.String"/>
  18655. <exception name="IOException" type="java.io.IOException"/>
  18656. </method>
  18657. <method name="getXAttrs" return="java.util.Map"
  18658. abstract="false" native="false" synchronized="false"
  18659. static="false" final="false" visibility="public"
  18660. deprecated="not deprecated">
  18661. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18662. <exception name="IOException" type="java.io.IOException"/>
  18663. </method>
  18664. <method name="getXAttrs" return="java.util.Map"
  18665. abstract="false" native="false" synchronized="false"
  18666. static="false" final="false" visibility="public"
  18667. deprecated="not deprecated">
  18668. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18669. <param name="names" type="java.util.List"/>
  18670. <exception name="IOException" type="java.io.IOException"/>
  18671. </method>
  18672. <method name="listXAttrs" return="java.util.List"
  18673. abstract="false" native="false" synchronized="false"
  18674. static="false" final="false" visibility="public"
  18675. deprecated="not deprecated">
  18676. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18677. <exception name="IOException" type="java.io.IOException"/>
  18678. </method>
  18679. <method name="removeXAttr"
  18680. abstract="false" native="false" synchronized="false"
  18681. static="false" final="false" visibility="public"
  18682. deprecated="not deprecated">
  18683. <param name="path" type="org.apache.hadoop.fs.Path"/>
  18684. <param name="name" type="java.lang.String"/>
  18685. <exception name="IOException" type="java.io.IOException"/>
  18686. </method>
  18687. <doc>
  18688. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  18689. mount table. The viewFs file system is implemented completely in memory on
  18690. the client side. The client-side mount table allows a client to provide a
  18691. customized view of a file system namespace that is composed from
  18692. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  18693. For example one could have a mount table that provides links such as
  18694. <ul>
  18695. <li> /user -> hdfs://nnContainingUserDir/user
  18696. <li> /project/foo -> hdfs://nnProject1/projects/foo
  18697. <li> /project/bar -> hdfs://nnProject2/projects/bar
  18698. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  18699. </ul>
  18700. ViewFs is specified with the following URI: <b>viewfs:///</b>
  18701. <p>
  18702. To use viewfs one would typically set the default file system in the
  18703. config (i.e. fs.default.name< = viewfs:///) along with the
  18704. mount table config variables as described below.
  18705. <p>
  18706. <b> ** Config variables to specify the mount table entries ** </b>
  18707. <p>
  18708. The file system is initialized from the standard Hadoop config through
  18709. config variables.
  18710. See {@link FsConstants} for URI and Scheme constants;
  18711. See {@link Constants} for config var constants;
  18712. see {@link ConfigUtil} for convenient lib.
  18713. <p>
  18714. All the mount table config entries for view fs are prefixed by
  18715. <b>fs.viewfs.mounttable.</b>
  18716. For example the above example can be specified with the following
  18717. config variables:
  18718. <ul>
  18719. <li> fs.viewfs.mounttable.default.link./user=
  18720. hdfs://nnContainingUserDir/user
  18721. <li> fs.viewfs.mounttable.default.link./project/foo=
  18722. hdfs://nnProject1/projects/foo
  18723. <li> fs.viewfs.mounttable.default.link./project/bar=
  18724. hdfs://nnProject2/projects/bar
  18725. <li> fs.viewfs.mounttable.default.link./tmp=
  18726. hdfs://nnTmp/privateTmpForUserXXX
  18727. </ul>
  18728. The default mount table (when no authority is specified) is
  18729. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  18730. The authority component of a URI can be used to specify a different mount
  18731. table. For example,
  18732. <ul>
  18733. <li> viewfs://sanjayMountable/
  18734. </ul>
  18735. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  18736. <p>
  18737. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  18738. <p>
  18739. One can also use "MergeMounts" to merge several directories (this is
  18740. sometimes called union-mounts or junction-mounts in the literature.
  18741. For example of the home directories are stored on say two file systems
  18742. (because they do not fit on one) then one could specify a mount
  18743. entry such as following merges two dirs:
  18744. <ul>
  18745. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  18746. </ul>
  18747. Such a mergeLink can be specified with the following config var where ","
  18748. is used as the separator for each of links to be merged:
  18749. <ul>
  18750. <li> fs.viewfs.mounttable.default.linkMerge./user=
  18751. hdfs://nnUser1/user,hdfs://nnUser1/user
  18752. </ul>
  18753. A special case of the merge mount is where mount table's root is merged
  18754. with the root (slash) of another file system:
  18755. <ul>
  18756. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  18757. </ul>
  18758. In this cases the root of the mount table is merged with the root of
  18759. <b>hdfs://nn99/ </b>]]>
  18760. </doc>
  18761. </class>
  18762. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  18763. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs.MountPoint -->
  18764. <class name="ViewFs.MountPoint" extends="java.lang.Object"
  18765. abstract="false"
  18766. static="true" final="false" visibility="public"
  18767. deprecated="not deprecated">
  18768. </class>
  18769. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs.MountPoint -->
  18770. </package>
  18771. <package name="org.apache.hadoop.ha">
  18772. <!-- start class org.apache.hadoop.ha.ActiveStandbyElector.ActiveNotFoundException -->
  18773. <class name="ActiveStandbyElector.ActiveNotFoundException" extends="java.lang.Exception"
  18774. abstract="false"
  18775. static="true" final="false" visibility="public"
  18776. deprecated="not deprecated">
  18777. <constructor name="ActiveNotFoundException"
  18778. static="false" final="false" visibility="public"
  18779. deprecated="not deprecated">
  18780. </constructor>
  18781. <doc>
  18782. <![CDATA[Exception thrown when there is no active leader]]>
  18783. </doc>
  18784. </class>
  18785. <!-- end class org.apache.hadoop.ha.ActiveStandbyElector.ActiveNotFoundException -->
  18786. <!-- start interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback -->
  18787. <interface name="ActiveStandbyElector.ActiveStandbyElectorCallback" abstract="true"
  18788. static="true" final="false" visibility="public"
  18789. deprecated="not deprecated">
  18790. <method name="becomeActive"
  18791. abstract="true" native="false" synchronized="false"
  18792. static="false" final="false" visibility="public"
  18793. deprecated="not deprecated">
  18794. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  18795. <doc>
  18796. <![CDATA[This method is called when the app becomes the active leader.
  18797. If the service fails to become active, it should throw
  18798. ServiceFailedException. This will cause the elector to
  18799. sleep for a short period, then re-join the election.
  18800. Callback implementations are expected to manage their own
  18801. timeouts (e.g. when making an RPC to a remote node).]]>
  18802. </doc>
  18803. </method>
  18804. <method name="becomeStandby"
  18805. abstract="true" native="false" synchronized="false"
  18806. static="false" final="false" visibility="public"
  18807. deprecated="not deprecated">
  18808. <doc>
  18809. <![CDATA[This method is called when the app becomes a standby]]>
  18810. </doc>
  18811. </method>
  18812. <method name="enterNeutralMode"
  18813. abstract="true" native="false" synchronized="false"
  18814. static="false" final="false" visibility="public"
  18815. deprecated="not deprecated">
  18816. <doc>
  18817. <![CDATA[If the elector gets disconnected from Zookeeper and does not know about
  18818. the lock state, then it will notify the service via the enterNeutralMode
  18819. interface. The service may choose to ignore this or stop doing state
  18820. changing operations. Upon reconnection, the elector verifies the leader
  18821. status and calls back on the becomeActive and becomeStandby app
  18822. interfaces. <br/>
  18823. Zookeeper disconnects can happen due to network issues or loss of
  18824. Zookeeper quorum. Thus enterNeutralMode can be used to guard against
  18825. split-brain issues. In such situations it might be prudent to call
  18826. becomeStandby too. However, such state change operations might be
  18827. expensive and enterNeutralMode can help guard against doing that for
  18828. transient issues.]]>
  18829. </doc>
  18830. </method>
  18831. <method name="notifyFatalError"
  18832. abstract="true" native="false" synchronized="false"
  18833. static="false" final="false" visibility="public"
  18834. deprecated="not deprecated">
  18835. <param name="errorMessage" type="java.lang.String"/>
  18836. <doc>
  18837. <![CDATA[If there is any fatal error (e.g. wrong ACL's, unexpected Zookeeper
  18838. errors or Zookeeper persistent unavailability) then notifyFatalError is
  18839. called to notify the app about it.]]>
  18840. </doc>
  18841. </method>
  18842. <method name="fenceOldActive"
  18843. abstract="true" native="false" synchronized="false"
  18844. static="false" final="false" visibility="public"
  18845. deprecated="not deprecated">
  18846. <param name="oldActiveData" type="byte[]"/>
  18847. <doc>
  18848. <![CDATA[If an old active has failed, rather than exited gracefully, then
  18849. the new active may need to take some fencing actions against it
  18850. before proceeding with failover.
  18851. @param oldActiveData the application data provided by the prior active]]>
  18852. </doc>
  18853. </method>
  18854. <doc>
  18855. <![CDATA[Callback interface to interact with the ActiveStandbyElector object. <br/>
  18856. The application will be notified with a callback only on state changes
  18857. (i.e. there will never be successive calls to becomeActive without an
  18858. intermediate call to enterNeutralMode). <br/>
  18859. The callbacks will be running on Zookeeper client library threads. The
  18860. application should return from these callbacks quickly so as not to impede
  18861. Zookeeper client library performance and notifications. The app will
  18862. typically remember the state change and return from the callback. It will
  18863. then proceed with implementing actions around that state change. It is
  18864. possible to be called back again while these actions are in flight and the
  18865. app should handle this scenario.]]>
  18866. </doc>
  18867. </interface>
  18868. <!-- end interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback -->
  18869. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  18870. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  18871. abstract="false"
  18872. static="false" final="false" visibility="public"
  18873. deprecated="not deprecated">
  18874. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  18875. static="false" final="false" visibility="public"
  18876. deprecated="not deprecated">
  18877. </constructor>
  18878. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  18879. static="false" final="false" visibility="public"
  18880. deprecated="not deprecated">
  18881. </constructor>
  18882. <doc>
  18883. <![CDATA[Indicates that the operator has specified an invalid configuration
  18884. for fencing methods.]]>
  18885. </doc>
  18886. </class>
  18887. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  18888. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  18889. <class name="FailoverFailedException" extends="java.lang.Exception"
  18890. abstract="false"
  18891. static="false" final="false" visibility="public"
  18892. deprecated="not deprecated">
  18893. <constructor name="FailoverFailedException" type="java.lang.String"
  18894. static="false" final="false" visibility="public"
  18895. deprecated="not deprecated">
  18896. </constructor>
  18897. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  18898. static="false" final="false" visibility="public"
  18899. deprecated="not deprecated">
  18900. </constructor>
  18901. <doc>
  18902. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  18903. </doc>
  18904. </class>
  18905. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  18906. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  18907. <interface name="FenceMethod" abstract="true"
  18908. static="false" final="false" visibility="public"
  18909. deprecated="not deprecated">
  18910. <method name="checkArgs"
  18911. abstract="true" native="false" synchronized="false"
  18912. static="false" final="false" visibility="public"
  18913. deprecated="not deprecated">
  18914. <param name="args" type="java.lang.String"/>
  18915. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  18916. <doc>
  18917. <![CDATA[Verify that the given fencing method's arguments are valid.
  18918. @param args the arguments provided in the configuration. This may
  18919. be null if the operator did not configure any arguments.
  18920. @throws BadFencingConfigurationException if the arguments are invalid]]>
  18921. </doc>
  18922. </method>
  18923. <method name="tryFence" return="boolean"
  18924. abstract="true" native="false" synchronized="false"
  18925. static="false" final="false" visibility="public"
  18926. deprecated="not deprecated">
  18927. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  18928. <param name="args" type="java.lang.String"/>
  18929. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  18930. <doc>
  18931. <![CDATA[Attempt to fence the target node.
  18932. @param serviceAddr the address (host:ipcport) of the service to fence
  18933. @param args the configured arguments, which were checked at startup by
  18934. {@link #checkArgs(String)}
  18935. @return true if fencing was successful, false if unsuccessful or
  18936. indeterminate
  18937. @throws BadFencingConfigurationException if the configuration was
  18938. determined to be invalid only at runtime]]>
  18939. </doc>
  18940. </method>
  18941. <doc>
  18942. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  18943. another node from making continued progress. This might be implemented
  18944. by killing a process on the other node, by denying the other node's
  18945. access to shared storage, or by accessing a PDU to cut the other node's
  18946. power.
  18947. <p>
  18948. Since these methods are often vendor- or device-specific, operators
  18949. may implement this interface in order to achieve fencing.
  18950. <p>
  18951. Fencing is configured by the operator as an ordered list of methods to
  18952. attempt. Each method will be tried in turn, and the next in the list
  18953. will only be attempted if the previous one fails. See {@link NodeFencer}
  18954. for more information.
  18955. <p>
  18956. If an implementation also implements {@link Configurable} then its
  18957. <code>setConf</code> method will be called upon instantiation.]]>
  18958. </doc>
  18959. </interface>
  18960. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  18961. <!-- start class org.apache.hadoop.ha.HAAdmin.UsageInfo -->
  18962. <class name="HAAdmin.UsageInfo" extends="java.lang.Object"
  18963. abstract="false"
  18964. static="true" final="false" visibility="protected"
  18965. deprecated="not deprecated">
  18966. <constructor name="UsageInfo" type="java.lang.String, java.lang.String"
  18967. static="false" final="false" visibility="public"
  18968. deprecated="not deprecated">
  18969. </constructor>
  18970. <field name="args" type="java.lang.String"
  18971. transient="false" volatile="false"
  18972. static="false" final="true" visibility="public"
  18973. deprecated="not deprecated">
  18974. </field>
  18975. <field name="help" type="java.lang.String"
  18976. transient="false" volatile="false"
  18977. static="false" final="true" visibility="public"
  18978. deprecated="not deprecated">
  18979. </field>
  18980. </class>
  18981. <!-- end class org.apache.hadoop.ha.HAAdmin.UsageInfo -->
  18982. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  18983. <interface name="HAServiceProtocol" abstract="true"
  18984. static="false" final="false" visibility="public"
  18985. deprecated="not deprecated">
  18986. <method name="monitorHealth"
  18987. abstract="true" native="false" synchronized="false"
  18988. static="false" final="false" visibility="public"
  18989. deprecated="not deprecated">
  18990. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  18991. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  18992. <exception name="IOException" type="java.io.IOException"/>
  18993. <doc>
  18994. <![CDATA[Monitor the health of service. This periodically called by the HA
  18995. frameworks to monitor the health of the service.
  18996. Service is expected to perform checks to ensure it is functional.
  18997. If the service is not healthy due to failure or partial failure,
  18998. it is expected to throw {@link HealthCheckFailedException}.
  18999. The definition of service not healthy is left to the service.
  19000. Note that when health check of an Active service fails,
  19001. failover to standby may be done.
  19002. @throws HealthCheckFailedException
  19003. if the health check of a service fails.
  19004. @throws AccessControlException
  19005. if access is denied.
  19006. @throws IOException
  19007. if other errors happen]]>
  19008. </doc>
  19009. </method>
  19010. <method name="transitionToActive"
  19011. abstract="true" native="false" synchronized="false"
  19012. static="false" final="false" visibility="public"
  19013. deprecated="not deprecated">
  19014. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19015. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  19016. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19017. <exception name="IOException" type="java.io.IOException"/>
  19018. <doc>
  19019. <![CDATA[Request service to transition to active state. No operation, if the
  19020. service is already in active state.
  19021. @throws ServiceFailedException
  19022. if transition from standby to active fails.
  19023. @throws AccessControlException
  19024. if access is denied.
  19025. @throws IOException
  19026. if other errors happen]]>
  19027. </doc>
  19028. </method>
  19029. <method name="transitionToStandby"
  19030. abstract="true" native="false" synchronized="false"
  19031. static="false" final="false" visibility="public"
  19032. deprecated="not deprecated">
  19033. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19034. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  19035. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19036. <exception name="IOException" type="java.io.IOException"/>
  19037. <doc>
  19038. <![CDATA[Request service to transition to standby state. No operation, if the
  19039. service is already in standby state.
  19040. @throws ServiceFailedException
  19041. if transition from active to standby fails.
  19042. @throws AccessControlException
  19043. if access is denied.
  19044. @throws IOException
  19045. if other errors happen]]>
  19046. </doc>
  19047. </method>
  19048. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  19049. abstract="true" native="false" synchronized="false"
  19050. static="false" final="false" visibility="public"
  19051. deprecated="not deprecated">
  19052. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19053. <exception name="IOException" type="java.io.IOException"/>
  19054. <doc>
  19055. <![CDATA[Return the current status of the service. The status indicates
  19056. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  19057. some additional information. {@see HAServiceStatus}
  19058. @throws AccessControlException
  19059. if access is denied.
  19060. @throws IOException
  19061. if other errors happen]]>
  19062. </doc>
  19063. </method>
  19064. <field name="versionID" type="long"
  19065. transient="false" volatile="false"
  19066. static="true" final="true" visibility="public"
  19067. deprecated="not deprecated">
  19068. <doc>
  19069. <![CDATA[Initial version of the protocol]]>
  19070. </doc>
  19071. </field>
  19072. <doc>
  19073. <![CDATA[Protocol interface that provides High Availability related primitives to
  19074. monitor and fail-over the service.
  19075. This interface could be used by HA frameworks to manage the service.]]>
  19076. </doc>
  19077. </interface>
  19078. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  19079. <!-- start class org.apache.hadoop.ha.HAServiceProtocol.HAServiceState -->
  19080. <class name="HAServiceProtocol.HAServiceState" extends="java.lang.Enum"
  19081. abstract="false"
  19082. static="true" final="true" visibility="public"
  19083. deprecated="not deprecated">
  19084. <method name="values" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState[]"
  19085. abstract="false" native="false" synchronized="false"
  19086. static="true" final="false" visibility="public"
  19087. deprecated="not deprecated">
  19088. </method>
  19089. <method name="valueOf" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  19090. abstract="false" native="false" synchronized="false"
  19091. static="true" final="false" visibility="public"
  19092. deprecated="not deprecated">
  19093. <param name="name" type="java.lang.String"/>
  19094. </method>
  19095. <method name="toString" return="java.lang.String"
  19096. abstract="false" native="false" synchronized="false"
  19097. static="false" final="false" visibility="public"
  19098. deprecated="not deprecated">
  19099. </method>
  19100. <doc>
  19101. <![CDATA[An HA service may be in active or standby state. During startup, it is in
  19102. an unknown INITIALIZING state. During shutdown, it is in the STOPPING state
  19103. and can no longer return to active/standby states.]]>
  19104. </doc>
  19105. </class>
  19106. <!-- end class org.apache.hadoop.ha.HAServiceProtocol.HAServiceState -->
  19107. <!-- start class org.apache.hadoop.ha.HAServiceProtocol.RequestSource -->
  19108. <class name="HAServiceProtocol.RequestSource" extends="java.lang.Enum"
  19109. abstract="false"
  19110. static="true" final="true" visibility="public"
  19111. deprecated="not deprecated">
  19112. <method name="values" return="org.apache.hadoop.ha.HAServiceProtocol.RequestSource[]"
  19113. abstract="false" native="false" synchronized="false"
  19114. static="true" final="false" visibility="public"
  19115. deprecated="not deprecated">
  19116. </method>
  19117. <method name="valueOf" return="org.apache.hadoop.ha.HAServiceProtocol.RequestSource"
  19118. abstract="false" native="false" synchronized="false"
  19119. static="true" final="false" visibility="public"
  19120. deprecated="not deprecated">
  19121. <param name="name" type="java.lang.String"/>
  19122. </method>
  19123. </class>
  19124. <!-- end class org.apache.hadoop.ha.HAServiceProtocol.RequestSource -->
  19125. <!-- start class org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo -->
  19126. <class name="HAServiceProtocol.StateChangeRequestInfo" extends="java.lang.Object"
  19127. abstract="false"
  19128. static="true" final="false" visibility="public"
  19129. deprecated="not deprecated">
  19130. <constructor name="StateChangeRequestInfo" type="org.apache.hadoop.ha.HAServiceProtocol.RequestSource"
  19131. static="false" final="false" visibility="public"
  19132. deprecated="not deprecated">
  19133. </constructor>
  19134. <method name="getSource" return="org.apache.hadoop.ha.HAServiceProtocol.RequestSource"
  19135. abstract="false" native="false" synchronized="false"
  19136. static="false" final="false" visibility="public"
  19137. deprecated="not deprecated">
  19138. </method>
  19139. <doc>
  19140. <![CDATA[Information describing the source for a request to change state.
  19141. This is used to differentiate requests from automatic vs CLI
  19142. failover controllers, and in the future may include epoch
  19143. information.]]>
  19144. </doc>
  19145. </class>
  19146. <!-- end class org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo -->
  19147. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  19148. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  19149. abstract="false"
  19150. static="false" final="false" visibility="public"
  19151. deprecated="not deprecated">
  19152. <constructor name="HAServiceProtocolHelper"
  19153. static="false" final="false" visibility="public"
  19154. deprecated="not deprecated">
  19155. </constructor>
  19156. <method name="monitorHealth"
  19157. abstract="false" native="false" synchronized="false"
  19158. static="true" final="false" visibility="public"
  19159. deprecated="not deprecated">
  19160. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  19161. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19162. <exception name="IOException" type="java.io.IOException"/>
  19163. </method>
  19164. <method name="transitionToActive"
  19165. abstract="false" native="false" synchronized="false"
  19166. static="true" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  19169. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19170. <exception name="IOException" type="java.io.IOException"/>
  19171. </method>
  19172. <method name="transitionToStandby"
  19173. abstract="false" native="false" synchronized="false"
  19174. static="true" final="false" visibility="public"
  19175. deprecated="not deprecated">
  19176. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  19177. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  19178. <exception name="IOException" type="java.io.IOException"/>
  19179. </method>
  19180. <doc>
  19181. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  19182. unwraps the {@link RemoteException} to specific exceptions.]]>
  19183. </doc>
  19184. </class>
  19185. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  19186. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  19187. <class name="HAServiceTarget" extends="java.lang.Object"
  19188. abstract="true"
  19189. static="false" final="false" visibility="public"
  19190. deprecated="not deprecated">
  19191. <constructor name="HAServiceTarget"
  19192. static="false" final="false" visibility="public"
  19193. deprecated="not deprecated">
  19194. </constructor>
  19195. <method name="getAddress" return="java.net.InetSocketAddress"
  19196. abstract="true" native="false" synchronized="false"
  19197. static="false" final="false" visibility="public"
  19198. deprecated="not deprecated">
  19199. <doc>
  19200. <![CDATA[@return the IPC address of the target node.]]>
  19201. </doc>
  19202. </method>
  19203. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  19204. abstract="true" native="false" synchronized="false"
  19205. static="false" final="false" visibility="public"
  19206. deprecated="not deprecated">
  19207. <doc>
  19208. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  19209. </doc>
  19210. </method>
  19211. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  19212. abstract="true" native="false" synchronized="false"
  19213. static="false" final="false" visibility="public"
  19214. deprecated="not deprecated">
  19215. <doc>
  19216. <![CDATA[@return a Fencer implementation configured for this target node]]>
  19217. </doc>
  19218. </method>
  19219. <method name="checkFencingConfigured"
  19220. abstract="true" native="false" synchronized="false"
  19221. static="false" final="false" visibility="public"
  19222. deprecated="not deprecated">
  19223. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  19224. <doc>
  19225. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  19226. appears to be invalid. This is divorced from the above
  19227. {@link #getFencer()} method so that the configuration can be checked
  19228. during the pre-flight phase of failover.]]>
  19229. </doc>
  19230. </method>
  19231. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  19232. abstract="false" native="false" synchronized="false"
  19233. static="false" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19236. <param name="timeoutMs" type="int"/>
  19237. <exception name="IOException" type="java.io.IOException"/>
  19238. <doc>
  19239. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  19240. </doc>
  19241. </method>
  19242. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  19243. abstract="false" native="false" synchronized="false"
  19244. static="false" final="false" visibility="public"
  19245. deprecated="not deprecated">
  19246. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19247. <param name="timeoutMs" type="int"/>
  19248. <exception name="IOException" type="java.io.IOException"/>
  19249. <doc>
  19250. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  19251. </doc>
  19252. </method>
  19253. <method name="getFencingParameters" return="java.util.Map"
  19254. abstract="false" native="false" synchronized="false"
  19255. static="false" final="true" visibility="public"
  19256. deprecated="not deprecated">
  19257. </method>
  19258. <method name="addFencingParameters"
  19259. abstract="false" native="false" synchronized="false"
  19260. static="false" final="false" visibility="protected"
  19261. deprecated="not deprecated">
  19262. <param name="ret" type="java.util.Map"/>
  19263. <doc>
  19264. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  19265. expose to fencing implementations/scripts. Fencing methods are free
  19266. to use this map as they see fit -- notably, the shell script
  19267. implementation takes each entry, prepends 'target_', substitutes
  19268. '_' for '.', and adds it to the environment of the script.
  19269. Subclass implementations should be sure to delegate to the superclass
  19270. implementation as well as adding their own keys.
  19271. @param ret map which can be mutated to pass parameters to the fencer]]>
  19272. </doc>
  19273. </method>
  19274. <method name="isAutoFailoverEnabled" return="boolean"
  19275. abstract="false" native="false" synchronized="false"
  19276. static="false" final="false" visibility="public"
  19277. deprecated="not deprecated">
  19278. <doc>
  19279. <![CDATA[@return true if auto failover should be considered enabled]]>
  19280. </doc>
  19281. </method>
  19282. <doc>
  19283. <![CDATA[Represents a target of the client side HA administration commands.]]>
  19284. </doc>
  19285. </class>
  19286. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  19287. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  19288. <class name="HealthCheckFailedException" extends="java.io.IOException"
  19289. abstract="false"
  19290. static="false" final="false" visibility="public"
  19291. deprecated="not deprecated">
  19292. <constructor name="HealthCheckFailedException" type="java.lang.String"
  19293. static="false" final="false" visibility="public"
  19294. deprecated="not deprecated">
  19295. </constructor>
  19296. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  19297. static="false" final="false" visibility="public"
  19298. deprecated="not deprecated">
  19299. </constructor>
  19300. <doc>
  19301. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  19302. </doc>
  19303. </class>
  19304. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  19305. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  19306. <class name="ServiceFailedException" extends="java.io.IOException"
  19307. abstract="false"
  19308. static="false" final="false" visibility="public"
  19309. deprecated="not deprecated">
  19310. <constructor name="ServiceFailedException" type="java.lang.String"
  19311. static="false" final="false" visibility="public"
  19312. deprecated="not deprecated">
  19313. </constructor>
  19314. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  19315. static="false" final="false" visibility="public"
  19316. deprecated="not deprecated">
  19317. </constructor>
  19318. <doc>
  19319. <![CDATA[Exception thrown to indicate that an operation performed
  19320. to modify the state of a service or application failed.]]>
  19321. </doc>
  19322. </class>
  19323. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  19324. <!-- start class org.apache.hadoop.ha.ShellCommandFencer -->
  19325. <class name="ShellCommandFencer" extends="org.apache.hadoop.conf.Configured"
  19326. abstract="false"
  19327. static="false" final="false" visibility="public"
  19328. deprecated="not deprecated">
  19329. <implements name="org.apache.hadoop.ha.FenceMethod"/>
  19330. <constructor name="ShellCommandFencer"
  19331. static="false" final="false" visibility="public"
  19332. deprecated="not deprecated">
  19333. </constructor>
  19334. <method name="checkArgs"
  19335. abstract="false" native="false" synchronized="false"
  19336. static="false" final="false" visibility="public"
  19337. deprecated="not deprecated">
  19338. <param name="args" type="java.lang.String"/>
  19339. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  19340. </method>
  19341. <method name="tryFence" return="boolean"
  19342. abstract="false" native="false" synchronized="false"
  19343. static="false" final="false" visibility="public"
  19344. deprecated="not deprecated">
  19345. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  19346. <param name="cmd" type="java.lang.String"/>
  19347. </method>
  19348. <doc>
  19349. <![CDATA[Fencing method that runs a shell command. It should be specified
  19350. in the fencing configuration like:<br>
  19351. <code>
  19352. shell(/path/to/my/script.sh arg1 arg2 ...)
  19353. </code><br>
  19354. The string between '(' and ')' is passed directly to a bash shell
  19355. (cmd.exe on Windows) and may not include any closing parentheses.<p>
  19356. The shell command will be run with an environment set up to contain
  19357. all of the current Hadoop configuration variables, with the '_' character
  19358. replacing any '.' characters in the configuration keys.<p>
  19359. If the shell command returns an exit code of 0, the fencing is
  19360. determined to be successful. If it returns any other exit code, the
  19361. fencing was not successful and the next fencing method in the list
  19362. will be attempted.<p>
  19363. <em>Note:</em> this fencing method does not implement any timeout.
  19364. If timeouts are necessary, they should be implemented in the shell
  19365. script itself (eg by forking a subshell to kill its parent in
  19366. some number of seconds).]]>
  19367. </doc>
  19368. </class>
  19369. <!-- end class org.apache.hadoop.ha.ShellCommandFencer -->
  19370. <!-- start class org.apache.hadoop.ha.SshFenceByTcpPort -->
  19371. <class name="SshFenceByTcpPort" extends="org.apache.hadoop.conf.Configured"
  19372. abstract="false"
  19373. static="false" final="false" visibility="public"
  19374. deprecated="not deprecated">
  19375. <implements name="org.apache.hadoop.ha.FenceMethod"/>
  19376. <constructor name="SshFenceByTcpPort"
  19377. static="false" final="false" visibility="public"
  19378. deprecated="not deprecated">
  19379. </constructor>
  19380. <method name="checkArgs"
  19381. abstract="false" native="false" synchronized="false"
  19382. static="false" final="false" visibility="public"
  19383. deprecated="not deprecated">
  19384. <param name="argStr" type="java.lang.String"/>
  19385. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  19386. <doc>
  19387. <![CDATA[Verify that the argument, if given, in the conf is parseable.]]>
  19388. </doc>
  19389. </method>
  19390. <method name="tryFence" return="boolean"
  19391. abstract="false" native="false" synchronized="false"
  19392. static="false" final="false" visibility="public"
  19393. deprecated="not deprecated">
  19394. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  19395. <param name="argsStr" type="java.lang.String"/>
  19396. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  19397. </method>
  19398. <doc>
  19399. <![CDATA[This fencing implementation sshes to the target node and uses
  19400. <code>fuser</code> to kill the process listening on the service's
  19401. TCP port. This is more accurate than using "jps" since it doesn't
  19402. require parsing, and will work even if there are multiple service
  19403. processes running on the same machine.<p>
  19404. It returns a successful status code if:
  19405. <ul>
  19406. <li><code>fuser</code> indicates it successfully killed a process, <em>or</em>
  19407. <li><code>nc -z</code> indicates that nothing is listening on the target port
  19408. </ul>
  19409. <p>
  19410. This fencing mechanism is configured as following in the fencing method
  19411. list:
  19412. <code>sshfence([[username][:ssh-port]])</code>
  19413. where the optional argument specifies the username and port to use
  19414. with ssh.
  19415. <p>
  19416. In order to achieve passwordless SSH, the operator must also configure
  19417. <code>dfs.ha.fencing.ssh.private-key-files<code> to point to an
  19418. SSH key that has passphrase-less access to the given username and host.]]>
  19419. </doc>
  19420. </class>
  19421. <!-- end class org.apache.hadoop.ha.SshFenceByTcpPort -->
  19422. </package>
  19423. <package name="org.apache.hadoop.ha.protocolPB">
  19424. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  19425. <interface name="HAServiceProtocolPB" abstract="true"
  19426. static="false" final="false" visibility="public"
  19427. deprecated="not deprecated">
  19428. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  19429. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  19430. </interface>
  19431. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  19432. <!-- start class org.apache.hadoop.ha.protocolPB.ZKFCProtocolClientSideTranslatorPB -->
  19433. <class name="ZKFCProtocolClientSideTranslatorPB" extends="java.lang.Object"
  19434. abstract="false"
  19435. static="false" final="false" visibility="public"
  19436. deprecated="not deprecated">
  19437. <implements name="org.apache.hadoop.ha.ZKFCProtocol"/>
  19438. <implements name="java.io.Closeable"/>
  19439. <implements name="org.apache.hadoop.ipc.ProtocolTranslator"/>
  19440. <constructor name="ZKFCProtocolClientSideTranslatorPB" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory, int"
  19441. static="false" final="false" visibility="public"
  19442. deprecated="not deprecated">
  19443. <exception name="IOException" type="java.io.IOException"/>
  19444. </constructor>
  19445. <method name="cedeActive"
  19446. abstract="false" native="false" synchronized="false"
  19447. static="false" final="false" visibility="public"
  19448. deprecated="not deprecated">
  19449. <param name="millisToCede" type="int"/>
  19450. <exception name="IOException" type="java.io.IOException"/>
  19451. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19452. </method>
  19453. <method name="gracefulFailover"
  19454. abstract="false" native="false" synchronized="false"
  19455. static="false" final="false" visibility="public"
  19456. deprecated="not deprecated">
  19457. <exception name="IOException" type="java.io.IOException"/>
  19458. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  19459. </method>
  19460. <method name="close"
  19461. abstract="false" native="false" synchronized="false"
  19462. static="false" final="false" visibility="public"
  19463. deprecated="not deprecated">
  19464. </method>
  19465. <method name="getUnderlyingProxyObject" return="java.lang.Object"
  19466. abstract="false" native="false" synchronized="false"
  19467. static="false" final="false" visibility="public"
  19468. deprecated="not deprecated">
  19469. </method>
  19470. </class>
  19471. <!-- end class org.apache.hadoop.ha.protocolPB.ZKFCProtocolClientSideTranslatorPB -->
  19472. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  19473. <interface name="ZKFCProtocolPB" abstract="true"
  19474. static="false" final="false" visibility="public"
  19475. deprecated="not deprecated">
  19476. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  19477. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  19478. </interface>
  19479. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  19480. </package>
  19481. <package name="org.apache.hadoop.http.lib">
  19482. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  19483. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  19484. abstract="false"
  19485. static="false" final="false" visibility="public"
  19486. deprecated="not deprecated">
  19487. <constructor name="StaticUserWebFilter"
  19488. static="false" final="false" visibility="public"
  19489. deprecated="not deprecated">
  19490. </constructor>
  19491. <method name="initFilter"
  19492. abstract="false" native="false" synchronized="false"
  19493. static="false" final="false" visibility="public"
  19494. deprecated="not deprecated">
  19495. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  19496. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19497. </method>
  19498. <doc>
  19499. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  19500. so that the web UI is usable for a secure cluster without authentication.]]>
  19501. </doc>
  19502. </class>
  19503. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  19504. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  19505. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  19506. abstract="false"
  19507. static="true" final="false" visibility="public"
  19508. deprecated="not deprecated">
  19509. <implements name="javax.servlet.Filter"/>
  19510. <constructor name="StaticUserFilter"
  19511. static="false" final="false" visibility="public"
  19512. deprecated="not deprecated">
  19513. </constructor>
  19514. <method name="destroy"
  19515. abstract="false" native="false" synchronized="false"
  19516. static="false" final="false" visibility="public"
  19517. deprecated="not deprecated">
  19518. </method>
  19519. <method name="doFilter"
  19520. abstract="false" native="false" synchronized="false"
  19521. static="false" final="false" visibility="public"
  19522. deprecated="not deprecated">
  19523. <param name="request" type="javax.servlet.ServletRequest"/>
  19524. <param name="response" type="javax.servlet.ServletResponse"/>
  19525. <param name="chain" type="javax.servlet.FilterChain"/>
  19526. <exception name="IOException" type="java.io.IOException"/>
  19527. <exception name="ServletException" type="javax.servlet.ServletException"/>
  19528. </method>
  19529. <method name="init"
  19530. abstract="false" native="false" synchronized="false"
  19531. static="false" final="false" visibility="public"
  19532. deprecated="not deprecated">
  19533. <param name="conf" type="javax.servlet.FilterConfig"/>
  19534. <exception name="ServletException" type="javax.servlet.ServletException"/>
  19535. </method>
  19536. </class>
  19537. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  19538. <doc>
  19539. <![CDATA[This package provides user-selectable (via configuration) classes that add
  19540. functionality to the web UI. They are configured as a list of classes in the
  19541. configuration parameter <b>hadoop.http.filter.initializers</b>.
  19542. <ul>
  19543. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  19544. users a static configured user.
  19545. </ul>]]>
  19546. </doc>
  19547. </package>
  19548. <package name="org.apache.hadoop.io">
  19549. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  19550. <class name="AbstractMapWritable" extends="java.lang.Object"
  19551. abstract="true"
  19552. static="false" final="false" visibility="public"
  19553. deprecated="not deprecated">
  19554. <implements name="org.apache.hadoop.io.Writable"/>
  19555. <implements name="org.apache.hadoop.conf.Configurable"/>
  19556. <constructor name="AbstractMapWritable"
  19557. static="false" final="false" visibility="protected"
  19558. deprecated="not deprecated">
  19559. <doc>
  19560. <![CDATA[constructor.]]>
  19561. </doc>
  19562. </constructor>
  19563. <method name="addToMap"
  19564. abstract="false" native="false" synchronized="true"
  19565. static="false" final="false" visibility="protected"
  19566. deprecated="not deprecated">
  19567. <param name="clazz" type="java.lang.Class"/>
  19568. <doc>
  19569. <![CDATA[Add a Class to the maps if it is not already present.]]>
  19570. </doc>
  19571. </method>
  19572. <method name="getClass" return="java.lang.Class"
  19573. abstract="false" native="false" synchronized="false"
  19574. static="false" final="false" visibility="protected"
  19575. deprecated="not deprecated">
  19576. <param name="id" type="byte"/>
  19577. <doc>
  19578. <![CDATA[@return the Class class for the specified id]]>
  19579. </doc>
  19580. </method>
  19581. <method name="getId" return="byte"
  19582. abstract="false" native="false" synchronized="false"
  19583. static="false" final="false" visibility="protected"
  19584. deprecated="not deprecated">
  19585. <param name="clazz" type="java.lang.Class"/>
  19586. <doc>
  19587. <![CDATA[@return the id for the specified Class]]>
  19588. </doc>
  19589. </method>
  19590. <method name="copy"
  19591. abstract="false" native="false" synchronized="true"
  19592. static="false" final="false" visibility="protected"
  19593. deprecated="not deprecated">
  19594. <param name="other" type="org.apache.hadoop.io.Writable"/>
  19595. <doc>
  19596. <![CDATA[Used by child copy constructors.]]>
  19597. </doc>
  19598. </method>
  19599. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19600. abstract="false" native="false" synchronized="false"
  19601. static="false" final="false" visibility="public"
  19602. deprecated="not deprecated">
  19603. <doc>
  19604. <![CDATA[@return the conf]]>
  19605. </doc>
  19606. </method>
  19607. <method name="setConf"
  19608. abstract="false" native="false" synchronized="false"
  19609. static="false" final="false" visibility="public"
  19610. deprecated="not deprecated">
  19611. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19612. <doc>
  19613. <![CDATA[@param conf the conf to set]]>
  19614. </doc>
  19615. </method>
  19616. <method name="write"
  19617. abstract="false" native="false" synchronized="false"
  19618. static="false" final="false" visibility="public"
  19619. deprecated="not deprecated">
  19620. <param name="out" type="java.io.DataOutput"/>
  19621. <exception name="IOException" type="java.io.IOException"/>
  19622. </method>
  19623. <method name="readFields"
  19624. abstract="false" native="false" synchronized="false"
  19625. static="false" final="false" visibility="public"
  19626. deprecated="not deprecated">
  19627. <param name="in" type="java.io.DataInput"/>
  19628. <exception name="IOException" type="java.io.IOException"/>
  19629. </method>
  19630. <doc>
  19631. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  19632. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  19633. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  19634. maps travel with the class instead of being static.
  19635. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  19636. in any specific map instance.]]>
  19637. </doc>
  19638. </class>
  19639. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  19640. <!-- start class org.apache.hadoop.io.ArrayFile -->
  19641. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  19642. abstract="false"
  19643. static="false" final="false" visibility="public"
  19644. deprecated="not deprecated">
  19645. <constructor name="ArrayFile"
  19646. static="false" final="false" visibility="protected"
  19647. deprecated="not deprecated">
  19648. </constructor>
  19649. <doc>
  19650. <![CDATA[A dense file-based mapping from integers to values.]]>
  19651. </doc>
  19652. </class>
  19653. <!-- end class org.apache.hadoop.io.ArrayFile -->
  19654. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  19655. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  19656. abstract="false"
  19657. static="true" final="false" visibility="public"
  19658. deprecated="not deprecated">
  19659. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  19660. static="false" final="false" visibility="public"
  19661. deprecated="not deprecated">
  19662. <exception name="IOException" type="java.io.IOException"/>
  19663. <doc>
  19664. <![CDATA[Construct an array reader for the named file.]]>
  19665. </doc>
  19666. </constructor>
  19667. <method name="seek"
  19668. abstract="false" native="false" synchronized="true"
  19669. static="false" final="false" visibility="public"
  19670. deprecated="not deprecated">
  19671. <param name="n" type="long"/>
  19672. <exception name="IOException" type="java.io.IOException"/>
  19673. <doc>
  19674. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  19675. </doc>
  19676. </method>
  19677. <method name="next" return="org.apache.hadoop.io.Writable"
  19678. abstract="false" native="false" synchronized="true"
  19679. static="false" final="false" visibility="public"
  19680. deprecated="not deprecated">
  19681. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19682. <exception name="IOException" type="java.io.IOException"/>
  19683. <doc>
  19684. <![CDATA[Read and return the next value in the file.]]>
  19685. </doc>
  19686. </method>
  19687. <method name="key" return="long"
  19688. abstract="false" native="false" synchronized="true"
  19689. static="false" final="false" visibility="public"
  19690. deprecated="not deprecated">
  19691. <exception name="IOException" type="java.io.IOException"/>
  19692. <doc>
  19693. <![CDATA[Returns the key associated with the most recent call to {@link
  19694. #seek(long)}, {@link #next(Writable)}, or {@link
  19695. #get(long,Writable)}.]]>
  19696. </doc>
  19697. </method>
  19698. <method name="get" return="org.apache.hadoop.io.Writable"
  19699. abstract="false" native="false" synchronized="true"
  19700. static="false" final="false" visibility="public"
  19701. deprecated="not deprecated">
  19702. <param name="n" type="long"/>
  19703. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19704. <exception name="IOException" type="java.io.IOException"/>
  19705. <doc>
  19706. <![CDATA[Return the <code>n</code>th value in the file.]]>
  19707. </doc>
  19708. </method>
  19709. <doc>
  19710. <![CDATA[Provide access to an existing array file.]]>
  19711. </doc>
  19712. </class>
  19713. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  19714. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  19715. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  19716. abstract="false"
  19717. static="true" final="false" visibility="public"
  19718. deprecated="not deprecated">
  19719. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  19720. static="false" final="false" visibility="public"
  19721. deprecated="not deprecated">
  19722. <exception name="IOException" type="java.io.IOException"/>
  19723. <doc>
  19724. <![CDATA[Create the named file for values of the named class.]]>
  19725. </doc>
  19726. </constructor>
  19727. <constructor name="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"
  19728. static="false" final="false" visibility="public"
  19729. deprecated="not deprecated">
  19730. <exception name="IOException" type="java.io.IOException"/>
  19731. <doc>
  19732. <![CDATA[Create the named file for values of the named class.]]>
  19733. </doc>
  19734. </constructor>
  19735. <method name="append"
  19736. abstract="false" native="false" synchronized="true"
  19737. static="false" final="false" visibility="public"
  19738. deprecated="not deprecated">
  19739. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19740. <exception name="IOException" type="java.io.IOException"/>
  19741. <doc>
  19742. <![CDATA[Append a value to the file.]]>
  19743. </doc>
  19744. </method>
  19745. <doc>
  19746. <![CDATA[Write a new array file.]]>
  19747. </doc>
  19748. </class>
  19749. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  19750. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  19751. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  19752. abstract="false"
  19753. static="false" final="false" visibility="public"
  19754. deprecated="not deprecated">
  19755. <implements name="org.apache.hadoop.io.Writable"/>
  19756. <constructor name="ArrayPrimitiveWritable"
  19757. static="false" final="false" visibility="public"
  19758. deprecated="not deprecated">
  19759. <doc>
  19760. <![CDATA[Construct an empty instance, for use during Writable read]]>
  19761. </doc>
  19762. </constructor>
  19763. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  19764. static="false" final="false" visibility="public"
  19765. deprecated="not deprecated">
  19766. <doc>
  19767. <![CDATA[Construct an instance of known type but no value yet
  19768. for use with type-specific wrapper classes]]>
  19769. </doc>
  19770. </constructor>
  19771. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  19772. static="false" final="false" visibility="public"
  19773. deprecated="not deprecated">
  19774. <doc>
  19775. <![CDATA[Wrap an existing array of primitives
  19776. @param value - array of primitives]]>
  19777. </doc>
  19778. </constructor>
  19779. <method name="get" return="java.lang.Object"
  19780. abstract="false" native="false" synchronized="false"
  19781. static="false" final="false" visibility="public"
  19782. deprecated="not deprecated">
  19783. <doc>
  19784. <![CDATA[Get the original array.
  19785. Client must cast it back to type componentType[]
  19786. (or may use type-specific wrapper classes).
  19787. @return - original array as Object]]>
  19788. </doc>
  19789. </method>
  19790. <method name="getComponentType" return="java.lang.Class"
  19791. abstract="false" native="false" synchronized="false"
  19792. static="false" final="false" visibility="public"
  19793. deprecated="not deprecated">
  19794. </method>
  19795. <method name="getDeclaredComponentType" return="java.lang.Class"
  19796. abstract="false" native="false" synchronized="false"
  19797. static="false" final="false" visibility="public"
  19798. deprecated="not deprecated">
  19799. </method>
  19800. <method name="isDeclaredComponentType" return="boolean"
  19801. abstract="false" native="false" synchronized="false"
  19802. static="false" final="false" visibility="public"
  19803. deprecated="not deprecated">
  19804. <param name="componentType" type="java.lang.Class"/>
  19805. </method>
  19806. <method name="set"
  19807. abstract="false" native="false" synchronized="false"
  19808. static="false" final="false" visibility="public"
  19809. deprecated="not deprecated">
  19810. <param name="value" type="java.lang.Object"/>
  19811. </method>
  19812. <method name="write"
  19813. abstract="false" native="false" synchronized="false"
  19814. static="false" final="false" visibility="public"
  19815. deprecated="not deprecated">
  19816. <param name="out" type="java.io.DataOutput"/>
  19817. <exception name="IOException" type="java.io.IOException"/>
  19818. </method>
  19819. <method name="readFields"
  19820. abstract="false" native="false" synchronized="false"
  19821. static="false" final="false" visibility="public"
  19822. deprecated="not deprecated">
  19823. <param name="in" type="java.io.DataInput"/>
  19824. <exception name="IOException" type="java.io.IOException"/>
  19825. </method>
  19826. <doc>
  19827. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  19828. an array of primitives (e.g., int[], long[], etc.), with optimized
  19829. wire format, and without creating new objects per element.
  19830. This is a wrapper class only; it does not make a copy of the
  19831. underlying array.]]>
  19832. </doc>
  19833. </class>
  19834. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  19835. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  19836. <class name="ArrayWritable" extends="java.lang.Object"
  19837. abstract="false"
  19838. static="false" final="false" visibility="public"
  19839. deprecated="not deprecated">
  19840. <implements name="org.apache.hadoop.io.Writable"/>
  19841. <constructor name="ArrayWritable" type="java.lang.Class"
  19842. static="false" final="false" visibility="public"
  19843. deprecated="not deprecated">
  19844. </constructor>
  19845. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  19846. static="false" final="false" visibility="public"
  19847. deprecated="not deprecated">
  19848. </constructor>
  19849. <constructor name="ArrayWritable" type="java.lang.String[]"
  19850. static="false" final="false" visibility="public"
  19851. deprecated="not deprecated">
  19852. </constructor>
  19853. <method name="getValueClass" return="java.lang.Class"
  19854. abstract="false" native="false" synchronized="false"
  19855. static="false" final="false" visibility="public"
  19856. deprecated="not deprecated">
  19857. </method>
  19858. <method name="toStrings" return="java.lang.String[]"
  19859. abstract="false" native="false" synchronized="false"
  19860. static="false" final="false" visibility="public"
  19861. deprecated="not deprecated">
  19862. </method>
  19863. <method name="toArray" return="java.lang.Object"
  19864. abstract="false" native="false" synchronized="false"
  19865. static="false" final="false" visibility="public"
  19866. deprecated="not deprecated">
  19867. </method>
  19868. <method name="set"
  19869. abstract="false" native="false" synchronized="false"
  19870. static="false" final="false" visibility="public"
  19871. deprecated="not deprecated">
  19872. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  19873. </method>
  19874. <method name="get" return="org.apache.hadoop.io.Writable[]"
  19875. abstract="false" native="false" synchronized="false"
  19876. static="false" final="false" visibility="public"
  19877. deprecated="not deprecated">
  19878. </method>
  19879. <method name="readFields"
  19880. abstract="false" native="false" synchronized="false"
  19881. static="false" final="false" visibility="public"
  19882. deprecated="not deprecated">
  19883. <param name="in" type="java.io.DataInput"/>
  19884. <exception name="IOException" type="java.io.IOException"/>
  19885. </method>
  19886. <method name="write"
  19887. abstract="false" native="false" synchronized="false"
  19888. static="false" final="false" visibility="public"
  19889. deprecated="not deprecated">
  19890. <param name="out" type="java.io.DataOutput"/>
  19891. <exception name="IOException" type="java.io.IOException"/>
  19892. </method>
  19893. <doc>
  19894. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  19895. writable must all be instances of the same class. If this writable will be
  19896. the input for a Reducer, you will need to create a subclass that sets the
  19897. value to be of the proper type.
  19898. For example:
  19899. <code>
  19900. public class IntArrayWritable extends ArrayWritable {
  19901. public IntArrayWritable() {
  19902. super(IntWritable.class);
  19903. }
  19904. }
  19905. </code>]]>
  19906. </doc>
  19907. </class>
  19908. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  19909. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  19910. <class name="BinaryComparable" extends="java.lang.Object"
  19911. abstract="true"
  19912. static="false" final="false" visibility="public"
  19913. deprecated="not deprecated">
  19914. <implements name="java.lang.Comparable"/>
  19915. <constructor name="BinaryComparable"
  19916. static="false" final="false" visibility="public"
  19917. deprecated="not deprecated">
  19918. </constructor>
  19919. <method name="getLength" return="int"
  19920. abstract="true" native="false" synchronized="false"
  19921. static="false" final="false" visibility="public"
  19922. deprecated="not deprecated">
  19923. <doc>
  19924. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  19925. </doc>
  19926. </method>
  19927. <method name="getBytes" return="byte[]"
  19928. abstract="true" native="false" synchronized="false"
  19929. static="false" final="false" visibility="public"
  19930. deprecated="not deprecated">
  19931. <doc>
  19932. <![CDATA[Return representative byte array for this instance.]]>
  19933. </doc>
  19934. </method>
  19935. <method name="compareTo" return="int"
  19936. abstract="false" native="false" synchronized="false"
  19937. static="false" final="false" visibility="public"
  19938. deprecated="not deprecated">
  19939. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  19940. <doc>
  19941. <![CDATA[Compare bytes from {#getBytes()}.
  19942. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  19943. </doc>
  19944. </method>
  19945. <method name="compareTo" return="int"
  19946. abstract="false" native="false" synchronized="false"
  19947. static="false" final="false" visibility="public"
  19948. deprecated="not deprecated">
  19949. <param name="other" type="byte[]"/>
  19950. <param name="off" type="int"/>
  19951. <param name="len" type="int"/>
  19952. <doc>
  19953. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  19954. </doc>
  19955. </method>
  19956. <method name="equals" return="boolean"
  19957. abstract="false" native="false" synchronized="false"
  19958. static="false" final="false" visibility="public"
  19959. deprecated="not deprecated">
  19960. <param name="other" type="java.lang.Object"/>
  19961. <doc>
  19962. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  19963. </doc>
  19964. </method>
  19965. <method name="hashCode" return="int"
  19966. abstract="false" native="false" synchronized="false"
  19967. static="false" final="false" visibility="public"
  19968. deprecated="not deprecated">
  19969. <doc>
  19970. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  19971. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  19972. </doc>
  19973. </method>
  19974. <doc>
  19975. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  19976. types supporting ordering/permutation by a representative set of bytes.]]>
  19977. </doc>
  19978. </class>
  19979. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  19980. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  19981. <class name="BloomMapFile" extends="java.lang.Object"
  19982. abstract="false"
  19983. static="false" final="false" visibility="public"
  19984. deprecated="not deprecated">
  19985. <constructor name="BloomMapFile"
  19986. static="false" final="false" visibility="public"
  19987. deprecated="not deprecated">
  19988. </constructor>
  19989. <method name="delete"
  19990. abstract="false" native="false" synchronized="false"
  19991. static="true" final="false" visibility="public"
  19992. deprecated="not deprecated">
  19993. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19994. <param name="name" type="java.lang.String"/>
  19995. <exception name="IOException" type="java.io.IOException"/>
  19996. </method>
  19997. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  19998. transient="false" volatile="false"
  19999. static="true" final="true" visibility="public"
  20000. deprecated="not deprecated">
  20001. </field>
  20002. <field name="HASH_COUNT" type="int"
  20003. transient="false" volatile="false"
  20004. static="true" final="true" visibility="public"
  20005. deprecated="not deprecated">
  20006. </field>
  20007. <doc>
  20008. <![CDATA[This class extends {@link MapFile} and provides very much the same
  20009. functionality. However, it uses dynamic Bloom filters to provide
  20010. quick membership test for keys, and it offers a fast version of
  20011. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  20012. case of sparsely populated MapFile-s.]]>
  20013. </doc>
  20014. </class>
  20015. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  20016. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  20017. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  20018. abstract="false"
  20019. static="true" final="false" visibility="public"
  20020. deprecated="not deprecated">
  20021. <constructor name="Reader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  20022. static="false" final="false" visibility="public"
  20023. deprecated="not deprecated">
  20024. <exception name="IOException" type="java.io.IOException"/>
  20025. </constructor>
  20026. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  20027. static="false" final="false" visibility="public"
  20028. deprecated="not deprecated">
  20029. <exception name="IOException" type="java.io.IOException"/>
  20030. </constructor>
  20031. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  20032. static="false" final="false" visibility="public"
  20033. deprecated="not deprecated">
  20034. <exception name="IOException" type="java.io.IOException"/>
  20035. </constructor>
  20036. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  20037. static="false" final="false" visibility="public"
  20038. deprecated="not deprecated">
  20039. <exception name="IOException" type="java.io.IOException"/>
  20040. </constructor>
  20041. <method name="probablyHasKey" return="boolean"
  20042. abstract="false" native="false" synchronized="false"
  20043. static="false" final="false" visibility="public"
  20044. deprecated="not deprecated">
  20045. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20046. <exception name="IOException" type="java.io.IOException"/>
  20047. <doc>
  20048. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  20049. performed using a Bloom filter, so the result has always non-zero
  20050. probability of false positives.
  20051. @param key key to check
  20052. @return false iff key doesn't exist, true if key probably exists.
  20053. @throws IOException]]>
  20054. </doc>
  20055. </method>
  20056. <method name="get" return="org.apache.hadoop.io.Writable"
  20057. abstract="false" native="false" synchronized="true"
  20058. static="false" final="false" visibility="public"
  20059. deprecated="not deprecated">
  20060. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20061. <param name="val" type="org.apache.hadoop.io.Writable"/>
  20062. <exception name="IOException" type="java.io.IOException"/>
  20063. <doc>
  20064. <![CDATA[Fast version of the
  20065. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  20066. it checks the Bloom filter for the existence of the key, and only if
  20067. present it performs the real get operation. This yields significant
  20068. performance improvements for get operations on sparsely populated files.]]>
  20069. </doc>
  20070. </method>
  20071. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  20072. abstract="false" native="false" synchronized="false"
  20073. static="false" final="false" visibility="public"
  20074. deprecated="not deprecated">
  20075. <doc>
  20076. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  20077. @return a Bloom filter (see {@link Filter})]]>
  20078. </doc>
  20079. </method>
  20080. </class>
  20081. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  20082. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  20083. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  20084. abstract="false"
  20085. static="true" final="false" visibility="public"
  20086. deprecated="not deprecated">
  20087. <constructor name="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"
  20088. static="false" final="false" visibility="public"
  20089. deprecated="not deprecated">
  20090. <exception name="IOException" type="java.io.IOException"/>
  20091. </constructor>
  20092. <constructor name="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"
  20093. static="false" final="false" visibility="public"
  20094. deprecated="not deprecated">
  20095. <exception name="IOException" type="java.io.IOException"/>
  20096. </constructor>
  20097. <constructor name="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"
  20098. static="false" final="false" visibility="public"
  20099. deprecated="not deprecated">
  20100. <exception name="IOException" type="java.io.IOException"/>
  20101. </constructor>
  20102. <constructor name="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"
  20103. static="false" final="false" visibility="public"
  20104. deprecated="not deprecated">
  20105. <exception name="IOException" type="java.io.IOException"/>
  20106. </constructor>
  20107. <constructor name="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"
  20108. static="false" final="false" visibility="public"
  20109. deprecated="not deprecated">
  20110. <exception name="IOException" type="java.io.IOException"/>
  20111. </constructor>
  20112. <constructor name="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"
  20113. static="false" final="false" visibility="public"
  20114. deprecated="not deprecated">
  20115. <exception name="IOException" type="java.io.IOException"/>
  20116. </constructor>
  20117. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  20118. static="false" final="false" visibility="public"
  20119. deprecated="not deprecated">
  20120. <exception name="IOException" type="java.io.IOException"/>
  20121. </constructor>
  20122. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  20123. static="false" final="false" visibility="public"
  20124. deprecated="not deprecated">
  20125. <exception name="IOException" type="java.io.IOException"/>
  20126. </constructor>
  20127. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, org.apache.hadoop.io.SequenceFile.Writer.Option[]"
  20128. static="false" final="false" visibility="public"
  20129. deprecated="not deprecated">
  20130. <exception name="IOException" type="java.io.IOException"/>
  20131. </constructor>
  20132. <method name="append"
  20133. abstract="false" native="false" synchronized="true"
  20134. static="false" final="false" visibility="public"
  20135. deprecated="not deprecated">
  20136. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20137. <param name="val" type="org.apache.hadoop.io.Writable"/>
  20138. <exception name="IOException" type="java.io.IOException"/>
  20139. </method>
  20140. <method name="close"
  20141. abstract="false" native="false" synchronized="true"
  20142. static="false" final="false" visibility="public"
  20143. deprecated="not deprecated">
  20144. <exception name="IOException" type="java.io.IOException"/>
  20145. </method>
  20146. </class>
  20147. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  20148. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  20149. <class name="BooleanWritable" extends="java.lang.Object"
  20150. abstract="false"
  20151. static="false" final="false" visibility="public"
  20152. deprecated="not deprecated">
  20153. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20154. <constructor name="BooleanWritable"
  20155. static="false" final="false" visibility="public"
  20156. deprecated="not deprecated">
  20157. </constructor>
  20158. <constructor name="BooleanWritable" type="boolean"
  20159. static="false" final="false" visibility="public"
  20160. deprecated="not deprecated">
  20161. </constructor>
  20162. <method name="set"
  20163. abstract="false" native="false" synchronized="false"
  20164. static="false" final="false" visibility="public"
  20165. deprecated="not deprecated">
  20166. <param name="value" type="boolean"/>
  20167. <doc>
  20168. <![CDATA[Set the value of the BooleanWritable]]>
  20169. </doc>
  20170. </method>
  20171. <method name="get" return="boolean"
  20172. abstract="false" native="false" synchronized="false"
  20173. static="false" final="false" visibility="public"
  20174. deprecated="not deprecated">
  20175. <doc>
  20176. <![CDATA[Returns the value of the BooleanWritable]]>
  20177. </doc>
  20178. </method>
  20179. <method name="readFields"
  20180. abstract="false" native="false" synchronized="false"
  20181. static="false" final="false" visibility="public"
  20182. deprecated="not deprecated">
  20183. <param name="in" type="java.io.DataInput"/>
  20184. <exception name="IOException" type="java.io.IOException"/>
  20185. </method>
  20186. <method name="write"
  20187. abstract="false" native="false" synchronized="false"
  20188. static="false" final="false" visibility="public"
  20189. deprecated="not deprecated">
  20190. <param name="out" type="java.io.DataOutput"/>
  20191. <exception name="IOException" type="java.io.IOException"/>
  20192. </method>
  20193. <method name="equals" return="boolean"
  20194. abstract="false" native="false" synchronized="false"
  20195. static="false" final="false" visibility="public"
  20196. deprecated="not deprecated">
  20197. <param name="o" type="java.lang.Object"/>
  20198. </method>
  20199. <method name="hashCode" return="int"
  20200. abstract="false" native="false" synchronized="false"
  20201. static="false" final="false" visibility="public"
  20202. deprecated="not deprecated">
  20203. </method>
  20204. <method name="compareTo" return="int"
  20205. abstract="false" native="false" synchronized="false"
  20206. static="false" final="false" visibility="public"
  20207. deprecated="not deprecated">
  20208. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  20209. </method>
  20210. <method name="toString" return="java.lang.String"
  20211. abstract="false" native="false" synchronized="false"
  20212. static="false" final="false" visibility="public"
  20213. deprecated="not deprecated">
  20214. </method>
  20215. <doc>
  20216. <![CDATA[A WritableComparable for booleans.]]>
  20217. </doc>
  20218. </class>
  20219. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  20220. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  20221. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  20222. abstract="false"
  20223. static="true" final="false" visibility="public"
  20224. deprecated="not deprecated">
  20225. <constructor name="Comparator"
  20226. static="false" final="false" visibility="public"
  20227. deprecated="not deprecated">
  20228. </constructor>
  20229. <method name="compare" return="int"
  20230. abstract="false" native="false" synchronized="false"
  20231. static="false" final="false" visibility="public"
  20232. deprecated="not deprecated">
  20233. <param name="b1" type="byte[]"/>
  20234. <param name="s1" type="int"/>
  20235. <param name="l1" type="int"/>
  20236. <param name="b2" type="byte[]"/>
  20237. <param name="s2" type="int"/>
  20238. <param name="l2" type="int"/>
  20239. </method>
  20240. <doc>
  20241. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  20242. </doc>
  20243. </class>
  20244. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  20245. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  20246. <interface name="ByteBufferPool" abstract="true"
  20247. static="false" final="false" visibility="public"
  20248. deprecated="not deprecated">
  20249. <method name="getBuffer" return="java.nio.ByteBuffer"
  20250. abstract="true" native="false" synchronized="false"
  20251. static="false" final="false" visibility="public"
  20252. deprecated="not deprecated">
  20253. <param name="direct" type="boolean"/>
  20254. <param name="length" type="int"/>
  20255. <doc>
  20256. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  20257. removing a buffer from its internal cache, or by allocating a
  20258. new buffer.
  20259. @param direct Whether the buffer should be direct.
  20260. @param length The minimum length the buffer will have.
  20261. @return A new ByteBuffer. This ByteBuffer must be direct.
  20262. Its capacity can be less than what was requested, but
  20263. must be at least 1 byte.]]>
  20264. </doc>
  20265. </method>
  20266. <method name="putBuffer"
  20267. abstract="true" native="false" synchronized="false"
  20268. static="false" final="false" visibility="public"
  20269. deprecated="not deprecated">
  20270. <param name="buffer" type="java.nio.ByteBuffer"/>
  20271. <doc>
  20272. <![CDATA[Release a buffer back to the pool.
  20273. The pool may choose to put this buffer into its cache.
  20274. @param buffer a direct bytebuffer]]>
  20275. </doc>
  20276. </method>
  20277. </interface>
  20278. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  20279. <!-- start class org.apache.hadoop.io.BytesWritable -->
  20280. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  20281. abstract="false"
  20282. static="false" final="false" visibility="public"
  20283. deprecated="not deprecated">
  20284. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20285. <constructor name="BytesWritable"
  20286. static="false" final="false" visibility="public"
  20287. deprecated="not deprecated">
  20288. <doc>
  20289. <![CDATA[Create a zero-size sequence.]]>
  20290. </doc>
  20291. </constructor>
  20292. <constructor name="BytesWritable" type="byte[]"
  20293. static="false" final="false" visibility="public"
  20294. deprecated="not deprecated">
  20295. <doc>
  20296. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  20297. @param bytes This array becomes the backing storage for the object.]]>
  20298. </doc>
  20299. </constructor>
  20300. <constructor name="BytesWritable" type="byte[], int"
  20301. static="false" final="false" visibility="public"
  20302. deprecated="not deprecated">
  20303. <doc>
  20304. <![CDATA[Create a BytesWritable using the byte array as the initial value
  20305. and length as the length. Use this constructor if the array is larger
  20306. than the value it represents.
  20307. @param bytes This array becomes the backing storage for the object.
  20308. @param length The number of bytes to use from array.]]>
  20309. </doc>
  20310. </constructor>
  20311. <method name="copyBytes" return="byte[]"
  20312. abstract="false" native="false" synchronized="false"
  20313. static="false" final="false" visibility="public"
  20314. deprecated="not deprecated">
  20315. <doc>
  20316. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  20317. See {@link #getBytes()} for faster access to the underlying array.]]>
  20318. </doc>
  20319. </method>
  20320. <method name="getBytes" return="byte[]"
  20321. abstract="false" native="false" synchronized="false"
  20322. static="false" final="false" visibility="public"
  20323. deprecated="not deprecated">
  20324. <doc>
  20325. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  20326. if you need the returned array to be precisely the length of the data.
  20327. @return The data is only valid between 0 and getLength() - 1.]]>
  20328. </doc>
  20329. </method>
  20330. <method name="get" return="byte[]"
  20331. abstract="false" native="false" synchronized="false"
  20332. static="false" final="false" visibility="public"
  20333. deprecated="Use {@link #getBytes()} instead.">
  20334. <doc>
  20335. <![CDATA[Get the data from the BytesWritable.
  20336. @deprecated Use {@link #getBytes()} instead.]]>
  20337. </doc>
  20338. </method>
  20339. <method name="getLength" return="int"
  20340. abstract="false" native="false" synchronized="false"
  20341. static="false" final="false" visibility="public"
  20342. deprecated="not deprecated">
  20343. <doc>
  20344. <![CDATA[Get the current size of the buffer.]]>
  20345. </doc>
  20346. </method>
  20347. <method name="getSize" return="int"
  20348. abstract="false" native="false" synchronized="false"
  20349. static="false" final="false" visibility="public"
  20350. deprecated="Use {@link #getLength()} instead.">
  20351. <doc>
  20352. <![CDATA[Get the current size of the buffer.
  20353. @deprecated Use {@link #getLength()} instead.]]>
  20354. </doc>
  20355. </method>
  20356. <method name="setSize"
  20357. abstract="false" native="false" synchronized="false"
  20358. static="false" final="false" visibility="public"
  20359. deprecated="not deprecated">
  20360. <param name="size" type="int"/>
  20361. <doc>
  20362. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  20363. and any new values are undefined. The capacity is changed if it is
  20364. necessary.
  20365. @param size The new number of bytes]]>
  20366. </doc>
  20367. </method>
  20368. <method name="getCapacity" return="int"
  20369. abstract="false" native="false" synchronized="false"
  20370. static="false" final="false" visibility="public"
  20371. deprecated="not deprecated">
  20372. <doc>
  20373. <![CDATA[Get the capacity, which is the maximum size that could handled without
  20374. resizing the backing storage.
  20375. @return The number of bytes]]>
  20376. </doc>
  20377. </method>
  20378. <method name="setCapacity"
  20379. abstract="false" native="false" synchronized="false"
  20380. static="false" final="false" visibility="public"
  20381. deprecated="not deprecated">
  20382. <param name="new_cap" type="int"/>
  20383. <doc>
  20384. <![CDATA[Change the capacity of the backing storage.
  20385. The data is preserved.
  20386. @param new_cap The new capacity in bytes.]]>
  20387. </doc>
  20388. </method>
  20389. <method name="set"
  20390. abstract="false" native="false" synchronized="false"
  20391. static="false" final="false" visibility="public"
  20392. deprecated="not deprecated">
  20393. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  20394. <doc>
  20395. <![CDATA[Set the BytesWritable to the contents of the given newData.
  20396. @param newData the value to set this BytesWritable to.]]>
  20397. </doc>
  20398. </method>
  20399. <method name="set"
  20400. abstract="false" native="false" synchronized="false"
  20401. static="false" final="false" visibility="public"
  20402. deprecated="not deprecated">
  20403. <param name="newData" type="byte[]"/>
  20404. <param name="offset" type="int"/>
  20405. <param name="length" type="int"/>
  20406. <doc>
  20407. <![CDATA[Set the value to a copy of the given byte range
  20408. @param newData the new values to copy in
  20409. @param offset the offset in newData to start at
  20410. @param length the number of bytes to copy]]>
  20411. </doc>
  20412. </method>
  20413. <method name="readFields"
  20414. abstract="false" native="false" synchronized="false"
  20415. static="false" final="false" visibility="public"
  20416. deprecated="not deprecated">
  20417. <param name="in" type="java.io.DataInput"/>
  20418. <exception name="IOException" type="java.io.IOException"/>
  20419. </method>
  20420. <method name="write"
  20421. abstract="false" native="false" synchronized="false"
  20422. static="false" final="false" visibility="public"
  20423. deprecated="not deprecated">
  20424. <param name="out" type="java.io.DataOutput"/>
  20425. <exception name="IOException" type="java.io.IOException"/>
  20426. </method>
  20427. <method name="hashCode" return="int"
  20428. abstract="false" native="false" synchronized="false"
  20429. static="false" final="false" visibility="public"
  20430. deprecated="not deprecated">
  20431. </method>
  20432. <method name="equals" return="boolean"
  20433. abstract="false" native="false" synchronized="false"
  20434. static="false" final="false" visibility="public"
  20435. deprecated="not deprecated">
  20436. <param name="right_obj" type="java.lang.Object"/>
  20437. <doc>
  20438. <![CDATA[Are the two byte sequences equal?]]>
  20439. </doc>
  20440. </method>
  20441. <method name="toString" return="java.lang.String"
  20442. abstract="false" native="false" synchronized="false"
  20443. static="false" final="false" visibility="public"
  20444. deprecated="not deprecated">
  20445. <doc>
  20446. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  20447. </doc>
  20448. </method>
  20449. <doc>
  20450. <![CDATA[A byte sequence that is usable as a key or value.
  20451. It is resizable and distinguishes between the size of the sequence and
  20452. the current capacity. The hash function is the front of the md5 of the
  20453. buffer. The sort order is the same as memcmp.]]>
  20454. </doc>
  20455. </class>
  20456. <!-- end class org.apache.hadoop.io.BytesWritable -->
  20457. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  20458. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  20459. abstract="false"
  20460. static="true" final="false" visibility="public"
  20461. deprecated="not deprecated">
  20462. <constructor name="Comparator"
  20463. static="false" final="false" visibility="public"
  20464. deprecated="not deprecated">
  20465. </constructor>
  20466. <method name="compare" return="int"
  20467. abstract="false" native="false" synchronized="false"
  20468. static="false" final="false" visibility="public"
  20469. deprecated="not deprecated">
  20470. <param name="b1" type="byte[]"/>
  20471. <param name="s1" type="int"/>
  20472. <param name="l1" type="int"/>
  20473. <param name="b2" type="byte[]"/>
  20474. <param name="s2" type="int"/>
  20475. <param name="l2" type="int"/>
  20476. <doc>
  20477. <![CDATA[Compare the buffers in serialized form.]]>
  20478. </doc>
  20479. </method>
  20480. <doc>
  20481. <![CDATA[A Comparator optimized for BytesWritable.]]>
  20482. </doc>
  20483. </class>
  20484. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  20485. <!-- start class org.apache.hadoop.io.ByteWritable -->
  20486. <class name="ByteWritable" extends="java.lang.Object"
  20487. abstract="false"
  20488. static="false" final="false" visibility="public"
  20489. deprecated="not deprecated">
  20490. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20491. <constructor name="ByteWritable"
  20492. static="false" final="false" visibility="public"
  20493. deprecated="not deprecated">
  20494. </constructor>
  20495. <constructor name="ByteWritable" type="byte"
  20496. static="false" final="false" visibility="public"
  20497. deprecated="not deprecated">
  20498. </constructor>
  20499. <method name="set"
  20500. abstract="false" native="false" synchronized="false"
  20501. static="false" final="false" visibility="public"
  20502. deprecated="not deprecated">
  20503. <param name="value" type="byte"/>
  20504. <doc>
  20505. <![CDATA[Set the value of this ByteWritable.]]>
  20506. </doc>
  20507. </method>
  20508. <method name="get" return="byte"
  20509. abstract="false" native="false" synchronized="false"
  20510. static="false" final="false" visibility="public"
  20511. deprecated="not deprecated">
  20512. <doc>
  20513. <![CDATA[Return the value of this ByteWritable.]]>
  20514. </doc>
  20515. </method>
  20516. <method name="readFields"
  20517. abstract="false" native="false" synchronized="false"
  20518. static="false" final="false" visibility="public"
  20519. deprecated="not deprecated">
  20520. <param name="in" type="java.io.DataInput"/>
  20521. <exception name="IOException" type="java.io.IOException"/>
  20522. </method>
  20523. <method name="write"
  20524. abstract="false" native="false" synchronized="false"
  20525. static="false" final="false" visibility="public"
  20526. deprecated="not deprecated">
  20527. <param name="out" type="java.io.DataOutput"/>
  20528. <exception name="IOException" type="java.io.IOException"/>
  20529. </method>
  20530. <method name="equals" return="boolean"
  20531. abstract="false" native="false" synchronized="false"
  20532. static="false" final="false" visibility="public"
  20533. deprecated="not deprecated">
  20534. <param name="o" type="java.lang.Object"/>
  20535. <doc>
  20536. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  20537. </doc>
  20538. </method>
  20539. <method name="hashCode" return="int"
  20540. abstract="false" native="false" synchronized="false"
  20541. static="false" final="false" visibility="public"
  20542. deprecated="not deprecated">
  20543. </method>
  20544. <method name="compareTo" return="int"
  20545. abstract="false" native="false" synchronized="false"
  20546. static="false" final="false" visibility="public"
  20547. deprecated="not deprecated">
  20548. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  20549. <doc>
  20550. <![CDATA[Compares two ByteWritables.]]>
  20551. </doc>
  20552. </method>
  20553. <method name="toString" return="java.lang.String"
  20554. abstract="false" native="false" synchronized="false"
  20555. static="false" final="false" visibility="public"
  20556. deprecated="not deprecated">
  20557. </method>
  20558. <doc>
  20559. <![CDATA[A WritableComparable for a single byte.]]>
  20560. </doc>
  20561. </class>
  20562. <!-- end class org.apache.hadoop.io.ByteWritable -->
  20563. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  20564. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  20565. abstract="false"
  20566. static="true" final="false" visibility="public"
  20567. deprecated="not deprecated">
  20568. <constructor name="Comparator"
  20569. static="false" final="false" visibility="public"
  20570. deprecated="not deprecated">
  20571. </constructor>
  20572. <method name="compare" return="int"
  20573. abstract="false" native="false" synchronized="false"
  20574. static="false" final="false" visibility="public"
  20575. deprecated="not deprecated">
  20576. <param name="b1" type="byte[]"/>
  20577. <param name="s1" type="int"/>
  20578. <param name="l1" type="int"/>
  20579. <param name="b2" type="byte[]"/>
  20580. <param name="s2" type="int"/>
  20581. <param name="l2" type="int"/>
  20582. </method>
  20583. <doc>
  20584. <![CDATA[A Comparator optimized for ByteWritable.]]>
  20585. </doc>
  20586. </class>
  20587. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  20588. <!-- start interface org.apache.hadoop.io.Closeable -->
  20589. <interface name="Closeable" abstract="true"
  20590. static="false" final="false" visibility="public"
  20591. deprecated="use java.io.Closeable">
  20592. <implements name="java.io.Closeable"/>
  20593. <doc>
  20594. <![CDATA[@deprecated use java.io.Closeable]]>
  20595. </doc>
  20596. </interface>
  20597. <!-- end interface org.apache.hadoop.io.Closeable -->
  20598. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  20599. <class name="CompressedWritable" extends="java.lang.Object"
  20600. abstract="true"
  20601. static="false" final="false" visibility="public"
  20602. deprecated="not deprecated">
  20603. <implements name="org.apache.hadoop.io.Writable"/>
  20604. <constructor name="CompressedWritable"
  20605. static="false" final="false" visibility="public"
  20606. deprecated="not deprecated">
  20607. </constructor>
  20608. <method name="readFields"
  20609. abstract="false" native="false" synchronized="false"
  20610. static="false" final="true" visibility="public"
  20611. deprecated="not deprecated">
  20612. <param name="in" type="java.io.DataInput"/>
  20613. <exception name="IOException" type="java.io.IOException"/>
  20614. </method>
  20615. <method name="ensureInflated"
  20616. abstract="false" native="false" synchronized="false"
  20617. static="false" final="false" visibility="protected"
  20618. deprecated="not deprecated">
  20619. <doc>
  20620. <![CDATA[Must be called by all methods which access fields to ensure that the data
  20621. has been uncompressed.]]>
  20622. </doc>
  20623. </method>
  20624. <method name="readFieldsCompressed"
  20625. abstract="true" native="false" synchronized="false"
  20626. static="false" final="false" visibility="protected"
  20627. deprecated="not deprecated">
  20628. <param name="in" type="java.io.DataInput"/>
  20629. <exception name="IOException" type="java.io.IOException"/>
  20630. <doc>
  20631. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  20632. </doc>
  20633. </method>
  20634. <method name="write"
  20635. abstract="false" native="false" synchronized="false"
  20636. static="false" final="true" visibility="public"
  20637. deprecated="not deprecated">
  20638. <param name="out" type="java.io.DataOutput"/>
  20639. <exception name="IOException" type="java.io.IOException"/>
  20640. </method>
  20641. <method name="writeCompressed"
  20642. abstract="true" native="false" synchronized="false"
  20643. static="false" final="false" visibility="protected"
  20644. deprecated="not deprecated">
  20645. <param name="out" type="java.io.DataOutput"/>
  20646. <exception name="IOException" type="java.io.IOException"/>
  20647. <doc>
  20648. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  20649. </doc>
  20650. </method>
  20651. <doc>
  20652. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  20653. inflate on field access. This is useful for large objects whose fields are
  20654. not be altered during a map or reduce operation: leaving the field data
  20655. compressed makes copying the instance from one file to another much
  20656. faster.]]>
  20657. </doc>
  20658. </class>
  20659. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  20660. <!-- start class org.apache.hadoop.io.DataInputByteBuffer -->
  20661. <class name="DataInputByteBuffer" extends="java.io.DataInputStream"
  20662. abstract="false"
  20663. static="false" final="false" visibility="public"
  20664. deprecated="not deprecated">
  20665. <constructor name="DataInputByteBuffer"
  20666. static="false" final="false" visibility="public"
  20667. deprecated="not deprecated">
  20668. </constructor>
  20669. <method name="reset"
  20670. abstract="false" native="false" synchronized="false"
  20671. static="false" final="false" visibility="public"
  20672. deprecated="not deprecated">
  20673. <param name="input" type="java.nio.ByteBuffer[]"/>
  20674. </method>
  20675. <method name="getData" return="java.nio.ByteBuffer[]"
  20676. abstract="false" native="false" synchronized="false"
  20677. static="false" final="false" visibility="public"
  20678. deprecated="not deprecated">
  20679. </method>
  20680. <method name="getPosition" return="int"
  20681. abstract="false" native="false" synchronized="false"
  20682. static="false" final="false" visibility="public"
  20683. deprecated="not deprecated">
  20684. </method>
  20685. <method name="getLength" return="int"
  20686. abstract="false" native="false" synchronized="false"
  20687. static="false" final="false" visibility="public"
  20688. deprecated="not deprecated">
  20689. </method>
  20690. </class>
  20691. <!-- end class org.apache.hadoop.io.DataInputByteBuffer -->
  20692. <!-- start class org.apache.hadoop.io.DataOutputByteBuffer -->
  20693. <class name="DataOutputByteBuffer" extends="java.io.DataOutputStream"
  20694. abstract="false"
  20695. static="false" final="false" visibility="public"
  20696. deprecated="not deprecated">
  20697. <constructor name="DataOutputByteBuffer"
  20698. static="false" final="false" visibility="public"
  20699. deprecated="not deprecated">
  20700. </constructor>
  20701. <constructor name="DataOutputByteBuffer" type="int"
  20702. static="false" final="false" visibility="public"
  20703. deprecated="not deprecated">
  20704. </constructor>
  20705. <constructor name="DataOutputByteBuffer" type="int, boolean"
  20706. static="false" final="false" visibility="public"
  20707. deprecated="not deprecated">
  20708. </constructor>
  20709. <method name="getData" return="java.nio.ByteBuffer[]"
  20710. abstract="false" native="false" synchronized="false"
  20711. static="false" final="false" visibility="public"
  20712. deprecated="not deprecated">
  20713. </method>
  20714. <method name="getLength" return="int"
  20715. abstract="false" native="false" synchronized="false"
  20716. static="false" final="false" visibility="public"
  20717. deprecated="not deprecated">
  20718. </method>
  20719. <method name="reset"
  20720. abstract="false" native="false" synchronized="false"
  20721. static="false" final="false" visibility="public"
  20722. deprecated="not deprecated">
  20723. </method>
  20724. </class>
  20725. <!-- end class org.apache.hadoop.io.DataOutputByteBuffer -->
  20726. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  20727. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  20728. abstract="false"
  20729. static="false" final="false" visibility="public"
  20730. deprecated="not deprecated">
  20731. <method name="constructOutputStream" return="java.io.OutputStream"
  20732. abstract="false" native="false" synchronized="false"
  20733. static="true" final="false" visibility="public"
  20734. deprecated="not deprecated">
  20735. <param name="out" type="java.io.DataOutput"/>
  20736. <doc>
  20737. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  20738. is already an OutputStream, simply returns it. Otherwise, wraps
  20739. it in an OutputStream.
  20740. @param out the DataOutput to wrap
  20741. @return an OutputStream instance that outputs to 'out']]>
  20742. </doc>
  20743. </method>
  20744. <method name="write"
  20745. abstract="false" native="false" synchronized="false"
  20746. static="false" final="false" visibility="public"
  20747. deprecated="not deprecated">
  20748. <param name="b" type="int"/>
  20749. <exception name="IOException" type="java.io.IOException"/>
  20750. </method>
  20751. <method name="write"
  20752. abstract="false" native="false" synchronized="false"
  20753. static="false" final="false" visibility="public"
  20754. deprecated="not deprecated">
  20755. <param name="b" type="byte[]"/>
  20756. <param name="off" type="int"/>
  20757. <param name="len" type="int"/>
  20758. <exception name="IOException" type="java.io.IOException"/>
  20759. </method>
  20760. <method name="write"
  20761. abstract="false" native="false" synchronized="false"
  20762. static="false" final="false" visibility="public"
  20763. deprecated="not deprecated">
  20764. <param name="b" type="byte[]"/>
  20765. <exception name="IOException" type="java.io.IOException"/>
  20766. </method>
  20767. <doc>
  20768. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  20769. </doc>
  20770. </class>
  20771. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  20772. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  20773. <class name="DefaultStringifier" extends="java.lang.Object"
  20774. abstract="false"
  20775. static="false" final="false" visibility="public"
  20776. deprecated="not deprecated">
  20777. <implements name="org.apache.hadoop.io.Stringifier"/>
  20778. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  20779. static="false" final="false" visibility="public"
  20780. deprecated="not deprecated">
  20781. </constructor>
  20782. <method name="fromString" return="T"
  20783. abstract="false" native="false" synchronized="false"
  20784. static="false" final="false" visibility="public"
  20785. deprecated="not deprecated">
  20786. <param name="str" type="java.lang.String"/>
  20787. <exception name="IOException" type="java.io.IOException"/>
  20788. </method>
  20789. <method name="toString" return="java.lang.String"
  20790. abstract="false" native="false" synchronized="false"
  20791. static="false" final="false" visibility="public"
  20792. deprecated="not deprecated">
  20793. <param name="obj" type="T"/>
  20794. <exception name="IOException" type="java.io.IOException"/>
  20795. </method>
  20796. <method name="close"
  20797. abstract="false" native="false" synchronized="false"
  20798. static="false" final="false" visibility="public"
  20799. deprecated="not deprecated">
  20800. <exception name="IOException" type="java.io.IOException"/>
  20801. </method>
  20802. <method name="store"
  20803. abstract="false" native="false" synchronized="false"
  20804. static="true" final="false" visibility="public"
  20805. deprecated="not deprecated">
  20806. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20807. <param name="item" type="K"/>
  20808. <param name="keyName" type="java.lang.String"/>
  20809. <exception name="IOException" type="java.io.IOException"/>
  20810. <doc>
  20811. <![CDATA[Stores the item in the configuration with the given keyName.
  20812. @param <K> the class of the item
  20813. @param conf the configuration to store
  20814. @param item the object to be stored
  20815. @param keyName the name of the key to use
  20816. @throws IOException : forwards Exceptions from the underlying
  20817. {@link Serialization} classes.]]>
  20818. </doc>
  20819. </method>
  20820. <method name="load" return="K"
  20821. abstract="false" native="false" synchronized="false"
  20822. static="true" final="false" visibility="public"
  20823. deprecated="not deprecated">
  20824. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20825. <param name="keyName" type="java.lang.String"/>
  20826. <param name="itemClass" type="java.lang.Class"/>
  20827. <exception name="IOException" type="java.io.IOException"/>
  20828. <doc>
  20829. <![CDATA[Restores the object from the configuration.
  20830. @param <K> the class of the item
  20831. @param conf the configuration to use
  20832. @param keyName the name of the key to use
  20833. @param itemClass the class of the item
  20834. @return restored object
  20835. @throws IOException : forwards Exceptions from the underlying
  20836. {@link Serialization} classes.]]>
  20837. </doc>
  20838. </method>
  20839. <method name="storeArray"
  20840. abstract="false" native="false" synchronized="false"
  20841. static="true" final="false" visibility="public"
  20842. deprecated="not deprecated">
  20843. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20844. <param name="items" type="K[]"/>
  20845. <param name="keyName" type="java.lang.String"/>
  20846. <exception name="IOException" type="java.io.IOException"/>
  20847. <doc>
  20848. <![CDATA[Stores the array of items in the configuration with the given keyName.
  20849. @param <K> the class of the item
  20850. @param conf the configuration to use
  20851. @param items the objects to be stored
  20852. @param keyName the name of the key to use
  20853. @throws IndexOutOfBoundsException if the items array is empty
  20854. @throws IOException : forwards Exceptions from the underlying
  20855. {@link Serialization} classes.]]>
  20856. </doc>
  20857. </method>
  20858. <method name="loadArray" return="K[]"
  20859. abstract="false" native="false" synchronized="false"
  20860. static="true" final="false" visibility="public"
  20861. deprecated="not deprecated">
  20862. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20863. <param name="keyName" type="java.lang.String"/>
  20864. <param name="itemClass" type="java.lang.Class"/>
  20865. <exception name="IOException" type="java.io.IOException"/>
  20866. <doc>
  20867. <![CDATA[Restores the array of objects from the configuration.
  20868. @param <K> the class of the item
  20869. @param conf the configuration to use
  20870. @param keyName the name of the key to use
  20871. @param itemClass the class of the item
  20872. @return restored object
  20873. @throws IOException : forwards Exceptions from the underlying
  20874. {@link Serialization} classes.]]>
  20875. </doc>
  20876. </method>
  20877. <doc>
  20878. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  20879. interface which stringifies the objects using base64 encoding of the
  20880. serialized version of the objects. The {@link Serializer} and
  20881. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  20882. <br>
  20883. DefaultStringifier offers convenience methods to store/load objects to/from
  20884. the configuration.
  20885. @param <T> the class of the objects to stringify]]>
  20886. </doc>
  20887. </class>
  20888. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  20889. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  20890. <class name="DoubleWritable" extends="java.lang.Object"
  20891. abstract="false"
  20892. static="false" final="false" visibility="public"
  20893. deprecated="not deprecated">
  20894. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20895. <constructor name="DoubleWritable"
  20896. static="false" final="false" visibility="public"
  20897. deprecated="not deprecated">
  20898. </constructor>
  20899. <constructor name="DoubleWritable" type="double"
  20900. static="false" final="false" visibility="public"
  20901. deprecated="not deprecated">
  20902. </constructor>
  20903. <method name="readFields"
  20904. abstract="false" native="false" synchronized="false"
  20905. static="false" final="false" visibility="public"
  20906. deprecated="not deprecated">
  20907. <param name="in" type="java.io.DataInput"/>
  20908. <exception name="IOException" type="java.io.IOException"/>
  20909. </method>
  20910. <method name="write"
  20911. abstract="false" native="false" synchronized="false"
  20912. static="false" final="false" visibility="public"
  20913. deprecated="not deprecated">
  20914. <param name="out" type="java.io.DataOutput"/>
  20915. <exception name="IOException" type="java.io.IOException"/>
  20916. </method>
  20917. <method name="set"
  20918. abstract="false" native="false" synchronized="false"
  20919. static="false" final="false" visibility="public"
  20920. deprecated="not deprecated">
  20921. <param name="value" type="double"/>
  20922. </method>
  20923. <method name="get" return="double"
  20924. abstract="false" native="false" synchronized="false"
  20925. static="false" final="false" visibility="public"
  20926. deprecated="not deprecated">
  20927. </method>
  20928. <method name="equals" return="boolean"
  20929. abstract="false" native="false" synchronized="false"
  20930. static="false" final="false" visibility="public"
  20931. deprecated="not deprecated">
  20932. <param name="o" type="java.lang.Object"/>
  20933. <doc>
  20934. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  20935. </doc>
  20936. </method>
  20937. <method name="hashCode" return="int"
  20938. abstract="false" native="false" synchronized="false"
  20939. static="false" final="false" visibility="public"
  20940. deprecated="not deprecated">
  20941. </method>
  20942. <method name="compareTo" return="int"
  20943. abstract="false" native="false" synchronized="false"
  20944. static="false" final="false" visibility="public"
  20945. deprecated="not deprecated">
  20946. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  20947. </method>
  20948. <method name="toString" return="java.lang.String"
  20949. abstract="false" native="false" synchronized="false"
  20950. static="false" final="false" visibility="public"
  20951. deprecated="not deprecated">
  20952. </method>
  20953. <doc>
  20954. <![CDATA[Writable for Double values.]]>
  20955. </doc>
  20956. </class>
  20957. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  20958. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  20959. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  20960. abstract="false"
  20961. static="true" final="false" visibility="public"
  20962. deprecated="not deprecated">
  20963. <constructor name="Comparator"
  20964. static="false" final="false" visibility="public"
  20965. deprecated="not deprecated">
  20966. </constructor>
  20967. <method name="compare" return="int"
  20968. abstract="false" native="false" synchronized="false"
  20969. static="false" final="false" visibility="public"
  20970. deprecated="not deprecated">
  20971. <param name="b1" type="byte[]"/>
  20972. <param name="s1" type="int"/>
  20973. <param name="l1" type="int"/>
  20974. <param name="b2" type="byte[]"/>
  20975. <param name="s2" type="int"/>
  20976. <param name="l2" type="int"/>
  20977. </method>
  20978. <doc>
  20979. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  20980. </doc>
  20981. </class>
  20982. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  20983. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  20984. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  20985. abstract="false"
  20986. static="false" final="true" visibility="public"
  20987. deprecated="not deprecated">
  20988. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  20989. <constructor name="ElasticByteBufferPool"
  20990. static="false" final="false" visibility="public"
  20991. deprecated="not deprecated">
  20992. </constructor>
  20993. <method name="getBuffer" return="java.nio.ByteBuffer"
  20994. abstract="false" native="false" synchronized="true"
  20995. static="false" final="false" visibility="public"
  20996. deprecated="not deprecated">
  20997. <param name="direct" type="boolean"/>
  20998. <param name="length" type="int"/>
  20999. </method>
  21000. <method name="putBuffer"
  21001. abstract="false" native="false" synchronized="true"
  21002. static="false" final="false" visibility="public"
  21003. deprecated="not deprecated">
  21004. <param name="buffer" type="java.nio.ByteBuffer"/>
  21005. </method>
  21006. <doc>
  21007. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  21008. It also caches ByteBuffers after they're released. It will always return
  21009. the smallest cached buffer with at least the capacity you request.
  21010. We don't try to do anything clever here like try to limit the maximum cache
  21011. size.]]>
  21012. </doc>
  21013. </class>
  21014. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  21015. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  21016. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  21017. abstract="false"
  21018. static="false" final="false" visibility="public"
  21019. deprecated="not deprecated">
  21020. <implements name="org.apache.hadoop.io.Writable"/>
  21021. <implements name="org.apache.hadoop.conf.Configurable"/>
  21022. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  21023. static="false" final="false" visibility="public"
  21024. deprecated="not deprecated">
  21025. <doc>
  21026. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  21027. its size is zero, the <tt>elementType</tt> argument must not be null. If
  21028. the argument <tt>value</tt>'s size is bigger than zero, the argument
  21029. <tt>elementType</tt> is not be used.
  21030. @param value
  21031. @param elementType]]>
  21032. </doc>
  21033. </constructor>
  21034. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  21035. static="false" final="false" visibility="public"
  21036. deprecated="not deprecated">
  21037. <doc>
  21038. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  21039. or empty.
  21040. @param value]]>
  21041. </doc>
  21042. </constructor>
  21043. <method name="iterator" return="java.util.Iterator"
  21044. abstract="false" native="false" synchronized="false"
  21045. static="false" final="false" visibility="public"
  21046. deprecated="not deprecated">
  21047. </method>
  21048. <method name="size" return="int"
  21049. abstract="false" native="false" synchronized="false"
  21050. static="false" final="false" visibility="public"
  21051. deprecated="not deprecated">
  21052. </method>
  21053. <method name="add" return="boolean"
  21054. abstract="false" native="false" synchronized="false"
  21055. static="false" final="false" visibility="public"
  21056. deprecated="not deprecated">
  21057. <param name="e" type="E"/>
  21058. </method>
  21059. <method name="set"
  21060. abstract="false" native="false" synchronized="false"
  21061. static="false" final="false" visibility="public"
  21062. deprecated="not deprecated">
  21063. <param name="value" type="java.util.EnumSet"/>
  21064. <param name="elementType" type="java.lang.Class"/>
  21065. <doc>
  21066. <![CDATA[reset the EnumSetWritable with specified
  21067. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  21068. is null or its size is zero, the <tt>elementType</tt> argument must not be
  21069. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  21070. argument <tt>elementType</tt> is not be used.
  21071. @param value
  21072. @param elementType]]>
  21073. </doc>
  21074. </method>
  21075. <method name="get" return="java.util.EnumSet"
  21076. abstract="false" native="false" synchronized="false"
  21077. static="false" final="false" visibility="public"
  21078. deprecated="not deprecated">
  21079. <doc>
  21080. <![CDATA[Return the value of this EnumSetWritable.]]>
  21081. </doc>
  21082. </method>
  21083. <method name="readFields"
  21084. abstract="false" native="false" synchronized="false"
  21085. static="false" final="false" visibility="public"
  21086. deprecated="not deprecated">
  21087. <param name="in" type="java.io.DataInput"/>
  21088. <exception name="IOException" type="java.io.IOException"/>
  21089. </method>
  21090. <method name="write"
  21091. abstract="false" native="false" synchronized="false"
  21092. static="false" final="false" visibility="public"
  21093. deprecated="not deprecated">
  21094. <param name="out" type="java.io.DataOutput"/>
  21095. <exception name="IOException" type="java.io.IOException"/>
  21096. </method>
  21097. <method name="equals" return="boolean"
  21098. abstract="false" native="false" synchronized="false"
  21099. static="false" final="false" visibility="public"
  21100. deprecated="not deprecated">
  21101. <param name="o" type="java.lang.Object"/>
  21102. <doc>
  21103. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  21104. or both are null.]]>
  21105. </doc>
  21106. </method>
  21107. <method name="getElementType" return="java.lang.Class"
  21108. abstract="false" native="false" synchronized="false"
  21109. static="false" final="false" visibility="public"
  21110. deprecated="not deprecated">
  21111. <doc>
  21112. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  21113. may return null.
  21114. @return the element class]]>
  21115. </doc>
  21116. </method>
  21117. <method name="hashCode" return="int"
  21118. abstract="false" native="false" synchronized="false"
  21119. static="false" final="false" visibility="public"
  21120. deprecated="not deprecated">
  21121. </method>
  21122. <method name="toString" return="java.lang.String"
  21123. abstract="false" native="false" synchronized="false"
  21124. static="false" final="false" visibility="public"
  21125. deprecated="not deprecated">
  21126. </method>
  21127. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21128. abstract="false" native="false" synchronized="false"
  21129. static="false" final="false" visibility="public"
  21130. deprecated="not deprecated">
  21131. </method>
  21132. <method name="setConf"
  21133. abstract="false" native="false" synchronized="false"
  21134. static="false" final="false" visibility="public"
  21135. deprecated="not deprecated">
  21136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21137. </method>
  21138. <doc>
  21139. <![CDATA[A Writable wrapper for EnumSet.]]>
  21140. </doc>
  21141. </class>
  21142. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  21143. <!-- start class org.apache.hadoop.io.FloatWritable -->
  21144. <class name="FloatWritable" extends="java.lang.Object"
  21145. abstract="false"
  21146. static="false" final="false" visibility="public"
  21147. deprecated="not deprecated">
  21148. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21149. <constructor name="FloatWritable"
  21150. static="false" final="false" visibility="public"
  21151. deprecated="not deprecated">
  21152. </constructor>
  21153. <constructor name="FloatWritable" type="float"
  21154. static="false" final="false" visibility="public"
  21155. deprecated="not deprecated">
  21156. </constructor>
  21157. <method name="set"
  21158. abstract="false" native="false" synchronized="false"
  21159. static="false" final="false" visibility="public"
  21160. deprecated="not deprecated">
  21161. <param name="value" type="float"/>
  21162. <doc>
  21163. <![CDATA[Set the value of this FloatWritable.]]>
  21164. </doc>
  21165. </method>
  21166. <method name="get" return="float"
  21167. abstract="false" native="false" synchronized="false"
  21168. static="false" final="false" visibility="public"
  21169. deprecated="not deprecated">
  21170. <doc>
  21171. <![CDATA[Return the value of this FloatWritable.]]>
  21172. </doc>
  21173. </method>
  21174. <method name="readFields"
  21175. abstract="false" native="false" synchronized="false"
  21176. static="false" final="false" visibility="public"
  21177. deprecated="not deprecated">
  21178. <param name="in" type="java.io.DataInput"/>
  21179. <exception name="IOException" type="java.io.IOException"/>
  21180. </method>
  21181. <method name="write"
  21182. abstract="false" native="false" synchronized="false"
  21183. static="false" final="false" visibility="public"
  21184. deprecated="not deprecated">
  21185. <param name="out" type="java.io.DataOutput"/>
  21186. <exception name="IOException" type="java.io.IOException"/>
  21187. </method>
  21188. <method name="equals" return="boolean"
  21189. abstract="false" native="false" synchronized="false"
  21190. static="false" final="false" visibility="public"
  21191. deprecated="not deprecated">
  21192. <param name="o" type="java.lang.Object"/>
  21193. <doc>
  21194. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  21195. </doc>
  21196. </method>
  21197. <method name="hashCode" return="int"
  21198. abstract="false" native="false" synchronized="false"
  21199. static="false" final="false" visibility="public"
  21200. deprecated="not deprecated">
  21201. </method>
  21202. <method name="compareTo" return="int"
  21203. abstract="false" native="false" synchronized="false"
  21204. static="false" final="false" visibility="public"
  21205. deprecated="not deprecated">
  21206. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  21207. <doc>
  21208. <![CDATA[Compares two FloatWritables.]]>
  21209. </doc>
  21210. </method>
  21211. <method name="toString" return="java.lang.String"
  21212. abstract="false" native="false" synchronized="false"
  21213. static="false" final="false" visibility="public"
  21214. deprecated="not deprecated">
  21215. </method>
  21216. <doc>
  21217. <![CDATA[A WritableComparable for floats.]]>
  21218. </doc>
  21219. </class>
  21220. <!-- end class org.apache.hadoop.io.FloatWritable -->
  21221. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  21222. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  21223. abstract="false"
  21224. static="true" final="false" visibility="public"
  21225. deprecated="not deprecated">
  21226. <constructor name="Comparator"
  21227. static="false" final="false" visibility="public"
  21228. deprecated="not deprecated">
  21229. </constructor>
  21230. <method name="compare" return="int"
  21231. abstract="false" native="false" synchronized="false"
  21232. static="false" final="false" visibility="public"
  21233. deprecated="not deprecated">
  21234. <param name="b1" type="byte[]"/>
  21235. <param name="s1" type="int"/>
  21236. <param name="l1" type="int"/>
  21237. <param name="b2" type="byte[]"/>
  21238. <param name="s2" type="int"/>
  21239. <param name="l2" type="int"/>
  21240. </method>
  21241. <doc>
  21242. <![CDATA[A Comparator optimized for FloatWritable.]]>
  21243. </doc>
  21244. </class>
  21245. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  21246. <!-- start class org.apache.hadoop.io.GenericWritable -->
  21247. <class name="GenericWritable" extends="java.lang.Object"
  21248. abstract="true"
  21249. static="false" final="false" visibility="public"
  21250. deprecated="not deprecated">
  21251. <implements name="org.apache.hadoop.io.Writable"/>
  21252. <implements name="org.apache.hadoop.conf.Configurable"/>
  21253. <constructor name="GenericWritable"
  21254. static="false" final="false" visibility="public"
  21255. deprecated="not deprecated">
  21256. </constructor>
  21257. <method name="set"
  21258. abstract="false" native="false" synchronized="false"
  21259. static="false" final="false" visibility="public"
  21260. deprecated="not deprecated">
  21261. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  21262. <doc>
  21263. <![CDATA[Set the instance that is wrapped.
  21264. @param obj]]>
  21265. </doc>
  21266. </method>
  21267. <method name="get" return="org.apache.hadoop.io.Writable"
  21268. abstract="false" native="false" synchronized="false"
  21269. static="false" final="false" visibility="public"
  21270. deprecated="not deprecated">
  21271. <doc>
  21272. <![CDATA[Return the wrapped instance.]]>
  21273. </doc>
  21274. </method>
  21275. <method name="toString" return="java.lang.String"
  21276. abstract="false" native="false" synchronized="false"
  21277. static="false" final="false" visibility="public"
  21278. deprecated="not deprecated">
  21279. </method>
  21280. <method name="readFields"
  21281. abstract="false" native="false" synchronized="false"
  21282. static="false" final="false" visibility="public"
  21283. deprecated="not deprecated">
  21284. <param name="in" type="java.io.DataInput"/>
  21285. <exception name="IOException" type="java.io.IOException"/>
  21286. </method>
  21287. <method name="write"
  21288. abstract="false" native="false" synchronized="false"
  21289. static="false" final="false" visibility="public"
  21290. deprecated="not deprecated">
  21291. <param name="out" type="java.io.DataOutput"/>
  21292. <exception name="IOException" type="java.io.IOException"/>
  21293. </method>
  21294. <method name="getTypes" return="java.lang.Class[]"
  21295. abstract="true" native="false" synchronized="false"
  21296. static="false" final="false" visibility="protected"
  21297. deprecated="not deprecated">
  21298. <doc>
  21299. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  21300. to return a constant array of classes.]]>
  21301. </doc>
  21302. </method>
  21303. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21304. abstract="false" native="false" synchronized="false"
  21305. static="false" final="false" visibility="public"
  21306. deprecated="not deprecated">
  21307. </method>
  21308. <method name="setConf"
  21309. abstract="false" native="false" synchronized="false"
  21310. static="false" final="false" visibility="public"
  21311. deprecated="not deprecated">
  21312. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21313. </method>
  21314. <doc>
  21315. <![CDATA[A wrapper for Writable instances.
  21316. <p>
  21317. When two sequence files, which have same Key type but different Value
  21318. types, are mapped out to reduce, multiple Value types is not allowed.
  21319. In this case, this class can help you wrap instances with different types.
  21320. </p>
  21321. <p>
  21322. Compared with <code>ObjectWritable</code>, this class is much more effective,
  21323. because <code>ObjectWritable</code> will append the class declaration as a String
  21324. into the output file in every Key-Value pair.
  21325. </p>
  21326. <p>
  21327. Generic Writable implements {@link Configurable} interface, so that it will be
  21328. configured by the framework. The configuration is passed to the wrapped objects
  21329. implementing {@link Configurable} interface <i>before deserialization</i>.
  21330. </p>
  21331. how to use it: <br>
  21332. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  21333. 2. Implements the abstract method <code>getTypes()</code>, defines
  21334. the classes which will be wrapped in GenericObject in application.
  21335. Attention: this classes defined in <code>getTypes()</code> method, must
  21336. implement <code>Writable</code> interface.
  21337. <br><br>
  21338. The code looks like this:
  21339. <blockquote><pre>
  21340. public class GenericObject extends GenericWritable {
  21341. private static Class[] CLASSES = {
  21342. ClassType1.class,
  21343. ClassType2.class,
  21344. ClassType3.class,
  21345. };
  21346. protected Class[] getTypes() {
  21347. return CLASSES;
  21348. }
  21349. }
  21350. </pre></blockquote>
  21351. @since Nov 8, 2006]]>
  21352. </doc>
  21353. </class>
  21354. <!-- end class org.apache.hadoop.io.GenericWritable -->
  21355. <!-- start class org.apache.hadoop.io.IntWritable -->
  21356. <class name="IntWritable" extends="java.lang.Object"
  21357. abstract="false"
  21358. static="false" final="false" visibility="public"
  21359. deprecated="not deprecated">
  21360. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21361. <constructor name="IntWritable"
  21362. static="false" final="false" visibility="public"
  21363. deprecated="not deprecated">
  21364. </constructor>
  21365. <constructor name="IntWritable" type="int"
  21366. static="false" final="false" visibility="public"
  21367. deprecated="not deprecated">
  21368. </constructor>
  21369. <method name="set"
  21370. abstract="false" native="false" synchronized="false"
  21371. static="false" final="false" visibility="public"
  21372. deprecated="not deprecated">
  21373. <param name="value" type="int"/>
  21374. <doc>
  21375. <![CDATA[Set the value of this IntWritable.]]>
  21376. </doc>
  21377. </method>
  21378. <method name="get" return="int"
  21379. abstract="false" native="false" synchronized="false"
  21380. static="false" final="false" visibility="public"
  21381. deprecated="not deprecated">
  21382. <doc>
  21383. <![CDATA[Return the value of this IntWritable.]]>
  21384. </doc>
  21385. </method>
  21386. <method name="readFields"
  21387. abstract="false" native="false" synchronized="false"
  21388. static="false" final="false" visibility="public"
  21389. deprecated="not deprecated">
  21390. <param name="in" type="java.io.DataInput"/>
  21391. <exception name="IOException" type="java.io.IOException"/>
  21392. </method>
  21393. <method name="write"
  21394. abstract="false" native="false" synchronized="false"
  21395. static="false" final="false" visibility="public"
  21396. deprecated="not deprecated">
  21397. <param name="out" type="java.io.DataOutput"/>
  21398. <exception name="IOException" type="java.io.IOException"/>
  21399. </method>
  21400. <method name="equals" return="boolean"
  21401. abstract="false" native="false" synchronized="false"
  21402. static="false" final="false" visibility="public"
  21403. deprecated="not deprecated">
  21404. <param name="o" type="java.lang.Object"/>
  21405. <doc>
  21406. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  21407. </doc>
  21408. </method>
  21409. <method name="hashCode" return="int"
  21410. abstract="false" native="false" synchronized="false"
  21411. static="false" final="false" visibility="public"
  21412. deprecated="not deprecated">
  21413. </method>
  21414. <method name="compareTo" return="int"
  21415. abstract="false" native="false" synchronized="false"
  21416. static="false" final="false" visibility="public"
  21417. deprecated="not deprecated">
  21418. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  21419. <doc>
  21420. <![CDATA[Compares two IntWritables.]]>
  21421. </doc>
  21422. </method>
  21423. <method name="toString" return="java.lang.String"
  21424. abstract="false" native="false" synchronized="false"
  21425. static="false" final="false" visibility="public"
  21426. deprecated="not deprecated">
  21427. </method>
  21428. <doc>
  21429. <![CDATA[A WritableComparable for ints.]]>
  21430. </doc>
  21431. </class>
  21432. <!-- end class org.apache.hadoop.io.IntWritable -->
  21433. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  21434. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  21435. abstract="false"
  21436. static="true" final="false" visibility="public"
  21437. deprecated="not deprecated">
  21438. <constructor name="Comparator"
  21439. static="false" final="false" visibility="public"
  21440. deprecated="not deprecated">
  21441. </constructor>
  21442. <method name="compare" return="int"
  21443. abstract="false" native="false" synchronized="false"
  21444. static="false" final="false" visibility="public"
  21445. deprecated="not deprecated">
  21446. <param name="b1" type="byte[]"/>
  21447. <param name="s1" type="int"/>
  21448. <param name="l1" type="int"/>
  21449. <param name="b2" type="byte[]"/>
  21450. <param name="s2" type="int"/>
  21451. <param name="l2" type="int"/>
  21452. </method>
  21453. <doc>
  21454. <![CDATA[A Comparator optimized for IntWritable.]]>
  21455. </doc>
  21456. </class>
  21457. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  21458. <!-- start class org.apache.hadoop.io.IOUtils -->
  21459. <class name="IOUtils" extends="java.lang.Object"
  21460. abstract="false"
  21461. static="false" final="false" visibility="public"
  21462. deprecated="not deprecated">
  21463. <constructor name="IOUtils"
  21464. static="false" final="false" visibility="public"
  21465. deprecated="not deprecated">
  21466. </constructor>
  21467. <method name="copyBytes"
  21468. abstract="false" native="false" synchronized="false"
  21469. static="true" final="false" visibility="public"
  21470. deprecated="not deprecated">
  21471. <param name="in" type="java.io.InputStream"/>
  21472. <param name="out" type="java.io.OutputStream"/>
  21473. <param name="buffSize" type="int"/>
  21474. <param name="close" type="boolean"/>
  21475. <exception name="IOException" type="java.io.IOException"/>
  21476. <doc>
  21477. <![CDATA[Copies from one stream to another.
  21478. @param in InputStrem to read from
  21479. @param out OutputStream to write to
  21480. @param buffSize the size of the buffer
  21481. @param close whether or not close the InputStream and
  21482. OutputStream at the end. The streams are closed in the finally clause.]]>
  21483. </doc>
  21484. </method>
  21485. <method name="copyBytes"
  21486. abstract="false" native="false" synchronized="false"
  21487. static="true" final="false" visibility="public"
  21488. deprecated="not deprecated">
  21489. <param name="in" type="java.io.InputStream"/>
  21490. <param name="out" type="java.io.OutputStream"/>
  21491. <param name="buffSize" type="int"/>
  21492. <exception name="IOException" type="java.io.IOException"/>
  21493. <doc>
  21494. <![CDATA[Copies from one stream to another.
  21495. @param in InputStrem to read from
  21496. @param out OutputStream to write to
  21497. @param buffSize the size of the buffer]]>
  21498. </doc>
  21499. </method>
  21500. <method name="copyBytes"
  21501. abstract="false" native="false" synchronized="false"
  21502. static="true" final="false" visibility="public"
  21503. deprecated="not deprecated">
  21504. <param name="in" type="java.io.InputStream"/>
  21505. <param name="out" type="java.io.OutputStream"/>
  21506. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21507. <exception name="IOException" type="java.io.IOException"/>
  21508. <doc>
  21509. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  21510. at the end</strong>.
  21511. @param in InputStrem to read from
  21512. @param out OutputStream to write to
  21513. @param conf the Configuration object]]>
  21514. </doc>
  21515. </method>
  21516. <method name="copyBytes"
  21517. abstract="false" native="false" synchronized="false"
  21518. static="true" final="false" visibility="public"
  21519. deprecated="not deprecated">
  21520. <param name="in" type="java.io.InputStream"/>
  21521. <param name="out" type="java.io.OutputStream"/>
  21522. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21523. <param name="close" type="boolean"/>
  21524. <exception name="IOException" type="java.io.IOException"/>
  21525. <doc>
  21526. <![CDATA[Copies from one stream to another.
  21527. @param in InputStream to read from
  21528. @param out OutputStream to write to
  21529. @param conf the Configuration object
  21530. @param close whether or not close the InputStream and
  21531. OutputStream at the end. The streams are closed in the finally clause.]]>
  21532. </doc>
  21533. </method>
  21534. <method name="copyBytes"
  21535. abstract="false" native="false" synchronized="false"
  21536. static="true" final="false" visibility="public"
  21537. deprecated="not deprecated">
  21538. <param name="in" type="java.io.InputStream"/>
  21539. <param name="out" type="java.io.OutputStream"/>
  21540. <param name="count" type="long"/>
  21541. <param name="close" type="boolean"/>
  21542. <exception name="IOException" type="java.io.IOException"/>
  21543. <doc>
  21544. <![CDATA[Copies count bytes from one stream to another.
  21545. @param in InputStream to read from
  21546. @param out OutputStream to write to
  21547. @param count number of bytes to copy
  21548. @param close whether to close the streams
  21549. @throws IOException if bytes can not be read or written]]>
  21550. </doc>
  21551. </method>
  21552. <method name="wrappedReadForCompressedData" return="int"
  21553. abstract="false" native="false" synchronized="false"
  21554. static="true" final="false" visibility="public"
  21555. deprecated="not deprecated">
  21556. <param name="is" type="java.io.InputStream"/>
  21557. <param name="buf" type="byte[]"/>
  21558. <param name="off" type="int"/>
  21559. <param name="len" type="int"/>
  21560. <exception name="IOException" type="java.io.IOException"/>
  21561. <doc>
  21562. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  21563. thrown by the underlying stream (either IO or decompression-related), and
  21564. re-throws as an IOException.
  21565. @param is - InputStream to be read from
  21566. @param buf - buffer the data is read into
  21567. @param off - offset within buf
  21568. @param len - amount of data to be read
  21569. @return number of bytes read]]>
  21570. </doc>
  21571. </method>
  21572. <method name="readFully"
  21573. abstract="false" native="false" synchronized="false"
  21574. static="true" final="false" visibility="public"
  21575. deprecated="not deprecated">
  21576. <param name="in" type="java.io.InputStream"/>
  21577. <param name="buf" type="byte[]"/>
  21578. <param name="off" type="int"/>
  21579. <param name="len" type="int"/>
  21580. <exception name="IOException" type="java.io.IOException"/>
  21581. <doc>
  21582. <![CDATA[Reads len bytes in a loop.
  21583. @param in InputStream to read from
  21584. @param buf The buffer to fill
  21585. @param off offset from the buffer
  21586. @param len the length of bytes to read
  21587. @throws IOException if it could not read requested number of bytes
  21588. for any reason (including EOF)]]>
  21589. </doc>
  21590. </method>
  21591. <method name="skipFully"
  21592. abstract="false" native="false" synchronized="false"
  21593. static="true" final="false" visibility="public"
  21594. deprecated="not deprecated">
  21595. <param name="in" type="java.io.InputStream"/>
  21596. <param name="len" type="long"/>
  21597. <exception name="IOException" type="java.io.IOException"/>
  21598. <doc>
  21599. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  21600. @param in The InputStream to skip bytes from
  21601. @param len number of bytes to skip.
  21602. @throws IOException if it could not skip requested number of bytes
  21603. for any reason (including EOF)]]>
  21604. </doc>
  21605. </method>
  21606. <method name="cleanup"
  21607. abstract="false" native="false" synchronized="false"
  21608. static="true" final="false" visibility="public"
  21609. deprecated="not deprecated">
  21610. <param name="log" type="org.apache.commons.logging.Log"/>
  21611. <param name="closeables" type="java.io.Closeable[]"/>
  21612. <doc>
  21613. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  21614. null pointers. Must only be used for cleanup in exception handlers.
  21615. @param log the log to record problems to at debug level. Can be null.
  21616. @param closeables the objects to close]]>
  21617. </doc>
  21618. </method>
  21619. <method name="closeStream"
  21620. abstract="false" native="false" synchronized="false"
  21621. static="true" final="false" visibility="public"
  21622. deprecated="not deprecated">
  21623. <param name="stream" type="java.io.Closeable"/>
  21624. <doc>
  21625. <![CDATA[Closes the stream ignoring {@link IOException}.
  21626. Must only be called in cleaning up from exception handlers.
  21627. @param stream the Stream to close]]>
  21628. </doc>
  21629. </method>
  21630. <method name="closeSocket"
  21631. abstract="false" native="false" synchronized="false"
  21632. static="true" final="false" visibility="public"
  21633. deprecated="not deprecated">
  21634. <param name="sock" type="java.net.Socket"/>
  21635. <doc>
  21636. <![CDATA[Closes the socket ignoring {@link IOException}
  21637. @param sock the Socket to close]]>
  21638. </doc>
  21639. </method>
  21640. <method name="writeFully"
  21641. abstract="false" native="false" synchronized="false"
  21642. static="true" final="false" visibility="public"
  21643. deprecated="not deprecated">
  21644. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  21645. <param name="buf" type="java.nio.ByteBuffer"/>
  21646. <exception name="IOException" type="java.io.IOException"/>
  21647. <doc>
  21648. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  21649. @param bc The WritableByteChannel to write to
  21650. @param buf The input buffer
  21651. @throws IOException On I/O error]]>
  21652. </doc>
  21653. </method>
  21654. <method name="writeFully"
  21655. abstract="false" native="false" synchronized="false"
  21656. static="true" final="false" visibility="public"
  21657. deprecated="not deprecated">
  21658. <param name="fc" type="java.nio.channels.FileChannel"/>
  21659. <param name="buf" type="java.nio.ByteBuffer"/>
  21660. <param name="offset" type="long"/>
  21661. <exception name="IOException" type="java.io.IOException"/>
  21662. <doc>
  21663. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  21664. handling short writes.
  21665. @param fc The FileChannel to write to
  21666. @param buf The input buffer
  21667. @param offset The offset in the file to start writing at
  21668. @throws IOException On I/O error]]>
  21669. </doc>
  21670. </method>
  21671. <method name="listDirectory" return="java.util.List"
  21672. abstract="false" native="false" synchronized="false"
  21673. static="true" final="false" visibility="public"
  21674. deprecated="not deprecated">
  21675. <param name="dir" type="java.io.File"/>
  21676. <param name="filter" type="java.io.FilenameFilter"/>
  21677. <exception name="IOException" type="java.io.IOException"/>
  21678. <doc>
  21679. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  21680. This is better than File#listDir because it does not ignore IOExceptions.
  21681. @param dir The directory to list.
  21682. @param filter If non-null, the filter to use when listing
  21683. this directory.
  21684. @return The list of files in the directory.
  21685. @throws IOException On I/O error]]>
  21686. </doc>
  21687. </method>
  21688. <doc>
  21689. <![CDATA[An utility class for I/O related functionality.]]>
  21690. </doc>
  21691. </class>
  21692. <!-- end class org.apache.hadoop.io.IOUtils -->
  21693. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  21694. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  21695. abstract="false"
  21696. static="true" final="false" visibility="public"
  21697. deprecated="not deprecated">
  21698. <constructor name="NullOutputStream"
  21699. static="false" final="false" visibility="public"
  21700. deprecated="not deprecated">
  21701. </constructor>
  21702. <method name="write"
  21703. abstract="false" native="false" synchronized="false"
  21704. static="false" final="false" visibility="public"
  21705. deprecated="not deprecated">
  21706. <param name="b" type="byte[]"/>
  21707. <param name="off" type="int"/>
  21708. <param name="len" type="int"/>
  21709. <exception name="IOException" type="java.io.IOException"/>
  21710. </method>
  21711. <method name="write"
  21712. abstract="false" native="false" synchronized="false"
  21713. static="false" final="false" visibility="public"
  21714. deprecated="not deprecated">
  21715. <param name="b" type="int"/>
  21716. <exception name="IOException" type="java.io.IOException"/>
  21717. </method>
  21718. <doc>
  21719. <![CDATA[The /dev/null of OutputStreams.]]>
  21720. </doc>
  21721. </class>
  21722. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  21723. <!-- start class org.apache.hadoop.io.LongWritable -->
  21724. <class name="LongWritable" extends="java.lang.Object"
  21725. abstract="false"
  21726. static="false" final="false" visibility="public"
  21727. deprecated="not deprecated">
  21728. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21729. <constructor name="LongWritable"
  21730. static="false" final="false" visibility="public"
  21731. deprecated="not deprecated">
  21732. </constructor>
  21733. <constructor name="LongWritable" type="long"
  21734. static="false" final="false" visibility="public"
  21735. deprecated="not deprecated">
  21736. </constructor>
  21737. <method name="set"
  21738. abstract="false" native="false" synchronized="false"
  21739. static="false" final="false" visibility="public"
  21740. deprecated="not deprecated">
  21741. <param name="value" type="long"/>
  21742. <doc>
  21743. <![CDATA[Set the value of this LongWritable.]]>
  21744. </doc>
  21745. </method>
  21746. <method name="get" return="long"
  21747. abstract="false" native="false" synchronized="false"
  21748. static="false" final="false" visibility="public"
  21749. deprecated="not deprecated">
  21750. <doc>
  21751. <![CDATA[Return the value of this LongWritable.]]>
  21752. </doc>
  21753. </method>
  21754. <method name="readFields"
  21755. abstract="false" native="false" synchronized="false"
  21756. static="false" final="false" visibility="public"
  21757. deprecated="not deprecated">
  21758. <param name="in" type="java.io.DataInput"/>
  21759. <exception name="IOException" type="java.io.IOException"/>
  21760. </method>
  21761. <method name="write"
  21762. abstract="false" native="false" synchronized="false"
  21763. static="false" final="false" visibility="public"
  21764. deprecated="not deprecated">
  21765. <param name="out" type="java.io.DataOutput"/>
  21766. <exception name="IOException" type="java.io.IOException"/>
  21767. </method>
  21768. <method name="equals" return="boolean"
  21769. abstract="false" native="false" synchronized="false"
  21770. static="false" final="false" visibility="public"
  21771. deprecated="not deprecated">
  21772. <param name="o" type="java.lang.Object"/>
  21773. <doc>
  21774. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  21775. </doc>
  21776. </method>
  21777. <method name="hashCode" return="int"
  21778. abstract="false" native="false" synchronized="false"
  21779. static="false" final="false" visibility="public"
  21780. deprecated="not deprecated">
  21781. </method>
  21782. <method name="compareTo" return="int"
  21783. abstract="false" native="false" synchronized="false"
  21784. static="false" final="false" visibility="public"
  21785. deprecated="not deprecated">
  21786. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  21787. <doc>
  21788. <![CDATA[Compares two LongWritables.]]>
  21789. </doc>
  21790. </method>
  21791. <method name="toString" return="java.lang.String"
  21792. abstract="false" native="false" synchronized="false"
  21793. static="false" final="false" visibility="public"
  21794. deprecated="not deprecated">
  21795. </method>
  21796. <doc>
  21797. <![CDATA[A WritableComparable for longs.]]>
  21798. </doc>
  21799. </class>
  21800. <!-- end class org.apache.hadoop.io.LongWritable -->
  21801. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  21802. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  21803. abstract="false"
  21804. static="true" final="false" visibility="public"
  21805. deprecated="not deprecated">
  21806. <constructor name="Comparator"
  21807. static="false" final="false" visibility="public"
  21808. deprecated="not deprecated">
  21809. </constructor>
  21810. <method name="compare" return="int"
  21811. abstract="false" native="false" synchronized="false"
  21812. static="false" final="false" visibility="public"
  21813. deprecated="not deprecated">
  21814. <param name="b1" type="byte[]"/>
  21815. <param name="s1" type="int"/>
  21816. <param name="l1" type="int"/>
  21817. <param name="b2" type="byte[]"/>
  21818. <param name="s2" type="int"/>
  21819. <param name="l2" type="int"/>
  21820. </method>
  21821. <doc>
  21822. <![CDATA[A Comparator optimized for LongWritable.]]>
  21823. </doc>
  21824. </class>
  21825. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  21826. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  21827. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  21828. abstract="false"
  21829. static="true" final="false" visibility="public"
  21830. deprecated="not deprecated">
  21831. <constructor name="DecreasingComparator"
  21832. static="false" final="false" visibility="public"
  21833. deprecated="not deprecated">
  21834. </constructor>
  21835. <method name="compare" return="int"
  21836. abstract="false" native="false" synchronized="false"
  21837. static="false" final="false" visibility="public"
  21838. deprecated="not deprecated">
  21839. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  21840. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  21841. </method>
  21842. <method name="compare" return="int"
  21843. abstract="false" native="false" synchronized="false"
  21844. static="false" final="false" visibility="public"
  21845. deprecated="not deprecated">
  21846. <param name="b1" type="byte[]"/>
  21847. <param name="s1" type="int"/>
  21848. <param name="l1" type="int"/>
  21849. <param name="b2" type="byte[]"/>
  21850. <param name="s2" type="int"/>
  21851. <param name="l2" type="int"/>
  21852. </method>
  21853. <doc>
  21854. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  21855. </doc>
  21856. </class>
  21857. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  21858. <!-- start class org.apache.hadoop.io.MapFile -->
  21859. <class name="MapFile" extends="java.lang.Object"
  21860. abstract="false"
  21861. static="false" final="false" visibility="public"
  21862. deprecated="not deprecated">
  21863. <constructor name="MapFile"
  21864. static="false" final="false" visibility="protected"
  21865. deprecated="not deprecated">
  21866. </constructor>
  21867. <method name="rename"
  21868. abstract="false" native="false" synchronized="false"
  21869. static="true" final="false" visibility="public"
  21870. deprecated="not deprecated">
  21871. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21872. <param name="oldName" type="java.lang.String"/>
  21873. <param name="newName" type="java.lang.String"/>
  21874. <exception name="IOException" type="java.io.IOException"/>
  21875. <doc>
  21876. <![CDATA[Renames an existing map directory.]]>
  21877. </doc>
  21878. </method>
  21879. <method name="delete"
  21880. abstract="false" native="false" synchronized="false"
  21881. static="true" final="false" visibility="public"
  21882. deprecated="not deprecated">
  21883. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21884. <param name="name" type="java.lang.String"/>
  21885. <exception name="IOException" type="java.io.IOException"/>
  21886. <doc>
  21887. <![CDATA[Deletes the named map file.]]>
  21888. </doc>
  21889. </method>
  21890. <method name="fix" return="long"
  21891. abstract="false" native="false" synchronized="false"
  21892. static="true" final="false" visibility="public"
  21893. deprecated="not deprecated">
  21894. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21895. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  21896. <param name="keyClass" type="java.lang.Class"/>
  21897. <param name="valueClass" type="java.lang.Class"/>
  21898. <param name="dryrun" type="boolean"/>
  21899. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21900. <exception name="Exception" type="java.lang.Exception"/>
  21901. <doc>
  21902. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  21903. @param fs filesystem
  21904. @param dir directory containing the MapFile data and index
  21905. @param keyClass key class (has to be a subclass of Writable)
  21906. @param valueClass value class (has to be a subclass of Writable)
  21907. @param dryrun do not perform any changes, just report what needs to be done
  21908. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  21909. @throws Exception]]>
  21910. </doc>
  21911. </method>
  21912. <method name="main"
  21913. abstract="false" native="false" synchronized="false"
  21914. static="true" final="false" visibility="public"
  21915. deprecated="not deprecated">
  21916. <param name="args" type="java.lang.String[]"/>
  21917. <exception name="Exception" type="java.lang.Exception"/>
  21918. </method>
  21919. <field name="INDEX_FILE_NAME" type="java.lang.String"
  21920. transient="false" volatile="false"
  21921. static="true" final="true" visibility="public"
  21922. deprecated="not deprecated">
  21923. <doc>
  21924. <![CDATA[The name of the index file.]]>
  21925. </doc>
  21926. </field>
  21927. <field name="DATA_FILE_NAME" type="java.lang.String"
  21928. transient="false" volatile="false"
  21929. static="true" final="true" visibility="public"
  21930. deprecated="not deprecated">
  21931. <doc>
  21932. <![CDATA[The name of the data file.]]>
  21933. </doc>
  21934. </field>
  21935. <doc>
  21936. <![CDATA[A file-based map from keys to values.
  21937. <p>A map is a directory containing two files, the <code>data</code> file,
  21938. containing all keys and values in the map, and a smaller <code>index</code>
  21939. file, containing a fraction of the keys. The fraction is determined by
  21940. {@link Writer#getIndexInterval()}.
  21941. <p>The index file is read entirely into memory. Thus key implementations
  21942. should try to keep themselves small.
  21943. <p>Map files are created by adding entries in-order. To maintain a large
  21944. database, perform updates by copying the previous version of a database and
  21945. merging in a sorted change list, to create a new version of the database in
  21946. a new file. Sorting large change lists can be done with {@link
  21947. SequenceFile.Sorter}.]]>
  21948. </doc>
  21949. </class>
  21950. <!-- end class org.apache.hadoop.io.MapFile -->
  21951. <!-- start class org.apache.hadoop.io.MapFile.Merger -->
  21952. <class name="MapFile.Merger" extends="java.lang.Object"
  21953. abstract="false"
  21954. static="true" final="false" visibility="public"
  21955. deprecated="not deprecated">
  21956. <constructor name="Merger" type="org.apache.hadoop.conf.Configuration"
  21957. static="false" final="false" visibility="public"
  21958. deprecated="not deprecated">
  21959. <exception name="IOException" type="java.io.IOException"/>
  21960. </constructor>
  21961. <method name="merge"
  21962. abstract="false" native="false" synchronized="false"
  21963. static="false" final="false" visibility="public"
  21964. deprecated="not deprecated">
  21965. <param name="inMapFiles" type="org.apache.hadoop.fs.Path[]"/>
  21966. <param name="deleteInputs" type="boolean"/>
  21967. <param name="outMapFile" type="org.apache.hadoop.fs.Path"/>
  21968. <exception name="IOException" type="java.io.IOException"/>
  21969. <doc>
  21970. <![CDATA[Merge multiple MapFiles to one Mapfile
  21971. @param inMapFiles
  21972. @param outMapFile
  21973. @throws IOException]]>
  21974. </doc>
  21975. </method>
  21976. <doc>
  21977. <![CDATA[Class to merge multiple MapFiles of same Key and Value types to one MapFile]]>
  21978. </doc>
  21979. </class>
  21980. <!-- end class org.apache.hadoop.io.MapFile.Merger -->
  21981. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  21982. <class name="MapFile.Reader" extends="java.lang.Object"
  21983. abstract="false"
  21984. static="true" final="false" visibility="public"
  21985. deprecated="not deprecated">
  21986. <implements name="java.io.Closeable"/>
  21987. <constructor name="Reader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  21988. static="false" final="false" visibility="public"
  21989. deprecated="not deprecated">
  21990. <exception name="IOException" type="java.io.IOException"/>
  21991. </constructor>
  21992. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  21993. static="false" final="false" visibility="public"
  21994. deprecated="deprecated, no comment">
  21995. <exception name="IOException" type="java.io.IOException"/>
  21996. <doc>
  21997. <![CDATA[Construct a map reader for the named map.
  21998. @deprecated]]>
  21999. </doc>
  22000. </constructor>
  22001. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  22002. static="false" final="false" visibility="public"
  22003. deprecated="deprecated, no comment">
  22004. <exception name="IOException" type="java.io.IOException"/>
  22005. <doc>
  22006. <![CDATA[Construct a map reader for the named map using the named comparator.
  22007. @deprecated]]>
  22008. </doc>
  22009. </constructor>
  22010. <method name="getKeyClass" return="java.lang.Class"
  22011. abstract="false" native="false" synchronized="false"
  22012. static="false" final="false" visibility="public"
  22013. deprecated="not deprecated">
  22014. <doc>
  22015. <![CDATA[Returns the class of keys in this file.]]>
  22016. </doc>
  22017. </method>
  22018. <method name="getValueClass" return="java.lang.Class"
  22019. abstract="false" native="false" synchronized="false"
  22020. static="false" final="false" visibility="public"
  22021. deprecated="not deprecated">
  22022. <doc>
  22023. <![CDATA[Returns the class of values in this file.]]>
  22024. </doc>
  22025. </method>
  22026. <method name="comparator" return="org.apache.hadoop.io.MapFile.Reader.Option"
  22027. abstract="false" native="false" synchronized="false"
  22028. static="true" final="false" visibility="public"
  22029. deprecated="not deprecated">
  22030. <param name="value" type="org.apache.hadoop.io.WritableComparator"/>
  22031. </method>
  22032. <method name="open"
  22033. abstract="false" native="false" synchronized="true"
  22034. static="false" final="false" visibility="protected"
  22035. deprecated="not deprecated">
  22036. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  22037. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  22038. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22039. <param name="options" type="org.apache.hadoop.io.SequenceFile.Reader.Option[]"/>
  22040. <exception name="IOException" type="java.io.IOException"/>
  22041. </method>
  22042. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  22043. abstract="false" native="false" synchronized="false"
  22044. static="false" final="false" visibility="protected"
  22045. deprecated="not deprecated">
  22046. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  22047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22048. <param name="options" type="org.apache.hadoop.io.SequenceFile.Reader.Option[]"/>
  22049. <exception name="IOException" type="java.io.IOException"/>
  22050. <doc>
  22051. <![CDATA[Override this method to specialize the type of
  22052. {@link SequenceFile.Reader} returned.]]>
  22053. </doc>
  22054. </method>
  22055. <method name="reset"
  22056. abstract="false" native="false" synchronized="true"
  22057. static="false" final="false" visibility="public"
  22058. deprecated="not deprecated">
  22059. <exception name="IOException" type="java.io.IOException"/>
  22060. <doc>
  22061. <![CDATA[Re-positions the reader before its first key.]]>
  22062. </doc>
  22063. </method>
  22064. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  22065. abstract="false" native="false" synchronized="true"
  22066. static="false" final="false" visibility="public"
  22067. deprecated="not deprecated">
  22068. <exception name="IOException" type="java.io.IOException"/>
  22069. <doc>
  22070. <![CDATA[Get the key at approximately the middle of the file. Or null if the
  22071. file is empty.]]>
  22072. </doc>
  22073. </method>
  22074. <method name="finalKey"
  22075. abstract="false" native="false" synchronized="true"
  22076. static="false" final="false" visibility="public"
  22077. deprecated="not deprecated">
  22078. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  22079. <exception name="IOException" type="java.io.IOException"/>
  22080. <doc>
  22081. <![CDATA[Reads the final key from the file.
  22082. @param key key to read into]]>
  22083. </doc>
  22084. </method>
  22085. <method name="seek" return="boolean"
  22086. abstract="false" native="false" synchronized="true"
  22087. static="false" final="false" visibility="public"
  22088. deprecated="not deprecated">
  22089. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  22090. <exception name="IOException" type="java.io.IOException"/>
  22091. <doc>
  22092. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  22093. first entry after the named key. Returns true iff the named key exists
  22094. in this map.]]>
  22095. </doc>
  22096. </method>
  22097. <method name="next" return="boolean"
  22098. abstract="false" native="false" synchronized="true"
  22099. static="false" final="false" visibility="public"
  22100. deprecated="not deprecated">
  22101. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  22102. <param name="val" type="org.apache.hadoop.io.Writable"/>
  22103. <exception name="IOException" type="java.io.IOException"/>
  22104. <doc>
  22105. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  22106. <code>val</code>. Returns true if such a pair exists and false when at
  22107. the end of the map]]>
  22108. </doc>
  22109. </method>
  22110. <method name="get" return="org.apache.hadoop.io.Writable"
  22111. abstract="false" native="false" synchronized="true"
  22112. static="false" final="false" visibility="public"
  22113. deprecated="not deprecated">
  22114. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  22115. <param name="val" type="org.apache.hadoop.io.Writable"/>
  22116. <exception name="IOException" type="java.io.IOException"/>
  22117. <doc>
  22118. <![CDATA[Return the value for the named key, or null if none exists.]]>
  22119. </doc>
  22120. </method>
  22121. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  22122. abstract="false" native="false" synchronized="true"
  22123. static="false" final="false" visibility="public"
  22124. deprecated="not deprecated">
  22125. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  22126. <param name="val" type="org.apache.hadoop.io.Writable"/>
  22127. <exception name="IOException" type="java.io.IOException"/>
  22128. <doc>
  22129. <![CDATA[Finds the record that is the closest match to the specified key.
  22130. Returns <code>key</code> or if it does not exist, at the first entry
  22131. after the named key.
  22132. - * @param key - key that we're trying to find
  22133. - * @param val - data value if key is found
  22134. - * @return - the key that was the closest match or null if eof.]]>
  22135. </doc>
  22136. </method>
  22137. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  22138. abstract="false" native="false" synchronized="true"
  22139. static="false" final="false" visibility="public"
  22140. deprecated="not deprecated">
  22141. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  22142. <param name="val" type="org.apache.hadoop.io.Writable"/>
  22143. <param name="before" type="boolean"/>
  22144. <exception name="IOException" type="java.io.IOException"/>
  22145. <doc>
  22146. <![CDATA[Finds the record that is the closest match to the specified key.
  22147. @param key - key that we're trying to find
  22148. @param val - data value if key is found
  22149. @param before - IF true, and <code>key</code> does not exist, return
  22150. the first entry that falls just before the <code>key</code>. Otherwise,
  22151. return the record that sorts just after.
  22152. @return - the key that was the closest match or null if eof.]]>
  22153. </doc>
  22154. </method>
  22155. <method name="close"
  22156. abstract="false" native="false" synchronized="true"
  22157. static="false" final="false" visibility="public"
  22158. deprecated="not deprecated">
  22159. <exception name="IOException" type="java.io.IOException"/>
  22160. <doc>
  22161. <![CDATA[Close the map.]]>
  22162. </doc>
  22163. </method>
  22164. <doc>
  22165. <![CDATA[Provide access to an existing map.]]>
  22166. </doc>
  22167. </class>
  22168. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  22169. <!-- start interface org.apache.hadoop.io.MapFile.Reader.Option -->
  22170. <interface name="MapFile.Reader.Option" abstract="true"
  22171. static="true" final="false" visibility="public"
  22172. deprecated="not deprecated">
  22173. <implements name="org.apache.hadoop.io.SequenceFile.Reader.Option"/>
  22174. </interface>
  22175. <!-- end interface org.apache.hadoop.io.MapFile.Reader.Option -->
  22176. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  22177. <class name="MapFile.Writer" extends="java.lang.Object"
  22178. abstract="false"
  22179. static="true" final="false" visibility="public"
  22180. deprecated="not deprecated">
  22181. <implements name="java.io.Closeable"/>
  22182. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  22183. static="false" final="false" visibility="public"
  22184. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  22185. <exception name="IOException" type="java.io.IOException"/>
  22186. <doc>
  22187. <![CDATA[Create the named map for keys of the named class.
  22188. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  22189. </doc>
  22190. </constructor>
  22191. <constructor name="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"
  22192. static="false" final="false" visibility="public"
  22193. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  22194. <exception name="IOException" type="java.io.IOException"/>
  22195. <doc>
  22196. <![CDATA[Create the named map for keys of the named class.
  22197. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  22198. </doc>
  22199. </constructor>
  22200. <constructor name="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"
  22201. static="false" final="false" visibility="public"
  22202. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  22203. <exception name="IOException" type="java.io.IOException"/>
  22204. <doc>
  22205. <![CDATA[Create the named map for keys of the named class.
  22206. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  22207. </doc>
  22208. </constructor>
  22209. <constructor name="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"
  22210. static="false" final="false" visibility="public"
  22211. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  22212. <exception name="IOException" type="java.io.IOException"/>
  22213. <doc>
  22214. <![CDATA[Create the named map for keys of the named class.
  22215. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  22216. </doc>
  22217. </constructor>
  22218. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  22219. static="false" final="false" visibility="public"
  22220. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  22221. <exception name="IOException" type="java.io.IOException"/>
  22222. <doc>
  22223. <![CDATA[Create the named map using the named key comparator.
  22224. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  22225. </doc>
  22226. </constructor>
  22227. <constructor name="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"
  22228. static="false" final="false" visibility="public"
  22229. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  22230. <exception name="IOException" type="java.io.IOException"/>
  22231. <doc>
  22232. <![CDATA[Create the named map using the named key comparator.
  22233. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  22234. </doc>
  22235. </constructor>
  22236. <constructor name="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"
  22237. static="false" final="false" visibility="public"
  22238. deprecated="Use Writer(Configuration, Path, Option...)} instead.">
  22239. <exception name="IOException" type="java.io.IOException"/>
  22240. <doc>
  22241. <![CDATA[Create the named map using the named key comparator.
  22242. @deprecated Use Writer(Configuration, Path, Option...)} instead.]]>
  22243. </doc>
  22244. </constructor>
  22245. <constructor name="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"
  22246. static="false" final="false" visibility="public"
  22247. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  22248. <exception name="IOException" type="java.io.IOException"/>
  22249. <doc>
  22250. <![CDATA[Create the named map using the named key comparator.
  22251. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  22252. </doc>
  22253. </constructor>
  22254. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, org.apache.hadoop.io.SequenceFile.Writer.Option[]"
  22255. static="false" final="false" visibility="public"
  22256. deprecated="not deprecated">
  22257. <exception name="IOException" type="java.io.IOException"/>
  22258. </constructor>
  22259. <method name="keyClass" return="org.apache.hadoop.io.MapFile.Writer.Option"
  22260. abstract="false" native="false" synchronized="false"
  22261. static="true" final="false" visibility="public"
  22262. deprecated="not deprecated">
  22263. <param name="value" type="java.lang.Class"/>
  22264. </method>
  22265. <method name="comparator" return="org.apache.hadoop.io.MapFile.Writer.Option"
  22266. abstract="false" native="false" synchronized="false"
  22267. static="true" final="false" visibility="public"
  22268. deprecated="not deprecated">
  22269. <param name="value" type="org.apache.hadoop.io.WritableComparator"/>
  22270. </method>
  22271. <method name="valueClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  22272. abstract="false" native="false" synchronized="false"
  22273. static="true" final="false" visibility="public"
  22274. deprecated="not deprecated">
  22275. <param name="value" type="java.lang.Class"/>
  22276. </method>
  22277. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  22278. abstract="false" native="false" synchronized="false"
  22279. static="true" final="false" visibility="public"
  22280. deprecated="not deprecated">
  22281. <param name="type" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22282. </method>
  22283. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  22284. abstract="false" native="false" synchronized="false"
  22285. static="true" final="false" visibility="public"
  22286. deprecated="not deprecated">
  22287. <param name="type" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22288. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22289. </method>
  22290. <method name="progressable" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  22291. abstract="false" native="false" synchronized="false"
  22292. static="true" final="false" visibility="public"
  22293. deprecated="not deprecated">
  22294. <param name="value" type="org.apache.hadoop.util.Progressable"/>
  22295. </method>
  22296. <method name="getIndexInterval" return="int"
  22297. abstract="false" native="false" synchronized="false"
  22298. static="false" final="false" visibility="public"
  22299. deprecated="not deprecated">
  22300. <doc>
  22301. <![CDATA[The number of entries that are added before an index entry is added.]]>
  22302. </doc>
  22303. </method>
  22304. <method name="setIndexInterval"
  22305. abstract="false" native="false" synchronized="false"
  22306. static="false" final="false" visibility="public"
  22307. deprecated="not deprecated">
  22308. <param name="interval" type="int"/>
  22309. <doc>
  22310. <![CDATA[Sets the index interval.
  22311. @see #getIndexInterval()]]>
  22312. </doc>
  22313. </method>
  22314. <method name="setIndexInterval"
  22315. abstract="false" native="false" synchronized="false"
  22316. static="true" final="false" visibility="public"
  22317. deprecated="not deprecated">
  22318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22319. <param name="interval" type="int"/>
  22320. <doc>
  22321. <![CDATA[Sets the index interval and stores it in conf
  22322. @see #getIndexInterval()]]>
  22323. </doc>
  22324. </method>
  22325. <method name="close"
  22326. abstract="false" native="false" synchronized="true"
  22327. static="false" final="false" visibility="public"
  22328. deprecated="not deprecated">
  22329. <exception name="IOException" type="java.io.IOException"/>
  22330. <doc>
  22331. <![CDATA[Close the map.]]>
  22332. </doc>
  22333. </method>
  22334. <method name="append"
  22335. abstract="false" native="false" synchronized="true"
  22336. static="false" final="false" visibility="public"
  22337. deprecated="not deprecated">
  22338. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  22339. <param name="val" type="org.apache.hadoop.io.Writable"/>
  22340. <exception name="IOException" type="java.io.IOException"/>
  22341. <doc>
  22342. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  22343. to the previous key added to the map.]]>
  22344. </doc>
  22345. </method>
  22346. <doc>
  22347. <![CDATA[Writes a new map.]]>
  22348. </doc>
  22349. </class>
  22350. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  22351. <!-- start interface org.apache.hadoop.io.MapFile.Writer.Option -->
  22352. <interface name="MapFile.Writer.Option" abstract="true"
  22353. static="true" final="false" visibility="public"
  22354. deprecated="not deprecated">
  22355. <implements name="org.apache.hadoop.io.SequenceFile.Writer.Option"/>
  22356. </interface>
  22357. <!-- end interface org.apache.hadoop.io.MapFile.Writer.Option -->
  22358. <!-- start class org.apache.hadoop.io.MapWritable -->
  22359. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  22360. abstract="false"
  22361. static="false" final="false" visibility="public"
  22362. deprecated="not deprecated">
  22363. <implements name="java.util.Map"/>
  22364. <constructor name="MapWritable"
  22365. static="false" final="false" visibility="public"
  22366. deprecated="not deprecated">
  22367. <doc>
  22368. <![CDATA[Default constructor.]]>
  22369. </doc>
  22370. </constructor>
  22371. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  22372. static="false" final="false" visibility="public"
  22373. deprecated="not deprecated">
  22374. <doc>
  22375. <![CDATA[Copy constructor.
  22376. @param other the map to copy from]]>
  22377. </doc>
  22378. </constructor>
  22379. <method name="clear"
  22380. abstract="false" native="false" synchronized="false"
  22381. static="false" final="false" visibility="public"
  22382. deprecated="not deprecated">
  22383. </method>
  22384. <method name="containsKey" return="boolean"
  22385. abstract="false" native="false" synchronized="false"
  22386. static="false" final="false" visibility="public"
  22387. deprecated="not deprecated">
  22388. <param name="key" type="java.lang.Object"/>
  22389. </method>
  22390. <method name="containsValue" return="boolean"
  22391. abstract="false" native="false" synchronized="false"
  22392. static="false" final="false" visibility="public"
  22393. deprecated="not deprecated">
  22394. <param name="value" type="java.lang.Object"/>
  22395. </method>
  22396. <method name="entrySet" return="java.util.Set"
  22397. abstract="false" native="false" synchronized="false"
  22398. static="false" final="false" visibility="public"
  22399. deprecated="not deprecated">
  22400. </method>
  22401. <method name="equals" return="boolean"
  22402. abstract="false" native="false" synchronized="false"
  22403. static="false" final="false" visibility="public"
  22404. deprecated="not deprecated">
  22405. <param name="obj" type="java.lang.Object"/>
  22406. </method>
  22407. <method name="get" return="org.apache.hadoop.io.Writable"
  22408. abstract="false" native="false" synchronized="false"
  22409. static="false" final="false" visibility="public"
  22410. deprecated="not deprecated">
  22411. <param name="key" type="java.lang.Object"/>
  22412. </method>
  22413. <method name="hashCode" return="int"
  22414. abstract="false" native="false" synchronized="false"
  22415. static="false" final="false" visibility="public"
  22416. deprecated="not deprecated">
  22417. </method>
  22418. <method name="isEmpty" return="boolean"
  22419. abstract="false" native="false" synchronized="false"
  22420. static="false" final="false" visibility="public"
  22421. deprecated="not deprecated">
  22422. </method>
  22423. <method name="keySet" return="java.util.Set"
  22424. abstract="false" native="false" synchronized="false"
  22425. static="false" final="false" visibility="public"
  22426. deprecated="not deprecated">
  22427. </method>
  22428. <method name="put" return="org.apache.hadoop.io.Writable"
  22429. abstract="false" native="false" synchronized="false"
  22430. static="false" final="false" visibility="public"
  22431. deprecated="not deprecated">
  22432. <param name="key" type="org.apache.hadoop.io.Writable"/>
  22433. <param name="value" type="org.apache.hadoop.io.Writable"/>
  22434. </method>
  22435. <method name="putAll"
  22436. abstract="false" native="false" synchronized="false"
  22437. static="false" final="false" visibility="public"
  22438. deprecated="not deprecated">
  22439. <param name="t" type="java.util.Map"/>
  22440. </method>
  22441. <method name="remove" return="org.apache.hadoop.io.Writable"
  22442. abstract="false" native="false" synchronized="false"
  22443. static="false" final="false" visibility="public"
  22444. deprecated="not deprecated">
  22445. <param name="key" type="java.lang.Object"/>
  22446. </method>
  22447. <method name="size" return="int"
  22448. abstract="false" native="false" synchronized="false"
  22449. static="false" final="false" visibility="public"
  22450. deprecated="not deprecated">
  22451. </method>
  22452. <method name="values" return="java.util.Collection"
  22453. abstract="false" native="false" synchronized="false"
  22454. static="false" final="false" visibility="public"
  22455. deprecated="not deprecated">
  22456. </method>
  22457. <method name="write"
  22458. abstract="false" native="false" synchronized="false"
  22459. static="false" final="false" visibility="public"
  22460. deprecated="not deprecated">
  22461. <param name="out" type="java.io.DataOutput"/>
  22462. <exception name="IOException" type="java.io.IOException"/>
  22463. </method>
  22464. <method name="readFields"
  22465. abstract="false" native="false" synchronized="false"
  22466. static="false" final="false" visibility="public"
  22467. deprecated="not deprecated">
  22468. <param name="in" type="java.io.DataInput"/>
  22469. <exception name="IOException" type="java.io.IOException"/>
  22470. </method>
  22471. <doc>
  22472. <![CDATA[A Writable Map.]]>
  22473. </doc>
  22474. </class>
  22475. <!-- end class org.apache.hadoop.io.MapWritable -->
  22476. <!-- start class org.apache.hadoop.io.MD5Hash -->
  22477. <class name="MD5Hash" extends="java.lang.Object"
  22478. abstract="false"
  22479. static="false" final="false" visibility="public"
  22480. deprecated="not deprecated">
  22481. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22482. <constructor name="MD5Hash"
  22483. static="false" final="false" visibility="public"
  22484. deprecated="not deprecated">
  22485. <doc>
  22486. <![CDATA[Constructs an MD5Hash.]]>
  22487. </doc>
  22488. </constructor>
  22489. <constructor name="MD5Hash" type="java.lang.String"
  22490. static="false" final="false" visibility="public"
  22491. deprecated="not deprecated">
  22492. <doc>
  22493. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  22494. </doc>
  22495. </constructor>
  22496. <constructor name="MD5Hash" type="byte[]"
  22497. static="false" final="false" visibility="public"
  22498. deprecated="not deprecated">
  22499. <doc>
  22500. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  22501. </doc>
  22502. </constructor>
  22503. <method name="readFields"
  22504. abstract="false" native="false" synchronized="false"
  22505. static="false" final="false" visibility="public"
  22506. deprecated="not deprecated">
  22507. <param name="in" type="java.io.DataInput"/>
  22508. <exception name="IOException" type="java.io.IOException"/>
  22509. </method>
  22510. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  22511. abstract="false" native="false" synchronized="false"
  22512. static="true" final="false" visibility="public"
  22513. deprecated="not deprecated">
  22514. <param name="in" type="java.io.DataInput"/>
  22515. <exception name="IOException" type="java.io.IOException"/>
  22516. <doc>
  22517. <![CDATA[Constructs, reads and returns an instance.]]>
  22518. </doc>
  22519. </method>
  22520. <method name="write"
  22521. abstract="false" native="false" synchronized="false"
  22522. static="false" final="false" visibility="public"
  22523. deprecated="not deprecated">
  22524. <param name="out" type="java.io.DataOutput"/>
  22525. <exception name="IOException" type="java.io.IOException"/>
  22526. </method>
  22527. <method name="set"
  22528. abstract="false" native="false" synchronized="false"
  22529. static="false" final="false" visibility="public"
  22530. deprecated="not deprecated">
  22531. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  22532. <doc>
  22533. <![CDATA[Copy the contents of another instance into this instance.]]>
  22534. </doc>
  22535. </method>
  22536. <method name="getDigest" return="byte[]"
  22537. abstract="false" native="false" synchronized="false"
  22538. static="false" final="false" visibility="public"
  22539. deprecated="not deprecated">
  22540. <doc>
  22541. <![CDATA[Returns the digest bytes.]]>
  22542. </doc>
  22543. </method>
  22544. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22545. abstract="false" native="false" synchronized="false"
  22546. static="true" final="false" visibility="public"
  22547. deprecated="not deprecated">
  22548. <param name="data" type="byte[]"/>
  22549. <doc>
  22550. <![CDATA[Construct a hash value for a byte array.]]>
  22551. </doc>
  22552. </method>
  22553. <method name="getDigester" return="java.security.MessageDigest"
  22554. abstract="false" native="false" synchronized="false"
  22555. static="true" final="false" visibility="public"
  22556. deprecated="not deprecated">
  22557. <doc>
  22558. <![CDATA[Create a thread local MD5 digester]]>
  22559. </doc>
  22560. </method>
  22561. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22562. abstract="false" native="false" synchronized="false"
  22563. static="true" final="false" visibility="public"
  22564. deprecated="not deprecated">
  22565. <param name="in" type="java.io.InputStream"/>
  22566. <exception name="IOException" type="java.io.IOException"/>
  22567. <doc>
  22568. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  22569. </doc>
  22570. </method>
  22571. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22572. abstract="false" native="false" synchronized="false"
  22573. static="true" final="false" visibility="public"
  22574. deprecated="not deprecated">
  22575. <param name="data" type="byte[]"/>
  22576. <param name="start" type="int"/>
  22577. <param name="len" type="int"/>
  22578. <doc>
  22579. <![CDATA[Construct a hash value for a byte array.]]>
  22580. </doc>
  22581. </method>
  22582. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22583. abstract="false" native="false" synchronized="false"
  22584. static="true" final="false" visibility="public"
  22585. deprecated="not deprecated">
  22586. <param name="string" type="java.lang.String"/>
  22587. <doc>
  22588. <![CDATA[Construct a hash value for a String.]]>
  22589. </doc>
  22590. </method>
  22591. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  22592. abstract="false" native="false" synchronized="false"
  22593. static="true" final="false" visibility="public"
  22594. deprecated="not deprecated">
  22595. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  22596. <doc>
  22597. <![CDATA[Construct a hash value for a String.]]>
  22598. </doc>
  22599. </method>
  22600. <method name="halfDigest" return="long"
  22601. abstract="false" native="false" synchronized="false"
  22602. static="false" final="false" visibility="public"
  22603. deprecated="not deprecated">
  22604. <doc>
  22605. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  22606. </doc>
  22607. </method>
  22608. <method name="quarterDigest" return="int"
  22609. abstract="false" native="false" synchronized="false"
  22610. static="false" final="false" visibility="public"
  22611. deprecated="not deprecated">
  22612. <doc>
  22613. <![CDATA[Return a 32-bit digest of the MD5.
  22614. @return the first 4 bytes of the md5]]>
  22615. </doc>
  22616. </method>
  22617. <method name="equals" return="boolean"
  22618. abstract="false" native="false" synchronized="false"
  22619. static="false" final="false" visibility="public"
  22620. deprecated="not deprecated">
  22621. <param name="o" type="java.lang.Object"/>
  22622. <doc>
  22623. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  22624. same values.]]>
  22625. </doc>
  22626. </method>
  22627. <method name="hashCode" return="int"
  22628. abstract="false" native="false" synchronized="false"
  22629. static="false" final="false" visibility="public"
  22630. deprecated="not deprecated">
  22631. <doc>
  22632. <![CDATA[Returns a hash code value for this object.
  22633. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  22634. </doc>
  22635. </method>
  22636. <method name="compareTo" return="int"
  22637. abstract="false" native="false" synchronized="false"
  22638. static="false" final="false" visibility="public"
  22639. deprecated="not deprecated">
  22640. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  22641. <doc>
  22642. <![CDATA[Compares this object with the specified object for order.]]>
  22643. </doc>
  22644. </method>
  22645. <method name="toString" return="java.lang.String"
  22646. abstract="false" native="false" synchronized="false"
  22647. static="false" final="false" visibility="public"
  22648. deprecated="not deprecated">
  22649. <doc>
  22650. <![CDATA[Returns a string representation of this object.]]>
  22651. </doc>
  22652. </method>
  22653. <method name="setDigest"
  22654. abstract="false" native="false" synchronized="false"
  22655. static="false" final="false" visibility="public"
  22656. deprecated="not deprecated">
  22657. <param name="hex" type="java.lang.String"/>
  22658. <doc>
  22659. <![CDATA[Sets the digest value from a hex string.]]>
  22660. </doc>
  22661. </method>
  22662. <field name="MD5_LEN" type="int"
  22663. transient="false" volatile="false"
  22664. static="true" final="true" visibility="public"
  22665. deprecated="not deprecated">
  22666. </field>
  22667. <doc>
  22668. <![CDATA[A Writable for MD5 hash values.]]>
  22669. </doc>
  22670. </class>
  22671. <!-- end class org.apache.hadoop.io.MD5Hash -->
  22672. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  22673. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  22674. abstract="false"
  22675. static="true" final="false" visibility="public"
  22676. deprecated="not deprecated">
  22677. <constructor name="Comparator"
  22678. static="false" final="false" visibility="public"
  22679. deprecated="not deprecated">
  22680. </constructor>
  22681. <method name="compare" return="int"
  22682. abstract="false" native="false" synchronized="false"
  22683. static="false" final="false" visibility="public"
  22684. deprecated="not deprecated">
  22685. <param name="b1" type="byte[]"/>
  22686. <param name="s1" type="int"/>
  22687. <param name="l1" type="int"/>
  22688. <param name="b2" type="byte[]"/>
  22689. <param name="s2" type="int"/>
  22690. <param name="l2" type="int"/>
  22691. </method>
  22692. <doc>
  22693. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  22694. </doc>
  22695. </class>
  22696. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  22697. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  22698. <class name="MultipleIOException" extends="java.io.IOException"
  22699. abstract="false"
  22700. static="false" final="false" visibility="public"
  22701. deprecated="not deprecated">
  22702. <method name="getExceptions" return="java.util.List"
  22703. abstract="false" native="false" synchronized="false"
  22704. static="false" final="false" visibility="public"
  22705. deprecated="not deprecated">
  22706. <doc>
  22707. <![CDATA[@return the underlying exceptions]]>
  22708. </doc>
  22709. </method>
  22710. <method name="createIOException" return="java.io.IOException"
  22711. abstract="false" native="false" synchronized="false"
  22712. static="true" final="false" visibility="public"
  22713. deprecated="not deprecated">
  22714. <param name="exceptions" type="java.util.List"/>
  22715. <doc>
  22716. <![CDATA[A convenient method to create an {@link IOException}.]]>
  22717. </doc>
  22718. </method>
  22719. <doc>
  22720. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  22721. </doc>
  22722. </class>
  22723. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  22724. <!-- start class org.apache.hadoop.io.NullWritable -->
  22725. <class name="NullWritable" extends="java.lang.Object"
  22726. abstract="false"
  22727. static="false" final="false" visibility="public"
  22728. deprecated="not deprecated">
  22729. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22730. <method name="get" return="org.apache.hadoop.io.NullWritable"
  22731. abstract="false" native="false" synchronized="false"
  22732. static="true" final="false" visibility="public"
  22733. deprecated="not deprecated">
  22734. <doc>
  22735. <![CDATA[Returns the single instance of this class.]]>
  22736. </doc>
  22737. </method>
  22738. <method name="toString" return="java.lang.String"
  22739. abstract="false" native="false" synchronized="false"
  22740. static="false" final="false" visibility="public"
  22741. deprecated="not deprecated">
  22742. </method>
  22743. <method name="hashCode" return="int"
  22744. abstract="false" native="false" synchronized="false"
  22745. static="false" final="false" visibility="public"
  22746. deprecated="not deprecated">
  22747. </method>
  22748. <method name="compareTo" return="int"
  22749. abstract="false" native="false" synchronized="false"
  22750. static="false" final="false" visibility="public"
  22751. deprecated="not deprecated">
  22752. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  22753. </method>
  22754. <method name="equals" return="boolean"
  22755. abstract="false" native="false" synchronized="false"
  22756. static="false" final="false" visibility="public"
  22757. deprecated="not deprecated">
  22758. <param name="other" type="java.lang.Object"/>
  22759. </method>
  22760. <method name="readFields"
  22761. abstract="false" native="false" synchronized="false"
  22762. static="false" final="false" visibility="public"
  22763. deprecated="not deprecated">
  22764. <param name="in" type="java.io.DataInput"/>
  22765. <exception name="IOException" type="java.io.IOException"/>
  22766. </method>
  22767. <method name="write"
  22768. abstract="false" native="false" synchronized="false"
  22769. static="false" final="false" visibility="public"
  22770. deprecated="not deprecated">
  22771. <param name="out" type="java.io.DataOutput"/>
  22772. <exception name="IOException" type="java.io.IOException"/>
  22773. </method>
  22774. <doc>
  22775. <![CDATA[Singleton Writable with no data.]]>
  22776. </doc>
  22777. </class>
  22778. <!-- end class org.apache.hadoop.io.NullWritable -->
  22779. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  22780. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  22781. abstract="false"
  22782. static="true" final="false" visibility="public"
  22783. deprecated="not deprecated">
  22784. <constructor name="Comparator"
  22785. static="false" final="false" visibility="public"
  22786. deprecated="not deprecated">
  22787. </constructor>
  22788. <method name="compare" return="int"
  22789. abstract="false" native="false" synchronized="false"
  22790. static="false" final="false" visibility="public"
  22791. deprecated="not deprecated">
  22792. <param name="b1" type="byte[]"/>
  22793. <param name="s1" type="int"/>
  22794. <param name="l1" type="int"/>
  22795. <param name="b2" type="byte[]"/>
  22796. <param name="s2" type="int"/>
  22797. <param name="l2" type="int"/>
  22798. <doc>
  22799. <![CDATA[Compare the buffers in serialized form.]]>
  22800. </doc>
  22801. </method>
  22802. <doc>
  22803. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  22804. </doc>
  22805. </class>
  22806. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  22807. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  22808. <class name="ObjectWritable" extends="java.lang.Object"
  22809. abstract="false"
  22810. static="false" final="false" visibility="public"
  22811. deprecated="not deprecated">
  22812. <implements name="org.apache.hadoop.io.Writable"/>
  22813. <implements name="org.apache.hadoop.conf.Configurable"/>
  22814. <constructor name="ObjectWritable"
  22815. static="false" final="false" visibility="public"
  22816. deprecated="not deprecated">
  22817. </constructor>
  22818. <constructor name="ObjectWritable" type="java.lang.Object"
  22819. static="false" final="false" visibility="public"
  22820. deprecated="not deprecated">
  22821. </constructor>
  22822. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  22823. static="false" final="false" visibility="public"
  22824. deprecated="not deprecated">
  22825. </constructor>
  22826. <method name="get" return="java.lang.Object"
  22827. abstract="false" native="false" synchronized="false"
  22828. static="false" final="false" visibility="public"
  22829. deprecated="not deprecated">
  22830. <doc>
  22831. <![CDATA[Return the instance, or null if none.]]>
  22832. </doc>
  22833. </method>
  22834. <method name="getDeclaredClass" return="java.lang.Class"
  22835. abstract="false" native="false" synchronized="false"
  22836. static="false" final="false" visibility="public"
  22837. deprecated="not deprecated">
  22838. <doc>
  22839. <![CDATA[Return the class this is meant to be.]]>
  22840. </doc>
  22841. </method>
  22842. <method name="set"
  22843. abstract="false" native="false" synchronized="false"
  22844. static="false" final="false" visibility="public"
  22845. deprecated="not deprecated">
  22846. <param name="instance" type="java.lang.Object"/>
  22847. <doc>
  22848. <![CDATA[Reset the instance.]]>
  22849. </doc>
  22850. </method>
  22851. <method name="toString" return="java.lang.String"
  22852. abstract="false" native="false" synchronized="false"
  22853. static="false" final="false" visibility="public"
  22854. deprecated="not deprecated">
  22855. </method>
  22856. <method name="readFields"
  22857. abstract="false" native="false" synchronized="false"
  22858. static="false" final="false" visibility="public"
  22859. deprecated="not deprecated">
  22860. <param name="in" type="java.io.DataInput"/>
  22861. <exception name="IOException" type="java.io.IOException"/>
  22862. </method>
  22863. <method name="write"
  22864. abstract="false" native="false" synchronized="false"
  22865. static="false" final="false" visibility="public"
  22866. deprecated="not deprecated">
  22867. <param name="out" type="java.io.DataOutput"/>
  22868. <exception name="IOException" type="java.io.IOException"/>
  22869. </method>
  22870. <method name="writeObject"
  22871. abstract="false" native="false" synchronized="false"
  22872. static="true" final="false" visibility="public"
  22873. deprecated="not deprecated">
  22874. <param name="out" type="java.io.DataOutput"/>
  22875. <param name="instance" type="java.lang.Object"/>
  22876. <param name="declaredClass" type="java.lang.Class"/>
  22877. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22878. <exception name="IOException" type="java.io.IOException"/>
  22879. <doc>
  22880. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  22881. the preceding.]]>
  22882. </doc>
  22883. </method>
  22884. <method name="writeObject"
  22885. abstract="false" native="false" synchronized="false"
  22886. static="true" final="false" visibility="public"
  22887. deprecated="not deprecated">
  22888. <param name="out" type="java.io.DataOutput"/>
  22889. <param name="instance" type="java.lang.Object"/>
  22890. <param name="declaredClass" type="java.lang.Class"/>
  22891. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22892. <param name="allowCompactArrays" type="boolean"/>
  22893. <exception name="IOException" type="java.io.IOException"/>
  22894. <doc>
  22895. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  22896. the preceding.
  22897. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  22898. usages. Set false for inter-cluster, File, and other persisted output
  22899. usages, to preserve the ability to interchange files with other clusters
  22900. that may not be running the same version of software. Sometime in ~2013
  22901. we can consider removing this parameter and always using the compact format.]]>
  22902. </doc>
  22903. </method>
  22904. <method name="readObject" return="java.lang.Object"
  22905. abstract="false" native="false" synchronized="false"
  22906. static="true" final="false" visibility="public"
  22907. deprecated="not deprecated">
  22908. <param name="in" type="java.io.DataInput"/>
  22909. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22910. <exception name="IOException" type="java.io.IOException"/>
  22911. <doc>
  22912. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  22913. the preceding.]]>
  22914. </doc>
  22915. </method>
  22916. <method name="readObject" return="java.lang.Object"
  22917. abstract="false" native="false" synchronized="false"
  22918. static="true" final="false" visibility="public"
  22919. deprecated="not deprecated">
  22920. <param name="in" type="java.io.DataInput"/>
  22921. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  22922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22923. <exception name="IOException" type="java.io.IOException"/>
  22924. <doc>
  22925. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  22926. the preceding.]]>
  22927. </doc>
  22928. </method>
  22929. <method name="loadClass" return="java.lang.Class"
  22930. abstract="false" native="false" synchronized="false"
  22931. static="true" final="false" visibility="public"
  22932. deprecated="not deprecated">
  22933. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22934. <param name="className" type="java.lang.String"/>
  22935. <doc>
  22936. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  22937. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  22938. try load it directly.]]>
  22939. </doc>
  22940. </method>
  22941. <method name="setConf"
  22942. abstract="false" native="false" synchronized="false"
  22943. static="false" final="false" visibility="public"
  22944. deprecated="not deprecated">
  22945. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22946. </method>
  22947. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22948. abstract="false" native="false" synchronized="false"
  22949. static="false" final="false" visibility="public"
  22950. deprecated="not deprecated">
  22951. </method>
  22952. <doc>
  22953. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  22954. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  22955. </doc>
  22956. </class>
  22957. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  22958. <!-- start interface org.apache.hadoop.io.RawComparator -->
  22959. <interface name="RawComparator" abstract="true"
  22960. static="false" final="false" visibility="public"
  22961. deprecated="not deprecated">
  22962. <implements name="java.util.Comparator"/>
  22963. <method name="compare" return="int"
  22964. abstract="true" native="false" synchronized="false"
  22965. static="false" final="false" visibility="public"
  22966. deprecated="not deprecated">
  22967. <param name="b1" type="byte[]"/>
  22968. <param name="s1" type="int"/>
  22969. <param name="l1" type="int"/>
  22970. <param name="b2" type="byte[]"/>
  22971. <param name="s2" type="int"/>
  22972. <param name="l2" type="int"/>
  22973. <doc>
  22974. <![CDATA[Compare two objects in binary.
  22975. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  22976. @param b1 The first byte array.
  22977. @param s1 The position index in b1. The object under comparison's starting index.
  22978. @param l1 The length of the object in b1.
  22979. @param b2 The second byte array.
  22980. @param s2 The position index in b2. The object under comparison's starting index.
  22981. @param l2 The length of the object under comparison in b2.
  22982. @return An integer result of the comparison.]]>
  22983. </doc>
  22984. </method>
  22985. <doc>
  22986. <![CDATA[<p>
  22987. A {@link Comparator} that operates directly on byte representations of
  22988. objects.
  22989. </p>
  22990. @param <T>
  22991. @see DeserializerComparator]]>
  22992. </doc>
  22993. </interface>
  22994. <!-- end interface org.apache.hadoop.io.RawComparator -->
  22995. <!-- start interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  22996. <interface name="ReadaheadPool.ReadaheadRequest" abstract="true"
  22997. static="true" final="false" visibility="public"
  22998. deprecated="not deprecated">
  22999. <method name="cancel"
  23000. abstract="true" native="false" synchronized="false"
  23001. static="false" final="false" visibility="public"
  23002. deprecated="not deprecated">
  23003. <doc>
  23004. <![CDATA[Cancels the request for readahead. This should be used
  23005. if the reader no longer needs the requested data, <em>before</em>
  23006. closing the related file descriptor.
  23007. It is safe to use even if the readahead request has already
  23008. been fulfilled.]]>
  23009. </doc>
  23010. </method>
  23011. <method name="getOffset" return="long"
  23012. abstract="true" native="false" synchronized="false"
  23013. static="false" final="false" visibility="public"
  23014. deprecated="not deprecated">
  23015. <doc>
  23016. <![CDATA[@return the requested offset]]>
  23017. </doc>
  23018. </method>
  23019. <method name="getLength" return="long"
  23020. abstract="true" native="false" synchronized="false"
  23021. static="false" final="false" visibility="public"
  23022. deprecated="not deprecated">
  23023. <doc>
  23024. <![CDATA[@return the requested length]]>
  23025. </doc>
  23026. </method>
  23027. <doc>
  23028. <![CDATA[An outstanding readahead request that has been submitted to
  23029. the pool. This request may be pending or may have been
  23030. completed.]]>
  23031. </doc>
  23032. </interface>
  23033. <!-- end interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  23034. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  23035. <class name="SecureIOUtils" extends="java.lang.Object"
  23036. abstract="false"
  23037. static="false" final="false" visibility="public"
  23038. deprecated="not deprecated">
  23039. <constructor name="SecureIOUtils"
  23040. static="false" final="false" visibility="public"
  23041. deprecated="not deprecated">
  23042. </constructor>
  23043. <method name="openForRandomRead" return="java.io.RandomAccessFile"
  23044. abstract="false" native="false" synchronized="false"
  23045. static="true" final="false" visibility="public"
  23046. deprecated="not deprecated">
  23047. <param name="f" type="java.io.File"/>
  23048. <param name="mode" type="java.lang.String"/>
  23049. <param name="expectedOwner" type="java.lang.String"/>
  23050. <param name="expectedGroup" type="java.lang.String"/>
  23051. <exception name="IOException" type="java.io.IOException"/>
  23052. <doc>
  23053. <![CDATA[Open the given File for random read access, verifying the expected user/
  23054. group constraints if security is enabled.
  23055. Note that this function provides no additional security checks if hadoop
  23056. security is disabled, since doing the checks would be too expensive when
  23057. native libraries are not available.
  23058. @param f file that we are trying to open
  23059. @param mode mode in which we want to open the random access file
  23060. @param expectedOwner the expected user owner for the file
  23061. @param expectedGroup the expected group owner for the file
  23062. @throws IOException if an IO error occurred or if the user/group does
  23063. not match when security is enabled.]]>
  23064. </doc>
  23065. </method>
  23066. <method name="forceSecureOpenForRandomRead" return="java.io.RandomAccessFile"
  23067. abstract="false" native="false" synchronized="false"
  23068. static="true" final="false" visibility="protected"
  23069. deprecated="not deprecated">
  23070. <param name="f" type="java.io.File"/>
  23071. <param name="mode" type="java.lang.String"/>
  23072. <param name="expectedOwner" type="java.lang.String"/>
  23073. <param name="expectedGroup" type="java.lang.String"/>
  23074. <exception name="IOException" type="java.io.IOException"/>
  23075. <doc>
  23076. <![CDATA[Same as openForRandomRead except that it will run even if security is off.
  23077. This is used by unit tests.]]>
  23078. </doc>
  23079. </method>
  23080. <method name="openFSDataInputStream" return="org.apache.hadoop.fs.FSDataInputStream"
  23081. abstract="false" native="false" synchronized="false"
  23082. static="true" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. <param name="file" type="java.io.File"/>
  23085. <param name="expectedOwner" type="java.lang.String"/>
  23086. <param name="expectedGroup" type="java.lang.String"/>
  23087. <exception name="IOException" type="java.io.IOException"/>
  23088. <doc>
  23089. <![CDATA[Opens the {@link FSDataInputStream} on the requested file on local file
  23090. system, verifying the expected user/group constraints if security is
  23091. enabled.
  23092. @param file absolute path of the file
  23093. @param expectedOwner the expected user owner for the file
  23094. @param expectedGroup the expected group owner for the file
  23095. @throws IOException if an IO Error occurred or the user/group does not
  23096. match if security is enabled]]>
  23097. </doc>
  23098. </method>
  23099. <method name="forceSecureOpenFSDataInputStream" return="org.apache.hadoop.fs.FSDataInputStream"
  23100. abstract="false" native="false" synchronized="false"
  23101. static="true" final="false" visibility="protected"
  23102. deprecated="not deprecated">
  23103. <param name="file" type="java.io.File"/>
  23104. <param name="expectedOwner" type="java.lang.String"/>
  23105. <param name="expectedGroup" type="java.lang.String"/>
  23106. <exception name="IOException" type="java.io.IOException"/>
  23107. <doc>
  23108. <![CDATA[Same as openFSDataInputStream except that it will run even if security is
  23109. off. This is used by unit tests.]]>
  23110. </doc>
  23111. </method>
  23112. <method name="openForRead" return="java.io.FileInputStream"
  23113. abstract="false" native="false" synchronized="false"
  23114. static="true" final="false" visibility="public"
  23115. deprecated="not deprecated">
  23116. <param name="f" type="java.io.File"/>
  23117. <param name="expectedOwner" type="java.lang.String"/>
  23118. <param name="expectedGroup" type="java.lang.String"/>
  23119. <exception name="IOException" type="java.io.IOException"/>
  23120. <doc>
  23121. <![CDATA[Open the given File for read access, verifying the expected user/group
  23122. constraints if security is enabled.
  23123. Note that this function provides no additional checks if Hadoop
  23124. security is disabled, since doing the checks would be too expensive
  23125. when native libraries are not available.
  23126. @param f the file that we are trying to open
  23127. @param expectedOwner the expected user owner for the file
  23128. @param expectedGroup the expected group owner for the file
  23129. @throws IOException if an IO Error occurred, or security is enabled and
  23130. the user/group does not match]]>
  23131. </doc>
  23132. </method>
  23133. <method name="forceSecureOpenForRead" return="java.io.FileInputStream"
  23134. abstract="false" native="false" synchronized="false"
  23135. static="true" final="false" visibility="protected"
  23136. deprecated="not deprecated">
  23137. <param name="f" type="java.io.File"/>
  23138. <param name="expectedOwner" type="java.lang.String"/>
  23139. <param name="expectedGroup" type="java.lang.String"/>
  23140. <exception name="IOException" type="java.io.IOException"/>
  23141. <doc>
  23142. <![CDATA[Same as openForRead() except that it will run even if security is off.
  23143. This is used by unit tests.]]>
  23144. </doc>
  23145. </method>
  23146. <method name="createForWrite" return="java.io.FileOutputStream"
  23147. abstract="false" native="false" synchronized="false"
  23148. static="true" final="false" visibility="public"
  23149. deprecated="not deprecated">
  23150. <param name="f" type="java.io.File"/>
  23151. <param name="permissions" type="int"/>
  23152. <exception name="IOException" type="java.io.IOException"/>
  23153. <doc>
  23154. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  23155. @param f the file that we want to create
  23156. @param permissions we want to have on the file (if security is enabled)
  23157. @throws AlreadyExistsException if the file already exists
  23158. @throws IOException if any other error occurred]]>
  23159. </doc>
  23160. </method>
  23161. <doc>
  23162. <![CDATA[This class provides secure APIs for opening and creating files on the local
  23163. disk. The main issue this class tries to handle is that of symlink traversal.
  23164. <br/>
  23165. An example of such an attack is:
  23166. <ol>
  23167. <li> Malicious user removes his task's syslog file, and puts a link to the
  23168. jobToken file of a target user.</li>
  23169. <li> Malicious user tries to open the syslog file via the servlet on the
  23170. tasktracker.</li>
  23171. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  23172. of the jobToken file. The malicious user can now access potentially sensitive
  23173. map outputs, etc. of the target user's job.</li>
  23174. </ol>
  23175. A similar attack is possible involving task log truncation, but in that case
  23176. due to an insecure write to a file.
  23177. <br/>]]>
  23178. </doc>
  23179. </class>
  23180. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  23181. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  23182. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  23183. abstract="false"
  23184. static="true" final="false" visibility="public"
  23185. deprecated="not deprecated">
  23186. <constructor name="AlreadyExistsException" type="java.lang.String"
  23187. static="false" final="false" visibility="public"
  23188. deprecated="not deprecated">
  23189. </constructor>
  23190. <constructor name="AlreadyExistsException" type="java.lang.Throwable"
  23191. static="false" final="false" visibility="public"
  23192. deprecated="not deprecated">
  23193. </constructor>
  23194. <doc>
  23195. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  23196. because another file already existed at that path.]]>
  23197. </doc>
  23198. </class>
  23199. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  23200. <!-- start class org.apache.hadoop.io.SequenceFile -->
  23201. <class name="SequenceFile" extends="java.lang.Object"
  23202. abstract="false"
  23203. static="false" final="false" visibility="public"
  23204. deprecated="not deprecated">
  23205. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  23206. abstract="false" native="false" synchronized="false"
  23207. static="true" final="false" visibility="public"
  23208. deprecated="not deprecated">
  23209. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  23210. <doc>
  23211. <![CDATA[Get the compression type for the reduce outputs
  23212. @param job the job config to look in
  23213. @return the kind of compression to use]]>
  23214. </doc>
  23215. </method>
  23216. <method name="setDefaultCompressionType"
  23217. abstract="false" native="false" synchronized="false"
  23218. static="true" final="false" visibility="public"
  23219. deprecated="not deprecated">
  23220. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  23221. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23222. <doc>
  23223. <![CDATA[Set the default compression type for sequence files.
  23224. @param job the configuration to modify
  23225. @param val the new compression type (none, block, record)]]>
  23226. </doc>
  23227. </method>
  23228. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23229. abstract="false" native="false" synchronized="false"
  23230. static="true" final="false" visibility="public"
  23231. deprecated="not deprecated">
  23232. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23233. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  23234. <exception name="IOException" type="java.io.IOException"/>
  23235. <doc>
  23236. <![CDATA[Create a new Writer with the given options.
  23237. @param conf the configuration to use
  23238. @param opts the options to create the file with
  23239. @return a new Writer
  23240. @throws IOException]]>
  23241. </doc>
  23242. </method>
  23243. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23244. abstract="false" native="false" synchronized="false"
  23245. static="true" final="false" visibility="public"
  23246. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23247. instead.">
  23248. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23250. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23251. <param name="keyClass" type="java.lang.Class"/>
  23252. <param name="valClass" type="java.lang.Class"/>
  23253. <exception name="IOException" type="java.io.IOException"/>
  23254. <doc>
  23255. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23256. @param fs The configured filesystem.
  23257. @param conf The configuration.
  23258. @param name The name of the file.
  23259. @param keyClass The 'key' type.
  23260. @param valClass The 'value' type.
  23261. @return Returns the handle to the constructed SequenceFile Writer.
  23262. @throws IOException
  23263. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23264. instead.]]>
  23265. </doc>
  23266. </method>
  23267. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23268. abstract="false" native="false" synchronized="false"
  23269. static="true" final="false" visibility="public"
  23270. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23271. instead.">
  23272. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23273. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23274. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23275. <param name="keyClass" type="java.lang.Class"/>
  23276. <param name="valClass" type="java.lang.Class"/>
  23277. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23278. <exception name="IOException" type="java.io.IOException"/>
  23279. <doc>
  23280. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23281. @param fs The configured filesystem.
  23282. @param conf The configuration.
  23283. @param name The name of the file.
  23284. @param keyClass The 'key' type.
  23285. @param valClass The 'value' type.
  23286. @param compressionType The compression type.
  23287. @return Returns the handle to the constructed SequenceFile Writer.
  23288. @throws IOException
  23289. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23290. instead.]]>
  23291. </doc>
  23292. </method>
  23293. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23294. abstract="false" native="false" synchronized="false"
  23295. static="true" final="false" visibility="public"
  23296. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23297. instead.">
  23298. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23299. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23300. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23301. <param name="keyClass" type="java.lang.Class"/>
  23302. <param name="valClass" type="java.lang.Class"/>
  23303. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23304. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23305. <exception name="IOException" type="java.io.IOException"/>
  23306. <doc>
  23307. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23308. @param fs The configured filesystem.
  23309. @param conf The configuration.
  23310. @param name The name of the file.
  23311. @param keyClass The 'key' type.
  23312. @param valClass The 'value' type.
  23313. @param compressionType The compression type.
  23314. @param progress The Progressable object to track progress.
  23315. @return Returns the handle to the constructed SequenceFile Writer.
  23316. @throws IOException
  23317. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23318. instead.]]>
  23319. </doc>
  23320. </method>
  23321. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23322. abstract="false" native="false" synchronized="false"
  23323. static="true" final="false" visibility="public"
  23324. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23325. instead.">
  23326. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23328. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23329. <param name="keyClass" type="java.lang.Class"/>
  23330. <param name="valClass" type="java.lang.Class"/>
  23331. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23332. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23333. <exception name="IOException" type="java.io.IOException"/>
  23334. <doc>
  23335. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23336. @param fs The configured filesystem.
  23337. @param conf The configuration.
  23338. @param name The name of the file.
  23339. @param keyClass The 'key' type.
  23340. @param valClass The 'value' type.
  23341. @param compressionType The compression type.
  23342. @param codec The compression codec.
  23343. @return Returns the handle to the constructed SequenceFile Writer.
  23344. @throws IOException
  23345. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23346. instead.]]>
  23347. </doc>
  23348. </method>
  23349. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23350. abstract="false" native="false" synchronized="false"
  23351. static="true" final="false" visibility="public"
  23352. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23353. instead.">
  23354. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23355. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23356. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23357. <param name="keyClass" type="java.lang.Class"/>
  23358. <param name="valClass" type="java.lang.Class"/>
  23359. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23360. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23361. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23362. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23363. <exception name="IOException" type="java.io.IOException"/>
  23364. <doc>
  23365. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23366. @param fs The configured filesystem.
  23367. @param conf The configuration.
  23368. @param name The name of the file.
  23369. @param keyClass The 'key' type.
  23370. @param valClass The 'value' type.
  23371. @param compressionType The compression type.
  23372. @param codec The compression codec.
  23373. @param progress The Progressable object to track progress.
  23374. @param metadata The metadata of the file.
  23375. @return Returns the handle to the constructed SequenceFile Writer.
  23376. @throws IOException
  23377. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23378. instead.]]>
  23379. </doc>
  23380. </method>
  23381. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23382. abstract="false" native="false" synchronized="false"
  23383. static="true" final="false" visibility="public"
  23384. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23385. instead.">
  23386. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23387. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23388. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23389. <param name="keyClass" type="java.lang.Class"/>
  23390. <param name="valClass" type="java.lang.Class"/>
  23391. <param name="bufferSize" type="int"/>
  23392. <param name="replication" type="short"/>
  23393. <param name="blockSize" type="long"/>
  23394. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23395. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23396. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23397. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23398. <exception name="IOException" type="java.io.IOException"/>
  23399. <doc>
  23400. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23401. @param fs The configured filesystem.
  23402. @param conf The configuration.
  23403. @param name The name of the file.
  23404. @param keyClass The 'key' type.
  23405. @param valClass The 'value' type.
  23406. @param bufferSize buffer size for the underlaying outputstream.
  23407. @param replication replication factor for the file.
  23408. @param blockSize block size for the file.
  23409. @param compressionType The compression type.
  23410. @param codec The compression codec.
  23411. @param progress The Progressable object to track progress.
  23412. @param metadata The metadata of the file.
  23413. @return Returns the handle to the constructed SequenceFile Writer.
  23414. @throws IOException
  23415. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23416. instead.]]>
  23417. </doc>
  23418. </method>
  23419. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23420. abstract="false" native="false" synchronized="false"
  23421. static="true" final="false" visibility="public"
  23422. deprecated="not deprecated">
  23423. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23425. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23426. <param name="keyClass" type="java.lang.Class"/>
  23427. <param name="valClass" type="java.lang.Class"/>
  23428. <param name="bufferSize" type="int"/>
  23429. <param name="replication" type="short"/>
  23430. <param name="blockSize" type="long"/>
  23431. <param name="createParent" type="boolean"/>
  23432. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23433. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23434. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23435. <exception name="IOException" type="java.io.IOException"/>
  23436. <doc>
  23437. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23438. @param fs The configured filesystem.
  23439. @param conf The configuration.
  23440. @param name The name of the file.
  23441. @param keyClass The 'key' type.
  23442. @param valClass The 'value' type.
  23443. @param bufferSize buffer size for the underlaying outputstream.
  23444. @param replication replication factor for the file.
  23445. @param blockSize block size for the file.
  23446. @param createParent create parent directory if non-existent
  23447. @param compressionType The compression type.
  23448. @param codec The compression codec.
  23449. @param metadata The metadata of the file.
  23450. @return Returns the handle to the constructed SequenceFile Writer.
  23451. @throws IOException]]>
  23452. </doc>
  23453. </method>
  23454. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23455. abstract="false" native="false" synchronized="false"
  23456. static="true" final="false" visibility="public"
  23457. deprecated="not deprecated">
  23458. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  23459. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23460. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23461. <param name="keyClass" type="java.lang.Class"/>
  23462. <param name="valClass" type="java.lang.Class"/>
  23463. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23464. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23465. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23466. <param name="createFlag" type="java.util.EnumSet"/>
  23467. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  23468. <exception name="IOException" type="java.io.IOException"/>
  23469. <doc>
  23470. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23471. @param fc The context for the specified file.
  23472. @param conf The configuration.
  23473. @param name The name of the file.
  23474. @param keyClass The 'key' type.
  23475. @param valClass The 'value' type.
  23476. @param compressionType The compression type.
  23477. @param codec The compression codec.
  23478. @param metadata The metadata of the file.
  23479. @param createFlag gives the semantics of create: overwrite, append etc.
  23480. @param opts file creation options; see {@link CreateOpts}.
  23481. @return Returns the handle to the constructed SequenceFile Writer.
  23482. @throws IOException]]>
  23483. </doc>
  23484. </method>
  23485. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23486. abstract="false" native="false" synchronized="false"
  23487. static="true" final="false" visibility="public"
  23488. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23489. instead.">
  23490. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23491. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23492. <param name="name" type="org.apache.hadoop.fs.Path"/>
  23493. <param name="keyClass" type="java.lang.Class"/>
  23494. <param name="valClass" type="java.lang.Class"/>
  23495. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23496. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23497. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23498. <exception name="IOException" type="java.io.IOException"/>
  23499. <doc>
  23500. <![CDATA[Construct the preferred type of SequenceFile Writer.
  23501. @param fs The configured filesystem.
  23502. @param conf The configuration.
  23503. @param name The name of the file.
  23504. @param keyClass The 'key' type.
  23505. @param valClass The 'value' type.
  23506. @param compressionType The compression type.
  23507. @param codec The compression codec.
  23508. @param progress The Progressable object to track progress.
  23509. @return Returns the handle to the constructed SequenceFile Writer.
  23510. @throws IOException
  23511. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23512. instead.]]>
  23513. </doc>
  23514. </method>
  23515. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23516. abstract="false" native="false" synchronized="false"
  23517. static="true" final="false" visibility="public"
  23518. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23519. instead.">
  23520. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23521. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  23522. <param name="keyClass" type="java.lang.Class"/>
  23523. <param name="valClass" type="java.lang.Class"/>
  23524. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23525. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23526. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23527. <exception name="IOException" type="java.io.IOException"/>
  23528. <doc>
  23529. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  23530. @param conf The configuration.
  23531. @param out The stream on top which the writer is to be constructed.
  23532. @param keyClass The 'key' type.
  23533. @param valClass The 'value' type.
  23534. @param compressionType The compression type.
  23535. @param codec The compression codec.
  23536. @param metadata The metadata of the file.
  23537. @return Returns the handle to the constructed SequenceFile Writer.
  23538. @throws IOException
  23539. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23540. instead.]]>
  23541. </doc>
  23542. </method>
  23543. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  23544. abstract="false" native="false" synchronized="false"
  23545. static="true" final="false" visibility="public"
  23546. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  23547. instead.">
  23548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23549. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  23550. <param name="keyClass" type="java.lang.Class"/>
  23551. <param name="valClass" type="java.lang.Class"/>
  23552. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23553. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  23554. <exception name="IOException" type="java.io.IOException"/>
  23555. <doc>
  23556. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  23557. @param conf The configuration.
  23558. @param out The stream on top which the writer is to be constructed.
  23559. @param keyClass The 'key' type.
  23560. @param valClass The 'value' type.
  23561. @param compressionType The compression type.
  23562. @param codec The compression codec.
  23563. @return Returns the handle to the constructed SequenceFile Writer.
  23564. @throws IOException
  23565. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  23566. instead.]]>
  23567. </doc>
  23568. </method>
  23569. <field name="SYNC_INTERVAL" type="int"
  23570. transient="false" volatile="false"
  23571. static="true" final="true" visibility="public"
  23572. deprecated="not deprecated">
  23573. <doc>
  23574. <![CDATA[The number of bytes between sync points.]]>
  23575. </doc>
  23576. </field>
  23577. <doc>
  23578. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  23579. pairs.
  23580. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  23581. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  23582. reading and sorting respectively.</p>
  23583. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  23584. {@link CompressionType} used to compress key/value pairs:
  23585. <ol>
  23586. <li>
  23587. <code>Writer</code> : Uncompressed records.
  23588. </li>
  23589. <li>
  23590. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  23591. values.
  23592. </li>
  23593. <li>
  23594. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  23595. values are collected in 'blocks'
  23596. separately and compressed. The size of
  23597. the 'block' is configurable.
  23598. </ol>
  23599. <p>The actual compression algorithm used to compress key and/or values can be
  23600. specified by using the appropriate {@link CompressionCodec}.</p>
  23601. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  23602. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  23603. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  23604. above <code>SequenceFile</code> formats.</p>
  23605. <h4 id="Formats">SequenceFile Formats</h4>
  23606. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  23607. depending on the <code>CompressionType</code> specified. All of them share a
  23608. <a href="#Header">common header</a> described below.
  23609. <h5 id="Header">SequenceFile Header</h5>
  23610. <ul>
  23611. <li>
  23612. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  23613. version number (e.g. SEQ4 or SEQ6)
  23614. </li>
  23615. <li>
  23616. keyClassName -key class
  23617. </li>
  23618. <li>
  23619. valueClassName - value class
  23620. </li>
  23621. <li>
  23622. compression - A boolean which specifies if compression is turned on for
  23623. keys/values in this file.
  23624. </li>
  23625. <li>
  23626. blockCompression - A boolean which specifies if block-compression is
  23627. turned on for keys/values in this file.
  23628. </li>
  23629. <li>
  23630. compression codec - <code>CompressionCodec</code> class which is used for
  23631. compression of keys and/or values (if compression is
  23632. enabled).
  23633. </li>
  23634. <li>
  23635. metadata - {@link Metadata} for this file.
  23636. </li>
  23637. <li>
  23638. sync - A sync marker to denote end of the header.
  23639. </li>
  23640. </ul>
  23641. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  23642. <ul>
  23643. <li>
  23644. <a href="#Header">Header</a>
  23645. </li>
  23646. <li>
  23647. Record
  23648. <ul>
  23649. <li>Record length</li>
  23650. <li>Key length</li>
  23651. <li>Key</li>
  23652. <li>Value</li>
  23653. </ul>
  23654. </li>
  23655. <li>
  23656. A sync-marker every few <code>100</code> bytes or so.
  23657. </li>
  23658. </ul>
  23659. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  23660. <ul>
  23661. <li>
  23662. <a href="#Header">Header</a>
  23663. </li>
  23664. <li>
  23665. Record
  23666. <ul>
  23667. <li>Record length</li>
  23668. <li>Key length</li>
  23669. <li>Key</li>
  23670. <li><i>Compressed</i> Value</li>
  23671. </ul>
  23672. </li>
  23673. <li>
  23674. A sync-marker every few <code>100</code> bytes or so.
  23675. </li>
  23676. </ul>
  23677. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  23678. <ul>
  23679. <li>
  23680. <a href="#Header">Header</a>
  23681. </li>
  23682. <li>
  23683. Record <i>Block</i>
  23684. <ul>
  23685. <li>Uncompressed number of records in the block</li>
  23686. <li>Compressed key-lengths block-size</li>
  23687. <li>Compressed key-lengths block</li>
  23688. <li>Compressed keys block-size</li>
  23689. <li>Compressed keys block</li>
  23690. <li>Compressed value-lengths block-size</li>
  23691. <li>Compressed value-lengths block</li>
  23692. <li>Compressed values block-size</li>
  23693. <li>Compressed values block</li>
  23694. </ul>
  23695. </li>
  23696. <li>
  23697. A sync-marker every block.
  23698. </li>
  23699. </ul>
  23700. <p>The compressed blocks of key lengths and value lengths consist of the
  23701. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  23702. format.</p>
  23703. @see CompressionCodec]]>
  23704. </doc>
  23705. </class>
  23706. <!-- end class org.apache.hadoop.io.SequenceFile -->
  23707. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  23708. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  23709. abstract="false"
  23710. static="true" final="true" visibility="public"
  23711. deprecated="not deprecated">
  23712. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  23713. abstract="false" native="false" synchronized="false"
  23714. static="true" final="false" visibility="public"
  23715. deprecated="not deprecated">
  23716. </method>
  23717. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  23718. abstract="false" native="false" synchronized="false"
  23719. static="true" final="false" visibility="public"
  23720. deprecated="not deprecated">
  23721. <param name="name" type="java.lang.String"/>
  23722. </method>
  23723. <doc>
  23724. <![CDATA[The compression type used to compress key/value pairs in the
  23725. {@link SequenceFile}.
  23726. @see SequenceFile.Writer]]>
  23727. </doc>
  23728. </class>
  23729. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  23730. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  23731. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  23732. abstract="false"
  23733. static="true" final="false" visibility="public"
  23734. deprecated="not deprecated">
  23735. <implements name="org.apache.hadoop.io.Writable"/>
  23736. <constructor name="Metadata"
  23737. static="false" final="false" visibility="public"
  23738. deprecated="not deprecated">
  23739. </constructor>
  23740. <constructor name="Metadata" type="java.util.TreeMap"
  23741. static="false" final="false" visibility="public"
  23742. deprecated="not deprecated">
  23743. </constructor>
  23744. <method name="get" return="org.apache.hadoop.io.Text"
  23745. abstract="false" native="false" synchronized="false"
  23746. static="false" final="false" visibility="public"
  23747. deprecated="not deprecated">
  23748. <param name="name" type="org.apache.hadoop.io.Text"/>
  23749. </method>
  23750. <method name="set"
  23751. abstract="false" native="false" synchronized="false"
  23752. static="false" final="false" visibility="public"
  23753. deprecated="not deprecated">
  23754. <param name="name" type="org.apache.hadoop.io.Text"/>
  23755. <param name="value" type="org.apache.hadoop.io.Text"/>
  23756. </method>
  23757. <method name="getMetadata" return="java.util.TreeMap"
  23758. abstract="false" native="false" synchronized="false"
  23759. static="false" final="false" visibility="public"
  23760. deprecated="not deprecated">
  23761. </method>
  23762. <method name="write"
  23763. abstract="false" native="false" synchronized="false"
  23764. static="false" final="false" visibility="public"
  23765. deprecated="not deprecated">
  23766. <param name="out" type="java.io.DataOutput"/>
  23767. <exception name="IOException" type="java.io.IOException"/>
  23768. </method>
  23769. <method name="readFields"
  23770. abstract="false" native="false" synchronized="false"
  23771. static="false" final="false" visibility="public"
  23772. deprecated="not deprecated">
  23773. <param name="in" type="java.io.DataInput"/>
  23774. <exception name="IOException" type="java.io.IOException"/>
  23775. </method>
  23776. <method name="equals" return="boolean"
  23777. abstract="false" native="false" synchronized="false"
  23778. static="false" final="false" visibility="public"
  23779. deprecated="not deprecated">
  23780. <param name="other" type="java.lang.Object"/>
  23781. </method>
  23782. <method name="equals" return="boolean"
  23783. abstract="false" native="false" synchronized="false"
  23784. static="false" final="false" visibility="public"
  23785. deprecated="not deprecated">
  23786. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  23787. </method>
  23788. <method name="hashCode" return="int"
  23789. abstract="false" native="false" synchronized="false"
  23790. static="false" final="false" visibility="public"
  23791. deprecated="not deprecated">
  23792. </method>
  23793. <method name="toString" return="java.lang.String"
  23794. abstract="false" native="false" synchronized="false"
  23795. static="false" final="false" visibility="public"
  23796. deprecated="not deprecated">
  23797. </method>
  23798. <doc>
  23799. <![CDATA[The class encapsulating with the metadata of a file.
  23800. The metadata of a file is a list of attribute name/value
  23801. pairs of Text type.]]>
  23802. </doc>
  23803. </class>
  23804. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  23805. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  23806. <class name="SequenceFile.Reader" extends="java.lang.Object"
  23807. abstract="false"
  23808. static="true" final="false" visibility="public"
  23809. deprecated="not deprecated">
  23810. <implements name="java.io.Closeable"/>
  23811. <constructor name="Reader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  23812. static="false" final="false" visibility="public"
  23813. deprecated="not deprecated">
  23814. <exception name="IOException" type="java.io.IOException"/>
  23815. </constructor>
  23816. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  23817. static="false" final="false" visibility="public"
  23818. deprecated="Use Reader(Configuration, Option...) instead.">
  23819. <exception name="IOException" type="java.io.IOException"/>
  23820. <doc>
  23821. <![CDATA[Construct a reader by opening a file from the given file system.
  23822. @param fs The file system used to open the file.
  23823. @param file The file being read.
  23824. @param conf Configuration
  23825. @throws IOException
  23826. @deprecated Use Reader(Configuration, Option...) instead.]]>
  23827. </doc>
  23828. </constructor>
  23829. <constructor name="Reader" type="org.apache.hadoop.fs.FSDataInputStream, int, long, long, org.apache.hadoop.conf.Configuration"
  23830. static="false" final="false" visibility="public"
  23831. deprecated="Use Reader(Configuration, Reader.Option...) instead.">
  23832. <exception name="IOException" type="java.io.IOException"/>
  23833. <doc>
  23834. <![CDATA[Construct a reader by the given input stream.
  23835. @param in An input stream.
  23836. @param buffersize unused
  23837. @param start The starting position.
  23838. @param length The length being read.
  23839. @param conf Configuration
  23840. @throws IOException
  23841. @deprecated Use Reader(Configuration, Reader.Option...) instead.]]>
  23842. </doc>
  23843. </constructor>
  23844. <method name="file" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  23845. abstract="false" native="false" synchronized="false"
  23846. static="true" final="false" visibility="public"
  23847. deprecated="not deprecated">
  23848. <param name="value" type="org.apache.hadoop.fs.Path"/>
  23849. <doc>
  23850. <![CDATA[Create an option to specify the path name of the sequence file.
  23851. @param value the path to read
  23852. @return a new option]]>
  23853. </doc>
  23854. </method>
  23855. <method name="stream" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  23856. abstract="false" native="false" synchronized="false"
  23857. static="true" final="false" visibility="public"
  23858. deprecated="not deprecated">
  23859. <param name="value" type="org.apache.hadoop.fs.FSDataInputStream"/>
  23860. <doc>
  23861. <![CDATA[Create an option to specify the stream with the sequence file.
  23862. @param value the stream to read.
  23863. @return a new option]]>
  23864. </doc>
  23865. </method>
  23866. <method name="start" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  23867. abstract="false" native="false" synchronized="false"
  23868. static="true" final="false" visibility="public"
  23869. deprecated="not deprecated">
  23870. <param name="value" type="long"/>
  23871. <doc>
  23872. <![CDATA[Create an option to specify the starting byte to read.
  23873. @param value the number of bytes to skip over
  23874. @return a new option]]>
  23875. </doc>
  23876. </method>
  23877. <method name="length" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  23878. abstract="false" native="false" synchronized="false"
  23879. static="true" final="false" visibility="public"
  23880. deprecated="not deprecated">
  23881. <param name="value" type="long"/>
  23882. <doc>
  23883. <![CDATA[Create an option to specify the number of bytes to read.
  23884. @param value the number of bytes to read
  23885. @return a new option]]>
  23886. </doc>
  23887. </method>
  23888. <method name="bufferSize" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  23889. abstract="false" native="false" synchronized="false"
  23890. static="true" final="false" visibility="public"
  23891. deprecated="not deprecated">
  23892. <param name="value" type="int"/>
  23893. <doc>
  23894. <![CDATA[Create an option with the buffer size for reading the given pathname.
  23895. @param value the number of bytes to buffer
  23896. @return a new option]]>
  23897. </doc>
  23898. </method>
  23899. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  23900. abstract="false" native="false" synchronized="false"
  23901. static="false" final="false" visibility="protected"
  23902. deprecated="not deprecated">
  23903. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23904. <param name="file" type="org.apache.hadoop.fs.Path"/>
  23905. <param name="bufferSize" type="int"/>
  23906. <param name="length" type="long"/>
  23907. <exception name="IOException" type="java.io.IOException"/>
  23908. <doc>
  23909. <![CDATA[Override this method to specialize the type of
  23910. {@link FSDataInputStream} returned.
  23911. @param fs The file system used to open the file.
  23912. @param file The file being read.
  23913. @param bufferSize The buffer size used to read the file.
  23914. @param length The length being read if it is >= 0. Otherwise,
  23915. the length is not available.
  23916. @return The opened stream.
  23917. @throws IOException]]>
  23918. </doc>
  23919. </method>
  23920. <method name="close"
  23921. abstract="false" native="false" synchronized="true"
  23922. static="false" final="false" visibility="public"
  23923. deprecated="not deprecated">
  23924. <exception name="IOException" type="java.io.IOException"/>
  23925. <doc>
  23926. <![CDATA[Close the file.]]>
  23927. </doc>
  23928. </method>
  23929. <method name="getKeyClassName" return="java.lang.String"
  23930. abstract="false" native="false" synchronized="false"
  23931. static="false" final="false" visibility="public"
  23932. deprecated="not deprecated">
  23933. <doc>
  23934. <![CDATA[Returns the name of the key class.]]>
  23935. </doc>
  23936. </method>
  23937. <method name="getKeyClass" return="java.lang.Class"
  23938. abstract="false" native="false" synchronized="true"
  23939. static="false" final="false" visibility="public"
  23940. deprecated="not deprecated">
  23941. <doc>
  23942. <![CDATA[Returns the class of keys in this file.]]>
  23943. </doc>
  23944. </method>
  23945. <method name="getValueClassName" return="java.lang.String"
  23946. abstract="false" native="false" synchronized="false"
  23947. static="false" final="false" visibility="public"
  23948. deprecated="not deprecated">
  23949. <doc>
  23950. <![CDATA[Returns the name of the value class.]]>
  23951. </doc>
  23952. </method>
  23953. <method name="getValueClass" return="java.lang.Class"
  23954. abstract="false" native="false" synchronized="true"
  23955. static="false" final="false" visibility="public"
  23956. deprecated="not deprecated">
  23957. <doc>
  23958. <![CDATA[Returns the class of values in this file.]]>
  23959. </doc>
  23960. </method>
  23961. <method name="isCompressed" return="boolean"
  23962. abstract="false" native="false" synchronized="false"
  23963. static="false" final="false" visibility="public"
  23964. deprecated="not deprecated">
  23965. <doc>
  23966. <![CDATA[Returns true if values are compressed.]]>
  23967. </doc>
  23968. </method>
  23969. <method name="isBlockCompressed" return="boolean"
  23970. abstract="false" native="false" synchronized="false"
  23971. static="false" final="false" visibility="public"
  23972. deprecated="not deprecated">
  23973. <doc>
  23974. <![CDATA[Returns true if records are block-compressed.]]>
  23975. </doc>
  23976. </method>
  23977. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  23978. abstract="false" native="false" synchronized="false"
  23979. static="false" final="false" visibility="public"
  23980. deprecated="not deprecated">
  23981. <doc>
  23982. <![CDATA[Returns the compression codec of data in this file.]]>
  23983. </doc>
  23984. </method>
  23985. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  23986. abstract="false" native="false" synchronized="false"
  23987. static="false" final="false" visibility="public"
  23988. deprecated="not deprecated">
  23989. <doc>
  23990. <![CDATA[Get the compression type for this file.
  23991. @return the compression type]]>
  23992. </doc>
  23993. </method>
  23994. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  23995. abstract="false" native="false" synchronized="false"
  23996. static="false" final="false" visibility="public"
  23997. deprecated="not deprecated">
  23998. <doc>
  23999. <![CDATA[Returns the metadata object of the file]]>
  24000. </doc>
  24001. </method>
  24002. <method name="getCurrentValue"
  24003. abstract="false" native="false" synchronized="true"
  24004. static="false" final="false" visibility="public"
  24005. deprecated="not deprecated">
  24006. <param name="val" type="org.apache.hadoop.io.Writable"/>
  24007. <exception name="IOException" type="java.io.IOException"/>
  24008. <doc>
  24009. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  24010. @param val : The 'value' to be read.
  24011. @throws IOException]]>
  24012. </doc>
  24013. </method>
  24014. <method name="getCurrentValue" return="java.lang.Object"
  24015. abstract="false" native="false" synchronized="true"
  24016. static="false" final="false" visibility="public"
  24017. deprecated="not deprecated">
  24018. <param name="val" type="java.lang.Object"/>
  24019. <exception name="IOException" type="java.io.IOException"/>
  24020. <doc>
  24021. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  24022. @param val : The 'value' to be read.
  24023. @throws IOException]]>
  24024. </doc>
  24025. </method>
  24026. <method name="next" return="boolean"
  24027. abstract="false" native="false" synchronized="true"
  24028. static="false" final="false" visibility="public"
  24029. deprecated="not deprecated">
  24030. <param name="key" type="org.apache.hadoop.io.Writable"/>
  24031. <exception name="IOException" type="java.io.IOException"/>
  24032. <doc>
  24033. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  24034. value. True if another entry exists, and false at end of file.]]>
  24035. </doc>
  24036. </method>
  24037. <method name="next" return="boolean"
  24038. abstract="false" native="false" synchronized="true"
  24039. static="false" final="false" visibility="public"
  24040. deprecated="not deprecated">
  24041. <param name="key" type="org.apache.hadoop.io.Writable"/>
  24042. <param name="val" type="org.apache.hadoop.io.Writable"/>
  24043. <exception name="IOException" type="java.io.IOException"/>
  24044. <doc>
  24045. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  24046. <code>val</code>. Returns true if such a pair exists and false when at
  24047. end of file]]>
  24048. </doc>
  24049. </method>
  24050. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  24051. abstract="false" native="false" synchronized="false"
  24052. static="false" final="false" visibility="public"
  24053. deprecated="not deprecated">
  24054. </method>
  24055. <method name="nextRaw" return="int"
  24056. abstract="false" native="false" synchronized="true"
  24057. static="false" final="false" visibility="public"
  24058. deprecated="not deprecated">
  24059. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  24060. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  24061. <exception name="IOException" type="java.io.IOException"/>
  24062. <doc>
  24063. <![CDATA[Read 'raw' records.
  24064. @param key - The buffer into which the key is read
  24065. @param val - The 'raw' value
  24066. @return Returns the total record length or -1 for end of file
  24067. @throws IOException]]>
  24068. </doc>
  24069. </method>
  24070. <method name="nextRawKey" return="int"
  24071. abstract="false" native="false" synchronized="true"
  24072. static="false" final="false" visibility="public"
  24073. deprecated="not deprecated">
  24074. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  24075. <exception name="IOException" type="java.io.IOException"/>
  24076. <doc>
  24077. <![CDATA[Read 'raw' keys.
  24078. @param key - The buffer into which the key is read
  24079. @return Returns the key length or -1 for end of file
  24080. @throws IOException]]>
  24081. </doc>
  24082. </method>
  24083. <method name="next" return="java.lang.Object"
  24084. abstract="false" native="false" synchronized="true"
  24085. static="false" final="false" visibility="public"
  24086. deprecated="not deprecated">
  24087. <param name="key" type="java.lang.Object"/>
  24088. <exception name="IOException" type="java.io.IOException"/>
  24089. <doc>
  24090. <![CDATA[Read the next key in the file, skipping its
  24091. value. Return null at end of file.]]>
  24092. </doc>
  24093. </method>
  24094. <method name="nextRawValue" return="int"
  24095. abstract="false" native="false" synchronized="true"
  24096. static="false" final="false" visibility="public"
  24097. deprecated="not deprecated">
  24098. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  24099. <exception name="IOException" type="java.io.IOException"/>
  24100. <doc>
  24101. <![CDATA[Read 'raw' values.
  24102. @param val - The 'raw' value
  24103. @return Returns the value length
  24104. @throws IOException]]>
  24105. </doc>
  24106. </method>
  24107. <method name="seek"
  24108. abstract="false" native="false" synchronized="true"
  24109. static="false" final="false" visibility="public"
  24110. deprecated="not deprecated">
  24111. <param name="position" type="long"/>
  24112. <exception name="IOException" type="java.io.IOException"/>
  24113. <doc>
  24114. <![CDATA[Set the current byte position in the input file.
  24115. <p>The position passed must be a position returned by {@link
  24116. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  24117. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  24118. </doc>
  24119. </method>
  24120. <method name="sync"
  24121. abstract="false" native="false" synchronized="true"
  24122. static="false" final="false" visibility="public"
  24123. deprecated="not deprecated">
  24124. <param name="position" type="long"/>
  24125. <exception name="IOException" type="java.io.IOException"/>
  24126. <doc>
  24127. <![CDATA[Seek to the next sync mark past a given position.]]>
  24128. </doc>
  24129. </method>
  24130. <method name="syncSeen" return="boolean"
  24131. abstract="false" native="false" synchronized="true"
  24132. static="false" final="false" visibility="public"
  24133. deprecated="not deprecated">
  24134. <doc>
  24135. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  24136. </doc>
  24137. </method>
  24138. <method name="getPosition" return="long"
  24139. abstract="false" native="false" synchronized="true"
  24140. static="false" final="false" visibility="public"
  24141. deprecated="not deprecated">
  24142. <exception name="IOException" type="java.io.IOException"/>
  24143. <doc>
  24144. <![CDATA[Return the current byte position in the input file.]]>
  24145. </doc>
  24146. </method>
  24147. <method name="toString" return="java.lang.String"
  24148. abstract="false" native="false" synchronized="false"
  24149. static="false" final="false" visibility="public"
  24150. deprecated="not deprecated">
  24151. <doc>
  24152. <![CDATA[Returns the name of the file.]]>
  24153. </doc>
  24154. </method>
  24155. <doc>
  24156. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  24157. </doc>
  24158. </class>
  24159. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  24160. <!-- start interface org.apache.hadoop.io.SequenceFile.Reader.Option -->
  24161. <interface name="SequenceFile.Reader.Option" abstract="true"
  24162. static="true" final="false" visibility="public"
  24163. deprecated="not deprecated">
  24164. <doc>
  24165. <![CDATA[A tag interface for all of the Reader options]]>
  24166. </doc>
  24167. </interface>
  24168. <!-- end interface org.apache.hadoop.io.SequenceFile.Reader.Option -->
  24169. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  24170. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  24171. abstract="false"
  24172. static="true" final="false" visibility="public"
  24173. deprecated="not deprecated">
  24174. <constructor name="Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  24175. static="false" final="false" visibility="public"
  24176. deprecated="not deprecated">
  24177. <doc>
  24178. <![CDATA[Sort and merge files containing the named classes.]]>
  24179. </doc>
  24180. </constructor>
  24181. <constructor name="Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  24182. static="false" final="false" visibility="public"
  24183. deprecated="not deprecated">
  24184. <doc>
  24185. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  24186. </doc>
  24187. </constructor>
  24188. <constructor name="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"
  24189. static="false" final="false" visibility="public"
  24190. deprecated="not deprecated">
  24191. <doc>
  24192. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  24193. </doc>
  24194. </constructor>
  24195. <method name="setFactor"
  24196. abstract="false" native="false" synchronized="false"
  24197. static="false" final="false" visibility="public"
  24198. deprecated="not deprecated">
  24199. <param name="factor" type="int"/>
  24200. <doc>
  24201. <![CDATA[Set the number of streams to merge at once.]]>
  24202. </doc>
  24203. </method>
  24204. <method name="getFactor" return="int"
  24205. abstract="false" native="false" synchronized="false"
  24206. static="false" final="false" visibility="public"
  24207. deprecated="not deprecated">
  24208. <doc>
  24209. <![CDATA[Get the number of streams to merge at once.]]>
  24210. </doc>
  24211. </method>
  24212. <method name="setMemory"
  24213. abstract="false" native="false" synchronized="false"
  24214. static="false" final="false" visibility="public"
  24215. deprecated="not deprecated">
  24216. <param name="memory" type="int"/>
  24217. <doc>
  24218. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  24219. </doc>
  24220. </method>
  24221. <method name="getMemory" return="int"
  24222. abstract="false" native="false" synchronized="false"
  24223. static="false" final="false" visibility="public"
  24224. deprecated="not deprecated">
  24225. <doc>
  24226. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  24227. </doc>
  24228. </method>
  24229. <method name="setProgressable"
  24230. abstract="false" native="false" synchronized="false"
  24231. static="false" final="false" visibility="public"
  24232. deprecated="not deprecated">
  24233. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  24234. <doc>
  24235. <![CDATA[Set the progressable object in order to report progress.]]>
  24236. </doc>
  24237. </method>
  24238. <method name="sort"
  24239. abstract="false" native="false" synchronized="false"
  24240. static="false" final="false" visibility="public"
  24241. deprecated="not deprecated">
  24242. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  24243. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  24244. <param name="deleteInput" type="boolean"/>
  24245. <exception name="IOException" type="java.io.IOException"/>
  24246. <doc>
  24247. <![CDATA[Perform a file sort from a set of input files into an output file.
  24248. @param inFiles the files to be sorted
  24249. @param outFile the sorted output file
  24250. @param deleteInput should the input files be deleted as they are read?]]>
  24251. </doc>
  24252. </method>
  24253. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  24254. abstract="false" native="false" synchronized="false"
  24255. static="false" final="false" visibility="public"
  24256. deprecated="not deprecated">
  24257. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  24258. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  24259. <param name="deleteInput" type="boolean"/>
  24260. <exception name="IOException" type="java.io.IOException"/>
  24261. <doc>
  24262. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  24263. @param inFiles the files to be sorted
  24264. @param tempDir the directory where temp files are created during sort
  24265. @param deleteInput should the input files be deleted as they are read?
  24266. @return iterator the RawKeyValueIterator]]>
  24267. </doc>
  24268. </method>
  24269. <method name="sort"
  24270. abstract="false" native="false" synchronized="false"
  24271. static="false" final="false" visibility="public"
  24272. deprecated="not deprecated">
  24273. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  24274. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  24275. <exception name="IOException" type="java.io.IOException"/>
  24276. <doc>
  24277. <![CDATA[The backwards compatible interface to sort.
  24278. @param inFile the input file to sort
  24279. @param outFile the sorted output file]]>
  24280. </doc>
  24281. </method>
  24282. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  24283. abstract="false" native="false" synchronized="false"
  24284. static="false" final="false" visibility="public"
  24285. deprecated="not deprecated">
  24286. <param name="segments" type="java.util.List"/>
  24287. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  24288. <exception name="IOException" type="java.io.IOException"/>
  24289. <doc>
  24290. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  24291. @param segments the list of SegmentDescriptors
  24292. @param tmpDir the directory to write temporary files into
  24293. @return RawKeyValueIterator
  24294. @throws IOException]]>
  24295. </doc>
  24296. </method>
  24297. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  24298. abstract="false" native="false" synchronized="false"
  24299. static="false" final="false" visibility="public"
  24300. deprecated="not deprecated">
  24301. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  24302. <param name="deleteInputs" type="boolean"/>
  24303. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  24304. <exception name="IOException" type="java.io.IOException"/>
  24305. <doc>
  24306. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  24307. that is already set
  24308. @param inNames the array of path names
  24309. @param deleteInputs true if the input files should be deleted when
  24310. unnecessary
  24311. @param tmpDir the directory to write temporary files into
  24312. @return RawKeyValueIteratorMergeQueue
  24313. @throws IOException]]>
  24314. </doc>
  24315. </method>
  24316. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  24317. abstract="false" native="false" synchronized="false"
  24318. static="false" final="false" visibility="public"
  24319. deprecated="not deprecated">
  24320. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  24321. <param name="deleteInputs" type="boolean"/>
  24322. <param name="factor" type="int"/>
  24323. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  24324. <exception name="IOException" type="java.io.IOException"/>
  24325. <doc>
  24326. <![CDATA[Merges the contents of files passed in Path[]
  24327. @param inNames the array of path names
  24328. @param deleteInputs true if the input files should be deleted when
  24329. unnecessary
  24330. @param factor the factor that will be used as the maximum merge fan-in
  24331. @param tmpDir the directory to write temporary files into
  24332. @return RawKeyValueIteratorMergeQueue
  24333. @throws IOException]]>
  24334. </doc>
  24335. </method>
  24336. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  24337. abstract="false" native="false" synchronized="false"
  24338. static="false" final="false" visibility="public"
  24339. deprecated="not deprecated">
  24340. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  24341. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  24342. <param name="deleteInputs" type="boolean"/>
  24343. <exception name="IOException" type="java.io.IOException"/>
  24344. <doc>
  24345. <![CDATA[Merges the contents of files passed in Path[]
  24346. @param inNames the array of path names
  24347. @param tempDir the directory for creating temp files during merge
  24348. @param deleteInputs true if the input files should be deleted when
  24349. unnecessary
  24350. @return RawKeyValueIteratorMergeQueue
  24351. @throws IOException]]>
  24352. </doc>
  24353. </method>
  24354. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  24355. abstract="false" native="false" synchronized="false"
  24356. static="false" final="false" visibility="public"
  24357. deprecated="not deprecated">
  24358. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  24359. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  24360. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  24361. <exception name="IOException" type="java.io.IOException"/>
  24362. <doc>
  24363. <![CDATA[Clones the attributes (like compression of the input file and creates a
  24364. corresponding Writer
  24365. @param inputFile the path of the input file whose attributes should be
  24366. cloned
  24367. @param outputFile the path of the output file
  24368. @param prog the Progressable to report status during the file write
  24369. @return Writer
  24370. @throws IOException]]>
  24371. </doc>
  24372. </method>
  24373. <method name="writeFile"
  24374. abstract="false" native="false" synchronized="false"
  24375. static="false" final="false" visibility="public"
  24376. deprecated="not deprecated">
  24377. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  24378. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  24379. <exception name="IOException" type="java.io.IOException"/>
  24380. <doc>
  24381. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  24382. passed writer
  24383. @param records the RawKeyValueIterator
  24384. @param writer the Writer created earlier
  24385. @throws IOException]]>
  24386. </doc>
  24387. </method>
  24388. <method name="merge"
  24389. abstract="false" native="false" synchronized="false"
  24390. static="false" final="false" visibility="public"
  24391. deprecated="not deprecated">
  24392. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  24393. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  24394. <exception name="IOException" type="java.io.IOException"/>
  24395. <doc>
  24396. <![CDATA[Merge the provided files.
  24397. @param inFiles the array of input path names
  24398. @param outFile the final output file
  24399. @throws IOException]]>
  24400. </doc>
  24401. </method>
  24402. <doc>
  24403. <![CDATA[Sorts key/value pairs in a sequence-format file.
  24404. <p>For best performance, applications should make sure that the {@link
  24405. Writable#readFields(DataInput)} implementation of their keys is
  24406. very efficient. In particular, it should avoid allocating memory.]]>
  24407. </doc>
  24408. </class>
  24409. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  24410. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  24411. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  24412. static="true" final="false" visibility="public"
  24413. deprecated="not deprecated">
  24414. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  24415. abstract="true" native="false" synchronized="false"
  24416. static="false" final="false" visibility="public"
  24417. deprecated="not deprecated">
  24418. <exception name="IOException" type="java.io.IOException"/>
  24419. <doc>
  24420. <![CDATA[Gets the current raw key
  24421. @return DataOutputBuffer
  24422. @throws IOException]]>
  24423. </doc>
  24424. </method>
  24425. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  24426. abstract="true" native="false" synchronized="false"
  24427. static="false" final="false" visibility="public"
  24428. deprecated="not deprecated">
  24429. <exception name="IOException" type="java.io.IOException"/>
  24430. <doc>
  24431. <![CDATA[Gets the current raw value
  24432. @return ValueBytes
  24433. @throws IOException]]>
  24434. </doc>
  24435. </method>
  24436. <method name="next" return="boolean"
  24437. abstract="true" native="false" synchronized="false"
  24438. static="false" final="false" visibility="public"
  24439. deprecated="not deprecated">
  24440. <exception name="IOException" type="java.io.IOException"/>
  24441. <doc>
  24442. <![CDATA[Sets up the current key and value (for getKey and getValue)
  24443. @return true if there exists a key/value, false otherwise
  24444. @throws IOException]]>
  24445. </doc>
  24446. </method>
  24447. <method name="close"
  24448. abstract="true" native="false" synchronized="false"
  24449. static="false" final="false" visibility="public"
  24450. deprecated="not deprecated">
  24451. <exception name="IOException" type="java.io.IOException"/>
  24452. <doc>
  24453. <![CDATA[closes the iterator so that the underlying streams can be closed
  24454. @throws IOException]]>
  24455. </doc>
  24456. </method>
  24457. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  24458. abstract="true" native="false" synchronized="false"
  24459. static="false" final="false" visibility="public"
  24460. deprecated="not deprecated">
  24461. <doc>
  24462. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  24463. indicating the bytes processed by the iterator so far]]>
  24464. </doc>
  24465. </method>
  24466. <doc>
  24467. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  24468. </doc>
  24469. </interface>
  24470. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  24471. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  24472. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  24473. abstract="false"
  24474. static="false" final="false" visibility="public"
  24475. deprecated="not deprecated">
  24476. <implements name="java.lang.Comparable"/>
  24477. <constructor name="SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  24478. static="false" final="false" visibility="public"
  24479. deprecated="not deprecated">
  24480. <doc>
  24481. <![CDATA[Constructs a segment
  24482. @param segmentOffset the offset of the segment in the file
  24483. @param segmentLength the length of the segment
  24484. @param segmentPathName the path name of the file containing the segment]]>
  24485. </doc>
  24486. </constructor>
  24487. <method name="doSync"
  24488. abstract="false" native="false" synchronized="false"
  24489. static="false" final="false" visibility="public"
  24490. deprecated="not deprecated">
  24491. <doc>
  24492. <![CDATA[Do the sync checks]]>
  24493. </doc>
  24494. </method>
  24495. <method name="preserveInput"
  24496. abstract="false" native="false" synchronized="false"
  24497. static="false" final="false" visibility="public"
  24498. deprecated="not deprecated">
  24499. <param name="preserve" type="boolean"/>
  24500. <doc>
  24501. <![CDATA[Whether to delete the files when no longer needed]]>
  24502. </doc>
  24503. </method>
  24504. <method name="shouldPreserveInput" return="boolean"
  24505. abstract="false" native="false" synchronized="false"
  24506. static="false" final="false" visibility="public"
  24507. deprecated="not deprecated">
  24508. </method>
  24509. <method name="compareTo" return="int"
  24510. abstract="false" native="false" synchronized="false"
  24511. static="false" final="false" visibility="public"
  24512. deprecated="not deprecated">
  24513. <param name="o" type="java.lang.Object"/>
  24514. </method>
  24515. <method name="equals" return="boolean"
  24516. abstract="false" native="false" synchronized="false"
  24517. static="false" final="false" visibility="public"
  24518. deprecated="not deprecated">
  24519. <param name="o" type="java.lang.Object"/>
  24520. </method>
  24521. <method name="hashCode" return="int"
  24522. abstract="false" native="false" synchronized="false"
  24523. static="false" final="false" visibility="public"
  24524. deprecated="not deprecated">
  24525. </method>
  24526. <method name="nextRawKey" return="boolean"
  24527. abstract="false" native="false" synchronized="false"
  24528. static="false" final="false" visibility="public"
  24529. deprecated="not deprecated">
  24530. <exception name="IOException" type="java.io.IOException"/>
  24531. <doc>
  24532. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  24533. @return true if there is a key returned; false, otherwise
  24534. @throws IOException]]>
  24535. </doc>
  24536. </method>
  24537. <method name="nextRawValue" return="int"
  24538. abstract="false" native="false" synchronized="false"
  24539. static="false" final="false" visibility="public"
  24540. deprecated="not deprecated">
  24541. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  24542. <exception name="IOException" type="java.io.IOException"/>
  24543. <doc>
  24544. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  24545. read earlier
  24546. @param rawValue
  24547. @return the length of the value
  24548. @throws IOException]]>
  24549. </doc>
  24550. </method>
  24551. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  24552. abstract="false" native="false" synchronized="false"
  24553. static="false" final="false" visibility="public"
  24554. deprecated="not deprecated">
  24555. <doc>
  24556. <![CDATA[Returns the stored rawKey]]>
  24557. </doc>
  24558. </method>
  24559. <method name="cleanup"
  24560. abstract="false" native="false" synchronized="false"
  24561. static="false" final="false" visibility="public"
  24562. deprecated="not deprecated">
  24563. <exception name="IOException" type="java.io.IOException"/>
  24564. <doc>
  24565. <![CDATA[The default cleanup. Subclasses can override this with a custom
  24566. cleanup]]>
  24567. </doc>
  24568. </method>
  24569. <doc>
  24570. <![CDATA[This class defines a merge segment. This class can be subclassed to
  24571. provide a customized cleanup method implementation. In this
  24572. implementation, cleanup closes the file handle and deletes the file]]>
  24573. </doc>
  24574. </class>
  24575. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  24576. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  24577. <interface name="SequenceFile.ValueBytes" abstract="true"
  24578. static="true" final="false" visibility="public"
  24579. deprecated="not deprecated">
  24580. <method name="writeUncompressedBytes"
  24581. abstract="true" native="false" synchronized="false"
  24582. static="false" final="false" visibility="public"
  24583. deprecated="not deprecated">
  24584. <param name="outStream" type="java.io.DataOutputStream"/>
  24585. <exception name="IOException" type="java.io.IOException"/>
  24586. <doc>
  24587. <![CDATA[Writes the uncompressed bytes to the outStream.
  24588. @param outStream : Stream to write uncompressed bytes into.
  24589. @throws IOException]]>
  24590. </doc>
  24591. </method>
  24592. <method name="writeCompressedBytes"
  24593. abstract="true" native="false" synchronized="false"
  24594. static="false" final="false" visibility="public"
  24595. deprecated="not deprecated">
  24596. <param name="outStream" type="java.io.DataOutputStream"/>
  24597. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  24598. <exception name="IOException" type="java.io.IOException"/>
  24599. <doc>
  24600. <![CDATA[Write compressed bytes to outStream.
  24601. Note: that it will NOT compress the bytes if they are not compressed.
  24602. @param outStream : Stream to write compressed bytes into.]]>
  24603. </doc>
  24604. </method>
  24605. <method name="getSize" return="int"
  24606. abstract="true" native="false" synchronized="false"
  24607. static="false" final="false" visibility="public"
  24608. deprecated="not deprecated">
  24609. <doc>
  24610. <![CDATA[Size of stored data.]]>
  24611. </doc>
  24612. </method>
  24613. <doc>
  24614. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  24615. </doc>
  24616. </interface>
  24617. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  24618. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  24619. <class name="SequenceFile.Writer" extends="java.lang.Object"
  24620. abstract="false"
  24621. static="true" final="false" visibility="public"
  24622. deprecated="not deprecated">
  24623. <implements name="java.io.Closeable"/>
  24624. <implements name="org.apache.hadoop.fs.Syncable"/>
  24625. <constructor name="Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class"
  24626. static="false" final="false" visibility="public"
  24627. deprecated="Use
  24628. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  24629. instead.">
  24630. <exception name="IOException" type="java.io.IOException"/>
  24631. <doc>
  24632. <![CDATA[Create the named file.
  24633. @deprecated Use
  24634. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  24635. instead.]]>
  24636. </doc>
  24637. </constructor>
  24638. <constructor name="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"
  24639. static="false" final="false" visibility="public"
  24640. deprecated="Use
  24641. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  24642. instead.">
  24643. <exception name="IOException" type="java.io.IOException"/>
  24644. <doc>
  24645. <![CDATA[Create the named file with write-progress reporter.
  24646. @deprecated Use
  24647. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  24648. instead.]]>
  24649. </doc>
  24650. </constructor>
  24651. <constructor name="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"
  24652. static="false" final="false" visibility="public"
  24653. deprecated="Use
  24654. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  24655. instead.">
  24656. <exception name="IOException" type="java.io.IOException"/>
  24657. <doc>
  24658. <![CDATA[Create the named file with write-progress reporter.
  24659. @deprecated Use
  24660. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  24661. instead.]]>
  24662. </doc>
  24663. </constructor>
  24664. <method name="file" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24665. abstract="false" native="false" synchronized="false"
  24666. static="true" final="false" visibility="public"
  24667. deprecated="not deprecated">
  24668. <param name="value" type="org.apache.hadoop.fs.Path"/>
  24669. </method>
  24670. <method name="bufferSize" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24671. abstract="false" native="false" synchronized="false"
  24672. static="true" final="false" visibility="public"
  24673. deprecated="not deprecated">
  24674. <param name="value" type="int"/>
  24675. </method>
  24676. <method name="stream" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24677. abstract="false" native="false" synchronized="false"
  24678. static="true" final="false" visibility="public"
  24679. deprecated="not deprecated">
  24680. <param name="value" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  24681. </method>
  24682. <method name="replication" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24683. abstract="false" native="false" synchronized="false"
  24684. static="true" final="false" visibility="public"
  24685. deprecated="not deprecated">
  24686. <param name="value" type="short"/>
  24687. </method>
  24688. <method name="appendIfExists" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24689. abstract="false" native="false" synchronized="false"
  24690. static="true" final="false" visibility="public"
  24691. deprecated="not deprecated">
  24692. <param name="value" type="boolean"/>
  24693. </method>
  24694. <method name="blockSize" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24695. abstract="false" native="false" synchronized="false"
  24696. static="true" final="false" visibility="public"
  24697. deprecated="not deprecated">
  24698. <param name="value" type="long"/>
  24699. </method>
  24700. <method name="progressable" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24701. abstract="false" native="false" synchronized="false"
  24702. static="true" final="false" visibility="public"
  24703. deprecated="not deprecated">
  24704. <param name="value" type="org.apache.hadoop.util.Progressable"/>
  24705. </method>
  24706. <method name="keyClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24707. abstract="false" native="false" synchronized="false"
  24708. static="true" final="false" visibility="public"
  24709. deprecated="not deprecated">
  24710. <param name="value" type="java.lang.Class"/>
  24711. </method>
  24712. <method name="valueClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24713. abstract="false" native="false" synchronized="false"
  24714. static="true" final="false" visibility="public"
  24715. deprecated="not deprecated">
  24716. <param name="value" type="java.lang.Class"/>
  24717. </method>
  24718. <method name="metadata" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24719. abstract="false" native="false" synchronized="false"
  24720. static="true" final="false" visibility="public"
  24721. deprecated="not deprecated">
  24722. <param name="value" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  24723. </method>
  24724. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24725. abstract="false" native="false" synchronized="false"
  24726. static="true" final="false" visibility="public"
  24727. deprecated="not deprecated">
  24728. <param name="value" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  24729. </method>
  24730. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  24731. abstract="false" native="false" synchronized="false"
  24732. static="true" final="false" visibility="public"
  24733. deprecated="not deprecated">
  24734. <param name="value" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  24735. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  24736. </method>
  24737. <method name="getKeyClass" return="java.lang.Class"
  24738. abstract="false" native="false" synchronized="false"
  24739. static="false" final="false" visibility="public"
  24740. deprecated="not deprecated">
  24741. <doc>
  24742. <![CDATA[Returns the class of keys in this file.]]>
  24743. </doc>
  24744. </method>
  24745. <method name="getValueClass" return="java.lang.Class"
  24746. abstract="false" native="false" synchronized="false"
  24747. static="false" final="false" visibility="public"
  24748. deprecated="not deprecated">
  24749. <doc>
  24750. <![CDATA[Returns the class of values in this file.]]>
  24751. </doc>
  24752. </method>
  24753. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  24754. abstract="false" native="false" synchronized="false"
  24755. static="false" final="false" visibility="public"
  24756. deprecated="not deprecated">
  24757. <doc>
  24758. <![CDATA[Returns the compression codec of data in this file.]]>
  24759. </doc>
  24760. </method>
  24761. <method name="sync"
  24762. abstract="false" native="false" synchronized="false"
  24763. static="false" final="false" visibility="public"
  24764. deprecated="not deprecated">
  24765. <exception name="IOException" type="java.io.IOException"/>
  24766. <doc>
  24767. <![CDATA[create a sync point]]>
  24768. </doc>
  24769. </method>
  24770. <method name="syncFs"
  24771. abstract="false" native="false" synchronized="false"
  24772. static="false" final="false" visibility="public"
  24773. deprecated="Use {@link #hsync()} or {@link #hflush()} instead">
  24774. <exception name="IOException" type="java.io.IOException"/>
  24775. <doc>
  24776. <![CDATA[flush all currently written data to the file system
  24777. @deprecated Use {@link #hsync()} or {@link #hflush()} instead]]>
  24778. </doc>
  24779. </method>
  24780. <method name="hsync"
  24781. abstract="false" native="false" synchronized="false"
  24782. static="false" final="false" visibility="public"
  24783. deprecated="not deprecated">
  24784. <exception name="IOException" type="java.io.IOException"/>
  24785. </method>
  24786. <method name="hflush"
  24787. abstract="false" native="false" synchronized="false"
  24788. static="false" final="false" visibility="public"
  24789. deprecated="not deprecated">
  24790. <exception name="IOException" type="java.io.IOException"/>
  24791. </method>
  24792. <method name="close"
  24793. abstract="false" native="false" synchronized="true"
  24794. static="false" final="false" visibility="public"
  24795. deprecated="not deprecated">
  24796. <exception name="IOException" type="java.io.IOException"/>
  24797. <doc>
  24798. <![CDATA[Close the file.]]>
  24799. </doc>
  24800. </method>
  24801. <method name="append"
  24802. abstract="false" native="false" synchronized="false"
  24803. static="false" final="false" visibility="public"
  24804. deprecated="not deprecated">
  24805. <param name="key" type="org.apache.hadoop.io.Writable"/>
  24806. <param name="val" type="org.apache.hadoop.io.Writable"/>
  24807. <exception name="IOException" type="java.io.IOException"/>
  24808. <doc>
  24809. <![CDATA[Append a key/value pair.]]>
  24810. </doc>
  24811. </method>
  24812. <method name="append"
  24813. abstract="false" native="false" synchronized="true"
  24814. static="false" final="false" visibility="public"
  24815. deprecated="not deprecated">
  24816. <param name="key" type="java.lang.Object"/>
  24817. <param name="val" type="java.lang.Object"/>
  24818. <exception name="IOException" type="java.io.IOException"/>
  24819. <doc>
  24820. <![CDATA[Append a key/value pair.]]>
  24821. </doc>
  24822. </method>
  24823. <method name="appendRaw"
  24824. abstract="false" native="false" synchronized="true"
  24825. static="false" final="false" visibility="public"
  24826. deprecated="not deprecated">
  24827. <param name="keyData" type="byte[]"/>
  24828. <param name="keyOffset" type="int"/>
  24829. <param name="keyLength" type="int"/>
  24830. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  24831. <exception name="IOException" type="java.io.IOException"/>
  24832. </method>
  24833. <method name="getLength" return="long"
  24834. abstract="false" native="false" synchronized="true"
  24835. static="false" final="false" visibility="public"
  24836. deprecated="not deprecated">
  24837. <exception name="IOException" type="java.io.IOException"/>
  24838. <doc>
  24839. <![CDATA[Returns the current length of the output file.
  24840. <p>This always returns a synchronized position. In other words,
  24841. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  24842. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  24843. the key may be earlier in the file than key last written when this
  24844. method was called (e.g., with block-compression, it may be the first key
  24845. in the block that was being written when this method was called).]]>
  24846. </doc>
  24847. </method>
  24848. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  24849. transient="false" volatile="false"
  24850. static="false" final="false" visibility="protected"
  24851. deprecated="not deprecated">
  24852. </field>
  24853. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  24854. transient="false" volatile="false"
  24855. static="false" final="false" visibility="protected"
  24856. deprecated="not deprecated">
  24857. </field>
  24858. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  24859. transient="false" volatile="false"
  24860. static="false" final="false" visibility="protected"
  24861. deprecated="not deprecated">
  24862. </field>
  24863. <doc>
  24864. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  24865. </doc>
  24866. </class>
  24867. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  24868. <!-- start interface org.apache.hadoop.io.SequenceFile.Writer.Option -->
  24869. <interface name="SequenceFile.Writer.Option" abstract="true"
  24870. static="true" final="false" visibility="public"
  24871. deprecated="not deprecated">
  24872. </interface>
  24873. <!-- end interface org.apache.hadoop.io.SequenceFile.Writer.Option -->
  24874. <!-- start class org.apache.hadoop.io.SetFile -->
  24875. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  24876. abstract="false"
  24877. static="false" final="false" visibility="public"
  24878. deprecated="not deprecated">
  24879. <constructor name="SetFile"
  24880. static="false" final="false" visibility="protected"
  24881. deprecated="not deprecated">
  24882. </constructor>
  24883. <doc>
  24884. <![CDATA[A file-based set of keys.]]>
  24885. </doc>
  24886. </class>
  24887. <!-- end class org.apache.hadoop.io.SetFile -->
  24888. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  24889. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  24890. abstract="false"
  24891. static="true" final="false" visibility="public"
  24892. deprecated="not deprecated">
  24893. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  24894. static="false" final="false" visibility="public"
  24895. deprecated="not deprecated">
  24896. <exception name="IOException" type="java.io.IOException"/>
  24897. <doc>
  24898. <![CDATA[Construct a set reader for the named set.]]>
  24899. </doc>
  24900. </constructor>
  24901. <constructor name="Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  24902. static="false" final="false" visibility="public"
  24903. deprecated="not deprecated">
  24904. <exception name="IOException" type="java.io.IOException"/>
  24905. <doc>
  24906. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  24907. </doc>
  24908. </constructor>
  24909. <method name="seek" return="boolean"
  24910. abstract="false" native="false" synchronized="false"
  24911. static="false" final="false" visibility="public"
  24912. deprecated="not deprecated">
  24913. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  24914. <exception name="IOException" type="java.io.IOException"/>
  24915. </method>
  24916. <method name="next" return="boolean"
  24917. abstract="false" native="false" synchronized="false"
  24918. static="false" final="false" visibility="public"
  24919. deprecated="not deprecated">
  24920. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  24921. <exception name="IOException" type="java.io.IOException"/>
  24922. <doc>
  24923. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  24924. true if such a key exists and false when at the end of the set.]]>
  24925. </doc>
  24926. </method>
  24927. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  24928. abstract="false" native="false" synchronized="false"
  24929. static="false" final="false" visibility="public"
  24930. deprecated="not deprecated">
  24931. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  24932. <exception name="IOException" type="java.io.IOException"/>
  24933. <doc>
  24934. <![CDATA[Read the matching key from a set into <code>key</code>.
  24935. Returns <code>key</code>, or null if no match exists.]]>
  24936. </doc>
  24937. </method>
  24938. <doc>
  24939. <![CDATA[Provide access to an existing set file.]]>
  24940. </doc>
  24941. </class>
  24942. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  24943. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  24944. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  24945. abstract="false"
  24946. static="true" final="false" visibility="public"
  24947. deprecated="not deprecated">
  24948. <constructor name="Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  24949. static="false" final="false" visibility="public"
  24950. deprecated="pass a Configuration too">
  24951. <exception name="IOException" type="java.io.IOException"/>
  24952. <doc>
  24953. <![CDATA[Create the named set for keys of the named class.
  24954. @deprecated pass a Configuration too]]>
  24955. </doc>
  24956. </constructor>
  24957. <constructor name="Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  24958. static="false" final="false" visibility="public"
  24959. deprecated="not deprecated">
  24960. <exception name="IOException" type="java.io.IOException"/>
  24961. <doc>
  24962. <![CDATA[Create a set naming the element class and compression type.]]>
  24963. </doc>
  24964. </constructor>
  24965. <constructor name="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"
  24966. static="false" final="false" visibility="public"
  24967. deprecated="not deprecated">
  24968. <exception name="IOException" type="java.io.IOException"/>
  24969. <doc>
  24970. <![CDATA[Create a set naming the element comparator and compression type.]]>
  24971. </doc>
  24972. </constructor>
  24973. <method name="append"
  24974. abstract="false" native="false" synchronized="false"
  24975. static="false" final="false" visibility="public"
  24976. deprecated="not deprecated">
  24977. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  24978. <exception name="IOException" type="java.io.IOException"/>
  24979. <doc>
  24980. <![CDATA[Append a key to a set. The key must be strictly greater than the
  24981. previous key added to the set.]]>
  24982. </doc>
  24983. </method>
  24984. <doc>
  24985. <![CDATA[Write a new set file.]]>
  24986. </doc>
  24987. </class>
  24988. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  24989. <!-- start class org.apache.hadoop.io.ShortWritable -->
  24990. <class name="ShortWritable" extends="java.lang.Object"
  24991. abstract="false"
  24992. static="false" final="false" visibility="public"
  24993. deprecated="not deprecated">
  24994. <implements name="org.apache.hadoop.io.WritableComparable"/>
  24995. <constructor name="ShortWritable"
  24996. static="false" final="false" visibility="public"
  24997. deprecated="not deprecated">
  24998. </constructor>
  24999. <constructor name="ShortWritable" type="short"
  25000. static="false" final="false" visibility="public"
  25001. deprecated="not deprecated">
  25002. </constructor>
  25003. <method name="set"
  25004. abstract="false" native="false" synchronized="false"
  25005. static="false" final="false" visibility="public"
  25006. deprecated="not deprecated">
  25007. <param name="value" type="short"/>
  25008. <doc>
  25009. <![CDATA[Set the value of this ShortWritable.]]>
  25010. </doc>
  25011. </method>
  25012. <method name="get" return="short"
  25013. abstract="false" native="false" synchronized="false"
  25014. static="false" final="false" visibility="public"
  25015. deprecated="not deprecated">
  25016. <doc>
  25017. <![CDATA[Return the value of this ShortWritable.]]>
  25018. </doc>
  25019. </method>
  25020. <method name="readFields"
  25021. abstract="false" native="false" synchronized="false"
  25022. static="false" final="false" visibility="public"
  25023. deprecated="not deprecated">
  25024. <param name="in" type="java.io.DataInput"/>
  25025. <exception name="IOException" type="java.io.IOException"/>
  25026. <doc>
  25027. <![CDATA[read the short value]]>
  25028. </doc>
  25029. </method>
  25030. <method name="write"
  25031. abstract="false" native="false" synchronized="false"
  25032. static="false" final="false" visibility="public"
  25033. deprecated="not deprecated">
  25034. <param name="out" type="java.io.DataOutput"/>
  25035. <exception name="IOException" type="java.io.IOException"/>
  25036. <doc>
  25037. <![CDATA[write short value]]>
  25038. </doc>
  25039. </method>
  25040. <method name="equals" return="boolean"
  25041. abstract="false" native="false" synchronized="false"
  25042. static="false" final="false" visibility="public"
  25043. deprecated="not deprecated">
  25044. <param name="o" type="java.lang.Object"/>
  25045. <doc>
  25046. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  25047. </doc>
  25048. </method>
  25049. <method name="hashCode" return="int"
  25050. abstract="false" native="false" synchronized="false"
  25051. static="false" final="false" visibility="public"
  25052. deprecated="not deprecated">
  25053. <doc>
  25054. <![CDATA[hash code]]>
  25055. </doc>
  25056. </method>
  25057. <method name="compareTo" return="int"
  25058. abstract="false" native="false" synchronized="false"
  25059. static="false" final="false" visibility="public"
  25060. deprecated="not deprecated">
  25061. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  25062. <doc>
  25063. <![CDATA[Compares two ShortWritable.]]>
  25064. </doc>
  25065. </method>
  25066. <method name="toString" return="java.lang.String"
  25067. abstract="false" native="false" synchronized="false"
  25068. static="false" final="false" visibility="public"
  25069. deprecated="not deprecated">
  25070. <doc>
  25071. <![CDATA[Short values in string format]]>
  25072. </doc>
  25073. </method>
  25074. <doc>
  25075. <![CDATA[A WritableComparable for shorts.]]>
  25076. </doc>
  25077. </class>
  25078. <!-- end class org.apache.hadoop.io.ShortWritable -->
  25079. <!-- start class org.apache.hadoop.io.ShortWritable.Comparator -->
  25080. <class name="ShortWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  25081. abstract="false"
  25082. static="true" final="false" visibility="public"
  25083. deprecated="not deprecated">
  25084. <constructor name="Comparator"
  25085. static="false" final="false" visibility="public"
  25086. deprecated="not deprecated">
  25087. </constructor>
  25088. <method name="compare" return="int"
  25089. abstract="false" native="false" synchronized="false"
  25090. static="false" final="false" visibility="public"
  25091. deprecated="not deprecated">
  25092. <param name="b1" type="byte[]"/>
  25093. <param name="s1" type="int"/>
  25094. <param name="l1" type="int"/>
  25095. <param name="b2" type="byte[]"/>
  25096. <param name="s2" type="int"/>
  25097. <param name="l2" type="int"/>
  25098. </method>
  25099. <doc>
  25100. <![CDATA[A Comparator optimized for ShortWritable.]]>
  25101. </doc>
  25102. </class>
  25103. <!-- end class org.apache.hadoop.io.ShortWritable.Comparator -->
  25104. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  25105. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  25106. abstract="false"
  25107. static="false" final="false" visibility="public"
  25108. deprecated="not deprecated">
  25109. <implements name="java.util.SortedMap"/>
  25110. <constructor name="SortedMapWritable"
  25111. static="false" final="false" visibility="public"
  25112. deprecated="not deprecated">
  25113. <doc>
  25114. <![CDATA[default constructor.]]>
  25115. </doc>
  25116. </constructor>
  25117. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  25118. static="false" final="false" visibility="public"
  25119. deprecated="not deprecated">
  25120. <doc>
  25121. <![CDATA[Copy constructor.
  25122. @param other the map to copy from]]>
  25123. </doc>
  25124. </constructor>
  25125. <method name="comparator" return="java.util.Comparator"
  25126. abstract="false" native="false" synchronized="false"
  25127. static="false" final="false" visibility="public"
  25128. deprecated="not deprecated">
  25129. </method>
  25130. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  25131. abstract="false" native="false" synchronized="false"
  25132. static="false" final="false" visibility="public"
  25133. deprecated="not deprecated">
  25134. </method>
  25135. <method name="headMap" return="java.util.SortedMap"
  25136. abstract="false" native="false" synchronized="false"
  25137. static="false" final="false" visibility="public"
  25138. deprecated="not deprecated">
  25139. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  25140. </method>
  25141. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  25142. abstract="false" native="false" synchronized="false"
  25143. static="false" final="false" visibility="public"
  25144. deprecated="not deprecated">
  25145. </method>
  25146. <method name="subMap" return="java.util.SortedMap"
  25147. abstract="false" native="false" synchronized="false"
  25148. static="false" final="false" visibility="public"
  25149. deprecated="not deprecated">
  25150. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  25151. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  25152. </method>
  25153. <method name="tailMap" return="java.util.SortedMap"
  25154. abstract="false" native="false" synchronized="false"
  25155. static="false" final="false" visibility="public"
  25156. deprecated="not deprecated">
  25157. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  25158. </method>
  25159. <method name="clear"
  25160. abstract="false" native="false" synchronized="false"
  25161. static="false" final="false" visibility="public"
  25162. deprecated="not deprecated">
  25163. </method>
  25164. <method name="containsKey" return="boolean"
  25165. abstract="false" native="false" synchronized="false"
  25166. static="false" final="false" visibility="public"
  25167. deprecated="not deprecated">
  25168. <param name="key" type="java.lang.Object"/>
  25169. </method>
  25170. <method name="containsValue" return="boolean"
  25171. abstract="false" native="false" synchronized="false"
  25172. static="false" final="false" visibility="public"
  25173. deprecated="not deprecated">
  25174. <param name="value" type="java.lang.Object"/>
  25175. </method>
  25176. <method name="entrySet" return="java.util.Set"
  25177. abstract="false" native="false" synchronized="false"
  25178. static="false" final="false" visibility="public"
  25179. deprecated="not deprecated">
  25180. </method>
  25181. <method name="get" return="org.apache.hadoop.io.Writable"
  25182. abstract="false" native="false" synchronized="false"
  25183. static="false" final="false" visibility="public"
  25184. deprecated="not deprecated">
  25185. <param name="key" type="java.lang.Object"/>
  25186. </method>
  25187. <method name="isEmpty" return="boolean"
  25188. abstract="false" native="false" synchronized="false"
  25189. static="false" final="false" visibility="public"
  25190. deprecated="not deprecated">
  25191. </method>
  25192. <method name="keySet" return="java.util.Set"
  25193. abstract="false" native="false" synchronized="false"
  25194. static="false" final="false" visibility="public"
  25195. deprecated="not deprecated">
  25196. </method>
  25197. <method name="put" return="org.apache.hadoop.io.Writable"
  25198. abstract="false" native="false" synchronized="false"
  25199. static="false" final="false" visibility="public"
  25200. deprecated="not deprecated">
  25201. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  25202. <param name="value" type="org.apache.hadoop.io.Writable"/>
  25203. </method>
  25204. <method name="putAll"
  25205. abstract="false" native="false" synchronized="false"
  25206. static="false" final="false" visibility="public"
  25207. deprecated="not deprecated">
  25208. <param name="t" type="java.util.Map"/>
  25209. </method>
  25210. <method name="remove" return="org.apache.hadoop.io.Writable"
  25211. abstract="false" native="false" synchronized="false"
  25212. static="false" final="false" visibility="public"
  25213. deprecated="not deprecated">
  25214. <param name="key" type="java.lang.Object"/>
  25215. </method>
  25216. <method name="size" return="int"
  25217. abstract="false" native="false" synchronized="false"
  25218. static="false" final="false" visibility="public"
  25219. deprecated="not deprecated">
  25220. </method>
  25221. <method name="values" return="java.util.Collection"
  25222. abstract="false" native="false" synchronized="false"
  25223. static="false" final="false" visibility="public"
  25224. deprecated="not deprecated">
  25225. </method>
  25226. <method name="readFields"
  25227. abstract="false" native="false" synchronized="false"
  25228. static="false" final="false" visibility="public"
  25229. deprecated="not deprecated">
  25230. <param name="in" type="java.io.DataInput"/>
  25231. <exception name="IOException" type="java.io.IOException"/>
  25232. </method>
  25233. <method name="write"
  25234. abstract="false" native="false" synchronized="false"
  25235. static="false" final="false" visibility="public"
  25236. deprecated="not deprecated">
  25237. <param name="out" type="java.io.DataOutput"/>
  25238. <exception name="IOException" type="java.io.IOException"/>
  25239. </method>
  25240. <method name="equals" return="boolean"
  25241. abstract="false" native="false" synchronized="false"
  25242. static="false" final="false" visibility="public"
  25243. deprecated="not deprecated">
  25244. <param name="obj" type="java.lang.Object"/>
  25245. </method>
  25246. <method name="hashCode" return="int"
  25247. abstract="false" native="false" synchronized="false"
  25248. static="false" final="false" visibility="public"
  25249. deprecated="not deprecated">
  25250. </method>
  25251. <doc>
  25252. <![CDATA[A Writable SortedMap.]]>
  25253. </doc>
  25254. </class>
  25255. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  25256. <!-- start interface org.apache.hadoop.io.Stringifier -->
  25257. <interface name="Stringifier" abstract="true"
  25258. static="false" final="false" visibility="public"
  25259. deprecated="not deprecated">
  25260. <implements name="java.io.Closeable"/>
  25261. <method name="toString" return="java.lang.String"
  25262. abstract="true" native="false" synchronized="false"
  25263. static="false" final="false" visibility="public"
  25264. deprecated="not deprecated">
  25265. <param name="obj" type="T"/>
  25266. <exception name="IOException" type="java.io.IOException"/>
  25267. <doc>
  25268. <![CDATA[Converts the object to a string representation
  25269. @param obj the object to convert
  25270. @return the string representation of the object
  25271. @throws IOException if the object cannot be converted]]>
  25272. </doc>
  25273. </method>
  25274. <method name="fromString" return="T"
  25275. abstract="true" native="false" synchronized="false"
  25276. static="false" final="false" visibility="public"
  25277. deprecated="not deprecated">
  25278. <param name="str" type="java.lang.String"/>
  25279. <exception name="IOException" type="java.io.IOException"/>
  25280. <doc>
  25281. <![CDATA[Restores the object from its string representation.
  25282. @param str the string representation of the object
  25283. @return restored object
  25284. @throws IOException if the object cannot be restored]]>
  25285. </doc>
  25286. </method>
  25287. <method name="close"
  25288. abstract="true" native="false" synchronized="false"
  25289. static="false" final="false" visibility="public"
  25290. deprecated="not deprecated">
  25291. <exception name="IOException" type="java.io.IOException"/>
  25292. <doc>
  25293. <![CDATA[Closes this object.
  25294. @throws IOException if an I/O error occurs]]>
  25295. </doc>
  25296. </method>
  25297. <doc>
  25298. <![CDATA[Stringifier interface offers two methods to convert an object
  25299. to a string representation and restore the object given its
  25300. string representation.
  25301. @param <T> the class of the objects to stringify]]>
  25302. </doc>
  25303. </interface>
  25304. <!-- end interface org.apache.hadoop.io.Stringifier -->
  25305. <!-- start class org.apache.hadoop.io.Text -->
  25306. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  25307. abstract="false"
  25308. static="false" final="false" visibility="public"
  25309. deprecated="not deprecated">
  25310. <implements name="org.apache.hadoop.io.WritableComparable"/>
  25311. <constructor name="Text"
  25312. static="false" final="false" visibility="public"
  25313. deprecated="not deprecated">
  25314. </constructor>
  25315. <constructor name="Text" type="java.lang.String"
  25316. static="false" final="false" visibility="public"
  25317. deprecated="not deprecated">
  25318. <doc>
  25319. <![CDATA[Construct from a string.]]>
  25320. </doc>
  25321. </constructor>
  25322. <constructor name="Text" type="org.apache.hadoop.io.Text"
  25323. static="false" final="false" visibility="public"
  25324. deprecated="not deprecated">
  25325. <doc>
  25326. <![CDATA[Construct from another text.]]>
  25327. </doc>
  25328. </constructor>
  25329. <constructor name="Text" type="byte[]"
  25330. static="false" final="false" visibility="public"
  25331. deprecated="not deprecated">
  25332. <doc>
  25333. <![CDATA[Construct from a byte array.]]>
  25334. </doc>
  25335. </constructor>
  25336. <method name="copyBytes" return="byte[]"
  25337. abstract="false" native="false" synchronized="false"
  25338. static="false" final="false" visibility="public"
  25339. deprecated="not deprecated">
  25340. <doc>
  25341. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  25342. See {@link #getBytes()} for faster access to the underlying array.]]>
  25343. </doc>
  25344. </method>
  25345. <method name="getBytes" return="byte[]"
  25346. abstract="false" native="false" synchronized="false"
  25347. static="false" final="false" visibility="public"
  25348. deprecated="not deprecated">
  25349. <doc>
  25350. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  25351. valid. Please use {@link #copyBytes()} if you
  25352. need the returned array to be precisely the length of the data.]]>
  25353. </doc>
  25354. </method>
  25355. <method name="getLength" return="int"
  25356. abstract="false" native="false" synchronized="false"
  25357. static="false" final="false" visibility="public"
  25358. deprecated="not deprecated">
  25359. <doc>
  25360. <![CDATA[Returns the number of bytes in the byte array]]>
  25361. </doc>
  25362. </method>
  25363. <method name="charAt" return="int"
  25364. abstract="false" native="false" synchronized="false"
  25365. static="false" final="false" visibility="public"
  25366. deprecated="not deprecated">
  25367. <param name="position" type="int"/>
  25368. <doc>
  25369. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  25370. for the character at <code>position</code>. Note that this
  25371. method avoids using the converter or doing String instantiation
  25372. @return the Unicode scalar value at position or -1
  25373. if the position is invalid or points to a
  25374. trailing byte]]>
  25375. </doc>
  25376. </method>
  25377. <method name="find" return="int"
  25378. abstract="false" native="false" synchronized="false"
  25379. static="false" final="false" visibility="public"
  25380. deprecated="not deprecated">
  25381. <param name="what" type="java.lang.String"/>
  25382. </method>
  25383. <method name="find" return="int"
  25384. abstract="false" native="false" synchronized="false"
  25385. static="false" final="false" visibility="public"
  25386. deprecated="not deprecated">
  25387. <param name="what" type="java.lang.String"/>
  25388. <param name="start" type="int"/>
  25389. <doc>
  25390. <![CDATA[Finds any occurence of <code>what</code> in the backing
  25391. buffer, starting as position <code>start</code>. The starting
  25392. position is measured in bytes and the return value is in
  25393. terms of byte position in the buffer. The backing buffer is
  25394. not converted to a string for this operation.
  25395. @return byte position of the first occurence of the search
  25396. string in the UTF-8 buffer or -1 if not found]]>
  25397. </doc>
  25398. </method>
  25399. <method name="set"
  25400. abstract="false" native="false" synchronized="false"
  25401. static="false" final="false" visibility="public"
  25402. deprecated="not deprecated">
  25403. <param name="string" type="java.lang.String"/>
  25404. <doc>
  25405. <![CDATA[Set to contain the contents of a string.]]>
  25406. </doc>
  25407. </method>
  25408. <method name="set"
  25409. abstract="false" native="false" synchronized="false"
  25410. static="false" final="false" visibility="public"
  25411. deprecated="not deprecated">
  25412. <param name="utf8" type="byte[]"/>
  25413. <doc>
  25414. <![CDATA[Set to a utf8 byte array]]>
  25415. </doc>
  25416. </method>
  25417. <method name="set"
  25418. abstract="false" native="false" synchronized="false"
  25419. static="false" final="false" visibility="public"
  25420. deprecated="not deprecated">
  25421. <param name="other" type="org.apache.hadoop.io.Text"/>
  25422. <doc>
  25423. <![CDATA[copy a text.]]>
  25424. </doc>
  25425. </method>
  25426. <method name="set"
  25427. abstract="false" native="false" synchronized="false"
  25428. static="false" final="false" visibility="public"
  25429. deprecated="not deprecated">
  25430. <param name="utf8" type="byte[]"/>
  25431. <param name="start" type="int"/>
  25432. <param name="len" type="int"/>
  25433. <doc>
  25434. <![CDATA[Set the Text to range of bytes
  25435. @param utf8 the data to copy from
  25436. @param start the first position of the new string
  25437. @param len the number of bytes of the new string]]>
  25438. </doc>
  25439. </method>
  25440. <method name="append"
  25441. abstract="false" native="false" synchronized="false"
  25442. static="false" final="false" visibility="public"
  25443. deprecated="not deprecated">
  25444. <param name="utf8" type="byte[]"/>
  25445. <param name="start" type="int"/>
  25446. <param name="len" type="int"/>
  25447. <doc>
  25448. <![CDATA[Append a range of bytes to the end of the given text
  25449. @param utf8 the data to copy from
  25450. @param start the first position to append from utf8
  25451. @param len the number of bytes to append]]>
  25452. </doc>
  25453. </method>
  25454. <method name="clear"
  25455. abstract="false" native="false" synchronized="false"
  25456. static="false" final="false" visibility="public"
  25457. deprecated="not deprecated">
  25458. <doc>
  25459. <![CDATA[Clear the string to empty.
  25460. <em>Note</em>: For performance reasons, this call does not clear the
  25461. underlying byte array that is retrievable via {@link #getBytes()}.
  25462. In order to free the byte-array memory, call {@link #set(byte[])}
  25463. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  25464. </doc>
  25465. </method>
  25466. <method name="toString" return="java.lang.String"
  25467. abstract="false" native="false" synchronized="false"
  25468. static="false" final="false" visibility="public"
  25469. deprecated="not deprecated">
  25470. <doc>
  25471. <![CDATA[Convert text back to string
  25472. @see java.lang.Object#toString()]]>
  25473. </doc>
  25474. </method>
  25475. <method name="readFields"
  25476. abstract="false" native="false" synchronized="false"
  25477. static="false" final="false" visibility="public"
  25478. deprecated="not deprecated">
  25479. <param name="in" type="java.io.DataInput"/>
  25480. <exception name="IOException" type="java.io.IOException"/>
  25481. <doc>
  25482. <![CDATA[deserialize]]>
  25483. </doc>
  25484. </method>
  25485. <method name="readFields"
  25486. abstract="false" native="false" synchronized="false"
  25487. static="false" final="false" visibility="public"
  25488. deprecated="not deprecated">
  25489. <param name="in" type="java.io.DataInput"/>
  25490. <param name="maxLength" type="int"/>
  25491. <exception name="IOException" type="java.io.IOException"/>
  25492. </method>
  25493. <method name="skip"
  25494. abstract="false" native="false" synchronized="false"
  25495. static="true" final="false" visibility="public"
  25496. deprecated="not deprecated">
  25497. <param name="in" type="java.io.DataInput"/>
  25498. <exception name="IOException" type="java.io.IOException"/>
  25499. <doc>
  25500. <![CDATA[Skips over one Text in the input.]]>
  25501. </doc>
  25502. </method>
  25503. <method name="readWithKnownLength"
  25504. abstract="false" native="false" synchronized="false"
  25505. static="false" final="false" visibility="public"
  25506. deprecated="not deprecated">
  25507. <param name="in" type="java.io.DataInput"/>
  25508. <param name="len" type="int"/>
  25509. <exception name="IOException" type="java.io.IOException"/>
  25510. <doc>
  25511. <![CDATA[Read a Text object whose length is already known.
  25512. This allows creating Text from a stream which uses a different serialization
  25513. format.]]>
  25514. </doc>
  25515. </method>
  25516. <method name="write"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="false" final="false" visibility="public"
  25519. deprecated="not deprecated">
  25520. <param name="out" type="java.io.DataOutput"/>
  25521. <exception name="IOException" type="java.io.IOException"/>
  25522. <doc>
  25523. <![CDATA[serialize
  25524. write this object to out
  25525. length uses zero-compressed encoding
  25526. @see Writable#write(DataOutput)]]>
  25527. </doc>
  25528. </method>
  25529. <method name="write"
  25530. abstract="false" native="false" synchronized="false"
  25531. static="false" final="false" visibility="public"
  25532. deprecated="not deprecated">
  25533. <param name="out" type="java.io.DataOutput"/>
  25534. <param name="maxLength" type="int"/>
  25535. <exception name="IOException" type="java.io.IOException"/>
  25536. </method>
  25537. <method name="equals" return="boolean"
  25538. abstract="false" native="false" synchronized="false"
  25539. static="false" final="false" visibility="public"
  25540. deprecated="not deprecated">
  25541. <param name="o" type="java.lang.Object"/>
  25542. <doc>
  25543. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  25544. </doc>
  25545. </method>
  25546. <method name="hashCode" return="int"
  25547. abstract="false" native="false" synchronized="false"
  25548. static="false" final="false" visibility="public"
  25549. deprecated="not deprecated">
  25550. </method>
  25551. <method name="decode" return="java.lang.String"
  25552. abstract="false" native="false" synchronized="false"
  25553. static="true" final="false" visibility="public"
  25554. deprecated="not deprecated">
  25555. <param name="utf8" type="byte[]"/>
  25556. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  25557. <doc>
  25558. <![CDATA[Converts the provided byte array to a String using the
  25559. UTF-8 encoding. If the input is malformed,
  25560. replace by a default value.]]>
  25561. </doc>
  25562. </method>
  25563. <method name="decode" return="java.lang.String"
  25564. abstract="false" native="false" synchronized="false"
  25565. static="true" final="false" visibility="public"
  25566. deprecated="not deprecated">
  25567. <param name="utf8" type="byte[]"/>
  25568. <param name="start" type="int"/>
  25569. <param name="length" type="int"/>
  25570. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  25571. </method>
  25572. <method name="decode" return="java.lang.String"
  25573. abstract="false" native="false" synchronized="false"
  25574. static="true" final="false" visibility="public"
  25575. deprecated="not deprecated">
  25576. <param name="utf8" type="byte[]"/>
  25577. <param name="start" type="int"/>
  25578. <param name="length" type="int"/>
  25579. <param name="replace" type="boolean"/>
  25580. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  25581. <doc>
  25582. <![CDATA[Converts the provided byte array to a String using the
  25583. UTF-8 encoding. If <code>replace</code> is true, then
  25584. malformed input is replaced with the
  25585. substitution character, which is U+FFFD. Otherwise the
  25586. method throws a MalformedInputException.]]>
  25587. </doc>
  25588. </method>
  25589. <method name="encode" return="java.nio.ByteBuffer"
  25590. abstract="false" native="false" synchronized="false"
  25591. static="true" final="false" visibility="public"
  25592. deprecated="not deprecated">
  25593. <param name="string" type="java.lang.String"/>
  25594. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  25595. <doc>
  25596. <![CDATA[Converts the provided String to bytes using the
  25597. UTF-8 encoding. If the input is malformed,
  25598. invalid chars are replaced by a default value.
  25599. @return ByteBuffer: bytes stores at ByteBuffer.array()
  25600. and length is ByteBuffer.limit()]]>
  25601. </doc>
  25602. </method>
  25603. <method name="encode" return="java.nio.ByteBuffer"
  25604. abstract="false" native="false" synchronized="false"
  25605. static="true" final="false" visibility="public"
  25606. deprecated="not deprecated">
  25607. <param name="string" type="java.lang.String"/>
  25608. <param name="replace" type="boolean"/>
  25609. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  25610. <doc>
  25611. <![CDATA[Converts the provided String to bytes using the
  25612. UTF-8 encoding. If <code>replace</code> is true, then
  25613. malformed input is replaced with the
  25614. substitution character, which is U+FFFD. Otherwise the
  25615. method throws a MalformedInputException.
  25616. @return ByteBuffer: bytes stores at ByteBuffer.array()
  25617. and length is ByteBuffer.limit()]]>
  25618. </doc>
  25619. </method>
  25620. <method name="readString" return="java.lang.String"
  25621. abstract="false" native="false" synchronized="false"
  25622. static="true" final="false" visibility="public"
  25623. deprecated="not deprecated">
  25624. <param name="in" type="java.io.DataInput"/>
  25625. <exception name="IOException" type="java.io.IOException"/>
  25626. <doc>
  25627. <![CDATA[Read a UTF8 encoded string from in]]>
  25628. </doc>
  25629. </method>
  25630. <method name="readString" return="java.lang.String"
  25631. abstract="false" native="false" synchronized="false"
  25632. static="true" final="false" visibility="public"
  25633. deprecated="not deprecated">
  25634. <param name="in" type="java.io.DataInput"/>
  25635. <param name="maxLength" type="int"/>
  25636. <exception name="IOException" type="java.io.IOException"/>
  25637. <doc>
  25638. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  25639. </doc>
  25640. </method>
  25641. <method name="writeString" return="int"
  25642. abstract="false" native="false" synchronized="false"
  25643. static="true" final="false" visibility="public"
  25644. deprecated="not deprecated">
  25645. <param name="out" type="java.io.DataOutput"/>
  25646. <param name="s" type="java.lang.String"/>
  25647. <exception name="IOException" type="java.io.IOException"/>
  25648. <doc>
  25649. <![CDATA[Write a UTF8 encoded string to out]]>
  25650. </doc>
  25651. </method>
  25652. <method name="writeString" return="int"
  25653. abstract="false" native="false" synchronized="false"
  25654. static="true" final="false" visibility="public"
  25655. deprecated="not deprecated">
  25656. <param name="out" type="java.io.DataOutput"/>
  25657. <param name="s" type="java.lang.String"/>
  25658. <param name="maxLength" type="int"/>
  25659. <exception name="IOException" type="java.io.IOException"/>
  25660. <doc>
  25661. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  25662. </doc>
  25663. </method>
  25664. <method name="validateUTF8"
  25665. abstract="false" native="false" synchronized="false"
  25666. static="true" final="false" visibility="public"
  25667. deprecated="not deprecated">
  25668. <param name="utf8" type="byte[]"/>
  25669. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  25670. <doc>
  25671. <![CDATA[Check if a byte array contains valid utf-8
  25672. @param utf8 byte array
  25673. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  25674. </doc>
  25675. </method>
  25676. <method name="validateUTF8"
  25677. abstract="false" native="false" synchronized="false"
  25678. static="true" final="false" visibility="public"
  25679. deprecated="not deprecated">
  25680. <param name="utf8" type="byte[]"/>
  25681. <param name="start" type="int"/>
  25682. <param name="len" type="int"/>
  25683. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  25684. <doc>
  25685. <![CDATA[Check to see if a byte array is valid utf-8
  25686. @param utf8 the array of bytes
  25687. @param start the offset of the first byte in the array
  25688. @param len the length of the byte sequence
  25689. @throws MalformedInputException if the byte array contains invalid bytes]]>
  25690. </doc>
  25691. </method>
  25692. <method name="bytesToCodePoint" return="int"
  25693. abstract="false" native="false" synchronized="false"
  25694. static="true" final="false" visibility="public"
  25695. deprecated="not deprecated">
  25696. <param name="bytes" type="java.nio.ByteBuffer"/>
  25697. <doc>
  25698. <![CDATA[Returns the next code point at the current position in
  25699. the buffer. The buffer's position will be incremented.
  25700. Any mark set on this buffer will be changed by this method!]]>
  25701. </doc>
  25702. </method>
  25703. <method name="utf8Length" return="int"
  25704. abstract="false" native="false" synchronized="false"
  25705. static="true" final="false" visibility="public"
  25706. deprecated="not deprecated">
  25707. <param name="string" type="java.lang.String"/>
  25708. <doc>
  25709. <![CDATA[For the given string, returns the number of UTF-8 bytes
  25710. required to encode the string.
  25711. @param string text to encode
  25712. @return number of UTF-8 bytes required to encode]]>
  25713. </doc>
  25714. </method>
  25715. <field name="DEFAULT_MAX_LEN" type="int"
  25716. transient="false" volatile="false"
  25717. static="true" final="true" visibility="public"
  25718. deprecated="not deprecated">
  25719. </field>
  25720. <doc>
  25721. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  25722. to serialize, deserialize, and compare texts at byte level. The type of
  25723. length is integer and is serialized using zero-compressed format. <p>In
  25724. addition, it provides methods for string traversal without converting the
  25725. byte array to a string. <p>Also includes utilities for
  25726. serializing/deserialing a string, coding/decoding a string, checking if a
  25727. byte array contains valid UTF8 code, calculating the length of an encoded
  25728. string.]]>
  25729. </doc>
  25730. </class>
  25731. <!-- end class org.apache.hadoop.io.Text -->
  25732. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  25733. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  25734. abstract="false"
  25735. static="true" final="false" visibility="public"
  25736. deprecated="not deprecated">
  25737. <constructor name="Comparator"
  25738. static="false" final="false" visibility="public"
  25739. deprecated="not deprecated">
  25740. </constructor>
  25741. <method name="compare" return="int"
  25742. abstract="false" native="false" synchronized="false"
  25743. static="false" final="false" visibility="public"
  25744. deprecated="not deprecated">
  25745. <param name="b1" type="byte[]"/>
  25746. <param name="s1" type="int"/>
  25747. <param name="l1" type="int"/>
  25748. <param name="b2" type="byte[]"/>
  25749. <param name="s2" type="int"/>
  25750. <param name="l2" type="int"/>
  25751. </method>
  25752. <doc>
  25753. <![CDATA[A WritableComparator optimized for Text keys.]]>
  25754. </doc>
  25755. </class>
  25756. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  25757. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  25758. <class name="TwoDArrayWritable" extends="java.lang.Object"
  25759. abstract="false"
  25760. static="false" final="false" visibility="public"
  25761. deprecated="not deprecated">
  25762. <implements name="org.apache.hadoop.io.Writable"/>
  25763. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  25764. static="false" final="false" visibility="public"
  25765. deprecated="not deprecated">
  25766. </constructor>
  25767. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  25768. static="false" final="false" visibility="public"
  25769. deprecated="not deprecated">
  25770. </constructor>
  25771. <method name="toArray" return="java.lang.Object"
  25772. abstract="false" native="false" synchronized="false"
  25773. static="false" final="false" visibility="public"
  25774. deprecated="not deprecated">
  25775. </method>
  25776. <method name="set"
  25777. abstract="false" native="false" synchronized="false"
  25778. static="false" final="false" visibility="public"
  25779. deprecated="not deprecated">
  25780. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  25781. </method>
  25782. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  25783. abstract="false" native="false" synchronized="false"
  25784. static="false" final="false" visibility="public"
  25785. deprecated="not deprecated">
  25786. </method>
  25787. <method name="readFields"
  25788. abstract="false" native="false" synchronized="false"
  25789. static="false" final="false" visibility="public"
  25790. deprecated="not deprecated">
  25791. <param name="in" type="java.io.DataInput"/>
  25792. <exception name="IOException" type="java.io.IOException"/>
  25793. </method>
  25794. <method name="write"
  25795. abstract="false" native="false" synchronized="false"
  25796. static="false" final="false" visibility="public"
  25797. deprecated="not deprecated">
  25798. <param name="out" type="java.io.DataOutput"/>
  25799. <exception name="IOException" type="java.io.IOException"/>
  25800. </method>
  25801. <doc>
  25802. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  25803. </doc>
  25804. </class>
  25805. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  25806. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  25807. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  25808. abstract="false"
  25809. static="true" final="false" visibility="public"
  25810. deprecated="not deprecated">
  25811. <constructor name="Comparator"
  25812. static="false" final="false" visibility="public"
  25813. deprecated="not deprecated">
  25814. </constructor>
  25815. <method name="compare" return="int"
  25816. abstract="false" native="false" synchronized="false"
  25817. static="false" final="false" visibility="public"
  25818. deprecated="not deprecated">
  25819. <param name="b1" type="byte[]"/>
  25820. <param name="s1" type="int"/>
  25821. <param name="l1" type="int"/>
  25822. <param name="b2" type="byte[]"/>
  25823. <param name="s2" type="int"/>
  25824. <param name="l2" type="int"/>
  25825. </method>
  25826. <doc>
  25827. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  25828. </doc>
  25829. </class>
  25830. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  25831. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  25832. <class name="VersionedWritable" extends="java.lang.Object"
  25833. abstract="true"
  25834. static="false" final="false" visibility="public"
  25835. deprecated="not deprecated">
  25836. <implements name="org.apache.hadoop.io.Writable"/>
  25837. <constructor name="VersionedWritable"
  25838. static="false" final="false" visibility="public"
  25839. deprecated="not deprecated">
  25840. </constructor>
  25841. <method name="getVersion" return="byte"
  25842. abstract="true" native="false" synchronized="false"
  25843. static="false" final="false" visibility="public"
  25844. deprecated="not deprecated">
  25845. <doc>
  25846. <![CDATA[Return the version number of the current implementation.]]>
  25847. </doc>
  25848. </method>
  25849. <method name="write"
  25850. abstract="false" native="false" synchronized="false"
  25851. static="false" final="false" visibility="public"
  25852. deprecated="not deprecated">
  25853. <param name="out" type="java.io.DataOutput"/>
  25854. <exception name="IOException" type="java.io.IOException"/>
  25855. </method>
  25856. <method name="readFields"
  25857. abstract="false" native="false" synchronized="false"
  25858. static="false" final="false" visibility="public"
  25859. deprecated="not deprecated">
  25860. <param name="in" type="java.io.DataInput"/>
  25861. <exception name="IOException" type="java.io.IOException"/>
  25862. </method>
  25863. <doc>
  25864. <![CDATA[A base class for Writables that provides version checking.
  25865. <p>This is useful when a class may evolve, so that instances written by the
  25866. old version of the class may still be processed by the new version. To
  25867. handle this situation, {@link #readFields(DataInput)}
  25868. implementations should catch {@link VersionMismatchException}.]]>
  25869. </doc>
  25870. </class>
  25871. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  25872. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  25873. <class name="VersionMismatchException" extends="java.io.IOException"
  25874. abstract="false"
  25875. static="false" final="false" visibility="public"
  25876. deprecated="not deprecated">
  25877. <constructor name="VersionMismatchException" type="byte, byte"
  25878. static="false" final="false" visibility="public"
  25879. deprecated="not deprecated">
  25880. </constructor>
  25881. <method name="toString" return="java.lang.String"
  25882. abstract="false" native="false" synchronized="false"
  25883. static="false" final="false" visibility="public"
  25884. deprecated="not deprecated">
  25885. <doc>
  25886. <![CDATA[Returns a string representation of this object.]]>
  25887. </doc>
  25888. </method>
  25889. <doc>
  25890. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  25891. version of an object being read does not match the current implementation
  25892. version as returned by {@link VersionedWritable#getVersion()}.]]>
  25893. </doc>
  25894. </class>
  25895. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  25896. <!-- start class org.apache.hadoop.io.VIntWritable -->
  25897. <class name="VIntWritable" extends="java.lang.Object"
  25898. abstract="false"
  25899. static="false" final="false" visibility="public"
  25900. deprecated="not deprecated">
  25901. <implements name="org.apache.hadoop.io.WritableComparable"/>
  25902. <constructor name="VIntWritable"
  25903. static="false" final="false" visibility="public"
  25904. deprecated="not deprecated">
  25905. </constructor>
  25906. <constructor name="VIntWritable" type="int"
  25907. static="false" final="false" visibility="public"
  25908. deprecated="not deprecated">
  25909. </constructor>
  25910. <method name="set"
  25911. abstract="false" native="false" synchronized="false"
  25912. static="false" final="false" visibility="public"
  25913. deprecated="not deprecated">
  25914. <param name="value" type="int"/>
  25915. <doc>
  25916. <![CDATA[Set the value of this VIntWritable.]]>
  25917. </doc>
  25918. </method>
  25919. <method name="get" return="int"
  25920. abstract="false" native="false" synchronized="false"
  25921. static="false" final="false" visibility="public"
  25922. deprecated="not deprecated">
  25923. <doc>
  25924. <![CDATA[Return the value of this VIntWritable.]]>
  25925. </doc>
  25926. </method>
  25927. <method name="readFields"
  25928. abstract="false" native="false" synchronized="false"
  25929. static="false" final="false" visibility="public"
  25930. deprecated="not deprecated">
  25931. <param name="in" type="java.io.DataInput"/>
  25932. <exception name="IOException" type="java.io.IOException"/>
  25933. </method>
  25934. <method name="write"
  25935. abstract="false" native="false" synchronized="false"
  25936. static="false" final="false" visibility="public"
  25937. deprecated="not deprecated">
  25938. <param name="out" type="java.io.DataOutput"/>
  25939. <exception name="IOException" type="java.io.IOException"/>
  25940. </method>
  25941. <method name="equals" return="boolean"
  25942. abstract="false" native="false" synchronized="false"
  25943. static="false" final="false" visibility="public"
  25944. deprecated="not deprecated">
  25945. <param name="o" type="java.lang.Object"/>
  25946. <doc>
  25947. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  25948. </doc>
  25949. </method>
  25950. <method name="hashCode" return="int"
  25951. abstract="false" native="false" synchronized="false"
  25952. static="false" final="false" visibility="public"
  25953. deprecated="not deprecated">
  25954. </method>
  25955. <method name="compareTo" return="int"
  25956. abstract="false" native="false" synchronized="false"
  25957. static="false" final="false" visibility="public"
  25958. deprecated="not deprecated">
  25959. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  25960. <doc>
  25961. <![CDATA[Compares two VIntWritables.]]>
  25962. </doc>
  25963. </method>
  25964. <method name="toString" return="java.lang.String"
  25965. abstract="false" native="false" synchronized="false"
  25966. static="false" final="false" visibility="public"
  25967. deprecated="not deprecated">
  25968. </method>
  25969. <doc>
  25970. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  25971. Such values take between one and five bytes. Smaller values take fewer bytes.
  25972. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  25973. </doc>
  25974. </class>
  25975. <!-- end class org.apache.hadoop.io.VIntWritable -->
  25976. <!-- start class org.apache.hadoop.io.VLongWritable -->
  25977. <class name="VLongWritable" extends="java.lang.Object"
  25978. abstract="false"
  25979. static="false" final="false" visibility="public"
  25980. deprecated="not deprecated">
  25981. <implements name="org.apache.hadoop.io.WritableComparable"/>
  25982. <constructor name="VLongWritable"
  25983. static="false" final="false" visibility="public"
  25984. deprecated="not deprecated">
  25985. </constructor>
  25986. <constructor name="VLongWritable" type="long"
  25987. static="false" final="false" visibility="public"
  25988. deprecated="not deprecated">
  25989. </constructor>
  25990. <method name="set"
  25991. abstract="false" native="false" synchronized="false"
  25992. static="false" final="false" visibility="public"
  25993. deprecated="not deprecated">
  25994. <param name="value" type="long"/>
  25995. <doc>
  25996. <![CDATA[Set the value of this LongWritable.]]>
  25997. </doc>
  25998. </method>
  25999. <method name="get" return="long"
  26000. abstract="false" native="false" synchronized="false"
  26001. static="false" final="false" visibility="public"
  26002. deprecated="not deprecated">
  26003. <doc>
  26004. <![CDATA[Return the value of this LongWritable.]]>
  26005. </doc>
  26006. </method>
  26007. <method name="readFields"
  26008. abstract="false" native="false" synchronized="false"
  26009. static="false" final="false" visibility="public"
  26010. deprecated="not deprecated">
  26011. <param name="in" type="java.io.DataInput"/>
  26012. <exception name="IOException" type="java.io.IOException"/>
  26013. </method>
  26014. <method name="write"
  26015. abstract="false" native="false" synchronized="false"
  26016. static="false" final="false" visibility="public"
  26017. deprecated="not deprecated">
  26018. <param name="out" type="java.io.DataOutput"/>
  26019. <exception name="IOException" type="java.io.IOException"/>
  26020. </method>
  26021. <method name="equals" return="boolean"
  26022. abstract="false" native="false" synchronized="false"
  26023. static="false" final="false" visibility="public"
  26024. deprecated="not deprecated">
  26025. <param name="o" type="java.lang.Object"/>
  26026. <doc>
  26027. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  26028. </doc>
  26029. </method>
  26030. <method name="hashCode" return="int"
  26031. abstract="false" native="false" synchronized="false"
  26032. static="false" final="false" visibility="public"
  26033. deprecated="not deprecated">
  26034. </method>
  26035. <method name="compareTo" return="int"
  26036. abstract="false" native="false" synchronized="false"
  26037. static="false" final="false" visibility="public"
  26038. deprecated="not deprecated">
  26039. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  26040. <doc>
  26041. <![CDATA[Compares two VLongWritables.]]>
  26042. </doc>
  26043. </method>
  26044. <method name="toString" return="java.lang.String"
  26045. abstract="false" native="false" synchronized="false"
  26046. static="false" final="false" visibility="public"
  26047. deprecated="not deprecated">
  26048. </method>
  26049. <doc>
  26050. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  26051. between one and five bytes. Smaller values take fewer bytes.
  26052. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  26053. </doc>
  26054. </class>
  26055. <!-- end class org.apache.hadoop.io.VLongWritable -->
  26056. <!-- start interface org.apache.hadoop.io.Writable -->
  26057. <interface name="Writable" abstract="true"
  26058. static="false" final="false" visibility="public"
  26059. deprecated="not deprecated">
  26060. <method name="write"
  26061. abstract="true" native="false" synchronized="false"
  26062. static="false" final="false" visibility="public"
  26063. deprecated="not deprecated">
  26064. <param name="out" type="java.io.DataOutput"/>
  26065. <exception name="IOException" type="java.io.IOException"/>
  26066. <doc>
  26067. <![CDATA[Serialize the fields of this object to <code>out</code>.
  26068. @param out <code>DataOuput</code> to serialize this object into.
  26069. @throws IOException]]>
  26070. </doc>
  26071. </method>
  26072. <method name="readFields"
  26073. abstract="true" native="false" synchronized="false"
  26074. static="false" final="false" visibility="public"
  26075. deprecated="not deprecated">
  26076. <param name="in" type="java.io.DataInput"/>
  26077. <exception name="IOException" type="java.io.IOException"/>
  26078. <doc>
  26079. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  26080. <p>For efficiency, implementations should attempt to re-use storage in the
  26081. existing object where possible.</p>
  26082. @param in <code>DataInput</code> to deseriablize this object from.
  26083. @throws IOException]]>
  26084. </doc>
  26085. </method>
  26086. <doc>
  26087. <![CDATA[A serializable object which implements a simple, efficient, serialization
  26088. protocol, based on {@link DataInput} and {@link DataOutput}.
  26089. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  26090. framework implements this interface.</p>
  26091. <p>Implementations typically implement a static <code>read(DataInput)</code>
  26092. method which constructs a new instance, calls {@link #readFields(DataInput)}
  26093. and returns the instance.</p>
  26094. <p>Example:</p>
  26095. <p><blockquote><pre>
  26096. public class MyWritable implements Writable {
  26097. // Some data
  26098. private int counter;
  26099. private long timestamp;
  26100. public void write(DataOutput out) throws IOException {
  26101. out.writeInt(counter);
  26102. out.writeLong(timestamp);
  26103. }
  26104. public void readFields(DataInput in) throws IOException {
  26105. counter = in.readInt();
  26106. timestamp = in.readLong();
  26107. }
  26108. public static MyWritable read(DataInput in) throws IOException {
  26109. MyWritable w = new MyWritable();
  26110. w.readFields(in);
  26111. return w;
  26112. }
  26113. }
  26114. </pre></blockquote></p>]]>
  26115. </doc>
  26116. </interface>
  26117. <!-- end interface org.apache.hadoop.io.Writable -->
  26118. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  26119. <interface name="WritableComparable" abstract="true"
  26120. static="false" final="false" visibility="public"
  26121. deprecated="not deprecated">
  26122. <implements name="org.apache.hadoop.io.Writable"/>
  26123. <implements name="java.lang.Comparable"/>
  26124. <doc>
  26125. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  26126. <p><code>WritableComparable</code>s can be compared to each other, typically
  26127. via <code>Comparator</code>s. Any type which is to be used as a
  26128. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  26129. interface.</p>
  26130. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  26131. keys. It's important that your implementation of hashCode() returns the same
  26132. result across different instances of the JVM. Note also that the default
  26133. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  26134. satisfy this property.</p>
  26135. <p>Example:</p>
  26136. <p><blockquote><pre>
  26137. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  26138. // Some data
  26139. private int counter;
  26140. private long timestamp;
  26141. public void write(DataOutput out) throws IOException {
  26142. out.writeInt(counter);
  26143. out.writeLong(timestamp);
  26144. }
  26145. public void readFields(DataInput in) throws IOException {
  26146. counter = in.readInt();
  26147. timestamp = in.readLong();
  26148. }
  26149. public int compareTo(MyWritableComparable o) {
  26150. int thisValue = this.value;
  26151. int thatValue = o.value;
  26152. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  26153. }
  26154. public int hashCode() {
  26155. final int prime = 31;
  26156. int result = 1;
  26157. result = prime * result + counter;
  26158. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  26159. return result
  26160. }
  26161. }
  26162. </pre></blockquote></p>]]>
  26163. </doc>
  26164. </interface>
  26165. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  26166. <!-- start class org.apache.hadoop.io.WritableComparator -->
  26167. <class name="WritableComparator" extends="java.lang.Object"
  26168. abstract="false"
  26169. static="false" final="false" visibility="public"
  26170. deprecated="not deprecated">
  26171. <implements name="org.apache.hadoop.io.RawComparator"/>
  26172. <implements name="org.apache.hadoop.conf.Configurable"/>
  26173. <constructor name="WritableComparator"
  26174. static="false" final="false" visibility="protected"
  26175. deprecated="not deprecated">
  26176. </constructor>
  26177. <constructor name="WritableComparator" type="java.lang.Class"
  26178. static="false" final="false" visibility="protected"
  26179. deprecated="not deprecated">
  26180. <doc>
  26181. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  26182. </doc>
  26183. </constructor>
  26184. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  26185. static="false" final="false" visibility="protected"
  26186. deprecated="not deprecated">
  26187. </constructor>
  26188. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  26189. static="false" final="false" visibility="protected"
  26190. deprecated="not deprecated">
  26191. </constructor>
  26192. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  26193. abstract="false" native="false" synchronized="false"
  26194. static="true" final="false" visibility="public"
  26195. deprecated="not deprecated">
  26196. <param name="c" type="java.lang.Class"/>
  26197. <doc>
  26198. <![CDATA[For backwards compatibility.]]>
  26199. </doc>
  26200. </method>
  26201. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  26202. abstract="false" native="false" synchronized="false"
  26203. static="true" final="false" visibility="public"
  26204. deprecated="not deprecated">
  26205. <param name="c" type="java.lang.Class"/>
  26206. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26207. <doc>
  26208. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  26209. </doc>
  26210. </method>
  26211. <method name="setConf"
  26212. abstract="false" native="false" synchronized="false"
  26213. static="false" final="false" visibility="public"
  26214. deprecated="not deprecated">
  26215. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26216. </method>
  26217. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26218. abstract="false" native="false" synchronized="false"
  26219. static="false" final="false" visibility="public"
  26220. deprecated="not deprecated">
  26221. </method>
  26222. <method name="define"
  26223. abstract="false" native="false" synchronized="false"
  26224. static="true" final="false" visibility="public"
  26225. deprecated="not deprecated">
  26226. <param name="c" type="java.lang.Class"/>
  26227. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  26228. <doc>
  26229. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  26230. implementation. Comparators registered with this method must be
  26231. thread-safe.]]>
  26232. </doc>
  26233. </method>
  26234. <method name="getKeyClass" return="java.lang.Class"
  26235. abstract="false" native="false" synchronized="false"
  26236. static="false" final="false" visibility="public"
  26237. deprecated="not deprecated">
  26238. <doc>
  26239. <![CDATA[Returns the WritableComparable implementation class.]]>
  26240. </doc>
  26241. </method>
  26242. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  26243. abstract="false" native="false" synchronized="false"
  26244. static="false" final="false" visibility="public"
  26245. deprecated="not deprecated">
  26246. <doc>
  26247. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  26248. </doc>
  26249. </method>
  26250. <method name="compare" return="int"
  26251. abstract="false" native="false" synchronized="false"
  26252. static="false" final="false" visibility="public"
  26253. deprecated="not deprecated">
  26254. <param name="b1" type="byte[]"/>
  26255. <param name="s1" type="int"/>
  26256. <param name="l1" type="int"/>
  26257. <param name="b2" type="byte[]"/>
  26258. <param name="s2" type="int"/>
  26259. <param name="l2" type="int"/>
  26260. <doc>
  26261. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  26262. <p>The default implementation reads the data into two {@link
  26263. WritableComparable}s (using {@link
  26264. Writable#readFields(DataInput)}, then calls {@link
  26265. #compare(WritableComparable,WritableComparable)}.]]>
  26266. </doc>
  26267. </method>
  26268. <method name="compare" return="int"
  26269. abstract="false" native="false" synchronized="false"
  26270. static="false" final="false" visibility="public"
  26271. deprecated="not deprecated">
  26272. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  26273. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  26274. <doc>
  26275. <![CDATA[Compare two WritableComparables.
  26276. <p> The default implementation uses the natural ordering, calling {@link
  26277. Comparable#compareTo(Object)}.]]>
  26278. </doc>
  26279. </method>
  26280. <method name="compare" return="int"
  26281. abstract="false" native="false" synchronized="false"
  26282. static="false" final="false" visibility="public"
  26283. deprecated="not deprecated">
  26284. <param name="a" type="java.lang.Object"/>
  26285. <param name="b" type="java.lang.Object"/>
  26286. </method>
  26287. <method name="compareBytes" return="int"
  26288. abstract="false" native="false" synchronized="false"
  26289. static="true" final="false" visibility="public"
  26290. deprecated="not deprecated">
  26291. <param name="b1" type="byte[]"/>
  26292. <param name="s1" type="int"/>
  26293. <param name="l1" type="int"/>
  26294. <param name="b2" type="byte[]"/>
  26295. <param name="s2" type="int"/>
  26296. <param name="l2" type="int"/>
  26297. <doc>
  26298. <![CDATA[Lexicographic order of binary data.]]>
  26299. </doc>
  26300. </method>
  26301. <method name="hashBytes" return="int"
  26302. abstract="false" native="false" synchronized="false"
  26303. static="true" final="false" visibility="public"
  26304. deprecated="not deprecated">
  26305. <param name="bytes" type="byte[]"/>
  26306. <param name="offset" type="int"/>
  26307. <param name="length" type="int"/>
  26308. <doc>
  26309. <![CDATA[Compute hash for binary data.]]>
  26310. </doc>
  26311. </method>
  26312. <method name="hashBytes" return="int"
  26313. abstract="false" native="false" synchronized="false"
  26314. static="true" final="false" visibility="public"
  26315. deprecated="not deprecated">
  26316. <param name="bytes" type="byte[]"/>
  26317. <param name="length" type="int"/>
  26318. <doc>
  26319. <![CDATA[Compute hash for binary data.]]>
  26320. </doc>
  26321. </method>
  26322. <method name="readUnsignedShort" return="int"
  26323. abstract="false" native="false" synchronized="false"
  26324. static="true" final="false" visibility="public"
  26325. deprecated="not deprecated">
  26326. <param name="bytes" type="byte[]"/>
  26327. <param name="start" type="int"/>
  26328. <doc>
  26329. <![CDATA[Parse an unsigned short from a byte array.]]>
  26330. </doc>
  26331. </method>
  26332. <method name="readInt" return="int"
  26333. abstract="false" native="false" synchronized="false"
  26334. static="true" final="false" visibility="public"
  26335. deprecated="not deprecated">
  26336. <param name="bytes" type="byte[]"/>
  26337. <param name="start" type="int"/>
  26338. <doc>
  26339. <![CDATA[Parse an integer from a byte array.]]>
  26340. </doc>
  26341. </method>
  26342. <method name="readFloat" return="float"
  26343. abstract="false" native="false" synchronized="false"
  26344. static="true" final="false" visibility="public"
  26345. deprecated="not deprecated">
  26346. <param name="bytes" type="byte[]"/>
  26347. <param name="start" type="int"/>
  26348. <doc>
  26349. <![CDATA[Parse a float from a byte array.]]>
  26350. </doc>
  26351. </method>
  26352. <method name="readLong" return="long"
  26353. abstract="false" native="false" synchronized="false"
  26354. static="true" final="false" visibility="public"
  26355. deprecated="not deprecated">
  26356. <param name="bytes" type="byte[]"/>
  26357. <param name="start" type="int"/>
  26358. <doc>
  26359. <![CDATA[Parse a long from a byte array.]]>
  26360. </doc>
  26361. </method>
  26362. <method name="readDouble" return="double"
  26363. abstract="false" native="false" synchronized="false"
  26364. static="true" final="false" visibility="public"
  26365. deprecated="not deprecated">
  26366. <param name="bytes" type="byte[]"/>
  26367. <param name="start" type="int"/>
  26368. <doc>
  26369. <![CDATA[Parse a double from a byte array.]]>
  26370. </doc>
  26371. </method>
  26372. <method name="readVLong" return="long"
  26373. abstract="false" native="false" synchronized="false"
  26374. static="true" final="false" visibility="public"
  26375. deprecated="not deprecated">
  26376. <param name="bytes" type="byte[]"/>
  26377. <param name="start" type="int"/>
  26378. <exception name="IOException" type="java.io.IOException"/>
  26379. <doc>
  26380. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  26381. @param bytes byte array with decode long
  26382. @param start starting index
  26383. @throws java.io.IOException
  26384. @return deserialized long]]>
  26385. </doc>
  26386. </method>
  26387. <method name="readVInt" return="int"
  26388. abstract="false" native="false" synchronized="false"
  26389. static="true" final="false" visibility="public"
  26390. deprecated="not deprecated">
  26391. <param name="bytes" type="byte[]"/>
  26392. <param name="start" type="int"/>
  26393. <exception name="IOException" type="java.io.IOException"/>
  26394. <doc>
  26395. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  26396. @param bytes byte array with the encoded integer
  26397. @param start start index
  26398. @throws java.io.IOException
  26399. @return deserialized integer]]>
  26400. </doc>
  26401. </method>
  26402. <doc>
  26403. <![CDATA[A Comparator for {@link WritableComparable}s.
  26404. <p>This base implemenation uses the natural ordering. To define alternate
  26405. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  26406. <p>One may optimize compare-intensive operations by overriding
  26407. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  26408. provided to assist in optimized implementations of this method.]]>
  26409. </doc>
  26410. </class>
  26411. <!-- end class org.apache.hadoop.io.WritableComparator -->
  26412. <!-- start class org.apache.hadoop.io.WritableFactories -->
  26413. <class name="WritableFactories" extends="java.lang.Object"
  26414. abstract="false"
  26415. static="false" final="false" visibility="public"
  26416. deprecated="not deprecated">
  26417. <method name="setFactory"
  26418. abstract="false" native="false" synchronized="false"
  26419. static="true" final="false" visibility="public"
  26420. deprecated="not deprecated">
  26421. <param name="c" type="java.lang.Class"/>
  26422. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  26423. <doc>
  26424. <![CDATA[Define a factory for a class.]]>
  26425. </doc>
  26426. </method>
  26427. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  26428. abstract="false" native="false" synchronized="false"
  26429. static="true" final="false" visibility="public"
  26430. deprecated="not deprecated">
  26431. <param name="c" type="java.lang.Class"/>
  26432. <doc>
  26433. <![CDATA[Define a factory for a class.]]>
  26434. </doc>
  26435. </method>
  26436. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  26437. abstract="false" native="false" synchronized="false"
  26438. static="true" final="false" visibility="public"
  26439. deprecated="not deprecated">
  26440. <param name="c" type="java.lang.Class"/>
  26441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26442. <doc>
  26443. <![CDATA[Create a new instance of a class with a defined factory.]]>
  26444. </doc>
  26445. </method>
  26446. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  26447. abstract="false" native="false" synchronized="false"
  26448. static="true" final="false" visibility="public"
  26449. deprecated="not deprecated">
  26450. <param name="c" type="java.lang.Class"/>
  26451. <doc>
  26452. <![CDATA[Create a new instance of a class with a defined factory.]]>
  26453. </doc>
  26454. </method>
  26455. <doc>
  26456. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  26457. ObjectWritable} to be able to construct instances of non-public classes.]]>
  26458. </doc>
  26459. </class>
  26460. <!-- end class org.apache.hadoop.io.WritableFactories -->
  26461. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  26462. <interface name="WritableFactory" abstract="true"
  26463. static="false" final="false" visibility="public"
  26464. deprecated="not deprecated">
  26465. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  26466. abstract="true" native="false" synchronized="false"
  26467. static="false" final="false" visibility="public"
  26468. deprecated="not deprecated">
  26469. <doc>
  26470. <![CDATA[Return a new instance.]]>
  26471. </doc>
  26472. </method>
  26473. <doc>
  26474. <![CDATA[A factory for a class of Writable.
  26475. @see WritableFactories]]>
  26476. </doc>
  26477. </interface>
  26478. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  26479. <!-- start class org.apache.hadoop.io.WritableUtils -->
  26480. <class name="WritableUtils" extends="java.lang.Object"
  26481. abstract="false"
  26482. static="false" final="true" visibility="public"
  26483. deprecated="not deprecated">
  26484. <constructor name="WritableUtils"
  26485. static="false" final="false" visibility="public"
  26486. deprecated="not deprecated">
  26487. </constructor>
  26488. <method name="readCompressedByteArray" return="byte[]"
  26489. abstract="false" native="false" synchronized="false"
  26490. static="true" final="false" visibility="public"
  26491. deprecated="not deprecated">
  26492. <param name="in" type="java.io.DataInput"/>
  26493. <exception name="IOException" type="java.io.IOException"/>
  26494. </method>
  26495. <method name="skipCompressedByteArray"
  26496. abstract="false" native="false" synchronized="false"
  26497. static="true" final="false" visibility="public"
  26498. deprecated="not deprecated">
  26499. <param name="in" type="java.io.DataInput"/>
  26500. <exception name="IOException" type="java.io.IOException"/>
  26501. </method>
  26502. <method name="writeCompressedByteArray" return="int"
  26503. abstract="false" native="false" synchronized="false"
  26504. static="true" final="false" visibility="public"
  26505. deprecated="not deprecated">
  26506. <param name="out" type="java.io.DataOutput"/>
  26507. <param name="bytes" type="byte[]"/>
  26508. <exception name="IOException" type="java.io.IOException"/>
  26509. </method>
  26510. <method name="readCompressedString" return="java.lang.String"
  26511. abstract="false" native="false" synchronized="false"
  26512. static="true" final="false" visibility="public"
  26513. deprecated="not deprecated">
  26514. <param name="in" type="java.io.DataInput"/>
  26515. <exception name="IOException" type="java.io.IOException"/>
  26516. </method>
  26517. <method name="writeCompressedString" return="int"
  26518. abstract="false" native="false" synchronized="false"
  26519. static="true" final="false" visibility="public"
  26520. deprecated="not deprecated">
  26521. <param name="out" type="java.io.DataOutput"/>
  26522. <param name="s" type="java.lang.String"/>
  26523. <exception name="IOException" type="java.io.IOException"/>
  26524. </method>
  26525. <method name="writeString"
  26526. abstract="false" native="false" synchronized="false"
  26527. static="true" final="false" visibility="public"
  26528. deprecated="not deprecated">
  26529. <param name="out" type="java.io.DataOutput"/>
  26530. <param name="s" type="java.lang.String"/>
  26531. <exception name="IOException" type="java.io.IOException"/>
  26532. </method>
  26533. <method name="readString" return="java.lang.String"
  26534. abstract="false" native="false" synchronized="false"
  26535. static="true" final="false" visibility="public"
  26536. deprecated="not deprecated">
  26537. <param name="in" type="java.io.DataInput"/>
  26538. <exception name="IOException" type="java.io.IOException"/>
  26539. </method>
  26540. <method name="writeStringArray"
  26541. abstract="false" native="false" synchronized="false"
  26542. static="true" final="false" visibility="public"
  26543. deprecated="not deprecated">
  26544. <param name="out" type="java.io.DataOutput"/>
  26545. <param name="s" type="java.lang.String[]"/>
  26546. <exception name="IOException" type="java.io.IOException"/>
  26547. </method>
  26548. <method name="writeCompressedStringArray"
  26549. abstract="false" native="false" synchronized="false"
  26550. static="true" final="false" visibility="public"
  26551. deprecated="not deprecated">
  26552. <param name="out" type="java.io.DataOutput"/>
  26553. <param name="s" type="java.lang.String[]"/>
  26554. <exception name="IOException" type="java.io.IOException"/>
  26555. </method>
  26556. <method name="readStringArray" return="java.lang.String[]"
  26557. abstract="false" native="false" synchronized="false"
  26558. static="true" final="false" visibility="public"
  26559. deprecated="not deprecated">
  26560. <param name="in" type="java.io.DataInput"/>
  26561. <exception name="IOException" type="java.io.IOException"/>
  26562. </method>
  26563. <method name="readCompressedStringArray" return="java.lang.String[]"
  26564. abstract="false" native="false" synchronized="false"
  26565. static="true" final="false" visibility="public"
  26566. deprecated="not deprecated">
  26567. <param name="in" type="java.io.DataInput"/>
  26568. <exception name="IOException" type="java.io.IOException"/>
  26569. </method>
  26570. <method name="displayByteArray"
  26571. abstract="false" native="false" synchronized="false"
  26572. static="true" final="false" visibility="public"
  26573. deprecated="not deprecated">
  26574. <param name="record" type="byte[]"/>
  26575. </method>
  26576. <method name="clone" return="T"
  26577. abstract="false" native="false" synchronized="false"
  26578. static="true" final="false" visibility="public"
  26579. deprecated="not deprecated">
  26580. <param name="orig" type="T"/>
  26581. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26582. <doc>
  26583. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  26584. @param orig The object to copy
  26585. @return The copied object]]>
  26586. </doc>
  26587. </method>
  26588. <method name="cloneInto"
  26589. abstract="false" native="false" synchronized="false"
  26590. static="true" final="false" visibility="public"
  26591. deprecated="use ReflectionUtils.cloneInto instead.">
  26592. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  26593. <param name="src" type="org.apache.hadoop.io.Writable"/>
  26594. <exception name="IOException" type="java.io.IOException"/>
  26595. <doc>
  26596. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  26597. @param dst the object to copy from
  26598. @param src the object to copy into, which is destroyed
  26599. @throws IOException
  26600. @deprecated use ReflectionUtils.cloneInto instead.]]>
  26601. </doc>
  26602. </method>
  26603. <method name="writeVInt"
  26604. abstract="false" native="false" synchronized="false"
  26605. static="true" final="false" visibility="public"
  26606. deprecated="not deprecated">
  26607. <param name="stream" type="java.io.DataOutput"/>
  26608. <param name="i" type="int"/>
  26609. <exception name="IOException" type="java.io.IOException"/>
  26610. <doc>
  26611. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  26612. For -112 <= i <= 127, only one byte is used with the actual value.
  26613. For other values of i, the first byte value indicates whether the
  26614. integer is positive or negative, and the number of bytes that follow.
  26615. If the first byte value v is between -113 and -116, the following integer
  26616. is positive, with number of bytes that follow are -(v+112).
  26617. If the first byte value v is between -121 and -124, the following integer
  26618. is negative, with number of bytes that follow are -(v+120). Bytes are
  26619. stored in the high-non-zero-byte-first order.
  26620. @param stream Binary output stream
  26621. @param i Integer to be serialized
  26622. @throws java.io.IOException]]>
  26623. </doc>
  26624. </method>
  26625. <method name="writeVLong"
  26626. abstract="false" native="false" synchronized="false"
  26627. static="true" final="false" visibility="public"
  26628. deprecated="not deprecated">
  26629. <param name="stream" type="java.io.DataOutput"/>
  26630. <param name="i" type="long"/>
  26631. <exception name="IOException" type="java.io.IOException"/>
  26632. <doc>
  26633. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  26634. For -112 <= i <= 127, only one byte is used with the actual value.
  26635. For other values of i, the first byte value indicates whether the
  26636. long is positive or negative, and the number of bytes that follow.
  26637. If the first byte value v is between -113 and -120, the following long
  26638. is positive, with number of bytes that follow are -(v+112).
  26639. If the first byte value v is between -121 and -128, the following long
  26640. is negative, with number of bytes that follow are -(v+120). Bytes are
  26641. stored in the high-non-zero-byte-first order.
  26642. @param stream Binary output stream
  26643. @param i Long to be serialized
  26644. @throws java.io.IOException]]>
  26645. </doc>
  26646. </method>
  26647. <method name="readVLong" return="long"
  26648. abstract="false" native="false" synchronized="false"
  26649. static="true" final="false" visibility="public"
  26650. deprecated="not deprecated">
  26651. <param name="stream" type="java.io.DataInput"/>
  26652. <exception name="IOException" type="java.io.IOException"/>
  26653. <doc>
  26654. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  26655. @param stream Binary input stream
  26656. @throws java.io.IOException
  26657. @return deserialized long from stream.]]>
  26658. </doc>
  26659. </method>
  26660. <method name="readVInt" return="int"
  26661. abstract="false" native="false" synchronized="false"
  26662. static="true" final="false" visibility="public"
  26663. deprecated="not deprecated">
  26664. <param name="stream" type="java.io.DataInput"/>
  26665. <exception name="IOException" type="java.io.IOException"/>
  26666. <doc>
  26667. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  26668. @param stream Binary input stream
  26669. @throws java.io.IOException
  26670. @return deserialized integer from stream.]]>
  26671. </doc>
  26672. </method>
  26673. <method name="readVIntInRange" return="int"
  26674. abstract="false" native="false" synchronized="false"
  26675. static="true" final="false" visibility="public"
  26676. deprecated="not deprecated">
  26677. <param name="stream" type="java.io.DataInput"/>
  26678. <param name="lower" type="int"/>
  26679. <param name="upper" type="int"/>
  26680. <exception name="IOException" type="java.io.IOException"/>
  26681. <doc>
  26682. <![CDATA[Reads an integer from the input stream and returns it.
  26683. This function validates that the integer is between [lower, upper],
  26684. inclusive.
  26685. @param stream Binary input stream
  26686. @throws java.io.IOException
  26687. @return deserialized integer from stream]]>
  26688. </doc>
  26689. </method>
  26690. <method name="isNegativeVInt" return="boolean"
  26691. abstract="false" native="false" synchronized="false"
  26692. static="true" final="false" visibility="public"
  26693. deprecated="not deprecated">
  26694. <param name="value" type="byte"/>
  26695. <doc>
  26696. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  26697. @param value the first byte
  26698. @return is the value negative]]>
  26699. </doc>
  26700. </method>
  26701. <method name="decodeVIntSize" return="int"
  26702. abstract="false" native="false" synchronized="false"
  26703. static="true" final="false" visibility="public"
  26704. deprecated="not deprecated">
  26705. <param name="value" type="byte"/>
  26706. <doc>
  26707. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  26708. @param value the first byte of the vint/vlong
  26709. @return the total number of bytes (1 to 9)]]>
  26710. </doc>
  26711. </method>
  26712. <method name="getVIntSize" return="int"
  26713. abstract="false" native="false" synchronized="false"
  26714. static="true" final="false" visibility="public"
  26715. deprecated="not deprecated">
  26716. <param name="i" type="long"/>
  26717. <doc>
  26718. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  26719. @return the encoded length]]>
  26720. </doc>
  26721. </method>
  26722. <method name="readEnum" return="T"
  26723. abstract="false" native="false" synchronized="false"
  26724. static="true" final="false" visibility="public"
  26725. deprecated="not deprecated">
  26726. <param name="in" type="java.io.DataInput"/>
  26727. <param name="enumType" type="java.lang.Class"/>
  26728. <exception name="IOException" type="java.io.IOException"/>
  26729. <doc>
  26730. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  26731. using String values.
  26732. @param <T> Enum type
  26733. @param in DataInput to read from
  26734. @param enumType Class type of Enum
  26735. @return Enum represented by String read from DataInput
  26736. @throws IOException]]>
  26737. </doc>
  26738. </method>
  26739. <method name="writeEnum"
  26740. abstract="false" native="false" synchronized="false"
  26741. static="true" final="false" visibility="public"
  26742. deprecated="not deprecated">
  26743. <param name="out" type="java.io.DataOutput"/>
  26744. <param name="enumVal" type="java.lang.Enum"/>
  26745. <exception name="IOException" type="java.io.IOException"/>
  26746. <doc>
  26747. <![CDATA[writes String value of enum to DataOutput.
  26748. @param out Dataoutput stream
  26749. @param enumVal enum value
  26750. @throws IOException]]>
  26751. </doc>
  26752. </method>
  26753. <method name="skipFully"
  26754. abstract="false" native="false" synchronized="false"
  26755. static="true" final="false" visibility="public"
  26756. deprecated="not deprecated">
  26757. <param name="in" type="java.io.DataInput"/>
  26758. <param name="len" type="int"/>
  26759. <exception name="IOException" type="java.io.IOException"/>
  26760. <doc>
  26761. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  26762. @param in input stream
  26763. @param len number of bytes to skip
  26764. @throws IOException when skipped less number of bytes]]>
  26765. </doc>
  26766. </method>
  26767. <method name="toByteArray" return="byte[]"
  26768. abstract="false" native="false" synchronized="false"
  26769. static="true" final="false" visibility="public"
  26770. deprecated="not deprecated">
  26771. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  26772. <doc>
  26773. <![CDATA[Convert writables to a byte array]]>
  26774. </doc>
  26775. </method>
  26776. <method name="readStringSafely" return="java.lang.String"
  26777. abstract="false" native="false" synchronized="false"
  26778. static="true" final="false" visibility="public"
  26779. deprecated="not deprecated">
  26780. <param name="in" type="java.io.DataInput"/>
  26781. <param name="maxLength" type="int"/>
  26782. <exception name="IOException" type="java.io.IOException"/>
  26783. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  26784. <doc>
  26785. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  26786. followed by the given number of bytes.
  26787. @param in the stream to read from
  26788. @param maxLength the largest acceptable length of the encoded string
  26789. @return the bytes as a string
  26790. @throws IOException if reading from the DataInput fails
  26791. @throws IllegalArgumentException if the encoded byte size for string
  26792. is negative or larger than maxSize. Only the vint is read.]]>
  26793. </doc>
  26794. </method>
  26795. </class>
  26796. <!-- end class org.apache.hadoop.io.WritableUtils -->
  26797. <doc>
  26798. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  26799. to databases, and to files.]]>
  26800. </doc>
  26801. </package>
  26802. <package name="org.apache.hadoop.io.compress">
  26803. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  26804. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  26805. abstract="false"
  26806. static="false" final="false" visibility="public"
  26807. deprecated="not deprecated">
  26808. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  26809. static="false" final="false" visibility="public"
  26810. deprecated="not deprecated">
  26811. <doc>
  26812. <![CDATA[Create a {@link BlockCompressorStream}.
  26813. @param out stream
  26814. @param compressor compressor to be used
  26815. @param bufferSize size of buffer
  26816. @param compressionOverhead maximum 'overhead' of the compression
  26817. algorithm with given bufferSize]]>
  26818. </doc>
  26819. </constructor>
  26820. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  26821. static="false" final="false" visibility="public"
  26822. deprecated="not deprecated">
  26823. <doc>
  26824. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  26825. compressor.
  26826. Use default of 512 as bufferSize and compressionOverhead of
  26827. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  26828. @param out stream
  26829. @param compressor compressor to be used]]>
  26830. </doc>
  26831. </constructor>
  26832. <method name="write"
  26833. abstract="false" native="false" synchronized="false"
  26834. static="false" final="false" visibility="public"
  26835. deprecated="not deprecated">
  26836. <param name="b" type="byte[]"/>
  26837. <param name="off" type="int"/>
  26838. <param name="len" type="int"/>
  26839. <exception name="IOException" type="java.io.IOException"/>
  26840. <doc>
  26841. <![CDATA[Write the data provided to the compression codec, compressing no more
  26842. than the buffer size less the compression overhead as specified during
  26843. construction for each block.
  26844. Each block contains the uncompressed length for the block, followed by
  26845. one or more length-prefixed blocks of compressed data.]]>
  26846. </doc>
  26847. </method>
  26848. <method name="finish"
  26849. abstract="false" native="false" synchronized="false"
  26850. static="false" final="false" visibility="public"
  26851. deprecated="not deprecated">
  26852. <exception name="IOException" type="java.io.IOException"/>
  26853. </method>
  26854. <method name="compress"
  26855. abstract="false" native="false" synchronized="false"
  26856. static="false" final="false" visibility="protected"
  26857. deprecated="not deprecated">
  26858. <exception name="IOException" type="java.io.IOException"/>
  26859. </method>
  26860. <doc>
  26861. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  26862. with 'block-based' based compression algorithms, as opposed to
  26863. 'stream-based' compression algorithms.
  26864. It should be noted that this wrapper does not guarantee that blocks will
  26865. be sized for the compressor. If the
  26866. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  26867. effect meaningful compression, it is responsible for it.]]>
  26868. </doc>
  26869. </class>
  26870. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  26871. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  26872. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  26873. abstract="false"
  26874. static="false" final="false" visibility="public"
  26875. deprecated="not deprecated">
  26876. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  26877. static="false" final="false" visibility="public"
  26878. deprecated="not deprecated">
  26879. <exception name="IOException" type="java.io.IOException"/>
  26880. <doc>
  26881. <![CDATA[Create a {@link BlockDecompressorStream}.
  26882. @param in input stream
  26883. @param decompressor decompressor to use
  26884. @param bufferSize size of buffer
  26885. @throws IOException]]>
  26886. </doc>
  26887. </constructor>
  26888. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  26889. static="false" final="false" visibility="public"
  26890. deprecated="not deprecated">
  26891. <exception name="IOException" type="java.io.IOException"/>
  26892. <doc>
  26893. <![CDATA[Create a {@link BlockDecompressorStream}.
  26894. @param in input stream
  26895. @param decompressor decompressor to use
  26896. @throws IOException]]>
  26897. </doc>
  26898. </constructor>
  26899. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  26900. static="false" final="false" visibility="protected"
  26901. deprecated="not deprecated">
  26902. <exception name="IOException" type="java.io.IOException"/>
  26903. </constructor>
  26904. <method name="decompress" return="int"
  26905. abstract="false" native="false" synchronized="false"
  26906. static="false" final="false" visibility="protected"
  26907. deprecated="not deprecated">
  26908. <param name="b" type="byte[]"/>
  26909. <param name="off" type="int"/>
  26910. <param name="len" type="int"/>
  26911. <exception name="IOException" type="java.io.IOException"/>
  26912. </method>
  26913. <method name="getCompressedData" return="int"
  26914. abstract="false" native="false" synchronized="false"
  26915. static="false" final="false" visibility="protected"
  26916. deprecated="not deprecated">
  26917. <exception name="IOException" type="java.io.IOException"/>
  26918. </method>
  26919. <method name="resetState"
  26920. abstract="false" native="false" synchronized="false"
  26921. static="false" final="false" visibility="public"
  26922. deprecated="not deprecated">
  26923. <exception name="IOException" type="java.io.IOException"/>
  26924. </method>
  26925. <doc>
  26926. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  26927. with 'block-based' based compression algorithms, as opposed to
  26928. 'stream-based' compression algorithms.]]>
  26929. </doc>
  26930. </class>
  26931. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  26932. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  26933. <class name="BZip2Codec" extends="java.lang.Object"
  26934. abstract="false"
  26935. static="false" final="false" visibility="public"
  26936. deprecated="not deprecated">
  26937. <implements name="org.apache.hadoop.conf.Configurable"/>
  26938. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  26939. <constructor name="BZip2Codec"
  26940. static="false" final="false" visibility="public"
  26941. deprecated="not deprecated">
  26942. <doc>
  26943. <![CDATA[Creates a new instance of BZip2Codec.]]>
  26944. </doc>
  26945. </constructor>
  26946. <method name="setConf"
  26947. abstract="false" native="false" synchronized="false"
  26948. static="false" final="false" visibility="public"
  26949. deprecated="not deprecated">
  26950. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26951. <doc>
  26952. <![CDATA[Set the configuration to be used by this object.
  26953. @param conf the configuration object.]]>
  26954. </doc>
  26955. </method>
  26956. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26957. abstract="false" native="false" synchronized="false"
  26958. static="false" final="false" visibility="public"
  26959. deprecated="not deprecated">
  26960. <doc>
  26961. <![CDATA[Return the configuration used by this object.
  26962. @return the configuration object used by this objec.]]>
  26963. </doc>
  26964. </method>
  26965. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26966. abstract="false" native="false" synchronized="false"
  26967. static="false" final="false" visibility="public"
  26968. deprecated="not deprecated">
  26969. <param name="out" type="java.io.OutputStream"/>
  26970. <exception name="IOException" type="java.io.IOException"/>
  26971. <doc>
  26972. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26973. {@link OutputStream}.
  26974. @param out the location for the final output stream
  26975. @return a stream the user can write uncompressed data to, to have it
  26976. compressed
  26977. @throws IOException]]>
  26978. </doc>
  26979. </method>
  26980. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  26981. abstract="false" native="false" synchronized="false"
  26982. static="false" final="false" visibility="public"
  26983. deprecated="not deprecated">
  26984. <param name="out" type="java.io.OutputStream"/>
  26985. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  26986. <exception name="IOException" type="java.io.IOException"/>
  26987. <doc>
  26988. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  26989. {@link OutputStream} with the given {@link Compressor}.
  26990. @param out the location for the final output stream
  26991. @param compressor compressor to use
  26992. @return a stream the user can write uncompressed data to, to have it
  26993. compressed
  26994. @throws IOException]]>
  26995. </doc>
  26996. </method>
  26997. <method name="getCompressorType" return="java.lang.Class"
  26998. abstract="false" native="false" synchronized="false"
  26999. static="false" final="false" visibility="public"
  27000. deprecated="not deprecated">
  27001. <doc>
  27002. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  27003. @return the type of compressor needed by this codec.]]>
  27004. </doc>
  27005. </method>
  27006. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27007. abstract="false" native="false" synchronized="false"
  27008. static="false" final="false" visibility="public"
  27009. deprecated="not deprecated">
  27010. <doc>
  27011. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  27012. @return a new compressor for use by this codec]]>
  27013. </doc>
  27014. </method>
  27015. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27016. abstract="false" native="false" synchronized="false"
  27017. static="false" final="false" visibility="public"
  27018. deprecated="not deprecated">
  27019. <param name="in" type="java.io.InputStream"/>
  27020. <exception name="IOException" type="java.io.IOException"/>
  27021. <doc>
  27022. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27023. input stream and return a stream for uncompressed data.
  27024. @param in the stream to read compressed bytes from
  27025. @return a stream to read uncompressed bytes from
  27026. @throws IOException]]>
  27027. </doc>
  27028. </method>
  27029. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27030. abstract="false" native="false" synchronized="false"
  27031. static="false" final="false" visibility="public"
  27032. deprecated="not deprecated">
  27033. <param name="in" type="java.io.InputStream"/>
  27034. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27035. <exception name="IOException" type="java.io.IOException"/>
  27036. <doc>
  27037. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27038. {@link InputStream} with the given {@link Decompressor}, and return a
  27039. stream for uncompressed data.
  27040. @param in the stream to read compressed bytes from
  27041. @param decompressor decompressor to use
  27042. @return a stream to read uncompressed bytes from
  27043. @throws IOException]]>
  27044. </doc>
  27045. </method>
  27046. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  27047. abstract="false" native="false" synchronized="false"
  27048. static="false" final="false" visibility="public"
  27049. deprecated="not deprecated">
  27050. <param name="seekableIn" type="java.io.InputStream"/>
  27051. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27052. <param name="start" type="long"/>
  27053. <param name="end" type="long"/>
  27054. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  27055. <exception name="IOException" type="java.io.IOException"/>
  27056. <doc>
  27057. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  27058. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  27059. @param seekableIn The InputStream
  27060. @param start The start offset into the compressed stream
  27061. @param end The end offset into the compressed stream
  27062. @param readMode Controls whether progress is reported continuously or
  27063. only at block boundaries.
  27064. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  27065. </doc>
  27066. </method>
  27067. <method name="getDecompressorType" return="java.lang.Class"
  27068. abstract="false" native="false" synchronized="false"
  27069. static="false" final="false" visibility="public"
  27070. deprecated="not deprecated">
  27071. <doc>
  27072. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  27073. @return the type of decompressor needed by this codec.]]>
  27074. </doc>
  27075. </method>
  27076. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27077. abstract="false" native="false" synchronized="false"
  27078. static="false" final="false" visibility="public"
  27079. deprecated="not deprecated">
  27080. <doc>
  27081. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  27082. @return a new decompressor for use by this codec]]>
  27083. </doc>
  27084. </method>
  27085. <method name="getDefaultExtension" return="java.lang.String"
  27086. abstract="false" native="false" synchronized="false"
  27087. static="false" final="false" visibility="public"
  27088. deprecated="not deprecated">
  27089. <doc>
  27090. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  27091. @return A String telling the default bzip2 file extension]]>
  27092. </doc>
  27093. </method>
  27094. <doc>
  27095. <![CDATA[This class provides output and input streams for bzip2 compression
  27096. and decompression. It uses the native bzip2 library on the system
  27097. if possible, else it uses a pure-Java implementation of the bzip2
  27098. algorithm. The configuration parameter
  27099. io.compression.codec.bzip2.library can be used to control this
  27100. behavior.
  27101. In the pure-Java mode, the Compressor and Decompressor interfaces
  27102. are not implemented. Therefore, in that mode, those methods of
  27103. CompressionCodec which have a Compressor or Decompressor type
  27104. argument, throw UnsupportedOperationException.
  27105. Currently, support for splittability is available only in the
  27106. pure-Java mode; therefore, if a SplitCompressionInputStream is
  27107. requested, the pure-Java implementation is used, regardless of the
  27108. setting of the configuration parameter mentioned above.]]>
  27109. </doc>
  27110. </class>
  27111. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  27112. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  27113. <class name="CodecPool" extends="java.lang.Object"
  27114. abstract="false"
  27115. static="false" final="false" visibility="public"
  27116. deprecated="not deprecated">
  27117. <constructor name="CodecPool"
  27118. static="false" final="false" visibility="public"
  27119. deprecated="not deprecated">
  27120. </constructor>
  27121. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27122. abstract="false" native="false" synchronized="false"
  27123. static="true" final="false" visibility="public"
  27124. deprecated="not deprecated">
  27125. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  27126. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27127. <doc>
  27128. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  27129. pool or a new one.
  27130. @param codec the <code>CompressionCodec</code> for which to get the
  27131. <code>Compressor</code>
  27132. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  27133. @return <code>Compressor</code> for the given
  27134. <code>CompressionCodec</code> from the pool or a new one]]>
  27135. </doc>
  27136. </method>
  27137. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27138. abstract="false" native="false" synchronized="false"
  27139. static="true" final="false" visibility="public"
  27140. deprecated="not deprecated">
  27141. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  27142. </method>
  27143. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27144. abstract="false" native="false" synchronized="false"
  27145. static="true" final="false" visibility="public"
  27146. deprecated="not deprecated">
  27147. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  27148. <doc>
  27149. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  27150. pool or a new one.
  27151. @param codec the <code>CompressionCodec</code> for which to get the
  27152. <code>Decompressor</code>
  27153. @return <code>Decompressor</code> for the given
  27154. <code>CompressionCodec</code> the pool or a new one]]>
  27155. </doc>
  27156. </method>
  27157. <method name="returnCompressor"
  27158. abstract="false" native="false" synchronized="false"
  27159. static="true" final="false" visibility="public"
  27160. deprecated="not deprecated">
  27161. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27162. <doc>
  27163. <![CDATA[Return the {@link Compressor} to the pool.
  27164. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  27165. </doc>
  27166. </method>
  27167. <method name="returnDecompressor"
  27168. abstract="false" native="false" synchronized="false"
  27169. static="true" final="false" visibility="public"
  27170. deprecated="not deprecated">
  27171. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27172. <doc>
  27173. <![CDATA[Return the {@link Decompressor} to the pool.
  27174. @param decompressor the <code>Decompressor</code> to be returned to the
  27175. pool]]>
  27176. </doc>
  27177. </method>
  27178. <method name="getLeasedCompressorsCount" return="int"
  27179. abstract="false" native="false" synchronized="false"
  27180. static="true" final="false" visibility="public"
  27181. deprecated="not deprecated">
  27182. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  27183. <doc>
  27184. <![CDATA[Return the number of leased {@link Compressor}s for this
  27185. {@link CompressionCodec}]]>
  27186. </doc>
  27187. </method>
  27188. <method name="getLeasedDecompressorsCount" return="int"
  27189. abstract="false" native="false" synchronized="false"
  27190. static="true" final="false" visibility="public"
  27191. deprecated="not deprecated">
  27192. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  27193. <doc>
  27194. <![CDATA[Return the number of leased {@link Decompressor}s for this
  27195. {@link CompressionCodec}]]>
  27196. </doc>
  27197. </method>
  27198. <doc>
  27199. <![CDATA[A global compressor/decompressor pool used to save and reuse
  27200. (possibly native) compression/decompression codecs.]]>
  27201. </doc>
  27202. </class>
  27203. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  27204. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  27205. <interface name="CompressionCodec" abstract="true"
  27206. static="false" final="false" visibility="public"
  27207. deprecated="not deprecated">
  27208. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27209. abstract="true" native="false" synchronized="false"
  27210. static="false" final="false" visibility="public"
  27211. deprecated="not deprecated">
  27212. <param name="out" type="java.io.OutputStream"/>
  27213. <exception name="IOException" type="java.io.IOException"/>
  27214. <doc>
  27215. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  27216. {@link OutputStream}.
  27217. @param out the location for the final output stream
  27218. @return a stream the user can write uncompressed data to have it compressed
  27219. @throws IOException]]>
  27220. </doc>
  27221. </method>
  27222. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  27223. abstract="true" native="false" synchronized="false"
  27224. static="false" final="false" visibility="public"
  27225. deprecated="not deprecated">
  27226. <param name="out" type="java.io.OutputStream"/>
  27227. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  27228. <exception name="IOException" type="java.io.IOException"/>
  27229. <doc>
  27230. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  27231. {@link OutputStream} with the given {@link Compressor}.
  27232. @param out the location for the final output stream
  27233. @param compressor compressor to use
  27234. @return a stream the user can write uncompressed data to have it compressed
  27235. @throws IOException]]>
  27236. </doc>
  27237. </method>
  27238. <method name="getCompressorType" return="java.lang.Class"
  27239. abstract="true" native="false" synchronized="false"
  27240. static="false" final="false" visibility="public"
  27241. deprecated="not deprecated">
  27242. <doc>
  27243. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  27244. @return the type of compressor needed by this codec.]]>
  27245. </doc>
  27246. </method>
  27247. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  27248. abstract="true" native="false" synchronized="false"
  27249. static="false" final="false" visibility="public"
  27250. deprecated="not deprecated">
  27251. <doc>
  27252. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  27253. @return a new compressor for use by this codec]]>
  27254. </doc>
  27255. </method>
  27256. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27257. abstract="true" native="false" synchronized="false"
  27258. static="false" final="false" visibility="public"
  27259. deprecated="not deprecated">
  27260. <param name="in" type="java.io.InputStream"/>
  27261. <exception name="IOException" type="java.io.IOException"/>
  27262. <doc>
  27263. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27264. input stream.
  27265. @param in the stream to read compressed bytes from
  27266. @return a stream to read uncompressed bytes from
  27267. @throws IOException]]>
  27268. </doc>
  27269. </method>
  27270. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  27271. abstract="true" native="false" synchronized="false"
  27272. static="false" final="false" visibility="public"
  27273. deprecated="not deprecated">
  27274. <param name="in" type="java.io.InputStream"/>
  27275. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  27276. <exception name="IOException" type="java.io.IOException"/>
  27277. <doc>
  27278. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  27279. {@link InputStream} with the given {@link Decompressor}.
  27280. @param in the stream to read compressed bytes from
  27281. @param decompressor decompressor to use
  27282. @return a stream to read uncompressed bytes from
  27283. @throws IOException]]>
  27284. </doc>
  27285. </method>
  27286. <method name="getDecompressorType" return="java.lang.Class"
  27287. abstract="true" native="false" synchronized="false"
  27288. static="false" final="false" visibility="public"
  27289. deprecated="not deprecated">
  27290. <doc>
  27291. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  27292. @return the type of decompressor needed by this codec.]]>
  27293. </doc>
  27294. </method>
  27295. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  27296. abstract="true" native="false" synchronized="false"
  27297. static="false" final="false" visibility="public"
  27298. deprecated="not deprecated">
  27299. <doc>
  27300. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  27301. @return a new decompressor for use by this codec]]>
  27302. </doc>
  27303. </method>
  27304. <method name="getDefaultExtension" return="java.lang.String"
  27305. abstract="true" native="false" synchronized="false"
  27306. static="false" final="false" visibility="public"
  27307. deprecated="not deprecated">
  27308. <doc>
  27309. <![CDATA[Get the default filename extension for this kind of compression.
  27310. @return the extension including the '.']]>
  27311. </doc>
  27312. </method>
  27313. <doc>
  27314. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  27315. </doc>
  27316. </interface>
  27317. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  27318. <!-- start class org.apache.hadoop.io.compress.CompressionCodec.Util -->
  27319. <class name="CompressionCodec.Util" extends="java.lang.Object"
  27320. abstract="false"
  27321. static="true" final="false" visibility="public"
  27322. deprecated="not deprecated">
  27323. <constructor name="Util"
  27324. static="false" final="false" visibility="public"
  27325. deprecated="not deprecated">
  27326. </constructor>
  27327. </class>
  27328. <!-- end class org.apache.hadoop.io.compress.CompressionCodec.Util -->
  27329. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  27330. <class name="CompressionCodecFactory" extends="java.lang.Object"
  27331. abstract="false"
  27332. static="false" final="false" visibility="public"
  27333. deprecated="not deprecated">
  27334. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  27335. static="false" final="false" visibility="public"
  27336. deprecated="not deprecated">
  27337. <doc>
  27338. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  27339. and register them. Defaults to gzip and deflate.]]>
  27340. </doc>
  27341. </constructor>
  27342. <method name="toString" return="java.lang.String"
  27343. abstract="false" native="false" synchronized="false"
  27344. static="false" final="false" visibility="public"
  27345. deprecated="not deprecated">
  27346. <doc>
  27347. <![CDATA[Print the extension map out as a string.]]>
  27348. </doc>
  27349. </method>
  27350. <method name="getCodecClasses" return="java.util.List"
  27351. abstract="false" native="false" synchronized="false"
  27352. static="true" final="false" visibility="public"
  27353. deprecated="not deprecated">
  27354. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27355. <doc>
  27356. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  27357. listed in the configuration. Codecs specified in configuration come
  27358. later in the returned list, and are considered to override those
  27359. from the ServiceLoader.
  27360. @param conf the configuration to look in
  27361. @return a list of the {@link CompressionCodec} classes]]>
  27362. </doc>
  27363. </method>
  27364. <method name="setCodecClasses"
  27365. abstract="false" native="false" synchronized="false"
  27366. static="true" final="false" visibility="public"
  27367. deprecated="not deprecated">
  27368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27369. <param name="classes" type="java.util.List"/>
  27370. <doc>
  27371. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  27372. classes specified using this method, {@link CompressionCodec} classes on
  27373. the classpath are discovered using a Java ServiceLoader.
  27374. @param conf the configuration to modify
  27375. @param classes the list of classes to set]]>
  27376. </doc>
  27377. </method>
  27378. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  27379. abstract="false" native="false" synchronized="false"
  27380. static="false" final="false" visibility="public"
  27381. deprecated="not deprecated">
  27382. <param name="file" type="org.apache.hadoop.fs.Path"/>
  27383. <doc>
  27384. <![CDATA[Find the relevant compression codec for the given file based on its
  27385. filename suffix.
  27386. @param file the filename to check
  27387. @return the codec object]]>
  27388. </doc>
  27389. </method>
  27390. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  27391. abstract="false" native="false" synchronized="false"
  27392. static="false" final="false" visibility="public"
  27393. deprecated="not deprecated">
  27394. <param name="classname" type="java.lang.String"/>
  27395. <doc>
  27396. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  27397. @param classname the canonical class name of the codec
  27398. @return the codec object]]>
  27399. </doc>
  27400. </method>
  27401. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  27402. abstract="false" native="false" synchronized="false"
  27403. static="false" final="false" visibility="public"
  27404. deprecated="not deprecated">
  27405. <param name="codecName" type="java.lang.String"/>
  27406. <doc>
  27407. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  27408. or by codec alias.
  27409. <p/>
  27410. Codec aliases are case insensitive.
  27411. <p/>
  27412. The code alias is the short class name (without the package name).
  27413. If the short class name ends with 'Codec', then there are two aliases for
  27414. the codec, the complete short class name and the short class name without
  27415. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  27416. alias are 'gzip' and 'gzipcodec'.
  27417. @param codecName the canonical class name of the codec
  27418. @return the codec object]]>
  27419. </doc>
  27420. </method>
  27421. <method name="getCodecClassByName" return="java.lang.Class"
  27422. abstract="false" native="false" synchronized="false"
  27423. static="false" final="false" visibility="public"
  27424. deprecated="not deprecated">
  27425. <param name="codecName" type="java.lang.String"/>
  27426. <doc>
  27427. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  27428. or by codec alias and returns its implemetation class.
  27429. <p/>
  27430. Codec aliases are case insensitive.
  27431. <p/>
  27432. The code alias is the short class name (without the package name).
  27433. If the short class name ends with 'Codec', then there are two aliases for
  27434. the codec, the complete short class name and the short class name without
  27435. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  27436. alias are 'gzip' and 'gzipcodec'.
  27437. @param codecName the canonical class name of the codec
  27438. @return the codec class]]>
  27439. </doc>
  27440. </method>
  27441. <method name="removeSuffix" return="java.lang.String"
  27442. abstract="false" native="false" synchronized="false"
  27443. static="true" final="false" visibility="public"
  27444. deprecated="not deprecated">
  27445. <param name="filename" type="java.lang.String"/>
  27446. <param name="suffix" type="java.lang.String"/>
  27447. <doc>
  27448. <![CDATA[Removes a suffix from a filename, if it has it.
  27449. @param filename the filename to strip
  27450. @param suffix the suffix to remove
  27451. @return the shortened filename]]>
  27452. </doc>
  27453. </method>
  27454. <method name="main"
  27455. abstract="false" native="false" synchronized="false"
  27456. static="true" final="false" visibility="public"
  27457. deprecated="not deprecated">
  27458. <param name="args" type="java.lang.String[]"/>
  27459. <exception name="Exception" type="java.lang.Exception"/>
  27460. <doc>
  27461. <![CDATA[A little test program.
  27462. @param args]]>
  27463. </doc>
  27464. </method>
  27465. <field name="LOG" type="org.apache.commons.logging.Log"
  27466. transient="false" volatile="false"
  27467. static="true" final="true" visibility="public"
  27468. deprecated="not deprecated">
  27469. </field>
  27470. <doc>
  27471. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  27472. </doc>
  27473. </class>
  27474. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  27475. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  27476. <class name="CompressionInputStream" extends="java.io.InputStream"
  27477. abstract="true"
  27478. static="false" final="false" visibility="public"
  27479. deprecated="not deprecated">
  27480. <implements name="org.apache.hadoop.fs.Seekable"/>
  27481. <constructor name="CompressionInputStream" type="java.io.InputStream"
  27482. static="false" final="false" visibility="protected"
  27483. deprecated="not deprecated">
  27484. <exception name="IOException" type="java.io.IOException"/>
  27485. <doc>
  27486. <![CDATA[Create a compression input stream that reads
  27487. the decompressed bytes from the given stream.
  27488. @param in The input stream to be compressed.
  27489. @throws IOException]]>
  27490. </doc>
  27491. </constructor>
  27492. <method name="close"
  27493. abstract="false" native="false" synchronized="false"
  27494. static="false" final="false" visibility="public"
  27495. deprecated="not deprecated">
  27496. <exception name="IOException" type="java.io.IOException"/>
  27497. </method>
  27498. <method name="read" return="int"
  27499. abstract="true" native="false" synchronized="false"
  27500. static="false" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <param name="b" type="byte[]"/>
  27503. <param name="off" type="int"/>
  27504. <param name="len" type="int"/>
  27505. <exception name="IOException" type="java.io.IOException"/>
  27506. <doc>
  27507. <![CDATA[Read bytes from the stream.
  27508. Made abstract to prevent leakage to underlying stream.]]>
  27509. </doc>
  27510. </method>
  27511. <method name="resetState"
  27512. abstract="true" native="false" synchronized="false"
  27513. static="false" final="false" visibility="public"
  27514. deprecated="not deprecated">
  27515. <exception name="IOException" type="java.io.IOException"/>
  27516. <doc>
  27517. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  27518. as the underlying stream may have been repositioned.]]>
  27519. </doc>
  27520. </method>
  27521. <method name="getPos" return="long"
  27522. abstract="false" native="false" synchronized="false"
  27523. static="false" final="false" visibility="public"
  27524. deprecated="not deprecated">
  27525. <exception name="IOException" type="java.io.IOException"/>
  27526. <doc>
  27527. <![CDATA[This method returns the current position in the stream.
  27528. @return Current position in stream as a long]]>
  27529. </doc>
  27530. </method>
  27531. <method name="seek"
  27532. abstract="false" native="false" synchronized="false"
  27533. static="false" final="false" visibility="public"
  27534. deprecated="not deprecated">
  27535. <param name="pos" type="long"/>
  27536. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  27537. <doc>
  27538. <![CDATA[This method is current not supported.
  27539. @throws UnsupportedOperationException]]>
  27540. </doc>
  27541. </method>
  27542. <method name="seekToNewSource" return="boolean"
  27543. abstract="false" native="false" synchronized="false"
  27544. static="false" final="false" visibility="public"
  27545. deprecated="not deprecated">
  27546. <param name="targetPos" type="long"/>
  27547. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  27548. <doc>
  27549. <![CDATA[This method is current not supported.
  27550. @throws UnsupportedOperationException]]>
  27551. </doc>
  27552. </method>
  27553. <field name="in" type="java.io.InputStream"
  27554. transient="false" volatile="false"
  27555. static="false" final="true" visibility="protected"
  27556. deprecated="not deprecated">
  27557. <doc>
  27558. <![CDATA[The input stream to be compressed.]]>
  27559. </doc>
  27560. </field>
  27561. <field name="maxAvailableData" type="long"
  27562. transient="false" volatile="false"
  27563. static="false" final="false" visibility="protected"
  27564. deprecated="not deprecated">
  27565. </field>
  27566. <doc>
  27567. <![CDATA[A compression input stream.
  27568. <p>Implementations are assumed to be buffered. This permits clients to
  27569. reposition the underlying input stream then call {@link #resetState()},
  27570. without having to also synchronize client buffers.]]>
  27571. </doc>
  27572. </class>
  27573. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  27574. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  27575. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  27576. abstract="true"
  27577. static="false" final="false" visibility="public"
  27578. deprecated="not deprecated">
  27579. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  27580. static="false" final="false" visibility="protected"
  27581. deprecated="not deprecated">
  27582. <doc>
  27583. <![CDATA[Create a compression output stream that writes
  27584. the compressed bytes to the given stream.
  27585. @param out]]>
  27586. </doc>
  27587. </constructor>
  27588. <method name="close"
  27589. abstract="false" native="false" synchronized="false"
  27590. static="false" final="false" visibility="public"
  27591. deprecated="not deprecated">
  27592. <exception name="IOException" type="java.io.IOException"/>
  27593. </method>
  27594. <method name="flush"
  27595. abstract="false" native="false" synchronized="false"
  27596. static="false" final="false" visibility="public"
  27597. deprecated="not deprecated">
  27598. <exception name="IOException" type="java.io.IOException"/>
  27599. </method>
  27600. <method name="write"
  27601. abstract="true" native="false" synchronized="false"
  27602. static="false" final="false" visibility="public"
  27603. deprecated="not deprecated">
  27604. <param name="b" type="byte[]"/>
  27605. <param name="off" type="int"/>
  27606. <param name="len" type="int"/>
  27607. <exception name="IOException" type="java.io.IOException"/>
  27608. <doc>
  27609. <![CDATA[Write compressed bytes to the stream.
  27610. Made abstract to prevent leakage to underlying stream.]]>
  27611. </doc>
  27612. </method>
  27613. <method name="finish"
  27614. abstract="true" native="false" synchronized="false"
  27615. static="false" final="false" visibility="public"
  27616. deprecated="not deprecated">
  27617. <exception name="IOException" type="java.io.IOException"/>
  27618. <doc>
  27619. <![CDATA[Finishes writing compressed data to the output stream
  27620. without closing the underlying stream.]]>
  27621. </doc>
  27622. </method>
  27623. <method name="resetState"
  27624. abstract="true" native="false" synchronized="false"
  27625. static="false" final="false" visibility="public"
  27626. deprecated="not deprecated">
  27627. <exception name="IOException" type="java.io.IOException"/>
  27628. <doc>
  27629. <![CDATA[Reset the compression to the initial state.
  27630. Does not reset the underlying stream.]]>
  27631. </doc>
  27632. </method>
  27633. <field name="out" type="java.io.OutputStream"
  27634. transient="false" volatile="false"
  27635. static="false" final="true" visibility="protected"
  27636. deprecated="not deprecated">
  27637. <doc>
  27638. <![CDATA[The output stream to be compressed.]]>
  27639. </doc>
  27640. </field>
  27641. <doc>
  27642. <![CDATA[A compression output stream.]]>
  27643. </doc>
  27644. </class>
  27645. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  27646. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  27647. <interface name="Compressor" abstract="true"
  27648. static="false" final="false" visibility="public"
  27649. deprecated="not deprecated">
  27650. <method name="setInput"
  27651. abstract="true" native="false" synchronized="false"
  27652. static="false" final="false" visibility="public"
  27653. deprecated="not deprecated">
  27654. <param name="b" type="byte[]"/>
  27655. <param name="off" type="int"/>
  27656. <param name="len" type="int"/>
  27657. <doc>
  27658. <![CDATA[Sets input data for compression.
  27659. This should be called whenever #needsInput() returns
  27660. <code>true</code> indicating that more input data is required.
  27661. @param b Input data
  27662. @param off Start offset
  27663. @param len Length]]>
  27664. </doc>
  27665. </method>
  27666. <method name="needsInput" return="boolean"
  27667. abstract="true" native="false" synchronized="false"
  27668. static="false" final="false" visibility="public"
  27669. deprecated="not deprecated">
  27670. <doc>
  27671. <![CDATA[Returns true if the input data buffer is empty and
  27672. #setInput() should be called to provide more input.
  27673. @return <code>true</code> if the input data buffer is empty and
  27674. #setInput() should be called in order to provide more input.]]>
  27675. </doc>
  27676. </method>
  27677. <method name="setDictionary"
  27678. abstract="true" native="false" synchronized="false"
  27679. static="false" final="false" visibility="public"
  27680. deprecated="not deprecated">
  27681. <param name="b" type="byte[]"/>
  27682. <param name="off" type="int"/>
  27683. <param name="len" type="int"/>
  27684. <doc>
  27685. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  27686. is used when the history buffer can be predetermined.
  27687. @param b Dictionary data bytes
  27688. @param off Start offset
  27689. @param len Length]]>
  27690. </doc>
  27691. </method>
  27692. <method name="getBytesRead" return="long"
  27693. abstract="true" native="false" synchronized="false"
  27694. static="false" final="false" visibility="public"
  27695. deprecated="not deprecated">
  27696. <doc>
  27697. <![CDATA[Return number of uncompressed bytes input so far.]]>
  27698. </doc>
  27699. </method>
  27700. <method name="getBytesWritten" return="long"
  27701. abstract="true" native="false" synchronized="false"
  27702. static="false" final="false" visibility="public"
  27703. deprecated="not deprecated">
  27704. <doc>
  27705. <![CDATA[Return number of compressed bytes output so far.]]>
  27706. </doc>
  27707. </method>
  27708. <method name="finish"
  27709. abstract="true" native="false" synchronized="false"
  27710. static="false" final="false" visibility="public"
  27711. deprecated="not deprecated">
  27712. <doc>
  27713. <![CDATA[When called, indicates that compression should end
  27714. with the current contents of the input buffer.]]>
  27715. </doc>
  27716. </method>
  27717. <method name="finished" return="boolean"
  27718. abstract="true" native="false" synchronized="false"
  27719. static="false" final="false" visibility="public"
  27720. deprecated="not deprecated">
  27721. <doc>
  27722. <![CDATA[Returns true if the end of the compressed
  27723. data output stream has been reached.
  27724. @return <code>true</code> if the end of the compressed
  27725. data output stream has been reached.]]>
  27726. </doc>
  27727. </method>
  27728. <method name="compress" return="int"
  27729. abstract="true" native="false" synchronized="false"
  27730. static="false" final="false" visibility="public"
  27731. deprecated="not deprecated">
  27732. <param name="b" type="byte[]"/>
  27733. <param name="off" type="int"/>
  27734. <param name="len" type="int"/>
  27735. <exception name="IOException" type="java.io.IOException"/>
  27736. <doc>
  27737. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  27738. of bytes of compressed data. A return value of 0 indicates that
  27739. needsInput() should be called in order to determine if more input
  27740. data is required.
  27741. @param b Buffer for the compressed data
  27742. @param off Start offset of the data
  27743. @param len Size of the buffer
  27744. @return The actual number of bytes of compressed data.]]>
  27745. </doc>
  27746. </method>
  27747. <method name="reset"
  27748. abstract="true" native="false" synchronized="false"
  27749. static="false" final="false" visibility="public"
  27750. deprecated="not deprecated">
  27751. <doc>
  27752. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  27753. </doc>
  27754. </method>
  27755. <method name="end"
  27756. abstract="true" native="false" synchronized="false"
  27757. static="false" final="false" visibility="public"
  27758. deprecated="not deprecated">
  27759. <doc>
  27760. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  27761. </doc>
  27762. </method>
  27763. <method name="reinit"
  27764. abstract="true" native="false" synchronized="false"
  27765. static="false" final="false" visibility="public"
  27766. deprecated="not deprecated">
  27767. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27768. <doc>
  27769. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  27770. the given Configuration
  27771. @param conf Configuration from which new setting are fetched]]>
  27772. </doc>
  27773. </method>
  27774. <doc>
  27775. <![CDATA[Specification of a stream-based 'compressor' which can be
  27776. plugged into a {@link CompressionOutputStream} to compress data.
  27777. This is modelled after {@link java.util.zip.Deflater}]]>
  27778. </doc>
  27779. </interface>
  27780. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  27781. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  27782. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  27783. abstract="false"
  27784. static="false" final="false" visibility="public"
  27785. deprecated="not deprecated">
  27786. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  27787. static="false" final="false" visibility="public"
  27788. deprecated="not deprecated">
  27789. </constructor>
  27790. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  27791. static="false" final="false" visibility="public"
  27792. deprecated="not deprecated">
  27793. </constructor>
  27794. <constructor name="CompressorStream" type="java.io.OutputStream"
  27795. static="false" final="false" visibility="protected"
  27796. deprecated="not deprecated">
  27797. <doc>
  27798. <![CDATA[Allow derived classes to directly set the underlying stream.
  27799. @param out Underlying output stream.]]>
  27800. </doc>
  27801. </constructor>
  27802. <method name="write"
  27803. abstract="false" native="false" synchronized="false"
  27804. static="false" final="false" visibility="public"
  27805. deprecated="not deprecated">
  27806. <param name="b" type="byte[]"/>
  27807. <param name="off" type="int"/>
  27808. <param name="len" type="int"/>
  27809. <exception name="IOException" type="java.io.IOException"/>
  27810. </method>
  27811. <method name="compress"
  27812. abstract="false" native="false" synchronized="false"
  27813. static="false" final="false" visibility="protected"
  27814. deprecated="not deprecated">
  27815. <exception name="IOException" type="java.io.IOException"/>
  27816. </method>
  27817. <method name="finish"
  27818. abstract="false" native="false" synchronized="false"
  27819. static="false" final="false" visibility="public"
  27820. deprecated="not deprecated">
  27821. <exception name="IOException" type="java.io.IOException"/>
  27822. </method>
  27823. <method name="resetState"
  27824. abstract="false" native="false" synchronized="false"
  27825. static="false" final="false" visibility="public"
  27826. deprecated="not deprecated">
  27827. <exception name="IOException" type="java.io.IOException"/>
  27828. </method>
  27829. <method name="close"
  27830. abstract="false" native="false" synchronized="false"
  27831. static="false" final="false" visibility="public"
  27832. deprecated="not deprecated">
  27833. <exception name="IOException" type="java.io.IOException"/>
  27834. </method>
  27835. <method name="write"
  27836. abstract="false" native="false" synchronized="false"
  27837. static="false" final="false" visibility="public"
  27838. deprecated="not deprecated">
  27839. <param name="b" type="int"/>
  27840. <exception name="IOException" type="java.io.IOException"/>
  27841. </method>
  27842. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  27843. transient="false" volatile="false"
  27844. static="false" final="false" visibility="protected"
  27845. deprecated="not deprecated">
  27846. </field>
  27847. <field name="buffer" type="byte[]"
  27848. transient="false" volatile="false"
  27849. static="false" final="false" visibility="protected"
  27850. deprecated="not deprecated">
  27851. </field>
  27852. <field name="closed" type="boolean"
  27853. transient="false" volatile="false"
  27854. static="false" final="false" visibility="protected"
  27855. deprecated="not deprecated">
  27856. </field>
  27857. </class>
  27858. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  27859. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  27860. <interface name="Decompressor" abstract="true"
  27861. static="false" final="false" visibility="public"
  27862. deprecated="not deprecated">
  27863. <method name="setInput"
  27864. abstract="true" native="false" synchronized="false"
  27865. static="false" final="false" visibility="public"
  27866. deprecated="not deprecated">
  27867. <param name="b" type="byte[]"/>
  27868. <param name="off" type="int"/>
  27869. <param name="len" type="int"/>
  27870. <doc>
  27871. <![CDATA[Sets input data for decompression.
  27872. This should be called if and only if {@link #needsInput()} returns
  27873. <code>true</code> indicating that more input data is required.
  27874. (Both native and non-native versions of various Decompressors require
  27875. that the data passed in via <code>b[]</code> remain unmodified until
  27876. the caller is explicitly notified--via {@link #needsInput()}--that the
  27877. buffer may be safely modified. With this requirement, an extra
  27878. buffer-copy can be avoided.)
  27879. @param b Input data
  27880. @param off Start offset
  27881. @param len Length]]>
  27882. </doc>
  27883. </method>
  27884. <method name="needsInput" return="boolean"
  27885. abstract="true" native="false" synchronized="false"
  27886. static="false" final="false" visibility="public"
  27887. deprecated="not deprecated">
  27888. <doc>
  27889. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  27890. {@link #setInput(byte[], int, int)} should be called to
  27891. provide more input.
  27892. @return <code>true</code> if the input data buffer is empty and
  27893. {@link #setInput(byte[], int, int)} should be called in
  27894. order to provide more input.]]>
  27895. </doc>
  27896. </method>
  27897. <method name="setDictionary"
  27898. abstract="true" native="false" synchronized="false"
  27899. static="false" final="false" visibility="public"
  27900. deprecated="not deprecated">
  27901. <param name="b" type="byte[]"/>
  27902. <param name="off" type="int"/>
  27903. <param name="len" type="int"/>
  27904. <doc>
  27905. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  27906. is used when the history buffer can be predetermined.
  27907. @param b Dictionary data bytes
  27908. @param off Start offset
  27909. @param len Length]]>
  27910. </doc>
  27911. </method>
  27912. <method name="needsDictionary" return="boolean"
  27913. abstract="true" native="false" synchronized="false"
  27914. static="false" final="false" visibility="public"
  27915. deprecated="not deprecated">
  27916. <doc>
  27917. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  27918. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  27919. </doc>
  27920. </method>
  27921. <method name="finished" return="boolean"
  27922. abstract="true" native="false" synchronized="false"
  27923. static="false" final="false" visibility="public"
  27924. deprecated="not deprecated">
  27925. <doc>
  27926. <![CDATA[Returns <code>true</code> if the end of the decompressed
  27927. data output stream has been reached. Indicates a concatenated data stream
  27928. when finished() returns <code>true</code> and {@link #getRemaining()}
  27929. returns a positive value. finished() will be reset with the
  27930. {@link #reset()} method.
  27931. @return <code>true</code> if the end of the decompressed
  27932. data output stream has been reached.]]>
  27933. </doc>
  27934. </method>
  27935. <method name="decompress" return="int"
  27936. abstract="true" native="false" synchronized="false"
  27937. static="false" final="false" visibility="public"
  27938. deprecated="not deprecated">
  27939. <param name="b" type="byte[]"/>
  27940. <param name="off" type="int"/>
  27941. <param name="len" type="int"/>
  27942. <exception name="IOException" type="java.io.IOException"/>
  27943. <doc>
  27944. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  27945. of bytes of uncompressed data. A return value of 0 indicates that
  27946. {@link #needsInput()} should be called in order to determine if more
  27947. input data is required.
  27948. @param b Buffer for the compressed data
  27949. @param off Start offset of the data
  27950. @param len Size of the buffer
  27951. @return The actual number of bytes of compressed data.
  27952. @throws IOException]]>
  27953. </doc>
  27954. </method>
  27955. <method name="getRemaining" return="int"
  27956. abstract="true" native="false" synchronized="false"
  27957. static="false" final="false" visibility="public"
  27958. deprecated="not deprecated">
  27959. <doc>
  27960. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  27961. Indicates a concatenated data stream if {@link #finished()} returns
  27962. <code>true</code> and getRemaining() returns a positive value. If
  27963. {@link #finished()} returns <code>true</code> and getRemaining() returns
  27964. a zero value, indicates that the end of data stream has been reached and
  27965. is not a concatenated data stream.
  27966. @return The number of bytes remaining in the compressed data buffer.]]>
  27967. </doc>
  27968. </method>
  27969. <method name="reset"
  27970. abstract="true" native="false" synchronized="false"
  27971. static="false" final="false" visibility="public"
  27972. deprecated="not deprecated">
  27973. <doc>
  27974. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  27975. input data can be processed. If {@link #finished()}} returns
  27976. <code>true</code> and {@link #getRemaining()} returns a positive value,
  27977. reset() is called before processing of the next data stream in the
  27978. concatenated data stream. {@link #finished()} will be reset and will
  27979. return <code>false</code> when reset() is called.]]>
  27980. </doc>
  27981. </method>
  27982. <method name="end"
  27983. abstract="true" native="false" synchronized="false"
  27984. static="false" final="false" visibility="public"
  27985. deprecated="not deprecated">
  27986. <doc>
  27987. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  27988. </doc>
  27989. </method>
  27990. <doc>
  27991. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  27992. plugged into a {@link CompressionInputStream} to compress data.
  27993. This is modelled after {@link java.util.zip.Inflater}]]>
  27994. </doc>
  27995. </interface>
  27996. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  27997. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  27998. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  27999. abstract="false"
  28000. static="false" final="false" visibility="public"
  28001. deprecated="not deprecated">
  28002. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  28003. static="false" final="false" visibility="public"
  28004. deprecated="not deprecated">
  28005. <exception name="IOException" type="java.io.IOException"/>
  28006. </constructor>
  28007. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  28008. static="false" final="false" visibility="public"
  28009. deprecated="not deprecated">
  28010. <exception name="IOException" type="java.io.IOException"/>
  28011. </constructor>
  28012. <constructor name="DecompressorStream" type="java.io.InputStream"
  28013. static="false" final="false" visibility="protected"
  28014. deprecated="not deprecated">
  28015. <exception name="IOException" type="java.io.IOException"/>
  28016. <doc>
  28017. <![CDATA[Allow derived classes to directly set the underlying stream.
  28018. @param in Underlying input stream.
  28019. @throws IOException]]>
  28020. </doc>
  28021. </constructor>
  28022. <method name="read" return="int"
  28023. abstract="false" native="false" synchronized="false"
  28024. static="false" final="false" visibility="public"
  28025. deprecated="not deprecated">
  28026. <exception name="IOException" type="java.io.IOException"/>
  28027. </method>
  28028. <method name="read" return="int"
  28029. abstract="false" native="false" synchronized="false"
  28030. static="false" final="false" visibility="public"
  28031. deprecated="not deprecated">
  28032. <param name="b" type="byte[]"/>
  28033. <param name="off" type="int"/>
  28034. <param name="len" type="int"/>
  28035. <exception name="IOException" type="java.io.IOException"/>
  28036. </method>
  28037. <method name="decompress" return="int"
  28038. abstract="false" native="false" synchronized="false"
  28039. static="false" final="false" visibility="protected"
  28040. deprecated="not deprecated">
  28041. <param name="b" type="byte[]"/>
  28042. <param name="off" type="int"/>
  28043. <param name="len" type="int"/>
  28044. <exception name="IOException" type="java.io.IOException"/>
  28045. </method>
  28046. <method name="getCompressedData" return="int"
  28047. abstract="false" native="false" synchronized="false"
  28048. static="false" final="false" visibility="protected"
  28049. deprecated="not deprecated">
  28050. <exception name="IOException" type="java.io.IOException"/>
  28051. </method>
  28052. <method name="checkStream"
  28053. abstract="false" native="false" synchronized="false"
  28054. static="false" final="false" visibility="protected"
  28055. deprecated="not deprecated">
  28056. <exception name="IOException" type="java.io.IOException"/>
  28057. </method>
  28058. <method name="resetState"
  28059. abstract="false" native="false" synchronized="false"
  28060. static="false" final="false" visibility="public"
  28061. deprecated="not deprecated">
  28062. <exception name="IOException" type="java.io.IOException"/>
  28063. </method>
  28064. <method name="skip" return="long"
  28065. abstract="false" native="false" synchronized="false"
  28066. static="false" final="false" visibility="public"
  28067. deprecated="not deprecated">
  28068. <param name="n" type="long"/>
  28069. <exception name="IOException" type="java.io.IOException"/>
  28070. </method>
  28071. <method name="available" return="int"
  28072. abstract="false" native="false" synchronized="false"
  28073. static="false" final="false" visibility="public"
  28074. deprecated="not deprecated">
  28075. <exception name="IOException" type="java.io.IOException"/>
  28076. </method>
  28077. <method name="close"
  28078. abstract="false" native="false" synchronized="false"
  28079. static="false" final="false" visibility="public"
  28080. deprecated="not deprecated">
  28081. <exception name="IOException" type="java.io.IOException"/>
  28082. </method>
  28083. <method name="markSupported" return="boolean"
  28084. abstract="false" native="false" synchronized="false"
  28085. static="false" final="false" visibility="public"
  28086. deprecated="not deprecated">
  28087. </method>
  28088. <method name="mark"
  28089. abstract="false" native="false" synchronized="true"
  28090. static="false" final="false" visibility="public"
  28091. deprecated="not deprecated">
  28092. <param name="readlimit" type="int"/>
  28093. </method>
  28094. <method name="reset"
  28095. abstract="false" native="false" synchronized="true"
  28096. static="false" final="false" visibility="public"
  28097. deprecated="not deprecated">
  28098. <exception name="IOException" type="java.io.IOException"/>
  28099. </method>
  28100. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  28101. transient="false" volatile="false"
  28102. static="false" final="false" visibility="protected"
  28103. deprecated="not deprecated">
  28104. </field>
  28105. <field name="buffer" type="byte[]"
  28106. transient="false" volatile="false"
  28107. static="false" final="false" visibility="protected"
  28108. deprecated="not deprecated">
  28109. </field>
  28110. <field name="eof" type="boolean"
  28111. transient="false" volatile="false"
  28112. static="false" final="false" visibility="protected"
  28113. deprecated="not deprecated">
  28114. </field>
  28115. <field name="closed" type="boolean"
  28116. transient="false" volatile="false"
  28117. static="false" final="false" visibility="protected"
  28118. deprecated="not deprecated">
  28119. </field>
  28120. </class>
  28121. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  28122. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  28123. <class name="DefaultCodec" extends="java.lang.Object"
  28124. abstract="false"
  28125. static="false" final="false" visibility="public"
  28126. deprecated="not deprecated">
  28127. <implements name="org.apache.hadoop.conf.Configurable"/>
  28128. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  28129. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  28130. <constructor name="DefaultCodec"
  28131. static="false" final="false" visibility="public"
  28132. deprecated="not deprecated">
  28133. </constructor>
  28134. <method name="setConf"
  28135. abstract="false" native="false" synchronized="false"
  28136. static="false" final="false" visibility="public"
  28137. deprecated="not deprecated">
  28138. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28139. </method>
  28140. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28141. abstract="false" native="false" synchronized="false"
  28142. static="false" final="false" visibility="public"
  28143. deprecated="not deprecated">
  28144. </method>
  28145. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28146. abstract="false" native="false" synchronized="false"
  28147. static="false" final="false" visibility="public"
  28148. deprecated="not deprecated">
  28149. <param name="out" type="java.io.OutputStream"/>
  28150. <exception name="IOException" type="java.io.IOException"/>
  28151. </method>
  28152. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28153. abstract="false" native="false" synchronized="false"
  28154. static="false" final="false" visibility="public"
  28155. deprecated="not deprecated">
  28156. <param name="out" type="java.io.OutputStream"/>
  28157. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  28158. <exception name="IOException" type="java.io.IOException"/>
  28159. </method>
  28160. <method name="getCompressorType" return="java.lang.Class"
  28161. abstract="false" native="false" synchronized="false"
  28162. static="false" final="false" visibility="public"
  28163. deprecated="not deprecated">
  28164. </method>
  28165. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  28166. abstract="false" native="false" synchronized="false"
  28167. static="false" final="false" visibility="public"
  28168. deprecated="not deprecated">
  28169. </method>
  28170. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28171. abstract="false" native="false" synchronized="false"
  28172. static="false" final="false" visibility="public"
  28173. deprecated="not deprecated">
  28174. <param name="in" type="java.io.InputStream"/>
  28175. <exception name="IOException" type="java.io.IOException"/>
  28176. </method>
  28177. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28178. abstract="false" native="false" synchronized="false"
  28179. static="false" final="false" visibility="public"
  28180. deprecated="not deprecated">
  28181. <param name="in" type="java.io.InputStream"/>
  28182. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  28183. <exception name="IOException" type="java.io.IOException"/>
  28184. </method>
  28185. <method name="getDecompressorType" return="java.lang.Class"
  28186. abstract="false" native="false" synchronized="false"
  28187. static="false" final="false" visibility="public"
  28188. deprecated="not deprecated">
  28189. </method>
  28190. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  28191. abstract="false" native="false" synchronized="false"
  28192. static="false" final="false" visibility="public"
  28193. deprecated="not deprecated">
  28194. </method>
  28195. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  28196. abstract="false" native="false" synchronized="false"
  28197. static="false" final="false" visibility="public"
  28198. deprecated="not deprecated">
  28199. <doc>
  28200. <![CDATA[{@inheritDoc}]]>
  28201. </doc>
  28202. </method>
  28203. <method name="getDefaultExtension" return="java.lang.String"
  28204. abstract="false" native="false" synchronized="false"
  28205. static="false" final="false" visibility="public"
  28206. deprecated="not deprecated">
  28207. </method>
  28208. </class>
  28209. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  28210. <!-- start class org.apache.hadoop.io.compress.DeflateCodec -->
  28211. <class name="DeflateCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  28212. abstract="false"
  28213. static="false" final="false" visibility="public"
  28214. deprecated="not deprecated">
  28215. <constructor name="DeflateCodec"
  28216. static="false" final="false" visibility="public"
  28217. deprecated="not deprecated">
  28218. </constructor>
  28219. <doc>
  28220. <![CDATA[Alias class for DefaultCodec to enable codec discovery by 'deflate' name.]]>
  28221. </doc>
  28222. </class>
  28223. <!-- end class org.apache.hadoop.io.compress.DeflateCodec -->
  28224. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  28225. <interface name="DirectDecompressionCodec" abstract="true"
  28226. static="false" final="false" visibility="public"
  28227. deprecated="not deprecated">
  28228. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  28229. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  28230. abstract="true" native="false" synchronized="false"
  28231. static="false" final="false" visibility="public"
  28232. deprecated="not deprecated">
  28233. <doc>
  28234. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  28235. @return a new direct decompressor for use by this codec]]>
  28236. </doc>
  28237. </method>
  28238. <doc>
  28239. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  28240. </doc>
  28241. </interface>
  28242. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  28243. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  28244. <interface name="DirectDecompressor" abstract="true"
  28245. static="false" final="false" visibility="public"
  28246. deprecated="not deprecated">
  28247. <method name="decompress"
  28248. abstract="true" native="false" synchronized="false"
  28249. static="false" final="false" visibility="public"
  28250. deprecated="not deprecated">
  28251. <param name="src" type="java.nio.ByteBuffer"/>
  28252. <param name="dst" type="java.nio.ByteBuffer"/>
  28253. <exception name="IOException" type="java.io.IOException"/>
  28254. </method>
  28255. <doc>
  28256. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  28257. </doc>
  28258. </interface>
  28259. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  28260. <!-- start class org.apache.hadoop.io.compress.DoNotPool -->
  28261. <class name="DoNotPool" abstract="true"
  28262. static="false" final="false" visibility="public"
  28263. deprecated="not deprecated">
  28264. <implements name="java.lang.annotation.Annotation"/>
  28265. <doc>
  28266. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  28267. type as not to be pooled.]]>
  28268. </doc>
  28269. </class>
  28270. <!-- end class org.apache.hadoop.io.compress.DoNotPool -->
  28271. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  28272. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  28273. abstract="false"
  28274. static="false" final="false" visibility="public"
  28275. deprecated="not deprecated">
  28276. <constructor name="GzipCodec"
  28277. static="false" final="false" visibility="public"
  28278. deprecated="not deprecated">
  28279. </constructor>
  28280. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28281. abstract="false" native="false" synchronized="false"
  28282. static="false" final="false" visibility="public"
  28283. deprecated="not deprecated">
  28284. <param name="out" type="java.io.OutputStream"/>
  28285. <exception name="IOException" type="java.io.IOException"/>
  28286. </method>
  28287. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28288. abstract="false" native="false" synchronized="false"
  28289. static="false" final="false" visibility="public"
  28290. deprecated="not deprecated">
  28291. <param name="out" type="java.io.OutputStream"/>
  28292. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  28293. <exception name="IOException" type="java.io.IOException"/>
  28294. </method>
  28295. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  28296. abstract="false" native="false" synchronized="false"
  28297. static="false" final="false" visibility="public"
  28298. deprecated="not deprecated">
  28299. </method>
  28300. <method name="getCompressorType" return="java.lang.Class"
  28301. abstract="false" native="false" synchronized="false"
  28302. static="false" final="false" visibility="public"
  28303. deprecated="not deprecated">
  28304. </method>
  28305. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28306. abstract="false" native="false" synchronized="false"
  28307. static="false" final="false" visibility="public"
  28308. deprecated="not deprecated">
  28309. <param name="in" type="java.io.InputStream"/>
  28310. <exception name="IOException" type="java.io.IOException"/>
  28311. </method>
  28312. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28313. abstract="false" native="false" synchronized="false"
  28314. static="false" final="false" visibility="public"
  28315. deprecated="not deprecated">
  28316. <param name="in" type="java.io.InputStream"/>
  28317. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  28318. <exception name="IOException" type="java.io.IOException"/>
  28319. </method>
  28320. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  28321. abstract="false" native="false" synchronized="false"
  28322. static="false" final="false" visibility="public"
  28323. deprecated="not deprecated">
  28324. </method>
  28325. <method name="getDecompressorType" return="java.lang.Class"
  28326. abstract="false" native="false" synchronized="false"
  28327. static="false" final="false" visibility="public"
  28328. deprecated="not deprecated">
  28329. </method>
  28330. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  28331. abstract="false" native="false" synchronized="false"
  28332. static="false" final="false" visibility="public"
  28333. deprecated="not deprecated">
  28334. </method>
  28335. <method name="getDefaultExtension" return="java.lang.String"
  28336. abstract="false" native="false" synchronized="false"
  28337. static="false" final="false" visibility="public"
  28338. deprecated="not deprecated">
  28339. </method>
  28340. <doc>
  28341. <![CDATA[This class creates gzip compressors/decompressors.]]>
  28342. </doc>
  28343. </class>
  28344. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  28345. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  28346. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  28347. abstract="false"
  28348. static="true" final="false" visibility="protected"
  28349. deprecated="not deprecated">
  28350. <constructor name="GzipOutputStream" type="java.io.OutputStream"
  28351. static="false" final="false" visibility="public"
  28352. deprecated="not deprecated">
  28353. <exception name="IOException" type="java.io.IOException"/>
  28354. </constructor>
  28355. <constructor name="GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  28356. static="false" final="false" visibility="protected"
  28357. deprecated="not deprecated">
  28358. <doc>
  28359. <![CDATA[Allow children types to put a different type in here.
  28360. @param out the Deflater stream to use]]>
  28361. </doc>
  28362. </constructor>
  28363. <method name="close"
  28364. abstract="false" native="false" synchronized="false"
  28365. static="false" final="false" visibility="public"
  28366. deprecated="not deprecated">
  28367. <exception name="IOException" type="java.io.IOException"/>
  28368. </method>
  28369. <method name="flush"
  28370. abstract="false" native="false" synchronized="false"
  28371. static="false" final="false" visibility="public"
  28372. deprecated="not deprecated">
  28373. <exception name="IOException" type="java.io.IOException"/>
  28374. </method>
  28375. <method name="write"
  28376. abstract="false" native="false" synchronized="false"
  28377. static="false" final="false" visibility="public"
  28378. deprecated="not deprecated">
  28379. <param name="b" type="int"/>
  28380. <exception name="IOException" type="java.io.IOException"/>
  28381. </method>
  28382. <method name="write"
  28383. abstract="false" native="false" synchronized="false"
  28384. static="false" final="false" visibility="public"
  28385. deprecated="not deprecated">
  28386. <param name="data" type="byte[]"/>
  28387. <param name="offset" type="int"/>
  28388. <param name="length" type="int"/>
  28389. <exception name="IOException" type="java.io.IOException"/>
  28390. </method>
  28391. <method name="finish"
  28392. abstract="false" native="false" synchronized="false"
  28393. static="false" final="false" visibility="public"
  28394. deprecated="not deprecated">
  28395. <exception name="IOException" type="java.io.IOException"/>
  28396. </method>
  28397. <method name="resetState"
  28398. abstract="false" native="false" synchronized="false"
  28399. static="false" final="false" visibility="public"
  28400. deprecated="not deprecated">
  28401. <exception name="IOException" type="java.io.IOException"/>
  28402. </method>
  28403. <doc>
  28404. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  28405. a CompressionOutputStream.]]>
  28406. </doc>
  28407. </class>
  28408. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  28409. <!-- start class org.apache.hadoop.io.compress.Lz4Codec -->
  28410. <class name="Lz4Codec" extends="java.lang.Object"
  28411. abstract="false"
  28412. static="false" final="false" visibility="public"
  28413. deprecated="not deprecated">
  28414. <implements name="org.apache.hadoop.conf.Configurable"/>
  28415. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  28416. <constructor name="Lz4Codec"
  28417. static="false" final="false" visibility="public"
  28418. deprecated="not deprecated">
  28419. </constructor>
  28420. <method name="setConf"
  28421. abstract="false" native="false" synchronized="false"
  28422. static="false" final="false" visibility="public"
  28423. deprecated="not deprecated">
  28424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28425. <doc>
  28426. <![CDATA[Set the configuration to be used by this object.
  28427. @param conf the configuration object.]]>
  28428. </doc>
  28429. </method>
  28430. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28431. abstract="false" native="false" synchronized="false"
  28432. static="false" final="false" visibility="public"
  28433. deprecated="not deprecated">
  28434. <doc>
  28435. <![CDATA[Return the configuration used by this object.
  28436. @return the configuration object used by this objec.]]>
  28437. </doc>
  28438. </method>
  28439. <method name="isNativeCodeLoaded" return="boolean"
  28440. abstract="false" native="false" synchronized="false"
  28441. static="true" final="false" visibility="public"
  28442. deprecated="not deprecated">
  28443. <doc>
  28444. <![CDATA[Are the native lz4 libraries loaded & initialized?
  28445. @return true if loaded & initialized, otherwise false]]>
  28446. </doc>
  28447. </method>
  28448. <method name="getLibraryName" return="java.lang.String"
  28449. abstract="false" native="false" synchronized="false"
  28450. static="true" final="false" visibility="public"
  28451. deprecated="not deprecated">
  28452. </method>
  28453. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28454. abstract="false" native="false" synchronized="false"
  28455. static="false" final="false" visibility="public"
  28456. deprecated="not deprecated">
  28457. <param name="out" type="java.io.OutputStream"/>
  28458. <exception name="IOException" type="java.io.IOException"/>
  28459. <doc>
  28460. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  28461. {@link OutputStream}.
  28462. @param out the location for the final output stream
  28463. @return a stream the user can write uncompressed data to have it compressed
  28464. @throws IOException]]>
  28465. </doc>
  28466. </method>
  28467. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28468. abstract="false" native="false" synchronized="false"
  28469. static="false" final="false" visibility="public"
  28470. deprecated="not deprecated">
  28471. <param name="out" type="java.io.OutputStream"/>
  28472. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  28473. <exception name="IOException" type="java.io.IOException"/>
  28474. <doc>
  28475. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  28476. {@link OutputStream} with the given {@link Compressor}.
  28477. @param out the location for the final output stream
  28478. @param compressor compressor to use
  28479. @return a stream the user can write uncompressed data to have it compressed
  28480. @throws IOException]]>
  28481. </doc>
  28482. </method>
  28483. <method name="getCompressorType" return="java.lang.Class"
  28484. abstract="false" native="false" synchronized="false"
  28485. static="false" final="false" visibility="public"
  28486. deprecated="not deprecated">
  28487. <doc>
  28488. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  28489. @return the type of compressor needed by this codec.]]>
  28490. </doc>
  28491. </method>
  28492. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  28493. abstract="false" native="false" synchronized="false"
  28494. static="false" final="false" visibility="public"
  28495. deprecated="not deprecated">
  28496. <doc>
  28497. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  28498. @return a new compressor for use by this codec]]>
  28499. </doc>
  28500. </method>
  28501. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28502. abstract="false" native="false" synchronized="false"
  28503. static="false" final="false" visibility="public"
  28504. deprecated="not deprecated">
  28505. <param name="in" type="java.io.InputStream"/>
  28506. <exception name="IOException" type="java.io.IOException"/>
  28507. <doc>
  28508. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  28509. input stream.
  28510. @param in the stream to read compressed bytes from
  28511. @return a stream to read uncompressed bytes from
  28512. @throws IOException]]>
  28513. </doc>
  28514. </method>
  28515. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28516. abstract="false" native="false" synchronized="false"
  28517. static="false" final="false" visibility="public"
  28518. deprecated="not deprecated">
  28519. <param name="in" type="java.io.InputStream"/>
  28520. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  28521. <exception name="IOException" type="java.io.IOException"/>
  28522. <doc>
  28523. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  28524. {@link InputStream} with the given {@link Decompressor}.
  28525. @param in the stream to read compressed bytes from
  28526. @param decompressor decompressor to use
  28527. @return a stream to read uncompressed bytes from
  28528. @throws IOException]]>
  28529. </doc>
  28530. </method>
  28531. <method name="getDecompressorType" return="java.lang.Class"
  28532. abstract="false" native="false" synchronized="false"
  28533. static="false" final="false" visibility="public"
  28534. deprecated="not deprecated">
  28535. <doc>
  28536. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  28537. @return the type of decompressor needed by this codec.]]>
  28538. </doc>
  28539. </method>
  28540. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  28541. abstract="false" native="false" synchronized="false"
  28542. static="false" final="false" visibility="public"
  28543. deprecated="not deprecated">
  28544. <doc>
  28545. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  28546. @return a new decompressor for use by this codec]]>
  28547. </doc>
  28548. </method>
  28549. <method name="getDefaultExtension" return="java.lang.String"
  28550. abstract="false" native="false" synchronized="false"
  28551. static="false" final="false" visibility="public"
  28552. deprecated="not deprecated">
  28553. <doc>
  28554. <![CDATA[Get the default filename extension for this kind of compression.
  28555. @return <code>.lz4</code>.]]>
  28556. </doc>
  28557. </method>
  28558. <doc>
  28559. <![CDATA[This class creates lz4 compressors/decompressors.]]>
  28560. </doc>
  28561. </class>
  28562. <!-- end class org.apache.hadoop.io.compress.Lz4Codec -->
  28563. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  28564. <class name="SnappyCodec" extends="java.lang.Object"
  28565. abstract="false"
  28566. static="false" final="false" visibility="public"
  28567. deprecated="not deprecated">
  28568. <implements name="org.apache.hadoop.conf.Configurable"/>
  28569. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  28570. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  28571. <constructor name="SnappyCodec"
  28572. static="false" final="false" visibility="public"
  28573. deprecated="not deprecated">
  28574. </constructor>
  28575. <method name="setConf"
  28576. abstract="false" native="false" synchronized="false"
  28577. static="false" final="false" visibility="public"
  28578. deprecated="not deprecated">
  28579. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28580. <doc>
  28581. <![CDATA[Set the configuration to be used by this object.
  28582. @param conf the configuration object.]]>
  28583. </doc>
  28584. </method>
  28585. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28586. abstract="false" native="false" synchronized="false"
  28587. static="false" final="false" visibility="public"
  28588. deprecated="not deprecated">
  28589. <doc>
  28590. <![CDATA[Return the configuration used by this object.
  28591. @return the configuration object used by this objec.]]>
  28592. </doc>
  28593. </method>
  28594. <method name="checkNativeCodeLoaded"
  28595. abstract="false" native="false" synchronized="false"
  28596. static="true" final="false" visibility="public"
  28597. deprecated="not deprecated">
  28598. <doc>
  28599. <![CDATA[Are the native snappy libraries loaded & initialized?]]>
  28600. </doc>
  28601. </method>
  28602. <method name="isNativeCodeLoaded" return="boolean"
  28603. abstract="false" native="false" synchronized="false"
  28604. static="true" final="false" visibility="public"
  28605. deprecated="not deprecated">
  28606. </method>
  28607. <method name="getLibraryName" return="java.lang.String"
  28608. abstract="false" native="false" synchronized="false"
  28609. static="true" final="false" visibility="public"
  28610. deprecated="not deprecated">
  28611. </method>
  28612. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28613. abstract="false" native="false" synchronized="false"
  28614. static="false" final="false" visibility="public"
  28615. deprecated="not deprecated">
  28616. <param name="out" type="java.io.OutputStream"/>
  28617. <exception name="IOException" type="java.io.IOException"/>
  28618. <doc>
  28619. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  28620. {@link OutputStream}.
  28621. @param out the location for the final output stream
  28622. @return a stream the user can write uncompressed data to have it compressed
  28623. @throws IOException]]>
  28624. </doc>
  28625. </method>
  28626. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  28627. abstract="false" native="false" synchronized="false"
  28628. static="false" final="false" visibility="public"
  28629. deprecated="not deprecated">
  28630. <param name="out" type="java.io.OutputStream"/>
  28631. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  28632. <exception name="IOException" type="java.io.IOException"/>
  28633. <doc>
  28634. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  28635. {@link OutputStream} with the given {@link Compressor}.
  28636. @param out the location for the final output stream
  28637. @param compressor compressor to use
  28638. @return a stream the user can write uncompressed data to have it compressed
  28639. @throws IOException]]>
  28640. </doc>
  28641. </method>
  28642. <method name="getCompressorType" return="java.lang.Class"
  28643. abstract="false" native="false" synchronized="false"
  28644. static="false" final="false" visibility="public"
  28645. deprecated="not deprecated">
  28646. <doc>
  28647. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  28648. @return the type of compressor needed by this codec.]]>
  28649. </doc>
  28650. </method>
  28651. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  28652. abstract="false" native="false" synchronized="false"
  28653. static="false" final="false" visibility="public"
  28654. deprecated="not deprecated">
  28655. <doc>
  28656. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  28657. @return a new compressor for use by this codec]]>
  28658. </doc>
  28659. </method>
  28660. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28661. abstract="false" native="false" synchronized="false"
  28662. static="false" final="false" visibility="public"
  28663. deprecated="not deprecated">
  28664. <param name="in" type="java.io.InputStream"/>
  28665. <exception name="IOException" type="java.io.IOException"/>
  28666. <doc>
  28667. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  28668. input stream.
  28669. @param in the stream to read compressed bytes from
  28670. @return a stream to read uncompressed bytes from
  28671. @throws IOException]]>
  28672. </doc>
  28673. </method>
  28674. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  28675. abstract="false" native="false" synchronized="false"
  28676. static="false" final="false" visibility="public"
  28677. deprecated="not deprecated">
  28678. <param name="in" type="java.io.InputStream"/>
  28679. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  28680. <exception name="IOException" type="java.io.IOException"/>
  28681. <doc>
  28682. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  28683. {@link InputStream} with the given {@link Decompressor}.
  28684. @param in the stream to read compressed bytes from
  28685. @param decompressor decompressor to use
  28686. @return a stream to read uncompressed bytes from
  28687. @throws IOException]]>
  28688. </doc>
  28689. </method>
  28690. <method name="getDecompressorType" return="java.lang.Class"
  28691. abstract="false" native="false" synchronized="false"
  28692. static="false" final="false" visibility="public"
  28693. deprecated="not deprecated">
  28694. <doc>
  28695. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  28696. @return the type of decompressor needed by this codec.]]>
  28697. </doc>
  28698. </method>
  28699. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  28700. abstract="false" native="false" synchronized="false"
  28701. static="false" final="false" visibility="public"
  28702. deprecated="not deprecated">
  28703. <doc>
  28704. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  28705. @return a new decompressor for use by this codec]]>
  28706. </doc>
  28707. </method>
  28708. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  28709. abstract="false" native="false" synchronized="false"
  28710. static="false" final="false" visibility="public"
  28711. deprecated="not deprecated">
  28712. <doc>
  28713. <![CDATA[{@inheritDoc}]]>
  28714. </doc>
  28715. </method>
  28716. <method name="getDefaultExtension" return="java.lang.String"
  28717. abstract="false" native="false" synchronized="false"
  28718. static="false" final="false" visibility="public"
  28719. deprecated="not deprecated">
  28720. <doc>
  28721. <![CDATA[Get the default filename extension for this kind of compression.
  28722. @return <code>.snappy</code>.]]>
  28723. </doc>
  28724. </method>
  28725. <doc>
  28726. <![CDATA[This class creates snappy compressors/decompressors.]]>
  28727. </doc>
  28728. </class>
  28729. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  28730. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  28731. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  28732. abstract="true"
  28733. static="false" final="false" visibility="public"
  28734. deprecated="not deprecated">
  28735. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  28736. static="false" final="false" visibility="public"
  28737. deprecated="not deprecated">
  28738. <exception name="IOException" type="java.io.IOException"/>
  28739. </constructor>
  28740. <method name="setStart"
  28741. abstract="false" native="false" synchronized="false"
  28742. static="false" final="false" visibility="protected"
  28743. deprecated="not deprecated">
  28744. <param name="start" type="long"/>
  28745. </method>
  28746. <method name="setEnd"
  28747. abstract="false" native="false" synchronized="false"
  28748. static="false" final="false" visibility="protected"
  28749. deprecated="not deprecated">
  28750. <param name="end" type="long"/>
  28751. </method>
  28752. <method name="getAdjustedStart" return="long"
  28753. abstract="false" native="false" synchronized="false"
  28754. static="false" final="false" visibility="public"
  28755. deprecated="not deprecated">
  28756. <doc>
  28757. <![CDATA[After calling createInputStream, the values of start or end
  28758. might change. So this method can be used to get the new value of start.
  28759. @return The changed value of start]]>
  28760. </doc>
  28761. </method>
  28762. <method name="getAdjustedEnd" return="long"
  28763. abstract="false" native="false" synchronized="false"
  28764. static="false" final="false" visibility="public"
  28765. deprecated="not deprecated">
  28766. <doc>
  28767. <![CDATA[After calling createInputStream, the values of start or end
  28768. might change. So this method can be used to get the new value of end.
  28769. @return The changed value of end]]>
  28770. </doc>
  28771. </method>
  28772. <doc>
  28773. <![CDATA[An InputStream covering a range of compressed data. The start and end
  28774. offsets requested by a client may be modified by the codec to fit block
  28775. boundaries or other algorithm-dependent requirements.]]>
  28776. </doc>
  28777. </class>
  28778. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  28779. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  28780. <interface name="SplittableCompressionCodec" abstract="true"
  28781. static="false" final="false" visibility="public"
  28782. deprecated="not deprecated">
  28783. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  28784. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  28785. abstract="true" native="false" synchronized="false"
  28786. static="false" final="false" visibility="public"
  28787. deprecated="not deprecated">
  28788. <param name="seekableIn" type="java.io.InputStream"/>
  28789. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  28790. <param name="start" type="long"/>
  28791. <param name="end" type="long"/>
  28792. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  28793. <exception name="IOException" type="java.io.IOException"/>
  28794. <doc>
  28795. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  28796. the codecs wants the ability to work with the underlying stream positions.
  28797. @param seekableIn The seekable input stream (seeks in compressed data)
  28798. @param start The start offset into the compressed stream. May be changed
  28799. by the underlying codec.
  28800. @param end The end offset into the compressed stream. May be changed by
  28801. the underlying codec.
  28802. @param readMode Controls whether stream position is reported continuously
  28803. from the compressed stream only only at block boundaries.
  28804. @return a stream to read uncompressed bytes from]]>
  28805. </doc>
  28806. </method>
  28807. <doc>
  28808. <![CDATA[This interface is meant to be implemented by those compression codecs
  28809. which are capable to compress / de-compress a stream starting at any
  28810. arbitrary position.
  28811. Especially the process of de-compressing a stream starting at some arbitrary
  28812. position is challenging. Most of the codecs are only able to successfully
  28813. de-compress a stream, if they start from the very beginning till the end.
  28814. One of the reasons is the stored state at the beginning of the stream which
  28815. is crucial for de-compression.
  28816. Yet there are few codecs which do not save the whole state at the beginning
  28817. of the stream and hence can be used to de-compress stream starting at any
  28818. arbitrary points. This interface is meant to be used by such codecs. Such
  28819. codecs are highly valuable, especially in the context of Hadoop, because
  28820. an input compressed file can be split and hence can be worked on by multiple
  28821. machines in parallel.]]>
  28822. </doc>
  28823. </interface>
  28824. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  28825. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  28826. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  28827. abstract="false"
  28828. static="true" final="true" visibility="public"
  28829. deprecated="not deprecated">
  28830. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  28831. abstract="false" native="false" synchronized="false"
  28832. static="true" final="false" visibility="public"
  28833. deprecated="not deprecated">
  28834. </method>
  28835. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  28836. abstract="false" native="false" synchronized="false"
  28837. static="true" final="false" visibility="public"
  28838. deprecated="not deprecated">
  28839. <param name="name" type="java.lang.String"/>
  28840. </method>
  28841. <doc>
  28842. <![CDATA[During decompression, data can be read off from the decompressor in two
  28843. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  28844. of compressing data in blocks and then decompressing the blocks. In
  28845. Blocked reading mode codecs inform 'end of block' events to its caller.
  28846. While in continuous mode, the caller of codecs is unaware about the blocks
  28847. and uncompressed data is spilled out like a continuous stream.]]>
  28848. </doc>
  28849. </class>
  28850. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  28851. </package>
  28852. <package name="org.apache.hadoop.io.file.tfile">
  28853. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  28854. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  28855. abstract="false"
  28856. static="false" final="false" visibility="public"
  28857. deprecated="not deprecated">
  28858. <doc>
  28859. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  28860. </doc>
  28861. </class>
  28862. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  28863. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  28864. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  28865. abstract="false"
  28866. static="false" final="false" visibility="public"
  28867. deprecated="not deprecated">
  28868. <doc>
  28869. <![CDATA[Exception - No such Meta Block with the given name.]]>
  28870. </doc>
  28871. </class>
  28872. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  28873. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  28874. <interface name="RawComparable" abstract="true"
  28875. static="false" final="false" visibility="public"
  28876. deprecated="not deprecated">
  28877. <method name="buffer" return="byte[]"
  28878. abstract="true" native="false" synchronized="false"
  28879. static="false" final="false" visibility="public"
  28880. deprecated="not deprecated">
  28881. <doc>
  28882. <![CDATA[Get the underlying byte array.
  28883. @return The underlying byte array.]]>
  28884. </doc>
  28885. </method>
  28886. <method name="offset" return="int"
  28887. abstract="true" native="false" synchronized="false"
  28888. static="false" final="false" visibility="public"
  28889. deprecated="not deprecated">
  28890. <doc>
  28891. <![CDATA[Get the offset of the first byte in the byte array.
  28892. @return The offset of the first byte in the byte array.]]>
  28893. </doc>
  28894. </method>
  28895. <method name="size" return="int"
  28896. abstract="true" native="false" synchronized="false"
  28897. static="false" final="false" visibility="public"
  28898. deprecated="not deprecated">
  28899. <doc>
  28900. <![CDATA[Get the size of the byte range in the byte array.
  28901. @return The size of the byte range in the byte array.]]>
  28902. </doc>
  28903. </method>
  28904. <doc>
  28905. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  28906. This is useful in places where we need a single object reference to specify a
  28907. range of bytes in a byte array, such as {@link Comparable} or
  28908. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  28909. The actual comparison among RawComparable's requires an external
  28910. RawComparator and it is applications' responsibility to ensure two
  28911. RawComparable are supposed to be semantically comparable with the same
  28912. RawComparator.]]>
  28913. </doc>
  28914. </interface>
  28915. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  28916. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  28917. <class name="TFile" extends="java.lang.Object"
  28918. abstract="false"
  28919. static="false" final="false" visibility="public"
  28920. deprecated="not deprecated">
  28921. <method name="makeComparator" return="java.util.Comparator"
  28922. abstract="false" native="false" synchronized="false"
  28923. static="true" final="false" visibility="public"
  28924. deprecated="not deprecated">
  28925. <param name="name" type="java.lang.String"/>
  28926. <doc>
  28927. <![CDATA[Make a raw comparator from a string name.
  28928. @param name
  28929. Comparator name
  28930. @return A RawComparable comparator.]]>
  28931. </doc>
  28932. </method>
  28933. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  28934. abstract="false" native="false" synchronized="false"
  28935. static="true" final="false" visibility="public"
  28936. deprecated="not deprecated">
  28937. <doc>
  28938. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  28939. TFile.Writer.
  28940. @return Array of strings, each represents a supported compression
  28941. algorithm. Currently, the following compression algorithms are
  28942. supported.
  28943. <ul>
  28944. <li>"none" - No compression.
  28945. <li>"lzo" - LZO compression.
  28946. <li>"gz" - GZIP compression.
  28947. </ul>]]>
  28948. </doc>
  28949. </method>
  28950. <method name="main"
  28951. abstract="false" native="false" synchronized="false"
  28952. static="true" final="false" visibility="public"
  28953. deprecated="not deprecated">
  28954. <param name="args" type="java.lang.String[]"/>
  28955. <doc>
  28956. <![CDATA[Dumping the TFile information.
  28957. @param args
  28958. A list of TFile paths.]]>
  28959. </doc>
  28960. </method>
  28961. <field name="COMPRESSION_GZ" type="java.lang.String"
  28962. transient="false" volatile="false"
  28963. static="true" final="true" visibility="public"
  28964. deprecated="not deprecated">
  28965. <doc>
  28966. <![CDATA[compression: gzip]]>
  28967. </doc>
  28968. </field>
  28969. <field name="COMPRESSION_LZO" type="java.lang.String"
  28970. transient="false" volatile="false"
  28971. static="true" final="true" visibility="public"
  28972. deprecated="not deprecated">
  28973. <doc>
  28974. <![CDATA[compression: lzo]]>
  28975. </doc>
  28976. </field>
  28977. <field name="COMPRESSION_NONE" type="java.lang.String"
  28978. transient="false" volatile="false"
  28979. static="true" final="true" visibility="public"
  28980. deprecated="not deprecated">
  28981. <doc>
  28982. <![CDATA[compression: none]]>
  28983. </doc>
  28984. </field>
  28985. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  28986. transient="false" volatile="false"
  28987. static="true" final="true" visibility="public"
  28988. deprecated="not deprecated">
  28989. <doc>
  28990. <![CDATA[comparator: memcmp]]>
  28991. </doc>
  28992. </field>
  28993. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  28994. transient="false" volatile="false"
  28995. static="true" final="true" visibility="public"
  28996. deprecated="not deprecated">
  28997. <doc>
  28998. <![CDATA[comparator prefix: java class]]>
  28999. </doc>
  29000. </field>
  29001. <doc>
  29002. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  29003. bytes. Keys are restricted to 64KB, value length is not restricted
  29004. (practically limited to the available disk storage). TFile further provides
  29005. the following features:
  29006. <ul>
  29007. <li>Block Compression.
  29008. <li>Named meta data blocks.
  29009. <li>Sorted or unsorted keys.
  29010. <li>Seek by key or by file offset.
  29011. </ul>
  29012. The memory footprint of a TFile includes the following:
  29013. <ul>
  29014. <li>Some constant overhead of reading or writing a compressed block.
  29015. <ul>
  29016. <li>Each compressed block requires one compression/decompression codec for
  29017. I/O.
  29018. <li>Temporary space to buffer the key.
  29019. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  29020. chunk encoded, so that we buffer at most one chunk of user data. By default,
  29021. the chunk buffer is 1MB. Reading chunked value does not require additional
  29022. memory.
  29023. </ul>
  29024. <li>TFile index, which is proportional to the total number of Data Blocks.
  29025. The total amount of memory needed to hold the index can be estimated as
  29026. (56+AvgKeySize)*NumBlocks.
  29027. <li>MetaBlock index, which is proportional to the total number of Meta
  29028. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  29029. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  29030. </ul>
  29031. <p>
  29032. The behavior of TFile can be customized by the following variables through
  29033. Configuration:
  29034. <ul>
  29035. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  29036. to 1MB. Values of the length less than the chunk size is guaranteed to have
  29037. known value length in read time (See
  29038. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  29039. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  29040. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  29041. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  29042. FSDataInputStream. Integer (in bytes). Default to 256KB.
  29043. </ul>
  29044. <p>
  29045. Suggestions on performance optimization.
  29046. <ul>
  29047. <li>Minimum block size. We recommend a setting of minimum block size between
  29048. 256KB to 1MB for general usage. Larger block size is preferred if files are
  29049. primarily for sequential access. However, it would lead to inefficient random
  29050. access (because there are more data to decompress). Smaller blocks are good
  29051. for random access, but require more memory to hold the block index, and may
  29052. be slower to create (because we must flush the compressor stream at the
  29053. conclusion of each data block, which leads to an FS I/O flush). Further, due
  29054. to the internal caching in Compression codec, the smallest possible block
  29055. size would be around 20KB-30KB.
  29056. <li>The current implementation does not offer true multi-threading for
  29057. reading. The implementation uses FSDataInputStream seek()+read(), which is
  29058. shown to be much faster than positioned-read call in single thread mode.
  29059. However, it also means that if multiple threads attempt to access the same
  29060. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  29061. sequentially even if they access different DFS blocks.
  29062. <li>Compression codec. Use "none" if the data is not very compressable (by
  29063. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  29064. as the starting point for experimenting. "gz" overs slightly better
  29065. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  29066. decompress, comparing to "lzo".
  29067. <li>File system buffering, if the underlying FSDataInputStream and
  29068. FSDataOutputStream is already adequately buffered; or if applications
  29069. reads/writes keys and values in large buffers, we can reduce the sizes of
  29070. input/output buffering in TFile layer by setting the configuration parameters
  29071. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  29072. </ul>
  29073. Some design rationale behind TFile can be found at <a
  29074. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  29075. </doc>
  29076. </class>
  29077. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  29078. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  29079. <class name="TFile.Reader" extends="java.lang.Object"
  29080. abstract="false"
  29081. static="true" final="false" visibility="public"
  29082. deprecated="not deprecated">
  29083. <implements name="java.io.Closeable"/>
  29084. <constructor name="Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  29085. static="false" final="false" visibility="public"
  29086. deprecated="not deprecated">
  29087. <exception name="IOException" type="java.io.IOException"/>
  29088. <doc>
  29089. <![CDATA[Constructor
  29090. @param fsdis
  29091. FS input stream of the TFile.
  29092. @param fileLength
  29093. The length of TFile. This is required because we have no easy
  29094. way of knowing the actual size of the input file through the
  29095. File input stream.
  29096. @param conf
  29097. @throws IOException]]>
  29098. </doc>
  29099. </constructor>
  29100. <method name="close"
  29101. abstract="false" native="false" synchronized="false"
  29102. static="false" final="false" visibility="public"
  29103. deprecated="not deprecated">
  29104. <exception name="IOException" type="java.io.IOException"/>
  29105. <doc>
  29106. <![CDATA[Close the reader. The state of the Reader object is undefined after
  29107. close. Calling close() for multiple times has no effect.]]>
  29108. </doc>
  29109. </method>
  29110. <method name="getComparatorName" return="java.lang.String"
  29111. abstract="false" native="false" synchronized="false"
  29112. static="false" final="false" visibility="public"
  29113. deprecated="not deprecated">
  29114. <doc>
  29115. <![CDATA[Get the string representation of the comparator.
  29116. @return If the TFile is not sorted by keys, an empty string will be
  29117. returned. Otherwise, the actual comparator string that is
  29118. provided during the TFile creation time will be returned.]]>
  29119. </doc>
  29120. </method>
  29121. <method name="isSorted" return="boolean"
  29122. abstract="false" native="false" synchronized="false"
  29123. static="false" final="false" visibility="public"
  29124. deprecated="not deprecated">
  29125. <doc>
  29126. <![CDATA[Is the TFile sorted?
  29127. @return true if TFile is sorted.]]>
  29128. </doc>
  29129. </method>
  29130. <method name="getEntryCount" return="long"
  29131. abstract="false" native="false" synchronized="false"
  29132. static="false" final="false" visibility="public"
  29133. deprecated="not deprecated">
  29134. <doc>
  29135. <![CDATA[Get the number of key-value pair entries in TFile.
  29136. @return the number of key-value pairs in TFile]]>
  29137. </doc>
  29138. </method>
  29139. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  29140. abstract="false" native="false" synchronized="false"
  29141. static="false" final="false" visibility="public"
  29142. deprecated="not deprecated">
  29143. <exception name="IOException" type="java.io.IOException"/>
  29144. <doc>
  29145. <![CDATA[Get the first key in the TFile.
  29146. @return The first key in the TFile.
  29147. @throws IOException]]>
  29148. </doc>
  29149. </method>
  29150. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  29151. abstract="false" native="false" synchronized="false"
  29152. static="false" final="false" visibility="public"
  29153. deprecated="not deprecated">
  29154. <exception name="IOException" type="java.io.IOException"/>
  29155. <doc>
  29156. <![CDATA[Get the last key in the TFile.
  29157. @return The last key in the TFile.
  29158. @throws IOException]]>
  29159. </doc>
  29160. </method>
  29161. <method name="getEntryComparator" return="java.util.Comparator"
  29162. abstract="false" native="false" synchronized="false"
  29163. static="false" final="false" visibility="public"
  29164. deprecated="not deprecated">
  29165. <doc>
  29166. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  29167. stores the entries in a collection (such as PriorityQueue) and perform
  29168. sorting or comparison among entries based on the keys without copying out
  29169. the key.
  29170. @return An Entry Comparator..]]>
  29171. </doc>
  29172. </method>
  29173. <method name="getComparator" return="java.util.Comparator"
  29174. abstract="false" native="false" synchronized="false"
  29175. static="false" final="false" visibility="public"
  29176. deprecated="not deprecated">
  29177. <doc>
  29178. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  29179. string comparator representation.
  29180. @return a Comparator that can compare RawComparable's.]]>
  29181. </doc>
  29182. </method>
  29183. <method name="getMetaBlock" return="java.io.DataInputStream"
  29184. abstract="false" native="false" synchronized="false"
  29185. static="false" final="false" visibility="public"
  29186. deprecated="not deprecated">
  29187. <param name="name" type="java.lang.String"/>
  29188. <exception name="IOException" type="java.io.IOException"/>
  29189. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  29190. <doc>
  29191. <![CDATA[Stream access to a meta block.``
  29192. @param name
  29193. The name of the meta block.
  29194. @return The input stream.
  29195. @throws IOException
  29196. on I/O error.
  29197. @throws MetaBlockDoesNotExist
  29198. If the meta block with the name does not exist.]]>
  29199. </doc>
  29200. </method>
  29201. <method name="getRecordNumNear" return="long"
  29202. abstract="false" native="false" synchronized="false"
  29203. static="false" final="false" visibility="public"
  29204. deprecated="not deprecated">
  29205. <param name="offset" type="long"/>
  29206. <exception name="IOException" type="java.io.IOException"/>
  29207. <doc>
  29208. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  29209. whose byte offset in the TFile is greater than or equal to the specified
  29210. offset.
  29211. @param offset
  29212. the user supplied offset.
  29213. @return the RecordNum to the corresponding entry. If no such entry
  29214. exists, it returns the total entry count.
  29215. @throws IOException]]>
  29216. </doc>
  29217. </method>
  29218. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  29219. abstract="false" native="false" synchronized="false"
  29220. static="false" final="false" visibility="public"
  29221. deprecated="not deprecated">
  29222. <param name="offset" type="long"/>
  29223. <exception name="IOException" type="java.io.IOException"/>
  29224. <doc>
  29225. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  29226. than or equal to the specified offset.
  29227. @param offset
  29228. The file offset.
  29229. @return the key that fits the requirement; or null if no such key exists
  29230. (which could happen if the offset is close to the end of the
  29231. TFile).
  29232. @throws IOException]]>
  29233. </doc>
  29234. </method>
  29235. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  29236. abstract="false" native="false" synchronized="false"
  29237. static="false" final="false" visibility="public"
  29238. deprecated="not deprecated">
  29239. <exception name="IOException" type="java.io.IOException"/>
  29240. <doc>
  29241. <![CDATA[Get a scanner than can scan the whole TFile.
  29242. @return The scanner object. A valid Scanner is always returned even if
  29243. the TFile is empty.
  29244. @throws IOException]]>
  29245. </doc>
  29246. </method>
  29247. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  29248. abstract="false" native="false" synchronized="false"
  29249. static="false" final="false" visibility="public"
  29250. deprecated="not deprecated">
  29251. <param name="offset" type="long"/>
  29252. <param name="length" type="long"/>
  29253. <exception name="IOException" type="java.io.IOException"/>
  29254. <doc>
  29255. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  29256. @param offset
  29257. The beginning byte offset in the TFile.
  29258. @param length
  29259. The length of the region.
  29260. @return The actual coverage of the returned scanner tries to match the
  29261. specified byte-region but always round up to the compression
  29262. block boundaries. It is possible that the returned scanner
  29263. contains zero key-value pairs even if length is positive.
  29264. @throws IOException]]>
  29265. </doc>
  29266. </method>
  29267. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  29268. abstract="false" native="false" synchronized="false"
  29269. static="false" final="false" visibility="public"
  29270. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  29271. <param name="beginKey" type="byte[]"/>
  29272. <param name="endKey" type="byte[]"/>
  29273. <exception name="IOException" type="java.io.IOException"/>
  29274. <doc>
  29275. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  29276. @param beginKey
  29277. Begin key of the scan (inclusive). If null, scan from the first
  29278. key-value entry of the TFile.
  29279. @param endKey
  29280. End key of the scan (exclusive). If null, scan up to the last
  29281. key-value entry of the TFile.
  29282. @return The actual coverage of the returned scanner will cover all keys
  29283. greater than or equal to the beginKey and less than the endKey.
  29284. @throws IOException
  29285. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  29286. </doc>
  29287. </method>
  29288. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  29289. abstract="false" native="false" synchronized="false"
  29290. static="false" final="false" visibility="public"
  29291. deprecated="not deprecated">
  29292. <param name="beginKey" type="byte[]"/>
  29293. <param name="endKey" type="byte[]"/>
  29294. <exception name="IOException" type="java.io.IOException"/>
  29295. <doc>
  29296. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  29297. @param beginKey
  29298. Begin key of the scan (inclusive). If null, scan from the first
  29299. key-value entry of the TFile.
  29300. @param endKey
  29301. End key of the scan (exclusive). If null, scan up to the last
  29302. key-value entry of the TFile.
  29303. @return The actual coverage of the returned scanner will cover all keys
  29304. greater than or equal to the beginKey and less than the endKey.
  29305. @throws IOException]]>
  29306. </doc>
  29307. </method>
  29308. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  29309. abstract="false" native="false" synchronized="false"
  29310. static="false" final="false" visibility="public"
  29311. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  29312. instead.">
  29313. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  29314. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  29315. <exception name="IOException" type="java.io.IOException"/>
  29316. <doc>
  29317. <![CDATA[Get a scanner that covers a specific key range.
  29318. @param beginKey
  29319. Begin key of the scan (inclusive). If null, scan from the first
  29320. key-value entry of the TFile.
  29321. @param endKey
  29322. End key of the scan (exclusive). If null, scan up to the last
  29323. key-value entry of the TFile.
  29324. @return The actual coverage of the returned scanner will cover all keys
  29325. greater than or equal to the beginKey and less than the endKey.
  29326. @throws IOException
  29327. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  29328. instead.]]>
  29329. </doc>
  29330. </method>
  29331. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  29332. abstract="false" native="false" synchronized="false"
  29333. static="false" final="false" visibility="public"
  29334. deprecated="not deprecated">
  29335. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  29336. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  29337. <exception name="IOException" type="java.io.IOException"/>
  29338. <doc>
  29339. <![CDATA[Get a scanner that covers a specific key range.
  29340. @param beginKey
  29341. Begin key of the scan (inclusive). If null, scan from the first
  29342. key-value entry of the TFile.
  29343. @param endKey
  29344. End key of the scan (exclusive). If null, scan up to the last
  29345. key-value entry of the TFile.
  29346. @return The actual coverage of the returned scanner will cover all keys
  29347. greater than or equal to the beginKey and less than the endKey.
  29348. @throws IOException]]>
  29349. </doc>
  29350. </method>
  29351. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  29352. abstract="false" native="false" synchronized="false"
  29353. static="false" final="false" visibility="public"
  29354. deprecated="not deprecated">
  29355. <param name="beginRecNum" type="long"/>
  29356. <param name="endRecNum" type="long"/>
  29357. <exception name="IOException" type="java.io.IOException"/>
  29358. <doc>
  29359. <![CDATA[Create a scanner that covers a range of records.
  29360. @param beginRecNum
  29361. The RecordNum for the first record (inclusive).
  29362. @param endRecNum
  29363. The RecordNum for the last record (exclusive). To scan the whole
  29364. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  29365. @return The TFile scanner that covers the specified range of records.
  29366. @throws IOException]]>
  29367. </doc>
  29368. </method>
  29369. <doc>
  29370. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  29371. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  29372. ) , a portion of TFile based on byte offsets (
  29373. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  29374. fall in a certain key range (for sorted TFile only,
  29375. {@link Reader#createScannerByKey(byte[], byte[])} or
  29376. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  29377. </doc>
  29378. </class>
  29379. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  29380. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  29381. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  29382. abstract="false"
  29383. static="true" final="false" visibility="public"
  29384. deprecated="not deprecated">
  29385. <implements name="java.io.Closeable"/>
  29386. <constructor name="Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  29387. static="false" final="false" visibility="protected"
  29388. deprecated="not deprecated">
  29389. <exception name="IOException" type="java.io.IOException"/>
  29390. <doc>
  29391. <![CDATA[Constructor
  29392. @param reader
  29393. The TFile reader object.
  29394. @param offBegin
  29395. Begin byte-offset of the scan.
  29396. @param offEnd
  29397. End byte-offset of the scan.
  29398. @throws IOException
  29399. The offsets will be rounded to the beginning of a compressed
  29400. block whose offset is greater than or equal to the specified
  29401. offset.]]>
  29402. </doc>
  29403. </constructor>
  29404. <constructor name="Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, org.apache.hadoop.io.file.tfile.RawComparable, org.apache.hadoop.io.file.tfile.RawComparable"
  29405. static="false" final="false" visibility="protected"
  29406. deprecated="not deprecated">
  29407. <exception name="IOException" type="java.io.IOException"/>
  29408. <doc>
  29409. <![CDATA[Constructor
  29410. @param reader
  29411. The TFile reader object.
  29412. @param beginKey
  29413. Begin key of the scan. If null, scan from the first <K,V>
  29414. entry of the TFile.
  29415. @param endKey
  29416. End key of the scan. If null, scan up to the last <K, V> entry
  29417. of the TFile.
  29418. @throws IOException]]>
  29419. </doc>
  29420. </constructor>
  29421. <method name="seekTo" return="boolean"
  29422. abstract="false" native="false" synchronized="false"
  29423. static="false" final="false" visibility="public"
  29424. deprecated="not deprecated">
  29425. <param name="key" type="byte[]"/>
  29426. <exception name="IOException" type="java.io.IOException"/>
  29427. <doc>
  29428. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  29429. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  29430. returned by the previous entry() call will be invalid.
  29431. @param key
  29432. The input key
  29433. @return true if we find an equal key.
  29434. @throws IOException]]>
  29435. </doc>
  29436. </method>
  29437. <method name="seekTo" return="boolean"
  29438. abstract="false" native="false" synchronized="false"
  29439. static="false" final="false" visibility="public"
  29440. deprecated="not deprecated">
  29441. <param name="key" type="byte[]"/>
  29442. <param name="keyOffset" type="int"/>
  29443. <param name="keyLen" type="int"/>
  29444. <exception name="IOException" type="java.io.IOException"/>
  29445. <doc>
  29446. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  29447. to the input key. The entry returned by the previous entry() call will
  29448. be invalid.
  29449. @param key
  29450. The input key
  29451. @param keyOffset
  29452. offset in the key buffer.
  29453. @param keyLen
  29454. key buffer length.
  29455. @return true if we find an equal key; false otherwise.
  29456. @throws IOException]]>
  29457. </doc>
  29458. </method>
  29459. <method name="rewind"
  29460. abstract="false" native="false" synchronized="false"
  29461. static="false" final="false" visibility="public"
  29462. deprecated="not deprecated">
  29463. <exception name="IOException" type="java.io.IOException"/>
  29464. <doc>
  29465. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  29466. previous entry() call will be invalid.
  29467. @throws IOException]]>
  29468. </doc>
  29469. </method>
  29470. <method name="seekToEnd"
  29471. abstract="false" native="false" synchronized="false"
  29472. static="false" final="false" visibility="public"
  29473. deprecated="not deprecated">
  29474. <exception name="IOException" type="java.io.IOException"/>
  29475. <doc>
  29476. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  29477. entry() call will be invalid.
  29478. @throws IOException]]>
  29479. </doc>
  29480. </method>
  29481. <method name="lowerBound"
  29482. abstract="false" native="false" synchronized="false"
  29483. static="false" final="false" visibility="public"
  29484. deprecated="not deprecated">
  29485. <param name="key" type="byte[]"/>
  29486. <exception name="IOException" type="java.io.IOException"/>
  29487. <doc>
  29488. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  29489. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  29490. entry returned by the previous entry() call will be invalid.
  29491. @param key
  29492. The input key
  29493. @throws IOException]]>
  29494. </doc>
  29495. </method>
  29496. <method name="lowerBound"
  29497. abstract="false" native="false" synchronized="false"
  29498. static="false" final="false" visibility="public"
  29499. deprecated="not deprecated">
  29500. <param name="key" type="byte[]"/>
  29501. <param name="keyOffset" type="int"/>
  29502. <param name="keyLen" type="int"/>
  29503. <exception name="IOException" type="java.io.IOException"/>
  29504. <doc>
  29505. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  29506. to the input key. The entry returned by the previous entry() call will
  29507. be invalid.
  29508. @param key
  29509. The input key
  29510. @param keyOffset
  29511. offset in the key buffer.
  29512. @param keyLen
  29513. key buffer length.
  29514. @throws IOException]]>
  29515. </doc>
  29516. </method>
  29517. <method name="upperBound"
  29518. abstract="false" native="false" synchronized="false"
  29519. static="false" final="false" visibility="public"
  29520. deprecated="not deprecated">
  29521. <param name="key" type="byte[]"/>
  29522. <exception name="IOException" type="java.io.IOException"/>
  29523. <doc>
  29524. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  29525. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  29526. returned by the previous entry() call will be invalid.
  29527. @param key
  29528. The input key
  29529. @throws IOException]]>
  29530. </doc>
  29531. </method>
  29532. <method name="upperBound"
  29533. abstract="false" native="false" synchronized="false"
  29534. static="false" final="false" visibility="public"
  29535. deprecated="not deprecated">
  29536. <param name="key" type="byte[]"/>
  29537. <param name="keyOffset" type="int"/>
  29538. <param name="keyLen" type="int"/>
  29539. <exception name="IOException" type="java.io.IOException"/>
  29540. <doc>
  29541. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  29542. the input key. The entry returned by the previous entry() call will be
  29543. invalid.
  29544. @param key
  29545. The input key
  29546. @param keyOffset
  29547. offset in the key buffer.
  29548. @param keyLen
  29549. key buffer length.
  29550. @throws IOException]]>
  29551. </doc>
  29552. </method>
  29553. <method name="advance" return="boolean"
  29554. abstract="false" native="false" synchronized="false"
  29555. static="false" final="false" visibility="public"
  29556. deprecated="not deprecated">
  29557. <exception name="IOException" type="java.io.IOException"/>
  29558. <doc>
  29559. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  29560. previous entry() call will be invalid.
  29561. @return true if the cursor successfully moves. False when cursor is
  29562. already at the end location and cannot be advanced.
  29563. @throws IOException]]>
  29564. </doc>
  29565. </method>
  29566. <method name="close"
  29567. abstract="false" native="false" synchronized="false"
  29568. static="false" final="false" visibility="public"
  29569. deprecated="not deprecated">
  29570. <exception name="IOException" type="java.io.IOException"/>
  29571. <doc>
  29572. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  29573. scanner after calling close is not defined. The entry returned by the
  29574. previous entry() call will be invalid.]]>
  29575. </doc>
  29576. </method>
  29577. <method name="atEnd" return="boolean"
  29578. abstract="false" native="false" synchronized="false"
  29579. static="false" final="false" visibility="public"
  29580. deprecated="not deprecated">
  29581. <doc>
  29582. <![CDATA[Is cursor at the end location?
  29583. @return true if the cursor is at the end location.]]>
  29584. </doc>
  29585. </method>
  29586. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  29587. abstract="false" native="false" synchronized="false"
  29588. static="false" final="false" visibility="public"
  29589. deprecated="not deprecated">
  29590. <exception name="IOException" type="java.io.IOException"/>
  29591. <doc>
  29592. <![CDATA[Get an entry to access the key and value.
  29593. @return The Entry object to access the key and value.
  29594. @throws IOException]]>
  29595. </doc>
  29596. </method>
  29597. <method name="getRecordNum" return="long"
  29598. abstract="false" native="false" synchronized="false"
  29599. static="false" final="false" visibility="public"
  29600. deprecated="not deprecated">
  29601. <exception name="IOException" type="java.io.IOException"/>
  29602. <doc>
  29603. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  29604. @return The RecordNum corresponding to the entry pointed by the cursor.
  29605. @throws IOException]]>
  29606. </doc>
  29607. </method>
  29608. <doc>
  29609. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  29610. creation, points to the first key-value pair in the scan range. If the
  29611. scan range is empty, the cursor will point to the end of the scan range.
  29612. <p>
  29613. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  29614. location of the scanner.
  29615. <p>
  29616. Use {@link Scanner#advance()} to move the cursor to the next key-value
  29617. pair (or end if none exists). Use seekTo methods (
  29618. {@link Scanner#seekTo(byte[])} or
  29619. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  29620. location in the covered range (including backward seeking). Use
  29621. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  29622. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  29623. <p>
  29624. Actual keys and values may be obtained through {@link Scanner.Entry}
  29625. object, which is obtained through {@link Scanner#entry()}.]]>
  29626. </doc>
  29627. </class>
  29628. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  29629. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  29630. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  29631. abstract="false"
  29632. static="false" final="false" visibility="public"
  29633. deprecated="not deprecated">
  29634. <implements name="java.lang.Comparable"/>
  29635. <constructor name="Entry"
  29636. static="false" final="false" visibility="public"
  29637. deprecated="not deprecated">
  29638. </constructor>
  29639. <method name="getKeyLength" return="int"
  29640. abstract="false" native="false" synchronized="false"
  29641. static="false" final="false" visibility="public"
  29642. deprecated="not deprecated">
  29643. <doc>
  29644. <![CDATA[Get the length of the key.
  29645. @return the length of the key.]]>
  29646. </doc>
  29647. </method>
  29648. <method name="get"
  29649. abstract="false" native="false" synchronized="false"
  29650. static="false" final="false" visibility="public"
  29651. deprecated="not deprecated">
  29652. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  29653. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  29654. <exception name="IOException" type="java.io.IOException"/>
  29655. <doc>
  29656. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  29657. equivalent to getKey(key); getValue(value);
  29658. @param key
  29659. BytesWritable to hold key.
  29660. @param value
  29661. BytesWritable to hold value
  29662. @throws IOException]]>
  29663. </doc>
  29664. </method>
  29665. <method name="getKey" return="int"
  29666. abstract="false" native="false" synchronized="false"
  29667. static="false" final="false" visibility="public"
  29668. deprecated="not deprecated">
  29669. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  29670. <exception name="IOException" type="java.io.IOException"/>
  29671. <doc>
  29672. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  29673. automatically resized to the actual key size.
  29674. @param key
  29675. BytesWritable to hold the key.
  29676. @throws IOException]]>
  29677. </doc>
  29678. </method>
  29679. <method name="getValue" return="long"
  29680. abstract="false" native="false" synchronized="false"
  29681. static="false" final="false" visibility="public"
  29682. deprecated="not deprecated">
  29683. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  29684. <exception name="IOException" type="java.io.IOException"/>
  29685. <doc>
  29686. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  29687. automatically resized to the actual value size. The implementation
  29688. directly uses the buffer inside BytesWritable for storing the value.
  29689. The call does not require the value length to be known.
  29690. @param value
  29691. @throws IOException]]>
  29692. </doc>
  29693. </method>
  29694. <method name="writeKey" return="int"
  29695. abstract="false" native="false" synchronized="false"
  29696. static="false" final="false" visibility="public"
  29697. deprecated="not deprecated">
  29698. <param name="out" type="java.io.OutputStream"/>
  29699. <exception name="IOException" type="java.io.IOException"/>
  29700. <doc>
  29701. <![CDATA[Writing the key to the output stream. This method avoids copying key
  29702. buffer from Scanner into user buffer, then writing to the output
  29703. stream.
  29704. @param out
  29705. The output stream
  29706. @return the length of the key.
  29707. @throws IOException]]>
  29708. </doc>
  29709. </method>
  29710. <method name="writeValue" return="long"
  29711. abstract="false" native="false" synchronized="false"
  29712. static="false" final="false" visibility="public"
  29713. deprecated="not deprecated">
  29714. <param name="out" type="java.io.OutputStream"/>
  29715. <exception name="IOException" type="java.io.IOException"/>
  29716. <doc>
  29717. <![CDATA[Writing the value to the output stream. This method avoids copying
  29718. value data from Scanner into user buffer, then writing to the output
  29719. stream. It does not require the value length to be known.
  29720. @param out
  29721. The output stream
  29722. @return the length of the value
  29723. @throws IOException]]>
  29724. </doc>
  29725. </method>
  29726. <method name="getKey" return="int"
  29727. abstract="false" native="false" synchronized="false"
  29728. static="false" final="false" visibility="public"
  29729. deprecated="not deprecated">
  29730. <param name="buf" type="byte[]"/>
  29731. <exception name="IOException" type="java.io.IOException"/>
  29732. <doc>
  29733. <![CDATA[Copy the key into user supplied buffer.
  29734. @param buf
  29735. The buffer supplied by user. The length of the buffer must
  29736. not be shorter than the key length.
  29737. @return The length of the key.
  29738. @throws IOException]]>
  29739. </doc>
  29740. </method>
  29741. <method name="getKey" return="int"
  29742. abstract="false" native="false" synchronized="false"
  29743. static="false" final="false" visibility="public"
  29744. deprecated="not deprecated">
  29745. <param name="buf" type="byte[]"/>
  29746. <param name="offset" type="int"/>
  29747. <exception name="IOException" type="java.io.IOException"/>
  29748. <doc>
  29749. <![CDATA[Copy the key into user supplied buffer.
  29750. @param buf
  29751. The buffer supplied by user.
  29752. @param offset
  29753. The starting offset of the user buffer where we should copy
  29754. the key into. Requiring the key-length + offset no greater
  29755. than the buffer length.
  29756. @return The length of the key.
  29757. @throws IOException]]>
  29758. </doc>
  29759. </method>
  29760. <method name="getKeyStream" return="java.io.DataInputStream"
  29761. abstract="false" native="false" synchronized="false"
  29762. static="false" final="false" visibility="public"
  29763. deprecated="not deprecated">
  29764. <doc>
  29765. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  29766. user objects.
  29767. @return The input stream.]]>
  29768. </doc>
  29769. </method>
  29770. <method name="getValueLength" return="int"
  29771. abstract="false" native="false" synchronized="false"
  29772. static="false" final="false" visibility="public"
  29773. deprecated="not deprecated">
  29774. <doc>
  29775. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  29776. true.
  29777. @return the length of the value.]]>
  29778. </doc>
  29779. </method>
  29780. <method name="getValue" return="int"
  29781. abstract="false" native="false" synchronized="false"
  29782. static="false" final="false" visibility="public"
  29783. deprecated="not deprecated">
  29784. <param name="buf" type="byte[]"/>
  29785. <exception name="IOException" type="java.io.IOException"/>
  29786. <doc>
  29787. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  29788. large enough to hold the whole value. The value part of the key-value
  29789. pair pointed by the current cursor is not cached and can only be
  29790. examined once. Calling any of the following functions more than once
  29791. without moving the cursor will result in exception:
  29792. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  29793. {@link #getValueStream}.
  29794. @return the length of the value. Does not require
  29795. isValueLengthKnown() to be true.
  29796. @throws IOException]]>
  29797. </doc>
  29798. </method>
  29799. <method name="getValue" return="int"
  29800. abstract="false" native="false" synchronized="false"
  29801. static="false" final="false" visibility="public"
  29802. deprecated="not deprecated">
  29803. <param name="buf" type="byte[]"/>
  29804. <param name="offset" type="int"/>
  29805. <exception name="IOException" type="java.io.IOException"/>
  29806. <doc>
  29807. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  29808. large enough to hold the whole value (starting from the offset). The
  29809. value part of the key-value pair pointed by the current cursor is not
  29810. cached and can only be examined once. Calling any of the following
  29811. functions more than once without moving the cursor will result in
  29812. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  29813. {@link #getValueStream}.
  29814. @return the length of the value. Does not require
  29815. isValueLengthKnown() to be true.
  29816. @throws IOException]]>
  29817. </doc>
  29818. </method>
  29819. <method name="getValueStream" return="java.io.DataInputStream"
  29820. abstract="false" native="false" synchronized="false"
  29821. static="false" final="false" visibility="public"
  29822. deprecated="not deprecated">
  29823. <exception name="IOException" type="java.io.IOException"/>
  29824. <doc>
  29825. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  29826. by the current cursor is not cached and can only be examined once.
  29827. Calling any of the following functions more than once without moving
  29828. the cursor will result in exception: {@link #getValue(byte[])},
  29829. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  29830. @return The input stream for reading the value.
  29831. @throws IOException]]>
  29832. </doc>
  29833. </method>
  29834. <method name="isValueLengthKnown" return="boolean"
  29835. abstract="false" native="false" synchronized="false"
  29836. static="false" final="false" visibility="public"
  29837. deprecated="not deprecated">
  29838. <doc>
  29839. <![CDATA[Check whether it is safe to call getValueLength().
  29840. @return true if value length is known before hand. Values less than
  29841. the chunk size will always have their lengths known before
  29842. hand. Values that are written out as a whole (with advertised
  29843. length up-front) will always have their lengths known in
  29844. read.]]>
  29845. </doc>
  29846. </method>
  29847. <method name="compareTo" return="int"
  29848. abstract="false" native="false" synchronized="false"
  29849. static="false" final="false" visibility="public"
  29850. deprecated="not deprecated">
  29851. <param name="buf" type="byte[]"/>
  29852. <doc>
  29853. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  29854. key.length).
  29855. @param buf
  29856. The key buffer.
  29857. @return comparison result between the entry key with the input key.]]>
  29858. </doc>
  29859. </method>
  29860. <method name="compareTo" return="int"
  29861. abstract="false" native="false" synchronized="false"
  29862. static="false" final="false" visibility="public"
  29863. deprecated="not deprecated">
  29864. <param name="buf" type="byte[]"/>
  29865. <param name="offset" type="int"/>
  29866. <param name="length" type="int"/>
  29867. <doc>
  29868. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  29869. ByteArray(buf, offset, length)
  29870. @param buf
  29871. The key buffer
  29872. @param offset
  29873. offset into the key buffer.
  29874. @param length
  29875. the length of the key.
  29876. @return comparison result between the entry key with the input key.]]>
  29877. </doc>
  29878. </method>
  29879. <method name="compareTo" return="int"
  29880. abstract="false" native="false" synchronized="false"
  29881. static="false" final="false" visibility="public"
  29882. deprecated="not deprecated">
  29883. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  29884. <doc>
  29885. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  29886. Entries are stored in a collection, and we want to compare a user
  29887. supplied key.]]>
  29888. </doc>
  29889. </method>
  29890. <method name="equals" return="boolean"
  29891. abstract="false" native="false" synchronized="false"
  29892. static="false" final="false" visibility="public"
  29893. deprecated="not deprecated">
  29894. <param name="other" type="java.lang.Object"/>
  29895. <doc>
  29896. <![CDATA[Compare whether this and other points to the same key value.]]>
  29897. </doc>
  29898. </method>
  29899. <method name="hashCode" return="int"
  29900. abstract="false" native="false" synchronized="false"
  29901. static="false" final="false" visibility="public"
  29902. deprecated="not deprecated">
  29903. </method>
  29904. <doc>
  29905. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  29906. </doc>
  29907. </class>
  29908. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  29909. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  29910. <class name="TFile.Writer" extends="java.lang.Object"
  29911. abstract="false"
  29912. static="true" final="false" visibility="public"
  29913. deprecated="not deprecated">
  29914. <implements name="java.io.Closeable"/>
  29915. <constructor name="Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  29916. static="false" final="false" visibility="public"
  29917. deprecated="not deprecated">
  29918. <exception name="IOException" type="java.io.IOException"/>
  29919. <doc>
  29920. <![CDATA[Constructor
  29921. @param fsdos
  29922. output stream for writing. Must be at position 0.
  29923. @param minBlockSize
  29924. Minimum compressed block size in bytes. A compression block will
  29925. not be closed until it reaches this size except for the last
  29926. block.
  29927. @param compressName
  29928. Name of the compression algorithm. Must be one of the strings
  29929. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  29930. @param comparator
  29931. Leave comparator as null or empty string if TFile is not sorted.
  29932. Otherwise, provide the string name for the comparison algorithm
  29933. for keys. Two kinds of comparators are supported.
  29934. <ul>
  29935. <li>Algorithmic comparator: binary comparators that is language
  29936. independent. Currently, only "memcmp" is supported.
  29937. <li>Language-specific comparator: binary comparators that can
  29938. only be constructed in specific language. For Java, the syntax
  29939. is "jclass:", followed by the class name of the RawComparator.
  29940. Currently, we only support RawComparators that can be
  29941. constructed through the default constructor (with no
  29942. parameters). Parameterized RawComparators such as
  29943. {@link WritableComparator} or
  29944. {@link JavaSerializationComparator} may not be directly used.
  29945. One should write a wrapper class that inherits from such classes
  29946. and use its default constructor to perform proper
  29947. initialization.
  29948. </ul>
  29949. @param conf
  29950. The configuration object.
  29951. @throws IOException]]>
  29952. </doc>
  29953. </constructor>
  29954. <method name="close"
  29955. abstract="false" native="false" synchronized="false"
  29956. static="false" final="false" visibility="public"
  29957. deprecated="not deprecated">
  29958. <exception name="IOException" type="java.io.IOException"/>
  29959. <doc>
  29960. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  29961. being thrown. Future close calls will have no effect.
  29962. The underlying FSDataOutputStream is not closed.]]>
  29963. </doc>
  29964. </method>
  29965. <method name="append"
  29966. abstract="false" native="false" synchronized="false"
  29967. static="false" final="false" visibility="public"
  29968. deprecated="not deprecated">
  29969. <param name="key" type="byte[]"/>
  29970. <param name="value" type="byte[]"/>
  29971. <exception name="IOException" type="java.io.IOException"/>
  29972. <doc>
  29973. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  29974. append(key, 0, key.length, value, 0, value.length)
  29975. @param key
  29976. Buffer for key.
  29977. @param value
  29978. Buffer for value.
  29979. @throws IOException]]>
  29980. </doc>
  29981. </method>
  29982. <method name="append"
  29983. abstract="false" native="false" synchronized="false"
  29984. static="false" final="false" visibility="public"
  29985. deprecated="not deprecated">
  29986. <param name="key" type="byte[]"/>
  29987. <param name="koff" type="int"/>
  29988. <param name="klen" type="int"/>
  29989. <param name="value" type="byte[]"/>
  29990. <param name="voff" type="int"/>
  29991. <param name="vlen" type="int"/>
  29992. <exception name="IOException" type="java.io.IOException"/>
  29993. <doc>
  29994. <![CDATA[Adding a new key-value pair to TFile.
  29995. @param key
  29996. buffer for key.
  29997. @param koff
  29998. offset in key buffer.
  29999. @param klen
  30000. length of key.
  30001. @param value
  30002. buffer for value.
  30003. @param voff
  30004. offset in value buffer.
  30005. @param vlen
  30006. length of value.
  30007. @throws IOException
  30008. Upon IO errors.
  30009. <p>
  30010. If an exception is thrown, the TFile will be in an inconsistent
  30011. state. The only legitimate call after that would be close]]>
  30012. </doc>
  30013. </method>
  30014. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  30015. abstract="false" native="false" synchronized="false"
  30016. static="false" final="false" visibility="public"
  30017. deprecated="not deprecated">
  30018. <param name="length" type="int"/>
  30019. <exception name="IOException" type="java.io.IOException"/>
  30020. <doc>
  30021. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  30022. called when there is no active Key appending stream or value appending
  30023. stream.
  30024. @param length
  30025. The expected length of the key. If length of the key is not
  30026. known, set length = -1. Otherwise, the application must write
  30027. exactly as many bytes as specified here before calling close on
  30028. the returned output stream.
  30029. @return The key appending output stream.
  30030. @throws IOException]]>
  30031. </doc>
  30032. </method>
  30033. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  30034. abstract="false" native="false" synchronized="false"
  30035. static="false" final="false" visibility="public"
  30036. deprecated="not deprecated">
  30037. <param name="length" type="int"/>
  30038. <exception name="IOException" type="java.io.IOException"/>
  30039. <doc>
  30040. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  30041. called right after a key appending operation (the key append stream must
  30042. be closed).
  30043. @param length
  30044. The expected length of the value. If length of the value is not
  30045. known, set length = -1. Otherwise, the application must write
  30046. exactly as many bytes as specified here before calling close on
  30047. the returned output stream. Advertising the value size up-front
  30048. guarantees that the value is encoded in one chunk, and avoids
  30049. intermediate chunk buffering.
  30050. @throws IOException]]>
  30051. </doc>
  30052. </method>
  30053. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  30054. abstract="false" native="false" synchronized="false"
  30055. static="false" final="false" visibility="public"
  30056. deprecated="not deprecated">
  30057. <param name="name" type="java.lang.String"/>
  30058. <param name="compressName" type="java.lang.String"/>
  30059. <exception name="IOException" type="java.io.IOException"/>
  30060. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  30061. <doc>
  30062. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  30063. be called when there is a key append stream or value append stream
  30064. active. No more key-value insertion is allowed after a meta data block
  30065. has been added to TFile.
  30066. @param name
  30067. Name of the meta block.
  30068. @param compressName
  30069. Name of the compression algorithm to be used. Must be one of the
  30070. strings returned by
  30071. {@link TFile#getSupportedCompressionAlgorithms()}.
  30072. @return A DataOutputStream that can be used to write Meta Block data.
  30073. Closing the stream would signal the ending of the block.
  30074. @throws IOException
  30075. @throws MetaBlockAlreadyExists
  30076. the Meta Block with the same name already exists.]]>
  30077. </doc>
  30078. </method>
  30079. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  30080. abstract="false" native="false" synchronized="false"
  30081. static="false" final="false" visibility="public"
  30082. deprecated="not deprecated">
  30083. <param name="name" type="java.lang.String"/>
  30084. <exception name="IOException" type="java.io.IOException"/>
  30085. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  30086. <doc>
  30087. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  30088. be called when there is a key append stream or value append stream
  30089. active. No more key-value insertion is allowed after a meta data block
  30090. has been added to TFile. Data will be compressed using the default
  30091. compressor as defined in Writer's constructor.
  30092. @param name
  30093. Name of the meta block.
  30094. @return A DataOutputStream that can be used to write Meta Block data.
  30095. Closing the stream would signal the ending of the block.
  30096. @throws IOException
  30097. @throws MetaBlockAlreadyExists
  30098. the Meta Block with the same name already exists.]]>
  30099. </doc>
  30100. </method>
  30101. <doc>
  30102. <![CDATA[TFile Writer.]]>
  30103. </doc>
  30104. </class>
  30105. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  30106. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  30107. <class name="Utils" extends="java.lang.Object"
  30108. abstract="false"
  30109. static="false" final="true" visibility="public"
  30110. deprecated="not deprecated">
  30111. <method name="writeVInt"
  30112. abstract="false" native="false" synchronized="false"
  30113. static="true" final="false" visibility="public"
  30114. deprecated="not deprecated">
  30115. <param name="out" type="java.io.DataOutput"/>
  30116. <param name="n" type="int"/>
  30117. <exception name="IOException" type="java.io.IOException"/>
  30118. <doc>
  30119. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  30120. <code>Utils#writeVLong(out, n)</code>.
  30121. @param out
  30122. output stream
  30123. @param n
  30124. The integer to be encoded
  30125. @throws IOException
  30126. @see Utils#writeVLong(DataOutput, long)]]>
  30127. </doc>
  30128. </method>
  30129. <method name="writeVLong"
  30130. abstract="false" native="false" synchronized="false"
  30131. static="true" final="false" visibility="public"
  30132. deprecated="not deprecated">
  30133. <param name="out" type="java.io.DataOutput"/>
  30134. <param name="n" type="long"/>
  30135. <exception name="IOException" type="java.io.IOException"/>
  30136. <doc>
  30137. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  30138. <ul>
  30139. <li>if n in [-32, 127): encode in one byte with the actual value.
  30140. Otherwise,
  30141. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  30142. byte[1]=n&0xff. Otherwise,
  30143. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  30144. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  30145. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  30146. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  30147. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  30148. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  30149. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  30150. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  30151. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  30152. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  30153. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  30154. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  30155. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  30156. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  30157. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  30158. byte[7]=n&0xff;
  30159. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  30160. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  30161. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  30162. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  30163. </ul>
  30164. @param out
  30165. output stream
  30166. @param n
  30167. the integer number
  30168. @throws IOException]]>
  30169. </doc>
  30170. </method>
  30171. <method name="readVInt" return="int"
  30172. abstract="false" native="false" synchronized="false"
  30173. static="true" final="false" visibility="public"
  30174. deprecated="not deprecated">
  30175. <param name="in" type="java.io.DataInput"/>
  30176. <exception name="IOException" type="java.io.IOException"/>
  30177. <doc>
  30178. <![CDATA[Decoding the variable-length integer. Synonymous to
  30179. <code>(int)Utils#readVLong(in)</code>.
  30180. @param in
  30181. input stream
  30182. @return the decoded integer
  30183. @throws IOException
  30184. @see Utils#readVLong(DataInput)]]>
  30185. </doc>
  30186. </method>
  30187. <method name="readVLong" return="long"
  30188. abstract="false" native="false" synchronized="false"
  30189. static="true" final="false" visibility="public"
  30190. deprecated="not deprecated">
  30191. <param name="in" type="java.io.DataInput"/>
  30192. <exception name="IOException" type="java.io.IOException"/>
  30193. <doc>
  30194. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  30195. is FB, and the following bytes are NB[*].
  30196. <ul>
  30197. <li>if (FB >= -32), return (long)FB;
  30198. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  30199. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  30200. NB[1]&0xff;
  30201. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  30202. (NB[1]&0xff)<<8 + NB[2]&0xff;
  30203. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  30204. big-endian integer.
  30205. @param in
  30206. input stream
  30207. @return the decoded long integer.
  30208. @throws IOException]]>
  30209. </doc>
  30210. </method>
  30211. <method name="writeString"
  30212. abstract="false" native="false" synchronized="false"
  30213. static="true" final="false" visibility="public"
  30214. deprecated="not deprecated">
  30215. <param name="out" type="java.io.DataOutput"/>
  30216. <param name="s" type="java.lang.String"/>
  30217. <exception name="IOException" type="java.io.IOException"/>
  30218. <doc>
  30219. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  30220. @param out
  30221. @param s
  30222. @throws IOException]]>
  30223. </doc>
  30224. </method>
  30225. <method name="readString" return="java.lang.String"
  30226. abstract="false" native="false" synchronized="false"
  30227. static="true" final="false" visibility="public"
  30228. deprecated="not deprecated">
  30229. <param name="in" type="java.io.DataInput"/>
  30230. <exception name="IOException" type="java.io.IOException"/>
  30231. <doc>
  30232. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  30233. @param in
  30234. The input stream.
  30235. @return The string
  30236. @throws IOException]]>
  30237. </doc>
  30238. </method>
  30239. <method name="lowerBound" return="int"
  30240. abstract="false" native="false" synchronized="false"
  30241. static="true" final="false" visibility="public"
  30242. deprecated="not deprecated">
  30243. <param name="list" type="java.util.List"/>
  30244. <param name="key" type="T"/>
  30245. <param name="cmp" type="java.util.Comparator"/>
  30246. <doc>
  30247. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  30248. that compares greater than or equal to key.
  30249. @param <T>
  30250. Type of the input key.
  30251. @param list
  30252. The list
  30253. @param key
  30254. The input key.
  30255. @param cmp
  30256. Comparator for the key.
  30257. @return The index to the desired element if it exists; or list.size()
  30258. otherwise.]]>
  30259. </doc>
  30260. </method>
  30261. <method name="upperBound" return="int"
  30262. abstract="false" native="false" synchronized="false"
  30263. static="true" final="false" visibility="public"
  30264. deprecated="not deprecated">
  30265. <param name="list" type="java.util.List"/>
  30266. <param name="key" type="T"/>
  30267. <param name="cmp" type="java.util.Comparator"/>
  30268. <doc>
  30269. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  30270. that compares greater than the input key.
  30271. @param <T>
  30272. Type of the input key.
  30273. @param list
  30274. The list
  30275. @param key
  30276. The input key.
  30277. @param cmp
  30278. Comparator for the key.
  30279. @return The index to the desired element if it exists; or list.size()
  30280. otherwise.]]>
  30281. </doc>
  30282. </method>
  30283. <method name="lowerBound" return="int"
  30284. abstract="false" native="false" synchronized="false"
  30285. static="true" final="false" visibility="public"
  30286. deprecated="not deprecated">
  30287. <param name="list" type="java.util.List"/>
  30288. <param name="key" type="T"/>
  30289. <doc>
  30290. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  30291. that compares greater than or equal to key.
  30292. @param <T>
  30293. Type of the input key.
  30294. @param list
  30295. The list
  30296. @param key
  30297. The input key.
  30298. @return The index to the desired element if it exists; or list.size()
  30299. otherwise.]]>
  30300. </doc>
  30301. </method>
  30302. <method name="upperBound" return="int"
  30303. abstract="false" native="false" synchronized="false"
  30304. static="true" final="false" visibility="public"
  30305. deprecated="not deprecated">
  30306. <param name="list" type="java.util.List"/>
  30307. <param name="key" type="T"/>
  30308. <doc>
  30309. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  30310. that compares greater than the input key.
  30311. @param <T>
  30312. Type of the input key.
  30313. @param list
  30314. The list
  30315. @param key
  30316. The input key.
  30317. @return The index to the desired element if it exists; or list.size()
  30318. otherwise.]]>
  30319. </doc>
  30320. </method>
  30321. <doc>
  30322. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  30323. </doc>
  30324. </class>
  30325. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  30326. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  30327. <class name="Utils.Version" extends="java.lang.Object"
  30328. abstract="false"
  30329. static="true" final="true" visibility="public"
  30330. deprecated="not deprecated">
  30331. <implements name="java.lang.Comparable"/>
  30332. <constructor name="Version" type="java.io.DataInput"
  30333. static="false" final="false" visibility="public"
  30334. deprecated="not deprecated">
  30335. <exception name="IOException" type="java.io.IOException"/>
  30336. <doc>
  30337. <![CDATA[Construct the Version object by reading from the input stream.
  30338. @param in
  30339. input stream
  30340. @throws IOException]]>
  30341. </doc>
  30342. </constructor>
  30343. <constructor name="Version" type="short, short"
  30344. static="false" final="false" visibility="public"
  30345. deprecated="not deprecated">
  30346. <doc>
  30347. <![CDATA[Constructor.
  30348. @param major
  30349. major version.
  30350. @param minor
  30351. minor version.]]>
  30352. </doc>
  30353. </constructor>
  30354. <method name="write"
  30355. abstract="false" native="false" synchronized="false"
  30356. static="false" final="false" visibility="public"
  30357. deprecated="not deprecated">
  30358. <param name="out" type="java.io.DataOutput"/>
  30359. <exception name="IOException" type="java.io.IOException"/>
  30360. <doc>
  30361. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  30362. major version followed by minor version, both as big-endian short
  30363. integers.
  30364. @param out
  30365. The DataOutput object.
  30366. @throws IOException]]>
  30367. </doc>
  30368. </method>
  30369. <method name="getMajor" return="int"
  30370. abstract="false" native="false" synchronized="false"
  30371. static="false" final="false" visibility="public"
  30372. deprecated="not deprecated">
  30373. <doc>
  30374. <![CDATA[Get the major version.
  30375. @return Major version.]]>
  30376. </doc>
  30377. </method>
  30378. <method name="getMinor" return="int"
  30379. abstract="false" native="false" synchronized="false"
  30380. static="false" final="false" visibility="public"
  30381. deprecated="not deprecated">
  30382. <doc>
  30383. <![CDATA[Get the minor version.
  30384. @return The minor version.]]>
  30385. </doc>
  30386. </method>
  30387. <method name="size" return="int"
  30388. abstract="false" native="false" synchronized="false"
  30389. static="true" final="false" visibility="public"
  30390. deprecated="not deprecated">
  30391. <doc>
  30392. <![CDATA[Get the size of the serialized Version object.
  30393. @return serialized size of the version object.]]>
  30394. </doc>
  30395. </method>
  30396. <method name="toString" return="java.lang.String"
  30397. abstract="false" native="false" synchronized="false"
  30398. static="false" final="false" visibility="public"
  30399. deprecated="not deprecated">
  30400. <doc>
  30401. <![CDATA[Return a string representation of the version.]]>
  30402. </doc>
  30403. </method>
  30404. <method name="compatibleWith" return="boolean"
  30405. abstract="false" native="false" synchronized="false"
  30406. static="false" final="false" visibility="public"
  30407. deprecated="not deprecated">
  30408. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  30409. <doc>
  30410. <![CDATA[Test compatibility.
  30411. @param other
  30412. The Version object to test compatibility with.
  30413. @return true if both versions have the same major version number; false
  30414. otherwise.]]>
  30415. </doc>
  30416. </method>
  30417. <method name="compareTo" return="int"
  30418. abstract="false" native="false" synchronized="false"
  30419. static="false" final="false" visibility="public"
  30420. deprecated="not deprecated">
  30421. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  30422. <doc>
  30423. <![CDATA[Compare this version with another version.]]>
  30424. </doc>
  30425. </method>
  30426. <method name="equals" return="boolean"
  30427. abstract="false" native="false" synchronized="false"
  30428. static="false" final="false" visibility="public"
  30429. deprecated="not deprecated">
  30430. <param name="other" type="java.lang.Object"/>
  30431. </method>
  30432. <method name="hashCode" return="int"
  30433. abstract="false" native="false" synchronized="false"
  30434. static="false" final="false" visibility="public"
  30435. deprecated="not deprecated">
  30436. </method>
  30437. <doc>
  30438. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  30439. this class to maintain version information in their meta blocks.
  30440. A version number consists of a major version and a minor version. The
  30441. suggested usage of major and minor version number is to increment major
  30442. version number when the new storage format is not backward compatible, and
  30443. increment the minor version otherwise.]]>
  30444. </doc>
  30445. </class>
  30446. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  30447. </package>
  30448. <package name="org.apache.hadoop.io.serializer">
  30449. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  30450. <class name="JavaSerialization" extends="java.lang.Object"
  30451. abstract="false"
  30452. static="false" final="false" visibility="public"
  30453. deprecated="not deprecated">
  30454. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  30455. <constructor name="JavaSerialization"
  30456. static="false" final="false" visibility="public"
  30457. deprecated="not deprecated">
  30458. </constructor>
  30459. <doc>
  30460. <![CDATA[<p>
  30461. An experimental {@link Serialization} for Java {@link Serializable} classes.
  30462. </p>
  30463. @see JavaSerializationComparator]]>
  30464. </doc>
  30465. </class>
  30466. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  30467. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  30468. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  30469. abstract="false"
  30470. static="false" final="false" visibility="public"
  30471. deprecated="not deprecated">
  30472. <constructor name="JavaSerializationComparator"
  30473. static="false" final="false" visibility="public"
  30474. deprecated="not deprecated">
  30475. <exception name="IOException" type="java.io.IOException"/>
  30476. </constructor>
  30477. <doc>
  30478. <![CDATA[<p>
  30479. A {@link RawComparator} that uses a {@link JavaSerialization}
  30480. {@link Deserializer} to deserialize objects that are then compared via
  30481. their {@link Comparable} interfaces.
  30482. </p>
  30483. @param <T>
  30484. @see JavaSerialization]]>
  30485. </doc>
  30486. </class>
  30487. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  30488. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  30489. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  30490. abstract="false"
  30491. static="false" final="false" visibility="public"
  30492. deprecated="not deprecated">
  30493. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  30494. <constructor name="WritableSerialization"
  30495. static="false" final="false" visibility="public"
  30496. deprecated="not deprecated">
  30497. </constructor>
  30498. <doc>
  30499. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  30500. {@link Writable#write(java.io.DataOutput)} and
  30501. {@link Writable#readFields(java.io.DataInput)}.]]>
  30502. </doc>
  30503. </class>
  30504. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  30505. <doc>
  30506. <![CDATA[<p>
  30507. This package provides a mechanism for using different serialization frameworks
  30508. in Hadoop. The property "io.serializations" defines a list of
  30509. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  30510. {@link org.apache.hadoop.io.serializer.Serializer}s and
  30511. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  30512. </p>
  30513. <p>
  30514. To add a new serialization framework write an implementation of
  30515. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  30516. "io.serializations" property.
  30517. </p>]]>
  30518. </doc>
  30519. </package>
  30520. <package name="org.apache.hadoop.io.serializer.avro">
  30521. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  30522. <interface name="AvroReflectSerializable" abstract="true"
  30523. static="false" final="false" visibility="public"
  30524. deprecated="not deprecated">
  30525. <doc>
  30526. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  30527. this interface can be serialized/deserialized using
  30528. {@link AvroReflectSerialization}.]]>
  30529. </doc>
  30530. </interface>
  30531. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  30532. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  30533. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  30534. abstract="false"
  30535. static="false" final="false" visibility="public"
  30536. deprecated="not deprecated">
  30537. <constructor name="AvroReflectSerialization"
  30538. static="false" final="false" visibility="public"
  30539. deprecated="not deprecated">
  30540. </constructor>
  30541. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  30542. transient="false" volatile="false"
  30543. static="true" final="true" visibility="public"
  30544. deprecated="not deprecated">
  30545. <doc>
  30546. <![CDATA[Key to configure packages that contain classes to be serialized and
  30547. deserialized using this class. Multiple packages can be specified using
  30548. comma-separated list.]]>
  30549. </doc>
  30550. </field>
  30551. <doc>
  30552. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  30553. serialization, it must either be in the package list configured via
  30554. <code>avro.reflect.pkgs</code> or implement
  30555. {@link AvroReflectSerializable} interface.]]>
  30556. </doc>
  30557. </class>
  30558. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  30559. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  30560. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  30561. abstract="true"
  30562. static="false" final="false" visibility="public"
  30563. deprecated="not deprecated">
  30564. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  30565. <constructor name="AvroSerialization"
  30566. static="false" final="false" visibility="public"
  30567. deprecated="not deprecated">
  30568. </constructor>
  30569. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  30570. transient="false" volatile="false"
  30571. static="true" final="true" visibility="public"
  30572. deprecated="not deprecated">
  30573. </field>
  30574. <doc>
  30575. <![CDATA[Base class for providing serialization to Avro types.]]>
  30576. </doc>
  30577. </class>
  30578. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  30579. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  30580. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  30581. abstract="false"
  30582. static="false" final="false" visibility="public"
  30583. deprecated="not deprecated">
  30584. <constructor name="AvroSpecificSerialization"
  30585. static="false" final="false" visibility="public"
  30586. deprecated="not deprecated">
  30587. </constructor>
  30588. <doc>
  30589. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  30590. for classes generated by Avro's 'specific' compiler.]]>
  30591. </doc>
  30592. </class>
  30593. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  30594. <doc>
  30595. <![CDATA[<p>
  30596. This package provides Avro serialization in Hadoop. This can be used to
  30597. serialize/deserialize Avro types in Hadoop.
  30598. </p>
  30599. <p>
  30600. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  30601. serialization of classes generated by Avro's 'specific' compiler.
  30602. </p>
  30603. <p>
  30604. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  30605. other classes.
  30606. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  30607. any class which is either in the package list configured via
  30608. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  30609. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  30610. interface.
  30611. </p>]]>
  30612. </doc>
  30613. </package>
  30614. <package name="org.apache.hadoop.ipc.protocolPB">
  30615. <!-- start class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolClientSideTranslatorPB -->
  30616. <class name="GenericRefreshProtocolClientSideTranslatorPB" extends="java.lang.Object"
  30617. abstract="false"
  30618. static="false" final="false" visibility="public"
  30619. deprecated="not deprecated">
  30620. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  30621. <implements name="org.apache.hadoop.ipc.GenericRefreshProtocol"/>
  30622. <implements name="java.io.Closeable"/>
  30623. <constructor name="GenericRefreshProtocolClientSideTranslatorPB" type="org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolPB"
  30624. static="false" final="false" visibility="public"
  30625. deprecated="not deprecated">
  30626. </constructor>
  30627. <method name="close"
  30628. abstract="false" native="false" synchronized="false"
  30629. static="false" final="false" visibility="public"
  30630. deprecated="not deprecated">
  30631. <exception name="IOException" type="java.io.IOException"/>
  30632. </method>
  30633. <method name="refresh" return="java.util.Collection"
  30634. abstract="false" native="false" synchronized="false"
  30635. static="false" final="false" visibility="public"
  30636. deprecated="not deprecated">
  30637. <param name="identifier" type="java.lang.String"/>
  30638. <param name="args" type="java.lang.String[]"/>
  30639. <exception name="IOException" type="java.io.IOException"/>
  30640. </method>
  30641. <method name="isMethodSupported" return="boolean"
  30642. abstract="false" native="false" synchronized="false"
  30643. static="false" final="false" visibility="public"
  30644. deprecated="not deprecated">
  30645. <param name="methodName" type="java.lang.String"/>
  30646. <exception name="IOException" type="java.io.IOException"/>
  30647. </method>
  30648. </class>
  30649. <!-- end class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolClientSideTranslatorPB -->
  30650. <!-- start class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolServerSideTranslatorPB -->
  30651. <class name="GenericRefreshProtocolServerSideTranslatorPB" extends="java.lang.Object"
  30652. abstract="false"
  30653. static="false" final="false" visibility="public"
  30654. deprecated="not deprecated">
  30655. <implements name="org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolPB"/>
  30656. <constructor name="GenericRefreshProtocolServerSideTranslatorPB" type="org.apache.hadoop.ipc.GenericRefreshProtocol"
  30657. static="false" final="false" visibility="public"
  30658. deprecated="not deprecated">
  30659. </constructor>
  30660. <method name="refresh" return="org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto"
  30661. abstract="false" native="false" synchronized="false"
  30662. static="false" final="false" visibility="public"
  30663. deprecated="not deprecated">
  30664. <param name="controller" type="com.google.protobuf.RpcController"/>
  30665. <param name="request" type="org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto"/>
  30666. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  30667. </method>
  30668. </class>
  30669. <!-- end class org.apache.hadoop.ipc.protocolPB.GenericRefreshProtocolServerSideTranslatorPB -->
  30670. <!-- start class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolClientSideTranslatorPB -->
  30671. <class name="RefreshCallQueueProtocolClientSideTranslatorPB" extends="java.lang.Object"
  30672. abstract="false"
  30673. static="false" final="false" visibility="public"
  30674. deprecated="not deprecated">
  30675. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  30676. <implements name="org.apache.hadoop.ipc.RefreshCallQueueProtocol"/>
  30677. <implements name="java.io.Closeable"/>
  30678. <constructor name="RefreshCallQueueProtocolClientSideTranslatorPB" type="org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolPB"
  30679. static="false" final="false" visibility="public"
  30680. deprecated="not deprecated">
  30681. </constructor>
  30682. <method name="close"
  30683. abstract="false" native="false" synchronized="false"
  30684. static="false" final="false" visibility="public"
  30685. deprecated="not deprecated">
  30686. <exception name="IOException" type="java.io.IOException"/>
  30687. </method>
  30688. <method name="refreshCallQueue"
  30689. abstract="false" native="false" synchronized="false"
  30690. static="false" final="false" visibility="public"
  30691. deprecated="not deprecated">
  30692. <exception name="IOException" type="java.io.IOException"/>
  30693. </method>
  30694. <method name="isMethodSupported" return="boolean"
  30695. abstract="false" native="false" synchronized="false"
  30696. static="false" final="false" visibility="public"
  30697. deprecated="not deprecated">
  30698. <param name="methodName" type="java.lang.String"/>
  30699. <exception name="IOException" type="java.io.IOException"/>
  30700. </method>
  30701. </class>
  30702. <!-- end class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolClientSideTranslatorPB -->
  30703. <!-- start class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolServerSideTranslatorPB -->
  30704. <class name="RefreshCallQueueProtocolServerSideTranslatorPB" extends="java.lang.Object"
  30705. abstract="false"
  30706. static="false" final="false" visibility="public"
  30707. deprecated="not deprecated">
  30708. <implements name="org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolPB"/>
  30709. <constructor name="RefreshCallQueueProtocolServerSideTranslatorPB" type="org.apache.hadoop.ipc.RefreshCallQueueProtocol"
  30710. static="false" final="false" visibility="public"
  30711. deprecated="not deprecated">
  30712. </constructor>
  30713. <method name="refreshCallQueue" return="org.apache.hadoop.ipc.proto.RefreshCallQueueProtocolProtos.RefreshCallQueueResponseProto"
  30714. abstract="false" native="false" synchronized="false"
  30715. static="false" final="false" visibility="public"
  30716. deprecated="not deprecated">
  30717. <param name="controller" type="com.google.protobuf.RpcController"/>
  30718. <param name="request" type="org.apache.hadoop.ipc.proto.RefreshCallQueueProtocolProtos.RefreshCallQueueRequestProto"/>
  30719. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  30720. </method>
  30721. </class>
  30722. <!-- end class org.apache.hadoop.ipc.protocolPB.RefreshCallQueueProtocolServerSideTranslatorPB -->
  30723. </package>
  30724. <package name="org.apache.hadoop.jmx">
  30725. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  30726. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  30727. abstract="false"
  30728. static="false" final="false" visibility="public"
  30729. deprecated="not deprecated">
  30730. <constructor name="JMXJsonServlet"
  30731. static="false" final="false" visibility="public"
  30732. deprecated="not deprecated">
  30733. </constructor>
  30734. <method name="init"
  30735. abstract="false" native="false" synchronized="false"
  30736. static="false" final="false" visibility="public"
  30737. deprecated="not deprecated">
  30738. <exception name="ServletException" type="javax.servlet.ServletException"/>
  30739. <doc>
  30740. <![CDATA[Initialize this servlet.]]>
  30741. </doc>
  30742. </method>
  30743. <method name="isInstrumentationAccessAllowed" return="boolean"
  30744. abstract="false" native="false" synchronized="false"
  30745. static="false" final="false" visibility="protected"
  30746. deprecated="not deprecated">
  30747. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  30748. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  30749. <exception name="IOException" type="java.io.IOException"/>
  30750. </method>
  30751. <method name="doGet"
  30752. abstract="false" native="false" synchronized="false"
  30753. static="false" final="false" visibility="public"
  30754. deprecated="not deprecated">
  30755. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  30756. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  30757. <doc>
  30758. <![CDATA[Process a GET request for the specified resource.
  30759. @param request
  30760. The servlet request we are processing
  30761. @param response
  30762. The servlet response we are creating]]>
  30763. </doc>
  30764. </method>
  30765. <field name="mBeanServer" type="javax.management.MBeanServer"
  30766. transient="true" volatile="false"
  30767. static="false" final="false" visibility="protected"
  30768. deprecated="not deprecated">
  30769. <doc>
  30770. <![CDATA[MBean server.]]>
  30771. </doc>
  30772. </field>
  30773. <doc>
  30774. <![CDATA[Provides Read only web access to JMX.
  30775. <p>
  30776. This servlet generally will be placed under the /jmx URL for each
  30777. HttpServer. It provides read only
  30778. access to JMX metrics. The optional <code>qry</code> parameter
  30779. may be used to query only a subset of the JMX Beans. This query
  30780. functionality is provided through the
  30781. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  30782. method.
  30783. <p>
  30784. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  30785. all hadoop metrics exposed through JMX.
  30786. <p>
  30787. The optional <code>get</code> parameter is used to query an specific
  30788. attribute of a JMX bean. The format of the URL is
  30789. <code>http://.../jmx?get=MXBeanName::AttributeName<code>
  30790. <p>
  30791. For example
  30792. <code>
  30793. http://../jmx?get=Hadoop:service=NameNode,name=NameNodeInfo::ClusterId
  30794. </code> will return the cluster id of the namenode mxbean.
  30795. <p>
  30796. If the <code>qry</code> or the <code>get</code> parameter is not formatted
  30797. correctly then a 400 BAD REQUEST http response code will be returned.
  30798. <p>
  30799. If a resouce such as a mbean or attribute can not be found,
  30800. a 404 SC_NOT_FOUND http response code will be returned.
  30801. <p>
  30802. The return format is JSON and in the form
  30803. <p>
  30804. <code><pre>
  30805. {
  30806. "beans" : [
  30807. {
  30808. "name":"bean-name"
  30809. ...
  30810. }
  30811. ]
  30812. }
  30813. </pre></code>
  30814. <p>
  30815. The servlet attempts to convert the the JMXBeans into JSON. Each
  30816. bean's attributes will be converted to a JSON object member.
  30817. If the attribute is a boolean, a number, a string, or an array
  30818. it will be converted to the JSON equivalent.
  30819. If the value is a {@link CompositeData} then it will be converted
  30820. to a JSON object with the keys as the name of the JSON member and
  30821. the value is converted following these same rules.
  30822. If the value is a {@link TabularData} then it will be converted
  30823. to an array of the {@link CompositeData} elements that it contains.
  30824. All other objects will be converted to a string and output as such.
  30825. The bean's name and modelerType will be returned for all beans.]]>
  30826. </doc>
  30827. </class>
  30828. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  30829. </package>
  30830. <package name="org.apache.hadoop.log">
  30831. <!-- start class org.apache.hadoop.log.EventCounter -->
  30832. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  30833. abstract="false"
  30834. static="false" final="false" visibility="public"
  30835. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  30836. <constructor name="EventCounter"
  30837. static="false" final="false" visibility="public"
  30838. deprecated="not deprecated">
  30839. </constructor>
  30840. <doc>
  30841. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  30842. fatal, error and warn. The class name is used in log4j.properties
  30843. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  30844. </doc>
  30845. </class>
  30846. <!-- end class org.apache.hadoop.log.EventCounter -->
  30847. <!-- start class org.apache.hadoop.log.Log4Json -->
  30848. <class name="Log4Json" extends="org.apache.log4j.Layout"
  30849. abstract="false"
  30850. static="false" final="false" visibility="public"
  30851. deprecated="not deprecated">
  30852. <constructor name="Log4Json"
  30853. static="false" final="false" visibility="public"
  30854. deprecated="not deprecated">
  30855. </constructor>
  30856. <method name="getContentType" return="java.lang.String"
  30857. abstract="false" native="false" synchronized="false"
  30858. static="false" final="false" visibility="public"
  30859. deprecated="not deprecated">
  30860. <doc>
  30861. <![CDATA[@return the mime type of JSON]]>
  30862. </doc>
  30863. </method>
  30864. <method name="format" return="java.lang.String"
  30865. abstract="false" native="false" synchronized="false"
  30866. static="false" final="false" visibility="public"
  30867. deprecated="not deprecated">
  30868. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  30869. </method>
  30870. <method name="toJson" return="java.lang.String"
  30871. abstract="false" native="false" synchronized="false"
  30872. static="false" final="false" visibility="public"
  30873. deprecated="not deprecated">
  30874. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  30875. <exception name="IOException" type="java.io.IOException"/>
  30876. <doc>
  30877. <![CDATA[Convert an event to JSON
  30878. @param event the event -must not be null
  30879. @return a string value
  30880. @throws IOException on problems generating the JSON]]>
  30881. </doc>
  30882. </method>
  30883. <method name="toJson" return="java.io.Writer"
  30884. abstract="false" native="false" synchronized="false"
  30885. static="false" final="false" visibility="public"
  30886. deprecated="not deprecated">
  30887. <param name="writer" type="java.io.Writer"/>
  30888. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  30889. <exception name="IOException" type="java.io.IOException"/>
  30890. <doc>
  30891. <![CDATA[Convert an event to JSON
  30892. @param writer the destination writer
  30893. @param event the event -must not be null
  30894. @return the writer
  30895. @throws IOException on problems generating the JSON]]>
  30896. </doc>
  30897. </method>
  30898. <method name="toJson" return="java.io.Writer"
  30899. abstract="false" native="false" synchronized="false"
  30900. static="false" final="false" visibility="public"
  30901. deprecated="not deprecated">
  30902. <param name="writer" type="java.io.Writer"/>
  30903. <param name="loggerName" type="java.lang.String"/>
  30904. <param name="timeStamp" type="long"/>
  30905. <param name="level" type="java.lang.String"/>
  30906. <param name="threadName" type="java.lang.String"/>
  30907. <param name="message" type="java.lang.String"/>
  30908. <param name="ti" type="org.apache.log4j.spi.ThrowableInformation"/>
  30909. <exception name="IOException" type="java.io.IOException"/>
  30910. <doc>
  30911. <![CDATA[Build a JSON entry from the parameters. This is public for testing.
  30912. @param writer destination
  30913. @param loggerName logger name
  30914. @param timeStamp time_t value
  30915. @param level level string
  30916. @param threadName name of the thread
  30917. @param message rendered message
  30918. @param ti nullable thrown information
  30919. @return the writer
  30920. @throws IOException on any problem]]>
  30921. </doc>
  30922. </method>
  30923. <method name="ignoresThrowable" return="boolean"
  30924. abstract="false" native="false" synchronized="false"
  30925. static="false" final="false" visibility="public"
  30926. deprecated="not deprecated">
  30927. <doc>
  30928. <![CDATA[This appender does not ignore throwables
  30929. @return false, always]]>
  30930. </doc>
  30931. </method>
  30932. <method name="activateOptions"
  30933. abstract="false" native="false" synchronized="false"
  30934. static="false" final="false" visibility="public"
  30935. deprecated="not deprecated">
  30936. <doc>
  30937. <![CDATA[Do nothing]]>
  30938. </doc>
  30939. </method>
  30940. <method name="parse" return="org.codehaus.jackson.node.ContainerNode"
  30941. abstract="false" native="false" synchronized="false"
  30942. static="true" final="false" visibility="public"
  30943. deprecated="not deprecated">
  30944. <param name="json" type="java.lang.String"/>
  30945. <exception name="IOException" type="java.io.IOException"/>
  30946. <doc>
  30947. <![CDATA[For use in tests
  30948. @param json incoming JSON to parse
  30949. @return a node tree
  30950. @throws IOException on any parsing problems]]>
  30951. </doc>
  30952. </method>
  30953. <field name="DATE" type="java.lang.String"
  30954. transient="false" volatile="false"
  30955. static="true" final="true" visibility="public"
  30956. deprecated="not deprecated">
  30957. </field>
  30958. <field name="EXCEPTION_CLASS" type="java.lang.String"
  30959. transient="false" volatile="false"
  30960. static="true" final="true" visibility="public"
  30961. deprecated="not deprecated">
  30962. </field>
  30963. <field name="LEVEL" type="java.lang.String"
  30964. transient="false" volatile="false"
  30965. static="true" final="true" visibility="public"
  30966. deprecated="not deprecated">
  30967. </field>
  30968. <field name="MESSAGE" type="java.lang.String"
  30969. transient="false" volatile="false"
  30970. static="true" final="true" visibility="public"
  30971. deprecated="not deprecated">
  30972. </field>
  30973. <field name="NAME" type="java.lang.String"
  30974. transient="false" volatile="false"
  30975. static="true" final="true" visibility="public"
  30976. deprecated="not deprecated">
  30977. </field>
  30978. <field name="STACK" type="java.lang.String"
  30979. transient="false" volatile="false"
  30980. static="true" final="true" visibility="public"
  30981. deprecated="not deprecated">
  30982. </field>
  30983. <field name="THREAD" type="java.lang.String"
  30984. transient="false" volatile="false"
  30985. static="true" final="true" visibility="public"
  30986. deprecated="not deprecated">
  30987. </field>
  30988. <field name="TIME" type="java.lang.String"
  30989. transient="false" volatile="false"
  30990. static="true" final="true" visibility="public"
  30991. deprecated="not deprecated">
  30992. </field>
  30993. <field name="JSON_TYPE" type="java.lang.String"
  30994. transient="false" volatile="false"
  30995. static="true" final="true" visibility="public"
  30996. deprecated="not deprecated">
  30997. </field>
  30998. <doc>
  30999. <![CDATA[This offers a log layout for JSON, with some test entry points. It's purpose is
  31000. to allow Log4J to generate events that are easy for other programs to parse, but which are somewhat
  31001. human-readable.
  31002. Some features.
  31003. <ol>
  31004. <li>Every event is a standalone JSON clause</li>
  31005. <li>Time is published as a time_t event since 1/1/1970
  31006. -this is the fastest to generate.</li>
  31007. <li>An ISO date is generated, but this is cached and will only be accurate to within a second</li>
  31008. <li>the stack trace is included as an array</li>
  31009. </ol>
  31010. A simple log event will resemble the following
  31011. <pre>
  31012. {"name":"test","time":1318429136789,"date":"2011-10-12 15:18:56,789","level":"INFO","thread":"main","message":"test message"}
  31013. </pre>
  31014. An event with an error will contain data similar to that below (which has been reformatted to be multi-line).
  31015. <pre>
  31016. {
  31017. "name":"testException",
  31018. "time":1318429136789,
  31019. "date":"2011-10-12 15:18:56,789",
  31020. "level":"INFO",
  31021. "thread":"quoted\"",
  31022. "message":"new line\n and {}",
  31023. "exceptionclass":"java.net.NoRouteToHostException",
  31024. "stack":[
  31025. "java.net.NoRouteToHostException: that box caught fire 3 years ago",
  31026. "\tat org.apache.hadoop.log.TestLog4Json.testException(TestLog4Json.java:49)",
  31027. "\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
  31028. "\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)",
  31029. "\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)",
  31030. "\tat java.lang.reflect.Method.invoke(Method.java:597)",
  31031. "\tat junit.framework.TestCase.runTest(TestCase.java:168)",
  31032. "\tat junit.framework.TestCase.runBare(TestCase.java:134)",
  31033. "\tat junit.framework.TestResult$1.protect(TestResult.java:110)",
  31034. "\tat junit.framework.TestResult.runProtected(TestResult.java:128)",
  31035. "\tat junit.framework.TestResult.run(TestResult.java:113)",
  31036. "\tat junit.framework.TestCase.run(TestCase.java:124)",
  31037. "\tat junit.framework.TestSuite.runTest(TestSuite.java:232)",
  31038. "\tat junit.framework.TestSuite.run(TestSuite.java:227)",
  31039. "\tat org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)",
  31040. "\tat org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)",
  31041. "\tat org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)",
  31042. "\tat org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:145)",
  31043. "\tat org.apache.maven.surefire.Surefire.run(Surefire.java:104)",
  31044. "\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
  31045. "\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)",
  31046. "\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)",
  31047. "\tat java.lang.reflect.Method.invoke(Method.java:597)",
  31048. "\tat org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)",
  31049. "\tat org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)"
  31050. ]
  31051. }
  31052. </pre>]]>
  31053. </doc>
  31054. </class>
  31055. <!-- end class org.apache.hadoop.log.Log4Json -->
  31056. <!-- start class org.apache.hadoop.log.LogLevel -->
  31057. <class name="LogLevel" extends="java.lang.Object"
  31058. abstract="false"
  31059. static="false" final="false" visibility="public"
  31060. deprecated="not deprecated">
  31061. <constructor name="LogLevel"
  31062. static="false" final="false" visibility="public"
  31063. deprecated="not deprecated">
  31064. </constructor>
  31065. <method name="main"
  31066. abstract="false" native="false" synchronized="false"
  31067. static="true" final="false" visibility="public"
  31068. deprecated="not deprecated">
  31069. <param name="args" type="java.lang.String[]"/>
  31070. <doc>
  31071. <![CDATA[A command line implementation]]>
  31072. </doc>
  31073. </method>
  31074. <field name="USAGES" type="java.lang.String"
  31075. transient="false" volatile="false"
  31076. static="true" final="true" visibility="public"
  31077. deprecated="not deprecated">
  31078. </field>
  31079. <doc>
  31080. <![CDATA[Change log level in runtime.]]>
  31081. </doc>
  31082. </class>
  31083. <!-- end class org.apache.hadoop.log.LogLevel -->
  31084. </package>
  31085. <package name="org.apache.hadoop.log.metrics">
  31086. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  31087. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  31088. abstract="false"
  31089. static="false" final="false" visibility="public"
  31090. deprecated="not deprecated">
  31091. <constructor name="EventCounter"
  31092. static="false" final="false" visibility="public"
  31093. deprecated="not deprecated">
  31094. </constructor>
  31095. <method name="append"
  31096. abstract="false" native="false" synchronized="false"
  31097. static="false" final="false" visibility="public"
  31098. deprecated="not deprecated">
  31099. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  31100. </method>
  31101. <method name="close"
  31102. abstract="false" native="false" synchronized="false"
  31103. static="false" final="false" visibility="public"
  31104. deprecated="not deprecated">
  31105. </method>
  31106. <method name="requiresLayout" return="boolean"
  31107. abstract="false" native="false" synchronized="false"
  31108. static="false" final="false" visibility="public"
  31109. deprecated="not deprecated">
  31110. </method>
  31111. <doc>
  31112. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  31113. fatal, error and warn. The class name is used in log4j.properties]]>
  31114. </doc>
  31115. </class>
  31116. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  31117. </package>
  31118. <package name="org.apache.hadoop.metrics">
  31119. <doc>
  31120. <![CDATA[This package defines an API for reporting performance metric information.
  31121. <p/>
  31122. The API is abstract so that it can be implemented on top of
  31123. a variety of metrics client libraries. The choice of
  31124. client library is a configuration option, and different
  31125. modules within the same application can use
  31126. different metrics implementation libraries.
  31127. <p/>
  31128. Sub-packages:
  31129. <dl>
  31130. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  31131. <dd>The abstract Server Provider Interface package. Those wishing to
  31132. integrate the metrics API with a particular metrics client library should
  31133. extend this package.</dd>
  31134. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  31135. <dd>An implementation package which writes the metric data to
  31136. a file, or sends it to the standard output stream.</dd>
  31137. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  31138. <dd>An implementation package which sends metric data to
  31139. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  31140. </dl>
  31141. <h3>Introduction to the Metrics API</h3>
  31142. Here is a simple example of how to use this package to report a single
  31143. metric value:
  31144. <pre>
  31145. private ContextFactory contextFactory = ContextFactory.getFactory();
  31146. void reportMyMetric(float myMetric) {
  31147. MetricsContext myContext = contextFactory.getContext("myContext");
  31148. MetricsRecord myRecord = myContext.getRecord("myRecord");
  31149. myRecord.setMetric("myMetric", myMetric);
  31150. myRecord.update();
  31151. }
  31152. </pre>
  31153. In this example there are three names:
  31154. <dl>
  31155. <dt><i>myContext</i></dt>
  31156. <dd>The context name will typically identify either the application, or else a
  31157. module within an application or library.</dd>
  31158. <dt><i>myRecord</i></dt>
  31159. <dd>The record name generally identifies some entity for which a set of
  31160. metrics are to be reported. For example, you could have a record named
  31161. "cacheStats" for reporting a number of statistics relating to the usage of
  31162. some cache in your application.</dd>
  31163. <dt><i>myMetric</i></dt>
  31164. <dd>This identifies a particular metric. For example, you might have metrics
  31165. named "cache_hits" and "cache_misses".
  31166. </dd>
  31167. </dl>
  31168. <h3>Tags</h3>
  31169. In some cases it is useful to have multiple records with the same name. For
  31170. example, suppose that you want to report statistics about each disk on a computer.
  31171. In this case, the record name would be something like "diskStats", but you also
  31172. need to identify the disk which is done by adding a <i>tag</i> to the record.
  31173. The code could look something like this:
  31174. <pre>
  31175. private MetricsRecord diskStats =
  31176. contextFactory.getContext("myContext").getRecord("diskStats");
  31177. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  31178. diskStats.setTag("diskName", diskName);
  31179. diskStats.setMetric("diskBusy", diskBusy);
  31180. diskStats.setMetric("diskUsed", diskUsed);
  31181. diskStats.update();
  31182. }
  31183. </pre>
  31184. <h3>Buffering and Callbacks</h3>
  31185. Data is not sent immediately to the metrics system when
  31186. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  31187. internal table, and the contents of the table are sent periodically.
  31188. This can be important for two reasons:
  31189. <ol>
  31190. <li>It means that a programmer is free to put calls to this API in an
  31191. inner loop, since updates can be very frequent without slowing down
  31192. the application significantly.</li>
  31193. <li>Some implementations can gain efficiency by combining many metrics
  31194. into a single UDP message.</li>
  31195. </ol>
  31196. The API provides a timer-based callback via the
  31197. <code>registerUpdater()</code> method. The benefit of this
  31198. versus using <code>java.util.Timer</code> is that the callbacks will be done
  31199. immediately before sending the data, making the data as current as possible.
  31200. <h3>Configuration</h3>
  31201. It is possible to programmatically examine and modify configuration data
  31202. before creating a context, like this:
  31203. <pre>
  31204. ContextFactory factory = ContextFactory.getFactory();
  31205. ... examine and/or modify factory attributes ...
  31206. MetricsContext context = factory.getContext("myContext");
  31207. </pre>
  31208. The factory attributes can be examined and modified using the following
  31209. <code>ContextFactory</code>methods:
  31210. <ul>
  31211. <li><code>Object getAttribute(String attributeName)</code></li>
  31212. <li><code>String[] getAttributeNames()</code></li>
  31213. <li><code>void setAttribute(String name, Object value)</code></li>
  31214. <li><code>void removeAttribute(attributeName)</code></li>
  31215. </ul>
  31216. <p/>
  31217. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  31218. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  31219. on the class path.
  31220. <p/>
  31221. A factory attribute named:
  31222. <pre>
  31223. <i>contextName</i>.class
  31224. </pre>
  31225. should have as its value the fully qualified name of the class to be
  31226. instantiated by a call of the <code>CodeFactory</code> method
  31227. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  31228. specified, the default is to instantiate
  31229. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  31230. <p/>
  31231. Other factory attributes are specific to a particular implementation of this
  31232. API and are documented elsewhere. For example, configuration attributes for
  31233. the file and Ganglia implementations can be found in the javadoc for
  31234. their respective packages.]]>
  31235. </doc>
  31236. </package>
  31237. <package name="org.apache.hadoop.metrics.ganglia">
  31238. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  31239. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31240. abstract="false"
  31241. static="false" final="false" visibility="public"
  31242. deprecated="not deprecated">
  31243. <constructor name="GangliaContext"
  31244. static="false" final="false" visibility="public"
  31245. deprecated="not deprecated">
  31246. <doc>
  31247. <![CDATA[Creates a new instance of GangliaContext]]>
  31248. </doc>
  31249. </constructor>
  31250. <method name="close"
  31251. abstract="false" native="false" synchronized="false"
  31252. static="false" final="false" visibility="public"
  31253. deprecated="not deprecated">
  31254. <doc>
  31255. <![CDATA[method to close the datagram socket]]>
  31256. </doc>
  31257. </method>
  31258. <method name="emitMetric"
  31259. abstract="false" native="false" synchronized="false"
  31260. static="false" final="false" visibility="protected"
  31261. deprecated="not deprecated">
  31262. <param name="name" type="java.lang.String"/>
  31263. <param name="type" type="java.lang.String"/>
  31264. <param name="value" type="java.lang.String"/>
  31265. <exception name="IOException" type="java.io.IOException"/>
  31266. </method>
  31267. <method name="getUnits" return="java.lang.String"
  31268. abstract="false" native="false" synchronized="false"
  31269. static="false" final="false" visibility="protected"
  31270. deprecated="not deprecated">
  31271. <param name="metricName" type="java.lang.String"/>
  31272. </method>
  31273. <method name="getSlope" return="int"
  31274. abstract="false" native="false" synchronized="false"
  31275. static="false" final="false" visibility="protected"
  31276. deprecated="not deprecated">
  31277. <param name="metricName" type="java.lang.String"/>
  31278. </method>
  31279. <method name="getTmax" return="int"
  31280. abstract="false" native="false" synchronized="false"
  31281. static="false" final="false" visibility="protected"
  31282. deprecated="not deprecated">
  31283. <param name="metricName" type="java.lang.String"/>
  31284. </method>
  31285. <method name="getDmax" return="int"
  31286. abstract="false" native="false" synchronized="false"
  31287. static="false" final="false" visibility="protected"
  31288. deprecated="not deprecated">
  31289. <param name="metricName" type="java.lang.String"/>
  31290. </method>
  31291. <method name="xdr_string"
  31292. abstract="false" native="false" synchronized="false"
  31293. static="false" final="false" visibility="protected"
  31294. deprecated="not deprecated">
  31295. <param name="s" type="java.lang.String"/>
  31296. <doc>
  31297. <![CDATA[Puts a string into the buffer by first writing the size of the string
  31298. as an int, followed by the bytes of the string, padded if necessary to
  31299. a multiple of 4.]]>
  31300. </doc>
  31301. </method>
  31302. <method name="xdr_int"
  31303. abstract="false" native="false" synchronized="false"
  31304. static="false" final="false" visibility="protected"
  31305. deprecated="not deprecated">
  31306. <param name="i" type="int"/>
  31307. <doc>
  31308. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  31309. </doc>
  31310. </method>
  31311. <field name="buffer" type="byte[]"
  31312. transient="false" volatile="false"
  31313. static="false" final="false" visibility="protected"
  31314. deprecated="not deprecated">
  31315. </field>
  31316. <field name="offset" type="int"
  31317. transient="false" volatile="false"
  31318. static="false" final="false" visibility="protected"
  31319. deprecated="not deprecated">
  31320. </field>
  31321. <field name="metricsServers" type="java.util.List"
  31322. transient="false" volatile="false"
  31323. static="false" final="false" visibility="protected"
  31324. deprecated="not deprecated">
  31325. </field>
  31326. <field name="datagramSocket" type="java.net.DatagramSocket"
  31327. transient="false" volatile="false"
  31328. static="false" final="false" visibility="protected"
  31329. deprecated="not deprecated">
  31330. </field>
  31331. <doc>
  31332. <![CDATA[Context for sending metrics to Ganglia.]]>
  31333. </doc>
  31334. </class>
  31335. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  31336. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  31337. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  31338. abstract="false"
  31339. static="false" final="false" visibility="public"
  31340. deprecated="not deprecated">
  31341. <constructor name="GangliaContext31"
  31342. static="false" final="false" visibility="public"
  31343. deprecated="not deprecated">
  31344. </constructor>
  31345. <method name="init"
  31346. abstract="false" native="false" synchronized="false"
  31347. static="false" final="false" visibility="public"
  31348. deprecated="not deprecated">
  31349. <param name="contextName" type="java.lang.String"/>
  31350. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  31351. </method>
  31352. <method name="emitMetric"
  31353. abstract="false" native="false" synchronized="false"
  31354. static="false" final="false" visibility="protected"
  31355. deprecated="not deprecated">
  31356. <param name="name" type="java.lang.String"/>
  31357. <param name="type" type="java.lang.String"/>
  31358. <param name="value" type="java.lang.String"/>
  31359. <exception name="IOException" type="java.io.IOException"/>
  31360. </method>
  31361. <doc>
  31362. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  31363. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  31364. </doc>
  31365. </class>
  31366. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  31367. <doc>
  31368. <![CDATA[<!--
  31369. * Licensed to the Apache Software Foundation (ASF) under one
  31370. * or more contributor license agreements. See the NOTICE file
  31371. * distributed with this work for additional information
  31372. * regarding copyright ownership. The ASF licenses this file
  31373. * to you under the Apache License, Version 2.0 (the
  31374. * "License"); you may not use this file except in compliance
  31375. * with the License. You may obtain a copy of the License at
  31376. *
  31377. * http://www.apache.org/licenses/LICENSE-2.0
  31378. *
  31379. * Unless required by applicable law or agreed to in writing, software
  31380. * distributed under the License is distributed on an "AS IS" BASIS,
  31381. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  31382. * See the License for the specific language governing permissions and
  31383. * limitations under the License.
  31384. -->
  31385. Implementation of the metrics package that sends metric data to
  31386. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  31387. Programmers should not normally need to use this package directly. Instead
  31388. they should use org.hadoop.metrics.
  31389. <p/>
  31390. These are the implementation specific factory attributes
  31391. (See ContextFactory.getFactory()):
  31392. <dl>
  31393. <dt><i>contextName</i>.servers</dt>
  31394. <dd>Space and/or comma separated sequence of servers to which UDP
  31395. messages should be sent.</dd>
  31396. <dt><i>contextName</i>.period</dt>
  31397. <dd>The period in seconds on which the metric data is sent to the
  31398. server(s).</dd>
  31399. <dt><i>contextName</i>.multicast</dt>
  31400. <dd>Enable multicast for Ganglia</dd>
  31401. <dt><i>contextName</i>.multicast.ttl</dt>
  31402. <dd>TTL for multicast packets</dd>
  31403. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  31404. <dd>The units for the specified metric in the specified record.</dd>
  31405. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  31406. <dd>The slope for the specified metric in the specified record.</dd>
  31407. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  31408. <dd>The tmax for the specified metric in the specified record.</dd>
  31409. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  31410. <dd>The dmax for the specified metric in the specified record.</dd>
  31411. </dl>]]>
  31412. </doc>
  31413. </package>
  31414. <package name="org.apache.hadoop.metrics.spi">
  31415. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  31416. <class name="AbstractMetricsContext" extends="java.lang.Object"
  31417. abstract="true"
  31418. static="false" final="false" visibility="public"
  31419. deprecated="not deprecated">
  31420. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  31421. <constructor name="AbstractMetricsContext"
  31422. static="false" final="false" visibility="protected"
  31423. deprecated="not deprecated">
  31424. <doc>
  31425. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  31426. </doc>
  31427. </constructor>
  31428. <method name="init"
  31429. abstract="false" native="false" synchronized="false"
  31430. static="false" final="false" visibility="public"
  31431. deprecated="not deprecated">
  31432. <param name="contextName" type="java.lang.String"/>
  31433. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  31434. <doc>
  31435. <![CDATA[Initializes the context.]]>
  31436. </doc>
  31437. </method>
  31438. <method name="getAttribute" return="java.lang.String"
  31439. abstract="false" native="false" synchronized="false"
  31440. static="false" final="false" visibility="protected"
  31441. deprecated="not deprecated">
  31442. <param name="attributeName" type="java.lang.String"/>
  31443. <doc>
  31444. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  31445. </doc>
  31446. </method>
  31447. <method name="getAttributeTable" return="java.util.Map"
  31448. abstract="false" native="false" synchronized="false"
  31449. static="false" final="false" visibility="protected"
  31450. deprecated="not deprecated">
  31451. <param name="tableName" type="java.lang.String"/>
  31452. <doc>
  31453. <![CDATA[Returns an attribute-value map derived from the factory attributes
  31454. by finding all factory attributes that begin with
  31455. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  31456. those attributes with the contextName and tableName stripped off.]]>
  31457. </doc>
  31458. </method>
  31459. <method name="getContextName" return="java.lang.String"
  31460. abstract="false" native="false" synchronized="false"
  31461. static="false" final="false" visibility="public"
  31462. deprecated="not deprecated">
  31463. <doc>
  31464. <![CDATA[Returns the context name.]]>
  31465. </doc>
  31466. </method>
  31467. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  31468. abstract="false" native="false" synchronized="false"
  31469. static="false" final="false" visibility="public"
  31470. deprecated="not deprecated">
  31471. <doc>
  31472. <![CDATA[Returns the factory by which this context was created.]]>
  31473. </doc>
  31474. </method>
  31475. <method name="startMonitoring"
  31476. abstract="false" native="false" synchronized="true"
  31477. static="false" final="false" visibility="public"
  31478. deprecated="not deprecated">
  31479. <exception name="IOException" type="java.io.IOException"/>
  31480. <doc>
  31481. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  31482. </doc>
  31483. </method>
  31484. <method name="stopMonitoring"
  31485. abstract="false" native="false" synchronized="true"
  31486. static="false" final="false" visibility="public"
  31487. deprecated="not deprecated">
  31488. <doc>
  31489. <![CDATA[Stops monitoring. This does not free buffered data.
  31490. @see #close()]]>
  31491. </doc>
  31492. </method>
  31493. <method name="isMonitoring" return="boolean"
  31494. abstract="false" native="false" synchronized="false"
  31495. static="false" final="false" visibility="public"
  31496. deprecated="not deprecated">
  31497. <doc>
  31498. <![CDATA[Returns true if monitoring is currently in progress.]]>
  31499. </doc>
  31500. </method>
  31501. <method name="close"
  31502. abstract="false" native="false" synchronized="true"
  31503. static="false" final="false" visibility="public"
  31504. deprecated="not deprecated">
  31505. <doc>
  31506. <![CDATA[Stops monitoring and frees buffered data, returning this
  31507. object to its initial state.]]>
  31508. </doc>
  31509. </method>
  31510. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  31511. abstract="false" native="false" synchronized="true"
  31512. static="false" final="true" visibility="public"
  31513. deprecated="not deprecated">
  31514. <param name="recordName" type="java.lang.String"/>
  31515. <doc>
  31516. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  31517. Throws an exception if the metrics implementation is configured with a fixed
  31518. set of record names and <code>recordName</code> is not in that set.
  31519. @param recordName the name of the record
  31520. @throws MetricsException if recordName conflicts with configuration data]]>
  31521. </doc>
  31522. </method>
  31523. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  31524. abstract="false" native="false" synchronized="false"
  31525. static="false" final="false" visibility="protected"
  31526. deprecated="not deprecated">
  31527. <param name="recordName" type="java.lang.String"/>
  31528. <doc>
  31529. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  31530. @param recordName the name of the record
  31531. @return newly created instance of MetricsRecordImpl or subclass]]>
  31532. </doc>
  31533. </method>
  31534. <method name="registerUpdater"
  31535. abstract="false" native="false" synchronized="true"
  31536. static="false" final="false" visibility="public"
  31537. deprecated="not deprecated">
  31538. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  31539. <doc>
  31540. <![CDATA[Registers a callback to be called at time intervals determined by
  31541. the configuration.
  31542. @param updater object to be run periodically; it should update
  31543. some metrics records]]>
  31544. </doc>
  31545. </method>
  31546. <method name="unregisterUpdater"
  31547. abstract="false" native="false" synchronized="true"
  31548. static="false" final="false" visibility="public"
  31549. deprecated="not deprecated">
  31550. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  31551. <doc>
  31552. <![CDATA[Removes a callback, if it exists.
  31553. @param updater object to be removed from the callback list]]>
  31554. </doc>
  31555. </method>
  31556. <method name="getAllRecords" return="java.util.Map"
  31557. abstract="false" native="false" synchronized="true"
  31558. static="false" final="false" visibility="public"
  31559. deprecated="not deprecated">
  31560. <doc>
  31561. <![CDATA[Retrieves all the records managed by this MetricsContext.
  31562. Useful for monitoring systems that are polling-based.
  31563. @return A non-null collection of all monitoring records.]]>
  31564. </doc>
  31565. </method>
  31566. <method name="emitRecord"
  31567. abstract="true" native="false" synchronized="false"
  31568. static="false" final="false" visibility="protected"
  31569. deprecated="not deprecated">
  31570. <param name="contextName" type="java.lang.String"/>
  31571. <param name="recordName" type="java.lang.String"/>
  31572. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  31573. <exception name="IOException" type="java.io.IOException"/>
  31574. <doc>
  31575. <![CDATA[Sends a record to the metrics system.]]>
  31576. </doc>
  31577. </method>
  31578. <method name="flush"
  31579. abstract="false" native="false" synchronized="false"
  31580. static="false" final="false" visibility="protected"
  31581. deprecated="not deprecated">
  31582. <exception name="IOException" type="java.io.IOException"/>
  31583. <doc>
  31584. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  31585. Subclasses may override it in order to perform some kind of flush.]]>
  31586. </doc>
  31587. </method>
  31588. <method name="update"
  31589. abstract="false" native="false" synchronized="false"
  31590. static="false" final="false" visibility="protected"
  31591. deprecated="not deprecated">
  31592. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  31593. <doc>
  31594. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  31595. the internal table of metric data.]]>
  31596. </doc>
  31597. </method>
  31598. <method name="remove"
  31599. abstract="false" native="false" synchronized="false"
  31600. static="false" final="false" visibility="protected"
  31601. deprecated="not deprecated">
  31602. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  31603. <doc>
  31604. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  31605. the internal table of metric data. A row matches if it has the same
  31606. tag names and values as record, but it may also have additional
  31607. tags.]]>
  31608. </doc>
  31609. </method>
  31610. <method name="getPeriod" return="int"
  31611. abstract="false" native="false" synchronized="false"
  31612. static="false" final="false" visibility="public"
  31613. deprecated="not deprecated">
  31614. <doc>
  31615. <![CDATA[Returns the timer period.]]>
  31616. </doc>
  31617. </method>
  31618. <method name="setPeriod"
  31619. abstract="false" native="false" synchronized="false"
  31620. static="false" final="false" visibility="protected"
  31621. deprecated="not deprecated">
  31622. <param name="period" type="int"/>
  31623. <doc>
  31624. <![CDATA[Sets the timer period]]>
  31625. </doc>
  31626. </method>
  31627. <method name="parseAndSetPeriod"
  31628. abstract="false" native="false" synchronized="false"
  31629. static="false" final="false" visibility="protected"
  31630. deprecated="not deprecated">
  31631. <param name="attributeName" type="java.lang.String"/>
  31632. <doc>
  31633. <![CDATA[If a period is set in the attribute passed in, override
  31634. the default with it.]]>
  31635. </doc>
  31636. </method>
  31637. <doc>
  31638. <![CDATA[The main class of the Service Provider Interface. This class should be
  31639. extended in order to integrate the Metrics API with a specific metrics
  31640. client library. <p/>
  31641. This class implements the internal table of metric data, and the timer
  31642. on which data is to be sent to the metrics system. Subclasses must
  31643. override the abstract <code>emitRecord</code> method in order to transmit
  31644. the data. <p/>]]>
  31645. </doc>
  31646. </class>
  31647. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  31648. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  31649. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31650. abstract="false"
  31651. static="false" final="false" visibility="public"
  31652. deprecated="not deprecated">
  31653. <constructor name="CompositeContext"
  31654. static="false" final="false" visibility="public"
  31655. deprecated="not deprecated">
  31656. </constructor>
  31657. </class>
  31658. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  31659. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  31660. <class name="MetricsRecordImpl" extends="java.lang.Object"
  31661. abstract="false"
  31662. static="false" final="false" visibility="public"
  31663. deprecated="not deprecated">
  31664. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  31665. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31666. static="false" final="false" visibility="protected"
  31667. deprecated="not deprecated">
  31668. <doc>
  31669. <![CDATA[Creates a new instance of FileRecord]]>
  31670. </doc>
  31671. </constructor>
  31672. <method name="getRecordName" return="java.lang.String"
  31673. abstract="false" native="false" synchronized="false"
  31674. static="false" final="false" visibility="public"
  31675. deprecated="not deprecated">
  31676. <doc>
  31677. <![CDATA[Returns the record name.
  31678. @return the record name]]>
  31679. </doc>
  31680. </method>
  31681. <method name="setTag"
  31682. abstract="false" native="false" synchronized="false"
  31683. static="false" final="false" visibility="public"
  31684. deprecated="not deprecated">
  31685. <param name="tagName" type="java.lang.String"/>
  31686. <param name="tagValue" type="java.lang.String"/>
  31687. <doc>
  31688. <![CDATA[Sets the named tag to the specified value.
  31689. @param tagName name of the tag
  31690. @param tagValue new value of the tag
  31691. @throws MetricsException if the tagName conflicts with the configuration]]>
  31692. </doc>
  31693. </method>
  31694. <method name="setTag"
  31695. abstract="false" native="false" synchronized="false"
  31696. static="false" final="false" visibility="public"
  31697. deprecated="not deprecated">
  31698. <param name="tagName" type="java.lang.String"/>
  31699. <param name="tagValue" type="int"/>
  31700. <doc>
  31701. <![CDATA[Sets the named tag to the specified value.
  31702. @param tagName name of the tag
  31703. @param tagValue new value of the tag
  31704. @throws MetricsException if the tagName conflicts with the configuration]]>
  31705. </doc>
  31706. </method>
  31707. <method name="setTag"
  31708. abstract="false" native="false" synchronized="false"
  31709. static="false" final="false" visibility="public"
  31710. deprecated="not deprecated">
  31711. <param name="tagName" type="java.lang.String"/>
  31712. <param name="tagValue" type="long"/>
  31713. <doc>
  31714. <![CDATA[Sets the named tag to the specified value.
  31715. @param tagName name of the tag
  31716. @param tagValue new value of the tag
  31717. @throws MetricsException if the tagName conflicts with the configuration]]>
  31718. </doc>
  31719. </method>
  31720. <method name="setTag"
  31721. abstract="false" native="false" synchronized="false"
  31722. static="false" final="false" visibility="public"
  31723. deprecated="not deprecated">
  31724. <param name="tagName" type="java.lang.String"/>
  31725. <param name="tagValue" type="short"/>
  31726. <doc>
  31727. <![CDATA[Sets the named tag to the specified value.
  31728. @param tagName name of the tag
  31729. @param tagValue new value of the tag
  31730. @throws MetricsException if the tagName conflicts with the configuration]]>
  31731. </doc>
  31732. </method>
  31733. <method name="setTag"
  31734. abstract="false" native="false" synchronized="false"
  31735. static="false" final="false" visibility="public"
  31736. deprecated="not deprecated">
  31737. <param name="tagName" type="java.lang.String"/>
  31738. <param name="tagValue" type="byte"/>
  31739. <doc>
  31740. <![CDATA[Sets the named tag to the specified value.
  31741. @param tagName name of the tag
  31742. @param tagValue new value of the tag
  31743. @throws MetricsException if the tagName conflicts with the configuration]]>
  31744. </doc>
  31745. </method>
  31746. <method name="removeTag"
  31747. abstract="false" native="false" synchronized="false"
  31748. static="false" final="false" visibility="public"
  31749. deprecated="not deprecated">
  31750. <param name="tagName" type="java.lang.String"/>
  31751. <doc>
  31752. <![CDATA[Removes any tag of the specified name.]]>
  31753. </doc>
  31754. </method>
  31755. <method name="setMetric"
  31756. abstract="false" native="false" synchronized="false"
  31757. static="false" final="false" visibility="public"
  31758. deprecated="not deprecated">
  31759. <param name="metricName" type="java.lang.String"/>
  31760. <param name="metricValue" type="int"/>
  31761. <doc>
  31762. <![CDATA[Sets the named metric to the specified value.
  31763. @param metricName name of the metric
  31764. @param metricValue new value of the metric
  31765. @throws MetricsException if the metricName or the type of the metricValue
  31766. conflicts with the configuration]]>
  31767. </doc>
  31768. </method>
  31769. <method name="setMetric"
  31770. abstract="false" native="false" synchronized="false"
  31771. static="false" final="false" visibility="public"
  31772. deprecated="not deprecated">
  31773. <param name="metricName" type="java.lang.String"/>
  31774. <param name="metricValue" type="long"/>
  31775. <doc>
  31776. <![CDATA[Sets the named metric to the specified value.
  31777. @param metricName name of the metric
  31778. @param metricValue new value of the metric
  31779. @throws MetricsException if the metricName or the type of the metricValue
  31780. conflicts with the configuration]]>
  31781. </doc>
  31782. </method>
  31783. <method name="setMetric"
  31784. abstract="false" native="false" synchronized="false"
  31785. static="false" final="false" visibility="public"
  31786. deprecated="not deprecated">
  31787. <param name="metricName" type="java.lang.String"/>
  31788. <param name="metricValue" type="short"/>
  31789. <doc>
  31790. <![CDATA[Sets the named metric to the specified value.
  31791. @param metricName name of the metric
  31792. @param metricValue new value of the metric
  31793. @throws MetricsException if the metricName or the type of the metricValue
  31794. conflicts with the configuration]]>
  31795. </doc>
  31796. </method>
  31797. <method name="setMetric"
  31798. abstract="false" native="false" synchronized="false"
  31799. static="false" final="false" visibility="public"
  31800. deprecated="not deprecated">
  31801. <param name="metricName" type="java.lang.String"/>
  31802. <param name="metricValue" type="byte"/>
  31803. <doc>
  31804. <![CDATA[Sets the named metric to the specified value.
  31805. @param metricName name of the metric
  31806. @param metricValue new value of the metric
  31807. @throws MetricsException if the metricName or the type of the metricValue
  31808. conflicts with the configuration]]>
  31809. </doc>
  31810. </method>
  31811. <method name="setMetric"
  31812. abstract="false" native="false" synchronized="false"
  31813. static="false" final="false" visibility="public"
  31814. deprecated="not deprecated">
  31815. <param name="metricName" type="java.lang.String"/>
  31816. <param name="metricValue" type="float"/>
  31817. <doc>
  31818. <![CDATA[Sets the named metric to the specified value.
  31819. @param metricName name of the metric
  31820. @param metricValue new value of the metric
  31821. @throws MetricsException if the metricName or the type of the metricValue
  31822. conflicts with the configuration]]>
  31823. </doc>
  31824. </method>
  31825. <method name="incrMetric"
  31826. abstract="false" native="false" synchronized="false"
  31827. static="false" final="false" visibility="public"
  31828. deprecated="not deprecated">
  31829. <param name="metricName" type="java.lang.String"/>
  31830. <param name="metricValue" type="int"/>
  31831. <doc>
  31832. <![CDATA[Increments the named metric by the specified value.
  31833. @param metricName name of the metric
  31834. @param metricValue incremental value
  31835. @throws MetricsException if the metricName or the type of the metricValue
  31836. conflicts with the configuration]]>
  31837. </doc>
  31838. </method>
  31839. <method name="incrMetric"
  31840. abstract="false" native="false" synchronized="false"
  31841. static="false" final="false" visibility="public"
  31842. deprecated="not deprecated">
  31843. <param name="metricName" type="java.lang.String"/>
  31844. <param name="metricValue" type="long"/>
  31845. <doc>
  31846. <![CDATA[Increments the named metric by the specified value.
  31847. @param metricName name of the metric
  31848. @param metricValue incremental value
  31849. @throws MetricsException if the metricName or the type of the metricValue
  31850. conflicts with the configuration]]>
  31851. </doc>
  31852. </method>
  31853. <method name="incrMetric"
  31854. abstract="false" native="false" synchronized="false"
  31855. static="false" final="false" visibility="public"
  31856. deprecated="not deprecated">
  31857. <param name="metricName" type="java.lang.String"/>
  31858. <param name="metricValue" type="short"/>
  31859. <doc>
  31860. <![CDATA[Increments the named metric by the specified value.
  31861. @param metricName name of the metric
  31862. @param metricValue incremental value
  31863. @throws MetricsException if the metricName or the type of the metricValue
  31864. conflicts with the configuration]]>
  31865. </doc>
  31866. </method>
  31867. <method name="incrMetric"
  31868. abstract="false" native="false" synchronized="false"
  31869. static="false" final="false" visibility="public"
  31870. deprecated="not deprecated">
  31871. <param name="metricName" type="java.lang.String"/>
  31872. <param name="metricValue" type="byte"/>
  31873. <doc>
  31874. <![CDATA[Increments the named metric by the specified value.
  31875. @param metricName name of the metric
  31876. @param metricValue incremental value
  31877. @throws MetricsException if the metricName or the type of the metricValue
  31878. conflicts with the configuration]]>
  31879. </doc>
  31880. </method>
  31881. <method name="incrMetric"
  31882. abstract="false" native="false" synchronized="false"
  31883. static="false" final="false" visibility="public"
  31884. deprecated="not deprecated">
  31885. <param name="metricName" type="java.lang.String"/>
  31886. <param name="metricValue" type="float"/>
  31887. <doc>
  31888. <![CDATA[Increments the named metric by the specified value.
  31889. @param metricName name of the metric
  31890. @param metricValue incremental value
  31891. @throws MetricsException if the metricName or the type of the metricValue
  31892. conflicts with the configuration]]>
  31893. </doc>
  31894. </method>
  31895. <method name="update"
  31896. abstract="false" native="false" synchronized="false"
  31897. static="false" final="false" visibility="public"
  31898. deprecated="not deprecated">
  31899. <doc>
  31900. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  31901. If the tag values match an existing row, that row is updated;
  31902. otherwise, a new row is added.]]>
  31903. </doc>
  31904. </method>
  31905. <method name="remove"
  31906. abstract="false" native="false" synchronized="false"
  31907. static="false" final="false" visibility="public"
  31908. deprecated="not deprecated">
  31909. <doc>
  31910. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  31911. that equal the tags that have been set on this record.]]>
  31912. </doc>
  31913. </method>
  31914. <doc>
  31915. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  31916. from which it was created, and delegates back to it on <code>update</code>
  31917. and <code>remove()</code>.]]>
  31918. </doc>
  31919. </class>
  31920. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  31921. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  31922. <class name="MetricValue" extends="java.lang.Object"
  31923. abstract="false"
  31924. static="false" final="false" visibility="public"
  31925. deprecated="not deprecated">
  31926. <constructor name="MetricValue" type="java.lang.Number, boolean"
  31927. static="false" final="false" visibility="public"
  31928. deprecated="not deprecated">
  31929. <doc>
  31930. <![CDATA[Creates a new instance of MetricValue]]>
  31931. </doc>
  31932. </constructor>
  31933. <method name="isIncrement" return="boolean"
  31934. abstract="false" native="false" synchronized="false"
  31935. static="false" final="false" visibility="public"
  31936. deprecated="not deprecated">
  31937. </method>
  31938. <method name="isAbsolute" return="boolean"
  31939. abstract="false" native="false" synchronized="false"
  31940. static="false" final="false" visibility="public"
  31941. deprecated="not deprecated">
  31942. </method>
  31943. <method name="getNumber" return="java.lang.Number"
  31944. abstract="false" native="false" synchronized="false"
  31945. static="false" final="false" visibility="public"
  31946. deprecated="not deprecated">
  31947. </method>
  31948. <field name="ABSOLUTE" type="boolean"
  31949. transient="false" volatile="false"
  31950. static="true" final="true" visibility="public"
  31951. deprecated="not deprecated">
  31952. </field>
  31953. <field name="INCREMENT" type="boolean"
  31954. transient="false" volatile="false"
  31955. static="true" final="true" visibility="public"
  31956. deprecated="not deprecated">
  31957. </field>
  31958. <doc>
  31959. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  31960. </doc>
  31961. </class>
  31962. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  31963. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  31964. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31965. abstract="false"
  31966. static="false" final="false" visibility="public"
  31967. deprecated="not deprecated">
  31968. <constructor name="NoEmitMetricsContext"
  31969. static="false" final="false" visibility="public"
  31970. deprecated="not deprecated">
  31971. <doc>
  31972. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  31973. </doc>
  31974. </constructor>
  31975. <doc>
  31976. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  31977. does save it for retrieval with getAllRecords().
  31978. This is useful if you want to support {@link MetricsServlet}, but
  31979. not emit metrics in any other way.]]>
  31980. </doc>
  31981. </class>
  31982. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  31983. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  31984. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  31985. abstract="false"
  31986. static="false" final="false" visibility="public"
  31987. deprecated="not deprecated">
  31988. <constructor name="NullContext"
  31989. static="false" final="false" visibility="public"
  31990. deprecated="not deprecated">
  31991. <doc>
  31992. <![CDATA[Creates a new instance of NullContext]]>
  31993. </doc>
  31994. </constructor>
  31995. <doc>
  31996. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  31997. default context, so that no performance data is emitted if no configuration
  31998. data is found.]]>
  31999. </doc>
  32000. </class>
  32001. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  32002. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  32003. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  32004. abstract="false"
  32005. static="false" final="false" visibility="public"
  32006. deprecated="not deprecated">
  32007. <constructor name="NullContextWithUpdateThread"
  32008. static="false" final="false" visibility="public"
  32009. deprecated="not deprecated">
  32010. <doc>
  32011. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  32012. </doc>
  32013. </constructor>
  32014. <doc>
  32015. <![CDATA[A null context which has a thread calling
  32016. periodically when monitoring is started. This keeps the data sampled
  32017. correctly.
  32018. In all other respects, this is like the NULL context: No data is emitted.
  32019. This is suitable for Monitoring systems like JMX which reads the metrics
  32020. when someone reads the data from JMX.
  32021. The default impl of start and stop monitoring:
  32022. is the AbstractMetricsContext is good enough.]]>
  32023. </doc>
  32024. </class>
  32025. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  32026. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  32027. <class name="OutputRecord" extends="java.lang.Object"
  32028. abstract="false"
  32029. static="false" final="false" visibility="public"
  32030. deprecated="not deprecated">
  32031. <method name="getTagNames" return="java.util.Set"
  32032. abstract="false" native="false" synchronized="false"
  32033. static="false" final="false" visibility="public"
  32034. deprecated="not deprecated">
  32035. <doc>
  32036. <![CDATA[Returns the set of tag names]]>
  32037. </doc>
  32038. </method>
  32039. <method name="getTag" return="java.lang.Object"
  32040. abstract="false" native="false" synchronized="false"
  32041. static="false" final="false" visibility="public"
  32042. deprecated="not deprecated">
  32043. <param name="name" type="java.lang.String"/>
  32044. <doc>
  32045. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  32046. @return the tag value, or null if there is no such tag]]>
  32047. </doc>
  32048. </method>
  32049. <method name="getMetricNames" return="java.util.Set"
  32050. abstract="false" native="false" synchronized="false"
  32051. static="false" final="false" visibility="public"
  32052. deprecated="not deprecated">
  32053. <doc>
  32054. <![CDATA[Returns the set of metric names.]]>
  32055. </doc>
  32056. </method>
  32057. <method name="getMetric" return="java.lang.Number"
  32058. abstract="false" native="false" synchronized="false"
  32059. static="false" final="false" visibility="public"
  32060. deprecated="not deprecated">
  32061. <param name="name" type="java.lang.String"/>
  32062. <doc>
  32063. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  32064. </doc>
  32065. </method>
  32066. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  32067. abstract="false" native="false" synchronized="false"
  32068. static="false" final="false" visibility="public"
  32069. deprecated="not deprecated">
  32070. <doc>
  32071. <![CDATA[Returns a copy of this record's tags.]]>
  32072. </doc>
  32073. </method>
  32074. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  32075. abstract="false" native="false" synchronized="false"
  32076. static="false" final="false" visibility="public"
  32077. deprecated="not deprecated">
  32078. <doc>
  32079. <![CDATA[Returns a copy of this record's metrics.]]>
  32080. </doc>
  32081. </method>
  32082. <doc>
  32083. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  32084. </doc>
  32085. </class>
  32086. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  32087. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  32088. <class name="Util" extends="java.lang.Object"
  32089. abstract="false"
  32090. static="false" final="false" visibility="public"
  32091. deprecated="not deprecated">
  32092. <method name="parse" return="java.util.List"
  32093. abstract="false" native="false" synchronized="false"
  32094. static="true" final="false" visibility="public"
  32095. deprecated="not deprecated">
  32096. <param name="specs" type="java.lang.String"/>
  32097. <param name="defaultPort" type="int"/>
  32098. <doc>
  32099. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  32100. of the form <i>hostname</i> or <i>hostname:port</i>. If
  32101. the specs string is null, defaults to localhost:defaultPort.
  32102. @return a list of InetSocketAddress objects.]]>
  32103. </doc>
  32104. </method>
  32105. <doc>
  32106. <![CDATA[Static utility methods]]>
  32107. </doc>
  32108. </class>
  32109. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  32110. <doc>
  32111. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  32112. an interface allowing a variety of metrics reporting implementations to be
  32113. plugged in to the Metrics API. Examples of such implementations can be found
  32114. in the packages <code>org.apache.hadoop.metrics.file</code> and
  32115. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  32116. Plugging in an implementation involves writing a concrete subclass of
  32117. <code>AbstractMetricsContext</code>. The subclass should get its
  32118. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  32119. method.]]>
  32120. </doc>
  32121. </package>
  32122. <package name="org.apache.hadoop.metrics2">
  32123. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  32124. <class name="AbstractMetric" extends="java.lang.Object"
  32125. abstract="true"
  32126. static="false" final="false" visibility="public"
  32127. deprecated="not deprecated">
  32128. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  32129. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  32130. static="false" final="false" visibility="protected"
  32131. deprecated="not deprecated">
  32132. <doc>
  32133. <![CDATA[Construct the metric
  32134. @param info about the metric]]>
  32135. </doc>
  32136. </constructor>
  32137. <method name="name" return="java.lang.String"
  32138. abstract="false" native="false" synchronized="false"
  32139. static="false" final="false" visibility="public"
  32140. deprecated="not deprecated">
  32141. </method>
  32142. <method name="description" return="java.lang.String"
  32143. abstract="false" native="false" synchronized="false"
  32144. static="false" final="false" visibility="public"
  32145. deprecated="not deprecated">
  32146. </method>
  32147. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  32148. abstract="false" native="false" synchronized="false"
  32149. static="false" final="false" visibility="protected"
  32150. deprecated="not deprecated">
  32151. </method>
  32152. <method name="value" return="java.lang.Number"
  32153. abstract="true" native="false" synchronized="false"
  32154. static="false" final="false" visibility="public"
  32155. deprecated="not deprecated">
  32156. <doc>
  32157. <![CDATA[Get the value of the metric
  32158. @return the value of the metric]]>
  32159. </doc>
  32160. </method>
  32161. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  32162. abstract="true" native="false" synchronized="false"
  32163. static="false" final="false" visibility="public"
  32164. deprecated="not deprecated">
  32165. <doc>
  32166. <![CDATA[Get the type of the metric
  32167. @return the type of the metric]]>
  32168. </doc>
  32169. </method>
  32170. <method name="visit"
  32171. abstract="true" native="false" synchronized="false"
  32172. static="false" final="false" visibility="public"
  32173. deprecated="not deprecated">
  32174. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  32175. <doc>
  32176. <![CDATA[Accept a visitor interface
  32177. @param visitor of the metric]]>
  32178. </doc>
  32179. </method>
  32180. <method name="equals" return="boolean"
  32181. abstract="false" native="false" synchronized="false"
  32182. static="false" final="false" visibility="public"
  32183. deprecated="not deprecated">
  32184. <param name="obj" type="java.lang.Object"/>
  32185. </method>
  32186. <method name="hashCode" return="int"
  32187. abstract="false" native="false" synchronized="false"
  32188. static="false" final="false" visibility="public"
  32189. deprecated="not deprecated">
  32190. </method>
  32191. <method name="toString" return="java.lang.String"
  32192. abstract="false" native="false" synchronized="false"
  32193. static="false" final="false" visibility="public"
  32194. deprecated="not deprecated">
  32195. </method>
  32196. <doc>
  32197. <![CDATA[The immutable metric]]>
  32198. </doc>
  32199. </class>
  32200. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  32201. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  32202. <interface name="MetricsCollector" abstract="true"
  32203. static="false" final="false" visibility="public"
  32204. deprecated="not deprecated">
  32205. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32206. abstract="true" native="false" synchronized="false"
  32207. static="false" final="false" visibility="public"
  32208. deprecated="not deprecated">
  32209. <param name="name" type="java.lang.String"/>
  32210. <doc>
  32211. <![CDATA[Add a metrics record
  32212. @param name of the record
  32213. @return a metrics record builder for the record]]>
  32214. </doc>
  32215. </method>
  32216. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32217. abstract="true" native="false" synchronized="false"
  32218. static="false" final="false" visibility="public"
  32219. deprecated="not deprecated">
  32220. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32221. <doc>
  32222. <![CDATA[Add a metrics record
  32223. @param info of the record
  32224. @return a metrics record builder for the record]]>
  32225. </doc>
  32226. </method>
  32227. <doc>
  32228. <![CDATA[The metrics collector interface]]>
  32229. </doc>
  32230. </interface>
  32231. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  32232. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  32233. <class name="MetricsException" extends="java.lang.RuntimeException"
  32234. abstract="false"
  32235. static="false" final="false" visibility="public"
  32236. deprecated="not deprecated">
  32237. <constructor name="MetricsException" type="java.lang.String"
  32238. static="false" final="false" visibility="public"
  32239. deprecated="not deprecated">
  32240. <doc>
  32241. <![CDATA[Construct the exception with a message
  32242. @param message for the exception]]>
  32243. </doc>
  32244. </constructor>
  32245. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  32246. static="false" final="false" visibility="public"
  32247. deprecated="not deprecated">
  32248. <doc>
  32249. <![CDATA[Construct the exception with a message and a cause
  32250. @param message for the exception
  32251. @param cause of the exception]]>
  32252. </doc>
  32253. </constructor>
  32254. <constructor name="MetricsException" type="java.lang.Throwable"
  32255. static="false" final="false" visibility="public"
  32256. deprecated="not deprecated">
  32257. <doc>
  32258. <![CDATA[Construct the exception with a cause
  32259. @param cause of the exception]]>
  32260. </doc>
  32261. </constructor>
  32262. <doc>
  32263. <![CDATA[A general metrics exception wrapper]]>
  32264. </doc>
  32265. </class>
  32266. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  32267. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  32268. <class name="MetricsFilter" extends="java.lang.Object"
  32269. abstract="true"
  32270. static="false" final="false" visibility="public"
  32271. deprecated="not deprecated">
  32272. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  32273. <constructor name="MetricsFilter"
  32274. static="false" final="false" visibility="public"
  32275. deprecated="not deprecated">
  32276. </constructor>
  32277. <method name="accepts" return="boolean"
  32278. abstract="true" native="false" synchronized="false"
  32279. static="false" final="false" visibility="public"
  32280. deprecated="not deprecated">
  32281. <param name="name" type="java.lang.String"/>
  32282. <doc>
  32283. <![CDATA[Whether to accept the name
  32284. @param name to filter on
  32285. @return true to accept; false otherwise.]]>
  32286. </doc>
  32287. </method>
  32288. <method name="accepts" return="boolean"
  32289. abstract="true" native="false" synchronized="false"
  32290. static="false" final="false" visibility="public"
  32291. deprecated="not deprecated">
  32292. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  32293. <doc>
  32294. <![CDATA[Whether to accept the tag
  32295. @param tag to filter on
  32296. @return true to accept; false otherwise]]>
  32297. </doc>
  32298. </method>
  32299. <method name="accepts" return="boolean"
  32300. abstract="true" native="false" synchronized="false"
  32301. static="false" final="false" visibility="public"
  32302. deprecated="not deprecated">
  32303. <param name="tags" type="java.lang.Iterable"/>
  32304. <doc>
  32305. <![CDATA[Whether to accept the tags
  32306. @param tags to filter on
  32307. @return true to accept; false otherwise]]>
  32308. </doc>
  32309. </method>
  32310. <method name="accepts" return="boolean"
  32311. abstract="false" native="false" synchronized="false"
  32312. static="false" final="false" visibility="public"
  32313. deprecated="not deprecated">
  32314. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  32315. <doc>
  32316. <![CDATA[Whether to accept the record
  32317. @param record to filter on
  32318. @return true to accept; false otherwise.]]>
  32319. </doc>
  32320. </method>
  32321. <doc>
  32322. <![CDATA[The metrics filter interface]]>
  32323. </doc>
  32324. </class>
  32325. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  32326. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  32327. <interface name="MetricsInfo" abstract="true"
  32328. static="false" final="false" visibility="public"
  32329. deprecated="not deprecated">
  32330. <method name="name" return="java.lang.String"
  32331. abstract="true" native="false" synchronized="false"
  32332. static="false" final="false" visibility="public"
  32333. deprecated="not deprecated">
  32334. <doc>
  32335. <![CDATA[@return the name of the metric/tag]]>
  32336. </doc>
  32337. </method>
  32338. <method name="description" return="java.lang.String"
  32339. abstract="true" native="false" synchronized="false"
  32340. static="false" final="false" visibility="public"
  32341. deprecated="not deprecated">
  32342. <doc>
  32343. <![CDATA[@return the description of the metric/tag]]>
  32344. </doc>
  32345. </method>
  32346. <doc>
  32347. <![CDATA[Interface to provide immutable meta info for metrics]]>
  32348. </doc>
  32349. </interface>
  32350. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  32351. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  32352. <interface name="MetricsPlugin" abstract="true"
  32353. static="false" final="false" visibility="public"
  32354. deprecated="not deprecated">
  32355. <method name="init"
  32356. abstract="true" native="false" synchronized="false"
  32357. static="false" final="false" visibility="public"
  32358. deprecated="not deprecated">
  32359. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  32360. <doc>
  32361. <![CDATA[Initialize the plugin
  32362. @param conf the configuration object for the plugin]]>
  32363. </doc>
  32364. </method>
  32365. <doc>
  32366. <![CDATA[The plugin interface for the metrics framework]]>
  32367. </doc>
  32368. </interface>
  32369. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  32370. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  32371. <interface name="MetricsRecord" abstract="true"
  32372. static="false" final="false" visibility="public"
  32373. deprecated="not deprecated">
  32374. <method name="timestamp" return="long"
  32375. abstract="true" native="false" synchronized="false"
  32376. static="false" final="false" visibility="public"
  32377. deprecated="not deprecated">
  32378. <doc>
  32379. <![CDATA[Get the timestamp of the metrics
  32380. @return the timestamp]]>
  32381. </doc>
  32382. </method>
  32383. <method name="name" return="java.lang.String"
  32384. abstract="true" native="false" synchronized="false"
  32385. static="false" final="false" visibility="public"
  32386. deprecated="not deprecated">
  32387. <doc>
  32388. <![CDATA[@return the record name]]>
  32389. </doc>
  32390. </method>
  32391. <method name="description" return="java.lang.String"
  32392. abstract="true" native="false" synchronized="false"
  32393. static="false" final="false" visibility="public"
  32394. deprecated="not deprecated">
  32395. <doc>
  32396. <![CDATA[@return the description of the record]]>
  32397. </doc>
  32398. </method>
  32399. <method name="context" return="java.lang.String"
  32400. abstract="true" native="false" synchronized="false"
  32401. static="false" final="false" visibility="public"
  32402. deprecated="not deprecated">
  32403. <doc>
  32404. <![CDATA[@return the context name of the record]]>
  32405. </doc>
  32406. </method>
  32407. <method name="tags" return="java.util.Collection"
  32408. abstract="true" native="false" synchronized="false"
  32409. static="false" final="false" visibility="public"
  32410. deprecated="not deprecated">
  32411. <doc>
  32412. <![CDATA[Get the tags of the record
  32413. Note: returning a collection instead of iterable as we
  32414. need to use tags as keys (hence Collection#hashCode etc.) in maps
  32415. @return an unmodifiable collection of tags]]>
  32416. </doc>
  32417. </method>
  32418. <method name="metrics" return="java.lang.Iterable"
  32419. abstract="true" native="false" synchronized="false"
  32420. static="false" final="false" visibility="public"
  32421. deprecated="not deprecated">
  32422. <doc>
  32423. <![CDATA[Get the metrics of the record
  32424. @return an immutable iterable interface for metrics]]>
  32425. </doc>
  32426. </method>
  32427. <doc>
  32428. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  32429. </doc>
  32430. </interface>
  32431. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  32432. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  32433. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  32434. abstract="true"
  32435. static="false" final="false" visibility="public"
  32436. deprecated="not deprecated">
  32437. <constructor name="MetricsRecordBuilder"
  32438. static="false" final="false" visibility="public"
  32439. deprecated="not deprecated">
  32440. </constructor>
  32441. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32442. abstract="true" native="false" synchronized="false"
  32443. static="false" final="false" visibility="public"
  32444. deprecated="not deprecated">
  32445. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32446. <param name="value" type="java.lang.String"/>
  32447. <doc>
  32448. <![CDATA[Add a metrics tag
  32449. @param info metadata of the tag
  32450. @param value of the tag
  32451. @return self]]>
  32452. </doc>
  32453. </method>
  32454. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32455. abstract="true" native="false" synchronized="false"
  32456. static="false" final="false" visibility="public"
  32457. deprecated="not deprecated">
  32458. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  32459. <doc>
  32460. <![CDATA[Add an immutable metrics tag object
  32461. @param tag a pre-made tag object (potentially save an object construction)
  32462. @return self]]>
  32463. </doc>
  32464. </method>
  32465. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32466. abstract="true" native="false" synchronized="false"
  32467. static="false" final="false" visibility="public"
  32468. deprecated="not deprecated">
  32469. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  32470. <doc>
  32471. <![CDATA[Add a pre-made immutable metric object
  32472. @param metric the pre-made metric to save an object construction
  32473. @return self]]>
  32474. </doc>
  32475. </method>
  32476. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32477. abstract="true" native="false" synchronized="false"
  32478. static="false" final="false" visibility="public"
  32479. deprecated="not deprecated">
  32480. <param name="value" type="java.lang.String"/>
  32481. <doc>
  32482. <![CDATA[Set the context tag
  32483. @param value of the context
  32484. @return self]]>
  32485. </doc>
  32486. </method>
  32487. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32488. abstract="true" native="false" synchronized="false"
  32489. static="false" final="false" visibility="public"
  32490. deprecated="not deprecated">
  32491. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32492. <param name="value" type="int"/>
  32493. <doc>
  32494. <![CDATA[Add an integer metric
  32495. @param info metadata of the metric
  32496. @param value of the metric
  32497. @return self]]>
  32498. </doc>
  32499. </method>
  32500. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32501. abstract="true" native="false" synchronized="false"
  32502. static="false" final="false" visibility="public"
  32503. deprecated="not deprecated">
  32504. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32505. <param name="value" type="long"/>
  32506. <doc>
  32507. <![CDATA[Add an long metric
  32508. @param info metadata of the metric
  32509. @param value of the metric
  32510. @return self]]>
  32511. </doc>
  32512. </method>
  32513. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32514. abstract="true" native="false" synchronized="false"
  32515. static="false" final="false" visibility="public"
  32516. deprecated="not deprecated">
  32517. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32518. <param name="value" type="int"/>
  32519. <doc>
  32520. <![CDATA[Add a integer gauge metric
  32521. @param info metadata of the metric
  32522. @param value of the metric
  32523. @return self]]>
  32524. </doc>
  32525. </method>
  32526. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32527. abstract="true" native="false" synchronized="false"
  32528. static="false" final="false" visibility="public"
  32529. deprecated="not deprecated">
  32530. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32531. <param name="value" type="long"/>
  32532. <doc>
  32533. <![CDATA[Add a long gauge metric
  32534. @param info metadata of the metric
  32535. @param value of the metric
  32536. @return self]]>
  32537. </doc>
  32538. </method>
  32539. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32540. abstract="true" native="false" synchronized="false"
  32541. static="false" final="false" visibility="public"
  32542. deprecated="not deprecated">
  32543. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32544. <param name="value" type="float"/>
  32545. <doc>
  32546. <![CDATA[Add a float gauge metric
  32547. @param info metadata of the metric
  32548. @param value of the metric
  32549. @return self]]>
  32550. </doc>
  32551. </method>
  32552. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  32553. abstract="true" native="false" synchronized="false"
  32554. static="false" final="false" visibility="public"
  32555. deprecated="not deprecated">
  32556. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32557. <param name="value" type="double"/>
  32558. <doc>
  32559. <![CDATA[Add a double gauge metric
  32560. @param info metadata of the metric
  32561. @param value of the metric
  32562. @return self]]>
  32563. </doc>
  32564. </method>
  32565. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  32566. abstract="true" native="false" synchronized="false"
  32567. static="false" final="false" visibility="public"
  32568. deprecated="not deprecated">
  32569. <doc>
  32570. <![CDATA[@return the parent metrics collector object]]>
  32571. </doc>
  32572. </method>
  32573. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  32574. abstract="false" native="false" synchronized="false"
  32575. static="false" final="false" visibility="public"
  32576. deprecated="not deprecated">
  32577. <doc>
  32578. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  32579. @return the parent metrics collector object]]>
  32580. </doc>
  32581. </method>
  32582. <doc>
  32583. <![CDATA[The metrics record builder interface]]>
  32584. </doc>
  32585. </class>
  32586. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  32587. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  32588. <interface name="MetricsSink" abstract="true"
  32589. static="false" final="false" visibility="public"
  32590. deprecated="not deprecated">
  32591. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  32592. <method name="putMetrics"
  32593. abstract="true" native="false" synchronized="false"
  32594. static="false" final="false" visibility="public"
  32595. deprecated="not deprecated">
  32596. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  32597. <doc>
  32598. <![CDATA[Put a metrics record in the sink
  32599. @param record the record to put]]>
  32600. </doc>
  32601. </method>
  32602. <method name="flush"
  32603. abstract="true" native="false" synchronized="false"
  32604. static="false" final="false" visibility="public"
  32605. deprecated="not deprecated">
  32606. <doc>
  32607. <![CDATA[Flush any buffered metrics]]>
  32608. </doc>
  32609. </method>
  32610. <doc>
  32611. <![CDATA[The metrics sink interface. <p>
  32612. Implementations of this interface consume the {@link MetricsRecord} generated
  32613. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  32614. periodically pushes the {@link MetricsRecord} to the sink using
  32615. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  32616. implements {@link Closeable}, then the MetricsSystem will close the sink when
  32617. it is stopped.]]>
  32618. </doc>
  32619. </interface>
  32620. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  32621. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  32622. <interface name="MetricsSource" abstract="true"
  32623. static="false" final="false" visibility="public"
  32624. deprecated="not deprecated">
  32625. <method name="getMetrics"
  32626. abstract="true" native="false" synchronized="false"
  32627. static="false" final="false" visibility="public"
  32628. deprecated="not deprecated">
  32629. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  32630. <param name="all" type="boolean"/>
  32631. <doc>
  32632. <![CDATA[Get metrics from the source
  32633. @param collector to contain the resulting metrics snapshot
  32634. @param all if true, return all metrics even if unchanged.]]>
  32635. </doc>
  32636. </method>
  32637. <doc>
  32638. <![CDATA[The metrics source interface]]>
  32639. </doc>
  32640. </interface>
  32641. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  32642. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  32643. <class name="MetricsSystem" extends="java.lang.Object"
  32644. abstract="true"
  32645. static="false" final="false" visibility="public"
  32646. deprecated="not deprecated">
  32647. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  32648. <constructor name="MetricsSystem"
  32649. static="false" final="false" visibility="public"
  32650. deprecated="not deprecated">
  32651. </constructor>
  32652. <method name="register" return="T"
  32653. abstract="true" native="false" synchronized="false"
  32654. static="false" final="false" visibility="public"
  32655. deprecated="not deprecated">
  32656. <param name="name" type="java.lang.String"/>
  32657. <param name="desc" type="java.lang.String"/>
  32658. <param name="source" type="T"/>
  32659. <doc>
  32660. <![CDATA[Register a metrics source
  32661. @param <T> the actual type of the source object
  32662. @param source object to register
  32663. @param name of the source. Must be unique or null (then extracted from
  32664. the annotations of the source object.)
  32665. @param desc the description of the source (or null. See above.)
  32666. @return the source object
  32667. @exception MetricsException]]>
  32668. </doc>
  32669. </method>
  32670. <method name="unregisterSource"
  32671. abstract="true" native="false" synchronized="false"
  32672. static="false" final="false" visibility="public"
  32673. deprecated="not deprecated">
  32674. <param name="name" type="java.lang.String"/>
  32675. <doc>
  32676. <![CDATA[Unregister a metrics source
  32677. @param name of the source. This is the name you use to call register()]]>
  32678. </doc>
  32679. </method>
  32680. <method name="register" return="T"
  32681. abstract="false" native="false" synchronized="false"
  32682. static="false" final="false" visibility="public"
  32683. deprecated="not deprecated">
  32684. <param name="source" type="T"/>
  32685. <doc>
  32686. <![CDATA[Register a metrics source (deriving name and description from the object)
  32687. @param <T> the actual type of the source object
  32688. @param source object to register
  32689. @return the source object
  32690. @exception MetricsException]]>
  32691. </doc>
  32692. </method>
  32693. <method name="register" return="T"
  32694. abstract="true" native="false" synchronized="false"
  32695. static="false" final="false" visibility="public"
  32696. deprecated="not deprecated">
  32697. <param name="name" type="java.lang.String"/>
  32698. <param name="desc" type="java.lang.String"/>
  32699. <param name="sink" type="T"/>
  32700. <doc>
  32701. <![CDATA[Register a metrics sink
  32702. @param <T> the type of the sink
  32703. @param sink to register
  32704. @param name of the sink. Must be unique.
  32705. @param desc the description of the sink
  32706. @return the sink
  32707. @exception MetricsException]]>
  32708. </doc>
  32709. </method>
  32710. <method name="register"
  32711. abstract="true" native="false" synchronized="false"
  32712. static="false" final="false" visibility="public"
  32713. deprecated="not deprecated">
  32714. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  32715. <doc>
  32716. <![CDATA[Register a callback interface for JMX events
  32717. @param callback the callback object implementing the MBean interface.]]>
  32718. </doc>
  32719. </method>
  32720. <method name="publishMetricsNow"
  32721. abstract="true" native="false" synchronized="false"
  32722. static="false" final="false" visibility="public"
  32723. deprecated="not deprecated">
  32724. <doc>
  32725. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  32726. This is a "soft" request: the expectation is that a best effort will be
  32727. done to synchronously snapshot the metrics from all the sources and put
  32728. them in all the sinks (including flushing the sinks) before returning to
  32729. the caller. If this can't be accomplished in reasonable time it's OK to
  32730. return to the caller before everything is done.]]>
  32731. </doc>
  32732. </method>
  32733. <method name="shutdown" return="boolean"
  32734. abstract="true" native="false" synchronized="false"
  32735. static="false" final="false" visibility="public"
  32736. deprecated="not deprecated">
  32737. <doc>
  32738. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  32739. The MetricsSystemMXBean will be unregistered.
  32740. @return true if shutdown completed]]>
  32741. </doc>
  32742. </method>
  32743. <doc>
  32744. <![CDATA[The metrics system interface]]>
  32745. </doc>
  32746. </class>
  32747. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  32748. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  32749. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  32750. abstract="true"
  32751. static="true" final="false" visibility="public"
  32752. deprecated="not deprecated">
  32753. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  32754. <constructor name="AbstractCallback"
  32755. static="false" final="false" visibility="public"
  32756. deprecated="not deprecated">
  32757. </constructor>
  32758. <method name="preStart"
  32759. abstract="false" native="false" synchronized="false"
  32760. static="false" final="false" visibility="public"
  32761. deprecated="not deprecated">
  32762. </method>
  32763. <method name="postStart"
  32764. abstract="false" native="false" synchronized="false"
  32765. static="false" final="false" visibility="public"
  32766. deprecated="not deprecated">
  32767. </method>
  32768. <method name="preStop"
  32769. abstract="false" native="false" synchronized="false"
  32770. static="false" final="false" visibility="public"
  32771. deprecated="not deprecated">
  32772. </method>
  32773. <method name="postStop"
  32774. abstract="false" native="false" synchronized="false"
  32775. static="false" final="false" visibility="public"
  32776. deprecated="not deprecated">
  32777. </method>
  32778. <doc>
  32779. <![CDATA[Convenient abstract class for implementing callback interface]]>
  32780. </doc>
  32781. </class>
  32782. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  32783. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  32784. <interface name="MetricsSystem.Callback" abstract="true"
  32785. static="true" final="false" visibility="public"
  32786. deprecated="not deprecated">
  32787. <method name="preStart"
  32788. abstract="true" native="false" synchronized="false"
  32789. static="false" final="false" visibility="public"
  32790. deprecated="not deprecated">
  32791. <doc>
  32792. <![CDATA[Called before start()]]>
  32793. </doc>
  32794. </method>
  32795. <method name="postStart"
  32796. abstract="true" native="false" synchronized="false"
  32797. static="false" final="false" visibility="public"
  32798. deprecated="not deprecated">
  32799. <doc>
  32800. <![CDATA[Called after start()]]>
  32801. </doc>
  32802. </method>
  32803. <method name="preStop"
  32804. abstract="true" native="false" synchronized="false"
  32805. static="false" final="false" visibility="public"
  32806. deprecated="not deprecated">
  32807. <doc>
  32808. <![CDATA[Called before stop()]]>
  32809. </doc>
  32810. </method>
  32811. <method name="postStop"
  32812. abstract="true" native="false" synchronized="false"
  32813. static="false" final="false" visibility="public"
  32814. deprecated="not deprecated">
  32815. <doc>
  32816. <![CDATA[Called after stop()]]>
  32817. </doc>
  32818. </method>
  32819. <doc>
  32820. <![CDATA[The metrics system callback interface (needed for proxies.)]]>
  32821. </doc>
  32822. </interface>
  32823. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  32824. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  32825. <interface name="MetricsSystemMXBean" abstract="true"
  32826. static="false" final="false" visibility="public"
  32827. deprecated="not deprecated">
  32828. <method name="start"
  32829. abstract="true" native="false" synchronized="false"
  32830. static="false" final="false" visibility="public"
  32831. deprecated="not deprecated">
  32832. <doc>
  32833. <![CDATA[Start the metrics system
  32834. @throws MetricsException]]>
  32835. </doc>
  32836. </method>
  32837. <method name="stop"
  32838. abstract="true" native="false" synchronized="false"
  32839. static="false" final="false" visibility="public"
  32840. deprecated="not deprecated">
  32841. <doc>
  32842. <![CDATA[Stop the metrics system
  32843. @throws MetricsException]]>
  32844. </doc>
  32845. </method>
  32846. <method name="startMetricsMBeans"
  32847. abstract="true" native="false" synchronized="false"
  32848. static="false" final="false" visibility="public"
  32849. deprecated="not deprecated">
  32850. <doc>
  32851. <![CDATA[Start metrics MBeans
  32852. @throws MetricsException]]>
  32853. </doc>
  32854. </method>
  32855. <method name="stopMetricsMBeans"
  32856. abstract="true" native="false" synchronized="false"
  32857. static="false" final="false" visibility="public"
  32858. deprecated="not deprecated">
  32859. <doc>
  32860. <![CDATA[Stop metrics MBeans.
  32861. Note, it doesn't stop the metrics system control MBean,
  32862. i.e this interface.
  32863. @throws MetricsException]]>
  32864. </doc>
  32865. </method>
  32866. <method name="currentConfig" return="java.lang.String"
  32867. abstract="true" native="false" synchronized="false"
  32868. static="false" final="false" visibility="public"
  32869. deprecated="not deprecated">
  32870. <doc>
  32871. <![CDATA[@return the current config
  32872. Avoided getConfig, as it'll turn into a "Config" attribute,
  32873. which doesn't support multiple line values in jconsole.
  32874. @throws MetricsException]]>
  32875. </doc>
  32876. </method>
  32877. <doc>
  32878. <![CDATA[The JMX interface to the metrics system]]>
  32879. </doc>
  32880. </interface>
  32881. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  32882. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  32883. <class name="MetricsTag" extends="java.lang.Object"
  32884. abstract="false"
  32885. static="false" final="false" visibility="public"
  32886. deprecated="not deprecated">
  32887. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  32888. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  32889. static="false" final="false" visibility="public"
  32890. deprecated="not deprecated">
  32891. <doc>
  32892. <![CDATA[Construct the tag with name, description and value
  32893. @param info of the tag
  32894. @param value of the tag]]>
  32895. </doc>
  32896. </constructor>
  32897. <method name="name" return="java.lang.String"
  32898. abstract="false" native="false" synchronized="false"
  32899. static="false" final="false" visibility="public"
  32900. deprecated="not deprecated">
  32901. </method>
  32902. <method name="description" return="java.lang.String"
  32903. abstract="false" native="false" synchronized="false"
  32904. static="false" final="false" visibility="public"
  32905. deprecated="not deprecated">
  32906. </method>
  32907. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  32908. abstract="false" native="false" synchronized="false"
  32909. static="false" final="false" visibility="public"
  32910. deprecated="not deprecated">
  32911. <doc>
  32912. <![CDATA[@return the info object of the tag]]>
  32913. </doc>
  32914. </method>
  32915. <method name="value" return="java.lang.String"
  32916. abstract="false" native="false" synchronized="false"
  32917. static="false" final="false" visibility="public"
  32918. deprecated="not deprecated">
  32919. <doc>
  32920. <![CDATA[Get the value of the tag
  32921. @return the value]]>
  32922. </doc>
  32923. </method>
  32924. <method name="equals" return="boolean"
  32925. abstract="false" native="false" synchronized="false"
  32926. static="false" final="false" visibility="public"
  32927. deprecated="not deprecated">
  32928. <param name="obj" type="java.lang.Object"/>
  32929. </method>
  32930. <method name="hashCode" return="int"
  32931. abstract="false" native="false" synchronized="false"
  32932. static="false" final="false" visibility="public"
  32933. deprecated="not deprecated">
  32934. </method>
  32935. <method name="toString" return="java.lang.String"
  32936. abstract="false" native="false" synchronized="false"
  32937. static="false" final="false" visibility="public"
  32938. deprecated="not deprecated">
  32939. </method>
  32940. <doc>
  32941. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  32942. </doc>
  32943. </class>
  32944. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  32945. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  32946. <interface name="MetricsVisitor" abstract="true"
  32947. static="false" final="false" visibility="public"
  32948. deprecated="not deprecated">
  32949. <method name="gauge"
  32950. abstract="true" native="false" synchronized="false"
  32951. static="false" final="false" visibility="public"
  32952. deprecated="not deprecated">
  32953. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32954. <param name="value" type="int"/>
  32955. <doc>
  32956. <![CDATA[Callback for integer value gauges
  32957. @param info the metric info
  32958. @param value of the metric]]>
  32959. </doc>
  32960. </method>
  32961. <method name="gauge"
  32962. abstract="true" native="false" synchronized="false"
  32963. static="false" final="false" visibility="public"
  32964. deprecated="not deprecated">
  32965. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32966. <param name="value" type="long"/>
  32967. <doc>
  32968. <![CDATA[Callback for long value gauges
  32969. @param info the metric info
  32970. @param value of the metric]]>
  32971. </doc>
  32972. </method>
  32973. <method name="gauge"
  32974. abstract="true" native="false" synchronized="false"
  32975. static="false" final="false" visibility="public"
  32976. deprecated="not deprecated">
  32977. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32978. <param name="value" type="float"/>
  32979. <doc>
  32980. <![CDATA[Callback for float value gauges
  32981. @param info the metric info
  32982. @param value of the metric]]>
  32983. </doc>
  32984. </method>
  32985. <method name="gauge"
  32986. abstract="true" native="false" synchronized="false"
  32987. static="false" final="false" visibility="public"
  32988. deprecated="not deprecated">
  32989. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  32990. <param name="value" type="double"/>
  32991. <doc>
  32992. <![CDATA[Callback for double value gauges
  32993. @param info the metric info
  32994. @param value of the metric]]>
  32995. </doc>
  32996. </method>
  32997. <method name="counter"
  32998. abstract="true" native="false" synchronized="false"
  32999. static="false" final="false" visibility="public"
  33000. deprecated="not deprecated">
  33001. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33002. <param name="value" type="int"/>
  33003. <doc>
  33004. <![CDATA[Callback for integer value counters
  33005. @param info the metric info
  33006. @param value of the metric]]>
  33007. </doc>
  33008. </method>
  33009. <method name="counter"
  33010. abstract="true" native="false" synchronized="false"
  33011. static="false" final="false" visibility="public"
  33012. deprecated="not deprecated">
  33013. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33014. <param name="value" type="long"/>
  33015. <doc>
  33016. <![CDATA[Callback for long value counters
  33017. @param info the metric info
  33018. @param value of the metric]]>
  33019. </doc>
  33020. </method>
  33021. <doc>
  33022. <![CDATA[A visitor interface for metrics]]>
  33023. </doc>
  33024. </interface>
  33025. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  33026. <!-- start class org.apache.hadoop.metrics2.MetricType -->
  33027. <class name="MetricType" extends="java.lang.Enum"
  33028. abstract="false"
  33029. static="false" final="true" visibility="public"
  33030. deprecated="not deprecated">
  33031. <method name="values" return="org.apache.hadoop.metrics2.MetricType[]"
  33032. abstract="false" native="false" synchronized="false"
  33033. static="true" final="false" visibility="public"
  33034. deprecated="not deprecated">
  33035. </method>
  33036. <method name="valueOf" return="org.apache.hadoop.metrics2.MetricType"
  33037. abstract="false" native="false" synchronized="false"
  33038. static="true" final="false" visibility="public"
  33039. deprecated="not deprecated">
  33040. <param name="name" type="java.lang.String"/>
  33041. </method>
  33042. </class>
  33043. <!-- end class org.apache.hadoop.metrics2.MetricType -->
  33044. </package>
  33045. <package name="org.apache.hadoop.metrics2.annotation">
  33046. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  33047. <class name="Metric" abstract="true"
  33048. static="false" final="false" visibility="public"
  33049. deprecated="not deprecated">
  33050. <implements name="java.lang.annotation.Annotation"/>
  33051. <doc>
  33052. <![CDATA[Annotation interface for a single metric]]>
  33053. </doc>
  33054. </class>
  33055. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  33056. <!-- start class org.apache.hadoop.metrics2.annotation.Metric.Type -->
  33057. <class name="Metric.Type" extends="java.lang.Enum"
  33058. abstract="false"
  33059. static="true" final="true" visibility="public"
  33060. deprecated="not deprecated">
  33061. <method name="values" return="org.apache.hadoop.metrics2.annotation.Metric.Type[]"
  33062. abstract="false" native="false" synchronized="false"
  33063. static="true" final="false" visibility="public"
  33064. deprecated="not deprecated">
  33065. </method>
  33066. <method name="valueOf" return="org.apache.hadoop.metrics2.annotation.Metric.Type"
  33067. abstract="false" native="false" synchronized="false"
  33068. static="true" final="false" visibility="public"
  33069. deprecated="not deprecated">
  33070. <param name="name" type="java.lang.String"/>
  33071. </method>
  33072. </class>
  33073. <!-- end class org.apache.hadoop.metrics2.annotation.Metric.Type -->
  33074. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  33075. <class name="Metrics" abstract="true"
  33076. static="false" final="false" visibility="public"
  33077. deprecated="not deprecated">
  33078. <implements name="java.lang.annotation.Annotation"/>
  33079. <doc>
  33080. <![CDATA[Annotation interface for a group of metrics]]>
  33081. </doc>
  33082. </class>
  33083. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  33084. </package>
  33085. <package name="org.apache.hadoop.metrics2.filter">
  33086. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  33087. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  33088. abstract="false"
  33089. static="false" final="false" visibility="public"
  33090. deprecated="not deprecated">
  33091. <constructor name="GlobFilter"
  33092. static="false" final="false" visibility="public"
  33093. deprecated="not deprecated">
  33094. </constructor>
  33095. <method name="compile" return="java.util.regex.Pattern"
  33096. abstract="false" native="false" synchronized="false"
  33097. static="false" final="false" visibility="protected"
  33098. deprecated="not deprecated">
  33099. <param name="s" type="java.lang.String"/>
  33100. </method>
  33101. <doc>
  33102. <![CDATA[A glob pattern filter for metrics.
  33103. The class name is used in metrics config files]]>
  33104. </doc>
  33105. </class>
  33106. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  33107. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  33108. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  33109. abstract="false"
  33110. static="false" final="false" visibility="public"
  33111. deprecated="not deprecated">
  33112. <constructor name="RegexFilter"
  33113. static="false" final="false" visibility="public"
  33114. deprecated="not deprecated">
  33115. </constructor>
  33116. <method name="compile" return="java.util.regex.Pattern"
  33117. abstract="false" native="false" synchronized="false"
  33118. static="false" final="false" visibility="protected"
  33119. deprecated="not deprecated">
  33120. <param name="s" type="java.lang.String"/>
  33121. </method>
  33122. <doc>
  33123. <![CDATA[A regex pattern filter for metrics]]>
  33124. </doc>
  33125. </class>
  33126. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  33127. </package>
  33128. <package name="org.apache.hadoop.metrics2.lib">
  33129. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  33130. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  33131. abstract="false"
  33132. static="false" final="true" visibility="public"
  33133. deprecated="not deprecated">
  33134. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  33135. abstract="false" native="false" synchronized="false"
  33136. static="true" final="false" visibility="public"
  33137. deprecated="not deprecated">
  33138. </method>
  33139. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  33140. abstract="false" native="false" synchronized="false"
  33141. static="true" final="false" visibility="public"
  33142. deprecated="not deprecated">
  33143. <param name="name" type="java.lang.String"/>
  33144. </method>
  33145. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  33146. abstract="false" native="false" synchronized="false"
  33147. static="true" final="false" visibility="public"
  33148. deprecated="not deprecated">
  33149. <param name="prefix" type="java.lang.String"/>
  33150. <doc>
  33151. <![CDATA[Convenience method to initialize the metrics system
  33152. @param prefix for the metrics system configuration
  33153. @return the metrics system instance]]>
  33154. </doc>
  33155. </method>
  33156. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  33157. abstract="false" native="false" synchronized="false"
  33158. static="true" final="false" visibility="public"
  33159. deprecated="not deprecated">
  33160. <doc>
  33161. <![CDATA[@return the metrics system object]]>
  33162. </doc>
  33163. </method>
  33164. <method name="shutdown"
  33165. abstract="false" native="false" synchronized="false"
  33166. static="true" final="false" visibility="public"
  33167. deprecated="not deprecated">
  33168. <doc>
  33169. <![CDATA[Shutdown the metrics system]]>
  33170. </doc>
  33171. </method>
  33172. <doc>
  33173. <![CDATA[The default metrics system singleton]]>
  33174. </doc>
  33175. </class>
  33176. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  33177. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  33178. <class name="Interns" extends="java.lang.Object"
  33179. abstract="false"
  33180. static="false" final="false" visibility="public"
  33181. deprecated="not deprecated">
  33182. <constructor name="Interns"
  33183. static="false" final="false" visibility="public"
  33184. deprecated="not deprecated">
  33185. </constructor>
  33186. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  33187. abstract="false" native="false" synchronized="false"
  33188. static="true" final="false" visibility="public"
  33189. deprecated="not deprecated">
  33190. <param name="name" type="java.lang.String"/>
  33191. <param name="description" type="java.lang.String"/>
  33192. <doc>
  33193. <![CDATA[Get a metric info object
  33194. @param name
  33195. @param description
  33196. @return an interned metric info object]]>
  33197. </doc>
  33198. </method>
  33199. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  33200. abstract="false" native="false" synchronized="false"
  33201. static="true" final="false" visibility="public"
  33202. deprecated="not deprecated">
  33203. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33204. <param name="value" type="java.lang.String"/>
  33205. <doc>
  33206. <![CDATA[Get a metrics tag
  33207. @param info of the tag
  33208. @param value of the tag
  33209. @return an interned metrics tag]]>
  33210. </doc>
  33211. </method>
  33212. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  33213. abstract="false" native="false" synchronized="false"
  33214. static="true" final="false" visibility="public"
  33215. deprecated="not deprecated">
  33216. <param name="name" type="java.lang.String"/>
  33217. <param name="description" type="java.lang.String"/>
  33218. <param name="value" type="java.lang.String"/>
  33219. <doc>
  33220. <![CDATA[Get a metrics tag
  33221. @param name of the tag
  33222. @param description of the tag
  33223. @param value of the tag
  33224. @return an interned metrics tag]]>
  33225. </doc>
  33226. </method>
  33227. <doc>
  33228. <![CDATA[Helpers to create interned metrics info]]>
  33229. </doc>
  33230. </class>
  33231. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  33232. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  33233. <class name="MetricsRegistry" extends="java.lang.Object"
  33234. abstract="false"
  33235. static="false" final="false" visibility="public"
  33236. deprecated="not deprecated">
  33237. <constructor name="MetricsRegistry" type="java.lang.String"
  33238. static="false" final="false" visibility="public"
  33239. deprecated="not deprecated">
  33240. <doc>
  33241. <![CDATA[Construct the registry with a record name
  33242. @param name of the record of the metrics]]>
  33243. </doc>
  33244. </constructor>
  33245. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  33246. static="false" final="false" visibility="public"
  33247. deprecated="not deprecated">
  33248. <doc>
  33249. <![CDATA[Construct the registry with a metadata object
  33250. @param info the info object for the metrics record/group]]>
  33251. </doc>
  33252. </constructor>
  33253. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  33254. abstract="false" native="false" synchronized="false"
  33255. static="false" final="false" visibility="public"
  33256. deprecated="not deprecated">
  33257. <doc>
  33258. <![CDATA[@return the info object of the metrics registry]]>
  33259. </doc>
  33260. </method>
  33261. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  33262. abstract="false" native="false" synchronized="true"
  33263. static="false" final="false" visibility="public"
  33264. deprecated="not deprecated">
  33265. <param name="name" type="java.lang.String"/>
  33266. <doc>
  33267. <![CDATA[Get a metric by name
  33268. @param name of the metric
  33269. @return the metric object]]>
  33270. </doc>
  33271. </method>
  33272. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  33273. abstract="false" native="false" synchronized="true"
  33274. static="false" final="false" visibility="public"
  33275. deprecated="not deprecated">
  33276. <param name="name" type="java.lang.String"/>
  33277. <doc>
  33278. <![CDATA[Get a tag by name
  33279. @param name of the tag
  33280. @return the tag object]]>
  33281. </doc>
  33282. </method>
  33283. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  33284. abstract="false" native="false" synchronized="false"
  33285. static="false" final="false" visibility="public"
  33286. deprecated="not deprecated">
  33287. <param name="name" type="java.lang.String"/>
  33288. <param name="desc" type="java.lang.String"/>
  33289. <param name="iVal" type="int"/>
  33290. <doc>
  33291. <![CDATA[Create a mutable integer counter
  33292. @param name of the metric
  33293. @param desc metric description
  33294. @param iVal initial value
  33295. @return a new counter object]]>
  33296. </doc>
  33297. </method>
  33298. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  33299. abstract="false" native="false" synchronized="true"
  33300. static="false" final="false" visibility="public"
  33301. deprecated="not deprecated">
  33302. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33303. <param name="iVal" type="int"/>
  33304. <doc>
  33305. <![CDATA[Create a mutable integer counter
  33306. @param info metadata of the metric
  33307. @param iVal initial value
  33308. @return a new counter object]]>
  33309. </doc>
  33310. </method>
  33311. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  33312. abstract="false" native="false" synchronized="false"
  33313. static="false" final="false" visibility="public"
  33314. deprecated="not deprecated">
  33315. <param name="name" type="java.lang.String"/>
  33316. <param name="desc" type="java.lang.String"/>
  33317. <param name="iVal" type="long"/>
  33318. <doc>
  33319. <![CDATA[Create a mutable long integer counter
  33320. @param name of the metric
  33321. @param desc metric description
  33322. @param iVal initial value
  33323. @return a new counter object]]>
  33324. </doc>
  33325. </method>
  33326. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  33327. abstract="false" native="false" synchronized="true"
  33328. static="false" final="false" visibility="public"
  33329. deprecated="not deprecated">
  33330. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33331. <param name="iVal" type="long"/>
  33332. <doc>
  33333. <![CDATA[Create a mutable long integer counter
  33334. @param info metadata of the metric
  33335. @param iVal initial value
  33336. @return a new counter object]]>
  33337. </doc>
  33338. </method>
  33339. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  33340. abstract="false" native="false" synchronized="false"
  33341. static="false" final="false" visibility="public"
  33342. deprecated="not deprecated">
  33343. <param name="name" type="java.lang.String"/>
  33344. <param name="desc" type="java.lang.String"/>
  33345. <param name="iVal" type="int"/>
  33346. <doc>
  33347. <![CDATA[Create a mutable integer gauge
  33348. @param name of the metric
  33349. @param desc metric description
  33350. @param iVal initial value
  33351. @return a new gauge object]]>
  33352. </doc>
  33353. </method>
  33354. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  33355. abstract="false" native="false" synchronized="true"
  33356. static="false" final="false" visibility="public"
  33357. deprecated="not deprecated">
  33358. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33359. <param name="iVal" type="int"/>
  33360. <doc>
  33361. <![CDATA[Create a mutable integer gauge
  33362. @param info metadata of the metric
  33363. @param iVal initial value
  33364. @return a new gauge object]]>
  33365. </doc>
  33366. </method>
  33367. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  33368. abstract="false" native="false" synchronized="false"
  33369. static="false" final="false" visibility="public"
  33370. deprecated="not deprecated">
  33371. <param name="name" type="java.lang.String"/>
  33372. <param name="desc" type="java.lang.String"/>
  33373. <param name="iVal" type="long"/>
  33374. <doc>
  33375. <![CDATA[Create a mutable long integer gauge
  33376. @param name of the metric
  33377. @param desc metric description
  33378. @param iVal initial value
  33379. @return a new gauge object]]>
  33380. </doc>
  33381. </method>
  33382. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  33383. abstract="false" native="false" synchronized="true"
  33384. static="false" final="false" visibility="public"
  33385. deprecated="not deprecated">
  33386. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33387. <param name="iVal" type="long"/>
  33388. <doc>
  33389. <![CDATA[Create a mutable long integer gauge
  33390. @param info metadata of the metric
  33391. @param iVal initial value
  33392. @return a new gauge object]]>
  33393. </doc>
  33394. </method>
  33395. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  33396. abstract="false" native="false" synchronized="true"
  33397. static="false" final="false" visibility="public"
  33398. deprecated="not deprecated">
  33399. <param name="name" type="java.lang.String"/>
  33400. <param name="desc" type="java.lang.String"/>
  33401. <param name="sampleName" type="java.lang.String"/>
  33402. <param name="valueName" type="java.lang.String"/>
  33403. <param name="interval" type="int"/>
  33404. <doc>
  33405. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  33406. @param name of the metric
  33407. @param desc metric description
  33408. @param sampleName of the metric (e.g., "Ops")
  33409. @param valueName of the metric (e.g., "Time" or "Latency")
  33410. @param interval rollover interval of estimator in seconds
  33411. @return a new quantile estimator object]]>
  33412. </doc>
  33413. </method>
  33414. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  33415. abstract="false" native="false" synchronized="true"
  33416. static="false" final="false" visibility="public"
  33417. deprecated="not deprecated">
  33418. <param name="name" type="java.lang.String"/>
  33419. <param name="desc" type="java.lang.String"/>
  33420. <param name="sampleName" type="java.lang.String"/>
  33421. <param name="valueName" type="java.lang.String"/>
  33422. <param name="extended" type="boolean"/>
  33423. <doc>
  33424. <![CDATA[Create a mutable metric with stats
  33425. @param name of the metric
  33426. @param desc metric description
  33427. @param sampleName of the metric (e.g., "Ops")
  33428. @param valueName of the metric (e.g., "Time" or "Latency")
  33429. @param extended produce extended stat (stdev, min/max etc.) if true.
  33430. @return a new mutable stat metric object]]>
  33431. </doc>
  33432. </method>
  33433. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  33434. abstract="false" native="false" synchronized="false"
  33435. static="false" final="false" visibility="public"
  33436. deprecated="not deprecated">
  33437. <param name="name" type="java.lang.String"/>
  33438. <param name="desc" type="java.lang.String"/>
  33439. <param name="sampleName" type="java.lang.String"/>
  33440. <param name="valueName" type="java.lang.String"/>
  33441. <doc>
  33442. <![CDATA[Create a mutable metric with stats
  33443. @param name of the metric
  33444. @param desc metric description
  33445. @param sampleName of the metric (e.g., "Ops")
  33446. @param valueName of the metric (e.g., "Time" or "Latency")
  33447. @return a new mutable metric object]]>
  33448. </doc>
  33449. </method>
  33450. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  33451. abstract="false" native="false" synchronized="false"
  33452. static="false" final="false" visibility="public"
  33453. deprecated="not deprecated">
  33454. <param name="name" type="java.lang.String"/>
  33455. <doc>
  33456. <![CDATA[Create a mutable rate metric
  33457. @param name of the metric
  33458. @return a new mutable metric object]]>
  33459. </doc>
  33460. </method>
  33461. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  33462. abstract="false" native="false" synchronized="false"
  33463. static="false" final="false" visibility="public"
  33464. deprecated="not deprecated">
  33465. <param name="name" type="java.lang.String"/>
  33466. <param name="description" type="java.lang.String"/>
  33467. <doc>
  33468. <![CDATA[Create a mutable rate metric
  33469. @param name of the metric
  33470. @param description of the metric
  33471. @return a new mutable rate metric object]]>
  33472. </doc>
  33473. </method>
  33474. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  33475. abstract="false" native="false" synchronized="false"
  33476. static="false" final="false" visibility="public"
  33477. deprecated="not deprecated">
  33478. <param name="name" type="java.lang.String"/>
  33479. <param name="desc" type="java.lang.String"/>
  33480. <param name="extended" type="boolean"/>
  33481. <doc>
  33482. <![CDATA[Create a mutable rate metric (for throughput measurement)
  33483. @param name of the metric
  33484. @param desc description
  33485. @param extended produce extended stat (stdev/min/max etc.) if true
  33486. @return a new mutable rate metric object]]>
  33487. </doc>
  33488. </method>
  33489. <method name="add"
  33490. abstract="false" native="false" synchronized="true"
  33491. static="false" final="false" visibility="public"
  33492. deprecated="not deprecated">
  33493. <param name="name" type="java.lang.String"/>
  33494. <param name="value" type="long"/>
  33495. <doc>
  33496. <![CDATA[Add sample to a stat metric by name.
  33497. @param name of the metric
  33498. @param value of the snapshot to add]]>
  33499. </doc>
  33500. </method>
  33501. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  33502. abstract="false" native="false" synchronized="false"
  33503. static="false" final="false" visibility="public"
  33504. deprecated="not deprecated">
  33505. <param name="name" type="java.lang.String"/>
  33506. <doc>
  33507. <![CDATA[Set the metrics context tag
  33508. @param name of the context
  33509. @return the registry itself as a convenience]]>
  33510. </doc>
  33511. </method>
  33512. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  33513. abstract="false" native="false" synchronized="false"
  33514. static="false" final="false" visibility="public"
  33515. deprecated="not deprecated">
  33516. <param name="name" type="java.lang.String"/>
  33517. <param name="description" type="java.lang.String"/>
  33518. <param name="value" type="java.lang.String"/>
  33519. <doc>
  33520. <![CDATA[Add a tag to the metrics
  33521. @param name of the tag
  33522. @param description of the tag
  33523. @param value of the tag
  33524. @return the registry (for keep adding tags)]]>
  33525. </doc>
  33526. </method>
  33527. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  33528. abstract="false" native="false" synchronized="false"
  33529. static="false" final="false" visibility="public"
  33530. deprecated="not deprecated">
  33531. <param name="name" type="java.lang.String"/>
  33532. <param name="description" type="java.lang.String"/>
  33533. <param name="value" type="java.lang.String"/>
  33534. <param name="override" type="boolean"/>
  33535. <doc>
  33536. <![CDATA[Add a tag to the metrics
  33537. @param name of the tag
  33538. @param description of the tag
  33539. @param value of the tag
  33540. @param override existing tag if true
  33541. @return the registry (for keep adding tags)]]>
  33542. </doc>
  33543. </method>
  33544. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  33545. abstract="false" native="false" synchronized="true"
  33546. static="false" final="false" visibility="public"
  33547. deprecated="not deprecated">
  33548. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33549. <param name="value" type="java.lang.String"/>
  33550. <param name="override" type="boolean"/>
  33551. <doc>
  33552. <![CDATA[Add a tag to the metrics
  33553. @param info metadata of the tag
  33554. @param value of the tag
  33555. @param override existing tag if true
  33556. @return the registry (for keep adding tags etc.)]]>
  33557. </doc>
  33558. </method>
  33559. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  33560. abstract="false" native="false" synchronized="false"
  33561. static="false" final="false" visibility="public"
  33562. deprecated="not deprecated">
  33563. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  33564. <param name="value" type="java.lang.String"/>
  33565. </method>
  33566. <method name="snapshot"
  33567. abstract="false" native="false" synchronized="true"
  33568. static="false" final="false" visibility="public"
  33569. deprecated="not deprecated">
  33570. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33571. <param name="all" type="boolean"/>
  33572. <doc>
  33573. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  33574. @param builder to contain the metrics snapshot
  33575. @param all get all the metrics even if the values are not changed.]]>
  33576. </doc>
  33577. </method>
  33578. <method name="toString" return="java.lang.String"
  33579. abstract="false" native="false" synchronized="false"
  33580. static="false" final="false" visibility="public"
  33581. deprecated="not deprecated">
  33582. </method>
  33583. <doc>
  33584. <![CDATA[An optional metrics registry class for creating and maintaining a
  33585. collection of MetricsMutables, making writing metrics source easier.]]>
  33586. </doc>
  33587. </class>
  33588. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  33589. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  33590. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33591. abstract="true"
  33592. static="false" final="false" visibility="public"
  33593. deprecated="not deprecated">
  33594. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  33595. static="false" final="false" visibility="protected"
  33596. deprecated="not deprecated">
  33597. </constructor>
  33598. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  33599. abstract="false" native="false" synchronized="false"
  33600. static="false" final="false" visibility="protected"
  33601. deprecated="not deprecated">
  33602. </method>
  33603. <method name="incr"
  33604. abstract="true" native="false" synchronized="false"
  33605. static="false" final="false" visibility="public"
  33606. deprecated="not deprecated">
  33607. <doc>
  33608. <![CDATA[Increment the metric value by 1.]]>
  33609. </doc>
  33610. </method>
  33611. <doc>
  33612. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  33613. </doc>
  33614. </class>
  33615. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  33616. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  33617. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  33618. abstract="false"
  33619. static="false" final="false" visibility="public"
  33620. deprecated="not deprecated">
  33621. <method name="incr"
  33622. abstract="false" native="false" synchronized="false"
  33623. static="false" final="false" visibility="public"
  33624. deprecated="not deprecated">
  33625. </method>
  33626. <method name="incr"
  33627. abstract="false" native="false" synchronized="true"
  33628. static="false" final="false" visibility="public"
  33629. deprecated="not deprecated">
  33630. <param name="delta" type="int"/>
  33631. <doc>
  33632. <![CDATA[Increment the value by a delta
  33633. @param delta of the increment]]>
  33634. </doc>
  33635. </method>
  33636. <method name="value" return="int"
  33637. abstract="false" native="false" synchronized="false"
  33638. static="false" final="false" visibility="public"
  33639. deprecated="not deprecated">
  33640. </method>
  33641. <method name="snapshot"
  33642. abstract="false" native="false" synchronized="false"
  33643. static="false" final="false" visibility="public"
  33644. deprecated="not deprecated">
  33645. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33646. <param name="all" type="boolean"/>
  33647. </method>
  33648. <doc>
  33649. <![CDATA[A mutable int counter for implementing metrics sources]]>
  33650. </doc>
  33651. </class>
  33652. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  33653. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  33654. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  33655. abstract="false"
  33656. static="false" final="false" visibility="public"
  33657. deprecated="not deprecated">
  33658. <method name="incr"
  33659. abstract="false" native="false" synchronized="false"
  33660. static="false" final="false" visibility="public"
  33661. deprecated="not deprecated">
  33662. </method>
  33663. <method name="incr"
  33664. abstract="false" native="false" synchronized="false"
  33665. static="false" final="false" visibility="public"
  33666. deprecated="not deprecated">
  33667. <param name="delta" type="long"/>
  33668. <doc>
  33669. <![CDATA[Increment the value by a delta
  33670. @param delta of the increment]]>
  33671. </doc>
  33672. </method>
  33673. <method name="value" return="long"
  33674. abstract="false" native="false" synchronized="false"
  33675. static="false" final="false" visibility="public"
  33676. deprecated="not deprecated">
  33677. </method>
  33678. <method name="snapshot"
  33679. abstract="false" native="false" synchronized="false"
  33680. static="false" final="false" visibility="public"
  33681. deprecated="not deprecated">
  33682. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33683. <param name="all" type="boolean"/>
  33684. </method>
  33685. <doc>
  33686. <![CDATA[A mutable long counter]]>
  33687. </doc>
  33688. </class>
  33689. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  33690. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  33691. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33692. abstract="true"
  33693. static="false" final="false" visibility="public"
  33694. deprecated="not deprecated">
  33695. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  33696. static="false" final="false" visibility="protected"
  33697. deprecated="not deprecated">
  33698. </constructor>
  33699. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  33700. abstract="false" native="false" synchronized="false"
  33701. static="false" final="false" visibility="protected"
  33702. deprecated="not deprecated">
  33703. </method>
  33704. <method name="incr"
  33705. abstract="true" native="false" synchronized="false"
  33706. static="false" final="false" visibility="public"
  33707. deprecated="not deprecated">
  33708. <doc>
  33709. <![CDATA[Increment the value of the metric by 1]]>
  33710. </doc>
  33711. </method>
  33712. <method name="decr"
  33713. abstract="true" native="false" synchronized="false"
  33714. static="false" final="false" visibility="public"
  33715. deprecated="not deprecated">
  33716. <doc>
  33717. <![CDATA[Decrement the value of the metric by 1]]>
  33718. </doc>
  33719. </method>
  33720. <doc>
  33721. <![CDATA[The mutable gauge metric interface]]>
  33722. </doc>
  33723. </class>
  33724. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  33725. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  33726. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  33727. abstract="false"
  33728. static="false" final="false" visibility="public"
  33729. deprecated="not deprecated">
  33730. <method name="value" return="int"
  33731. abstract="false" native="false" synchronized="false"
  33732. static="false" final="false" visibility="public"
  33733. deprecated="not deprecated">
  33734. </method>
  33735. <method name="incr"
  33736. abstract="false" native="false" synchronized="false"
  33737. static="false" final="false" visibility="public"
  33738. deprecated="not deprecated">
  33739. </method>
  33740. <method name="incr"
  33741. abstract="false" native="false" synchronized="false"
  33742. static="false" final="false" visibility="public"
  33743. deprecated="not deprecated">
  33744. <param name="delta" type="int"/>
  33745. <doc>
  33746. <![CDATA[Increment by delta
  33747. @param delta of the increment]]>
  33748. </doc>
  33749. </method>
  33750. <method name="decr"
  33751. abstract="false" native="false" synchronized="false"
  33752. static="false" final="false" visibility="public"
  33753. deprecated="not deprecated">
  33754. </method>
  33755. <method name="decr"
  33756. abstract="false" native="false" synchronized="false"
  33757. static="false" final="false" visibility="public"
  33758. deprecated="not deprecated">
  33759. <param name="delta" type="int"/>
  33760. <doc>
  33761. <![CDATA[decrement by delta
  33762. @param delta of the decrement]]>
  33763. </doc>
  33764. </method>
  33765. <method name="set"
  33766. abstract="false" native="false" synchronized="false"
  33767. static="false" final="false" visibility="public"
  33768. deprecated="not deprecated">
  33769. <param name="value" type="int"/>
  33770. <doc>
  33771. <![CDATA[Set the value of the metric
  33772. @param value to set]]>
  33773. </doc>
  33774. </method>
  33775. <method name="snapshot"
  33776. abstract="false" native="false" synchronized="false"
  33777. static="false" final="false" visibility="public"
  33778. deprecated="not deprecated">
  33779. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33780. <param name="all" type="boolean"/>
  33781. </method>
  33782. <doc>
  33783. <![CDATA[A mutable int gauge]]>
  33784. </doc>
  33785. </class>
  33786. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  33787. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  33788. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  33789. abstract="false"
  33790. static="false" final="false" visibility="public"
  33791. deprecated="not deprecated">
  33792. <method name="value" return="long"
  33793. abstract="false" native="false" synchronized="false"
  33794. static="false" final="false" visibility="public"
  33795. deprecated="not deprecated">
  33796. </method>
  33797. <method name="incr"
  33798. abstract="false" native="false" synchronized="false"
  33799. static="false" final="false" visibility="public"
  33800. deprecated="not deprecated">
  33801. </method>
  33802. <method name="incr"
  33803. abstract="false" native="false" synchronized="false"
  33804. static="false" final="false" visibility="public"
  33805. deprecated="not deprecated">
  33806. <param name="delta" type="long"/>
  33807. <doc>
  33808. <![CDATA[Increment by delta
  33809. @param delta of the increment]]>
  33810. </doc>
  33811. </method>
  33812. <method name="decr"
  33813. abstract="false" native="false" synchronized="false"
  33814. static="false" final="false" visibility="public"
  33815. deprecated="not deprecated">
  33816. </method>
  33817. <method name="decr"
  33818. abstract="false" native="false" synchronized="false"
  33819. static="false" final="false" visibility="public"
  33820. deprecated="not deprecated">
  33821. <param name="delta" type="long"/>
  33822. <doc>
  33823. <![CDATA[decrement by delta
  33824. @param delta of the decrement]]>
  33825. </doc>
  33826. </method>
  33827. <method name="set"
  33828. abstract="false" native="false" synchronized="false"
  33829. static="false" final="false" visibility="public"
  33830. deprecated="not deprecated">
  33831. <param name="value" type="long"/>
  33832. <doc>
  33833. <![CDATA[Set the value of the metric
  33834. @param value to set]]>
  33835. </doc>
  33836. </method>
  33837. <method name="snapshot"
  33838. abstract="false" native="false" synchronized="false"
  33839. static="false" final="false" visibility="public"
  33840. deprecated="not deprecated">
  33841. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33842. <param name="all" type="boolean"/>
  33843. </method>
  33844. <doc>
  33845. <![CDATA[A mutable long gauge]]>
  33846. </doc>
  33847. </class>
  33848. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  33849. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  33850. <class name="MutableMetric" extends="java.lang.Object"
  33851. abstract="true"
  33852. static="false" final="false" visibility="public"
  33853. deprecated="not deprecated">
  33854. <constructor name="MutableMetric"
  33855. static="false" final="false" visibility="public"
  33856. deprecated="not deprecated">
  33857. </constructor>
  33858. <method name="snapshot"
  33859. abstract="true" native="false" synchronized="false"
  33860. static="false" final="false" visibility="public"
  33861. deprecated="not deprecated">
  33862. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33863. <param name="all" type="boolean"/>
  33864. <doc>
  33865. <![CDATA[Get a snapshot of the metric
  33866. @param builder the metrics record builder
  33867. @param all if true, snapshot unchanged metrics as well]]>
  33868. </doc>
  33869. </method>
  33870. <method name="snapshot"
  33871. abstract="false" native="false" synchronized="false"
  33872. static="false" final="false" visibility="public"
  33873. deprecated="not deprecated">
  33874. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33875. <doc>
  33876. <![CDATA[Get a snapshot of metric if changed
  33877. @param builder the metrics record builder]]>
  33878. </doc>
  33879. </method>
  33880. <method name="setChanged"
  33881. abstract="false" native="false" synchronized="false"
  33882. static="false" final="false" visibility="protected"
  33883. deprecated="not deprecated">
  33884. <doc>
  33885. <![CDATA[Set the changed flag in mutable operations]]>
  33886. </doc>
  33887. </method>
  33888. <method name="clearChanged"
  33889. abstract="false" native="false" synchronized="false"
  33890. static="false" final="false" visibility="protected"
  33891. deprecated="not deprecated">
  33892. <doc>
  33893. <![CDATA[Clear the changed flag in the snapshot operations]]>
  33894. </doc>
  33895. </method>
  33896. <method name="changed" return="boolean"
  33897. abstract="false" native="false" synchronized="false"
  33898. static="false" final="false" visibility="public"
  33899. deprecated="not deprecated">
  33900. <doc>
  33901. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  33902. </doc>
  33903. </method>
  33904. <doc>
  33905. <![CDATA[The mutable metric interface]]>
  33906. </doc>
  33907. </class>
  33908. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  33909. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  33910. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33911. abstract="false"
  33912. static="false" final="false" visibility="public"
  33913. deprecated="not deprecated">
  33914. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  33915. static="false" final="false" visibility="public"
  33916. deprecated="not deprecated">
  33917. <doc>
  33918. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  33919. over on the specified time interval.
  33920. @param name
  33921. of the metric
  33922. @param description
  33923. long-form textual description of the metric
  33924. @param sampleName
  33925. type of items in the stream (e.g., "Ops")
  33926. @param valueName
  33927. type of the values
  33928. @param interval
  33929. rollover interval (in seconds) of the estimator]]>
  33930. </doc>
  33931. </constructor>
  33932. <method name="snapshot"
  33933. abstract="false" native="false" synchronized="true"
  33934. static="false" final="false" visibility="public"
  33935. deprecated="not deprecated">
  33936. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  33937. <param name="all" type="boolean"/>
  33938. </method>
  33939. <method name="add"
  33940. abstract="false" native="false" synchronized="true"
  33941. static="false" final="false" visibility="public"
  33942. deprecated="not deprecated">
  33943. <param name="value" type="long"/>
  33944. </method>
  33945. <method name="getInterval" return="int"
  33946. abstract="false" native="false" synchronized="false"
  33947. static="false" final="false" visibility="public"
  33948. deprecated="not deprecated">
  33949. </method>
  33950. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  33951. transient="false" volatile="false"
  33952. static="true" final="true" visibility="public"
  33953. deprecated="not deprecated">
  33954. </field>
  33955. <field name="previousSnapshot" type="java.util.Map"
  33956. transient="false" volatile="false"
  33957. static="false" final="false" visibility="protected"
  33958. deprecated="not deprecated">
  33959. </field>
  33960. <doc>
  33961. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  33962. quantiles with provably low error bounds. This is particularly useful for
  33963. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  33964. </doc>
  33965. </class>
  33966. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  33967. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  33968. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  33969. abstract="false"
  33970. static="false" final="false" visibility="public"
  33971. deprecated="not deprecated">
  33972. <doc>
  33973. <![CDATA[A convenient mutable metric for throughput measurement]]>
  33974. </doc>
  33975. </class>
  33976. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  33977. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  33978. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  33979. abstract="false"
  33980. static="false" final="false" visibility="public"
  33981. deprecated="not deprecated">
  33982. <method name="init"
  33983. abstract="false" native="false" synchronized="false"
  33984. static="false" final="false" visibility="public"
  33985. deprecated="not deprecated">
  33986. <param name="protocol" type="java.lang.Class"/>
  33987. <doc>
  33988. <![CDATA[Initialize the registry with all the methods in a protocol
  33989. so they all show up in the first snapshot.
  33990. Convenient for JMX implementations.
  33991. @param protocol the protocol class]]>
  33992. </doc>
  33993. </method>
  33994. <method name="add"
  33995. abstract="false" native="false" synchronized="false"
  33996. static="false" final="false" visibility="public"
  33997. deprecated="not deprecated">
  33998. <param name="name" type="java.lang.String"/>
  33999. <param name="elapsed" type="long"/>
  34000. <doc>
  34001. <![CDATA[Add a rate sample for a rate metric
  34002. @param name of the rate metric
  34003. @param elapsed time]]>
  34004. </doc>
  34005. </method>
  34006. <method name="snapshot"
  34007. abstract="false" native="false" synchronized="false"
  34008. static="false" final="false" visibility="public"
  34009. deprecated="not deprecated">
  34010. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  34011. <param name="all" type="boolean"/>
  34012. </method>
  34013. <doc>
  34014. <![CDATA[Helper class to manage a group of mutable rate metrics]]>
  34015. </doc>
  34016. </class>
  34017. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  34018. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  34019. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  34020. abstract="false"
  34021. static="false" final="false" visibility="public"
  34022. deprecated="not deprecated">
  34023. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  34024. static="false" final="false" visibility="public"
  34025. deprecated="not deprecated">
  34026. <doc>
  34027. <![CDATA[Construct a sample statistics metric
  34028. @param name of the metric
  34029. @param description of the metric
  34030. @param sampleName of the metric (e.g. "Ops")
  34031. @param valueName of the metric (e.g. "Time", "Latency")
  34032. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  34033. </doc>
  34034. </constructor>
  34035. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  34036. static="false" final="false" visibility="public"
  34037. deprecated="not deprecated">
  34038. <doc>
  34039. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  34040. @param name of the metric
  34041. @param description of the metric
  34042. @param sampleName of the metric (e.g. "Ops")
  34043. @param valueName of the metric (e.g. "Time", "Latency")]]>
  34044. </doc>
  34045. </constructor>
  34046. <method name="setExtended"
  34047. abstract="false" native="false" synchronized="true"
  34048. static="false" final="false" visibility="public"
  34049. deprecated="not deprecated">
  34050. <param name="extended" type="boolean"/>
  34051. <doc>
  34052. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  34053. @param extended enable/disable displaying extended stats]]>
  34054. </doc>
  34055. </method>
  34056. <method name="add"
  34057. abstract="false" native="false" synchronized="true"
  34058. static="false" final="false" visibility="public"
  34059. deprecated="not deprecated">
  34060. <param name="numSamples" type="long"/>
  34061. <param name="sum" type="long"/>
  34062. <doc>
  34063. <![CDATA[Add a number of samples and their sum to the running stat
  34064. @param numSamples number of samples
  34065. @param sum of the samples]]>
  34066. </doc>
  34067. </method>
  34068. <method name="add"
  34069. abstract="false" native="false" synchronized="true"
  34070. static="false" final="false" visibility="public"
  34071. deprecated="not deprecated">
  34072. <param name="value" type="long"/>
  34073. <doc>
  34074. <![CDATA[Add a snapshot to the metric
  34075. @param value of the metric]]>
  34076. </doc>
  34077. </method>
  34078. <method name="snapshot"
  34079. abstract="false" native="false" synchronized="true"
  34080. static="false" final="false" visibility="public"
  34081. deprecated="not deprecated">
  34082. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  34083. <param name="all" type="boolean"/>
  34084. </method>
  34085. <method name="resetMinMax"
  34086. abstract="false" native="false" synchronized="false"
  34087. static="false" final="false" visibility="public"
  34088. deprecated="not deprecated">
  34089. <doc>
  34090. <![CDATA[Reset the all time min max of the metric]]>
  34091. </doc>
  34092. </method>
  34093. <doc>
  34094. <![CDATA[A mutable metric with stats.
  34095. Useful for keeping throughput/latency stats.]]>
  34096. </doc>
  34097. </class>
  34098. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  34099. </package>
  34100. <package name="org.apache.hadoop.metrics2.sink">
  34101. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  34102. <class name="FileSink" extends="java.lang.Object"
  34103. abstract="false"
  34104. static="false" final="false" visibility="public"
  34105. deprecated="not deprecated">
  34106. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  34107. <implements name="java.io.Closeable"/>
  34108. <constructor name="FileSink"
  34109. static="false" final="false" visibility="public"
  34110. deprecated="not deprecated">
  34111. </constructor>
  34112. <method name="init"
  34113. abstract="false" native="false" synchronized="false"
  34114. static="false" final="false" visibility="public"
  34115. deprecated="not deprecated">
  34116. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  34117. </method>
  34118. <method name="putMetrics"
  34119. abstract="false" native="false" synchronized="false"
  34120. static="false" final="false" visibility="public"
  34121. deprecated="not deprecated">
  34122. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  34123. </method>
  34124. <method name="flush"
  34125. abstract="false" native="false" synchronized="false"
  34126. static="false" final="false" visibility="public"
  34127. deprecated="not deprecated">
  34128. </method>
  34129. <method name="close"
  34130. abstract="false" native="false" synchronized="false"
  34131. static="false" final="false" visibility="public"
  34132. deprecated="not deprecated">
  34133. <exception name="IOException" type="java.io.IOException"/>
  34134. </method>
  34135. <doc>
  34136. <![CDATA[A metrics sink that writes to a file]]>
  34137. </doc>
  34138. </class>
  34139. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  34140. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  34141. <class name="GraphiteSink" extends="java.lang.Object"
  34142. abstract="false"
  34143. static="false" final="false" visibility="public"
  34144. deprecated="not deprecated">
  34145. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  34146. <implements name="java.io.Closeable"/>
  34147. <constructor name="GraphiteSink"
  34148. static="false" final="false" visibility="public"
  34149. deprecated="not deprecated">
  34150. </constructor>
  34151. <method name="init"
  34152. abstract="false" native="false" synchronized="false"
  34153. static="false" final="false" visibility="public"
  34154. deprecated="not deprecated">
  34155. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  34156. </method>
  34157. <method name="putMetrics"
  34158. abstract="false" native="false" synchronized="false"
  34159. static="false" final="false" visibility="public"
  34160. deprecated="not deprecated">
  34161. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  34162. </method>
  34163. <method name="flush"
  34164. abstract="false" native="false" synchronized="false"
  34165. static="false" final="false" visibility="public"
  34166. deprecated="not deprecated">
  34167. </method>
  34168. <method name="close"
  34169. abstract="false" native="false" synchronized="false"
  34170. static="false" final="false" visibility="public"
  34171. deprecated="not deprecated">
  34172. <exception name="IOException" type="java.io.IOException"/>
  34173. </method>
  34174. <doc>
  34175. <![CDATA[A metrics sink that writes to a Graphite server]]>
  34176. </doc>
  34177. </class>
  34178. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  34179. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink.Graphite -->
  34180. <class name="GraphiteSink.Graphite" extends="java.lang.Object"
  34181. abstract="false"
  34182. static="true" final="false" visibility="public"
  34183. deprecated="not deprecated">
  34184. <constructor name="Graphite" type="java.lang.String, int"
  34185. static="false" final="false" visibility="public"
  34186. deprecated="not deprecated">
  34187. </constructor>
  34188. <method name="connect"
  34189. abstract="false" native="false" synchronized="false"
  34190. static="false" final="false" visibility="public"
  34191. deprecated="not deprecated">
  34192. </method>
  34193. <method name="write"
  34194. abstract="false" native="false" synchronized="false"
  34195. static="false" final="false" visibility="public"
  34196. deprecated="not deprecated">
  34197. <param name="msg" type="java.lang.String"/>
  34198. <exception name="IOException" type="java.io.IOException"/>
  34199. </method>
  34200. <method name="flush"
  34201. abstract="false" native="false" synchronized="false"
  34202. static="false" final="false" visibility="public"
  34203. deprecated="not deprecated">
  34204. <exception name="IOException" type="java.io.IOException"/>
  34205. </method>
  34206. <method name="isConnected" return="boolean"
  34207. abstract="false" native="false" synchronized="false"
  34208. static="false" final="false" visibility="public"
  34209. deprecated="not deprecated">
  34210. </method>
  34211. <method name="close"
  34212. abstract="false" native="false" synchronized="false"
  34213. static="false" final="false" visibility="public"
  34214. deprecated="not deprecated">
  34215. <exception name="IOException" type="java.io.IOException"/>
  34216. </method>
  34217. </class>
  34218. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink.Graphite -->
  34219. </package>
  34220. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  34221. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  34222. <class name="AbstractGangliaSink" extends="java.lang.Object"
  34223. abstract="true"
  34224. static="false" final="false" visibility="public"
  34225. deprecated="not deprecated">
  34226. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  34227. <constructor name="AbstractGangliaSink"
  34228. static="false" final="false" visibility="public"
  34229. deprecated="not deprecated">
  34230. </constructor>
  34231. <method name="init"
  34232. abstract="false" native="false" synchronized="false"
  34233. static="false" final="false" visibility="public"
  34234. deprecated="not deprecated">
  34235. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  34236. </method>
  34237. <method name="flush"
  34238. abstract="false" native="false" synchronized="false"
  34239. static="false" final="false" visibility="public"
  34240. deprecated="not deprecated">
  34241. </method>
  34242. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  34243. abstract="false" native="false" synchronized="false"
  34244. static="false" final="false" visibility="protected"
  34245. deprecated="not deprecated">
  34246. <param name="metricName" type="java.lang.String"/>
  34247. <doc>
  34248. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  34249. @param metricName
  34250. @return looked up GangliaConf]]>
  34251. </doc>
  34252. </method>
  34253. <method name="getHostName" return="java.lang.String"
  34254. abstract="false" native="false" synchronized="false"
  34255. static="false" final="false" visibility="protected"
  34256. deprecated="not deprecated">
  34257. <doc>
  34258. <![CDATA[@return the hostName]]>
  34259. </doc>
  34260. </method>
  34261. <method name="xdr_string"
  34262. abstract="false" native="false" synchronized="false"
  34263. static="false" final="false" visibility="protected"
  34264. deprecated="not deprecated">
  34265. <param name="s" type="java.lang.String"/>
  34266. <doc>
  34267. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  34268. int, followed by the bytes of the string, padded if necessary to a multiple
  34269. of 4.
  34270. @param s the string to be written to buffer at offset location]]>
  34271. </doc>
  34272. </method>
  34273. <method name="xdr_int"
  34274. abstract="false" native="false" synchronized="false"
  34275. static="false" final="false" visibility="protected"
  34276. deprecated="not deprecated">
  34277. <param name="i" type="int"/>
  34278. <doc>
  34279. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  34280. </doc>
  34281. </method>
  34282. <method name="emitToGangliaHosts"
  34283. abstract="false" native="false" synchronized="false"
  34284. static="false" final="false" visibility="protected"
  34285. deprecated="not deprecated">
  34286. <exception name="IOException" type="java.io.IOException"/>
  34287. <doc>
  34288. <![CDATA[Sends Ganglia Metrics to the configured hosts
  34289. @throws IOException]]>
  34290. </doc>
  34291. </method>
  34292. <method name="isSupportSparseMetrics" return="boolean"
  34293. abstract="false" native="false" synchronized="false"
  34294. static="false" final="false" visibility="protected"
  34295. deprecated="not deprecated">
  34296. <doc>
  34297. <![CDATA[@return whether sparse metrics are supported]]>
  34298. </doc>
  34299. </method>
  34300. <field name="LOG" type="org.apache.commons.logging.Log"
  34301. transient="false" volatile="false"
  34302. static="false" final="true" visibility="public"
  34303. deprecated="not deprecated">
  34304. </field>
  34305. <field name="DEFAULT_UNITS" type="java.lang.String"
  34306. transient="false" volatile="false"
  34307. static="true" final="true" visibility="public"
  34308. deprecated="not deprecated">
  34309. </field>
  34310. <field name="DEFAULT_TMAX" type="int"
  34311. transient="false" volatile="false"
  34312. static="true" final="true" visibility="public"
  34313. deprecated="not deprecated">
  34314. </field>
  34315. <field name="DEFAULT_DMAX" type="int"
  34316. transient="false" volatile="false"
  34317. static="true" final="true" visibility="public"
  34318. deprecated="not deprecated">
  34319. </field>
  34320. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  34321. transient="false" volatile="false"
  34322. static="true" final="true" visibility="public"
  34323. deprecated="not deprecated">
  34324. </field>
  34325. <field name="DEFAULT_PORT" type="int"
  34326. transient="false" volatile="false"
  34327. static="true" final="true" visibility="public"
  34328. deprecated="not deprecated">
  34329. </field>
  34330. <field name="DEFAULT_MULTICAST_ENABLED" type="boolean"
  34331. transient="false" volatile="false"
  34332. static="true" final="true" visibility="public"
  34333. deprecated="not deprecated">
  34334. </field>
  34335. <field name="DEFAULT_MULTICAST_TTL" type="int"
  34336. transient="false" volatile="false"
  34337. static="true" final="true" visibility="public"
  34338. deprecated="not deprecated">
  34339. </field>
  34340. <field name="SERVERS_PROPERTY" type="java.lang.String"
  34341. transient="false" volatile="false"
  34342. static="true" final="true" visibility="public"
  34343. deprecated="not deprecated">
  34344. </field>
  34345. <field name="MULTICAST_ENABLED_PROPERTY" type="java.lang.String"
  34346. transient="false" volatile="false"
  34347. static="true" final="true" visibility="public"
  34348. deprecated="not deprecated">
  34349. </field>
  34350. <field name="MULTICAST_TTL_PROPERTY" type="java.lang.String"
  34351. transient="false" volatile="false"
  34352. static="true" final="true" visibility="public"
  34353. deprecated="not deprecated">
  34354. </field>
  34355. <field name="BUFFER_SIZE" type="int"
  34356. transient="false" volatile="false"
  34357. static="true" final="true" visibility="public"
  34358. deprecated="not deprecated">
  34359. </field>
  34360. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  34361. transient="false" volatile="false"
  34362. static="true" final="true" visibility="public"
  34363. deprecated="not deprecated">
  34364. </field>
  34365. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  34366. transient="false" volatile="false"
  34367. static="true" final="true" visibility="public"
  34368. deprecated="not deprecated">
  34369. </field>
  34370. <field name="EQUAL" type="java.lang.String"
  34371. transient="false" volatile="false"
  34372. static="true" final="true" visibility="public"
  34373. deprecated="not deprecated">
  34374. </field>
  34375. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  34376. transient="false" volatile="false"
  34377. static="false" final="true" visibility="protected"
  34378. deprecated="not deprecated">
  34379. <doc>
  34380. <![CDATA[Used for visiting Metrics]]>
  34381. </doc>
  34382. </field>
  34383. <doc>
  34384. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  34385. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  34386. As per the documentation, sink implementations doesn't have to worry about
  34387. thread safety. Hence the code wasn't written for thread safety and should
  34388. be modified in case the above assumption changes in the future.]]>
  34389. </doc>
  34390. </class>
  34391. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  34392. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  34393. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  34394. abstract="false"
  34395. static="true" final="true" visibility="public"
  34396. deprecated="not deprecated">
  34397. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  34398. abstract="false" native="false" synchronized="false"
  34399. static="true" final="false" visibility="public"
  34400. deprecated="not deprecated">
  34401. </method>
  34402. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  34403. abstract="false" native="false" synchronized="false"
  34404. static="true" final="false" visibility="public"
  34405. deprecated="not deprecated">
  34406. <param name="name" type="java.lang.String"/>
  34407. </method>
  34408. <doc>
  34409. <![CDATA[define enum for various type of conf]]>
  34410. </doc>
  34411. </class>
  34412. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  34413. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  34414. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  34415. abstract="false"
  34416. static="true" final="true" visibility="public"
  34417. deprecated="not deprecated">
  34418. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  34419. abstract="false" native="false" synchronized="false"
  34420. static="true" final="false" visibility="public"
  34421. deprecated="not deprecated">
  34422. </method>
  34423. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  34424. abstract="false" native="false" synchronized="false"
  34425. static="true" final="false" visibility="public"
  34426. deprecated="not deprecated">
  34427. <param name="name" type="java.lang.String"/>
  34428. </method>
  34429. <doc>
  34430. <![CDATA[ganglia slope values which equal the ordinal]]>
  34431. </doc>
  34432. </class>
  34433. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  34434. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  34435. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  34436. abstract="false"
  34437. static="false" final="false" visibility="public"
  34438. deprecated="not deprecated">
  34439. <constructor name="GangliaSink30"
  34440. static="false" final="false" visibility="public"
  34441. deprecated="not deprecated">
  34442. </constructor>
  34443. <method name="init"
  34444. abstract="false" native="false" synchronized="false"
  34445. static="false" final="false" visibility="public"
  34446. deprecated="not deprecated">
  34447. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  34448. </method>
  34449. <method name="putMetrics"
  34450. abstract="false" native="false" synchronized="false"
  34451. static="false" final="false" visibility="public"
  34452. deprecated="not deprecated">
  34453. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  34454. </method>
  34455. <method name="emitMetric"
  34456. abstract="false" native="false" synchronized="false"
  34457. static="false" final="false" visibility="protected"
  34458. deprecated="not deprecated">
  34459. <param name="groupName" type="java.lang.String"/>
  34460. <param name="name" type="java.lang.String"/>
  34461. <param name="type" type="java.lang.String"/>
  34462. <param name="value" type="java.lang.String"/>
  34463. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  34464. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  34465. <exception name="IOException" type="java.io.IOException"/>
  34466. <doc>
  34467. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  34468. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  34469. order to keep it in sync.
  34470. @param groupName The group name of the metric
  34471. @param name The metric name
  34472. @param type The type of the metric
  34473. @param value The value of the metric
  34474. @param gConf The GangliaConf for this metric
  34475. @param gSlope The slope for this metric
  34476. @throws IOException]]>
  34477. </doc>
  34478. </method>
  34479. <field name="LOG" type="org.apache.commons.logging.Log"
  34480. transient="false" volatile="false"
  34481. static="false" final="true" visibility="public"
  34482. deprecated="not deprecated">
  34483. </field>
  34484. <doc>
  34485. <![CDATA[This code supports Ganglia 3.0]]>
  34486. </doc>
  34487. </class>
  34488. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  34489. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  34490. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  34491. abstract="false"
  34492. static="false" final="false" visibility="public"
  34493. deprecated="not deprecated">
  34494. <constructor name="GangliaSink31"
  34495. static="false" final="false" visibility="public"
  34496. deprecated="not deprecated">
  34497. </constructor>
  34498. <method name="emitMetric"
  34499. abstract="false" native="false" synchronized="false"
  34500. static="false" final="false" visibility="protected"
  34501. deprecated="not deprecated">
  34502. <param name="groupName" type="java.lang.String"/>
  34503. <param name="name" type="java.lang.String"/>
  34504. <param name="type" type="java.lang.String"/>
  34505. <param name="value" type="java.lang.String"/>
  34506. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  34507. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  34508. <exception name="IOException" type="java.io.IOException"/>
  34509. <doc>
  34510. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  34511. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  34512. order to keep it in sync.
  34513. @param groupName The group name of the metric
  34514. @param name The metric name
  34515. @param type The type of the metric
  34516. @param value The value of the metric
  34517. @param gConf The GangliaConf for this metric
  34518. @param gSlope The slope for this metric
  34519. @throws IOException]]>
  34520. </doc>
  34521. </method>
  34522. <field name="LOG" type="org.apache.commons.logging.Log"
  34523. transient="false" volatile="false"
  34524. static="false" final="true" visibility="public"
  34525. deprecated="not deprecated">
  34526. </field>
  34527. <doc>
  34528. <![CDATA[This code supports Ganglia 3.1]]>
  34529. </doc>
  34530. </class>
  34531. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  34532. </package>
  34533. <package name="org.apache.hadoop.metrics2.source">
  34534. </package>
  34535. <package name="org.apache.hadoop.metrics2.util">
  34536. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  34537. <class name="MBeans" extends="java.lang.Object"
  34538. abstract="false"
  34539. static="false" final="false" visibility="public"
  34540. deprecated="not deprecated">
  34541. <constructor name="MBeans"
  34542. static="false" final="false" visibility="public"
  34543. deprecated="not deprecated">
  34544. </constructor>
  34545. <method name="register" return="javax.management.ObjectName"
  34546. abstract="false" native="false" synchronized="false"
  34547. static="true" final="false" visibility="public"
  34548. deprecated="not deprecated">
  34549. <param name="serviceName" type="java.lang.String"/>
  34550. <param name="nameName" type="java.lang.String"/>
  34551. <param name="theMbean" type="java.lang.Object"/>
  34552. <doc>
  34553. <![CDATA[Register the MBean using our standard MBeanName format
  34554. "hadoop:service=<serviceName>,name=<nameName>"
  34555. Where the <serviceName> and <nameName> are the supplied parameters
  34556. @param serviceName
  34557. @param nameName
  34558. @param theMbean - the MBean to register
  34559. @return the named used to register the MBean]]>
  34560. </doc>
  34561. </method>
  34562. <method name="unregister"
  34563. abstract="false" native="false" synchronized="false"
  34564. static="true" final="false" visibility="public"
  34565. deprecated="not deprecated">
  34566. <param name="mbeanName" type="javax.management.ObjectName"/>
  34567. </method>
  34568. <doc>
  34569. <![CDATA[This util class provides a method to register an MBean using
  34570. our standard naming convention as described in the doc
  34571. for {link {@link #register(String, String, Object)}]]>
  34572. </doc>
  34573. </class>
  34574. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  34575. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  34576. <class name="MetricsCache" extends="java.lang.Object"
  34577. abstract="false"
  34578. static="false" final="false" visibility="public"
  34579. deprecated="not deprecated">
  34580. <constructor name="MetricsCache"
  34581. static="false" final="false" visibility="public"
  34582. deprecated="not deprecated">
  34583. </constructor>
  34584. <constructor name="MetricsCache" type="int"
  34585. static="false" final="false" visibility="public"
  34586. deprecated="not deprecated">
  34587. <doc>
  34588. <![CDATA[Construct a metrics cache
  34589. @param maxRecsPerName limit of the number records per record name]]>
  34590. </doc>
  34591. </constructor>
  34592. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  34593. abstract="false" native="false" synchronized="false"
  34594. static="false" final="false" visibility="public"
  34595. deprecated="not deprecated">
  34596. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  34597. <param name="includingTags" type="boolean"/>
  34598. <doc>
  34599. <![CDATA[Update the cache and return the current cached record
  34600. @param mr the update record
  34601. @param includingTags cache tag values (for later lookup by name) if true
  34602. @return the updated cache record]]>
  34603. </doc>
  34604. </method>
  34605. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  34606. abstract="false" native="false" synchronized="false"
  34607. static="false" final="false" visibility="public"
  34608. deprecated="not deprecated">
  34609. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  34610. <doc>
  34611. <![CDATA[Update the cache and return the current cache record
  34612. @param mr the update record
  34613. @return the updated cache record]]>
  34614. </doc>
  34615. </method>
  34616. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  34617. abstract="false" native="false" synchronized="false"
  34618. static="false" final="false" visibility="public"
  34619. deprecated="not deprecated">
  34620. <param name="name" type="java.lang.String"/>
  34621. <param name="tags" type="java.util.Collection"/>
  34622. <doc>
  34623. <![CDATA[Get the cached record
  34624. @param name of the record
  34625. @param tags of the record
  34626. @return the cached record or null]]>
  34627. </doc>
  34628. </method>
  34629. <doc>
  34630. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  34631. </doc>
  34632. </class>
  34633. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  34634. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  34635. <class name="MetricsCache.Record" extends="java.lang.Object"
  34636. abstract="false"
  34637. static="true" final="false" visibility="public"
  34638. deprecated="not deprecated">
  34639. <constructor name="Record"
  34640. static="false" final="false" visibility="public"
  34641. deprecated="not deprecated">
  34642. </constructor>
  34643. <method name="getTag" return="java.lang.String"
  34644. abstract="false" native="false" synchronized="false"
  34645. static="false" final="false" visibility="public"
  34646. deprecated="not deprecated">
  34647. <param name="key" type="java.lang.String"/>
  34648. <doc>
  34649. <![CDATA[Lookup a tag value
  34650. @param key name of the tag
  34651. @return the tag value]]>
  34652. </doc>
  34653. </method>
  34654. <method name="getMetric" return="java.lang.Number"
  34655. abstract="false" native="false" synchronized="false"
  34656. static="false" final="false" visibility="public"
  34657. deprecated="not deprecated">
  34658. <param name="key" type="java.lang.String"/>
  34659. <doc>
  34660. <![CDATA[Lookup a metric value
  34661. @param key name of the metric
  34662. @return the metric value]]>
  34663. </doc>
  34664. </method>
  34665. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.AbstractMetric"
  34666. abstract="false" native="false" synchronized="false"
  34667. static="false" final="false" visibility="public"
  34668. deprecated="not deprecated">
  34669. <param name="key" type="java.lang.String"/>
  34670. <doc>
  34671. <![CDATA[Lookup a metric instance
  34672. @param key name of the metric
  34673. @return the metric instance]]>
  34674. </doc>
  34675. </method>
  34676. <method name="tags" return="java.util.Set"
  34677. abstract="false" native="false" synchronized="false"
  34678. static="false" final="false" visibility="public"
  34679. deprecated="not deprecated">
  34680. <doc>
  34681. <![CDATA[@return the entry set of the tags of the record]]>
  34682. </doc>
  34683. </method>
  34684. <method name="metrics" return="java.util.Set"
  34685. abstract="false" native="false" synchronized="false"
  34686. static="false" final="false" visibility="public"
  34687. deprecated="use metricsEntrySet() instead">
  34688. <doc>
  34689. <![CDATA[@deprecated use metricsEntrySet() instead
  34690. @return entry set of metrics]]>
  34691. </doc>
  34692. </method>
  34693. <method name="metricsEntrySet" return="java.util.Set"
  34694. abstract="false" native="false" synchronized="false"
  34695. static="false" final="false" visibility="public"
  34696. deprecated="not deprecated">
  34697. <doc>
  34698. <![CDATA[@return entry set of metrics]]>
  34699. </doc>
  34700. </method>
  34701. <method name="toString" return="java.lang.String"
  34702. abstract="false" native="false" synchronized="false"
  34703. static="false" final="false" visibility="public"
  34704. deprecated="not deprecated">
  34705. </method>
  34706. <doc>
  34707. <![CDATA[Cached record]]>
  34708. </doc>
  34709. </class>
  34710. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  34711. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  34712. <class name="SampleStat.MinMax" extends="java.lang.Object"
  34713. abstract="false"
  34714. static="true" final="false" visibility="public"
  34715. deprecated="not deprecated">
  34716. <constructor name="MinMax"
  34717. static="false" final="false" visibility="public"
  34718. deprecated="not deprecated">
  34719. </constructor>
  34720. <method name="add"
  34721. abstract="false" native="false" synchronized="false"
  34722. static="false" final="false" visibility="public"
  34723. deprecated="not deprecated">
  34724. <param name="value" type="double"/>
  34725. </method>
  34726. <method name="min" return="double"
  34727. abstract="false" native="false" synchronized="false"
  34728. static="false" final="false" visibility="public"
  34729. deprecated="not deprecated">
  34730. </method>
  34731. <method name="max" return="double"
  34732. abstract="false" native="false" synchronized="false"
  34733. static="false" final="false" visibility="public"
  34734. deprecated="not deprecated">
  34735. </method>
  34736. <method name="reset"
  34737. abstract="false" native="false" synchronized="false"
  34738. static="false" final="false" visibility="public"
  34739. deprecated="not deprecated">
  34740. </method>
  34741. <method name="reset"
  34742. abstract="false" native="false" synchronized="false"
  34743. static="false" final="false" visibility="public"
  34744. deprecated="not deprecated">
  34745. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  34746. </method>
  34747. <doc>
  34748. <![CDATA[Helper to keep running min/max]]>
  34749. </doc>
  34750. </class>
  34751. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  34752. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  34753. <class name="Servers" extends="java.lang.Object"
  34754. abstract="false"
  34755. static="false" final="false" visibility="public"
  34756. deprecated="not deprecated">
  34757. <method name="parse" return="java.util.List"
  34758. abstract="false" native="false" synchronized="false"
  34759. static="true" final="false" visibility="public"
  34760. deprecated="not deprecated">
  34761. <param name="specs" type="java.lang.String"/>
  34762. <param name="defaultPort" type="int"/>
  34763. <doc>
  34764. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  34765. of the form <i>hostname</i> or <i>hostname:port</i>. If
  34766. the specs string is null, defaults to localhost:defaultPort.
  34767. @param specs server specs (see description)
  34768. @param defaultPort the default port if not specified
  34769. @return a list of InetSocketAddress objects.]]>
  34770. </doc>
  34771. </method>
  34772. <doc>
  34773. <![CDATA[Helpers to handle server addresses]]>
  34774. </doc>
  34775. </class>
  34776. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  34777. </package>
  34778. <package name="org.apache.hadoop.net">
  34779. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  34780. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  34781. abstract="true"
  34782. static="false" final="false" visibility="public"
  34783. deprecated="not deprecated">
  34784. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  34785. <implements name="org.apache.hadoop.conf.Configurable"/>
  34786. <constructor name="AbstractDNSToSwitchMapping"
  34787. static="false" final="false" visibility="protected"
  34788. deprecated="not deprecated">
  34789. <doc>
  34790. <![CDATA[Create an unconfigured instance]]>
  34791. </doc>
  34792. </constructor>
  34793. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  34794. static="false" final="false" visibility="protected"
  34795. deprecated="not deprecated">
  34796. <doc>
  34797. <![CDATA[Create an instance, caching the configuration file.
  34798. This constructor does not call {@link #setConf(Configuration)}; if
  34799. a subclass extracts information in that method, it must call it explicitly.
  34800. @param conf the configuration]]>
  34801. </doc>
  34802. </constructor>
  34803. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34804. abstract="false" native="false" synchronized="false"
  34805. static="false" final="false" visibility="public"
  34806. deprecated="not deprecated">
  34807. </method>
  34808. <method name="setConf"
  34809. abstract="false" native="false" synchronized="false"
  34810. static="false" final="false" visibility="public"
  34811. deprecated="not deprecated">
  34812. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34813. </method>
  34814. <method name="isSingleSwitch" return="boolean"
  34815. abstract="false" native="false" synchronized="false"
  34816. static="false" final="false" visibility="public"
  34817. deprecated="not deprecated">
  34818. <doc>
  34819. <![CDATA[Predicate that indicates that the switch mapping is known to be
  34820. single-switch. The base class returns false: it assumes all mappings are
  34821. multi-rack. Subclasses may override this with methods that are more aware
  34822. of their topologies.
  34823. <p/>
  34824. This method is used when parts of Hadoop need know whether to apply
  34825. single rack vs multi-rack policies, such as during block placement.
  34826. Such algorithms behave differently if they are on multi-switch systems.
  34827. </p>
  34828. @return true if the mapping thinks that it is on a single switch]]>
  34829. </doc>
  34830. </method>
  34831. <method name="getSwitchMap" return="java.util.Map"
  34832. abstract="false" native="false" synchronized="false"
  34833. static="false" final="false" visibility="public"
  34834. deprecated="not deprecated">
  34835. <doc>
  34836. <![CDATA[Get a copy of the map (for diagnostics)
  34837. @return a clone of the map or null for none known]]>
  34838. </doc>
  34839. </method>
  34840. <method name="dumpTopology" return="java.lang.String"
  34841. abstract="false" native="false" synchronized="false"
  34842. static="false" final="false" visibility="public"
  34843. deprecated="not deprecated">
  34844. <doc>
  34845. <![CDATA[Generate a string listing the switch mapping implementation,
  34846. the mapping for every known node and the number of nodes and
  34847. unique switches known about -each entry to a separate line.
  34848. @return a string that can be presented to the ops team or used in
  34849. debug messages.]]>
  34850. </doc>
  34851. </method>
  34852. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  34853. abstract="false" native="false" synchronized="false"
  34854. static="false" final="false" visibility="protected"
  34855. deprecated="not deprecated">
  34856. </method>
  34857. <method name="isMappingSingleSwitch" return="boolean"
  34858. abstract="false" native="false" synchronized="false"
  34859. static="true" final="false" visibility="public"
  34860. deprecated="not deprecated">
  34861. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  34862. <doc>
  34863. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  34864. switch.
  34865. <p/>
  34866. This predicate simply assumes that all mappings not derived from
  34867. this class are multi-switch.
  34868. @param mapping the mapping to query
  34869. @return true if the base class says it is single switch, or the mapping
  34870. is not derived from this class.]]>
  34871. </doc>
  34872. </method>
  34873. <doc>
  34874. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  34875. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  34876. recommended, as it makes it easy for the Hadoop developers to add new methods
  34877. to this base class that are automatically picked up by all implementations.
  34878. <p/>
  34879. This class does not extend the <code>Configured</code>
  34880. base class, and should not be changed to do so, as it causes problems
  34881. for subclasses. The constructor of the <code>Configured</code> calls
  34882. the {@link #setConf(Configuration)} method, which will call into the
  34883. subclasses before they have been fully constructed.]]>
  34884. </doc>
  34885. </class>
  34886. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  34887. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  34888. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  34889. abstract="false"
  34890. static="false" final="false" visibility="public"
  34891. deprecated="not deprecated">
  34892. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  34893. static="false" final="false" visibility="public"
  34894. deprecated="not deprecated">
  34895. <doc>
  34896. <![CDATA[cache a raw DNS mapping
  34897. @param rawMapping the raw mapping to cache]]>
  34898. </doc>
  34899. </constructor>
  34900. <method name="resolve" return="java.util.List"
  34901. abstract="false" native="false" synchronized="false"
  34902. static="false" final="false" visibility="public"
  34903. deprecated="not deprecated">
  34904. <param name="names" type="java.util.List"/>
  34905. </method>
  34906. <method name="getSwitchMap" return="java.util.Map"
  34907. abstract="false" native="false" synchronized="false"
  34908. static="false" final="false" visibility="public"
  34909. deprecated="not deprecated">
  34910. <doc>
  34911. <![CDATA[Get the (host x switch) map.
  34912. @return a copy of the cached map of hosts to rack]]>
  34913. </doc>
  34914. </method>
  34915. <method name="toString" return="java.lang.String"
  34916. abstract="false" native="false" synchronized="false"
  34917. static="false" final="false" visibility="public"
  34918. deprecated="not deprecated">
  34919. </method>
  34920. <method name="isSingleSwitch" return="boolean"
  34921. abstract="false" native="false" synchronized="false"
  34922. static="false" final="false" visibility="public"
  34923. deprecated="not deprecated">
  34924. <doc>
  34925. <![CDATA[Delegate the switch topology query to the raw mapping, via
  34926. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  34927. @return true iff the raw mapper is considered single-switch.]]>
  34928. </doc>
  34929. </method>
  34930. <method name="reloadCachedMappings"
  34931. abstract="false" native="false" synchronized="false"
  34932. static="false" final="false" visibility="public"
  34933. deprecated="not deprecated">
  34934. </method>
  34935. <method name="reloadCachedMappings"
  34936. abstract="false" native="false" synchronized="false"
  34937. static="false" final="false" visibility="public"
  34938. deprecated="not deprecated">
  34939. <param name="names" type="java.util.List"/>
  34940. </method>
  34941. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  34942. transient="false" volatile="false"
  34943. static="false" final="true" visibility="protected"
  34944. deprecated="not deprecated">
  34945. <doc>
  34946. <![CDATA[The uncached mapping]]>
  34947. </doc>
  34948. </field>
  34949. <doc>
  34950. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  34951. raw DNSToSwitchMapping and stores the resolved network location in
  34952. a cache. The following calls to a resolved network location
  34953. will get its location from the cache.]]>
  34954. </doc>
  34955. </class>
  34956. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  34957. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  34958. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  34959. abstract="false"
  34960. static="false" final="false" visibility="public"
  34961. deprecated="not deprecated">
  34962. <constructor name="ConnectTimeoutException" type="java.lang.String"
  34963. static="false" final="false" visibility="public"
  34964. deprecated="not deprecated">
  34965. </constructor>
  34966. <doc>
  34967. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  34968. if it times out while connecting to the remote host.]]>
  34969. </doc>
  34970. </class>
  34971. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  34972. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  34973. <interface name="DNSToSwitchMapping" abstract="true"
  34974. static="false" final="false" visibility="public"
  34975. deprecated="not deprecated">
  34976. <method name="resolve" return="java.util.List"
  34977. abstract="true" native="false" synchronized="false"
  34978. static="false" final="false" visibility="public"
  34979. deprecated="not deprecated">
  34980. <param name="names" type="java.util.List"/>
  34981. <doc>
  34982. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  34983. switch information (network paths). One-to-one correspondence must be
  34984. maintained between the elements in the lists.
  34985. Consider an element in the argument list - x.y.com. The switch information
  34986. that is returned must be a network path of the form /foo/rack,
  34987. where / is the root, and 'foo' is the switch where 'rack' is connected.
  34988. Note the hostname/ip-address is not part of the returned path.
  34989. The network topology of the cluster would determine the number of
  34990. components in the network path.
  34991. <p/>
  34992. If a name cannot be resolved to a rack, the implementation
  34993. should return {@link NetworkTopology#DEFAULT_RACK}. This
  34994. is what the bundled implementations do, though it is not a formal requirement
  34995. @param names the list of hosts to resolve (can be empty)
  34996. @return list of resolved network paths.
  34997. If <i>names</i> is empty, the returned list is also empty]]>
  34998. </doc>
  34999. </method>
  35000. <method name="reloadCachedMappings"
  35001. abstract="true" native="false" synchronized="false"
  35002. static="false" final="false" visibility="public"
  35003. deprecated="not deprecated">
  35004. <doc>
  35005. <![CDATA[Reload all of the cached mappings.
  35006. If there is a cache, this method will clear it, so that future accesses
  35007. will get a chance to see the new data.]]>
  35008. </doc>
  35009. </method>
  35010. <method name="reloadCachedMappings"
  35011. abstract="true" native="false" synchronized="false"
  35012. static="false" final="false" visibility="public"
  35013. deprecated="not deprecated">
  35014. <param name="names" type="java.util.List"/>
  35015. <doc>
  35016. <![CDATA[Reload cached mappings on specific nodes.
  35017. If there is a cache on these nodes, this method will clear it, so that
  35018. future accesses will see updated data.]]>
  35019. </doc>
  35020. </method>
  35021. <doc>
  35022. <![CDATA[An interface that must be implemented to allow pluggable
  35023. DNS-name/IP-address to RackID resolvers.]]>
  35024. </doc>
  35025. </interface>
  35026. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  35027. <!-- start class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  35028. <class name="NetworkTopology.InvalidTopologyException" extends="java.lang.RuntimeException"
  35029. abstract="false"
  35030. static="true" final="false" visibility="public"
  35031. deprecated="not deprecated">
  35032. <constructor name="InvalidTopologyException" type="java.lang.String"
  35033. static="false" final="false" visibility="public"
  35034. deprecated="not deprecated">
  35035. </constructor>
  35036. </class>
  35037. <!-- end class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  35038. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  35039. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  35040. abstract="false"
  35041. static="false" final="false" visibility="public"
  35042. deprecated="not deprecated">
  35043. <constructor name="ScriptBasedMapping"
  35044. static="false" final="false" visibility="public"
  35045. deprecated="not deprecated">
  35046. <doc>
  35047. <![CDATA[Create an instance with the default configuration.
  35048. </p>
  35049. Calling {@link #setConf(Configuration)} will trigger a
  35050. re-evaluation of the configuration settings and so be used to
  35051. set up the mapping script.]]>
  35052. </doc>
  35053. </constructor>
  35054. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  35055. static="false" final="false" visibility="public"
  35056. deprecated="not deprecated">
  35057. <doc>
  35058. <![CDATA[Create an instance from the given raw mapping
  35059. @param rawMap raw DNSTOSwithMapping]]>
  35060. </doc>
  35061. </constructor>
  35062. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  35063. static="false" final="false" visibility="public"
  35064. deprecated="not deprecated">
  35065. <doc>
  35066. <![CDATA[Create an instance from the given configuration
  35067. @param conf configuration]]>
  35068. </doc>
  35069. </constructor>
  35070. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  35071. abstract="false" native="false" synchronized="false"
  35072. static="false" final="false" visibility="public"
  35073. deprecated="not deprecated">
  35074. </method>
  35075. <method name="toString" return="java.lang.String"
  35076. abstract="false" native="false" synchronized="false"
  35077. static="false" final="false" visibility="public"
  35078. deprecated="not deprecated">
  35079. </method>
  35080. <method name="setConf"
  35081. abstract="false" native="false" synchronized="false"
  35082. static="false" final="false" visibility="public"
  35083. deprecated="not deprecated">
  35084. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35085. <doc>
  35086. <![CDATA[{@inheritDoc}
  35087. <p/>
  35088. This will get called in the superclass constructor, so a check is needed
  35089. to ensure that the raw mapping is defined before trying to relaying a null
  35090. configuration.
  35091. @param conf]]>
  35092. </doc>
  35093. </method>
  35094. <field name="NO_SCRIPT" type="java.lang.String"
  35095. transient="false" volatile="false"
  35096. static="true" final="true" visibility="public"
  35097. deprecated="not deprecated">
  35098. <doc>
  35099. <![CDATA[Text used in the {@link #toString()} method if there is no string
  35100. {@value}]]>
  35101. </doc>
  35102. </field>
  35103. <doc>
  35104. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  35105. script configured via the
  35106. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  35107. <p/>
  35108. It contains a static class <code>RawScriptBasedMapping</code> that performs
  35109. the work: reading the configuration parameters, executing any defined
  35110. script, handling errors and such like. The outer
  35111. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  35112. queries.
  35113. <p/>
  35114. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  35115. true if and only if a script is defined.]]>
  35116. </doc>
  35117. </class>
  35118. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  35119. <!-- start class org.apache.hadoop.net.ScriptBasedMapping.RawScriptBasedMapping -->
  35120. <class name="ScriptBasedMapping.RawScriptBasedMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  35121. abstract="false"
  35122. static="true" final="false" visibility="protected"
  35123. deprecated="not deprecated">
  35124. <constructor name="RawScriptBasedMapping"
  35125. static="false" final="false" visibility="public"
  35126. deprecated="not deprecated">
  35127. <doc>
  35128. <![CDATA[Constructor. The mapping is not ready to use until
  35129. {@link #setConf(Configuration)} has been called]]>
  35130. </doc>
  35131. </constructor>
  35132. <method name="setConf"
  35133. abstract="false" native="false" synchronized="false"
  35134. static="false" final="false" visibility="public"
  35135. deprecated="not deprecated">
  35136. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35137. <doc>
  35138. <![CDATA[Set the configuration and extract the configuration parameters of interest
  35139. @param conf the new configuration]]>
  35140. </doc>
  35141. </method>
  35142. <method name="resolve" return="java.util.List"
  35143. abstract="false" native="false" synchronized="false"
  35144. static="false" final="false" visibility="public"
  35145. deprecated="not deprecated">
  35146. <param name="names" type="java.util.List"/>
  35147. </method>
  35148. <method name="runResolveCommand" return="java.lang.String"
  35149. abstract="false" native="false" synchronized="false"
  35150. static="false" final="false" visibility="protected"
  35151. deprecated="not deprecated">
  35152. <param name="args" type="java.util.List"/>
  35153. <param name="commandScriptName" type="java.lang.String"/>
  35154. <doc>
  35155. <![CDATA[Build and execute the resolution command. The command is
  35156. executed in the directory specified by the system property
  35157. "user.dir" if set; otherwise the current working directory is used
  35158. @param args a list of arguments
  35159. @return null if the number of arguments is out of range,
  35160. or the output of the command.]]>
  35161. </doc>
  35162. </method>
  35163. <method name="isSingleSwitch" return="boolean"
  35164. abstract="false" native="false" synchronized="false"
  35165. static="false" final="false" visibility="public"
  35166. deprecated="not deprecated">
  35167. <doc>
  35168. <![CDATA[Declare that the mapper is single-switched if a script was not named
  35169. in the configuration.
  35170. @return true iff there is no script]]>
  35171. </doc>
  35172. </method>
  35173. <method name="toString" return="java.lang.String"
  35174. abstract="false" native="false" synchronized="false"
  35175. static="false" final="false" visibility="public"
  35176. deprecated="not deprecated">
  35177. </method>
  35178. <method name="reloadCachedMappings"
  35179. abstract="false" native="false" synchronized="false"
  35180. static="false" final="false" visibility="public"
  35181. deprecated="not deprecated">
  35182. </method>
  35183. <method name="reloadCachedMappings"
  35184. abstract="false" native="false" synchronized="false"
  35185. static="false" final="false" visibility="public"
  35186. deprecated="not deprecated">
  35187. <param name="names" type="java.util.List"/>
  35188. </method>
  35189. <doc>
  35190. <![CDATA[This is the uncached script mapping that is fed into the cache managed
  35191. by the superclass {@link CachedDNSToSwitchMapping}]]>
  35192. </doc>
  35193. </class>
  35194. <!-- end class org.apache.hadoop.net.ScriptBasedMapping.RawScriptBasedMapping -->
  35195. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  35196. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  35197. abstract="false"
  35198. static="false" final="false" visibility="public"
  35199. deprecated="not deprecated">
  35200. <implements name="org.apache.hadoop.conf.Configurable"/>
  35201. <constructor name="SocksSocketFactory"
  35202. static="false" final="false" visibility="public"
  35203. deprecated="not deprecated">
  35204. <doc>
  35205. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  35206. </doc>
  35207. </constructor>
  35208. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  35209. static="false" final="false" visibility="public"
  35210. deprecated="not deprecated">
  35211. <doc>
  35212. <![CDATA[Constructor with a supplied Proxy
  35213. @param proxy the proxy to use to create sockets]]>
  35214. </doc>
  35215. </constructor>
  35216. <method name="createSocket" return="java.net.Socket"
  35217. abstract="false" native="false" synchronized="false"
  35218. static="false" final="false" visibility="public"
  35219. deprecated="not deprecated">
  35220. <exception name="IOException" type="java.io.IOException"/>
  35221. </method>
  35222. <method name="createSocket" return="java.net.Socket"
  35223. abstract="false" native="false" synchronized="false"
  35224. static="false" final="false" visibility="public"
  35225. deprecated="not deprecated">
  35226. <param name="addr" type="java.net.InetAddress"/>
  35227. <param name="port" type="int"/>
  35228. <exception name="IOException" type="java.io.IOException"/>
  35229. </method>
  35230. <method name="createSocket" return="java.net.Socket"
  35231. abstract="false" native="false" synchronized="false"
  35232. static="false" final="false" visibility="public"
  35233. deprecated="not deprecated">
  35234. <param name="addr" type="java.net.InetAddress"/>
  35235. <param name="port" type="int"/>
  35236. <param name="localHostAddr" type="java.net.InetAddress"/>
  35237. <param name="localPort" type="int"/>
  35238. <exception name="IOException" type="java.io.IOException"/>
  35239. </method>
  35240. <method name="createSocket" return="java.net.Socket"
  35241. abstract="false" native="false" synchronized="false"
  35242. static="false" final="false" visibility="public"
  35243. deprecated="not deprecated">
  35244. <param name="host" type="java.lang.String"/>
  35245. <param name="port" type="int"/>
  35246. <exception name="IOException" type="java.io.IOException"/>
  35247. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35248. </method>
  35249. <method name="createSocket" return="java.net.Socket"
  35250. abstract="false" native="false" synchronized="false"
  35251. static="false" final="false" visibility="public"
  35252. deprecated="not deprecated">
  35253. <param name="host" type="java.lang.String"/>
  35254. <param name="port" type="int"/>
  35255. <param name="localHostAddr" type="java.net.InetAddress"/>
  35256. <param name="localPort" type="int"/>
  35257. <exception name="IOException" type="java.io.IOException"/>
  35258. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35259. </method>
  35260. <method name="hashCode" return="int"
  35261. abstract="false" native="false" synchronized="false"
  35262. static="false" final="false" visibility="public"
  35263. deprecated="not deprecated">
  35264. </method>
  35265. <method name="equals" return="boolean"
  35266. abstract="false" native="false" synchronized="false"
  35267. static="false" final="false" visibility="public"
  35268. deprecated="not deprecated">
  35269. <param name="obj" type="java.lang.Object"/>
  35270. </method>
  35271. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  35272. abstract="false" native="false" synchronized="false"
  35273. static="false" final="false" visibility="public"
  35274. deprecated="not deprecated">
  35275. </method>
  35276. <method name="setConf"
  35277. abstract="false" native="false" synchronized="false"
  35278. static="false" final="false" visibility="public"
  35279. deprecated="not deprecated">
  35280. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35281. </method>
  35282. <doc>
  35283. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  35284. </doc>
  35285. </class>
  35286. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  35287. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  35288. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  35289. abstract="false"
  35290. static="false" final="false" visibility="public"
  35291. deprecated="not deprecated">
  35292. <constructor name="StandardSocketFactory"
  35293. static="false" final="false" visibility="public"
  35294. deprecated="not deprecated">
  35295. <doc>
  35296. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  35297. </doc>
  35298. </constructor>
  35299. <method name="createSocket" return="java.net.Socket"
  35300. abstract="false" native="false" synchronized="false"
  35301. static="false" final="false" visibility="public"
  35302. deprecated="not deprecated">
  35303. <exception name="IOException" type="java.io.IOException"/>
  35304. </method>
  35305. <method name="createSocket" return="java.net.Socket"
  35306. abstract="false" native="false" synchronized="false"
  35307. static="false" final="false" visibility="public"
  35308. deprecated="not deprecated">
  35309. <param name="addr" type="java.net.InetAddress"/>
  35310. <param name="port" type="int"/>
  35311. <exception name="IOException" type="java.io.IOException"/>
  35312. </method>
  35313. <method name="createSocket" return="java.net.Socket"
  35314. abstract="false" native="false" synchronized="false"
  35315. static="false" final="false" visibility="public"
  35316. deprecated="not deprecated">
  35317. <param name="addr" type="java.net.InetAddress"/>
  35318. <param name="port" type="int"/>
  35319. <param name="localHostAddr" type="java.net.InetAddress"/>
  35320. <param name="localPort" type="int"/>
  35321. <exception name="IOException" type="java.io.IOException"/>
  35322. </method>
  35323. <method name="createSocket" return="java.net.Socket"
  35324. abstract="false" native="false" synchronized="false"
  35325. static="false" final="false" visibility="public"
  35326. deprecated="not deprecated">
  35327. <param name="host" type="java.lang.String"/>
  35328. <param name="port" type="int"/>
  35329. <exception name="IOException" type="java.io.IOException"/>
  35330. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35331. </method>
  35332. <method name="createSocket" return="java.net.Socket"
  35333. abstract="false" native="false" synchronized="false"
  35334. static="false" final="false" visibility="public"
  35335. deprecated="not deprecated">
  35336. <param name="host" type="java.lang.String"/>
  35337. <param name="port" type="int"/>
  35338. <param name="localHostAddr" type="java.net.InetAddress"/>
  35339. <param name="localPort" type="int"/>
  35340. <exception name="IOException" type="java.io.IOException"/>
  35341. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35342. </method>
  35343. <method name="equals" return="boolean"
  35344. abstract="false" native="false" synchronized="false"
  35345. static="false" final="false" visibility="public"
  35346. deprecated="not deprecated">
  35347. <param name="obj" type="java.lang.Object"/>
  35348. </method>
  35349. <method name="hashCode" return="int"
  35350. abstract="false" native="false" synchronized="false"
  35351. static="false" final="false" visibility="public"
  35352. deprecated="not deprecated">
  35353. </method>
  35354. <doc>
  35355. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  35356. </doc>
  35357. </class>
  35358. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  35359. <!-- start class org.apache.hadoop.net.TableMapping -->
  35360. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  35361. abstract="false"
  35362. static="false" final="false" visibility="public"
  35363. deprecated="not deprecated">
  35364. <constructor name="TableMapping"
  35365. static="false" final="false" visibility="public"
  35366. deprecated="not deprecated">
  35367. </constructor>
  35368. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  35369. abstract="false" native="false" synchronized="false"
  35370. static="false" final="false" visibility="public"
  35371. deprecated="not deprecated">
  35372. </method>
  35373. <method name="setConf"
  35374. abstract="false" native="false" synchronized="false"
  35375. static="false" final="false" visibility="public"
  35376. deprecated="not deprecated">
  35377. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35378. </method>
  35379. <method name="reloadCachedMappings"
  35380. abstract="false" native="false" synchronized="false"
  35381. static="false" final="false" visibility="public"
  35382. deprecated="not deprecated">
  35383. </method>
  35384. <doc>
  35385. <![CDATA[<p>
  35386. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  35387. file. The columns are separated by whitespace. The first column is a DNS or
  35388. IP address and the second column specifies the rack where the address maps.
  35389. </p>
  35390. <p>
  35391. This class uses the configuration parameter {@code
  35392. net.topology.table.file.name} to locate the mapping file.
  35393. </p>
  35394. <p>
  35395. Calls to {@link #resolve(List)} will look up the address as defined in the
  35396. mapping file. If no entry corresponding to the address is found, the value
  35397. {@code /default-rack} is returned.
  35398. </p>]]>
  35399. </doc>
  35400. </class>
  35401. <!-- end class org.apache.hadoop.net.TableMapping -->
  35402. <doc>
  35403. <![CDATA[Network-related classes.]]>
  35404. </doc>
  35405. </package>
  35406. <package name="org.apache.hadoop.net.unix">
  35407. <!-- start interface org.apache.hadoop.net.unix.DomainSocketWatcher.Handler -->
  35408. <interface name="DomainSocketWatcher.Handler" abstract="true"
  35409. static="true" final="false" visibility="public"
  35410. deprecated="not deprecated">
  35411. <method name="handle" return="boolean"
  35412. abstract="true" native="false" synchronized="false"
  35413. static="false" final="false" visibility="public"
  35414. deprecated="not deprecated">
  35415. <param name="sock" type="org.apache.hadoop.net.unix.DomainSocket"/>
  35416. <doc>
  35417. <![CDATA[Handles an event on a socket. An event may be the socket becoming
  35418. readable, or the remote end being closed.
  35419. @param sock The socket that the event occurred on.
  35420. @return Whether we should close the socket.]]>
  35421. </doc>
  35422. </method>
  35423. </interface>
  35424. <!-- end interface org.apache.hadoop.net.unix.DomainSocketWatcher.Handler -->
  35425. </package>
  35426. <package name="org.apache.hadoop.record">
  35427. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  35428. <class name="BinaryRecordInput" extends="java.lang.Object"
  35429. abstract="false"
  35430. static="false" final="false" visibility="public"
  35431. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35432. <implements name="org.apache.hadoop.record.RecordInput"/>
  35433. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  35434. static="false" final="false" visibility="public"
  35435. deprecated="not deprecated">
  35436. <doc>
  35437. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  35438. </doc>
  35439. </constructor>
  35440. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  35441. static="false" final="false" visibility="public"
  35442. deprecated="not deprecated">
  35443. <doc>
  35444. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  35445. </doc>
  35446. </constructor>
  35447. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  35448. abstract="false" native="false" synchronized="false"
  35449. static="true" final="false" visibility="public"
  35450. deprecated="not deprecated">
  35451. <param name="inp" type="java.io.DataInput"/>
  35452. <doc>
  35453. <![CDATA[Get a thread-local record input for the supplied DataInput.
  35454. @param inp data input stream
  35455. @return binary record input corresponding to the supplied DataInput.]]>
  35456. </doc>
  35457. </method>
  35458. <method name="readByte" return="byte"
  35459. abstract="false" native="false" synchronized="false"
  35460. static="false" final="false" visibility="public"
  35461. deprecated="not deprecated">
  35462. <param name="tag" type="java.lang.String"/>
  35463. <exception name="IOException" type="java.io.IOException"/>
  35464. </method>
  35465. <method name="readBool" return="boolean"
  35466. abstract="false" native="false" synchronized="false"
  35467. static="false" final="false" visibility="public"
  35468. deprecated="not deprecated">
  35469. <param name="tag" type="java.lang.String"/>
  35470. <exception name="IOException" type="java.io.IOException"/>
  35471. </method>
  35472. <method name="readInt" return="int"
  35473. abstract="false" native="false" synchronized="false"
  35474. static="false" final="false" visibility="public"
  35475. deprecated="not deprecated">
  35476. <param name="tag" type="java.lang.String"/>
  35477. <exception name="IOException" type="java.io.IOException"/>
  35478. </method>
  35479. <method name="readLong" return="long"
  35480. abstract="false" native="false" synchronized="false"
  35481. static="false" final="false" visibility="public"
  35482. deprecated="not deprecated">
  35483. <param name="tag" type="java.lang.String"/>
  35484. <exception name="IOException" type="java.io.IOException"/>
  35485. </method>
  35486. <method name="readFloat" return="float"
  35487. abstract="false" native="false" synchronized="false"
  35488. static="false" final="false" visibility="public"
  35489. deprecated="not deprecated">
  35490. <param name="tag" type="java.lang.String"/>
  35491. <exception name="IOException" type="java.io.IOException"/>
  35492. </method>
  35493. <method name="readDouble" return="double"
  35494. abstract="false" native="false" synchronized="false"
  35495. static="false" final="false" visibility="public"
  35496. deprecated="not deprecated">
  35497. <param name="tag" type="java.lang.String"/>
  35498. <exception name="IOException" type="java.io.IOException"/>
  35499. </method>
  35500. <method name="readString" return="java.lang.String"
  35501. abstract="false" native="false" synchronized="false"
  35502. static="false" final="false" visibility="public"
  35503. deprecated="not deprecated">
  35504. <param name="tag" type="java.lang.String"/>
  35505. <exception name="IOException" type="java.io.IOException"/>
  35506. </method>
  35507. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  35508. abstract="false" native="false" synchronized="false"
  35509. static="false" final="false" visibility="public"
  35510. deprecated="not deprecated">
  35511. <param name="tag" type="java.lang.String"/>
  35512. <exception name="IOException" type="java.io.IOException"/>
  35513. </method>
  35514. <method name="startRecord"
  35515. abstract="false" native="false" synchronized="false"
  35516. static="false" final="false" visibility="public"
  35517. deprecated="not deprecated">
  35518. <param name="tag" type="java.lang.String"/>
  35519. <exception name="IOException" type="java.io.IOException"/>
  35520. </method>
  35521. <method name="endRecord"
  35522. abstract="false" native="false" synchronized="false"
  35523. static="false" final="false" visibility="public"
  35524. deprecated="not deprecated">
  35525. <param name="tag" type="java.lang.String"/>
  35526. <exception name="IOException" type="java.io.IOException"/>
  35527. </method>
  35528. <method name="startVector" return="org.apache.hadoop.record.Index"
  35529. abstract="false" native="false" synchronized="false"
  35530. static="false" final="false" visibility="public"
  35531. deprecated="not deprecated">
  35532. <param name="tag" type="java.lang.String"/>
  35533. <exception name="IOException" type="java.io.IOException"/>
  35534. </method>
  35535. <method name="endVector"
  35536. abstract="false" native="false" synchronized="false"
  35537. static="false" final="false" visibility="public"
  35538. deprecated="not deprecated">
  35539. <param name="tag" type="java.lang.String"/>
  35540. <exception name="IOException" type="java.io.IOException"/>
  35541. </method>
  35542. <method name="startMap" return="org.apache.hadoop.record.Index"
  35543. abstract="false" native="false" synchronized="false"
  35544. static="false" final="false" visibility="public"
  35545. deprecated="not deprecated">
  35546. <param name="tag" type="java.lang.String"/>
  35547. <exception name="IOException" type="java.io.IOException"/>
  35548. </method>
  35549. <method name="endMap"
  35550. abstract="false" native="false" synchronized="false"
  35551. static="false" final="false" visibility="public"
  35552. deprecated="not deprecated">
  35553. <param name="tag" type="java.lang.String"/>
  35554. <exception name="IOException" type="java.io.IOException"/>
  35555. </method>
  35556. <doc>
  35557. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35558. </doc>
  35559. </class>
  35560. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  35561. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  35562. <class name="BinaryRecordOutput" extends="java.lang.Object"
  35563. abstract="false"
  35564. static="false" final="false" visibility="public"
  35565. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35566. <implements name="org.apache.hadoop.record.RecordOutput"/>
  35567. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  35568. static="false" final="false" visibility="public"
  35569. deprecated="not deprecated">
  35570. <doc>
  35571. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  35572. </doc>
  35573. </constructor>
  35574. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  35575. static="false" final="false" visibility="public"
  35576. deprecated="not deprecated">
  35577. <doc>
  35578. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  35579. </doc>
  35580. </constructor>
  35581. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  35582. abstract="false" native="false" synchronized="false"
  35583. static="true" final="false" visibility="public"
  35584. deprecated="not deprecated">
  35585. <param name="out" type="java.io.DataOutput"/>
  35586. <doc>
  35587. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  35588. @param out data output stream
  35589. @return binary record output corresponding to the supplied DataOutput.]]>
  35590. </doc>
  35591. </method>
  35592. <method name="writeByte"
  35593. abstract="false" native="false" synchronized="false"
  35594. static="false" final="false" visibility="public"
  35595. deprecated="not deprecated">
  35596. <param name="b" type="byte"/>
  35597. <param name="tag" type="java.lang.String"/>
  35598. <exception name="IOException" type="java.io.IOException"/>
  35599. </method>
  35600. <method name="writeBool"
  35601. abstract="false" native="false" synchronized="false"
  35602. static="false" final="false" visibility="public"
  35603. deprecated="not deprecated">
  35604. <param name="b" type="boolean"/>
  35605. <param name="tag" type="java.lang.String"/>
  35606. <exception name="IOException" type="java.io.IOException"/>
  35607. </method>
  35608. <method name="writeInt"
  35609. abstract="false" native="false" synchronized="false"
  35610. static="false" final="false" visibility="public"
  35611. deprecated="not deprecated">
  35612. <param name="i" type="int"/>
  35613. <param name="tag" type="java.lang.String"/>
  35614. <exception name="IOException" type="java.io.IOException"/>
  35615. </method>
  35616. <method name="writeLong"
  35617. abstract="false" native="false" synchronized="false"
  35618. static="false" final="false" visibility="public"
  35619. deprecated="not deprecated">
  35620. <param name="l" type="long"/>
  35621. <param name="tag" type="java.lang.String"/>
  35622. <exception name="IOException" type="java.io.IOException"/>
  35623. </method>
  35624. <method name="writeFloat"
  35625. abstract="false" native="false" synchronized="false"
  35626. static="false" final="false" visibility="public"
  35627. deprecated="not deprecated">
  35628. <param name="f" type="float"/>
  35629. <param name="tag" type="java.lang.String"/>
  35630. <exception name="IOException" type="java.io.IOException"/>
  35631. </method>
  35632. <method name="writeDouble"
  35633. abstract="false" native="false" synchronized="false"
  35634. static="false" final="false" visibility="public"
  35635. deprecated="not deprecated">
  35636. <param name="d" type="double"/>
  35637. <param name="tag" type="java.lang.String"/>
  35638. <exception name="IOException" type="java.io.IOException"/>
  35639. </method>
  35640. <method name="writeString"
  35641. abstract="false" native="false" synchronized="false"
  35642. static="false" final="false" visibility="public"
  35643. deprecated="not deprecated">
  35644. <param name="s" type="java.lang.String"/>
  35645. <param name="tag" type="java.lang.String"/>
  35646. <exception name="IOException" type="java.io.IOException"/>
  35647. </method>
  35648. <method name="writeBuffer"
  35649. abstract="false" native="false" synchronized="false"
  35650. static="false" final="false" visibility="public"
  35651. deprecated="not deprecated">
  35652. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  35653. <param name="tag" type="java.lang.String"/>
  35654. <exception name="IOException" type="java.io.IOException"/>
  35655. </method>
  35656. <method name="startRecord"
  35657. abstract="false" native="false" synchronized="false"
  35658. static="false" final="false" visibility="public"
  35659. deprecated="not deprecated">
  35660. <param name="r" type="org.apache.hadoop.record.Record"/>
  35661. <param name="tag" type="java.lang.String"/>
  35662. <exception name="IOException" type="java.io.IOException"/>
  35663. </method>
  35664. <method name="endRecord"
  35665. abstract="false" native="false" synchronized="false"
  35666. static="false" final="false" visibility="public"
  35667. deprecated="not deprecated">
  35668. <param name="r" type="org.apache.hadoop.record.Record"/>
  35669. <param name="tag" type="java.lang.String"/>
  35670. <exception name="IOException" type="java.io.IOException"/>
  35671. </method>
  35672. <method name="startVector"
  35673. abstract="false" native="false" synchronized="false"
  35674. static="false" final="false" visibility="public"
  35675. deprecated="not deprecated">
  35676. <param name="v" type="java.util.ArrayList"/>
  35677. <param name="tag" type="java.lang.String"/>
  35678. <exception name="IOException" type="java.io.IOException"/>
  35679. </method>
  35680. <method name="endVector"
  35681. abstract="false" native="false" synchronized="false"
  35682. static="false" final="false" visibility="public"
  35683. deprecated="not deprecated">
  35684. <param name="v" type="java.util.ArrayList"/>
  35685. <param name="tag" type="java.lang.String"/>
  35686. <exception name="IOException" type="java.io.IOException"/>
  35687. </method>
  35688. <method name="startMap"
  35689. abstract="false" native="false" synchronized="false"
  35690. static="false" final="false" visibility="public"
  35691. deprecated="not deprecated">
  35692. <param name="v" type="java.util.TreeMap"/>
  35693. <param name="tag" type="java.lang.String"/>
  35694. <exception name="IOException" type="java.io.IOException"/>
  35695. </method>
  35696. <method name="endMap"
  35697. abstract="false" native="false" synchronized="false"
  35698. static="false" final="false" visibility="public"
  35699. deprecated="not deprecated">
  35700. <param name="v" type="java.util.TreeMap"/>
  35701. <param name="tag" type="java.lang.String"/>
  35702. <exception name="IOException" type="java.io.IOException"/>
  35703. </method>
  35704. <doc>
  35705. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  35706. </doc>
  35707. </class>
  35708. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  35709. <!-- start class org.apache.hadoop.record.Buffer -->
  35710. <class name="Buffer" extends="java.lang.Object"
  35711. abstract="false"
  35712. static="false" final="false" visibility="public"
  35713. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  35714. <implements name="java.lang.Comparable"/>
  35715. <implements name="java.lang.Cloneable"/>
  35716. <constructor name="Buffer"
  35717. static="false" final="false" visibility="public"
  35718. deprecated="not deprecated">
  35719. <doc>
  35720. <![CDATA[Create a zero-count sequence.]]>
  35721. </doc>
  35722. </constructor>
  35723. <constructor name="Buffer" type="byte[]"
  35724. static="false" final="false" visibility="public"
  35725. deprecated="not deprecated">
  35726. <doc>
  35727. <![CDATA[Create a Buffer using the byte array as the initial value.
  35728. @param bytes This array becomes the backing storage for the object.]]>
  35729. </doc>
  35730. </constructor>
  35731. <constructor name="Buffer" type="byte[], int, int"
  35732. static="false" final="false" visibility="public"
  35733. deprecated="not deprecated">
  35734. <doc>
  35735. <![CDATA[Create a Buffer using the byte range as the initial value.
  35736. @param bytes Copy of this array becomes the backing storage for the object.
  35737. @param offset offset into byte array
  35738. @param length length of data]]>
  35739. </doc>
  35740. </constructor>
  35741. <method name="set"
  35742. abstract="false" native="false" synchronized="false"
  35743. static="false" final="false" visibility="public"
  35744. deprecated="not deprecated">
  35745. <param name="bytes" type="byte[]"/>
  35746. <doc>
  35747. <![CDATA[Use the specified bytes array as underlying sequence.
  35748. @param bytes byte sequence]]>
  35749. </doc>
  35750. </method>
  35751. <method name="copy"
  35752. abstract="false" native="false" synchronized="false"
  35753. static="false" final="true" visibility="public"
  35754. deprecated="not deprecated">
  35755. <param name="bytes" type="byte[]"/>
  35756. <param name="offset" type="int"/>
  35757. <param name="length" type="int"/>
  35758. <doc>
  35759. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  35760. @param bytes byte array to be assigned
  35761. @param offset offset into byte array
  35762. @param length length of data]]>
  35763. </doc>
  35764. </method>
  35765. <method name="get" return="byte[]"
  35766. abstract="false" native="false" synchronized="false"
  35767. static="false" final="false" visibility="public"
  35768. deprecated="not deprecated">
  35769. <doc>
  35770. <![CDATA[Get the data from the Buffer.
  35771. @return The data is only valid between 0 and getCount() - 1.]]>
  35772. </doc>
  35773. </method>
  35774. <method name="getCount" return="int"
  35775. abstract="false" native="false" synchronized="false"
  35776. static="false" final="false" visibility="public"
  35777. deprecated="not deprecated">
  35778. <doc>
  35779. <![CDATA[Get the current count of the buffer.]]>
  35780. </doc>
  35781. </method>
  35782. <method name="getCapacity" return="int"
  35783. abstract="false" native="false" synchronized="false"
  35784. static="false" final="false" visibility="public"
  35785. deprecated="not deprecated">
  35786. <doc>
  35787. <![CDATA[Get the capacity, which is the maximum count that could handled without
  35788. resizing the backing storage.
  35789. @return The number of bytes]]>
  35790. </doc>
  35791. </method>
  35792. <method name="setCapacity"
  35793. abstract="false" native="false" synchronized="false"
  35794. static="false" final="false" visibility="public"
  35795. deprecated="not deprecated">
  35796. <param name="newCapacity" type="int"/>
  35797. <doc>
  35798. <![CDATA[Change the capacity of the backing storage.
  35799. The data is preserved if newCapacity {@literal >=} getCount().
  35800. @param newCapacity The new capacity in bytes.]]>
  35801. </doc>
  35802. </method>
  35803. <method name="reset"
  35804. abstract="false" native="false" synchronized="false"
  35805. static="false" final="false" visibility="public"
  35806. deprecated="not deprecated">
  35807. <doc>
  35808. <![CDATA[Reset the buffer to 0 size]]>
  35809. </doc>
  35810. </method>
  35811. <method name="truncate"
  35812. abstract="false" native="false" synchronized="false"
  35813. static="false" final="false" visibility="public"
  35814. deprecated="not deprecated">
  35815. <doc>
  35816. <![CDATA[Change the capacity of the backing store to be the same as the current
  35817. count of buffer.]]>
  35818. </doc>
  35819. </method>
  35820. <method name="append"
  35821. abstract="false" native="false" synchronized="false"
  35822. static="false" final="false" visibility="public"
  35823. deprecated="not deprecated">
  35824. <param name="bytes" type="byte[]"/>
  35825. <param name="offset" type="int"/>
  35826. <param name="length" type="int"/>
  35827. <doc>
  35828. <![CDATA[Append specified bytes to the buffer.
  35829. @param bytes byte array to be appended
  35830. @param offset offset into byte array
  35831. @param length length of data]]>
  35832. </doc>
  35833. </method>
  35834. <method name="append"
  35835. abstract="false" native="false" synchronized="false"
  35836. static="false" final="false" visibility="public"
  35837. deprecated="not deprecated">
  35838. <param name="bytes" type="byte[]"/>
  35839. <doc>
  35840. <![CDATA[Append specified bytes to the buffer
  35841. @param bytes byte array to be appended]]>
  35842. </doc>
  35843. </method>
  35844. <method name="hashCode" return="int"
  35845. abstract="false" native="false" synchronized="false"
  35846. static="false" final="false" visibility="public"
  35847. deprecated="not deprecated">
  35848. </method>
  35849. <method name="compareTo" return="int"
  35850. abstract="false" native="false" synchronized="false"
  35851. static="false" final="false" visibility="public"
  35852. deprecated="not deprecated">
  35853. <param name="other" type="java.lang.Object"/>
  35854. <doc>
  35855. <![CDATA[Define the sort order of the Buffer.
  35856. @param other The other buffer
  35857. @return Positive if this is bigger than other, 0 if they are equal, and
  35858. negative if this is smaller than other.]]>
  35859. </doc>
  35860. </method>
  35861. <method name="equals" return="boolean"
  35862. abstract="false" native="false" synchronized="false"
  35863. static="false" final="false" visibility="public"
  35864. deprecated="not deprecated">
  35865. <param name="other" type="java.lang.Object"/>
  35866. </method>
  35867. <method name="toString" return="java.lang.String"
  35868. abstract="false" native="false" synchronized="false"
  35869. static="false" final="false" visibility="public"
  35870. deprecated="not deprecated">
  35871. </method>
  35872. <method name="toString" return="java.lang.String"
  35873. abstract="false" native="false" synchronized="false"
  35874. static="false" final="false" visibility="public"
  35875. deprecated="not deprecated">
  35876. <param name="charsetName" type="java.lang.String"/>
  35877. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  35878. <doc>
  35879. <![CDATA[Convert the byte buffer to a string an specific character encoding
  35880. @param charsetName Valid Java Character Set Name]]>
  35881. </doc>
  35882. </method>
  35883. <method name="clone" return="java.lang.Object"
  35884. abstract="false" native="false" synchronized="false"
  35885. static="false" final="false" visibility="public"
  35886. deprecated="not deprecated">
  35887. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  35888. </method>
  35889. <doc>
  35890. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  35891. It is resizable and distinguishes between the count of the sequence and
  35892. the current capacity.
  35893. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  35894. </doc>
  35895. </class>
  35896. <!-- end class org.apache.hadoop.record.Buffer -->
  35897. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  35898. <class name="CsvRecordInput" extends="java.lang.Object"
  35899. abstract="false"
  35900. static="false" final="false" visibility="public"
  35901. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  35902. <implements name="org.apache.hadoop.record.RecordInput"/>
  35903. <constructor name="CsvRecordInput" type="java.io.InputStream"
  35904. static="false" final="false" visibility="public"
  35905. deprecated="not deprecated">
  35906. <doc>
  35907. <![CDATA[Creates a new instance of CsvRecordInput]]>
  35908. </doc>
  35909. </constructor>
  35910. <method name="readByte" return="byte"
  35911. abstract="false" native="false" synchronized="false"
  35912. static="false" final="false" visibility="public"
  35913. deprecated="not deprecated">
  35914. <param name="tag" type="java.lang.String"/>
  35915. <exception name="IOException" type="java.io.IOException"/>
  35916. </method>
  35917. <method name="readBool" return="boolean"
  35918. abstract="false" native="false" synchronized="false"
  35919. static="false" final="false" visibility="public"
  35920. deprecated="not deprecated">
  35921. <param name="tag" type="java.lang.String"/>
  35922. <exception name="IOException" type="java.io.IOException"/>
  35923. </method>
  35924. <method name="readInt" return="int"
  35925. abstract="false" native="false" synchronized="false"
  35926. static="false" final="false" visibility="public"
  35927. deprecated="not deprecated">
  35928. <param name="tag" type="java.lang.String"/>
  35929. <exception name="IOException" type="java.io.IOException"/>
  35930. </method>
  35931. <method name="readLong" return="long"
  35932. abstract="false" native="false" synchronized="false"
  35933. static="false" final="false" visibility="public"
  35934. deprecated="not deprecated">
  35935. <param name="tag" type="java.lang.String"/>
  35936. <exception name="IOException" type="java.io.IOException"/>
  35937. </method>
  35938. <method name="readFloat" return="float"
  35939. abstract="false" native="false" synchronized="false"
  35940. static="false" final="false" visibility="public"
  35941. deprecated="not deprecated">
  35942. <param name="tag" type="java.lang.String"/>
  35943. <exception name="IOException" type="java.io.IOException"/>
  35944. </method>
  35945. <method name="readDouble" return="double"
  35946. abstract="false" native="false" synchronized="false"
  35947. static="false" final="false" visibility="public"
  35948. deprecated="not deprecated">
  35949. <param name="tag" type="java.lang.String"/>
  35950. <exception name="IOException" type="java.io.IOException"/>
  35951. </method>
  35952. <method name="readString" return="java.lang.String"
  35953. abstract="false" native="false" synchronized="false"
  35954. static="false" final="false" visibility="public"
  35955. deprecated="not deprecated">
  35956. <param name="tag" type="java.lang.String"/>
  35957. <exception name="IOException" type="java.io.IOException"/>
  35958. </method>
  35959. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  35960. abstract="false" native="false" synchronized="false"
  35961. static="false" final="false" visibility="public"
  35962. deprecated="not deprecated">
  35963. <param name="tag" type="java.lang.String"/>
  35964. <exception name="IOException" type="java.io.IOException"/>
  35965. </method>
  35966. <method name="startRecord"
  35967. abstract="false" native="false" synchronized="false"
  35968. static="false" final="false" visibility="public"
  35969. deprecated="not deprecated">
  35970. <param name="tag" type="java.lang.String"/>
  35971. <exception name="IOException" type="java.io.IOException"/>
  35972. </method>
  35973. <method name="endRecord"
  35974. abstract="false" native="false" synchronized="false"
  35975. static="false" final="false" visibility="public"
  35976. deprecated="not deprecated">
  35977. <param name="tag" type="java.lang.String"/>
  35978. <exception name="IOException" type="java.io.IOException"/>
  35979. </method>
  35980. <method name="startVector" return="org.apache.hadoop.record.Index"
  35981. abstract="false" native="false" synchronized="false"
  35982. static="false" final="false" visibility="public"
  35983. deprecated="not deprecated">
  35984. <param name="tag" type="java.lang.String"/>
  35985. <exception name="IOException" type="java.io.IOException"/>
  35986. </method>
  35987. <method name="endVector"
  35988. abstract="false" native="false" synchronized="false"
  35989. static="false" final="false" visibility="public"
  35990. deprecated="not deprecated">
  35991. <param name="tag" type="java.lang.String"/>
  35992. <exception name="IOException" type="java.io.IOException"/>
  35993. </method>
  35994. <method name="startMap" return="org.apache.hadoop.record.Index"
  35995. abstract="false" native="false" synchronized="false"
  35996. static="false" final="false" visibility="public"
  35997. deprecated="not deprecated">
  35998. <param name="tag" type="java.lang.String"/>
  35999. <exception name="IOException" type="java.io.IOException"/>
  36000. </method>
  36001. <method name="endMap"
  36002. abstract="false" native="false" synchronized="false"
  36003. static="false" final="false" visibility="public"
  36004. deprecated="not deprecated">
  36005. <param name="tag" type="java.lang.String"/>
  36006. <exception name="IOException" type="java.io.IOException"/>
  36007. </method>
  36008. <doc>
  36009. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36010. </doc>
  36011. </class>
  36012. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  36013. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  36014. <class name="CsvRecordOutput" extends="java.lang.Object"
  36015. abstract="false"
  36016. static="false" final="false" visibility="public"
  36017. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36018. <implements name="org.apache.hadoop.record.RecordOutput"/>
  36019. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  36020. static="false" final="false" visibility="public"
  36021. deprecated="not deprecated">
  36022. <doc>
  36023. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  36024. </doc>
  36025. </constructor>
  36026. <method name="writeByte"
  36027. abstract="false" native="false" synchronized="false"
  36028. static="false" final="false" visibility="public"
  36029. deprecated="not deprecated">
  36030. <param name="b" type="byte"/>
  36031. <param name="tag" type="java.lang.String"/>
  36032. <exception name="IOException" type="java.io.IOException"/>
  36033. </method>
  36034. <method name="writeBool"
  36035. abstract="false" native="false" synchronized="false"
  36036. static="false" final="false" visibility="public"
  36037. deprecated="not deprecated">
  36038. <param name="b" type="boolean"/>
  36039. <param name="tag" type="java.lang.String"/>
  36040. <exception name="IOException" type="java.io.IOException"/>
  36041. </method>
  36042. <method name="writeInt"
  36043. abstract="false" native="false" synchronized="false"
  36044. static="false" final="false" visibility="public"
  36045. deprecated="not deprecated">
  36046. <param name="i" type="int"/>
  36047. <param name="tag" type="java.lang.String"/>
  36048. <exception name="IOException" type="java.io.IOException"/>
  36049. </method>
  36050. <method name="writeLong"
  36051. abstract="false" native="false" synchronized="false"
  36052. static="false" final="false" visibility="public"
  36053. deprecated="not deprecated">
  36054. <param name="l" type="long"/>
  36055. <param name="tag" type="java.lang.String"/>
  36056. <exception name="IOException" type="java.io.IOException"/>
  36057. </method>
  36058. <method name="writeFloat"
  36059. abstract="false" native="false" synchronized="false"
  36060. static="false" final="false" visibility="public"
  36061. deprecated="not deprecated">
  36062. <param name="f" type="float"/>
  36063. <param name="tag" type="java.lang.String"/>
  36064. <exception name="IOException" type="java.io.IOException"/>
  36065. </method>
  36066. <method name="writeDouble"
  36067. abstract="false" native="false" synchronized="false"
  36068. static="false" final="false" visibility="public"
  36069. deprecated="not deprecated">
  36070. <param name="d" type="double"/>
  36071. <param name="tag" type="java.lang.String"/>
  36072. <exception name="IOException" type="java.io.IOException"/>
  36073. </method>
  36074. <method name="writeString"
  36075. abstract="false" native="false" synchronized="false"
  36076. static="false" final="false" visibility="public"
  36077. deprecated="not deprecated">
  36078. <param name="s" type="java.lang.String"/>
  36079. <param name="tag" type="java.lang.String"/>
  36080. <exception name="IOException" type="java.io.IOException"/>
  36081. </method>
  36082. <method name="writeBuffer"
  36083. abstract="false" native="false" synchronized="false"
  36084. static="false" final="false" visibility="public"
  36085. deprecated="not deprecated">
  36086. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  36087. <param name="tag" type="java.lang.String"/>
  36088. <exception name="IOException" type="java.io.IOException"/>
  36089. </method>
  36090. <method name="startRecord"
  36091. abstract="false" native="false" synchronized="false"
  36092. static="false" final="false" visibility="public"
  36093. deprecated="not deprecated">
  36094. <param name="r" type="org.apache.hadoop.record.Record"/>
  36095. <param name="tag" type="java.lang.String"/>
  36096. <exception name="IOException" type="java.io.IOException"/>
  36097. </method>
  36098. <method name="endRecord"
  36099. abstract="false" native="false" synchronized="false"
  36100. static="false" final="false" visibility="public"
  36101. deprecated="not deprecated">
  36102. <param name="r" type="org.apache.hadoop.record.Record"/>
  36103. <param name="tag" type="java.lang.String"/>
  36104. <exception name="IOException" type="java.io.IOException"/>
  36105. </method>
  36106. <method name="startVector"
  36107. abstract="false" native="false" synchronized="false"
  36108. static="false" final="false" visibility="public"
  36109. deprecated="not deprecated">
  36110. <param name="v" type="java.util.ArrayList"/>
  36111. <param name="tag" type="java.lang.String"/>
  36112. <exception name="IOException" type="java.io.IOException"/>
  36113. </method>
  36114. <method name="endVector"
  36115. abstract="false" native="false" synchronized="false"
  36116. static="false" final="false" visibility="public"
  36117. deprecated="not deprecated">
  36118. <param name="v" type="java.util.ArrayList"/>
  36119. <param name="tag" type="java.lang.String"/>
  36120. <exception name="IOException" type="java.io.IOException"/>
  36121. </method>
  36122. <method name="startMap"
  36123. abstract="false" native="false" synchronized="false"
  36124. static="false" final="false" visibility="public"
  36125. deprecated="not deprecated">
  36126. <param name="v" type="java.util.TreeMap"/>
  36127. <param name="tag" type="java.lang.String"/>
  36128. <exception name="IOException" type="java.io.IOException"/>
  36129. </method>
  36130. <method name="endMap"
  36131. abstract="false" native="false" synchronized="false"
  36132. static="false" final="false" visibility="public"
  36133. deprecated="not deprecated">
  36134. <param name="v" type="java.util.TreeMap"/>
  36135. <param name="tag" type="java.lang.String"/>
  36136. <exception name="IOException" type="java.io.IOException"/>
  36137. </method>
  36138. <doc>
  36139. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36140. </doc>
  36141. </class>
  36142. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  36143. <!-- start interface org.apache.hadoop.record.Index -->
  36144. <interface name="Index" abstract="true"
  36145. static="false" final="false" visibility="public"
  36146. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36147. <method name="done" return="boolean"
  36148. abstract="true" native="false" synchronized="false"
  36149. static="false" final="false" visibility="public"
  36150. deprecated="not deprecated">
  36151. </method>
  36152. <method name="incr"
  36153. abstract="true" native="false" synchronized="false"
  36154. static="false" final="false" visibility="public"
  36155. deprecated="not deprecated">
  36156. </method>
  36157. <doc>
  36158. <![CDATA[Interface that acts as an iterator for deserializing maps.
  36159. The deserializer returns an instance that the record uses to
  36160. read vectors and maps. An example of usage is as follows:
  36161. <code>
  36162. Index idx = startVector(...);
  36163. while (!idx.done()) {
  36164. .... // read element of a vector
  36165. idx.incr();
  36166. }
  36167. </code>
  36168. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36169. </doc>
  36170. </interface>
  36171. <!-- end interface org.apache.hadoop.record.Index -->
  36172. <!-- start class org.apache.hadoop.record.Record -->
  36173. <class name="Record" extends="java.lang.Object"
  36174. abstract="true"
  36175. static="false" final="false" visibility="public"
  36176. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36177. <implements name="org.apache.hadoop.io.WritableComparable"/>
  36178. <implements name="java.lang.Cloneable"/>
  36179. <constructor name="Record"
  36180. static="false" final="false" visibility="public"
  36181. deprecated="not deprecated">
  36182. </constructor>
  36183. <method name="serialize"
  36184. abstract="true" native="false" synchronized="false"
  36185. static="false" final="false" visibility="public"
  36186. deprecated="not deprecated">
  36187. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  36188. <param name="tag" type="java.lang.String"/>
  36189. <exception name="IOException" type="java.io.IOException"/>
  36190. <doc>
  36191. <![CDATA[Serialize a record with tag (ususally field name)
  36192. @param rout Record output destination
  36193. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  36194. </doc>
  36195. </method>
  36196. <method name="deserialize"
  36197. abstract="true" native="false" synchronized="false"
  36198. static="false" final="false" visibility="public"
  36199. deprecated="not deprecated">
  36200. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  36201. <param name="tag" type="java.lang.String"/>
  36202. <exception name="IOException" type="java.io.IOException"/>
  36203. <doc>
  36204. <![CDATA[Deserialize a record with a tag (usually field name)
  36205. @param rin Record input source
  36206. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  36207. </doc>
  36208. </method>
  36209. <method name="compareTo" return="int"
  36210. abstract="true" native="false" synchronized="false"
  36211. static="false" final="false" visibility="public"
  36212. deprecated="not deprecated">
  36213. <param name="peer" type="java.lang.Object"/>
  36214. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  36215. </method>
  36216. <method name="serialize"
  36217. abstract="false" native="false" synchronized="false"
  36218. static="false" final="false" visibility="public"
  36219. deprecated="not deprecated">
  36220. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  36221. <exception name="IOException" type="java.io.IOException"/>
  36222. <doc>
  36223. <![CDATA[Serialize a record without a tag
  36224. @param rout Record output destination]]>
  36225. </doc>
  36226. </method>
  36227. <method name="deserialize"
  36228. abstract="false" native="false" synchronized="false"
  36229. static="false" final="false" visibility="public"
  36230. deprecated="not deprecated">
  36231. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  36232. <exception name="IOException" type="java.io.IOException"/>
  36233. <doc>
  36234. <![CDATA[Deserialize a record without a tag
  36235. @param rin Record input source]]>
  36236. </doc>
  36237. </method>
  36238. <method name="write"
  36239. abstract="false" native="false" synchronized="false"
  36240. static="false" final="false" visibility="public"
  36241. deprecated="not deprecated">
  36242. <param name="out" type="java.io.DataOutput"/>
  36243. <exception name="IOException" type="java.io.IOException"/>
  36244. </method>
  36245. <method name="readFields"
  36246. abstract="false" native="false" synchronized="false"
  36247. static="false" final="false" visibility="public"
  36248. deprecated="not deprecated">
  36249. <param name="din" type="java.io.DataInput"/>
  36250. <exception name="IOException" type="java.io.IOException"/>
  36251. </method>
  36252. <method name="toString" return="java.lang.String"
  36253. abstract="false" native="false" synchronized="false"
  36254. static="false" final="false" visibility="public"
  36255. deprecated="not deprecated">
  36256. </method>
  36257. <doc>
  36258. <![CDATA[Abstract class that is extended by generated classes.
  36259. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36260. </doc>
  36261. </class>
  36262. <!-- end class org.apache.hadoop.record.Record -->
  36263. <!-- start class org.apache.hadoop.record.RecordComparator -->
  36264. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  36265. abstract="true"
  36266. static="false" final="false" visibility="public"
  36267. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36268. <constructor name="RecordComparator" type="java.lang.Class"
  36269. static="false" final="false" visibility="protected"
  36270. deprecated="not deprecated">
  36271. <doc>
  36272. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  36273. </doc>
  36274. </constructor>
  36275. <method name="compare" return="int"
  36276. abstract="true" native="false" synchronized="false"
  36277. static="false" final="false" visibility="public"
  36278. deprecated="not deprecated">
  36279. <param name="b1" type="byte[]"/>
  36280. <param name="s1" type="int"/>
  36281. <param name="l1" type="int"/>
  36282. <param name="b2" type="byte[]"/>
  36283. <param name="s2" type="int"/>
  36284. <param name="l2" type="int"/>
  36285. </method>
  36286. <method name="define"
  36287. abstract="false" native="false" synchronized="true"
  36288. static="true" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. <param name="c" type="java.lang.Class"/>
  36291. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  36292. <doc>
  36293. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  36294. @param c record classs for which a raw comparator is provided
  36295. @param comparator Raw comparator instance for class c]]>
  36296. </doc>
  36297. </method>
  36298. <doc>
  36299. <![CDATA[A raw record comparator base class
  36300. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36301. </doc>
  36302. </class>
  36303. <!-- end class org.apache.hadoop.record.RecordComparator -->
  36304. <!-- start interface org.apache.hadoop.record.RecordInput -->
  36305. <interface name="RecordInput" abstract="true"
  36306. static="false" final="false" visibility="public"
  36307. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36308. <method name="readByte" return="byte"
  36309. abstract="true" native="false" synchronized="false"
  36310. static="false" final="false" visibility="public"
  36311. deprecated="not deprecated">
  36312. <param name="tag" type="java.lang.String"/>
  36313. <exception name="IOException" type="java.io.IOException"/>
  36314. <doc>
  36315. <![CDATA[Read a byte from serialized record.
  36316. @param tag Used by tagged serialization formats (such as XML)
  36317. @return value read from serialized record.]]>
  36318. </doc>
  36319. </method>
  36320. <method name="readBool" return="boolean"
  36321. abstract="true" native="false" synchronized="false"
  36322. static="false" final="false" visibility="public"
  36323. deprecated="not deprecated">
  36324. <param name="tag" type="java.lang.String"/>
  36325. <exception name="IOException" type="java.io.IOException"/>
  36326. <doc>
  36327. <![CDATA[Read a boolean from serialized record.
  36328. @param tag Used by tagged serialization formats (such as XML)
  36329. @return value read from serialized record.]]>
  36330. </doc>
  36331. </method>
  36332. <method name="readInt" return="int"
  36333. abstract="true" native="false" synchronized="false"
  36334. static="false" final="false" visibility="public"
  36335. deprecated="not deprecated">
  36336. <param name="tag" type="java.lang.String"/>
  36337. <exception name="IOException" type="java.io.IOException"/>
  36338. <doc>
  36339. <![CDATA[Read an integer from serialized record.
  36340. @param tag Used by tagged serialization formats (such as XML)
  36341. @return value read from serialized record.]]>
  36342. </doc>
  36343. </method>
  36344. <method name="readLong" return="long"
  36345. abstract="true" native="false" synchronized="false"
  36346. static="false" final="false" visibility="public"
  36347. deprecated="not deprecated">
  36348. <param name="tag" type="java.lang.String"/>
  36349. <exception name="IOException" type="java.io.IOException"/>
  36350. <doc>
  36351. <![CDATA[Read a long integer from serialized record.
  36352. @param tag Used by tagged serialization formats (such as XML)
  36353. @return value read from serialized record.]]>
  36354. </doc>
  36355. </method>
  36356. <method name="readFloat" return="float"
  36357. abstract="true" native="false" synchronized="false"
  36358. static="false" final="false" visibility="public"
  36359. deprecated="not deprecated">
  36360. <param name="tag" type="java.lang.String"/>
  36361. <exception name="IOException" type="java.io.IOException"/>
  36362. <doc>
  36363. <![CDATA[Read a single-precision float from serialized record.
  36364. @param tag Used by tagged serialization formats (such as XML)
  36365. @return value read from serialized record.]]>
  36366. </doc>
  36367. </method>
  36368. <method name="readDouble" return="double"
  36369. abstract="true" native="false" synchronized="false"
  36370. static="false" final="false" visibility="public"
  36371. deprecated="not deprecated">
  36372. <param name="tag" type="java.lang.String"/>
  36373. <exception name="IOException" type="java.io.IOException"/>
  36374. <doc>
  36375. <![CDATA[Read a double-precision number from serialized record.
  36376. @param tag Used by tagged serialization formats (such as XML)
  36377. @return value read from serialized record.]]>
  36378. </doc>
  36379. </method>
  36380. <method name="readString" return="java.lang.String"
  36381. abstract="true" native="false" synchronized="false"
  36382. static="false" final="false" visibility="public"
  36383. deprecated="not deprecated">
  36384. <param name="tag" type="java.lang.String"/>
  36385. <exception name="IOException" type="java.io.IOException"/>
  36386. <doc>
  36387. <![CDATA[Read a UTF-8 encoded string from serialized record.
  36388. @param tag Used by tagged serialization formats (such as XML)
  36389. @return value read from serialized record.]]>
  36390. </doc>
  36391. </method>
  36392. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  36393. abstract="true" native="false" synchronized="false"
  36394. static="false" final="false" visibility="public"
  36395. deprecated="not deprecated">
  36396. <param name="tag" type="java.lang.String"/>
  36397. <exception name="IOException" type="java.io.IOException"/>
  36398. <doc>
  36399. <![CDATA[Read byte array from serialized record.
  36400. @param tag Used by tagged serialization formats (such as XML)
  36401. @return value read from serialized record.]]>
  36402. </doc>
  36403. </method>
  36404. <method name="startRecord"
  36405. abstract="true" native="false" synchronized="false"
  36406. static="false" final="false" visibility="public"
  36407. deprecated="not deprecated">
  36408. <param name="tag" type="java.lang.String"/>
  36409. <exception name="IOException" type="java.io.IOException"/>
  36410. <doc>
  36411. <![CDATA[Check the mark for start of the serialized record.
  36412. @param tag Used by tagged serialization formats (such as XML)]]>
  36413. </doc>
  36414. </method>
  36415. <method name="endRecord"
  36416. abstract="true" native="false" synchronized="false"
  36417. static="false" final="false" visibility="public"
  36418. deprecated="not deprecated">
  36419. <param name="tag" type="java.lang.String"/>
  36420. <exception name="IOException" type="java.io.IOException"/>
  36421. <doc>
  36422. <![CDATA[Check the mark for end of the serialized record.
  36423. @param tag Used by tagged serialization formats (such as XML)]]>
  36424. </doc>
  36425. </method>
  36426. <method name="startVector" return="org.apache.hadoop.record.Index"
  36427. abstract="true" native="false" synchronized="false"
  36428. static="false" final="false" visibility="public"
  36429. deprecated="not deprecated">
  36430. <param name="tag" type="java.lang.String"/>
  36431. <exception name="IOException" type="java.io.IOException"/>
  36432. <doc>
  36433. <![CDATA[Check the mark for start of the serialized vector.
  36434. @param tag Used by tagged serialization formats (such as XML)
  36435. @return Index that is used to count the number of elements.]]>
  36436. </doc>
  36437. </method>
  36438. <method name="endVector"
  36439. abstract="true" native="false" synchronized="false"
  36440. static="false" final="false" visibility="public"
  36441. deprecated="not deprecated">
  36442. <param name="tag" type="java.lang.String"/>
  36443. <exception name="IOException" type="java.io.IOException"/>
  36444. <doc>
  36445. <![CDATA[Check the mark for end of the serialized vector.
  36446. @param tag Used by tagged serialization formats (such as XML)]]>
  36447. </doc>
  36448. </method>
  36449. <method name="startMap" return="org.apache.hadoop.record.Index"
  36450. abstract="true" native="false" synchronized="false"
  36451. static="false" final="false" visibility="public"
  36452. deprecated="not deprecated">
  36453. <param name="tag" type="java.lang.String"/>
  36454. <exception name="IOException" type="java.io.IOException"/>
  36455. <doc>
  36456. <![CDATA[Check the mark for start of the serialized map.
  36457. @param tag Used by tagged serialization formats (such as XML)
  36458. @return Index that is used to count the number of map entries.]]>
  36459. </doc>
  36460. </method>
  36461. <method name="endMap"
  36462. abstract="true" native="false" synchronized="false"
  36463. static="false" final="false" visibility="public"
  36464. deprecated="not deprecated">
  36465. <param name="tag" type="java.lang.String"/>
  36466. <exception name="IOException" type="java.io.IOException"/>
  36467. <doc>
  36468. <![CDATA[Check the mark for end of the serialized map.
  36469. @param tag Used by tagged serialization formats (such as XML)]]>
  36470. </doc>
  36471. </method>
  36472. <doc>
  36473. <![CDATA[Interface that all the Deserializers have to implement.
  36474. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36475. </doc>
  36476. </interface>
  36477. <!-- end interface org.apache.hadoop.record.RecordInput -->
  36478. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  36479. <interface name="RecordOutput" abstract="true"
  36480. static="false" final="false" visibility="public"
  36481. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36482. <method name="writeByte"
  36483. abstract="true" native="false" synchronized="false"
  36484. static="false" final="false" visibility="public"
  36485. deprecated="not deprecated">
  36486. <param name="b" type="byte"/>
  36487. <param name="tag" type="java.lang.String"/>
  36488. <exception name="IOException" type="java.io.IOException"/>
  36489. <doc>
  36490. <![CDATA[Write a byte to serialized record.
  36491. @param b Byte to be serialized
  36492. @param tag Used by tagged serialization formats (such as XML)
  36493. @throws IOException Indicates error in serialization]]>
  36494. </doc>
  36495. </method>
  36496. <method name="writeBool"
  36497. abstract="true" native="false" synchronized="false"
  36498. static="false" final="false" visibility="public"
  36499. deprecated="not deprecated">
  36500. <param name="b" type="boolean"/>
  36501. <param name="tag" type="java.lang.String"/>
  36502. <exception name="IOException" type="java.io.IOException"/>
  36503. <doc>
  36504. <![CDATA[Write a boolean to serialized record.
  36505. @param b Boolean to be serialized
  36506. @param tag Used by tagged serialization formats (such as XML)
  36507. @throws IOException Indicates error in serialization]]>
  36508. </doc>
  36509. </method>
  36510. <method name="writeInt"
  36511. abstract="true" native="false" synchronized="false"
  36512. static="false" final="false" visibility="public"
  36513. deprecated="not deprecated">
  36514. <param name="i" type="int"/>
  36515. <param name="tag" type="java.lang.String"/>
  36516. <exception name="IOException" type="java.io.IOException"/>
  36517. <doc>
  36518. <![CDATA[Write an integer to serialized record.
  36519. @param i Integer to be serialized
  36520. @param tag Used by tagged serialization formats (such as XML)
  36521. @throws IOException Indicates error in serialization]]>
  36522. </doc>
  36523. </method>
  36524. <method name="writeLong"
  36525. abstract="true" native="false" synchronized="false"
  36526. static="false" final="false" visibility="public"
  36527. deprecated="not deprecated">
  36528. <param name="l" type="long"/>
  36529. <param name="tag" type="java.lang.String"/>
  36530. <exception name="IOException" type="java.io.IOException"/>
  36531. <doc>
  36532. <![CDATA[Write a long integer to serialized record.
  36533. @param l Long to be serialized
  36534. @param tag Used by tagged serialization formats (such as XML)
  36535. @throws IOException Indicates error in serialization]]>
  36536. </doc>
  36537. </method>
  36538. <method name="writeFloat"
  36539. abstract="true" native="false" synchronized="false"
  36540. static="false" final="false" visibility="public"
  36541. deprecated="not deprecated">
  36542. <param name="f" type="float"/>
  36543. <param name="tag" type="java.lang.String"/>
  36544. <exception name="IOException" type="java.io.IOException"/>
  36545. <doc>
  36546. <![CDATA[Write a single-precision float to serialized record.
  36547. @param f Float to be serialized
  36548. @param tag Used by tagged serialization formats (such as XML)
  36549. @throws IOException Indicates error in serialization]]>
  36550. </doc>
  36551. </method>
  36552. <method name="writeDouble"
  36553. abstract="true" native="false" synchronized="false"
  36554. static="false" final="false" visibility="public"
  36555. deprecated="not deprecated">
  36556. <param name="d" type="double"/>
  36557. <param name="tag" type="java.lang.String"/>
  36558. <exception name="IOException" type="java.io.IOException"/>
  36559. <doc>
  36560. <![CDATA[Write a double precision floating point number to serialized record.
  36561. @param d Double to be serialized
  36562. @param tag Used by tagged serialization formats (such as XML)
  36563. @throws IOException Indicates error in serialization]]>
  36564. </doc>
  36565. </method>
  36566. <method name="writeString"
  36567. abstract="true" native="false" synchronized="false"
  36568. static="false" final="false" visibility="public"
  36569. deprecated="not deprecated">
  36570. <param name="s" type="java.lang.String"/>
  36571. <param name="tag" type="java.lang.String"/>
  36572. <exception name="IOException" type="java.io.IOException"/>
  36573. <doc>
  36574. <![CDATA[Write a unicode string to serialized record.
  36575. @param s String to be serialized
  36576. @param tag Used by tagged serialization formats (such as XML)
  36577. @throws IOException Indicates error in serialization]]>
  36578. </doc>
  36579. </method>
  36580. <method name="writeBuffer"
  36581. abstract="true" native="false" synchronized="false"
  36582. static="false" final="false" visibility="public"
  36583. deprecated="not deprecated">
  36584. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  36585. <param name="tag" type="java.lang.String"/>
  36586. <exception name="IOException" type="java.io.IOException"/>
  36587. <doc>
  36588. <![CDATA[Write a buffer to serialized record.
  36589. @param buf Buffer to be serialized
  36590. @param tag Used by tagged serialization formats (such as XML)
  36591. @throws IOException Indicates error in serialization]]>
  36592. </doc>
  36593. </method>
  36594. <method name="startRecord"
  36595. abstract="true" native="false" synchronized="false"
  36596. static="false" final="false" visibility="public"
  36597. deprecated="not deprecated">
  36598. <param name="r" type="org.apache.hadoop.record.Record"/>
  36599. <param name="tag" type="java.lang.String"/>
  36600. <exception name="IOException" type="java.io.IOException"/>
  36601. <doc>
  36602. <![CDATA[Mark the start of a record to be serialized.
  36603. @param r Record to be serialized
  36604. @param tag Used by tagged serialization formats (such as XML)
  36605. @throws IOException Indicates error in serialization]]>
  36606. </doc>
  36607. </method>
  36608. <method name="endRecord"
  36609. abstract="true" native="false" synchronized="false"
  36610. static="false" final="false" visibility="public"
  36611. deprecated="not deprecated">
  36612. <param name="r" type="org.apache.hadoop.record.Record"/>
  36613. <param name="tag" type="java.lang.String"/>
  36614. <exception name="IOException" type="java.io.IOException"/>
  36615. <doc>
  36616. <![CDATA[Mark the end of a serialized record.
  36617. @param r Record to be serialized
  36618. @param tag Used by tagged serialization formats (such as XML)
  36619. @throws IOException Indicates error in serialization]]>
  36620. </doc>
  36621. </method>
  36622. <method name="startVector"
  36623. abstract="true" native="false" synchronized="false"
  36624. static="false" final="false" visibility="public"
  36625. deprecated="not deprecated">
  36626. <param name="v" type="java.util.ArrayList"/>
  36627. <param name="tag" type="java.lang.String"/>
  36628. <exception name="IOException" type="java.io.IOException"/>
  36629. <doc>
  36630. <![CDATA[Mark the start of a vector to be serialized.
  36631. @param v Vector to be serialized
  36632. @param tag Used by tagged serialization formats (such as XML)
  36633. @throws IOException Indicates error in serialization]]>
  36634. </doc>
  36635. </method>
  36636. <method name="endVector"
  36637. abstract="true" native="false" synchronized="false"
  36638. static="false" final="false" visibility="public"
  36639. deprecated="not deprecated">
  36640. <param name="v" type="java.util.ArrayList"/>
  36641. <param name="tag" type="java.lang.String"/>
  36642. <exception name="IOException" type="java.io.IOException"/>
  36643. <doc>
  36644. <![CDATA[Mark the end of a serialized vector.
  36645. @param v Vector to be serialized
  36646. @param tag Used by tagged serialization formats (such as XML)
  36647. @throws IOException Indicates error in serialization]]>
  36648. </doc>
  36649. </method>
  36650. <method name="startMap"
  36651. abstract="true" native="false" synchronized="false"
  36652. static="false" final="false" visibility="public"
  36653. deprecated="not deprecated">
  36654. <param name="m" type="java.util.TreeMap"/>
  36655. <param name="tag" type="java.lang.String"/>
  36656. <exception name="IOException" type="java.io.IOException"/>
  36657. <doc>
  36658. <![CDATA[Mark the start of a map to be serialized.
  36659. @param m Map to be serialized
  36660. @param tag Used by tagged serialization formats (such as XML)
  36661. @throws IOException Indicates error in serialization]]>
  36662. </doc>
  36663. </method>
  36664. <method name="endMap"
  36665. abstract="true" native="false" synchronized="false"
  36666. static="false" final="false" visibility="public"
  36667. deprecated="not deprecated">
  36668. <param name="m" type="java.util.TreeMap"/>
  36669. <param name="tag" type="java.lang.String"/>
  36670. <exception name="IOException" type="java.io.IOException"/>
  36671. <doc>
  36672. <![CDATA[Mark the end of a serialized map.
  36673. @param m Map to be serialized
  36674. @param tag Used by tagged serialization formats (such as XML)
  36675. @throws IOException Indicates error in serialization]]>
  36676. </doc>
  36677. </method>
  36678. <doc>
  36679. <![CDATA[Interface that all the serializers have to implement.
  36680. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36681. </doc>
  36682. </interface>
  36683. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  36684. <!-- start class org.apache.hadoop.record.Utils -->
  36685. <class name="Utils" extends="java.lang.Object"
  36686. abstract="false"
  36687. static="false" final="false" visibility="public"
  36688. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  36689. <method name="readFloat" return="float"
  36690. abstract="false" native="false" synchronized="false"
  36691. static="true" final="false" visibility="public"
  36692. deprecated="not deprecated">
  36693. <param name="bytes" type="byte[]"/>
  36694. <param name="start" type="int"/>
  36695. <doc>
  36696. <![CDATA[Parse a float from a byte array.]]>
  36697. </doc>
  36698. </method>
  36699. <method name="readDouble" return="double"
  36700. abstract="false" native="false" synchronized="false"
  36701. static="true" final="false" visibility="public"
  36702. deprecated="not deprecated">
  36703. <param name="bytes" type="byte[]"/>
  36704. <param name="start" type="int"/>
  36705. <doc>
  36706. <![CDATA[Parse a double from a byte array.]]>
  36707. </doc>
  36708. </method>
  36709. <method name="readVLong" return="long"
  36710. abstract="false" native="false" synchronized="false"
  36711. static="true" final="false" visibility="public"
  36712. deprecated="not deprecated">
  36713. <param name="bytes" type="byte[]"/>
  36714. <param name="start" type="int"/>
  36715. <exception name="IOException" type="java.io.IOException"/>
  36716. <doc>
  36717. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  36718. @param bytes byte array with decode long
  36719. @param start starting index
  36720. @throws java.io.IOException
  36721. @return deserialized long]]>
  36722. </doc>
  36723. </method>
  36724. <method name="readVInt" return="int"
  36725. abstract="false" native="false" synchronized="false"
  36726. static="true" final="false" visibility="public"
  36727. deprecated="not deprecated">
  36728. <param name="bytes" type="byte[]"/>
  36729. <param name="start" type="int"/>
  36730. <exception name="IOException" type="java.io.IOException"/>
  36731. <doc>
  36732. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  36733. @param bytes byte array with the encoded integer
  36734. @param start start index
  36735. @throws java.io.IOException
  36736. @return deserialized integer]]>
  36737. </doc>
  36738. </method>
  36739. <method name="readVLong" return="long"
  36740. abstract="false" native="false" synchronized="false"
  36741. static="true" final="false" visibility="public"
  36742. deprecated="not deprecated">
  36743. <param name="in" type="java.io.DataInput"/>
  36744. <exception name="IOException" type="java.io.IOException"/>
  36745. <doc>
  36746. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  36747. @param in input stream
  36748. @throws java.io.IOException
  36749. @return deserialized long]]>
  36750. </doc>
  36751. </method>
  36752. <method name="readVInt" return="int"
  36753. abstract="false" native="false" synchronized="false"
  36754. static="true" final="false" visibility="public"
  36755. deprecated="not deprecated">
  36756. <param name="in" type="java.io.DataInput"/>
  36757. <exception name="IOException" type="java.io.IOException"/>
  36758. <doc>
  36759. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  36760. @param in input stream
  36761. @throws java.io.IOException
  36762. @return deserialized integer]]>
  36763. </doc>
  36764. </method>
  36765. <method name="getVIntSize" return="int"
  36766. abstract="false" native="false" synchronized="false"
  36767. static="true" final="false" visibility="public"
  36768. deprecated="not deprecated">
  36769. <param name="i" type="long"/>
  36770. <doc>
  36771. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  36772. @return the encoded length]]>
  36773. </doc>
  36774. </method>
  36775. <method name="writeVLong"
  36776. abstract="false" native="false" synchronized="false"
  36777. static="true" final="false" visibility="public"
  36778. deprecated="not deprecated">
  36779. <param name="stream" type="java.io.DataOutput"/>
  36780. <param name="i" type="long"/>
  36781. <exception name="IOException" type="java.io.IOException"/>
  36782. <doc>
  36783. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  36784. For {@literal -112 <= i <= 127}, only one byte is used with the actual
  36785. value. For other values of i, the first byte value indicates whether the
  36786. long is positive or negative, and the number of bytes that follow.
  36787. If the first byte value v is between -113 and -120, the following long
  36788. is positive, with number of bytes that follow are -(v+112).
  36789. If the first byte value v is between -121 and -128, the following long
  36790. is negative, with number of bytes that follow are -(v+120). Bytes are
  36791. stored in the high-non-zero-byte-first order.
  36792. @param stream Binary output stream
  36793. @param i Long to be serialized
  36794. @throws java.io.IOException]]>
  36795. </doc>
  36796. </method>
  36797. <method name="writeVInt"
  36798. abstract="false" native="false" synchronized="false"
  36799. static="true" final="false" visibility="public"
  36800. deprecated="not deprecated">
  36801. <param name="stream" type="java.io.DataOutput"/>
  36802. <param name="i" type="int"/>
  36803. <exception name="IOException" type="java.io.IOException"/>
  36804. <doc>
  36805. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  36806. @param stream Binary output stream
  36807. @param i int to be serialized
  36808. @throws java.io.IOException]]>
  36809. </doc>
  36810. </method>
  36811. <method name="compareBytes" return="int"
  36812. abstract="false" native="false" synchronized="false"
  36813. static="true" final="false" visibility="public"
  36814. deprecated="not deprecated">
  36815. <param name="b1" type="byte[]"/>
  36816. <param name="s1" type="int"/>
  36817. <param name="l1" type="int"/>
  36818. <param name="b2" type="byte[]"/>
  36819. <param name="s2" type="int"/>
  36820. <param name="l2" type="int"/>
  36821. <doc>
  36822. <![CDATA[Lexicographic order of binary data.]]>
  36823. </doc>
  36824. </method>
  36825. <field name="hexchars" type="char[]"
  36826. transient="false" volatile="false"
  36827. static="true" final="true" visibility="public"
  36828. deprecated="not deprecated">
  36829. </field>
  36830. <doc>
  36831. <![CDATA[Various utility functions for Hadoop record I/O runtime.
  36832. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  36833. </doc>
  36834. </class>
  36835. <!-- end class org.apache.hadoop.record.Utils -->
  36836. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  36837. <class name="XmlRecordInput" extends="java.lang.Object"
  36838. abstract="false"
  36839. static="false" final="false" visibility="public"
  36840. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36841. <implements name="org.apache.hadoop.record.RecordInput"/>
  36842. <constructor name="XmlRecordInput" type="java.io.InputStream"
  36843. static="false" final="false" visibility="public"
  36844. deprecated="not deprecated">
  36845. <doc>
  36846. <![CDATA[Creates a new instance of XmlRecordInput]]>
  36847. </doc>
  36848. </constructor>
  36849. <method name="readByte" return="byte"
  36850. abstract="false" native="false" synchronized="false"
  36851. static="false" final="false" visibility="public"
  36852. deprecated="not deprecated">
  36853. <param name="tag" type="java.lang.String"/>
  36854. <exception name="IOException" type="java.io.IOException"/>
  36855. </method>
  36856. <method name="readBool" return="boolean"
  36857. abstract="false" native="false" synchronized="false"
  36858. static="false" final="false" visibility="public"
  36859. deprecated="not deprecated">
  36860. <param name="tag" type="java.lang.String"/>
  36861. <exception name="IOException" type="java.io.IOException"/>
  36862. </method>
  36863. <method name="readInt" return="int"
  36864. abstract="false" native="false" synchronized="false"
  36865. static="false" final="false" visibility="public"
  36866. deprecated="not deprecated">
  36867. <param name="tag" type="java.lang.String"/>
  36868. <exception name="IOException" type="java.io.IOException"/>
  36869. </method>
  36870. <method name="readLong" return="long"
  36871. abstract="false" native="false" synchronized="false"
  36872. static="false" final="false" visibility="public"
  36873. deprecated="not deprecated">
  36874. <param name="tag" type="java.lang.String"/>
  36875. <exception name="IOException" type="java.io.IOException"/>
  36876. </method>
  36877. <method name="readFloat" return="float"
  36878. abstract="false" native="false" synchronized="false"
  36879. static="false" final="false" visibility="public"
  36880. deprecated="not deprecated">
  36881. <param name="tag" type="java.lang.String"/>
  36882. <exception name="IOException" type="java.io.IOException"/>
  36883. </method>
  36884. <method name="readDouble" return="double"
  36885. abstract="false" native="false" synchronized="false"
  36886. static="false" final="false" visibility="public"
  36887. deprecated="not deprecated">
  36888. <param name="tag" type="java.lang.String"/>
  36889. <exception name="IOException" type="java.io.IOException"/>
  36890. </method>
  36891. <method name="readString" return="java.lang.String"
  36892. abstract="false" native="false" synchronized="false"
  36893. static="false" final="false" visibility="public"
  36894. deprecated="not deprecated">
  36895. <param name="tag" type="java.lang.String"/>
  36896. <exception name="IOException" type="java.io.IOException"/>
  36897. </method>
  36898. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  36899. abstract="false" native="false" synchronized="false"
  36900. static="false" final="false" visibility="public"
  36901. deprecated="not deprecated">
  36902. <param name="tag" type="java.lang.String"/>
  36903. <exception name="IOException" type="java.io.IOException"/>
  36904. </method>
  36905. <method name="startRecord"
  36906. abstract="false" native="false" synchronized="false"
  36907. static="false" final="false" visibility="public"
  36908. deprecated="not deprecated">
  36909. <param name="tag" type="java.lang.String"/>
  36910. <exception name="IOException" type="java.io.IOException"/>
  36911. </method>
  36912. <method name="endRecord"
  36913. abstract="false" native="false" synchronized="false"
  36914. static="false" final="false" visibility="public"
  36915. deprecated="not deprecated">
  36916. <param name="tag" type="java.lang.String"/>
  36917. <exception name="IOException" type="java.io.IOException"/>
  36918. </method>
  36919. <method name="startVector" return="org.apache.hadoop.record.Index"
  36920. abstract="false" native="false" synchronized="false"
  36921. static="false" final="false" visibility="public"
  36922. deprecated="not deprecated">
  36923. <param name="tag" type="java.lang.String"/>
  36924. <exception name="IOException" type="java.io.IOException"/>
  36925. </method>
  36926. <method name="endVector"
  36927. abstract="false" native="false" synchronized="false"
  36928. static="false" final="false" visibility="public"
  36929. deprecated="not deprecated">
  36930. <param name="tag" type="java.lang.String"/>
  36931. <exception name="IOException" type="java.io.IOException"/>
  36932. </method>
  36933. <method name="startMap" return="org.apache.hadoop.record.Index"
  36934. abstract="false" native="false" synchronized="false"
  36935. static="false" final="false" visibility="public"
  36936. deprecated="not deprecated">
  36937. <param name="tag" type="java.lang.String"/>
  36938. <exception name="IOException" type="java.io.IOException"/>
  36939. </method>
  36940. <method name="endMap"
  36941. abstract="false" native="false" synchronized="false"
  36942. static="false" final="false" visibility="public"
  36943. deprecated="not deprecated">
  36944. <param name="tag" type="java.lang.String"/>
  36945. <exception name="IOException" type="java.io.IOException"/>
  36946. </method>
  36947. <doc>
  36948. <![CDATA[XML Deserializer.
  36949. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  36950. </doc>
  36951. </class>
  36952. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  36953. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  36954. <class name="XmlRecordOutput" extends="java.lang.Object"
  36955. abstract="false"
  36956. static="false" final="false" visibility="public"
  36957. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  36958. <implements name="org.apache.hadoop.record.RecordOutput"/>
  36959. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  36960. static="false" final="false" visibility="public"
  36961. deprecated="not deprecated">
  36962. <doc>
  36963. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  36964. </doc>
  36965. </constructor>
  36966. <method name="writeByte"
  36967. abstract="false" native="false" synchronized="false"
  36968. static="false" final="false" visibility="public"
  36969. deprecated="not deprecated">
  36970. <param name="b" type="byte"/>
  36971. <param name="tag" type="java.lang.String"/>
  36972. <exception name="IOException" type="java.io.IOException"/>
  36973. </method>
  36974. <method name="writeBool"
  36975. abstract="false" native="false" synchronized="false"
  36976. static="false" final="false" visibility="public"
  36977. deprecated="not deprecated">
  36978. <param name="b" type="boolean"/>
  36979. <param name="tag" type="java.lang.String"/>
  36980. <exception name="IOException" type="java.io.IOException"/>
  36981. </method>
  36982. <method name="writeInt"
  36983. abstract="false" native="false" synchronized="false"
  36984. static="false" final="false" visibility="public"
  36985. deprecated="not deprecated">
  36986. <param name="i" type="int"/>
  36987. <param name="tag" type="java.lang.String"/>
  36988. <exception name="IOException" type="java.io.IOException"/>
  36989. </method>
  36990. <method name="writeLong"
  36991. abstract="false" native="false" synchronized="false"
  36992. static="false" final="false" visibility="public"
  36993. deprecated="not deprecated">
  36994. <param name="l" type="long"/>
  36995. <param name="tag" type="java.lang.String"/>
  36996. <exception name="IOException" type="java.io.IOException"/>
  36997. </method>
  36998. <method name="writeFloat"
  36999. abstract="false" native="false" synchronized="false"
  37000. static="false" final="false" visibility="public"
  37001. deprecated="not deprecated">
  37002. <param name="f" type="float"/>
  37003. <param name="tag" type="java.lang.String"/>
  37004. <exception name="IOException" type="java.io.IOException"/>
  37005. </method>
  37006. <method name="writeDouble"
  37007. abstract="false" native="false" synchronized="false"
  37008. static="false" final="false" visibility="public"
  37009. deprecated="not deprecated">
  37010. <param name="d" type="double"/>
  37011. <param name="tag" type="java.lang.String"/>
  37012. <exception name="IOException" type="java.io.IOException"/>
  37013. </method>
  37014. <method name="writeString"
  37015. abstract="false" native="false" synchronized="false"
  37016. static="false" final="false" visibility="public"
  37017. deprecated="not deprecated">
  37018. <param name="s" type="java.lang.String"/>
  37019. <param name="tag" type="java.lang.String"/>
  37020. <exception name="IOException" type="java.io.IOException"/>
  37021. </method>
  37022. <method name="writeBuffer"
  37023. abstract="false" native="false" synchronized="false"
  37024. static="false" final="false" visibility="public"
  37025. deprecated="not deprecated">
  37026. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  37027. <param name="tag" type="java.lang.String"/>
  37028. <exception name="IOException" type="java.io.IOException"/>
  37029. </method>
  37030. <method name="startRecord"
  37031. abstract="false" native="false" synchronized="false"
  37032. static="false" final="false" visibility="public"
  37033. deprecated="not deprecated">
  37034. <param name="r" type="org.apache.hadoop.record.Record"/>
  37035. <param name="tag" type="java.lang.String"/>
  37036. <exception name="IOException" type="java.io.IOException"/>
  37037. </method>
  37038. <method name="endRecord"
  37039. abstract="false" native="false" synchronized="false"
  37040. static="false" final="false" visibility="public"
  37041. deprecated="not deprecated">
  37042. <param name="r" type="org.apache.hadoop.record.Record"/>
  37043. <param name="tag" type="java.lang.String"/>
  37044. <exception name="IOException" type="java.io.IOException"/>
  37045. </method>
  37046. <method name="startVector"
  37047. abstract="false" native="false" synchronized="false"
  37048. static="false" final="false" visibility="public"
  37049. deprecated="not deprecated">
  37050. <param name="v" type="java.util.ArrayList"/>
  37051. <param name="tag" type="java.lang.String"/>
  37052. <exception name="IOException" type="java.io.IOException"/>
  37053. </method>
  37054. <method name="endVector"
  37055. abstract="false" native="false" synchronized="false"
  37056. static="false" final="false" visibility="public"
  37057. deprecated="not deprecated">
  37058. <param name="v" type="java.util.ArrayList"/>
  37059. <param name="tag" type="java.lang.String"/>
  37060. <exception name="IOException" type="java.io.IOException"/>
  37061. </method>
  37062. <method name="startMap"
  37063. abstract="false" native="false" synchronized="false"
  37064. static="false" final="false" visibility="public"
  37065. deprecated="not deprecated">
  37066. <param name="v" type="java.util.TreeMap"/>
  37067. <param name="tag" type="java.lang.String"/>
  37068. <exception name="IOException" type="java.io.IOException"/>
  37069. </method>
  37070. <method name="endMap"
  37071. abstract="false" native="false" synchronized="false"
  37072. static="false" final="false" visibility="public"
  37073. deprecated="not deprecated">
  37074. <param name="v" type="java.util.TreeMap"/>
  37075. <param name="tag" type="java.lang.String"/>
  37076. <exception name="IOException" type="java.io.IOException"/>
  37077. </method>
  37078. <doc>
  37079. <![CDATA[XML Serializer.
  37080. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37081. </doc>
  37082. </class>
  37083. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  37084. <doc>
  37085. <![CDATA[<p>
  37086. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  37087. translator for simplifying serialization and deserialization of records in a
  37088. language-neutral manner.
  37089. </p>
  37090. <p>
  37091. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  37092. </p>
  37093. <h2>Introduction</h2>
  37094. Software systems of any significant complexity require mechanisms for data
  37095. interchange with the outside world. These interchanges typically involve the
  37096. marshaling and unmarshaling of logical units of data to and from data streams
  37097. (files, network connections, memory buffers etc.). Applications usually have
  37098. some code for serializing and deserializing the data types that they manipulate
  37099. embedded in them. The work of serialization has several features that make
  37100. automatic code generation for it worthwhile. Given a particular output encoding
  37101. (binary, XML, etc.), serialization of primitive types and simple compositions
  37102. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  37103. written serialization code can be susceptible to bugs especially when records
  37104. have a large number of fields or a record definition changes between software
  37105. versions. Lastly, it can be very useful for applications written in different
  37106. programming languages to be able to share and interchange data. This can be
  37107. made a lot easier by describing the data records manipulated by these
  37108. applications in a language agnostic manner and using the descriptions to derive
  37109. implementations of serialization in multiple target languages.
  37110. This document describes Hadoop Record I/O, a mechanism that is aimed
  37111. at
  37112. <ul>
  37113. <li> enabling the specification of simple serializable data types (records)
  37114. <li> enabling the generation of code in multiple target languages for
  37115. marshaling and unmarshaling such types
  37116. <li> providing target language specific support that will enable application
  37117. programmers to incorporate generated code into their applications
  37118. </ul>
  37119. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  37120. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  37121. the specification of most record types, they differ widely in what else they
  37122. focus on. The focus in Hadoop Record I/O is on data marshaling and
  37123. multi-lingual support. We take a translator-based approach to serialization.
  37124. Hadoop users have to describe their data in a simple data description
  37125. language. The Hadoop DDL translator rcc generates code that users
  37126. can invoke in order to read/write their data from/to simple stream
  37127. abstractions. Next we list explicitly some of the goals and non-goals of
  37128. Hadoop Record I/O.
  37129. <h3>Goals</h3>
  37130. <ul>
  37131. <li> Support for commonly used primitive types. Hadoop should include as
  37132. primitives commonly used builtin types from programming languages we intend to
  37133. support.
  37134. <li> Support for common data compositions (including recursive compositions).
  37135. Hadoop should support widely used composite types such as structs and
  37136. vectors.
  37137. <li> Code generation in multiple target languages. Hadoop should be capable of
  37138. generating serialization code in multiple target languages and should be
  37139. easily extensible to new target languages. The initial target languages are
  37140. C++ and Java.
  37141. <li> Support for generated target languages. Hadooop should include support
  37142. in the form of headers, libraries, packages for supported target languages
  37143. that enable easy inclusion and use of generated code in applications.
  37144. <li> Support for multiple output encodings. Candidates include
  37145. packed binary, comma-separated text, XML etc.
  37146. <li> Support for specifying record types in a backwards/forwards compatible
  37147. manner. This will probably be in the form of support for optional fields in
  37148. records. This version of the document does not include a description of the
  37149. planned mechanism, we intend to include it in the next iteration.
  37150. </ul>
  37151. <h3>Non-Goals</h3>
  37152. <ul>
  37153. <li> Serializing existing arbitrary C++ classes.
  37154. <li> Serializing complex data structures such as trees, linked lists etc.
  37155. <li> Built-in indexing schemes, compression, or check-sums.
  37156. <li> Dynamic construction of objects from an XML schema.
  37157. </ul>
  37158. The remainder of this document describes the features of Hadoop record I/O
  37159. in more detail. Section 2 describes the data types supported by the system.
  37160. Section 3 lays out the DDL syntax with some examples of simple records.
  37161. Section 4 describes the process of code generation with rcc. Section 5
  37162. describes target language mappings and support for Hadoop types. We include a
  37163. fairly complete description of C++ mappings with intent to include Java and
  37164. others in upcoming iterations of this document. The last section talks about
  37165. supported output encodings.
  37166. <h2>Data Types and Streams</h2>
  37167. This section describes the primitive and composite types supported by Hadoop.
  37168. We aim to support a set of types that can be used to simply and efficiently
  37169. express a wide range of record types in different programming languages.
  37170. <h3>Primitive Types</h3>
  37171. For the most part, the primitive types of Hadoop map directly to primitive
  37172. types in high level programming languages. Special cases are the
  37173. ustring (a Unicode string) and buffer types, which we believe
  37174. find wide use and which are usually implemented in library code and not
  37175. available as language built-ins. Hadoop also supplies these via library code
  37176. when a target language built-in is not present and there is no widely
  37177. adopted "standard" implementation. The complete list of primitive types is:
  37178. <ul>
  37179. <li> byte: An 8-bit unsigned integer.
  37180. <li> boolean: A boolean value.
  37181. <li> int: A 32-bit signed integer.
  37182. <li> long: A 64-bit signed integer.
  37183. <li> float: A single precision floating point number as described by
  37184. IEEE-754.
  37185. <li> double: A double precision floating point number as described by
  37186. IEEE-754.
  37187. <li> ustring: A string consisting of Unicode characters.
  37188. <li> buffer: An arbitrary sequence of bytes.
  37189. </ul>
  37190. <h3>Composite Types</h3>
  37191. Hadoop supports a small set of composite types that enable the description
  37192. of simple aggregate types and containers. A composite type is serialized
  37193. by sequentially serializing it constituent elements. The supported
  37194. composite types are:
  37195. <ul>
  37196. <li> record: An aggregate type like a C-struct. This is a list of
  37197. typed fields that are together considered a single unit of data. A record
  37198. is serialized by sequentially serializing its constituent fields. In addition
  37199. to serialization a record has comparison operations (equality and less-than)
  37200. implemented for it, these are defined as memberwise comparisons.
  37201. <li>vector: A sequence of entries of the same data type, primitive
  37202. or composite.
  37203. <li> map: An associative container mapping instances of a key type to
  37204. instances of a value type. The key and value types may themselves be primitive
  37205. or composite types.
  37206. </ul>
  37207. <h3>Streams</h3>
  37208. Hadoop generates code for serializing and deserializing record types to
  37209. abstract streams. For each target language Hadoop defines very simple input
  37210. and output stream interfaces. Application writers can usually develop
  37211. concrete implementations of these by putting a one method wrapper around
  37212. an existing stream implementation.
  37213. <h2>DDL Syntax and Examples</h2>
  37214. We now describe the syntax of the Hadoop data description language. This is
  37215. followed by a few examples of DDL usage.
  37216. <h3>Hadoop DDL Syntax</h3>
  37217. <pre><code>
  37218. recfile = *include module *record
  37219. include = "include" path
  37220. path = (relative-path / absolute-path)
  37221. module = "module" module-name
  37222. module-name = name *("." name)
  37223. record := "class" name "{" 1*(field) "}"
  37224. field := type name ";"
  37225. name := ALPHA (ALPHA / DIGIT / "_" )*
  37226. type := (ptype / ctype)
  37227. ptype := ("byte" / "boolean" / "int" |
  37228. "long" / "float" / "double"
  37229. "ustring" / "buffer")
  37230. ctype := (("vector" "<" type ">") /
  37231. ("map" "<" type "," type ">" ) ) / name)
  37232. </code></pre>
  37233. A DDL file describes one or more record types. It begins with zero or
  37234. more include declarations, a single mandatory module declaration
  37235. followed by zero or more class declarations. The semantics of each of
  37236. these declarations are described below:
  37237. <ul>
  37238. <li>include: An include declaration specifies a DDL file to be
  37239. referenced when generating code for types in the current DDL file. Record types
  37240. in the current compilation unit may refer to types in all included files.
  37241. File inclusion is recursive. An include does not trigger code
  37242. generation for the referenced file.
  37243. <li> module: Every Hadoop DDL file must have a single module
  37244. declaration that follows the list of includes and precedes all record
  37245. declarations. A module declaration identifies a scope within which
  37246. the names of all types in the current file are visible. Module names are
  37247. mapped to C++ namespaces, Java packages etc. in generated code.
  37248. <li> class: Records types are specified through class
  37249. declarations. A class declaration is like a Java class declaration.
  37250. It specifies a named record type and a list of fields that constitute records
  37251. of the type. Usage is illustrated in the following examples.
  37252. </ul>
  37253. <h3>Examples</h3>
  37254. <ul>
  37255. <li>A simple DDL file links.jr with just one record declaration.
  37256. <pre><code>
  37257. module links {
  37258. class Link {
  37259. ustring URL;
  37260. boolean isRelative;
  37261. ustring anchorText;
  37262. };
  37263. }
  37264. </code></pre>
  37265. <li> A DDL file outlinks.jr which includes another
  37266. <pre><code>
  37267. include "links.jr"
  37268. module outlinks {
  37269. class OutLinks {
  37270. ustring baseURL;
  37271. vector<links.Link> outLinks;
  37272. };
  37273. }
  37274. </code></pre>
  37275. </ul>
  37276. <h2>Code Generation</h2>
  37277. The Hadoop translator is written in Java. Invocation is done by executing a
  37278. wrapper shell script named named rcc. It takes a list of
  37279. record description files as a mandatory argument and an
  37280. optional language argument (the default is Java) --language or
  37281. -l. Thus a typical invocation would look like:
  37282. <pre><code>
  37283. $ rcc -l C++ <filename> ...
  37284. </code></pre>
  37285. <h2>Target Language Mappings and Support</h2>
  37286. For all target languages, the unit of code generation is a record type.
  37287. For each record type, Hadoop generates code for serialization and
  37288. deserialization, record comparison and access to record members.
  37289. <h3>C++</h3>
  37290. Support for including Hadoop generated C++ code in applications comes in the
  37291. form of a header file recordio.hh which needs to be included in source
  37292. that uses Hadoop types and a library librecordio.a which applications need
  37293. to be linked with. The header declares the Hadoop C++ namespace which defines
  37294. appropriate types for the various primitives, the basic interfaces for
  37295. records and streams and enumerates the supported serialization encodings.
  37296. Declarations of these interfaces and a description of their semantics follow:
  37297. <pre><code>
  37298. namespace hadoop {
  37299. enum RecFormat { kBinary, kXML, kCSV };
  37300. class InStream {
  37301. public:
  37302. virtual ssize_t read(void *buf, size_t n) = 0;
  37303. };
  37304. class OutStream {
  37305. public:
  37306. virtual ssize_t write(const void *buf, size_t n) = 0;
  37307. };
  37308. class IOError : public runtime_error {
  37309. public:
  37310. explicit IOError(const std::string& msg);
  37311. };
  37312. class IArchive;
  37313. class OArchive;
  37314. class RecordReader {
  37315. public:
  37316. RecordReader(InStream& in, RecFormat fmt);
  37317. virtual ~RecordReader(void);
  37318. virtual void read(Record& rec);
  37319. };
  37320. class RecordWriter {
  37321. public:
  37322. RecordWriter(OutStream& out, RecFormat fmt);
  37323. virtual ~RecordWriter(void);
  37324. virtual void write(Record& rec);
  37325. };
  37326. class Record {
  37327. public:
  37328. virtual std::string type(void) const = 0;
  37329. virtual std::string signature(void) const = 0;
  37330. protected:
  37331. virtual bool validate(void) const = 0;
  37332. virtual void
  37333. serialize(OArchive& oa, const std::string& tag) const = 0;
  37334. virtual void
  37335. deserialize(IArchive& ia, const std::string& tag) = 0;
  37336. };
  37337. }
  37338. </code></pre>
  37339. <ul>
  37340. <li> RecFormat: An enumeration of the serialization encodings supported
  37341. by this implementation of Hadoop.
  37342. <li> InStream: A simple abstraction for an input stream. This has a
  37343. single public read method that reads n bytes from the stream into
  37344. the buffer buf. Has the same semantics as a blocking read system
  37345. call. Returns the number of bytes read or -1 if an error occurs.
  37346. <li> OutStream: A simple abstraction for an output stream. This has a
  37347. single write method that writes n bytes to the stream from the
  37348. buffer buf. Has the same semantics as a blocking write system
  37349. call. Returns the number of bytes written or -1 if an error occurs.
  37350. <li> RecordReader: A RecordReader reads records one at a time from
  37351. an underlying stream in a specified record format. The reader is instantiated
  37352. with a stream and a serialization format. It has a read method that
  37353. takes an instance of a record and deserializes the record from the stream.
  37354. <li> RecordWriter: A RecordWriter writes records one at a
  37355. time to an underlying stream in a specified record format. The writer is
  37356. instantiated with a stream and a serialization format. It has a
  37357. write method that takes an instance of a record and serializes the
  37358. record to the stream.
  37359. <li> Record: The base class for all generated record types. This has two
  37360. public methods type and signature that return the typename and the
  37361. type signature of the record.
  37362. </ul>
  37363. Two files are generated for each record file (note: not for each record). If a
  37364. record file is named "name.jr", the generated files are
  37365. "name.jr.cc" and "name.jr.hh" containing serialization
  37366. implementations and record type declarations respectively.
  37367. For each record in the DDL file, the generated header file will contain a
  37368. class definition corresponding to the record type, method definitions for the
  37369. generated type will be present in the '.cc' file. The generated class will
  37370. inherit from the abstract class hadoop::Record. The DDL files
  37371. module declaration determines the namespace the record belongs to.
  37372. Each '.' delimited token in the module declaration results in the
  37373. creation of a namespace. For instance, the declaration module docs.links
  37374. results in the creation of a docs namespace and a nested
  37375. docs::links namespace. In the preceding examples, the Link class
  37376. is placed in the links namespace. The header file corresponding to
  37377. the links.jr file will contain:
  37378. <pre><code>
  37379. namespace links {
  37380. class Link : public hadoop::Record {
  37381. // ....
  37382. };
  37383. };
  37384. </code></pre>
  37385. Each field within the record will cause the generation of a private member
  37386. declaration of the appropriate type in the class declaration, and one or more
  37387. acccessor methods. The generated class will implement the serialize and
  37388. deserialize methods defined in hadoop::Record+. It will also
  37389. implement the inspection methods type and signature from
  37390. hadoop::Record. A default constructor and virtual destructor will also
  37391. be generated. Serialization code will read/write records into streams that
  37392. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  37393. For each member of a record an accessor method is generated that returns
  37394. either the member or a reference to the member. For members that are returned
  37395. by value, a setter method is also generated. This is true for primitive
  37396. data members of the types byte, int, long, boolean, float and
  37397. double. For example, for a int field called MyField the folowing
  37398. code is generated.
  37399. <pre><code>
  37400. ...
  37401. private:
  37402. int32_t mMyField;
  37403. ...
  37404. public:
  37405. int32_t getMyField(void) const {
  37406. return mMyField;
  37407. };
  37408. void setMyField(int32_t m) {
  37409. mMyField = m;
  37410. };
  37411. ...
  37412. </code></pre>
  37413. For a ustring or buffer or composite field. The generated code
  37414. only contains accessors that return a reference to the field. A const
  37415. and a non-const accessor are generated. For example:
  37416. <pre><code>
  37417. ...
  37418. private:
  37419. std::string mMyBuf;
  37420. ...
  37421. public:
  37422. std::string& getMyBuf() {
  37423. return mMyBuf;
  37424. };
  37425. const std::string& getMyBuf() const {
  37426. return mMyBuf;
  37427. };
  37428. ...
  37429. </code></pre>
  37430. <h4>Examples</h4>
  37431. Suppose the inclrec.jr file contains:
  37432. <pre><code>
  37433. module inclrec {
  37434. class RI {
  37435. int I32;
  37436. double D;
  37437. ustring S;
  37438. };
  37439. }
  37440. </code></pre>
  37441. and the testrec.jr file contains:
  37442. <pre><code>
  37443. include "inclrec.jr"
  37444. module testrec {
  37445. class R {
  37446. vector<float> VF;
  37447. RI Rec;
  37448. buffer Buf;
  37449. };
  37450. }
  37451. </code></pre>
  37452. Then the invocation of rcc such as:
  37453. <pre><code>
  37454. $ rcc -l c++ inclrec.jr testrec.jr
  37455. </code></pre>
  37456. will result in generation of four files:
  37457. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  37458. The inclrec.jr.hh will contain:
  37459. <pre><code>
  37460. #ifndef _INCLREC_JR_HH_
  37461. #define _INCLREC_JR_HH_
  37462. #include "recordio.hh"
  37463. namespace inclrec {
  37464. class RI : public hadoop::Record {
  37465. private:
  37466. int32_t I32;
  37467. double D;
  37468. std::string S;
  37469. public:
  37470. RI(void);
  37471. virtual ~RI(void);
  37472. virtual bool operator==(const RI& peer) const;
  37473. virtual bool operator<(const RI& peer) const;
  37474. virtual int32_t getI32(void) const { return I32; }
  37475. virtual void setI32(int32_t v) { I32 = v; }
  37476. virtual double getD(void) const { return D; }
  37477. virtual void setD(double v) { D = v; }
  37478. virtual std::string& getS(void) const { return S; }
  37479. virtual const std::string& getS(void) const { return S; }
  37480. virtual std::string type(void) const;
  37481. virtual std::string signature(void) const;
  37482. protected:
  37483. virtual void serialize(hadoop::OArchive& a) const;
  37484. virtual void deserialize(hadoop::IArchive& a);
  37485. };
  37486. } // end namespace inclrec
  37487. #endif /* _INCLREC_JR_HH_ */
  37488. </code></pre>
  37489. The testrec.jr.hh file will contain:
  37490. <pre><code>
  37491. #ifndef _TESTREC_JR_HH_
  37492. #define _TESTREC_JR_HH_
  37493. #include "inclrec.jr.hh"
  37494. namespace testrec {
  37495. class R : public hadoop::Record {
  37496. private:
  37497. std::vector<float> VF;
  37498. inclrec::RI Rec;
  37499. std::string Buf;
  37500. public:
  37501. R(void);
  37502. virtual ~R(void);
  37503. virtual bool operator==(const R& peer) const;
  37504. virtual bool operator<(const R& peer) const;
  37505. virtual std::vector<float>& getVF(void) const;
  37506. virtual const std::vector<float>& getVF(void) const;
  37507. virtual std::string& getBuf(void) const ;
  37508. virtual const std::string& getBuf(void) const;
  37509. virtual inclrec::RI& getRec(void) const;
  37510. virtual const inclrec::RI& getRec(void) const;
  37511. virtual bool serialize(hadoop::OutArchive& a) const;
  37512. virtual bool deserialize(hadoop::InArchive& a);
  37513. virtual std::string type(void) const;
  37514. virtual std::string signature(void) const;
  37515. };
  37516. }; // end namespace testrec
  37517. #endif /* _TESTREC_JR_HH_ */
  37518. </code></pre>
  37519. <h3>Java</h3>
  37520. Code generation for Java is similar to that for C++. A Java class is generated
  37521. for each record type with private members corresponding to the fields. Getters
  37522. and setters for fields are also generated. Some differences arise in the
  37523. way comparison is expressed and in the mapping of modules to packages and
  37524. classes to files. For equality testing, an equals method is generated
  37525. for each record type. As per Java requirements a hashCode method is also
  37526. generated. For comparison a compareTo method is generated for each
  37527. record type. This has the semantics as defined by the Java Comparable
  37528. interface, that is, the method returns a negative integer, zero, or a positive
  37529. integer as the invoked object is less than, equal to, or greater than the
  37530. comparison parameter.
  37531. A .java file is generated per record type as opposed to per DDL
  37532. file as in C++. The module declaration translates to a Java
  37533. package declaration. The module name maps to an identical Java package
  37534. name. In addition to this mapping, the DDL compiler creates the appropriate
  37535. directory hierarchy for the package and places the generated .java
  37536. files in the correct directories.
  37537. <h2>Mapping Summary</h2>
  37538. <pre><code>
  37539. DDL Type C++ Type Java Type
  37540. boolean bool boolean
  37541. byte int8_t byte
  37542. int int32_t int
  37543. long int64_t long
  37544. float float float
  37545. double double double
  37546. ustring std::string java.lang.String
  37547. buffer std::string org.apache.hadoop.record.Buffer
  37548. class type class type class type
  37549. vector<type> std::vector<type> java.util.ArrayList<type>
  37550. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  37551. </code></pre>
  37552. <h2>Data encodings</h2>
  37553. This section describes the format of the data encodings supported by Hadoop.
  37554. Currently, three data encodings are supported, namely binary, CSV and XML.
  37555. <h3>Binary Serialization Format</h3>
  37556. The binary data encoding format is fairly dense. Serialization of composite
  37557. types is simply defined as a concatenation of serializations of the constituent
  37558. elements (lengths are included in vectors and maps).
  37559. Composite types are serialized as follows:
  37560. <ul>
  37561. <li> class: Sequence of serialized members.
  37562. <li> vector: The number of elements serialized as an int. Followed by a
  37563. sequence of serialized elements.
  37564. <li> map: The number of key value pairs serialized as an int. Followed
  37565. by a sequence of serialized (key,value) pairs.
  37566. </ul>
  37567. Serialization of primitives is more interesting, with a zero compression
  37568. optimization for integral types and normalization to UTF-8 for strings.
  37569. Primitive types are serialized as follows:
  37570. <ul>
  37571. <li> byte: Represented by 1 byte, as is.
  37572. <li> boolean: Represented by 1-byte (0 or 1)
  37573. <li> int/long: Integers and longs are serialized zero compressed.
  37574. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  37575. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  37576. the number of trailing bytes, N, as the negative number (-120-N). For example,
  37577. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  37578. This doesn't help much for 4-byte integers but does a reasonably good job with
  37579. longs without bit twiddling.
  37580. <li> float/double: Serialized in IEEE 754 single and double precision
  37581. format in network byte order. This is the format used by Java.
  37582. <li> ustring: Serialized as 4-byte zero compressed length followed by
  37583. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  37584. language representation.
  37585. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  37586. raw bytes in the buffer.
  37587. </ul>
  37588. <h3>CSV Serialization Format</h3>
  37589. The CSV serialization format has a lot more structure than the "standard"
  37590. Excel CSV format, but we believe the additional structure is useful because
  37591. <ul>
  37592. <li> it makes parsing a lot easier without detracting too much from legibility
  37593. <li> the delimiters around composites make it obvious when one is reading a
  37594. sequence of Hadoop records
  37595. </ul>
  37596. Serialization formats for the various types are detailed in the grammar that
  37597. follows. The notable feature of the formats is the use of delimiters for
  37598. indicating the certain field types.
  37599. <ul>
  37600. <li> A string field begins with a single quote (').
  37601. <li> A buffer field begins with a sharp (#).
  37602. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  37603. ends with '}'.
  37604. </ul>
  37605. The CSV format can be described by the following grammar:
  37606. <pre><code>
  37607. record = primitive / struct / vector / map
  37608. primitive = boolean / int / long / float / double / ustring / buffer
  37609. boolean = "T" / "F"
  37610. int = ["-"] 1*DIGIT
  37611. long = ";" ["-"] 1*DIGIT
  37612. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  37613. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  37614. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  37615. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  37616. struct = "s{" record *("," record) "}"
  37617. vector = "v{" [record *("," record)] "}"
  37618. map = "m{" [*(record "," record)] "}"
  37619. </code></pre>
  37620. <h3>XML Serialization Format</h3>
  37621. The XML serialization format is the same used by Apache XML-RPC
  37622. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  37623. XML-RPC format and adds some additional data types. All record I/O types are
  37624. not directly expressible in this format, and access to a DDL is required in
  37625. order to convert these to valid types. All types primitive or composite are
  37626. represented by &lt;value&gt; elements. The particular XML-RPC type is
  37627. indicated by a nested element in the &lt;value&gt; element. The encoding for
  37628. records is always UTF-8. Primitive types are serialized as follows:
  37629. <ul>
  37630. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  37631. integers represented in US-ASCII
  37632. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  37633. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  37634. signed integers represented in US-ASCII.
  37635. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  37636. represented in US-ASCII.
  37637. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  37638. floating point numbers represented in US-ASCII.
  37639. <li> double: XML tag &lt;double&gt;. Values: Double precision
  37640. floating point numbers represented in US-ASCII.
  37641. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  37642. represented as UTF-8. XML does not permit all Unicode characters in literal
  37643. data. In particular, NULLs and control chars are not allowed. Additionally,
  37644. XML processors are required to replace carriage returns with line feeds and to
  37645. replace CRLF sequences with line feeds. Programming languages that we work
  37646. with do not impose these restrictions on string types. To work around these
  37647. restrictions, disallowed characters and CRs are percent escaped in strings.
  37648. The '%' character is also percent escaped.
  37649. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  37650. data. Represented as hexBinary, each byte is replaced by its 2-byte
  37651. hexadecimal representation.
  37652. </ul>
  37653. Composite types are serialized as follows:
  37654. <ul>
  37655. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  37656. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  37657. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  37658. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  37659. by a &lt;value&gt; element.
  37660. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  37661. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  37662. &lt;value&gt; elements each of which represents an element of the vector.
  37663. <li> map: XML tag &lt;array&gt;. Same as vector.
  37664. </ul>
  37665. For example:
  37666. <pre><code>
  37667. class {
  37668. int MY_INT; // value 5
  37669. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  37670. buffer MY_BUF; // value '\00\n\tabc%'
  37671. }
  37672. </code></pre>
  37673. is serialized as
  37674. <pre><code class="XML">
  37675. &lt;value&gt;
  37676. &lt;struct&gt;
  37677. &lt;member&gt;
  37678. &lt;name&gt;MY_INT&lt;/name&gt;
  37679. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  37680. &lt;/member&gt;
  37681. &lt;member&gt;
  37682. &lt;name&gt;MY_VEC&lt;/name&gt;
  37683. &lt;value&gt;
  37684. &lt;array&gt;
  37685. &lt;data&gt;
  37686. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  37687. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  37688. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  37689. &lt;/data&gt;
  37690. &lt;/array&gt;
  37691. &lt;/value&gt;
  37692. &lt;/member&gt;
  37693. &lt;member&gt;
  37694. &lt;name&gt;MY_BUF&lt;/name&gt;
  37695. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  37696. &lt;/member&gt;
  37697. &lt;/struct&gt;
  37698. &lt;/value&gt;
  37699. </code></pre>]]>
  37700. </doc>
  37701. </package>
  37702. <package name="org.apache.hadoop.record.compiler">
  37703. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  37704. <class name="CodeBuffer" extends="java.lang.Object"
  37705. abstract="false"
  37706. static="false" final="false" visibility="public"
  37707. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37708. <method name="toString" return="java.lang.String"
  37709. abstract="false" native="false" synchronized="false"
  37710. static="false" final="false" visibility="public"
  37711. deprecated="not deprecated">
  37712. </method>
  37713. <doc>
  37714. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  37715. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37716. </doc>
  37717. </class>
  37718. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  37719. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  37720. <class name="Consts" extends="java.lang.Object"
  37721. abstract="false"
  37722. static="false" final="false" visibility="public"
  37723. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37724. <field name="RIO_PREFIX" type="java.lang.String"
  37725. transient="false" volatile="false"
  37726. static="true" final="true" visibility="public"
  37727. deprecated="not deprecated">
  37728. </field>
  37729. <field name="RTI_VAR" type="java.lang.String"
  37730. transient="false" volatile="false"
  37731. static="true" final="true" visibility="public"
  37732. deprecated="not deprecated">
  37733. </field>
  37734. <field name="RTI_FILTER" type="java.lang.String"
  37735. transient="false" volatile="false"
  37736. static="true" final="true" visibility="public"
  37737. deprecated="not deprecated">
  37738. </field>
  37739. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  37740. transient="false" volatile="false"
  37741. static="true" final="true" visibility="public"
  37742. deprecated="not deprecated">
  37743. </field>
  37744. <field name="RECORD_OUTPUT" type="java.lang.String"
  37745. transient="false" volatile="false"
  37746. static="true" final="true" visibility="public"
  37747. deprecated="not deprecated">
  37748. </field>
  37749. <field name="RECORD_INPUT" type="java.lang.String"
  37750. transient="false" volatile="false"
  37751. static="true" final="true" visibility="public"
  37752. deprecated="not deprecated">
  37753. </field>
  37754. <field name="TAG" type="java.lang.String"
  37755. transient="false" volatile="false"
  37756. static="true" final="true" visibility="public"
  37757. deprecated="not deprecated">
  37758. </field>
  37759. <doc>
  37760. <![CDATA[const definitions for Record I/O compiler
  37761. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37762. </doc>
  37763. </class>
  37764. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  37765. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  37766. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  37767. abstract="false"
  37768. static="false" final="false" visibility="public"
  37769. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37770. <constructor name="JBoolean"
  37771. static="false" final="false" visibility="public"
  37772. deprecated="not deprecated">
  37773. <doc>
  37774. <![CDATA[Creates a new instance of JBoolean]]>
  37775. </doc>
  37776. </constructor>
  37777. <doc>
  37778. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37779. </doc>
  37780. </class>
  37781. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  37782. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  37783. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  37784. abstract="false"
  37785. static="false" final="false" visibility="public"
  37786. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37787. <constructor name="JBuffer"
  37788. static="false" final="false" visibility="public"
  37789. deprecated="not deprecated">
  37790. <doc>
  37791. <![CDATA[Creates a new instance of JBuffer]]>
  37792. </doc>
  37793. </constructor>
  37794. <doc>
  37795. <![CDATA[Code generator for "buffer" type.
  37796. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37797. </doc>
  37798. </class>
  37799. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  37800. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  37801. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  37802. abstract="false"
  37803. static="false" final="false" visibility="public"
  37804. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37805. <constructor name="JByte"
  37806. static="false" final="false" visibility="public"
  37807. deprecated="not deprecated">
  37808. </constructor>
  37809. <doc>
  37810. <![CDATA[Code generator for "byte" type.
  37811. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37812. </doc>
  37813. </class>
  37814. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  37815. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  37816. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  37817. abstract="false"
  37818. static="false" final="false" visibility="public"
  37819. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37820. <constructor name="JDouble"
  37821. static="false" final="false" visibility="public"
  37822. deprecated="not deprecated">
  37823. <doc>
  37824. <![CDATA[Creates a new instance of JDouble]]>
  37825. </doc>
  37826. </constructor>
  37827. <doc>
  37828. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37829. </doc>
  37830. </class>
  37831. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  37832. <!-- start class org.apache.hadoop.record.compiler.JField -->
  37833. <class name="JField" extends="java.lang.Object"
  37834. abstract="false"
  37835. static="false" final="false" visibility="public"
  37836. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37837. <constructor name="JField" type="java.lang.String, T"
  37838. static="false" final="false" visibility="public"
  37839. deprecated="not deprecated">
  37840. <doc>
  37841. <![CDATA[Creates a new instance of JField]]>
  37842. </doc>
  37843. </constructor>
  37844. <doc>
  37845. <![CDATA[A thin wrappper around record field.
  37846. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37847. </doc>
  37848. </class>
  37849. <!-- end class org.apache.hadoop.record.compiler.JField -->
  37850. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  37851. <class name="JFile" extends="java.lang.Object"
  37852. abstract="false"
  37853. static="false" final="false" visibility="public"
  37854. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37855. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  37856. static="false" final="false" visibility="public"
  37857. deprecated="not deprecated">
  37858. <doc>
  37859. <![CDATA[Creates a new instance of JFile
  37860. @param name possibly full pathname to the file
  37861. @param inclFiles included files (as JFile)
  37862. @param recList List of records defined within this file]]>
  37863. </doc>
  37864. </constructor>
  37865. <method name="genCode" return="int"
  37866. abstract="false" native="false" synchronized="false"
  37867. static="false" final="false" visibility="public"
  37868. deprecated="not deprecated">
  37869. <param name="language" type="java.lang.String"/>
  37870. <param name="destDir" type="java.lang.String"/>
  37871. <param name="options" type="java.util.ArrayList"/>
  37872. <exception name="IOException" type="java.io.IOException"/>
  37873. <doc>
  37874. <![CDATA[Generate record code in given language. Language should be all
  37875. lowercase.]]>
  37876. </doc>
  37877. </method>
  37878. <doc>
  37879. <![CDATA[Container for the Hadoop Record DDL.
  37880. The main components of the file are filename, list of included files,
  37881. and records defined in that file.
  37882. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37883. </doc>
  37884. </class>
  37885. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  37886. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  37887. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  37888. abstract="false"
  37889. static="false" final="false" visibility="public"
  37890. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37891. <constructor name="JFloat"
  37892. static="false" final="false" visibility="public"
  37893. deprecated="not deprecated">
  37894. <doc>
  37895. <![CDATA[Creates a new instance of JFloat]]>
  37896. </doc>
  37897. </constructor>
  37898. <doc>
  37899. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37900. </doc>
  37901. </class>
  37902. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  37903. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  37904. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  37905. abstract="false"
  37906. static="false" final="false" visibility="public"
  37907. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37908. <constructor name="JInt"
  37909. static="false" final="false" visibility="public"
  37910. deprecated="not deprecated">
  37911. <doc>
  37912. <![CDATA[Creates a new instance of JInt]]>
  37913. </doc>
  37914. </constructor>
  37915. <doc>
  37916. <![CDATA[Code generator for "int" type
  37917. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37918. </doc>
  37919. </class>
  37920. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  37921. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  37922. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  37923. abstract="false"
  37924. static="false" final="false" visibility="public"
  37925. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37926. <constructor name="JLong"
  37927. static="false" final="false" visibility="public"
  37928. deprecated="not deprecated">
  37929. <doc>
  37930. <![CDATA[Creates a new instance of JLong]]>
  37931. </doc>
  37932. </constructor>
  37933. <doc>
  37934. <![CDATA[Code generator for "long" type
  37935. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37936. </doc>
  37937. </class>
  37938. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  37939. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  37940. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  37941. abstract="false"
  37942. static="false" final="false" visibility="public"
  37943. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37944. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  37945. static="false" final="false" visibility="public"
  37946. deprecated="not deprecated">
  37947. <doc>
  37948. <![CDATA[Creates a new instance of JMap]]>
  37949. </doc>
  37950. </constructor>
  37951. <doc>
  37952. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37953. </doc>
  37954. </class>
  37955. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  37956. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  37957. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  37958. abstract="false"
  37959. static="false" final="false" visibility="public"
  37960. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37961. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  37962. static="false" final="false" visibility="public"
  37963. deprecated="not deprecated">
  37964. <doc>
  37965. <![CDATA[Creates a new instance of JRecord]]>
  37966. </doc>
  37967. </constructor>
  37968. <doc>
  37969. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37970. </doc>
  37971. </class>
  37972. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  37973. <!-- start class org.apache.hadoop.record.compiler.JString -->
  37974. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  37975. abstract="false"
  37976. static="false" final="false" visibility="public"
  37977. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37978. <constructor name="JString"
  37979. static="false" final="false" visibility="public"
  37980. deprecated="not deprecated">
  37981. <doc>
  37982. <![CDATA[Creates a new instance of JString]]>
  37983. </doc>
  37984. </constructor>
  37985. <doc>
  37986. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  37987. </doc>
  37988. </class>
  37989. <!-- end class org.apache.hadoop.record.compiler.JString -->
  37990. <!-- start class org.apache.hadoop.record.compiler.JType -->
  37991. <class name="JType" extends="java.lang.Object"
  37992. abstract="true"
  37993. static="false" final="false" visibility="public"
  37994. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  37995. <constructor name="JType"
  37996. static="false" final="false" visibility="public"
  37997. deprecated="not deprecated">
  37998. </constructor>
  37999. <doc>
  38000. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  38001. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38002. </doc>
  38003. </class>
  38004. <!-- end class org.apache.hadoop.record.compiler.JType -->
  38005. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  38006. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  38007. abstract="false"
  38008. static="false" final="false" visibility="public"
  38009. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38010. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  38011. static="false" final="false" visibility="public"
  38012. deprecated="not deprecated">
  38013. <doc>
  38014. <![CDATA[Creates a new instance of JVector]]>
  38015. </doc>
  38016. </constructor>
  38017. <doc>
  38018. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38019. </doc>
  38020. </class>
  38021. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  38022. <doc>
  38023. <![CDATA[<p>
  38024. (DEPRECATED) This package contains classes needed for code generation
  38025. from the hadoop record compiler. CppGenerator and JavaGenerator
  38026. are the main entry points from the parser. There are classes
  38027. corrsponding to every primitive type and compound type
  38028. included in Hadoop record I/O syntax.
  38029. </p>
  38030. <p>
  38031. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  38032. </p>]]>
  38033. </doc>
  38034. </package>
  38035. <package name="org.apache.hadoop.record.compiler.ant">
  38036. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  38037. <class name="RccTask" extends="org.apache.tools.ant.Task"
  38038. abstract="false"
  38039. static="false" final="false" visibility="public"
  38040. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38041. <constructor name="RccTask"
  38042. static="false" final="false" visibility="public"
  38043. deprecated="not deprecated">
  38044. <doc>
  38045. <![CDATA[Creates a new instance of RccTask]]>
  38046. </doc>
  38047. </constructor>
  38048. <method name="setLanguage"
  38049. abstract="false" native="false" synchronized="false"
  38050. static="false" final="false" visibility="public"
  38051. deprecated="not deprecated">
  38052. <param name="language" type="java.lang.String"/>
  38053. <doc>
  38054. <![CDATA[Sets the output language option
  38055. @param language "java"/"c++"]]>
  38056. </doc>
  38057. </method>
  38058. <method name="setFile"
  38059. abstract="false" native="false" synchronized="false"
  38060. static="false" final="false" visibility="public"
  38061. deprecated="not deprecated">
  38062. <param name="file" type="java.io.File"/>
  38063. <doc>
  38064. <![CDATA[Sets the record definition file attribute
  38065. @param file record definition file]]>
  38066. </doc>
  38067. </method>
  38068. <method name="setFailonerror"
  38069. abstract="false" native="false" synchronized="false"
  38070. static="false" final="false" visibility="public"
  38071. deprecated="not deprecated">
  38072. <param name="flag" type="boolean"/>
  38073. <doc>
  38074. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  38075. @param flag true will throw build exception in case of failure (default)]]>
  38076. </doc>
  38077. </method>
  38078. <method name="setDestdir"
  38079. abstract="false" native="false" synchronized="false"
  38080. static="false" final="false" visibility="public"
  38081. deprecated="not deprecated">
  38082. <param name="dir" type="java.io.File"/>
  38083. <doc>
  38084. <![CDATA[Sets directory where output files will be generated
  38085. @param dir output directory]]>
  38086. </doc>
  38087. </method>
  38088. <method name="addFileset"
  38089. abstract="false" native="false" synchronized="false"
  38090. static="false" final="false" visibility="public"
  38091. deprecated="not deprecated">
  38092. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  38093. <doc>
  38094. <![CDATA[Adds a fileset that can consist of one or more files
  38095. @param set Set of record definition files]]>
  38096. </doc>
  38097. </method>
  38098. <method name="execute"
  38099. abstract="false" native="false" synchronized="false"
  38100. static="false" final="false" visibility="public"
  38101. deprecated="not deprecated">
  38102. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  38103. <doc>
  38104. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  38105. </doc>
  38106. </method>
  38107. <doc>
  38108. <![CDATA[Hadoop record compiler ant Task
  38109. <p> This task takes the given record definition files and compiles them into
  38110. java or c++
  38111. files. It is then up to the user to compile the generated files.
  38112. <p> The task requires the <code>file</code> or the nested fileset element to be
  38113. specified. Optional attributes are <code>language</code> (set the output
  38114. language, default is "java"),
  38115. <code>destdir</code> (name of the destination directory for generated java/c++
  38116. code, default is ".") and <code>failonerror</code> (specifies error handling
  38117. behavior. default is true).
  38118. <p><h4>Usage</h4>
  38119. <pre>
  38120. &lt;recordcc
  38121. destdir="${basedir}/gensrc"
  38122. language="java"&gt;
  38123. &lt;fileset include="**\/*.jr" /&gt;
  38124. &lt;/recordcc&gt;
  38125. </pre>
  38126. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38127. </doc>
  38128. </class>
  38129. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  38130. </package>
  38131. <package name="org.apache.hadoop.record.compiler.generated">
  38132. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  38133. <class name="ParseException" extends="java.lang.Exception"
  38134. abstract="false"
  38135. static="false" final="false" visibility="public"
  38136. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38137. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  38138. static="false" final="false" visibility="public"
  38139. deprecated="not deprecated">
  38140. <doc>
  38141. <![CDATA[This constructor is used by the method "generateParseException"
  38142. in the generated parser. Calling this constructor generates
  38143. a new object of this type with the fields "currentToken",
  38144. "expectedTokenSequences", and "tokenImage" set. The boolean
  38145. flag "specialConstructor" is also set to true to indicate that
  38146. this constructor was used to create this object.
  38147. This constructor calls its super class with the empty string
  38148. to force the "toString" method of parent class "Throwable" to
  38149. print the error message in the form:
  38150. ParseException: <result of getMessage>]]>
  38151. </doc>
  38152. </constructor>
  38153. <constructor name="ParseException"
  38154. static="false" final="false" visibility="public"
  38155. deprecated="not deprecated">
  38156. <doc>
  38157. <![CDATA[The following constructors are for use by you for whatever
  38158. purpose you can think of. Constructing the exception in this
  38159. manner makes the exception behave in the normal way - i.e., as
  38160. documented in the class "Throwable". The fields "errorToken",
  38161. "expectedTokenSequences", and "tokenImage" do not contain
  38162. relevant information. The JavaCC generated code does not use
  38163. these constructors.]]>
  38164. </doc>
  38165. </constructor>
  38166. <constructor name="ParseException" type="java.lang.String"
  38167. static="false" final="false" visibility="public"
  38168. deprecated="not deprecated">
  38169. </constructor>
  38170. <method name="getMessage" return="java.lang.String"
  38171. abstract="false" native="false" synchronized="false"
  38172. static="false" final="false" visibility="public"
  38173. deprecated="not deprecated">
  38174. <doc>
  38175. <![CDATA[This method has the standard behavior when this object has been
  38176. created using the standard constructors. Otherwise, it uses
  38177. "currentToken" and "expectedTokenSequences" to generate a parse
  38178. error message and returns it. If this object has been created
  38179. due to a parse error, and you do not catch it (it gets thrown
  38180. from the parser), then this method is called during the printing
  38181. of the final stack trace, and hence the correct error message
  38182. gets displayed.]]>
  38183. </doc>
  38184. </method>
  38185. <method name="add_escapes" return="java.lang.String"
  38186. abstract="false" native="false" synchronized="false"
  38187. static="false" final="false" visibility="protected"
  38188. deprecated="not deprecated">
  38189. <param name="str" type="java.lang.String"/>
  38190. <doc>
  38191. <![CDATA[Used to convert raw characters to their escaped version
  38192. when these raw version cannot be used as part of an ASCII
  38193. string literal.]]>
  38194. </doc>
  38195. </method>
  38196. <field name="specialConstructor" type="boolean"
  38197. transient="false" volatile="false"
  38198. static="false" final="false" visibility="protected"
  38199. deprecated="not deprecated">
  38200. <doc>
  38201. <![CDATA[This variable determines which constructor was used to create
  38202. this object and thereby affects the semantics of the
  38203. "getMessage" method (see below).]]>
  38204. </doc>
  38205. </field>
  38206. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  38207. transient="false" volatile="false"
  38208. static="false" final="false" visibility="public"
  38209. deprecated="not deprecated">
  38210. <doc>
  38211. <![CDATA[This is the last token that has been consumed successfully. If
  38212. this object has been created due to a parse error, the token
  38213. followng this token will (therefore) be the first error token.]]>
  38214. </doc>
  38215. </field>
  38216. <field name="expectedTokenSequences" type="int[][]"
  38217. transient="false" volatile="false"
  38218. static="false" final="false" visibility="public"
  38219. deprecated="not deprecated">
  38220. <doc>
  38221. <![CDATA[Each entry in this array is an array of integers. Each array
  38222. of integers represents a sequence of tokens (by their ordinal
  38223. values) that is expected at this point of the parse.]]>
  38224. </doc>
  38225. </field>
  38226. <field name="tokenImage" type="java.lang.String[]"
  38227. transient="false" volatile="false"
  38228. static="false" final="false" visibility="public"
  38229. deprecated="not deprecated">
  38230. <doc>
  38231. <![CDATA[This is a reference to the "tokenImage" array of the generated
  38232. parser within which the parse error occurred. This array is
  38233. defined in the generated ...Constants interface.]]>
  38234. </doc>
  38235. </field>
  38236. <field name="eol" type="java.lang.String"
  38237. transient="false" volatile="false"
  38238. static="false" final="false" visibility="protected"
  38239. deprecated="not deprecated">
  38240. <doc>
  38241. <![CDATA[The end of line string for this machine.]]>
  38242. </doc>
  38243. </field>
  38244. <doc>
  38245. <![CDATA[This exception is thrown when parse errors are encountered.
  38246. You can explicitly create objects of this exception type by
  38247. calling the method generateParseException in the generated
  38248. parser.
  38249. You can modify this class to customize your error reporting
  38250. mechanisms so long as you retain the public fields.
  38251. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38252. </doc>
  38253. </class>
  38254. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  38255. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  38256. <class name="Rcc" extends="java.lang.Object"
  38257. abstract="false"
  38258. static="false" final="false" visibility="public"
  38259. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38260. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  38261. <constructor name="Rcc" type="java.io.InputStream"
  38262. static="false" final="false" visibility="public"
  38263. deprecated="not deprecated">
  38264. </constructor>
  38265. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  38266. static="false" final="false" visibility="public"
  38267. deprecated="not deprecated">
  38268. </constructor>
  38269. <constructor name="Rcc" type="java.io.Reader"
  38270. static="false" final="false" visibility="public"
  38271. deprecated="not deprecated">
  38272. </constructor>
  38273. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  38274. static="false" final="false" visibility="public"
  38275. deprecated="not deprecated">
  38276. </constructor>
  38277. <method name="main"
  38278. abstract="false" native="false" synchronized="false"
  38279. static="true" final="false" visibility="public"
  38280. deprecated="not deprecated">
  38281. <param name="args" type="java.lang.String[]"/>
  38282. </method>
  38283. <method name="usage"
  38284. abstract="false" native="false" synchronized="false"
  38285. static="true" final="false" visibility="public"
  38286. deprecated="not deprecated">
  38287. </method>
  38288. <method name="driver" return="int"
  38289. abstract="false" native="false" synchronized="false"
  38290. static="true" final="false" visibility="public"
  38291. deprecated="not deprecated">
  38292. <param name="args" type="java.lang.String[]"/>
  38293. </method>
  38294. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  38295. abstract="false" native="false" synchronized="false"
  38296. static="false" final="true" visibility="public"
  38297. deprecated="not deprecated">
  38298. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38299. </method>
  38300. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  38301. abstract="false" native="false" synchronized="false"
  38302. static="false" final="true" visibility="public"
  38303. deprecated="not deprecated">
  38304. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38305. </method>
  38306. <method name="Module" return="java.util.ArrayList"
  38307. abstract="false" native="false" synchronized="false"
  38308. static="false" final="true" visibility="public"
  38309. deprecated="not deprecated">
  38310. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38311. </method>
  38312. <method name="ModuleName" return="java.lang.String"
  38313. abstract="false" native="false" synchronized="false"
  38314. static="false" final="true" visibility="public"
  38315. deprecated="not deprecated">
  38316. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38317. </method>
  38318. <method name="RecordList" return="java.util.ArrayList"
  38319. abstract="false" native="false" synchronized="false"
  38320. static="false" final="true" visibility="public"
  38321. deprecated="not deprecated">
  38322. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38323. </method>
  38324. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  38325. abstract="false" native="false" synchronized="false"
  38326. static="false" final="true" visibility="public"
  38327. deprecated="not deprecated">
  38328. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38329. </method>
  38330. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  38331. abstract="false" native="false" synchronized="false"
  38332. static="false" final="true" visibility="public"
  38333. deprecated="not deprecated">
  38334. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38335. </method>
  38336. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  38337. abstract="false" native="false" synchronized="false"
  38338. static="false" final="true" visibility="public"
  38339. deprecated="not deprecated">
  38340. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38341. </method>
  38342. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  38343. abstract="false" native="false" synchronized="false"
  38344. static="false" final="true" visibility="public"
  38345. deprecated="not deprecated">
  38346. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38347. </method>
  38348. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  38349. abstract="false" native="false" synchronized="false"
  38350. static="false" final="true" visibility="public"
  38351. deprecated="not deprecated">
  38352. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38353. </method>
  38354. <method name="ReInit"
  38355. abstract="false" native="false" synchronized="false"
  38356. static="false" final="false" visibility="public"
  38357. deprecated="not deprecated">
  38358. <param name="stream" type="java.io.InputStream"/>
  38359. </method>
  38360. <method name="ReInit"
  38361. abstract="false" native="false" synchronized="false"
  38362. static="false" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. <param name="stream" type="java.io.InputStream"/>
  38365. <param name="encoding" type="java.lang.String"/>
  38366. </method>
  38367. <method name="ReInit"
  38368. abstract="false" native="false" synchronized="false"
  38369. static="false" final="false" visibility="public"
  38370. deprecated="not deprecated">
  38371. <param name="stream" type="java.io.Reader"/>
  38372. </method>
  38373. <method name="ReInit"
  38374. abstract="false" native="false" synchronized="false"
  38375. static="false" final="false" visibility="public"
  38376. deprecated="not deprecated">
  38377. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  38378. </method>
  38379. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38380. abstract="false" native="false" synchronized="false"
  38381. static="false" final="true" visibility="public"
  38382. deprecated="not deprecated">
  38383. </method>
  38384. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38385. abstract="false" native="false" synchronized="false"
  38386. static="false" final="true" visibility="public"
  38387. deprecated="not deprecated">
  38388. <param name="index" type="int"/>
  38389. </method>
  38390. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  38391. abstract="false" native="false" synchronized="false"
  38392. static="false" final="false" visibility="public"
  38393. deprecated="not deprecated">
  38394. </method>
  38395. <method name="enable_tracing"
  38396. abstract="false" native="false" synchronized="false"
  38397. static="false" final="true" visibility="public"
  38398. deprecated="not deprecated">
  38399. </method>
  38400. <method name="disable_tracing"
  38401. abstract="false" native="false" synchronized="false"
  38402. static="false" final="true" visibility="public"
  38403. deprecated="not deprecated">
  38404. </method>
  38405. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  38406. transient="false" volatile="false"
  38407. static="false" final="false" visibility="public"
  38408. deprecated="not deprecated">
  38409. </field>
  38410. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  38411. transient="false" volatile="false"
  38412. static="false" final="false" visibility="public"
  38413. deprecated="not deprecated">
  38414. </field>
  38415. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  38416. transient="false" volatile="false"
  38417. static="false" final="false" visibility="public"
  38418. deprecated="not deprecated">
  38419. </field>
  38420. <doc>
  38421. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38422. </doc>
  38423. </class>
  38424. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  38425. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  38426. <interface name="RccConstants" abstract="true"
  38427. static="false" final="false" visibility="public"
  38428. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38429. <field name="EOF" type="int"
  38430. transient="false" volatile="false"
  38431. static="true" final="true" visibility="public"
  38432. deprecated="not deprecated">
  38433. </field>
  38434. <field name="MODULE_TKN" type="int"
  38435. transient="false" volatile="false"
  38436. static="true" final="true" visibility="public"
  38437. deprecated="not deprecated">
  38438. </field>
  38439. <field name="RECORD_TKN" type="int"
  38440. transient="false" volatile="false"
  38441. static="true" final="true" visibility="public"
  38442. deprecated="not deprecated">
  38443. </field>
  38444. <field name="INCLUDE_TKN" type="int"
  38445. transient="false" volatile="false"
  38446. static="true" final="true" visibility="public"
  38447. deprecated="not deprecated">
  38448. </field>
  38449. <field name="BYTE_TKN" type="int"
  38450. transient="false" volatile="false"
  38451. static="true" final="true" visibility="public"
  38452. deprecated="not deprecated">
  38453. </field>
  38454. <field name="BOOLEAN_TKN" type="int"
  38455. transient="false" volatile="false"
  38456. static="true" final="true" visibility="public"
  38457. deprecated="not deprecated">
  38458. </field>
  38459. <field name="INT_TKN" type="int"
  38460. transient="false" volatile="false"
  38461. static="true" final="true" visibility="public"
  38462. deprecated="not deprecated">
  38463. </field>
  38464. <field name="LONG_TKN" type="int"
  38465. transient="false" volatile="false"
  38466. static="true" final="true" visibility="public"
  38467. deprecated="not deprecated">
  38468. </field>
  38469. <field name="FLOAT_TKN" type="int"
  38470. transient="false" volatile="false"
  38471. static="true" final="true" visibility="public"
  38472. deprecated="not deprecated">
  38473. </field>
  38474. <field name="DOUBLE_TKN" type="int"
  38475. transient="false" volatile="false"
  38476. static="true" final="true" visibility="public"
  38477. deprecated="not deprecated">
  38478. </field>
  38479. <field name="USTRING_TKN" type="int"
  38480. transient="false" volatile="false"
  38481. static="true" final="true" visibility="public"
  38482. deprecated="not deprecated">
  38483. </field>
  38484. <field name="BUFFER_TKN" type="int"
  38485. transient="false" volatile="false"
  38486. static="true" final="true" visibility="public"
  38487. deprecated="not deprecated">
  38488. </field>
  38489. <field name="VECTOR_TKN" type="int"
  38490. transient="false" volatile="false"
  38491. static="true" final="true" visibility="public"
  38492. deprecated="not deprecated">
  38493. </field>
  38494. <field name="MAP_TKN" type="int"
  38495. transient="false" volatile="false"
  38496. static="true" final="true" visibility="public"
  38497. deprecated="not deprecated">
  38498. </field>
  38499. <field name="LBRACE_TKN" type="int"
  38500. transient="false" volatile="false"
  38501. static="true" final="true" visibility="public"
  38502. deprecated="not deprecated">
  38503. </field>
  38504. <field name="RBRACE_TKN" type="int"
  38505. transient="false" volatile="false"
  38506. static="true" final="true" visibility="public"
  38507. deprecated="not deprecated">
  38508. </field>
  38509. <field name="LT_TKN" type="int"
  38510. transient="false" volatile="false"
  38511. static="true" final="true" visibility="public"
  38512. deprecated="not deprecated">
  38513. </field>
  38514. <field name="GT_TKN" type="int"
  38515. transient="false" volatile="false"
  38516. static="true" final="true" visibility="public"
  38517. deprecated="not deprecated">
  38518. </field>
  38519. <field name="SEMICOLON_TKN" type="int"
  38520. transient="false" volatile="false"
  38521. static="true" final="true" visibility="public"
  38522. deprecated="not deprecated">
  38523. </field>
  38524. <field name="COMMA_TKN" type="int"
  38525. transient="false" volatile="false"
  38526. static="true" final="true" visibility="public"
  38527. deprecated="not deprecated">
  38528. </field>
  38529. <field name="DOT_TKN" type="int"
  38530. transient="false" volatile="false"
  38531. static="true" final="true" visibility="public"
  38532. deprecated="not deprecated">
  38533. </field>
  38534. <field name="CSTRING_TKN" type="int"
  38535. transient="false" volatile="false"
  38536. static="true" final="true" visibility="public"
  38537. deprecated="not deprecated">
  38538. </field>
  38539. <field name="IDENT_TKN" type="int"
  38540. transient="false" volatile="false"
  38541. static="true" final="true" visibility="public"
  38542. deprecated="not deprecated">
  38543. </field>
  38544. <field name="DEFAULT" type="int"
  38545. transient="false" volatile="false"
  38546. static="true" final="true" visibility="public"
  38547. deprecated="not deprecated">
  38548. </field>
  38549. <field name="WithinOneLineComment" type="int"
  38550. transient="false" volatile="false"
  38551. static="true" final="true" visibility="public"
  38552. deprecated="not deprecated">
  38553. </field>
  38554. <field name="WithinMultiLineComment" type="int"
  38555. transient="false" volatile="false"
  38556. static="true" final="true" visibility="public"
  38557. deprecated="not deprecated">
  38558. </field>
  38559. <field name="tokenImage" type="java.lang.String[]"
  38560. transient="false" volatile="false"
  38561. static="true" final="true" visibility="public"
  38562. deprecated="not deprecated">
  38563. </field>
  38564. <doc>
  38565. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38566. </doc>
  38567. </interface>
  38568. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  38569. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  38570. <class name="RccTokenManager" extends="java.lang.Object"
  38571. abstract="false"
  38572. static="false" final="false" visibility="public"
  38573. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38574. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  38575. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  38576. static="false" final="false" visibility="public"
  38577. deprecated="not deprecated">
  38578. </constructor>
  38579. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  38580. static="false" final="false" visibility="public"
  38581. deprecated="not deprecated">
  38582. </constructor>
  38583. <method name="setDebugStream"
  38584. abstract="false" native="false" synchronized="false"
  38585. static="false" final="false" visibility="public"
  38586. deprecated="not deprecated">
  38587. <param name="ds" type="java.io.PrintStream"/>
  38588. </method>
  38589. <method name="ReInit"
  38590. abstract="false" native="false" synchronized="false"
  38591. static="false" final="false" visibility="public"
  38592. deprecated="not deprecated">
  38593. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  38594. </method>
  38595. <method name="ReInit"
  38596. abstract="false" native="false" synchronized="false"
  38597. static="false" final="false" visibility="public"
  38598. deprecated="not deprecated">
  38599. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  38600. <param name="lexState" type="int"/>
  38601. </method>
  38602. <method name="SwitchTo"
  38603. abstract="false" native="false" synchronized="false"
  38604. static="false" final="false" visibility="public"
  38605. deprecated="not deprecated">
  38606. <param name="lexState" type="int"/>
  38607. </method>
  38608. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38609. abstract="false" native="false" synchronized="false"
  38610. static="false" final="false" visibility="protected"
  38611. deprecated="not deprecated">
  38612. </method>
  38613. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38614. abstract="false" native="false" synchronized="false"
  38615. static="false" final="false" visibility="public"
  38616. deprecated="not deprecated">
  38617. </method>
  38618. <field name="debugStream" type="java.io.PrintStream"
  38619. transient="false" volatile="false"
  38620. static="false" final="false" visibility="public"
  38621. deprecated="not deprecated">
  38622. </field>
  38623. <field name="jjstrLiteralImages" type="java.lang.String[]"
  38624. transient="false" volatile="false"
  38625. static="true" final="true" visibility="public"
  38626. deprecated="not deprecated">
  38627. </field>
  38628. <field name="lexStateNames" type="java.lang.String[]"
  38629. transient="false" volatile="false"
  38630. static="true" final="true" visibility="public"
  38631. deprecated="not deprecated">
  38632. </field>
  38633. <field name="jjnewLexState" type="int[]"
  38634. transient="false" volatile="false"
  38635. static="true" final="true" visibility="public"
  38636. deprecated="not deprecated">
  38637. </field>
  38638. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  38639. transient="false" volatile="false"
  38640. static="false" final="false" visibility="protected"
  38641. deprecated="not deprecated">
  38642. </field>
  38643. <field name="curChar" type="char"
  38644. transient="false" volatile="false"
  38645. static="false" final="false" visibility="protected"
  38646. deprecated="not deprecated">
  38647. </field>
  38648. <doc>
  38649. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38650. </doc>
  38651. </class>
  38652. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  38653. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  38654. <class name="SimpleCharStream" extends="java.lang.Object"
  38655. abstract="false"
  38656. static="false" final="false" visibility="public"
  38657. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38658. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  38659. static="false" final="false" visibility="public"
  38660. deprecated="not deprecated">
  38661. </constructor>
  38662. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  38663. static="false" final="false" visibility="public"
  38664. deprecated="not deprecated">
  38665. </constructor>
  38666. <constructor name="SimpleCharStream" type="java.io.Reader"
  38667. static="false" final="false" visibility="public"
  38668. deprecated="not deprecated">
  38669. </constructor>
  38670. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  38671. static="false" final="false" visibility="public"
  38672. deprecated="not deprecated">
  38673. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38674. </constructor>
  38675. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  38676. static="false" final="false" visibility="public"
  38677. deprecated="not deprecated">
  38678. </constructor>
  38679. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  38680. static="false" final="false" visibility="public"
  38681. deprecated="not deprecated">
  38682. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38683. </constructor>
  38684. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  38685. static="false" final="false" visibility="public"
  38686. deprecated="not deprecated">
  38687. </constructor>
  38688. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  38689. static="false" final="false" visibility="public"
  38690. deprecated="not deprecated">
  38691. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38692. </constructor>
  38693. <constructor name="SimpleCharStream" type="java.io.InputStream"
  38694. static="false" final="false" visibility="public"
  38695. deprecated="not deprecated">
  38696. </constructor>
  38697. <method name="setTabSize"
  38698. abstract="false" native="false" synchronized="false"
  38699. static="false" final="false" visibility="protected"
  38700. deprecated="not deprecated">
  38701. <param name="i" type="int"/>
  38702. </method>
  38703. <method name="getTabSize" return="int"
  38704. abstract="false" native="false" synchronized="false"
  38705. static="false" final="false" visibility="protected"
  38706. deprecated="not deprecated">
  38707. <param name="i" type="int"/>
  38708. </method>
  38709. <method name="ExpandBuff"
  38710. abstract="false" native="false" synchronized="false"
  38711. static="false" final="false" visibility="protected"
  38712. deprecated="not deprecated">
  38713. <param name="wrapAround" type="boolean"/>
  38714. </method>
  38715. <method name="FillBuff"
  38716. abstract="false" native="false" synchronized="false"
  38717. static="false" final="false" visibility="protected"
  38718. deprecated="not deprecated">
  38719. <exception name="IOException" type="java.io.IOException"/>
  38720. </method>
  38721. <method name="BeginToken" return="char"
  38722. abstract="false" native="false" synchronized="false"
  38723. static="false" final="false" visibility="public"
  38724. deprecated="not deprecated">
  38725. <exception name="IOException" type="java.io.IOException"/>
  38726. </method>
  38727. <method name="UpdateLineColumn"
  38728. abstract="false" native="false" synchronized="false"
  38729. static="false" final="false" visibility="protected"
  38730. deprecated="not deprecated">
  38731. <param name="c" type="char"/>
  38732. </method>
  38733. <method name="readChar" return="char"
  38734. abstract="false" native="false" synchronized="false"
  38735. static="false" final="false" visibility="public"
  38736. deprecated="not deprecated">
  38737. <exception name="IOException" type="java.io.IOException"/>
  38738. </method>
  38739. <method name="getEndColumn" return="int"
  38740. abstract="false" native="false" synchronized="false"
  38741. static="false" final="false" visibility="public"
  38742. deprecated="not deprecated">
  38743. </method>
  38744. <method name="getEndLine" return="int"
  38745. abstract="false" native="false" synchronized="false"
  38746. static="false" final="false" visibility="public"
  38747. deprecated="not deprecated">
  38748. </method>
  38749. <method name="getBeginColumn" return="int"
  38750. abstract="false" native="false" synchronized="false"
  38751. static="false" final="false" visibility="public"
  38752. deprecated="not deprecated">
  38753. </method>
  38754. <method name="getBeginLine" return="int"
  38755. abstract="false" native="false" synchronized="false"
  38756. static="false" final="false" visibility="public"
  38757. deprecated="not deprecated">
  38758. </method>
  38759. <method name="backup"
  38760. abstract="false" native="false" synchronized="false"
  38761. static="false" final="false" visibility="public"
  38762. deprecated="not deprecated">
  38763. <param name="amount" type="int"/>
  38764. </method>
  38765. <method name="ReInit"
  38766. abstract="false" native="false" synchronized="false"
  38767. static="false" final="false" visibility="public"
  38768. deprecated="not deprecated">
  38769. <param name="dstream" type="java.io.Reader"/>
  38770. <param name="startline" type="int"/>
  38771. <param name="startcolumn" type="int"/>
  38772. <param name="buffersize" type="int"/>
  38773. </method>
  38774. <method name="ReInit"
  38775. abstract="false" native="false" synchronized="false"
  38776. static="false" final="false" visibility="public"
  38777. deprecated="not deprecated">
  38778. <param name="dstream" type="java.io.Reader"/>
  38779. <param name="startline" type="int"/>
  38780. <param name="startcolumn" type="int"/>
  38781. </method>
  38782. <method name="ReInit"
  38783. abstract="false" native="false" synchronized="false"
  38784. static="false" final="false" visibility="public"
  38785. deprecated="not deprecated">
  38786. <param name="dstream" type="java.io.Reader"/>
  38787. </method>
  38788. <method name="ReInit"
  38789. abstract="false" native="false" synchronized="false"
  38790. static="false" final="false" visibility="public"
  38791. deprecated="not deprecated">
  38792. <param name="dstream" type="java.io.InputStream"/>
  38793. <param name="encoding" type="java.lang.String"/>
  38794. <param name="startline" type="int"/>
  38795. <param name="startcolumn" type="int"/>
  38796. <param name="buffersize" type="int"/>
  38797. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38798. </method>
  38799. <method name="ReInit"
  38800. abstract="false" native="false" synchronized="false"
  38801. static="false" final="false" visibility="public"
  38802. deprecated="not deprecated">
  38803. <param name="dstream" type="java.io.InputStream"/>
  38804. <param name="startline" type="int"/>
  38805. <param name="startcolumn" type="int"/>
  38806. <param name="buffersize" type="int"/>
  38807. </method>
  38808. <method name="ReInit"
  38809. abstract="false" native="false" synchronized="false"
  38810. static="false" final="false" visibility="public"
  38811. deprecated="not deprecated">
  38812. <param name="dstream" type="java.io.InputStream"/>
  38813. <param name="encoding" type="java.lang.String"/>
  38814. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38815. </method>
  38816. <method name="ReInit"
  38817. abstract="false" native="false" synchronized="false"
  38818. static="false" final="false" visibility="public"
  38819. deprecated="not deprecated">
  38820. <param name="dstream" type="java.io.InputStream"/>
  38821. </method>
  38822. <method name="ReInit"
  38823. abstract="false" native="false" synchronized="false"
  38824. static="false" final="false" visibility="public"
  38825. deprecated="not deprecated">
  38826. <param name="dstream" type="java.io.InputStream"/>
  38827. <param name="encoding" type="java.lang.String"/>
  38828. <param name="startline" type="int"/>
  38829. <param name="startcolumn" type="int"/>
  38830. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38831. </method>
  38832. <method name="ReInit"
  38833. abstract="false" native="false" synchronized="false"
  38834. static="false" final="false" visibility="public"
  38835. deprecated="not deprecated">
  38836. <param name="dstream" type="java.io.InputStream"/>
  38837. <param name="startline" type="int"/>
  38838. <param name="startcolumn" type="int"/>
  38839. </method>
  38840. <method name="GetImage" return="java.lang.String"
  38841. abstract="false" native="false" synchronized="false"
  38842. static="false" final="false" visibility="public"
  38843. deprecated="not deprecated">
  38844. </method>
  38845. <method name="GetSuffix" return="char[]"
  38846. abstract="false" native="false" synchronized="false"
  38847. static="false" final="false" visibility="public"
  38848. deprecated="not deprecated">
  38849. <param name="len" type="int"/>
  38850. </method>
  38851. <method name="Done"
  38852. abstract="false" native="false" synchronized="false"
  38853. static="false" final="false" visibility="public"
  38854. deprecated="not deprecated">
  38855. </method>
  38856. <method name="adjustBeginLineColumn"
  38857. abstract="false" native="false" synchronized="false"
  38858. static="false" final="false" visibility="public"
  38859. deprecated="not deprecated">
  38860. <param name="newLine" type="int"/>
  38861. <param name="newCol" type="int"/>
  38862. <doc>
  38863. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  38864. </doc>
  38865. </method>
  38866. <field name="staticFlag" type="boolean"
  38867. transient="false" volatile="false"
  38868. static="true" final="true" visibility="public"
  38869. deprecated="not deprecated">
  38870. </field>
  38871. <field name="bufpos" type="int"
  38872. transient="false" volatile="false"
  38873. static="false" final="false" visibility="public"
  38874. deprecated="not deprecated">
  38875. </field>
  38876. <field name="bufline" type="int[]"
  38877. transient="false" volatile="false"
  38878. static="false" final="false" visibility="protected"
  38879. deprecated="not deprecated">
  38880. </field>
  38881. <field name="bufcolumn" type="int[]"
  38882. transient="false" volatile="false"
  38883. static="false" final="false" visibility="protected"
  38884. deprecated="not deprecated">
  38885. </field>
  38886. <field name="column" type="int"
  38887. transient="false" volatile="false"
  38888. static="false" final="false" visibility="protected"
  38889. deprecated="not deprecated">
  38890. </field>
  38891. <field name="line" type="int"
  38892. transient="false" volatile="false"
  38893. static="false" final="false" visibility="protected"
  38894. deprecated="not deprecated">
  38895. </field>
  38896. <field name="prevCharIsCR" type="boolean"
  38897. transient="false" volatile="false"
  38898. static="false" final="false" visibility="protected"
  38899. deprecated="not deprecated">
  38900. </field>
  38901. <field name="prevCharIsLF" type="boolean"
  38902. transient="false" volatile="false"
  38903. static="false" final="false" visibility="protected"
  38904. deprecated="not deprecated">
  38905. </field>
  38906. <field name="inputStream" type="java.io.Reader"
  38907. transient="false" volatile="false"
  38908. static="false" final="false" visibility="protected"
  38909. deprecated="not deprecated">
  38910. </field>
  38911. <field name="buffer" type="char[]"
  38912. transient="false" volatile="false"
  38913. static="false" final="false" visibility="protected"
  38914. deprecated="not deprecated">
  38915. </field>
  38916. <field name="maxNextCharInd" type="int"
  38917. transient="false" volatile="false"
  38918. static="false" final="false" visibility="protected"
  38919. deprecated="not deprecated">
  38920. </field>
  38921. <field name="inBuf" type="int"
  38922. transient="false" volatile="false"
  38923. static="false" final="false" visibility="protected"
  38924. deprecated="not deprecated">
  38925. </field>
  38926. <field name="tabSize" type="int"
  38927. transient="false" volatile="false"
  38928. static="false" final="false" visibility="protected"
  38929. deprecated="not deprecated">
  38930. </field>
  38931. <doc>
  38932. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  38933. contain only ASCII characters (without unicode processing).
  38934. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  38935. </doc>
  38936. </class>
  38937. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  38938. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  38939. <class name="Token" extends="java.lang.Object"
  38940. abstract="false"
  38941. static="false" final="false" visibility="public"
  38942. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  38943. <constructor name="Token"
  38944. static="false" final="false" visibility="public"
  38945. deprecated="not deprecated">
  38946. </constructor>
  38947. <method name="toString" return="java.lang.String"
  38948. abstract="false" native="false" synchronized="false"
  38949. static="false" final="false" visibility="public"
  38950. deprecated="not deprecated">
  38951. <doc>
  38952. <![CDATA[Returns the image.]]>
  38953. </doc>
  38954. </method>
  38955. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38956. abstract="false" native="false" synchronized="false"
  38957. static="true" final="true" visibility="public"
  38958. deprecated="not deprecated">
  38959. <param name="ofKind" type="int"/>
  38960. <doc>
  38961. <![CDATA[Returns a new Token object, by default. However, if you want, you
  38962. can create and return subclass objects based on the value of ofKind.
  38963. Simply add the cases to the switch for all those special cases.
  38964. For example, if you have a subclass of Token called IDToken that
  38965. you want to create if ofKind is ID, simlpy add something like :
  38966. case MyParserConstants.ID : return new IDToken();
  38967. to the following switch statement. Then you can cast matchedToken
  38968. variable to the appropriate type and use it in your lexical actions.]]>
  38969. </doc>
  38970. </method>
  38971. <field name="kind" type="int"
  38972. transient="false" volatile="false"
  38973. static="false" final="false" visibility="public"
  38974. deprecated="not deprecated">
  38975. <doc>
  38976. <![CDATA[An integer that describes the kind of this token. This numbering
  38977. system is determined by JavaCCParser, and a table of these numbers is
  38978. stored in the file ...Constants.java.]]>
  38979. </doc>
  38980. </field>
  38981. <field name="beginLine" type="int"
  38982. transient="false" volatile="false"
  38983. static="false" final="false" visibility="public"
  38984. deprecated="not deprecated">
  38985. <doc>
  38986. <![CDATA[beginLine and beginColumn describe the position of the first character
  38987. of this token; endLine and endColumn describe the position of the
  38988. last character of this token.]]>
  38989. </doc>
  38990. </field>
  38991. <field name="beginColumn" type="int"
  38992. transient="false" volatile="false"
  38993. static="false" final="false" visibility="public"
  38994. deprecated="not deprecated">
  38995. <doc>
  38996. <![CDATA[beginLine and beginColumn describe the position of the first character
  38997. of this token; endLine and endColumn describe the position of the
  38998. last character of this token.]]>
  38999. </doc>
  39000. </field>
  39001. <field name="endLine" type="int"
  39002. transient="false" volatile="false"
  39003. static="false" final="false" visibility="public"
  39004. deprecated="not deprecated">
  39005. <doc>
  39006. <![CDATA[beginLine and beginColumn describe the position of the first character
  39007. of this token; endLine and endColumn describe the position of the
  39008. last character of this token.]]>
  39009. </doc>
  39010. </field>
  39011. <field name="endColumn" type="int"
  39012. transient="false" volatile="false"
  39013. static="false" final="false" visibility="public"
  39014. deprecated="not deprecated">
  39015. <doc>
  39016. <![CDATA[beginLine and beginColumn describe the position of the first character
  39017. of this token; endLine and endColumn describe the position of the
  39018. last character of this token.]]>
  39019. </doc>
  39020. </field>
  39021. <field name="image" type="java.lang.String"
  39022. transient="false" volatile="false"
  39023. static="false" final="false" visibility="public"
  39024. deprecated="not deprecated">
  39025. <doc>
  39026. <![CDATA[The string image of the token.]]>
  39027. </doc>
  39028. </field>
  39029. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  39030. transient="false" volatile="false"
  39031. static="false" final="false" visibility="public"
  39032. deprecated="not deprecated">
  39033. <doc>
  39034. <![CDATA[A reference to the next regular (non-special) token from the input
  39035. stream. If this is the last token from the input stream, or if the
  39036. token manager has not read tokens beyond this one, this field is
  39037. set to null. This is true only if this token is also a regular
  39038. token. Otherwise, see below for a description of the contents of
  39039. this field.]]>
  39040. </doc>
  39041. </field>
  39042. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  39043. transient="false" volatile="false"
  39044. static="false" final="false" visibility="public"
  39045. deprecated="not deprecated">
  39046. <doc>
  39047. <![CDATA[This field is used to access special tokens that occur prior to this
  39048. token, but after the immediately preceding regular (non-special) token.
  39049. If there are no such special tokens, this field is set to null.
  39050. When there are more than one such special token, this field refers
  39051. to the last of these special tokens, which in turn refers to the next
  39052. previous special token through its specialToken field, and so on
  39053. until the first special token (whose specialToken field is null).
  39054. The next fields of special tokens refer to other special tokens that
  39055. immediately follow it (without an intervening regular token). If there
  39056. is no such token, this field is null.]]>
  39057. </doc>
  39058. </field>
  39059. <doc>
  39060. <![CDATA[Describes the input token stream.
  39061. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39062. </doc>
  39063. </class>
  39064. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  39065. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  39066. <class name="TokenMgrError" extends="java.lang.Error"
  39067. abstract="false"
  39068. static="false" final="false" visibility="public"
  39069. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39070. <constructor name="TokenMgrError"
  39071. static="false" final="false" visibility="public"
  39072. deprecated="not deprecated">
  39073. </constructor>
  39074. <constructor name="TokenMgrError" type="java.lang.String, int"
  39075. static="false" final="false" visibility="public"
  39076. deprecated="not deprecated">
  39077. </constructor>
  39078. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  39079. static="false" final="false" visibility="public"
  39080. deprecated="not deprecated">
  39081. </constructor>
  39082. <method name="addEscapes" return="java.lang.String"
  39083. abstract="false" native="false" synchronized="false"
  39084. static="true" final="true" visibility="protected"
  39085. deprecated="not deprecated">
  39086. <param name="str" type="java.lang.String"/>
  39087. <doc>
  39088. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  39089. equivalents in the given string]]>
  39090. </doc>
  39091. </method>
  39092. <method name="LexicalError" return="java.lang.String"
  39093. abstract="false" native="false" synchronized="false"
  39094. static="true" final="false" visibility="protected"
  39095. deprecated="not deprecated">
  39096. <param name="EOFSeen" type="boolean"/>
  39097. <param name="lexState" type="int"/>
  39098. <param name="errorLine" type="int"/>
  39099. <param name="errorColumn" type="int"/>
  39100. <param name="errorAfter" type="java.lang.String"/>
  39101. <param name="curChar" type="char"/>
  39102. <doc>
  39103. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  39104. token manager to indicate a lexical error.
  39105. Parameters :
  39106. EOFSeen : indicates if EOF caused the lexicl error
  39107. curLexState : lexical state in which this error occured
  39108. errorLine : line number when the error occured
  39109. errorColumn : column number when the error occured
  39110. errorAfter : prefix that was seen before this error occured
  39111. curchar : the offending character
  39112. Note: You can customize the lexical error message by modifying this method.]]>
  39113. </doc>
  39114. </method>
  39115. <method name="getMessage" return="java.lang.String"
  39116. abstract="false" native="false" synchronized="false"
  39117. static="false" final="false" visibility="public"
  39118. deprecated="not deprecated">
  39119. <doc>
  39120. <![CDATA[You can also modify the body of this method to customize your error messages.
  39121. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  39122. of end-users concern, so you can return something like :
  39123. "Internal Error : Please file a bug report .... "
  39124. from this method for such cases in the release version of your parser.]]>
  39125. </doc>
  39126. </method>
  39127. <doc>
  39128. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39129. </doc>
  39130. </class>
  39131. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  39132. <doc>
  39133. <![CDATA[<p>
  39134. (DEPRECATED) This package contains code generated by JavaCC from the
  39135. Hadoop record syntax file rcc.jj. For details about the
  39136. record file syntax please @see org.apache.hadoop.record.
  39137. </p>
  39138. <p>
  39139. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  39140. </p>]]>
  39141. </doc>
  39142. </package>
  39143. <package name="org.apache.hadoop.record.meta">
  39144. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  39145. <class name="FieldTypeInfo" extends="java.lang.Object"
  39146. abstract="false"
  39147. static="false" final="false" visibility="public"
  39148. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39149. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39150. abstract="false" native="false" synchronized="false"
  39151. static="false" final="false" visibility="public"
  39152. deprecated="not deprecated">
  39153. <doc>
  39154. <![CDATA[get the field's TypeID object]]>
  39155. </doc>
  39156. </method>
  39157. <method name="getFieldID" return="java.lang.String"
  39158. abstract="false" native="false" synchronized="false"
  39159. static="false" final="false" visibility="public"
  39160. deprecated="not deprecated">
  39161. <doc>
  39162. <![CDATA[get the field's id (name)]]>
  39163. </doc>
  39164. </method>
  39165. <method name="equals" return="boolean"
  39166. abstract="false" native="false" synchronized="false"
  39167. static="false" final="false" visibility="public"
  39168. deprecated="not deprecated">
  39169. <param name="o" type="java.lang.Object"/>
  39170. <doc>
  39171. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  39172. </doc>
  39173. </method>
  39174. <method name="hashCode" return="int"
  39175. abstract="false" native="false" synchronized="false"
  39176. static="false" final="false" visibility="public"
  39177. deprecated="not deprecated">
  39178. <doc>
  39179. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39180. be used as a hashmap key]]>
  39181. </doc>
  39182. </method>
  39183. <method name="equals" return="boolean"
  39184. abstract="false" native="false" synchronized="false"
  39185. static="false" final="false" visibility="public"
  39186. deprecated="not deprecated">
  39187. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  39188. </method>
  39189. <doc>
  39190. <![CDATA[Represents a type information for a field, which is made up of its
  39191. ID (name) and its type (a TypeID object).
  39192. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39193. </doc>
  39194. </class>
  39195. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  39196. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  39197. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39198. abstract="false"
  39199. static="false" final="false" visibility="public"
  39200. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39201. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  39202. static="false" final="false" visibility="public"
  39203. deprecated="not deprecated">
  39204. </constructor>
  39205. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39206. abstract="false" native="false" synchronized="false"
  39207. static="false" final="false" visibility="public"
  39208. deprecated="not deprecated">
  39209. <doc>
  39210. <![CDATA[get the TypeID of the map's key element]]>
  39211. </doc>
  39212. </method>
  39213. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39214. abstract="false" native="false" synchronized="false"
  39215. static="false" final="false" visibility="public"
  39216. deprecated="not deprecated">
  39217. <doc>
  39218. <![CDATA[get the TypeID of the map's value element]]>
  39219. </doc>
  39220. </method>
  39221. <method name="equals" return="boolean"
  39222. abstract="false" native="false" synchronized="false"
  39223. static="false" final="false" visibility="public"
  39224. deprecated="not deprecated">
  39225. <param name="o" type="java.lang.Object"/>
  39226. <doc>
  39227. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  39228. same type]]>
  39229. </doc>
  39230. </method>
  39231. <method name="hashCode" return="int"
  39232. abstract="false" native="false" synchronized="false"
  39233. static="false" final="false" visibility="public"
  39234. deprecated="not deprecated">
  39235. <doc>
  39236. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39237. be used as a hashmap key]]>
  39238. </doc>
  39239. </method>
  39240. <doc>
  39241. <![CDATA[Represents typeID for a Map
  39242. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39243. </doc>
  39244. </class>
  39245. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  39246. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  39247. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  39248. abstract="false"
  39249. static="false" final="false" visibility="public"
  39250. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39251. <constructor name="RecordTypeInfo"
  39252. static="false" final="false" visibility="public"
  39253. deprecated="not deprecated">
  39254. <doc>
  39255. <![CDATA[Create an empty RecordTypeInfo object.]]>
  39256. </doc>
  39257. </constructor>
  39258. <constructor name="RecordTypeInfo" type="java.lang.String"
  39259. static="false" final="false" visibility="public"
  39260. deprecated="not deprecated">
  39261. <doc>
  39262. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  39263. @param name Name of the record]]>
  39264. </doc>
  39265. </constructor>
  39266. <method name="getName" return="java.lang.String"
  39267. abstract="false" native="false" synchronized="false"
  39268. static="false" final="false" visibility="public"
  39269. deprecated="not deprecated">
  39270. <doc>
  39271. <![CDATA[return the name of the record]]>
  39272. </doc>
  39273. </method>
  39274. <method name="setName"
  39275. abstract="false" native="false" synchronized="false"
  39276. static="false" final="false" visibility="public"
  39277. deprecated="not deprecated">
  39278. <param name="name" type="java.lang.String"/>
  39279. <doc>
  39280. <![CDATA[set the name of the record]]>
  39281. </doc>
  39282. </method>
  39283. <method name="addField"
  39284. abstract="false" native="false" synchronized="false"
  39285. static="false" final="false" visibility="public"
  39286. deprecated="not deprecated">
  39287. <param name="fieldName" type="java.lang.String"/>
  39288. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  39289. <doc>
  39290. <![CDATA[Add a field.
  39291. @param fieldName Name of the field
  39292. @param tid Type ID of the field]]>
  39293. </doc>
  39294. </method>
  39295. <method name="getFieldTypeInfos" return="java.util.Collection"
  39296. abstract="false" native="false" synchronized="false"
  39297. static="false" final="false" visibility="public"
  39298. deprecated="not deprecated">
  39299. <doc>
  39300. <![CDATA[Return a collection of field type infos]]>
  39301. </doc>
  39302. </method>
  39303. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  39304. abstract="false" native="false" synchronized="false"
  39305. static="false" final="false" visibility="public"
  39306. deprecated="not deprecated">
  39307. <param name="name" type="java.lang.String"/>
  39308. <doc>
  39309. <![CDATA[Return the type info of a nested record. We only consider nesting
  39310. to one level.
  39311. @param name Name of the nested record]]>
  39312. </doc>
  39313. </method>
  39314. <method name="serialize"
  39315. abstract="false" native="false" synchronized="false"
  39316. static="false" final="false" visibility="public"
  39317. deprecated="not deprecated">
  39318. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  39319. <param name="tag" type="java.lang.String"/>
  39320. <exception name="IOException" type="java.io.IOException"/>
  39321. <doc>
  39322. <![CDATA[Serialize the type information for a record]]>
  39323. </doc>
  39324. </method>
  39325. <method name="deserialize"
  39326. abstract="false" native="false" synchronized="false"
  39327. static="false" final="false" visibility="public"
  39328. deprecated="not deprecated">
  39329. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  39330. <param name="tag" type="java.lang.String"/>
  39331. <exception name="IOException" type="java.io.IOException"/>
  39332. <doc>
  39333. <![CDATA[Deserialize the type information for a record]]>
  39334. </doc>
  39335. </method>
  39336. <method name="compareTo" return="int"
  39337. abstract="false" native="false" synchronized="false"
  39338. static="false" final="false" visibility="public"
  39339. deprecated="not deprecated">
  39340. <param name="peer_" type="java.lang.Object"/>
  39341. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  39342. <doc>
  39343. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  39344. for anything besides de/serializing.
  39345. So we always throw an exception.
  39346. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  39347. </doc>
  39348. </method>
  39349. <doc>
  39350. <![CDATA[A record's Type Information object which can read/write itself.
  39351. Type information for a record comprises metadata about the record,
  39352. as well as a collection of type information for each field in the record.
  39353. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39354. </doc>
  39355. </class>
  39356. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  39357. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  39358. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39359. abstract="false"
  39360. static="false" final="false" visibility="public"
  39361. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39362. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  39363. static="false" final="false" visibility="public"
  39364. deprecated="not deprecated">
  39365. <doc>
  39366. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  39367. </doc>
  39368. </constructor>
  39369. <method name="getFieldTypeInfos" return="java.util.Collection"
  39370. abstract="false" native="false" synchronized="false"
  39371. static="false" final="false" visibility="public"
  39372. deprecated="not deprecated">
  39373. </method>
  39374. <method name="equals" return="boolean"
  39375. abstract="false" native="false" synchronized="false"
  39376. static="false" final="false" visibility="public"
  39377. deprecated="not deprecated">
  39378. <param name="o" type="java.lang.Object"/>
  39379. </method>
  39380. <method name="hashCode" return="int"
  39381. abstract="false" native="false" synchronized="false"
  39382. static="false" final="false" visibility="public"
  39383. deprecated="not deprecated">
  39384. </method>
  39385. <doc>
  39386. <![CDATA[Represents typeID for a struct
  39387. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39388. </doc>
  39389. </class>
  39390. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  39391. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  39392. <class name="TypeID" extends="java.lang.Object"
  39393. abstract="false"
  39394. static="false" final="false" visibility="public"
  39395. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39396. <method name="getTypeVal" return="byte"
  39397. abstract="false" native="false" synchronized="false"
  39398. static="false" final="false" visibility="public"
  39399. deprecated="not deprecated">
  39400. <doc>
  39401. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  39402. </doc>
  39403. </method>
  39404. <method name="equals" return="boolean"
  39405. abstract="false" native="false" synchronized="false"
  39406. static="false" final="false" visibility="public"
  39407. deprecated="not deprecated">
  39408. <param name="o" type="java.lang.Object"/>
  39409. <doc>
  39410. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  39411. </doc>
  39412. </method>
  39413. <method name="hashCode" return="int"
  39414. abstract="false" native="false" synchronized="false"
  39415. static="false" final="false" visibility="public"
  39416. deprecated="not deprecated">
  39417. <doc>
  39418. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39419. be used as a hashmap key]]>
  39420. </doc>
  39421. </method>
  39422. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39423. transient="false" volatile="false"
  39424. static="true" final="true" visibility="public"
  39425. deprecated="not deprecated">
  39426. <doc>
  39427. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  39428. </doc>
  39429. </field>
  39430. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39431. transient="false" volatile="false"
  39432. static="true" final="true" visibility="public"
  39433. deprecated="not deprecated">
  39434. </field>
  39435. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39436. transient="false" volatile="false"
  39437. static="true" final="true" visibility="public"
  39438. deprecated="not deprecated">
  39439. </field>
  39440. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39441. transient="false" volatile="false"
  39442. static="true" final="true" visibility="public"
  39443. deprecated="not deprecated">
  39444. </field>
  39445. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39446. transient="false" volatile="false"
  39447. static="true" final="true" visibility="public"
  39448. deprecated="not deprecated">
  39449. </field>
  39450. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39451. transient="false" volatile="false"
  39452. static="true" final="true" visibility="public"
  39453. deprecated="not deprecated">
  39454. </field>
  39455. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39456. transient="false" volatile="false"
  39457. static="true" final="true" visibility="public"
  39458. deprecated="not deprecated">
  39459. </field>
  39460. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39461. transient="false" volatile="false"
  39462. static="true" final="true" visibility="public"
  39463. deprecated="not deprecated">
  39464. </field>
  39465. <field name="typeVal" type="byte"
  39466. transient="false" volatile="false"
  39467. static="false" final="false" visibility="protected"
  39468. deprecated="not deprecated">
  39469. </field>
  39470. <doc>
  39471. <![CDATA[Represents typeID for basic types.
  39472. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39473. </doc>
  39474. </class>
  39475. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  39476. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  39477. <class name="TypeID.RIOType" extends="java.lang.Object"
  39478. abstract="false"
  39479. static="true" final="true" visibility="public"
  39480. deprecated="not deprecated">
  39481. <constructor name="RIOType"
  39482. static="false" final="false" visibility="public"
  39483. deprecated="not deprecated">
  39484. </constructor>
  39485. <field name="BOOL" type="byte"
  39486. transient="false" volatile="false"
  39487. static="true" final="true" visibility="public"
  39488. deprecated="not deprecated">
  39489. </field>
  39490. <field name="BUFFER" type="byte"
  39491. transient="false" volatile="false"
  39492. static="true" final="true" visibility="public"
  39493. deprecated="not deprecated">
  39494. </field>
  39495. <field name="BYTE" type="byte"
  39496. transient="false" volatile="false"
  39497. static="true" final="true" visibility="public"
  39498. deprecated="not deprecated">
  39499. </field>
  39500. <field name="DOUBLE" type="byte"
  39501. transient="false" volatile="false"
  39502. static="true" final="true" visibility="public"
  39503. deprecated="not deprecated">
  39504. </field>
  39505. <field name="FLOAT" type="byte"
  39506. transient="false" volatile="false"
  39507. static="true" final="true" visibility="public"
  39508. deprecated="not deprecated">
  39509. </field>
  39510. <field name="INT" type="byte"
  39511. transient="false" volatile="false"
  39512. static="true" final="true" visibility="public"
  39513. deprecated="not deprecated">
  39514. </field>
  39515. <field name="LONG" type="byte"
  39516. transient="false" volatile="false"
  39517. static="true" final="true" visibility="public"
  39518. deprecated="not deprecated">
  39519. </field>
  39520. <field name="MAP" type="byte"
  39521. transient="false" volatile="false"
  39522. static="true" final="true" visibility="public"
  39523. deprecated="not deprecated">
  39524. </field>
  39525. <field name="STRING" type="byte"
  39526. transient="false" volatile="false"
  39527. static="true" final="true" visibility="public"
  39528. deprecated="not deprecated">
  39529. </field>
  39530. <field name="STRUCT" type="byte"
  39531. transient="false" volatile="false"
  39532. static="true" final="true" visibility="public"
  39533. deprecated="not deprecated">
  39534. </field>
  39535. <field name="VECTOR" type="byte"
  39536. transient="false" volatile="false"
  39537. static="true" final="true" visibility="public"
  39538. deprecated="not deprecated">
  39539. </field>
  39540. <doc>
  39541. <![CDATA[constants representing the IDL types we support]]>
  39542. </doc>
  39543. </class>
  39544. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  39545. <!-- start class org.apache.hadoop.record.meta.Utils -->
  39546. <class name="Utils" extends="java.lang.Object"
  39547. abstract="false"
  39548. static="false" final="false" visibility="public"
  39549. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39550. <method name="skip"
  39551. abstract="false" native="false" synchronized="false"
  39552. static="true" final="false" visibility="public"
  39553. deprecated="not deprecated">
  39554. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  39555. <param name="tag" type="java.lang.String"/>
  39556. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  39557. <exception name="IOException" type="java.io.IOException"/>
  39558. <doc>
  39559. <![CDATA[read/skip bytes from stream based on a type]]>
  39560. </doc>
  39561. </method>
  39562. <doc>
  39563. <![CDATA[Various utility functions for Hadooop record I/O platform.
  39564. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39565. </doc>
  39566. </class>
  39567. <!-- end class org.apache.hadoop.record.meta.Utils -->
  39568. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  39569. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39570. abstract="false"
  39571. static="false" final="false" visibility="public"
  39572. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  39573. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39574. static="false" final="false" visibility="public"
  39575. deprecated="not deprecated">
  39576. </constructor>
  39577. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39578. abstract="false" native="false" synchronized="false"
  39579. static="false" final="false" visibility="public"
  39580. deprecated="not deprecated">
  39581. </method>
  39582. <method name="equals" return="boolean"
  39583. abstract="false" native="false" synchronized="false"
  39584. static="false" final="false" visibility="public"
  39585. deprecated="not deprecated">
  39586. <param name="o" type="java.lang.Object"/>
  39587. <doc>
  39588. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  39589. same type]]>
  39590. </doc>
  39591. </method>
  39592. <method name="hashCode" return="int"
  39593. abstract="false" native="false" synchronized="false"
  39594. static="false" final="false" visibility="public"
  39595. deprecated="not deprecated">
  39596. <doc>
  39597. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39598. be used as a hashmap key]]>
  39599. </doc>
  39600. </method>
  39601. <doc>
  39602. <![CDATA[Represents typeID for vector.
  39603. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  39604. </doc>
  39605. </class>
  39606. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  39607. </package>
  39608. <package name="org.apache.hadoop.security">
  39609. <!-- start class org.apache.hadoop.security.AnnotatedSecurityInfo -->
  39610. <class name="AnnotatedSecurityInfo" extends="org.apache.hadoop.security.SecurityInfo"
  39611. abstract="false"
  39612. static="false" final="false" visibility="public"
  39613. deprecated="not deprecated">
  39614. <constructor name="AnnotatedSecurityInfo"
  39615. static="false" final="false" visibility="public"
  39616. deprecated="not deprecated">
  39617. </constructor>
  39618. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  39619. abstract="false" native="false" synchronized="false"
  39620. static="false" final="false" visibility="public"
  39621. deprecated="not deprecated">
  39622. <param name="protocol" type="java.lang.Class"/>
  39623. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39624. </method>
  39625. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  39626. abstract="false" native="false" synchronized="false"
  39627. static="false" final="false" visibility="public"
  39628. deprecated="not deprecated">
  39629. <param name="protocol" type="java.lang.Class"/>
  39630. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39631. </method>
  39632. <doc>
  39633. <![CDATA[Constructs SecurityInfo from Annotations provided in protocol interface.]]>
  39634. </doc>
  39635. </class>
  39636. <!-- end class org.apache.hadoop.security.AnnotatedSecurityInfo -->
  39637. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  39638. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  39639. abstract="false"
  39640. static="false" final="false" visibility="public"
  39641. deprecated="not deprecated">
  39642. <constructor name="AuthenticationFilterInitializer"
  39643. static="false" final="false" visibility="public"
  39644. deprecated="not deprecated">
  39645. </constructor>
  39646. <method name="initFilter"
  39647. abstract="false" native="false" synchronized="false"
  39648. static="false" final="false" visibility="public"
  39649. deprecated="not deprecated">
  39650. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  39651. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39652. <doc>
  39653. <![CDATA[Initializes hadoop-auth AuthenticationFilter.
  39654. <p/>
  39655. Propagates to hadoop-auth AuthenticationFilter configuration all Hadoop
  39656. configuration properties prefixed with "hadoop.http.authentication."
  39657. @param container The filter container
  39658. @param conf Configuration for run-time parameters]]>
  39659. </doc>
  39660. </method>
  39661. <method name="getFilterConfigMap" return="java.util.Map"
  39662. abstract="false" native="false" synchronized="false"
  39663. static="true" final="false" visibility="public"
  39664. deprecated="not deprecated">
  39665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39666. <param name="prefix" type="java.lang.String"/>
  39667. </method>
  39668. <doc>
  39669. <![CDATA[Initializes hadoop-auth AuthenticationFilter which provides support for
  39670. Kerberos HTTP SPNEGO authentication.
  39671. <p/>
  39672. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  39673. authentication for Hadoop JobTracker, NameNode, DataNodes and
  39674. TaskTrackers.
  39675. <p/>
  39676. Refer to the <code>core-default.xml</code> file, after the comment
  39677. 'HTTP Authentication' for details on the configuration options.
  39678. All related configuration properties have 'hadoop.http.authentication.'
  39679. as prefix.]]>
  39680. </doc>
  39681. </class>
  39682. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  39683. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  39684. <interface name="GroupMappingServiceProvider" abstract="true"
  39685. static="false" final="false" visibility="public"
  39686. deprecated="not deprecated">
  39687. <method name="getGroups" return="java.util.List"
  39688. abstract="true" native="false" synchronized="false"
  39689. static="false" final="false" visibility="public"
  39690. deprecated="not deprecated">
  39691. <param name="user" type="java.lang.String"/>
  39692. <exception name="IOException" type="java.io.IOException"/>
  39693. <doc>
  39694. <![CDATA[Get all various group memberships of a given user.
  39695. Returns EMPTY list in case of non-existing user
  39696. @param user User's name
  39697. @return group memberships of user
  39698. @throws IOException]]>
  39699. </doc>
  39700. </method>
  39701. <method name="cacheGroupsRefresh"
  39702. abstract="true" native="false" synchronized="false"
  39703. static="false" final="false" visibility="public"
  39704. deprecated="not deprecated">
  39705. <exception name="IOException" type="java.io.IOException"/>
  39706. <doc>
  39707. <![CDATA[Refresh the cache of groups and user mapping
  39708. @throws IOException]]>
  39709. </doc>
  39710. </method>
  39711. <method name="cacheGroupsAdd"
  39712. abstract="true" native="false" synchronized="false"
  39713. static="false" final="false" visibility="public"
  39714. deprecated="not deprecated">
  39715. <param name="groups" type="java.util.List"/>
  39716. <exception name="IOException" type="java.io.IOException"/>
  39717. <doc>
  39718. <![CDATA[Caches the group user information
  39719. @param groups list of groups to add to cache
  39720. @throws IOException]]>
  39721. </doc>
  39722. </method>
  39723. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  39724. transient="false" volatile="false"
  39725. static="true" final="true" visibility="public"
  39726. deprecated="not deprecated">
  39727. </field>
  39728. <doc>
  39729. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  39730. used by {@link Groups}.]]>
  39731. </doc>
  39732. </interface>
  39733. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  39734. <!-- start class org.apache.hadoop.security.HttpCrossOriginFilterInitializer -->
  39735. <class name="HttpCrossOriginFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  39736. abstract="false"
  39737. static="false" final="false" visibility="public"
  39738. deprecated="not deprecated">
  39739. <constructor name="HttpCrossOriginFilterInitializer"
  39740. static="false" final="false" visibility="public"
  39741. deprecated="not deprecated">
  39742. </constructor>
  39743. <method name="initFilter"
  39744. abstract="false" native="false" synchronized="false"
  39745. static="false" final="false" visibility="public"
  39746. deprecated="not deprecated">
  39747. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  39748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39749. </method>
  39750. <method name="getFilterParameters" return="java.util.Map"
  39751. abstract="false" native="false" synchronized="false"
  39752. static="true" final="false" visibility="protected"
  39753. deprecated="not deprecated">
  39754. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39755. <param name="prefix" type="java.lang.String"/>
  39756. </method>
  39757. <method name="getPrefix" return="java.lang.String"
  39758. abstract="false" native="false" synchronized="false"
  39759. static="false" final="false" visibility="protected"
  39760. deprecated="not deprecated">
  39761. </method>
  39762. <method name="getEnabledConfigKey" return="java.lang.String"
  39763. abstract="false" native="false" synchronized="false"
  39764. static="false" final="false" visibility="protected"
  39765. deprecated="not deprecated">
  39766. </method>
  39767. <field name="PREFIX" type="java.lang.String"
  39768. transient="false" volatile="false"
  39769. static="true" final="true" visibility="public"
  39770. deprecated="not deprecated">
  39771. </field>
  39772. <field name="ENABLED_SUFFIX" type="java.lang.String"
  39773. transient="false" volatile="false"
  39774. static="true" final="true" visibility="public"
  39775. deprecated="not deprecated">
  39776. </field>
  39777. </class>
  39778. <!-- end class org.apache.hadoop.security.HttpCrossOriginFilterInitializer -->
  39779. <!-- start class org.apache.hadoop.security.IdMappingConstant -->
  39780. <class name="IdMappingConstant" extends="java.lang.Object"
  39781. abstract="false"
  39782. static="false" final="false" visibility="public"
  39783. deprecated="not deprecated">
  39784. <constructor name="IdMappingConstant"
  39785. static="false" final="false" visibility="public"
  39786. deprecated="not deprecated">
  39787. </constructor>
  39788. <field name="USERGROUPID_UPDATE_MILLIS_KEY" type="java.lang.String"
  39789. transient="false" volatile="false"
  39790. static="true" final="true" visibility="public"
  39791. deprecated="not deprecated">
  39792. <doc>
  39793. <![CDATA[Do user/group update every 15 minutes by default, minimum 1 minute]]>
  39794. </doc>
  39795. </field>
  39796. <field name="USERGROUPID_UPDATE_MILLIS_DEFAULT" type="long"
  39797. transient="false" volatile="false"
  39798. static="true" final="true" visibility="public"
  39799. deprecated="not deprecated">
  39800. </field>
  39801. <field name="USERGROUPID_UPDATE_MILLIS_MIN" type="long"
  39802. transient="false" volatile="false"
  39803. static="true" final="true" visibility="public"
  39804. deprecated="not deprecated">
  39805. </field>
  39806. <field name="UNKNOWN_USER" type="java.lang.String"
  39807. transient="false" volatile="false"
  39808. static="true" final="true" visibility="public"
  39809. deprecated="not deprecated">
  39810. </field>
  39811. <field name="UNKNOWN_GROUP" type="java.lang.String"
  39812. transient="false" volatile="false"
  39813. static="true" final="true" visibility="public"
  39814. deprecated="not deprecated">
  39815. </field>
  39816. <field name="STATIC_ID_MAPPING_FILE_KEY" type="java.lang.String"
  39817. transient="false" volatile="false"
  39818. static="true" final="true" visibility="public"
  39819. deprecated="not deprecated">
  39820. </field>
  39821. <field name="STATIC_ID_MAPPING_FILE_DEFAULT" type="java.lang.String"
  39822. transient="false" volatile="false"
  39823. static="true" final="true" visibility="public"
  39824. deprecated="not deprecated">
  39825. </field>
  39826. <doc>
  39827. <![CDATA[Some constants for IdMapping]]>
  39828. </doc>
  39829. </class>
  39830. <!-- end class org.apache.hadoop.security.IdMappingConstant -->
  39831. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  39832. <interface name="IdMappingServiceProvider" abstract="true"
  39833. static="false" final="false" visibility="public"
  39834. deprecated="not deprecated">
  39835. <method name="getUid" return="int"
  39836. abstract="true" native="false" synchronized="false"
  39837. static="false" final="false" visibility="public"
  39838. deprecated="not deprecated">
  39839. <param name="user" type="java.lang.String"/>
  39840. <exception name="IOException" type="java.io.IOException"/>
  39841. </method>
  39842. <method name="getGid" return="int"
  39843. abstract="true" native="false" synchronized="false"
  39844. static="false" final="false" visibility="public"
  39845. deprecated="not deprecated">
  39846. <param name="group" type="java.lang.String"/>
  39847. <exception name="IOException" type="java.io.IOException"/>
  39848. </method>
  39849. <method name="getUserName" return="java.lang.String"
  39850. abstract="true" native="false" synchronized="false"
  39851. static="false" final="false" visibility="public"
  39852. deprecated="not deprecated">
  39853. <param name="uid" type="int"/>
  39854. <param name="unknown" type="java.lang.String"/>
  39855. </method>
  39856. <method name="getGroupName" return="java.lang.String"
  39857. abstract="true" native="false" synchronized="false"
  39858. static="false" final="false" visibility="public"
  39859. deprecated="not deprecated">
  39860. <param name="gid" type="int"/>
  39861. <param name="unknown" type="java.lang.String"/>
  39862. </method>
  39863. <method name="getUidAllowingUnknown" return="int"
  39864. abstract="true" native="false" synchronized="false"
  39865. static="false" final="false" visibility="public"
  39866. deprecated="not deprecated">
  39867. <param name="user" type="java.lang.String"/>
  39868. </method>
  39869. <method name="getGidAllowingUnknown" return="int"
  39870. abstract="true" native="false" synchronized="false"
  39871. static="false" final="false" visibility="public"
  39872. deprecated="not deprecated">
  39873. <param name="group" type="java.lang.String"/>
  39874. </method>
  39875. <doc>
  39876. <![CDATA[An interface for the implementation of <userId, userName> mapping
  39877. and <groupId, groupName> mapping]]>
  39878. </doc>
  39879. </interface>
  39880. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  39881. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  39882. <class name="JniBasedUnixGroupsMappingWithFallback" extends="java.lang.Object"
  39883. abstract="false"
  39884. static="false" final="false" visibility="public"
  39885. deprecated="not deprecated">
  39886. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  39887. <constructor name="JniBasedUnixGroupsMappingWithFallback"
  39888. static="false" final="false" visibility="public"
  39889. deprecated="not deprecated">
  39890. </constructor>
  39891. <method name="getGroups" return="java.util.List"
  39892. abstract="false" native="false" synchronized="false"
  39893. static="false" final="false" visibility="public"
  39894. deprecated="not deprecated">
  39895. <param name="user" type="java.lang.String"/>
  39896. <exception name="IOException" type="java.io.IOException"/>
  39897. </method>
  39898. <method name="cacheGroupsRefresh"
  39899. abstract="false" native="false" synchronized="false"
  39900. static="false" final="false" visibility="public"
  39901. deprecated="not deprecated">
  39902. <exception name="IOException" type="java.io.IOException"/>
  39903. </method>
  39904. <method name="cacheGroupsAdd"
  39905. abstract="false" native="false" synchronized="false"
  39906. static="false" final="false" visibility="public"
  39907. deprecated="not deprecated">
  39908. <param name="groups" type="java.util.List"/>
  39909. <exception name="IOException" type="java.io.IOException"/>
  39910. </method>
  39911. </class>
  39912. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  39913. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  39914. <class name="JniBasedUnixGroupsNetgroupMappingWithFallback" extends="java.lang.Object"
  39915. abstract="false"
  39916. static="false" final="false" visibility="public"
  39917. deprecated="not deprecated">
  39918. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  39919. <constructor name="JniBasedUnixGroupsNetgroupMappingWithFallback"
  39920. static="false" final="false" visibility="public"
  39921. deprecated="not deprecated">
  39922. </constructor>
  39923. <method name="getGroups" return="java.util.List"
  39924. abstract="false" native="false" synchronized="false"
  39925. static="false" final="false" visibility="public"
  39926. deprecated="not deprecated">
  39927. <param name="user" type="java.lang.String"/>
  39928. <exception name="IOException" type="java.io.IOException"/>
  39929. </method>
  39930. <method name="cacheGroupsRefresh"
  39931. abstract="false" native="false" synchronized="false"
  39932. static="false" final="false" visibility="public"
  39933. deprecated="not deprecated">
  39934. <exception name="IOException" type="java.io.IOException"/>
  39935. </method>
  39936. <method name="cacheGroupsAdd"
  39937. abstract="false" native="false" synchronized="false"
  39938. static="false" final="false" visibility="public"
  39939. deprecated="not deprecated">
  39940. <param name="groups" type="java.util.List"/>
  39941. <exception name="IOException" type="java.io.IOException"/>
  39942. </method>
  39943. </class>
  39944. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  39945. <!-- start class org.apache.hadoop.security.ProviderUtils -->
  39946. <class name="ProviderUtils" extends="java.lang.Object"
  39947. abstract="false"
  39948. static="false" final="false" visibility="public"
  39949. deprecated="not deprecated">
  39950. <constructor name="ProviderUtils"
  39951. static="false" final="false" visibility="public"
  39952. deprecated="not deprecated">
  39953. </constructor>
  39954. <method name="unnestUri" return="org.apache.hadoop.fs.Path"
  39955. abstract="false" native="false" synchronized="false"
  39956. static="true" final="false" visibility="public"
  39957. deprecated="not deprecated">
  39958. <param name="nestedUri" type="java.net.URI"/>
  39959. <doc>
  39960. <![CDATA[Convert a nested URI to decode the underlying path. The translation takes
  39961. the authority and parses it into the underlying scheme and authority.
  39962. For example, "myscheme://hdfs@nn/my/path" is converted to
  39963. "hdfs://nn/my/path".
  39964. @param nestedUri the URI from the nested URI
  39965. @return the unnested path]]>
  39966. </doc>
  39967. </method>
  39968. </class>
  39969. <!-- end class org.apache.hadoop.security.ProviderUtils -->
  39970. <!-- start class org.apache.hadoop.security.SaslPlainServer.SaslPlainServerFactory -->
  39971. <class name="SaslPlainServer.SaslPlainServerFactory" extends="java.lang.Object"
  39972. abstract="false"
  39973. static="true" final="false" visibility="public"
  39974. deprecated="not deprecated">
  39975. <implements name="javax.security.sasl.SaslServerFactory"/>
  39976. <constructor name="SaslPlainServerFactory"
  39977. static="false" final="false" visibility="public"
  39978. deprecated="not deprecated">
  39979. </constructor>
  39980. <method name="createSaslServer" return="javax.security.sasl.SaslServer"
  39981. abstract="false" native="false" synchronized="false"
  39982. static="false" final="false" visibility="public"
  39983. deprecated="not deprecated">
  39984. <param name="mechanism" type="java.lang.String"/>
  39985. <param name="protocol" type="java.lang.String"/>
  39986. <param name="serverName" type="java.lang.String"/>
  39987. <param name="props" type="java.util.Map"/>
  39988. <param name="cbh" type="javax.security.auth.callback.CallbackHandler"/>
  39989. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  39990. </method>
  39991. <method name="getMechanismNames" return="java.lang.String[]"
  39992. abstract="false" native="false" synchronized="false"
  39993. static="false" final="false" visibility="public"
  39994. deprecated="not deprecated">
  39995. <param name="props" type="java.util.Map"/>
  39996. </method>
  39997. </class>
  39998. <!-- end class org.apache.hadoop.security.SaslPlainServer.SaslPlainServerFactory -->
  39999. <!-- start class org.apache.hadoop.security.SaslPlainServer.SecurityProvider -->
  40000. <class name="SaslPlainServer.SecurityProvider" extends="java.security.Provider"
  40001. abstract="false"
  40002. static="true" final="false" visibility="public"
  40003. deprecated="not deprecated">
  40004. <constructor name="SecurityProvider"
  40005. static="false" final="false" visibility="public"
  40006. deprecated="not deprecated">
  40007. </constructor>
  40008. </class>
  40009. <!-- end class org.apache.hadoop.security.SaslPlainServer.SecurityProvider -->
  40010. <!-- start class org.apache.hadoop.security.SaslPropertiesResolver -->
  40011. <class name="SaslPropertiesResolver" extends="java.lang.Object"
  40012. abstract="false"
  40013. static="false" final="false" visibility="public"
  40014. deprecated="not deprecated">
  40015. <implements name="org.apache.hadoop.conf.Configurable"/>
  40016. <constructor name="SaslPropertiesResolver"
  40017. static="false" final="false" visibility="public"
  40018. deprecated="not deprecated">
  40019. </constructor>
  40020. <method name="getInstance" return="org.apache.hadoop.security.SaslPropertiesResolver"
  40021. abstract="false" native="false" synchronized="false"
  40022. static="true" final="false" visibility="public"
  40023. deprecated="not deprecated">
  40024. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40025. <doc>
  40026. <![CDATA[Returns an instance of SaslPropertiesResolver.
  40027. Looks up the configuration to see if there is custom class specified.
  40028. Constructs the instance by passing the configuration directly to the
  40029. constructor to achieve thread safety using final fields.
  40030. @param conf
  40031. @return SaslPropertiesResolver]]>
  40032. </doc>
  40033. </method>
  40034. <method name="setConf"
  40035. abstract="false" native="false" synchronized="false"
  40036. static="false" final="false" visibility="public"
  40037. deprecated="not deprecated">
  40038. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40039. </method>
  40040. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  40041. abstract="false" native="false" synchronized="false"
  40042. static="false" final="false" visibility="public"
  40043. deprecated="not deprecated">
  40044. </method>
  40045. <method name="getDefaultProperties" return="java.util.Map"
  40046. abstract="false" native="false" synchronized="false"
  40047. static="false" final="false" visibility="public"
  40048. deprecated="not deprecated">
  40049. <doc>
  40050. <![CDATA[The default Sasl Properties read from the configuration
  40051. @return sasl Properties]]>
  40052. </doc>
  40053. </method>
  40054. <method name="getServerProperties" return="java.util.Map"
  40055. abstract="false" native="false" synchronized="false"
  40056. static="false" final="false" visibility="public"
  40057. deprecated="not deprecated">
  40058. <param name="clientAddress" type="java.net.InetAddress"/>
  40059. <doc>
  40060. <![CDATA[Identify the Sasl Properties to be used for a connection with a client.
  40061. @param clientAddress client's address
  40062. @return the sasl properties to be used for the connection.]]>
  40063. </doc>
  40064. </method>
  40065. <method name="getClientProperties" return="java.util.Map"
  40066. abstract="false" native="false" synchronized="false"
  40067. static="false" final="false" visibility="public"
  40068. deprecated="not deprecated">
  40069. <param name="serverAddress" type="java.net.InetAddress"/>
  40070. <doc>
  40071. <![CDATA[Identify the Sasl Properties to be used for a connection with a server.
  40072. @param serverAddress server's address
  40073. @return the sasl properties to be used for the connection.]]>
  40074. </doc>
  40075. </method>
  40076. <doc>
  40077. <![CDATA[Provides SaslProperties to be used for a connection.
  40078. The default implementation is to read the values from configuration.
  40079. This class can be overridden to provide custom SaslProperties.
  40080. The custom class can be specified via configuration.]]>
  40081. </doc>
  40082. </class>
  40083. <!-- end class org.apache.hadoop.security.SaslPropertiesResolver -->
  40084. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  40085. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  40086. abstract="false"
  40087. static="true" final="true" visibility="public"
  40088. deprecated="not deprecated">
  40089. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  40090. abstract="false" native="false" synchronized="false"
  40091. static="true" final="false" visibility="public"
  40092. deprecated="not deprecated">
  40093. </method>
  40094. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  40095. abstract="false" native="false" synchronized="false"
  40096. static="true" final="false" visibility="public"
  40097. deprecated="not deprecated">
  40098. <param name="name" type="java.lang.String"/>
  40099. </method>
  40100. <method name="getMechanismName" return="java.lang.String"
  40101. abstract="false" native="false" synchronized="false"
  40102. static="false" final="false" visibility="public"
  40103. deprecated="not deprecated">
  40104. <doc>
  40105. <![CDATA[Return the SASL mechanism name]]>
  40106. </doc>
  40107. </method>
  40108. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  40109. abstract="false" native="false" synchronized="false"
  40110. static="true" final="false" visibility="public"
  40111. deprecated="not deprecated">
  40112. <param name="in" type="java.io.DataInput"/>
  40113. <exception name="IOException" type="java.io.IOException"/>
  40114. <doc>
  40115. <![CDATA[Read from in]]>
  40116. </doc>
  40117. </method>
  40118. <method name="write"
  40119. abstract="false" native="false" synchronized="false"
  40120. static="false" final="false" visibility="public"
  40121. deprecated="not deprecated">
  40122. <param name="out" type="java.io.DataOutput"/>
  40123. <exception name="IOException" type="java.io.IOException"/>
  40124. <doc>
  40125. <![CDATA[Write to out]]>
  40126. </doc>
  40127. </method>
  40128. <field name="code" type="byte"
  40129. transient="false" volatile="false"
  40130. static="false" final="true" visibility="public"
  40131. deprecated="not deprecated">
  40132. <doc>
  40133. <![CDATA[The code for this method.]]>
  40134. </doc>
  40135. </field>
  40136. <field name="mechanismName" type="java.lang.String"
  40137. transient="false" volatile="false"
  40138. static="false" final="true" visibility="public"
  40139. deprecated="not deprecated">
  40140. </field>
  40141. <doc>
  40142. <![CDATA[Authentication method]]>
  40143. </doc>
  40144. </class>
  40145. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  40146. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  40147. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  40148. abstract="false"
  40149. static="true" final="true" visibility="public"
  40150. deprecated="not deprecated">
  40151. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  40152. abstract="false" native="false" synchronized="false"
  40153. static="true" final="false" visibility="public"
  40154. deprecated="not deprecated">
  40155. </method>
  40156. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  40157. abstract="false" native="false" synchronized="false"
  40158. static="true" final="false" visibility="public"
  40159. deprecated="not deprecated">
  40160. <param name="name" type="java.lang.String"/>
  40161. </method>
  40162. <method name="getSaslQop" return="java.lang.String"
  40163. abstract="false" native="false" synchronized="false"
  40164. static="false" final="false" visibility="public"
  40165. deprecated="not deprecated">
  40166. </method>
  40167. <field name="saslQop" type="java.lang.String"
  40168. transient="false" volatile="false"
  40169. static="false" final="true" visibility="public"
  40170. deprecated="not deprecated">
  40171. </field>
  40172. </class>
  40173. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  40174. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  40175. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  40176. abstract="false"
  40177. static="true" final="false" visibility="public"
  40178. deprecated="not deprecated">
  40179. <implements name="javax.security.auth.callback.CallbackHandler"/>
  40180. <constructor name="SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  40181. static="false" final="false" visibility="public"
  40182. deprecated="not deprecated">
  40183. </constructor>
  40184. <method name="handle"
  40185. abstract="false" native="false" synchronized="false"
  40186. static="false" final="false" visibility="public"
  40187. deprecated="not deprecated">
  40188. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  40189. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  40190. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  40191. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  40192. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  40193. <exception name="IOException" type="java.io.IOException"/>
  40194. </method>
  40195. <doc>
  40196. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  40197. </doc>
  40198. </class>
  40199. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  40200. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  40201. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  40202. abstract="false"
  40203. static="true" final="false" visibility="public"
  40204. deprecated="not deprecated">
  40205. <implements name="javax.security.auth.callback.CallbackHandler"/>
  40206. <constructor name="SaslGssCallbackHandler"
  40207. static="false" final="false" visibility="public"
  40208. deprecated="not deprecated">
  40209. </constructor>
  40210. <method name="handle"
  40211. abstract="false" native="false" synchronized="false"
  40212. static="false" final="false" visibility="public"
  40213. deprecated="not deprecated">
  40214. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  40215. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  40216. </method>
  40217. <doc>
  40218. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  40219. </doc>
  40220. </class>
  40221. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  40222. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  40223. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  40224. abstract="false"
  40225. static="true" final="false" visibility="protected"
  40226. deprecated="not deprecated">
  40227. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  40228. <constructor name="QualifiedHostResolver"
  40229. static="false" final="false" visibility="protected"
  40230. deprecated="not deprecated">
  40231. </constructor>
  40232. <method name="getByName" return="java.net.InetAddress"
  40233. abstract="false" native="false" synchronized="false"
  40234. static="false" final="false" visibility="public"
  40235. deprecated="not deprecated">
  40236. <param name="host" type="java.lang.String"/>
  40237. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  40238. <doc>
  40239. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  40240. hostname. InetAddress does not qualify an incomplete hostname that
  40241. is resolved via the domain search list.
  40242. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  40243. hostname, but it always return the A record whereas the given hostname
  40244. may be a CNAME.
  40245. @param host a hostname or ip address
  40246. @return InetAddress with the fully qualified hostname or ip
  40247. @throws UnknownHostException if host does not exist]]>
  40248. </doc>
  40249. </method>
  40250. <doc>
  40251. <![CDATA[This an alternate resolver with important properties that the standard
  40252. java resolver lacks:
  40253. 1) The hostname is fully qualified. This avoids security issues if not
  40254. all hosts in the cluster do not share the same search domains. It
  40255. also prevents other hosts from performing unnecessary dns searches.
  40256. In contrast, InetAddress simply returns the host as given.
  40257. 2) The InetAddress is instantiated with an exact host and IP to prevent
  40258. further unnecessary lookups. InetAddress may perform an unnecessary
  40259. reverse lookup for an IP.
  40260. 3) A call to getHostName() will always return the qualified hostname, or
  40261. more importantly, the IP if instantiated with an IP. This avoids
  40262. unnecessary dns timeouts if the host is not resolvable.
  40263. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  40264. connection re-attempt, that a reverse lookup to host and forward
  40265. lookup to IP is not performed since the reverse/forward mappings may
  40266. not always return the same IP. If the client initiated a connection
  40267. with an IP, then that IP is all that should ever be contacted.
  40268. NOTE: this resolver is only used if:
  40269. hadoop.security.token.service.use_ip=false]]>
  40270. </doc>
  40271. </class>
  40272. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  40273. <!-- start class org.apache.hadoop.security.ShellBasedIdMapping -->
  40274. <class name="ShellBasedIdMapping" extends="java.lang.Object"
  40275. abstract="false"
  40276. static="false" final="false" visibility="public"
  40277. deprecated="not deprecated">
  40278. <implements name="org.apache.hadoop.security.IdMappingServiceProvider"/>
  40279. <constructor name="ShellBasedIdMapping" type="org.apache.hadoop.conf.Configuration, boolean"
  40280. static="false" final="false" visibility="public"
  40281. deprecated="not deprecated">
  40282. <exception name="IOException" type="java.io.IOException"/>
  40283. </constructor>
  40284. <constructor name="ShellBasedIdMapping" type="org.apache.hadoop.conf.Configuration"
  40285. static="false" final="false" visibility="public"
  40286. deprecated="not deprecated">
  40287. <exception name="IOException" type="java.io.IOException"/>
  40288. </constructor>
  40289. <method name="getTimeout" return="long"
  40290. abstract="false" native="false" synchronized="false"
  40291. static="false" final="false" visibility="public"
  40292. deprecated="not deprecated">
  40293. </method>
  40294. <method name="getUidNameMap" return="com.google.common.collect.BiMap"
  40295. abstract="false" native="false" synchronized="false"
  40296. static="false" final="false" visibility="public"
  40297. deprecated="not deprecated">
  40298. </method>
  40299. <method name="getGidNameMap" return="com.google.common.collect.BiMap"
  40300. abstract="false" native="false" synchronized="false"
  40301. static="false" final="false" visibility="public"
  40302. deprecated="not deprecated">
  40303. </method>
  40304. <method name="clearNameMaps"
  40305. abstract="false" native="false" synchronized="true"
  40306. static="false" final="false" visibility="public"
  40307. deprecated="not deprecated">
  40308. </method>
  40309. <method name="updateMapInternal" return="boolean"
  40310. abstract="false" native="false" synchronized="false"
  40311. static="true" final="false" visibility="public"
  40312. deprecated="not deprecated">
  40313. <param name="map" type="com.google.common.collect.BiMap"/>
  40314. <param name="mapName" type="java.lang.String"/>
  40315. <param name="command" type="java.lang.String"/>
  40316. <param name="regex" type="java.lang.String"/>
  40317. <param name="staticMapping" type="java.util.Map"/>
  40318. <exception name="IOException" type="java.io.IOException"/>
  40319. <doc>
  40320. <![CDATA[Get the list of users or groups returned by the specified command,
  40321. and save them in the corresponding map.
  40322. @throws IOException]]>
  40323. </doc>
  40324. </method>
  40325. <method name="updateMaps"
  40326. abstract="false" native="false" synchronized="true"
  40327. static="false" final="false" visibility="public"
  40328. deprecated="not deprecated">
  40329. <exception name="IOException" type="java.io.IOException"/>
  40330. </method>
  40331. <method name="getUid" return="int"
  40332. abstract="false" native="false" synchronized="true"
  40333. static="false" final="false" visibility="public"
  40334. deprecated="not deprecated">
  40335. <param name="user" type="java.lang.String"/>
  40336. <exception name="IOException" type="java.io.IOException"/>
  40337. </method>
  40338. <method name="getGid" return="int"
  40339. abstract="false" native="false" synchronized="true"
  40340. static="false" final="false" visibility="public"
  40341. deprecated="not deprecated">
  40342. <param name="group" type="java.lang.String"/>
  40343. <exception name="IOException" type="java.io.IOException"/>
  40344. </method>
  40345. <method name="getUserName" return="java.lang.String"
  40346. abstract="false" native="false" synchronized="true"
  40347. static="false" final="false" visibility="public"
  40348. deprecated="not deprecated">
  40349. <param name="uid" type="int"/>
  40350. <param name="unknown" type="java.lang.String"/>
  40351. </method>
  40352. <method name="getGroupName" return="java.lang.String"
  40353. abstract="false" native="false" synchronized="true"
  40354. static="false" final="false" visibility="public"
  40355. deprecated="not deprecated">
  40356. <param name="gid" type="int"/>
  40357. <param name="unknown" type="java.lang.String"/>
  40358. </method>
  40359. <method name="getUidAllowingUnknown" return="int"
  40360. abstract="false" native="false" synchronized="false"
  40361. static="false" final="false" visibility="public"
  40362. deprecated="not deprecated">
  40363. <param name="user" type="java.lang.String"/>
  40364. </method>
  40365. <method name="getGidAllowingUnknown" return="int"
  40366. abstract="false" native="false" synchronized="false"
  40367. static="false" final="false" visibility="public"
  40368. deprecated="not deprecated">
  40369. <param name="group" type="java.lang.String"/>
  40370. </method>
  40371. <doc>
  40372. <![CDATA[A simple shell-based implementation of {@link IdMappingServiceProvider}
  40373. Map id to user name or group name. It does update every 15 minutes. Only a
  40374. single instance of this class is expected to be on the server.
  40375. The maps are incrementally updated as described below:
  40376. 1. Initialize the maps as empty.
  40377. 2. Incrementally update the maps
  40378. - When ShellBasedIdMapping is requested for user or group name given
  40379. an ID, or for ID given a user or group name, do look up in the map
  40380. first, if it doesn't exist, find the corresponding entry with shell
  40381. command, and insert the entry to the maps.
  40382. - When group ID is requested for a given group name, and if the
  40383. group name is numerical, the full group map is loaded. Because we
  40384. don't have a good way to find the entry for a numerical group name,
  40385. loading the full map helps to get in all entries.
  40386. 3. Periodically refresh the maps for both user and group, e.g,
  40387. do step 1.
  40388. Note: for testing purpose, step 1 may initial the maps with full mapping
  40389. when using constructor
  40390. {@link ShellBasedIdMapping#ShellBasedIdMapping(Configuration, boolean)}.]]>
  40391. </doc>
  40392. </class>
  40393. <!-- end class org.apache.hadoop.security.ShellBasedIdMapping -->
  40394. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  40395. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  40396. abstract="false"
  40397. static="true" final="true" visibility="public"
  40398. deprecated="not deprecated">
  40399. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  40400. abstract="false" native="false" synchronized="false"
  40401. static="true" final="false" visibility="public"
  40402. deprecated="not deprecated">
  40403. </method>
  40404. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  40405. abstract="false" native="false" synchronized="false"
  40406. static="true" final="false" visibility="public"
  40407. deprecated="not deprecated">
  40408. <param name="name" type="java.lang.String"/>
  40409. </method>
  40410. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  40411. abstract="false" native="false" synchronized="false"
  40412. static="false" final="false" visibility="public"
  40413. deprecated="not deprecated">
  40414. </method>
  40415. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  40416. abstract="false" native="false" synchronized="false"
  40417. static="true" final="false" visibility="public"
  40418. deprecated="not deprecated">
  40419. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  40420. </method>
  40421. <doc>
  40422. <![CDATA[existing types of authentications' methods]]>
  40423. </doc>
  40424. </class>
  40425. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  40426. <!-- start class org.apache.hadoop.security.WhitelistBasedResolver -->
  40427. <class name="WhitelistBasedResolver" extends="org.apache.hadoop.security.SaslPropertiesResolver"
  40428. abstract="false"
  40429. static="false" final="false" visibility="public"
  40430. deprecated="not deprecated">
  40431. <constructor name="WhitelistBasedResolver"
  40432. static="false" final="false" visibility="public"
  40433. deprecated="not deprecated">
  40434. </constructor>
  40435. <method name="setConf"
  40436. abstract="false" native="false" synchronized="false"
  40437. static="false" final="false" visibility="public"
  40438. deprecated="not deprecated">
  40439. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40440. </method>
  40441. <method name="getServerProperties" return="java.util.Map"
  40442. abstract="false" native="false" synchronized="false"
  40443. static="false" final="false" visibility="public"
  40444. deprecated="not deprecated">
  40445. <param name="clientAddress" type="java.net.InetAddress"/>
  40446. <doc>
  40447. <![CDATA[Identify the Sasl Properties to be used for a connection with a client.
  40448. @param clientAddress client's address
  40449. @return the sasl properties to be used for the connection.]]>
  40450. </doc>
  40451. </method>
  40452. <method name="getServerProperties" return="java.util.Map"
  40453. abstract="false" native="false" synchronized="false"
  40454. static="false" final="false" visibility="public"
  40455. deprecated="not deprecated">
  40456. <param name="clientAddress" type="java.lang.String"/>
  40457. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  40458. </method>
  40459. <field name="LOG" type="org.apache.commons.logging.Log"
  40460. transient="false" volatile="false"
  40461. static="true" final="true" visibility="public"
  40462. deprecated="not deprecated">
  40463. </field>
  40464. <field name="HADOOP_SECURITY_SASL_FIXEDWHITELIST_FILE" type="java.lang.String"
  40465. transient="false" volatile="false"
  40466. static="true" final="true" visibility="public"
  40467. deprecated="not deprecated">
  40468. <doc>
  40469. <![CDATA[Path to the file to containing subnets and ip addresses to form fixed whitelist.]]>
  40470. </doc>
  40471. </field>
  40472. <field name="HADOOP_SECURITY_SASL_VARIABLEWHITELIST_ENABLE" type="java.lang.String"
  40473. transient="false" volatile="false"
  40474. static="true" final="true" visibility="public"
  40475. deprecated="not deprecated">
  40476. <doc>
  40477. <![CDATA[Enables/Disables variable whitelist]]>
  40478. </doc>
  40479. </field>
  40480. <field name="HADOOP_SECURITY_SASL_VARIABLEWHITELIST_FILE" type="java.lang.String"
  40481. transient="false" volatile="false"
  40482. static="true" final="true" visibility="public"
  40483. deprecated="not deprecated">
  40484. <doc>
  40485. <![CDATA[Path to the file to containing subnets and ip addresses to form variable whitelist.]]>
  40486. </doc>
  40487. </field>
  40488. <field name="HADOOP_SECURITY_SASL_VARIABLEWHITELIST_CACHE_SECS" type="java.lang.String"
  40489. transient="false" volatile="false"
  40490. static="true" final="true" visibility="public"
  40491. deprecated="not deprecated">
  40492. <doc>
  40493. <![CDATA[time in seconds by which the variable whitelist file is checked for updates]]>
  40494. </doc>
  40495. </field>
  40496. <field name="HADOOP_RPC_PROTECTION_NON_WHITELIST" type="java.lang.String"
  40497. transient="false" volatile="false"
  40498. static="true" final="true" visibility="public"
  40499. deprecated="not deprecated">
  40500. <doc>
  40501. <![CDATA[comma separated list containing alternate hadoop.rpc.protection values for
  40502. clients which are not in whitelist]]>
  40503. </doc>
  40504. </field>
  40505. <doc>
  40506. <![CDATA[An implementation of the SaslPropertiesResolver.
  40507. Uses a white list of IPs.
  40508. If the connection's IP address is in the list of IP addresses, the salProperties
  40509. will be unchanged.
  40510. If the connection's IP is not in the list of IP addresses, then QOP for the
  40511. connection will be restricted to "hadoop.rpc.protection.non-whitelist"
  40512. Uses 3 IPList implementations together to form an aggregate whitelist.
  40513. 1. ConstantIPList - to check against a set of hardcoded IPs
  40514. 2. Fixed IP List - to check against a list of IP addresses which are specified externally, but
  40515. will not change over runtime.
  40516. 3. Variable IP List - to check against a list of IP addresses which are specified externally and
  40517. could change during runtime.
  40518. A connection IP address will checked against these 3 IP Lists in the order specified above.
  40519. Once a match is found , the IP address is determined to be in whitelist.
  40520. The behavior can be configured using a bunch of configuration parameters.]]>
  40521. </doc>
  40522. </class>
  40523. <!-- end class org.apache.hadoop.security.WhitelistBasedResolver -->
  40524. </package>
  40525. <package name="org.apache.hadoop.security.alias">
  40526. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  40527. <class name="CredentialProvider" extends="java.lang.Object"
  40528. abstract="true"
  40529. static="false" final="false" visibility="public"
  40530. deprecated="not deprecated">
  40531. <constructor name="CredentialProvider"
  40532. static="false" final="false" visibility="public"
  40533. deprecated="not deprecated">
  40534. </constructor>
  40535. <method name="isTransient" return="boolean"
  40536. abstract="false" native="false" synchronized="false"
  40537. static="false" final="false" visibility="public"
  40538. deprecated="not deprecated">
  40539. <doc>
  40540. <![CDATA[Indicates whether this provider represents a store
  40541. that is intended for transient use - such as the UserProvider
  40542. is. These providers are generally used to provide job access to
  40543. passwords rather than for long term storage.
  40544. @return true if transient, false otherwise]]>
  40545. </doc>
  40546. </method>
  40547. <method name="flush"
  40548. abstract="true" native="false" synchronized="false"
  40549. static="false" final="false" visibility="public"
  40550. deprecated="not deprecated">
  40551. <exception name="IOException" type="java.io.IOException"/>
  40552. <doc>
  40553. <![CDATA[Ensures that any changes to the credentials are written to persistent store.
  40554. @throws IOException]]>
  40555. </doc>
  40556. </method>
  40557. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  40558. abstract="true" native="false" synchronized="false"
  40559. static="false" final="false" visibility="public"
  40560. deprecated="not deprecated">
  40561. <param name="alias" type="java.lang.String"/>
  40562. <exception name="IOException" type="java.io.IOException"/>
  40563. <doc>
  40564. <![CDATA[Get the credential entry for a specific alias.
  40565. @param alias the name of a specific credential
  40566. @return the credentialEntry
  40567. @throws IOException]]>
  40568. </doc>
  40569. </method>
  40570. <method name="getAliases" return="java.util.List"
  40571. abstract="true" native="false" synchronized="false"
  40572. static="false" final="false" visibility="public"
  40573. deprecated="not deprecated">
  40574. <exception name="IOException" type="java.io.IOException"/>
  40575. <doc>
  40576. <![CDATA[Get the aliases for all credentials.
  40577. @return the list of alias names
  40578. @throws IOException]]>
  40579. </doc>
  40580. </method>
  40581. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  40582. abstract="true" native="false" synchronized="false"
  40583. static="false" final="false" visibility="public"
  40584. deprecated="not deprecated">
  40585. <param name="name" type="java.lang.String"/>
  40586. <param name="credential" type="char[]"/>
  40587. <exception name="IOException" type="java.io.IOException"/>
  40588. <doc>
  40589. <![CDATA[Create a new credential. The given alias must not already exist.
  40590. @param name the alias of the credential
  40591. @param credential the credential value for the alias.
  40592. @throws IOException]]>
  40593. </doc>
  40594. </method>
  40595. <method name="deleteCredentialEntry"
  40596. abstract="true" native="false" synchronized="false"
  40597. static="false" final="false" visibility="public"
  40598. deprecated="not deprecated">
  40599. <param name="name" type="java.lang.String"/>
  40600. <exception name="IOException" type="java.io.IOException"/>
  40601. <doc>
  40602. <![CDATA[Delete the given credential.
  40603. @param name the alias of the credential to delete
  40604. @throws IOException]]>
  40605. </doc>
  40606. </method>
  40607. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  40608. transient="false" volatile="false"
  40609. static="true" final="true" visibility="public"
  40610. deprecated="not deprecated">
  40611. </field>
  40612. <doc>
  40613. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  40614. abstraction to separate credential storage from users of them. It
  40615. is intended to support getting or storing passwords in a variety of ways,
  40616. including third party bindings.]]>
  40617. </doc>
  40618. </class>
  40619. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  40620. <!-- start class org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry -->
  40621. <class name="CredentialProvider.CredentialEntry" extends="java.lang.Object"
  40622. abstract="false"
  40623. static="true" final="false" visibility="public"
  40624. deprecated="not deprecated">
  40625. <constructor name="CredentialEntry" type="java.lang.String, char[]"
  40626. static="false" final="false" visibility="protected"
  40627. deprecated="not deprecated">
  40628. </constructor>
  40629. <method name="getAlias" return="java.lang.String"
  40630. abstract="false" native="false" synchronized="false"
  40631. static="false" final="false" visibility="public"
  40632. deprecated="not deprecated">
  40633. </method>
  40634. <method name="getCredential" return="char[]"
  40635. abstract="false" native="false" synchronized="false"
  40636. static="false" final="false" visibility="public"
  40637. deprecated="not deprecated">
  40638. </method>
  40639. <method name="toString" return="java.lang.String"
  40640. abstract="false" native="false" synchronized="false"
  40641. static="false" final="false" visibility="public"
  40642. deprecated="not deprecated">
  40643. </method>
  40644. <doc>
  40645. <![CDATA[The combination of both the alias and the actual credential value.]]>
  40646. </doc>
  40647. </class>
  40648. <!-- end class org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry -->
  40649. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  40650. <class name="CredentialProviderFactory" extends="java.lang.Object"
  40651. abstract="true"
  40652. static="false" final="false" visibility="public"
  40653. deprecated="not deprecated">
  40654. <constructor name="CredentialProviderFactory"
  40655. static="false" final="false" visibility="public"
  40656. deprecated="not deprecated">
  40657. </constructor>
  40658. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  40659. abstract="true" native="false" synchronized="false"
  40660. static="false" final="false" visibility="public"
  40661. deprecated="not deprecated">
  40662. <param name="providerName" type="java.net.URI"/>
  40663. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40664. <exception name="IOException" type="java.io.IOException"/>
  40665. </method>
  40666. <method name="getProviders" return="java.util.List"
  40667. abstract="false" native="false" synchronized="false"
  40668. static="true" final="false" visibility="public"
  40669. deprecated="not deprecated">
  40670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40671. <exception name="IOException" type="java.io.IOException"/>
  40672. </method>
  40673. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  40674. transient="false" volatile="false"
  40675. static="true" final="true" visibility="public"
  40676. deprecated="not deprecated">
  40677. </field>
  40678. <doc>
  40679. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  40680. Configuration. It uses a service loader interface to find the available
  40681. CredentialProviders and create them based on the list of URIs.]]>
  40682. </doc>
  40683. </class>
  40684. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  40685. <!-- start class org.apache.hadoop.security.alias.CredentialShell -->
  40686. <class name="CredentialShell" extends="org.apache.hadoop.conf.Configured"
  40687. abstract="false"
  40688. static="false" final="false" visibility="public"
  40689. deprecated="not deprecated">
  40690. <implements name="org.apache.hadoop.util.Tool"/>
  40691. <constructor name="CredentialShell"
  40692. static="false" final="false" visibility="public"
  40693. deprecated="not deprecated">
  40694. </constructor>
  40695. <method name="run" return="int"
  40696. abstract="false" native="false" synchronized="false"
  40697. static="false" final="false" visibility="public"
  40698. deprecated="not deprecated">
  40699. <param name="args" type="java.lang.String[]"/>
  40700. <exception name="Exception" type="java.lang.Exception"/>
  40701. </method>
  40702. <method name="init" return="int"
  40703. abstract="false" native="false" synchronized="false"
  40704. static="false" final="false" visibility="protected"
  40705. deprecated="not deprecated">
  40706. <param name="args" type="java.lang.String[]"/>
  40707. <exception name="IOException" type="java.io.IOException"/>
  40708. <doc>
  40709. <![CDATA[Parse the command line arguments and initialize the data
  40710. <pre>
  40711. % hadoop credential create alias [-provider providerPath]
  40712. % hadoop credential list [-provider providerPath]
  40713. % hadoop credential delete alias [-provider providerPath] [-f]
  40714. </pre>
  40715. @param args
  40716. @return 0 if the argument(s) were recognized, 1 otherwise
  40717. @throws IOException]]>
  40718. </doc>
  40719. </method>
  40720. <method name="promptForCredential" return="char[]"
  40721. abstract="false" native="false" synchronized="false"
  40722. static="false" final="false" visibility="protected"
  40723. deprecated="not deprecated">
  40724. <exception name="IOException" type="java.io.IOException"/>
  40725. </method>
  40726. <method name="getPasswordReader" return="org.apache.hadoop.security.alias.CredentialShell.PasswordReader"
  40727. abstract="false" native="false" synchronized="false"
  40728. static="false" final="false" visibility="public"
  40729. deprecated="not deprecated">
  40730. </method>
  40731. <method name="setPasswordReader"
  40732. abstract="false" native="false" synchronized="false"
  40733. static="false" final="false" visibility="public"
  40734. deprecated="not deprecated">
  40735. <param name="reader" type="org.apache.hadoop.security.alias.CredentialShell.PasswordReader"/>
  40736. </method>
  40737. <method name="main"
  40738. abstract="false" native="false" synchronized="false"
  40739. static="true" final="false" visibility="public"
  40740. deprecated="not deprecated">
  40741. <param name="args" type="java.lang.String[]"/>
  40742. <exception name="Exception" type="java.lang.Exception"/>
  40743. <doc>
  40744. <![CDATA[Main program.
  40745. @param args
  40746. Command line arguments
  40747. @throws Exception]]>
  40748. </doc>
  40749. </method>
  40750. <field name="out" type="java.io.PrintStream"
  40751. transient="false" volatile="false"
  40752. static="false" final="false" visibility="public"
  40753. deprecated="not deprecated">
  40754. <doc>
  40755. <![CDATA[allows stdout to be captured if necessary]]>
  40756. </doc>
  40757. </field>
  40758. <field name="err" type="java.io.PrintStream"
  40759. transient="false" volatile="false"
  40760. static="false" final="false" visibility="public"
  40761. deprecated="not deprecated">
  40762. <doc>
  40763. <![CDATA[allows stderr to be captured if necessary]]>
  40764. </doc>
  40765. </field>
  40766. <doc>
  40767. <![CDATA[This program is the CLI utility for the CredentialProvider facilities in
  40768. Hadoop.]]>
  40769. </doc>
  40770. </class>
  40771. <!-- end class org.apache.hadoop.security.alias.CredentialShell -->
  40772. <!-- start class org.apache.hadoop.security.alias.CredentialShell.PasswordReader -->
  40773. <class name="CredentialShell.PasswordReader" extends="java.lang.Object"
  40774. abstract="false"
  40775. static="true" final="false" visibility="public"
  40776. deprecated="not deprecated">
  40777. <constructor name="PasswordReader"
  40778. static="false" final="false" visibility="public"
  40779. deprecated="not deprecated">
  40780. </constructor>
  40781. <method name="readPassword" return="char[]"
  40782. abstract="false" native="false" synchronized="false"
  40783. static="false" final="false" visibility="public"
  40784. deprecated="not deprecated">
  40785. <param name="prompt" type="java.lang.String"/>
  40786. </method>
  40787. <method name="format"
  40788. abstract="false" native="false" synchronized="false"
  40789. static="false" final="false" visibility="public"
  40790. deprecated="not deprecated">
  40791. <param name="message" type="java.lang.String"/>
  40792. </method>
  40793. </class>
  40794. <!-- end class org.apache.hadoop.security.alias.CredentialShell.PasswordReader -->
  40795. <!-- start class org.apache.hadoop.security.alias.JavaKeyStoreProvider.Factory -->
  40796. <class name="JavaKeyStoreProvider.Factory" extends="org.apache.hadoop.security.alias.CredentialProviderFactory"
  40797. abstract="false"
  40798. static="true" final="false" visibility="public"
  40799. deprecated="not deprecated">
  40800. <constructor name="Factory"
  40801. static="false" final="false" visibility="public"
  40802. deprecated="not deprecated">
  40803. </constructor>
  40804. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  40805. abstract="false" native="false" synchronized="false"
  40806. static="false" final="false" visibility="public"
  40807. deprecated="not deprecated">
  40808. <param name="providerName" type="java.net.URI"/>
  40809. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40810. <exception name="IOException" type="java.io.IOException"/>
  40811. </method>
  40812. <doc>
  40813. <![CDATA[The factory to create JksProviders, which is used by the ServiceLoader.]]>
  40814. </doc>
  40815. </class>
  40816. <!-- end class org.apache.hadoop.security.alias.JavaKeyStoreProvider.Factory -->
  40817. <!-- start class org.apache.hadoop.security.alias.LocalJavaKeyStoreProvider.Factory -->
  40818. <class name="LocalJavaKeyStoreProvider.Factory" extends="org.apache.hadoop.security.alias.CredentialProviderFactory"
  40819. abstract="false"
  40820. static="true" final="false" visibility="public"
  40821. deprecated="not deprecated">
  40822. <constructor name="Factory"
  40823. static="false" final="false" visibility="public"
  40824. deprecated="not deprecated">
  40825. </constructor>
  40826. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  40827. abstract="false" native="false" synchronized="false"
  40828. static="false" final="false" visibility="public"
  40829. deprecated="not deprecated">
  40830. <param name="providerName" type="java.net.URI"/>
  40831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40832. <exception name="IOException" type="java.io.IOException"/>
  40833. </method>
  40834. <doc>
  40835. <![CDATA[The factory to create JksProviders, which is used by the ServiceLoader.]]>
  40836. </doc>
  40837. </class>
  40838. <!-- end class org.apache.hadoop.security.alias.LocalJavaKeyStoreProvider.Factory -->
  40839. <!-- start class org.apache.hadoop.security.alias.UserProvider.Factory -->
  40840. <class name="UserProvider.Factory" extends="org.apache.hadoop.security.alias.CredentialProviderFactory"
  40841. abstract="false"
  40842. static="true" final="false" visibility="public"
  40843. deprecated="not deprecated">
  40844. <constructor name="Factory"
  40845. static="false" final="false" visibility="public"
  40846. deprecated="not deprecated">
  40847. </constructor>
  40848. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  40849. abstract="false" native="false" synchronized="false"
  40850. static="false" final="false" visibility="public"
  40851. deprecated="not deprecated">
  40852. <param name="providerName" type="java.net.URI"/>
  40853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40854. <exception name="IOException" type="java.io.IOException"/>
  40855. </method>
  40856. </class>
  40857. <!-- end class org.apache.hadoop.security.alias.UserProvider.Factory -->
  40858. </package>
  40859. <package name="org.apache.hadoop.security.http">
  40860. <!-- start class org.apache.hadoop.security.http.CrossOriginFilter -->
  40861. <class name="CrossOriginFilter" extends="java.lang.Object"
  40862. abstract="false"
  40863. static="false" final="false" visibility="public"
  40864. deprecated="not deprecated">
  40865. <implements name="javax.servlet.Filter"/>
  40866. <constructor name="CrossOriginFilter"
  40867. static="false" final="false" visibility="public"
  40868. deprecated="not deprecated">
  40869. </constructor>
  40870. <method name="init"
  40871. abstract="false" native="false" synchronized="false"
  40872. static="false" final="false" visibility="public"
  40873. deprecated="not deprecated">
  40874. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  40875. <exception name="ServletException" type="javax.servlet.ServletException"/>
  40876. </method>
  40877. <method name="doFilter"
  40878. abstract="false" native="false" synchronized="false"
  40879. static="false" final="false" visibility="public"
  40880. deprecated="not deprecated">
  40881. <param name="req" type="javax.servlet.ServletRequest"/>
  40882. <param name="res" type="javax.servlet.ServletResponse"/>
  40883. <param name="chain" type="javax.servlet.FilterChain"/>
  40884. <exception name="IOException" type="java.io.IOException"/>
  40885. <exception name="ServletException" type="javax.servlet.ServletException"/>
  40886. </method>
  40887. <method name="destroy"
  40888. abstract="false" native="false" synchronized="false"
  40889. static="false" final="false" visibility="public"
  40890. deprecated="not deprecated">
  40891. </method>
  40892. <field name="ALLOWED_ORIGINS" type="java.lang.String"
  40893. transient="false" volatile="false"
  40894. static="true" final="true" visibility="public"
  40895. deprecated="not deprecated">
  40896. </field>
  40897. <field name="ALLOWED_ORIGINS_DEFAULT" type="java.lang.String"
  40898. transient="false" volatile="false"
  40899. static="true" final="true" visibility="public"
  40900. deprecated="not deprecated">
  40901. </field>
  40902. <field name="ALLOWED_METHODS" type="java.lang.String"
  40903. transient="false" volatile="false"
  40904. static="true" final="true" visibility="public"
  40905. deprecated="not deprecated">
  40906. </field>
  40907. <field name="ALLOWED_METHODS_DEFAULT" type="java.lang.String"
  40908. transient="false" volatile="false"
  40909. static="true" final="true" visibility="public"
  40910. deprecated="not deprecated">
  40911. </field>
  40912. <field name="ALLOWED_HEADERS" type="java.lang.String"
  40913. transient="false" volatile="false"
  40914. static="true" final="true" visibility="public"
  40915. deprecated="not deprecated">
  40916. </field>
  40917. <field name="ALLOWED_HEADERS_DEFAULT" type="java.lang.String"
  40918. transient="false" volatile="false"
  40919. static="true" final="true" visibility="public"
  40920. deprecated="not deprecated">
  40921. </field>
  40922. <field name="MAX_AGE" type="java.lang.String"
  40923. transient="false" volatile="false"
  40924. static="true" final="true" visibility="public"
  40925. deprecated="not deprecated">
  40926. </field>
  40927. <field name="MAX_AGE_DEFAULT" type="java.lang.String"
  40928. transient="false" volatile="false"
  40929. static="true" final="true" visibility="public"
  40930. deprecated="not deprecated">
  40931. </field>
  40932. </class>
  40933. <!-- end class org.apache.hadoop.security.http.CrossOriginFilter -->
  40934. </package>
  40935. <package name="org.apache.hadoop.security.protocolPB">
  40936. <!-- start class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolClientSideTranslatorPB -->
  40937. <class name="RefreshAuthorizationPolicyProtocolClientSideTranslatorPB" extends="java.lang.Object"
  40938. abstract="false"
  40939. static="false" final="false" visibility="public"
  40940. deprecated="not deprecated">
  40941. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  40942. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  40943. <implements name="java.io.Closeable"/>
  40944. <constructor name="RefreshAuthorizationPolicyProtocolClientSideTranslatorPB" type="org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolPB"
  40945. static="false" final="false" visibility="public"
  40946. deprecated="not deprecated">
  40947. </constructor>
  40948. <method name="close"
  40949. abstract="false" native="false" synchronized="false"
  40950. static="false" final="false" visibility="public"
  40951. deprecated="not deprecated">
  40952. <exception name="IOException" type="java.io.IOException"/>
  40953. </method>
  40954. <method name="refreshServiceAcl"
  40955. abstract="false" native="false" synchronized="false"
  40956. static="false" final="false" visibility="public"
  40957. deprecated="not deprecated">
  40958. <exception name="IOException" type="java.io.IOException"/>
  40959. </method>
  40960. <method name="isMethodSupported" return="boolean"
  40961. abstract="false" native="false" synchronized="false"
  40962. static="false" final="false" visibility="public"
  40963. deprecated="not deprecated">
  40964. <param name="methodName" type="java.lang.String"/>
  40965. <exception name="IOException" type="java.io.IOException"/>
  40966. </method>
  40967. </class>
  40968. <!-- end class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolClientSideTranslatorPB -->
  40969. <!-- start class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolServerSideTranslatorPB -->
  40970. <class name="RefreshAuthorizationPolicyProtocolServerSideTranslatorPB" extends="java.lang.Object"
  40971. abstract="false"
  40972. static="false" final="false" visibility="public"
  40973. deprecated="not deprecated">
  40974. <implements name="org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolPB"/>
  40975. <constructor name="RefreshAuthorizationPolicyProtocolServerSideTranslatorPB" type="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"
  40976. static="false" final="false" visibility="public"
  40977. deprecated="not deprecated">
  40978. </constructor>
  40979. <method name="refreshServiceAcl" return="org.apache.hadoop.security.proto.RefreshAuthorizationPolicyProtocolProtos.RefreshServiceAclResponseProto"
  40980. abstract="false" native="false" synchronized="false"
  40981. static="false" final="false" visibility="public"
  40982. deprecated="not deprecated">
  40983. <param name="controller" type="com.google.protobuf.RpcController"/>
  40984. <param name="request" type="org.apache.hadoop.security.proto.RefreshAuthorizationPolicyProtocolProtos.RefreshServiceAclRequestProto"/>
  40985. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  40986. </method>
  40987. </class>
  40988. <!-- end class org.apache.hadoop.security.protocolPB.RefreshAuthorizationPolicyProtocolServerSideTranslatorPB -->
  40989. <!-- start class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolClientSideTranslatorPB -->
  40990. <class name="RefreshUserMappingsProtocolClientSideTranslatorPB" extends="java.lang.Object"
  40991. abstract="false"
  40992. static="false" final="false" visibility="public"
  40993. deprecated="not deprecated">
  40994. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  40995. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  40996. <implements name="java.io.Closeable"/>
  40997. <constructor name="RefreshUserMappingsProtocolClientSideTranslatorPB" type="org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolPB"
  40998. static="false" final="false" visibility="public"
  40999. deprecated="not deprecated">
  41000. </constructor>
  41001. <method name="close"
  41002. abstract="false" native="false" synchronized="false"
  41003. static="false" final="false" visibility="public"
  41004. deprecated="not deprecated">
  41005. <exception name="IOException" type="java.io.IOException"/>
  41006. </method>
  41007. <method name="refreshUserToGroupsMappings"
  41008. abstract="false" native="false" synchronized="false"
  41009. static="false" final="false" visibility="public"
  41010. deprecated="not deprecated">
  41011. <exception name="IOException" type="java.io.IOException"/>
  41012. </method>
  41013. <method name="refreshSuperUserGroupsConfiguration"
  41014. abstract="false" native="false" synchronized="false"
  41015. static="false" final="false" visibility="public"
  41016. deprecated="not deprecated">
  41017. <exception name="IOException" type="java.io.IOException"/>
  41018. </method>
  41019. <method name="isMethodSupported" return="boolean"
  41020. abstract="false" native="false" synchronized="false"
  41021. static="false" final="false" visibility="public"
  41022. deprecated="not deprecated">
  41023. <param name="methodName" type="java.lang.String"/>
  41024. <exception name="IOException" type="java.io.IOException"/>
  41025. </method>
  41026. </class>
  41027. <!-- end class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolClientSideTranslatorPB -->
  41028. <!-- start class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolServerSideTranslatorPB -->
  41029. <class name="RefreshUserMappingsProtocolServerSideTranslatorPB" extends="java.lang.Object"
  41030. abstract="false"
  41031. static="false" final="false" visibility="public"
  41032. deprecated="not deprecated">
  41033. <implements name="org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolPB"/>
  41034. <constructor name="RefreshUserMappingsProtocolServerSideTranslatorPB" type="org.apache.hadoop.security.RefreshUserMappingsProtocol"
  41035. static="false" final="false" visibility="public"
  41036. deprecated="not deprecated">
  41037. </constructor>
  41038. <method name="refreshUserToGroupsMappings" return="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshUserToGroupsMappingsResponseProto"
  41039. abstract="false" native="false" synchronized="false"
  41040. static="false" final="false" visibility="public"
  41041. deprecated="not deprecated">
  41042. <param name="controller" type="com.google.protobuf.RpcController"/>
  41043. <param name="request" type="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshUserToGroupsMappingsRequestProto"/>
  41044. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  41045. </method>
  41046. <method name="refreshSuperUserGroupsConfiguration" return="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshSuperUserGroupsConfigurationResponseProto"
  41047. abstract="false" native="false" synchronized="false"
  41048. static="false" final="false" visibility="public"
  41049. deprecated="not deprecated">
  41050. <param name="controller" type="com.google.protobuf.RpcController"/>
  41051. <param name="request" type="org.apache.hadoop.security.proto.RefreshUserMappingsProtocolProtos.RefreshSuperUserGroupsConfigurationRequestProto"/>
  41052. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  41053. </method>
  41054. </class>
  41055. <!-- end class org.apache.hadoop.security.protocolPB.RefreshUserMappingsProtocolServerSideTranslatorPB -->
  41056. </package>
  41057. <package name="org.apache.hadoop.security.ssl">
  41058. <!-- start class org.apache.hadoop.security.ssl.SSLHostnameVerifier.AbstractVerifier -->
  41059. <class name="SSLHostnameVerifier.AbstractVerifier" extends="java.lang.Object"
  41060. abstract="true"
  41061. static="true" final="false" visibility="public"
  41062. deprecated="not deprecated">
  41063. <implements name="org.apache.hadoop.security.ssl.SSLHostnameVerifier"/>
  41064. <constructor name="AbstractVerifier"
  41065. static="false" final="false" visibility="protected"
  41066. deprecated="not deprecated">
  41067. </constructor>
  41068. <method name="verify" return="boolean"
  41069. abstract="false" native="false" synchronized="false"
  41070. static="false" final="false" visibility="public"
  41071. deprecated="not deprecated">
  41072. <param name="host" type="java.lang.String"/>
  41073. <param name="session" type="javax.net.ssl.SSLSession"/>
  41074. <doc>
  41075. <![CDATA[The javax.net.ssl.HostnameVerifier contract.
  41076. @param host 'hostname' we used to create our socket
  41077. @param session SSLSession with the remote server
  41078. @return true if the host matched the one in the certificate.]]>
  41079. </doc>
  41080. </method>
  41081. <method name="check"
  41082. abstract="false" native="false" synchronized="false"
  41083. static="false" final="false" visibility="public"
  41084. deprecated="not deprecated">
  41085. <param name="host" type="java.lang.String"/>
  41086. <param name="ssl" type="javax.net.ssl.SSLSocket"/>
  41087. <exception name="IOException" type="java.io.IOException"/>
  41088. </method>
  41089. <method name="check"
  41090. abstract="false" native="false" synchronized="false"
  41091. static="false" final="false" visibility="public"
  41092. deprecated="not deprecated">
  41093. <param name="host" type="java.lang.String"/>
  41094. <param name="cert" type="java.security.cert.X509Certificate"/>
  41095. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  41096. </method>
  41097. <method name="check"
  41098. abstract="false" native="false" synchronized="false"
  41099. static="false" final="false" visibility="public"
  41100. deprecated="not deprecated">
  41101. <param name="host" type="java.lang.String"/>
  41102. <param name="cns" type="java.lang.String[]"/>
  41103. <param name="subjectAlts" type="java.lang.String[]"/>
  41104. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  41105. </method>
  41106. <method name="check"
  41107. abstract="false" native="false" synchronized="false"
  41108. static="false" final="false" visibility="public"
  41109. deprecated="not deprecated">
  41110. <param name="host" type="java.lang.String[]"/>
  41111. <param name="ssl" type="javax.net.ssl.SSLSocket"/>
  41112. <exception name="IOException" type="java.io.IOException"/>
  41113. </method>
  41114. <method name="check"
  41115. abstract="false" native="false" synchronized="false"
  41116. static="false" final="false" visibility="public"
  41117. deprecated="not deprecated">
  41118. <param name="host" type="java.lang.String[]"/>
  41119. <param name="cert" type="java.security.cert.X509Certificate"/>
  41120. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  41121. </method>
  41122. <method name="check"
  41123. abstract="false" native="false" synchronized="false"
  41124. static="false" final="false" visibility="public"
  41125. deprecated="not deprecated">
  41126. <param name="hosts" type="java.lang.String[]"/>
  41127. <param name="cns" type="java.lang.String[]"/>
  41128. <param name="subjectAlts" type="java.lang.String[]"/>
  41129. <param name="ie6" type="boolean"/>
  41130. <param name="strictWithSubDomains" type="boolean"/>
  41131. <exception name="SSLException" type="javax.net.ssl.SSLException"/>
  41132. </method>
  41133. <method name="isIP4Address" return="boolean"
  41134. abstract="false" native="false" synchronized="false"
  41135. static="true" final="false" visibility="public"
  41136. deprecated="not deprecated">
  41137. <param name="cn" type="java.lang.String"/>
  41138. </method>
  41139. <method name="acceptableCountryWildcard" return="boolean"
  41140. abstract="false" native="false" synchronized="false"
  41141. static="true" final="false" visibility="public"
  41142. deprecated="not deprecated">
  41143. <param name="cn" type="java.lang.String"/>
  41144. </method>
  41145. <method name="isLocalhost" return="boolean"
  41146. abstract="false" native="false" synchronized="false"
  41147. static="true" final="false" visibility="public"
  41148. deprecated="not deprecated">
  41149. <param name="host" type="java.lang.String"/>
  41150. </method>
  41151. <method name="countDots" return="int"
  41152. abstract="false" native="false" synchronized="false"
  41153. static="true" final="false" visibility="public"
  41154. deprecated="not deprecated">
  41155. <param name="s" type="java.lang.String"/>
  41156. <doc>
  41157. <![CDATA[Counts the number of dots "." in a string.
  41158. @param s string to count dots from
  41159. @return number of dots]]>
  41160. </doc>
  41161. </method>
  41162. </class>
  41163. <!-- end class org.apache.hadoop.security.ssl.SSLHostnameVerifier.AbstractVerifier -->
  41164. <!-- start class org.apache.hadoop.security.ssl.SSLHostnameVerifier.Certificates -->
  41165. <class name="SSLHostnameVerifier.Certificates" extends="java.lang.Object"
  41166. abstract="false"
  41167. static="true" final="false" visibility="public"
  41168. deprecated="not deprecated">
  41169. <constructor name="Certificates"
  41170. static="false" final="false" visibility="public"
  41171. deprecated="not deprecated">
  41172. </constructor>
  41173. <method name="getCNs" return="java.lang.String[]"
  41174. abstract="false" native="false" synchronized="false"
  41175. static="true" final="false" visibility="public"
  41176. deprecated="not deprecated">
  41177. <param name="cert" type="java.security.cert.X509Certificate"/>
  41178. </method>
  41179. <method name="getDNSSubjectAlts" return="java.lang.String[]"
  41180. abstract="false" native="false" synchronized="false"
  41181. static="true" final="false" visibility="public"
  41182. deprecated="not deprecated">
  41183. <param name="cert" type="java.security.cert.X509Certificate"/>
  41184. <doc>
  41185. <![CDATA[Extracts the array of SubjectAlt DNS names from an X509Certificate.
  41186. Returns null if there aren't any.
  41187. <p/>
  41188. Note: Java doesn't appear able to extract international characters
  41189. from the SubjectAlts. It can only extract international characters
  41190. from the CN field.
  41191. <p/>
  41192. (Or maybe the version of OpenSSL I'm using to test isn't storing the
  41193. international characters correctly in the SubjectAlts?).
  41194. @param cert X509Certificate
  41195. @return Array of SubjectALT DNS names stored in the certificate.]]>
  41196. </doc>
  41197. </method>
  41198. </class>
  41199. <!-- end class org.apache.hadoop.security.ssl.SSLHostnameVerifier.Certificates -->
  41200. <!-- start class org.apache.hadoop.security.ssl.SslSocketConnectorSecure -->
  41201. <class name="SslSocketConnectorSecure" extends="org.mortbay.jetty.security.SslSocketConnector"
  41202. abstract="false"
  41203. static="false" final="false" visibility="public"
  41204. deprecated="not deprecated">
  41205. <constructor name="SslSocketConnectorSecure"
  41206. static="false" final="false" visibility="public"
  41207. deprecated="not deprecated">
  41208. </constructor>
  41209. <method name="newServerSocket" return="java.net.ServerSocket"
  41210. abstract="false" native="false" synchronized="false"
  41211. static="false" final="false" visibility="protected"
  41212. deprecated="not deprecated">
  41213. <param name="host" type="java.lang.String"/>
  41214. <param name="port" type="int"/>
  41215. <param name="backlog" type="int"/>
  41216. <exception name="IOException" type="java.io.IOException"/>
  41217. <doc>
  41218. <![CDATA[Create a new ServerSocket that will not accept SSLv3 connections,
  41219. but will accept TLSv1.x connections.]]>
  41220. </doc>
  41221. </method>
  41222. <doc>
  41223. <![CDATA[This subclass of the Jetty SslSocketConnector exists solely to control
  41224. the TLS protocol versions allowed. This is fallout from the POODLE
  41225. vulnerability (CVE-2014-3566), which requires that SSLv3 be disabled.
  41226. Only TLS 1.0 and later protocols are allowed.]]>
  41227. </doc>
  41228. </class>
  41229. <!-- end class org.apache.hadoop.security.ssl.SslSocketConnectorSecure -->
  41230. </package>
  41231. <package name="org.apache.hadoop.security.token.delegation.web">
  41232. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  41233. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  41234. abstract="false"
  41235. static="false" final="false" visibility="public"
  41236. deprecated="not deprecated">
  41237. <constructor name="DelegationTokenAuthenticatedURL"
  41238. static="false" final="false" visibility="public"
  41239. deprecated="not deprecated">
  41240. <doc>
  41241. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  41242. <p/>
  41243. An instance of the default {@link DelegationTokenAuthenticator} will be
  41244. used.]]>
  41245. </doc>
  41246. </constructor>
  41247. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  41248. static="false" final="false" visibility="public"
  41249. deprecated="not deprecated">
  41250. <doc>
  41251. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  41252. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  41253. use, if <code>null</code> the default one will be used.]]>
  41254. </doc>
  41255. </constructor>
  41256. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  41257. static="false" final="false" visibility="public"
  41258. deprecated="not deprecated">
  41259. <doc>
  41260. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  41261. {@link DelegationTokenAuthenticator} class.
  41262. @param connConfigurator a connection configurator.]]>
  41263. </doc>
  41264. </constructor>
  41265. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  41266. static="false" final="false" visibility="public"
  41267. deprecated="not deprecated">
  41268. <doc>
  41269. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  41270. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  41271. use, if <code>null</code> the default one will be used.
  41272. @param connConfigurator a connection configurator.]]>
  41273. </doc>
  41274. </constructor>
  41275. <method name="setDefaultDelegationTokenAuthenticator"
  41276. abstract="false" native="false" synchronized="false"
  41277. static="true" final="false" visibility="public"
  41278. deprecated="not deprecated">
  41279. <param name="authenticator" type="java.lang.Class"/>
  41280. <doc>
  41281. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  41282. {@link DelegationTokenAuthenticatedURL} instance is created without
  41283. specifying one.
  41284. The default class is {@link KerberosDelegationTokenAuthenticator}
  41285. @param authenticator the authenticator class to use as default.]]>
  41286. </doc>
  41287. </method>
  41288. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  41289. abstract="false" native="false" synchronized="false"
  41290. static="true" final="false" visibility="public"
  41291. deprecated="not deprecated">
  41292. <doc>
  41293. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  41294. an {@link DelegationTokenAuthenticatedURL} instance is created without
  41295. specifying one.
  41296. <p/>
  41297. The default class is {@link KerberosDelegationTokenAuthenticator}
  41298. @return the delegation token authenticator class to use as default.]]>
  41299. </doc>
  41300. </method>
  41301. <method name="setUseQueryStringForDelegationToken"
  41302. abstract="false" native="false" synchronized="false"
  41303. static="false" final="false" visibility="protected"
  41304. deprecated="not deprecated">
  41305. <param name="useQueryString" type="boolean"/>
  41306. <doc>
  41307. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  41308. By default it is transmitted using the
  41309. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  41310. <p/>
  41311. This method is provided to enable WebHDFS backwards compatibility.
  41312. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  41313. URL query string, <code>FALSE</code> if the delegation token is transmitted
  41314. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  41315. header.]]>
  41316. </doc>
  41317. </method>
  41318. <method name="useQueryStringForDelegationToken" return="boolean"
  41319. abstract="false" native="false" synchronized="false"
  41320. static="false" final="false" visibility="public"
  41321. deprecated="not deprecated">
  41322. <doc>
  41323. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  41324. @return <code>TRUE</code> if the token is transmitted in the URL query
  41325. string, <code>FALSE</code> if the delegation token is transmitted using the
  41326. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  41327. </doc>
  41328. </method>
  41329. <method name="openConnection" return="java.net.HttpURLConnection"
  41330. abstract="false" native="false" synchronized="false"
  41331. static="false" final="false" visibility="public"
  41332. deprecated="not deprecated">
  41333. <param name="url" type="java.net.URL"/>
  41334. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41335. <exception name="IOException" type="java.io.IOException"/>
  41336. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41337. <doc>
  41338. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  41339. Token only if the given auth token is an instance of {@link Token} and
  41340. it contains a Delegation Token, otherwise use the configured
  41341. {@link DelegationTokenAuthenticator} to authenticate the connection.
  41342. @param url the URL to connect to. Only HTTP/S URLs are supported.
  41343. @param token the authentication token being used for the user.
  41344. @return an authenticated {@link HttpURLConnection}.
  41345. @throws IOException if an IO error occurred.
  41346. @throws AuthenticationException if an authentication exception occurred.]]>
  41347. </doc>
  41348. </method>
  41349. <method name="openConnection" return="java.net.HttpURLConnection"
  41350. abstract="false" native="false" synchronized="false"
  41351. static="false" final="false" visibility="public"
  41352. deprecated="not deprecated">
  41353. <param name="url" type="java.net.URL"/>
  41354. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41355. <exception name="IOException" type="java.io.IOException"/>
  41356. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41357. <doc>
  41358. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  41359. Token is present, it will be used taking precedence over the configured
  41360. <code>Authenticator</code>.
  41361. @param url the URL to connect to. Only HTTP/S URLs are supported.
  41362. @param token the authentication token being used for the user.
  41363. @return an authenticated {@link HttpURLConnection}.
  41364. @throws IOException if an IO error occurred.
  41365. @throws AuthenticationException if an authentication exception occurred.]]>
  41366. </doc>
  41367. </method>
  41368. <method name="openConnection" return="java.net.HttpURLConnection"
  41369. abstract="false" native="false" synchronized="false"
  41370. static="false" final="false" visibility="public"
  41371. deprecated="not deprecated">
  41372. <param name="url" type="java.net.URL"/>
  41373. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41374. <param name="doAs" type="java.lang.String"/>
  41375. <exception name="IOException" type="java.io.IOException"/>
  41376. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41377. <doc>
  41378. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  41379. Token is present, it will be used taking precedence over the configured
  41380. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  41381. the request will be done on behalf of the specified <code>doAs</code> user.
  41382. @param url the URL to connect to. Only HTTP/S URLs are supported.
  41383. @param token the authentication token being used for the user.
  41384. @param doAs user to do the the request on behalf of, if NULL the request is
  41385. as self.
  41386. @return an authenticated {@link HttpURLConnection}.
  41387. @throws IOException if an IO error occurred.
  41388. @throws AuthenticationException if an authentication exception occurred.]]>
  41389. </doc>
  41390. </method>
  41391. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  41392. abstract="false" native="false" synchronized="false"
  41393. static="false" final="false" visibility="public"
  41394. deprecated="not deprecated">
  41395. <param name="url" type="java.net.URL"/>
  41396. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41397. <param name="renewer" type="java.lang.String"/>
  41398. <exception name="IOException" type="java.io.IOException"/>
  41399. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41400. <doc>
  41401. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  41402. for authentication.
  41403. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  41404. supported.
  41405. @param token the authentication token being used for the user where the
  41406. Delegation token will be stored.
  41407. @param renewer the renewer user.
  41408. @return a delegation token.
  41409. @throws IOException if an IO error occurred.
  41410. @throws AuthenticationException if an authentication exception occurred.]]>
  41411. </doc>
  41412. </method>
  41413. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  41414. abstract="false" native="false" synchronized="false"
  41415. static="false" final="false" visibility="public"
  41416. deprecated="not deprecated">
  41417. <param name="url" type="java.net.URL"/>
  41418. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41419. <param name="renewer" type="java.lang.String"/>
  41420. <param name="doAsUser" type="java.lang.String"/>
  41421. <exception name="IOException" type="java.io.IOException"/>
  41422. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41423. <doc>
  41424. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  41425. for authentication.
  41426. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  41427. supported.
  41428. @param token the authentication token being used for the user where the
  41429. Delegation token will be stored.
  41430. @param renewer the renewer user.
  41431. @param doAsUser the user to do as, which will be the token owner.
  41432. @return a delegation token.
  41433. @throws IOException if an IO error occurred.
  41434. @throws AuthenticationException if an authentication exception occurred.]]>
  41435. </doc>
  41436. </method>
  41437. <method name="renewDelegationToken" return="long"
  41438. abstract="false" native="false" synchronized="false"
  41439. static="false" final="false" visibility="public"
  41440. deprecated="not deprecated">
  41441. <param name="url" type="java.net.URL"/>
  41442. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41443. <exception name="IOException" type="java.io.IOException"/>
  41444. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41445. <doc>
  41446. <![CDATA[Renews a delegation token from the server end-point using the
  41447. configured <code>Authenticator</code> for authentication.
  41448. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  41449. supported.
  41450. @param token the authentication token with the Delegation Token to renew.
  41451. @throws IOException if an IO error occurred.
  41452. @throws AuthenticationException if an authentication exception occurred.]]>
  41453. </doc>
  41454. </method>
  41455. <method name="renewDelegationToken" return="long"
  41456. abstract="false" native="false" synchronized="false"
  41457. static="false" final="false" visibility="public"
  41458. deprecated="not deprecated">
  41459. <param name="url" type="java.net.URL"/>
  41460. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41461. <param name="doAsUser" type="java.lang.String"/>
  41462. <exception name="IOException" type="java.io.IOException"/>
  41463. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41464. <doc>
  41465. <![CDATA[Renews a delegation token from the server end-point using the
  41466. configured <code>Authenticator</code> for authentication.
  41467. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  41468. supported.
  41469. @param token the authentication token with the Delegation Token to renew.
  41470. @param doAsUser the user to do as, which will be the token owner.
  41471. @throws IOException if an IO error occurred.
  41472. @throws AuthenticationException if an authentication exception occurred.]]>
  41473. </doc>
  41474. </method>
  41475. <method name="cancelDelegationToken"
  41476. abstract="false" native="false" synchronized="false"
  41477. static="false" final="false" visibility="public"
  41478. deprecated="not deprecated">
  41479. <param name="url" type="java.net.URL"/>
  41480. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41481. <exception name="IOException" type="java.io.IOException"/>
  41482. <doc>
  41483. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  41484. being authenticated by the configured <code>Authenticator</code>.
  41485. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  41486. are supported.
  41487. @param token the authentication token with the Delegation Token to cancel.
  41488. @throws IOException if an IO error occurred.]]>
  41489. </doc>
  41490. </method>
  41491. <method name="cancelDelegationToken"
  41492. abstract="false" native="false" synchronized="false"
  41493. static="false" final="false" visibility="public"
  41494. deprecated="not deprecated">
  41495. <param name="url" type="java.net.URL"/>
  41496. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  41497. <param name="doAsUser" type="java.lang.String"/>
  41498. <exception name="IOException" type="java.io.IOException"/>
  41499. <doc>
  41500. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  41501. being authenticated by the configured <code>Authenticator</code>.
  41502. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  41503. are supported.
  41504. @param token the authentication token with the Delegation Token to cancel.
  41505. @param doAsUser the user to do as, which will be the token owner.
  41506. @throws IOException if an IO error occurred.]]>
  41507. </doc>
  41508. </method>
  41509. <doc>
  41510. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  41511. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  41512. functionality.
  41513. <p/>
  41514. The authentication mechanisms supported by default are Hadoop Simple
  41515. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  41516. authentication.
  41517. <p/>
  41518. Additional authentication mechanisms can be supported via {@link
  41519. DelegationTokenAuthenticator} implementations.
  41520. <p/>
  41521. The default {@link DelegationTokenAuthenticator} is the {@link
  41522. KerberosDelegationTokenAuthenticator} class which supports
  41523. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  41524. the {@link PseudoDelegationTokenAuthenticator} class.
  41525. <p/>
  41526. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  41527. </doc>
  41528. </class>
  41529. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  41530. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  41531. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  41532. abstract="false"
  41533. static="true" final="false" visibility="public"
  41534. deprecated="not deprecated">
  41535. <constructor name="Token"
  41536. static="false" final="false" visibility="public"
  41537. deprecated="not deprecated">
  41538. </constructor>
  41539. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  41540. abstract="false" native="false" synchronized="false"
  41541. static="false" final="false" visibility="public"
  41542. deprecated="not deprecated">
  41543. </method>
  41544. <method name="setDelegationToken"
  41545. abstract="false" native="false" synchronized="false"
  41546. static="false" final="false" visibility="public"
  41547. deprecated="not deprecated">
  41548. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  41549. </method>
  41550. <doc>
  41551. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  41552. </doc>
  41553. </class>
  41554. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  41555. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  41556. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  41557. abstract="true"
  41558. static="false" final="false" visibility="public"
  41559. deprecated="not deprecated">
  41560. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  41561. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  41562. static="false" final="false" visibility="public"
  41563. deprecated="not deprecated">
  41564. </constructor>
  41565. <method name="setConnectionConfigurator"
  41566. abstract="false" native="false" synchronized="false"
  41567. static="false" final="false" visibility="public"
  41568. deprecated="not deprecated">
  41569. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  41570. </method>
  41571. <method name="authenticate"
  41572. abstract="false" native="false" synchronized="false"
  41573. static="false" final="false" visibility="public"
  41574. deprecated="not deprecated">
  41575. <param name="url" type="java.net.URL"/>
  41576. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41577. <exception name="IOException" type="java.io.IOException"/>
  41578. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41579. </method>
  41580. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  41581. abstract="false" native="false" synchronized="false"
  41582. static="false" final="false" visibility="public"
  41583. deprecated="not deprecated">
  41584. <param name="url" type="java.net.URL"/>
  41585. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41586. <param name="renewer" type="java.lang.String"/>
  41587. <exception name="IOException" type="java.io.IOException"/>
  41588. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41589. <doc>
  41590. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  41591. for authentication.
  41592. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  41593. supported.
  41594. @param token the authentication token being used for the user where the
  41595. Delegation token will be stored.
  41596. @param renewer the renewer user.
  41597. @throws IOException if an IO error occurred.
  41598. @throws AuthenticationException if an authentication exception occurred.]]>
  41599. </doc>
  41600. </method>
  41601. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  41602. abstract="false" native="false" synchronized="false"
  41603. static="false" final="false" visibility="public"
  41604. deprecated="not deprecated">
  41605. <param name="url" type="java.net.URL"/>
  41606. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41607. <param name="renewer" type="java.lang.String"/>
  41608. <param name="doAsUser" type="java.lang.String"/>
  41609. <exception name="IOException" type="java.io.IOException"/>
  41610. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41611. <doc>
  41612. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  41613. for authentication.
  41614. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  41615. supported.
  41616. @param token the authentication token being used for the user where the
  41617. Delegation token will be stored.
  41618. @param renewer the renewer user.
  41619. @param doAsUser the user to do as, which will be the token owner.
  41620. @throws IOException if an IO error occurred.
  41621. @throws AuthenticationException if an authentication exception occurred.]]>
  41622. </doc>
  41623. </method>
  41624. <method name="renewDelegationToken" return="long"
  41625. abstract="false" native="false" synchronized="false"
  41626. static="false" final="false" visibility="public"
  41627. deprecated="not deprecated">
  41628. <param name="url" type="java.net.URL"/>
  41629. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41630. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  41631. <exception name="IOException" type="java.io.IOException"/>
  41632. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41633. <doc>
  41634. <![CDATA[Renews a delegation token from the server end-point using the
  41635. configured <code>Authenticator</code> for authentication.
  41636. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  41637. supported.
  41638. @param token the authentication token with the Delegation Token to renew.
  41639. @throws IOException if an IO error occurred.
  41640. @throws AuthenticationException if an authentication exception occurred.]]>
  41641. </doc>
  41642. </method>
  41643. <method name="renewDelegationToken" return="long"
  41644. abstract="false" native="false" synchronized="false"
  41645. static="false" final="false" visibility="public"
  41646. deprecated="not deprecated">
  41647. <param name="url" type="java.net.URL"/>
  41648. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41649. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  41650. <param name="doAsUser" type="java.lang.String"/>
  41651. <exception name="IOException" type="java.io.IOException"/>
  41652. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  41653. <doc>
  41654. <![CDATA[Renews a delegation token from the server end-point using the
  41655. configured <code>Authenticator</code> for authentication.
  41656. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  41657. supported.
  41658. @param token the authentication token with the Delegation Token to renew.
  41659. @param doAsUser the user to do as, which will be the token owner.
  41660. @throws IOException if an IO error occurred.
  41661. @throws AuthenticationException if an authentication exception occurred.]]>
  41662. </doc>
  41663. </method>
  41664. <method name="cancelDelegationToken"
  41665. abstract="false" native="false" synchronized="false"
  41666. static="false" final="false" visibility="public"
  41667. deprecated="not deprecated">
  41668. <param name="url" type="java.net.URL"/>
  41669. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41670. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  41671. <exception name="IOException" type="java.io.IOException"/>
  41672. <doc>
  41673. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  41674. being authenticated by the configured <code>Authenticator</code>.
  41675. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  41676. are supported.
  41677. @param token the authentication token with the Delegation Token to cancel.
  41678. @throws IOException if an IO error occurred.]]>
  41679. </doc>
  41680. </method>
  41681. <method name="cancelDelegationToken"
  41682. abstract="false" native="false" synchronized="false"
  41683. static="false" final="false" visibility="public"
  41684. deprecated="not deprecated">
  41685. <param name="url" type="java.net.URL"/>
  41686. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  41687. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  41688. <param name="doAsUser" type="java.lang.String"/>
  41689. <exception name="IOException" type="java.io.IOException"/>
  41690. <doc>
  41691. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  41692. being authenticated by the configured <code>Authenticator</code>.
  41693. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  41694. are supported.
  41695. @param token the authentication token with the Delegation Token to cancel.
  41696. @param doAsUser the user to do as, which will be the token owner.
  41697. @throws IOException if an IO error occurred.]]>
  41698. </doc>
  41699. </method>
  41700. <field name="OP_PARAM" type="java.lang.String"
  41701. transient="false" volatile="false"
  41702. static="true" final="true" visibility="public"
  41703. deprecated="not deprecated">
  41704. </field>
  41705. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  41706. transient="false" volatile="false"
  41707. static="true" final="true" visibility="public"
  41708. deprecated="not deprecated">
  41709. </field>
  41710. <field name="DELEGATION_PARAM" type="java.lang.String"
  41711. transient="false" volatile="false"
  41712. static="true" final="true" visibility="public"
  41713. deprecated="not deprecated">
  41714. </field>
  41715. <field name="TOKEN_PARAM" type="java.lang.String"
  41716. transient="false" volatile="false"
  41717. static="true" final="true" visibility="public"
  41718. deprecated="not deprecated">
  41719. </field>
  41720. <field name="RENEWER_PARAM" type="java.lang.String"
  41721. transient="false" volatile="false"
  41722. static="true" final="true" visibility="public"
  41723. deprecated="not deprecated">
  41724. </field>
  41725. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  41726. transient="false" volatile="false"
  41727. static="true" final="true" visibility="public"
  41728. deprecated="not deprecated">
  41729. </field>
  41730. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  41731. transient="false" volatile="false"
  41732. static="true" final="true" visibility="public"
  41733. deprecated="not deprecated">
  41734. </field>
  41735. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  41736. transient="false" volatile="false"
  41737. static="true" final="true" visibility="public"
  41738. deprecated="not deprecated">
  41739. </field>
  41740. <doc>
  41741. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  41742. Delegation Token support.]]>
  41743. </doc>
  41744. </class>
  41745. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  41746. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  41747. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  41748. abstract="false"
  41749. static="false" final="false" visibility="public"
  41750. deprecated="not deprecated">
  41751. <constructor name="KerberosDelegationTokenAuthenticator"
  41752. static="false" final="false" visibility="public"
  41753. deprecated="not deprecated">
  41754. </constructor>
  41755. <doc>
  41756. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  41757. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  41758. Token operations.
  41759. <p/>
  41760. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  41761. endpoint does not trigger a SPNEGO authentication]]>
  41762. </doc>
  41763. </class>
  41764. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  41765. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  41766. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  41767. abstract="false"
  41768. static="false" final="false" visibility="public"
  41769. deprecated="not deprecated">
  41770. <constructor name="PseudoDelegationTokenAuthenticator"
  41771. static="false" final="false" visibility="public"
  41772. deprecated="not deprecated">
  41773. </constructor>
  41774. <doc>
  41775. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  41776. Hadoop's pseudo authentication mechanism that accepts
  41777. the user name specified as a query string parameter and support for Hadoop
  41778. Delegation Token operations.
  41779. <p/>
  41780. This mimics the model of Hadoop Simple authentication trusting the
  41781. {@link UserGroupInformation#getCurrentUser()} value.]]>
  41782. </doc>
  41783. </class>
  41784. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  41785. </package>
  41786. <package name="org.apache.hadoop.service">
  41787. <!-- start class org.apache.hadoop.service.AbstractService -->
  41788. <class name="AbstractService" extends="java.lang.Object"
  41789. abstract="true"
  41790. static="false" final="false" visibility="public"
  41791. deprecated="not deprecated">
  41792. <implements name="org.apache.hadoop.service.Service"/>
  41793. <constructor name="AbstractService" type="java.lang.String"
  41794. static="false" final="false" visibility="public"
  41795. deprecated="not deprecated">
  41796. <doc>
  41797. <![CDATA[Construct the service.
  41798. @param name service name]]>
  41799. </doc>
  41800. </constructor>
  41801. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  41802. abstract="false" native="false" synchronized="false"
  41803. static="false" final="true" visibility="public"
  41804. deprecated="not deprecated">
  41805. </method>
  41806. <method name="getFailureCause" return="java.lang.Throwable"
  41807. abstract="false" native="false" synchronized="true"
  41808. static="false" final="true" visibility="public"
  41809. deprecated="not deprecated">
  41810. </method>
  41811. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  41812. abstract="false" native="false" synchronized="true"
  41813. static="false" final="false" visibility="public"
  41814. deprecated="not deprecated">
  41815. </method>
  41816. <method name="setConfig"
  41817. abstract="false" native="false" synchronized="false"
  41818. static="false" final="false" visibility="protected"
  41819. deprecated="not deprecated">
  41820. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41821. <doc>
  41822. <![CDATA[Set the configuration for this service.
  41823. This method is called during {@link #init(Configuration)}
  41824. and should only be needed if for some reason a service implementation
  41825. needs to override that initial setting -for example replacing
  41826. it with a new subclass of {@link Configuration}
  41827. @param conf new configuration.]]>
  41828. </doc>
  41829. </method>
  41830. <method name="init"
  41831. abstract="false" native="false" synchronized="false"
  41832. static="false" final="false" visibility="public"
  41833. deprecated="not deprecated">
  41834. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41835. <doc>
  41836. <![CDATA[{@inheritDoc}
  41837. This invokes {@link #serviceInit}
  41838. @param conf the configuration of the service. This must not be null
  41839. @throws ServiceStateException if the configuration was null,
  41840. the state change not permitted, or something else went wrong]]>
  41841. </doc>
  41842. </method>
  41843. <method name="start"
  41844. abstract="false" native="false" synchronized="false"
  41845. static="false" final="false" visibility="public"
  41846. deprecated="not deprecated">
  41847. <doc>
  41848. <![CDATA[{@inheritDoc}
  41849. @throws ServiceStateException if the current service state does not permit
  41850. this action]]>
  41851. </doc>
  41852. </method>
  41853. <method name="stop"
  41854. abstract="false" native="false" synchronized="false"
  41855. static="false" final="false" visibility="public"
  41856. deprecated="not deprecated">
  41857. <doc>
  41858. <![CDATA[{@inheritDoc}]]>
  41859. </doc>
  41860. </method>
  41861. <method name="close"
  41862. abstract="false" native="false" synchronized="false"
  41863. static="false" final="true" visibility="public"
  41864. deprecated="not deprecated">
  41865. <exception name="IOException" type="java.io.IOException"/>
  41866. <doc>
  41867. <![CDATA[Relay to {@link #stop()}
  41868. @throws IOException]]>
  41869. </doc>
  41870. </method>
  41871. <method name="noteFailure"
  41872. abstract="false" native="false" synchronized="false"
  41873. static="false" final="true" visibility="protected"
  41874. deprecated="not deprecated">
  41875. <param name="exception" type="java.lang.Exception"/>
  41876. <doc>
  41877. <![CDATA[Failure handling: record the exception
  41878. that triggered it -if there was not one already.
  41879. Services are free to call this themselves.
  41880. @param exception the exception]]>
  41881. </doc>
  41882. </method>
  41883. <method name="waitForServiceToStop" return="boolean"
  41884. abstract="false" native="false" synchronized="false"
  41885. static="false" final="true" visibility="public"
  41886. deprecated="not deprecated">
  41887. <param name="timeout" type="long"/>
  41888. </method>
  41889. <method name="serviceInit"
  41890. abstract="false" native="false" synchronized="false"
  41891. static="false" final="false" visibility="protected"
  41892. deprecated="not deprecated">
  41893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41894. <exception name="Exception" type="java.lang.Exception"/>
  41895. <doc>
  41896. <![CDATA[All initialization code needed by a service.
  41897. This method will only ever be called once during the lifecycle of
  41898. a specific service instance.
  41899. Implementations do not need to be synchronized as the logic
  41900. in {@link #init(Configuration)} prevents re-entrancy.
  41901. The base implementation checks to see if the subclass has created
  41902. a new configuration instance, and if so, updates the base class value
  41903. @param conf configuration
  41904. @throws Exception on a failure -these will be caught,
  41905. possibly wrapped, and wil; trigger a service stop]]>
  41906. </doc>
  41907. </method>
  41908. <method name="serviceStart"
  41909. abstract="false" native="false" synchronized="false"
  41910. static="false" final="false" visibility="protected"
  41911. deprecated="not deprecated">
  41912. <exception name="Exception" type="java.lang.Exception"/>
  41913. <doc>
  41914. <![CDATA[Actions called during the INITED to STARTED transition.
  41915. This method will only ever be called once during the lifecycle of
  41916. a specific service instance.
  41917. Implementations do not need to be synchronized as the logic
  41918. in {@link #start()} prevents re-entrancy.
  41919. @throws Exception if needed -these will be caught,
  41920. wrapped, and trigger a service stop]]>
  41921. </doc>
  41922. </method>
  41923. <method name="serviceStop"
  41924. abstract="false" native="false" synchronized="false"
  41925. static="false" final="false" visibility="protected"
  41926. deprecated="not deprecated">
  41927. <exception name="Exception" type="java.lang.Exception"/>
  41928. <doc>
  41929. <![CDATA[Actions called during the transition to the STOPPED state.
  41930. This method will only ever be called once during the lifecycle of
  41931. a specific service instance.
  41932. Implementations do not need to be synchronized as the logic
  41933. in {@link #stop()} prevents re-entrancy.
  41934. Implementations MUST write this to be robust against failures, including
  41935. checks for null references -and for the first failure to not stop other
  41936. attempts to shut down parts of the service.
  41937. @throws Exception if needed -these will be caught and logged.]]>
  41938. </doc>
  41939. </method>
  41940. <method name="registerServiceListener"
  41941. abstract="false" native="false" synchronized="false"
  41942. static="false" final="false" visibility="public"
  41943. deprecated="not deprecated">
  41944. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41945. </method>
  41946. <method name="unregisterServiceListener"
  41947. abstract="false" native="false" synchronized="false"
  41948. static="false" final="false" visibility="public"
  41949. deprecated="not deprecated">
  41950. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41951. </method>
  41952. <method name="registerGlobalListener"
  41953. abstract="false" native="false" synchronized="false"
  41954. static="true" final="false" visibility="public"
  41955. deprecated="not deprecated">
  41956. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41957. <doc>
  41958. <![CDATA[Register a global listener, which receives notifications
  41959. from the state change events of all services in the JVM
  41960. @param l listener]]>
  41961. </doc>
  41962. </method>
  41963. <method name="unregisterGlobalListener" return="boolean"
  41964. abstract="false" native="false" synchronized="false"
  41965. static="true" final="false" visibility="public"
  41966. deprecated="not deprecated">
  41967. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  41968. <doc>
  41969. <![CDATA[unregister a global listener.
  41970. @param l listener to unregister
  41971. @return true if the listener was found (and then deleted)]]>
  41972. </doc>
  41973. </method>
  41974. <method name="getName" return="java.lang.String"
  41975. abstract="false" native="false" synchronized="false"
  41976. static="false" final="false" visibility="public"
  41977. deprecated="not deprecated">
  41978. </method>
  41979. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  41980. abstract="false" native="false" synchronized="true"
  41981. static="false" final="false" visibility="public"
  41982. deprecated="not deprecated">
  41983. </method>
  41984. <method name="getStartTime" return="long"
  41985. abstract="false" native="false" synchronized="false"
  41986. static="false" final="false" visibility="public"
  41987. deprecated="not deprecated">
  41988. </method>
  41989. <method name="getLifecycleHistory" return="java.util.List"
  41990. abstract="false" native="false" synchronized="true"
  41991. static="false" final="false" visibility="public"
  41992. deprecated="not deprecated">
  41993. </method>
  41994. <method name="isInState" return="boolean"
  41995. abstract="false" native="false" synchronized="false"
  41996. static="false" final="true" visibility="public"
  41997. deprecated="not deprecated">
  41998. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  41999. </method>
  42000. <method name="toString" return="java.lang.String"
  42001. abstract="false" native="false" synchronized="false"
  42002. static="false" final="false" visibility="public"
  42003. deprecated="not deprecated">
  42004. </method>
  42005. <method name="putBlocker"
  42006. abstract="false" native="false" synchronized="false"
  42007. static="false" final="false" visibility="protected"
  42008. deprecated="not deprecated">
  42009. <param name="name" type="java.lang.String"/>
  42010. <param name="details" type="java.lang.String"/>
  42011. <doc>
  42012. <![CDATA[Put a blocker to the blocker map -replacing any
  42013. with the same name.
  42014. @param name blocker name
  42015. @param details any specifics on the block. This must be non-null.]]>
  42016. </doc>
  42017. </method>
  42018. <method name="removeBlocker"
  42019. abstract="false" native="false" synchronized="false"
  42020. static="false" final="false" visibility="public"
  42021. deprecated="not deprecated">
  42022. <param name="name" type="java.lang.String"/>
  42023. <doc>
  42024. <![CDATA[Remove a blocker from the blocker map -
  42025. this is a no-op if the blocker is not present
  42026. @param name the name of the blocker]]>
  42027. </doc>
  42028. </method>
  42029. <method name="getBlockers" return="java.util.Map"
  42030. abstract="false" native="false" synchronized="false"
  42031. static="false" final="false" visibility="public"
  42032. deprecated="not deprecated">
  42033. </method>
  42034. <doc>
  42035. <![CDATA[This is the base implementation class for services.]]>
  42036. </doc>
  42037. </class>
  42038. <!-- end class org.apache.hadoop.service.AbstractService -->
  42039. <!-- start class org.apache.hadoop.service.CompositeService -->
  42040. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  42041. abstract="false"
  42042. static="false" final="false" visibility="public"
  42043. deprecated="not deprecated">
  42044. <constructor name="CompositeService" type="java.lang.String"
  42045. static="false" final="false" visibility="public"
  42046. deprecated="not deprecated">
  42047. </constructor>
  42048. <method name="getServices" return="java.util.List"
  42049. abstract="false" native="false" synchronized="false"
  42050. static="false" final="false" visibility="public"
  42051. deprecated="not deprecated">
  42052. <doc>
  42053. <![CDATA[Get a cloned list of services
  42054. @return a list of child services at the time of invocation -
  42055. added services will not be picked up.]]>
  42056. </doc>
  42057. </method>
  42058. <method name="addService"
  42059. abstract="false" native="false" synchronized="false"
  42060. static="false" final="false" visibility="protected"
  42061. deprecated="not deprecated">
  42062. <param name="service" type="org.apache.hadoop.service.Service"/>
  42063. <doc>
  42064. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  42065. {@link CompositeService}
  42066. @param service the {@link Service} to be added]]>
  42067. </doc>
  42068. </method>
  42069. <method name="addIfService" return="boolean"
  42070. abstract="false" native="false" synchronized="false"
  42071. static="false" final="false" visibility="protected"
  42072. deprecated="not deprecated">
  42073. <param name="object" type="java.lang.Object"/>
  42074. <doc>
  42075. <![CDATA[If the passed object is an instance of {@link Service},
  42076. add it to the list of services managed by this {@link CompositeService}
  42077. @param object
  42078. @return true if a service is added, false otherwise.]]>
  42079. </doc>
  42080. </method>
  42081. <method name="removeService" return="boolean"
  42082. abstract="false" native="false" synchronized="true"
  42083. static="false" final="false" visibility="protected"
  42084. deprecated="not deprecated">
  42085. <param name="service" type="org.apache.hadoop.service.Service"/>
  42086. </method>
  42087. <method name="serviceInit"
  42088. abstract="false" native="false" synchronized="false"
  42089. static="false" final="false" visibility="protected"
  42090. deprecated="not deprecated">
  42091. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42092. <exception name="Exception" type="java.lang.Exception"/>
  42093. </method>
  42094. <method name="serviceStart"
  42095. abstract="false" native="false" synchronized="false"
  42096. static="false" final="false" visibility="protected"
  42097. deprecated="not deprecated">
  42098. <exception name="Exception" type="java.lang.Exception"/>
  42099. </method>
  42100. <method name="serviceStop"
  42101. abstract="false" native="false" synchronized="false"
  42102. static="false" final="false" visibility="protected"
  42103. deprecated="not deprecated">
  42104. <exception name="Exception" type="java.lang.Exception"/>
  42105. </method>
  42106. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  42107. transient="false" volatile="false"
  42108. static="true" final="true" visibility="protected"
  42109. deprecated="not deprecated">
  42110. <doc>
  42111. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  42112. only try to close started services (which assumes
  42113. that the service implementations may not handle the stop() operation
  42114. except when started.
  42115. Irrespective of this policy, if a child service fails during
  42116. its init() or start() operations, it will have stop() called on it.]]>
  42117. </doc>
  42118. </field>
  42119. <doc>
  42120. <![CDATA[Composition of services.]]>
  42121. </doc>
  42122. </class>
  42123. <!-- end class org.apache.hadoop.service.CompositeService -->
  42124. <!-- start class org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook -->
  42125. <class name="CompositeService.CompositeServiceShutdownHook" extends="java.lang.Object"
  42126. abstract="false"
  42127. static="true" final="false" visibility="public"
  42128. deprecated="not deprecated">
  42129. <implements name="java.lang.Runnable"/>
  42130. <constructor name="CompositeServiceShutdownHook" type="org.apache.hadoop.service.CompositeService"
  42131. static="false" final="false" visibility="public"
  42132. deprecated="not deprecated">
  42133. </constructor>
  42134. <method name="run"
  42135. abstract="false" native="false" synchronized="false"
  42136. static="false" final="false" visibility="public"
  42137. deprecated="not deprecated">
  42138. </method>
  42139. <doc>
  42140. <![CDATA[JVM Shutdown hook for CompositeService which will stop the give
  42141. CompositeService gracefully in case of JVM shutdown.]]>
  42142. </doc>
  42143. </class>
  42144. <!-- end class org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook -->
  42145. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  42146. <class name="LifecycleEvent" extends="java.lang.Object"
  42147. abstract="false"
  42148. static="false" final="false" visibility="public"
  42149. deprecated="not deprecated">
  42150. <implements name="java.io.Serializable"/>
  42151. <constructor name="LifecycleEvent"
  42152. static="false" final="false" visibility="public"
  42153. deprecated="not deprecated">
  42154. </constructor>
  42155. <field name="time" type="long"
  42156. transient="false" volatile="false"
  42157. static="false" final="false" visibility="public"
  42158. deprecated="not deprecated">
  42159. <doc>
  42160. <![CDATA[Local time in milliseconds when the event occurred]]>
  42161. </doc>
  42162. </field>
  42163. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  42164. transient="false" volatile="false"
  42165. static="false" final="false" visibility="public"
  42166. deprecated="not deprecated">
  42167. <doc>
  42168. <![CDATA[new state]]>
  42169. </doc>
  42170. </field>
  42171. <doc>
  42172. <![CDATA[A serializable lifecycle event: the time a state
  42173. transition occurred, and what state was entered.]]>
  42174. </doc>
  42175. </class>
  42176. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  42177. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  42178. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  42179. abstract="false"
  42180. static="false" final="false" visibility="public"
  42181. deprecated="not deprecated">
  42182. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  42183. <constructor name="LoggingStateChangeListener" type="org.apache.commons.logging.Log"
  42184. static="false" final="false" visibility="public"
  42185. deprecated="not deprecated">
  42186. <doc>
  42187. <![CDATA[Log events to the given log
  42188. @param log destination for events]]>
  42189. </doc>
  42190. </constructor>
  42191. <constructor name="LoggingStateChangeListener"
  42192. static="false" final="false" visibility="public"
  42193. deprecated="not deprecated">
  42194. <doc>
  42195. <![CDATA[Log events to the static log for this class]]>
  42196. </doc>
  42197. </constructor>
  42198. <method name="stateChanged"
  42199. abstract="false" native="false" synchronized="false"
  42200. static="false" final="false" visibility="public"
  42201. deprecated="not deprecated">
  42202. <param name="service" type="org.apache.hadoop.service.Service"/>
  42203. <doc>
  42204. <![CDATA[Callback for a state change event: log it
  42205. @param service the service that has changed.]]>
  42206. </doc>
  42207. </method>
  42208. <doc>
  42209. <![CDATA[This is a state change listener that logs events at INFO level]]>
  42210. </doc>
  42211. </class>
  42212. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  42213. <!-- start interface org.apache.hadoop.service.Service -->
  42214. <interface name="Service" abstract="true"
  42215. static="false" final="false" visibility="public"
  42216. deprecated="not deprecated">
  42217. <implements name="java.io.Closeable"/>
  42218. <method name="init"
  42219. abstract="true" native="false" synchronized="false"
  42220. static="false" final="false" visibility="public"
  42221. deprecated="not deprecated">
  42222. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  42223. <doc>
  42224. <![CDATA[Initialize the service.
  42225. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  42226. unless the operation failed and an exception was raised, in which case
  42227. {@link #stop()} MUST be invoked and the service enter the state
  42228. {@link STATE#STOPPED}.
  42229. @param config the configuration of the service
  42230. @throws RuntimeException on any failure during the operation]]>
  42231. </doc>
  42232. </method>
  42233. <method name="start"
  42234. abstract="true" native="false" synchronized="false"
  42235. static="false" final="false" visibility="public"
  42236. deprecated="not deprecated">
  42237. <doc>
  42238. <![CDATA[Start the service.
  42239. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  42240. unless the operation failed and an exception was raised, in which case
  42241. {@link #stop()} MUST be invoked and the service enter the state
  42242. {@link STATE#STOPPED}.
  42243. @throws RuntimeException on any failure during the operation]]>
  42244. </doc>
  42245. </method>
  42246. <method name="stop"
  42247. abstract="true" native="false" synchronized="false"
  42248. static="false" final="false" visibility="public"
  42249. deprecated="not deprecated">
  42250. <doc>
  42251. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  42252. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  42253. to stop all parts of the service.
  42254. The implementation must be designed to complete regardless of the service
  42255. state, including the initialized/uninitialized state of all its internal
  42256. fields.
  42257. @throws RuntimeException on any failure during the stop operation]]>
  42258. </doc>
  42259. </method>
  42260. <method name="close"
  42261. abstract="true" native="false" synchronized="false"
  42262. static="false" final="false" visibility="public"
  42263. deprecated="not deprecated">
  42264. <exception name="IOException" type="java.io.IOException"/>
  42265. <doc>
  42266. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  42267. clauses.
  42268. Implementation classes MUST relay this directly to {@link #stop()}
  42269. @throws IOException never
  42270. @throws RuntimeException on any failure during the stop operation]]>
  42271. </doc>
  42272. </method>
  42273. <method name="registerServiceListener"
  42274. abstract="true" native="false" synchronized="false"
  42275. static="false" final="false" visibility="public"
  42276. deprecated="not deprecated">
  42277. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  42278. <doc>
  42279. <![CDATA[Register a listener to the service state change events.
  42280. If the supplied listener is already listening to this service,
  42281. this method is a no-op.
  42282. @param listener a new listener]]>
  42283. </doc>
  42284. </method>
  42285. <method name="unregisterServiceListener"
  42286. abstract="true" native="false" synchronized="false"
  42287. static="false" final="false" visibility="public"
  42288. deprecated="not deprecated">
  42289. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  42290. <doc>
  42291. <![CDATA[Unregister a previously registered listener of the service state
  42292. change events. No-op if the listener is already unregistered.
  42293. @param listener the listener to unregister.]]>
  42294. </doc>
  42295. </method>
  42296. <method name="getName" return="java.lang.String"
  42297. abstract="true" native="false" synchronized="false"
  42298. static="false" final="false" visibility="public"
  42299. deprecated="not deprecated">
  42300. <doc>
  42301. <![CDATA[Get the name of this service.
  42302. @return the service name]]>
  42303. </doc>
  42304. </method>
  42305. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  42306. abstract="true" native="false" synchronized="false"
  42307. static="false" final="false" visibility="public"
  42308. deprecated="not deprecated">
  42309. <doc>
  42310. <![CDATA[Get the configuration of this service.
  42311. This is normally not a clone and may be manipulated, though there are no
  42312. guarantees as to what the consequences of such actions may be
  42313. @return the current configuration, unless a specific implentation chooses
  42314. otherwise.]]>
  42315. </doc>
  42316. </method>
  42317. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  42318. abstract="true" native="false" synchronized="false"
  42319. static="false" final="false" visibility="public"
  42320. deprecated="not deprecated">
  42321. <doc>
  42322. <![CDATA[Get the current service state
  42323. @return the state of the service]]>
  42324. </doc>
  42325. </method>
  42326. <method name="getStartTime" return="long"
  42327. abstract="true" native="false" synchronized="false"
  42328. static="false" final="false" visibility="public"
  42329. deprecated="not deprecated">
  42330. <doc>
  42331. <![CDATA[Get the service start time
  42332. @return the start time of the service. This will be zero if the service
  42333. has not yet been started.]]>
  42334. </doc>
  42335. </method>
  42336. <method name="isInState" return="boolean"
  42337. abstract="true" native="false" synchronized="false"
  42338. static="false" final="false" visibility="public"
  42339. deprecated="not deprecated">
  42340. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  42341. <doc>
  42342. <![CDATA[Query to see if the service is in a specific state.
  42343. In a multi-threaded system, the state may not hold for very long.
  42344. @param state the expected state
  42345. @return true if, at the time of invocation, the service was in that state.]]>
  42346. </doc>
  42347. </method>
  42348. <method name="getFailureCause" return="java.lang.Throwable"
  42349. abstract="true" native="false" synchronized="false"
  42350. static="false" final="false" visibility="public"
  42351. deprecated="not deprecated">
  42352. <doc>
  42353. <![CDATA[Get the first exception raised during the service failure. If null,
  42354. no exception was logged
  42355. @return the failure logged during a transition to the stopped state]]>
  42356. </doc>
  42357. </method>
  42358. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  42359. abstract="true" native="false" synchronized="false"
  42360. static="false" final="false" visibility="public"
  42361. deprecated="not deprecated">
  42362. <doc>
  42363. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  42364. @return the state or null if there was no failure]]>
  42365. </doc>
  42366. </method>
  42367. <method name="waitForServiceToStop" return="boolean"
  42368. abstract="true" native="false" synchronized="false"
  42369. static="false" final="false" visibility="public"
  42370. deprecated="not deprecated">
  42371. <param name="timeout" type="long"/>
  42372. <doc>
  42373. <![CDATA[Block waiting for the service to stop; uses the termination notification
  42374. object to do so.
  42375. This method will only return after all the service stop actions
  42376. have been executed (to success or failure), or the timeout elapsed
  42377. This method can be called before the service is inited or started; this is
  42378. to eliminate any race condition with the service stopping before
  42379. this event occurs.
  42380. @param timeout timeout in milliseconds. A value of zero means "forever"
  42381. @return true iff the service stopped in the time period]]>
  42382. </doc>
  42383. </method>
  42384. <method name="getLifecycleHistory" return="java.util.List"
  42385. abstract="true" native="false" synchronized="false"
  42386. static="false" final="false" visibility="public"
  42387. deprecated="not deprecated">
  42388. <doc>
  42389. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  42390. @return a possibly empty but never null list of lifecycle events.]]>
  42391. </doc>
  42392. </method>
  42393. <method name="getBlockers" return="java.util.Map"
  42394. abstract="true" native="false" synchronized="false"
  42395. static="false" final="false" visibility="public"
  42396. deprecated="not deprecated">
  42397. <doc>
  42398. <![CDATA[Get the blockers on a service -remote dependencies
  42399. that are stopping the service from being <i>live</i>.
  42400. @return a (snapshotted) map of blocker name-&gt;description values]]>
  42401. </doc>
  42402. </method>
  42403. <doc>
  42404. <![CDATA[Service LifeCycle.]]>
  42405. </doc>
  42406. </interface>
  42407. <!-- end interface org.apache.hadoop.service.Service -->
  42408. <!-- start class org.apache.hadoop.service.Service.STATE -->
  42409. <class name="Service.STATE" extends="java.lang.Enum"
  42410. abstract="false"
  42411. static="true" final="true" visibility="public"
  42412. deprecated="not deprecated">
  42413. <method name="values" return="org.apache.hadoop.service.Service.STATE[]"
  42414. abstract="false" native="false" synchronized="false"
  42415. static="true" final="false" visibility="public"
  42416. deprecated="not deprecated">
  42417. </method>
  42418. <method name="valueOf" return="org.apache.hadoop.service.Service.STATE"
  42419. abstract="false" native="false" synchronized="false"
  42420. static="true" final="false" visibility="public"
  42421. deprecated="not deprecated">
  42422. <param name="name" type="java.lang.String"/>
  42423. </method>
  42424. <method name="getValue" return="int"
  42425. abstract="false" native="false" synchronized="false"
  42426. static="false" final="false" visibility="public"
  42427. deprecated="not deprecated">
  42428. <doc>
  42429. <![CDATA[Get the integer value of a state
  42430. @return the numeric value of the state]]>
  42431. </doc>
  42432. </method>
  42433. <method name="toString" return="java.lang.String"
  42434. abstract="false" native="false" synchronized="false"
  42435. static="false" final="false" visibility="public"
  42436. deprecated="not deprecated">
  42437. <doc>
  42438. <![CDATA[Get the name of a state
  42439. @return the state's name]]>
  42440. </doc>
  42441. </method>
  42442. <doc>
  42443. <![CDATA[Service states]]>
  42444. </doc>
  42445. </class>
  42446. <!-- end class org.apache.hadoop.service.Service.STATE -->
  42447. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  42448. <class name="ServiceOperations" extends="java.lang.Object"
  42449. abstract="false"
  42450. static="false" final="true" visibility="public"
  42451. deprecated="not deprecated">
  42452. <method name="stop"
  42453. abstract="false" native="false" synchronized="false"
  42454. static="true" final="false" visibility="public"
  42455. deprecated="not deprecated">
  42456. <param name="service" type="org.apache.hadoop.service.Service"/>
  42457. <doc>
  42458. <![CDATA[Stop a service.
  42459. <p/>Do nothing if the service is null or not
  42460. in a state in which it can be/needs to be stopped.
  42461. <p/>
  42462. The service state is checked <i>before</i> the operation begins.
  42463. This process is <i>not</i> thread safe.
  42464. @param service a service or null]]>
  42465. </doc>
  42466. </method>
  42467. <method name="stopQuietly" return="java.lang.Exception"
  42468. abstract="false" native="false" synchronized="false"
  42469. static="true" final="false" visibility="public"
  42470. deprecated="not deprecated">
  42471. <param name="service" type="org.apache.hadoop.service.Service"/>
  42472. <doc>
  42473. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  42474. logged at warn level. (but not Throwables). This operation is intended to
  42475. be used in cleanup operations
  42476. @param service a service; may be null
  42477. @return any exception that was caught; null if none was.]]>
  42478. </doc>
  42479. </method>
  42480. <method name="stopQuietly" return="java.lang.Exception"
  42481. abstract="false" native="false" synchronized="false"
  42482. static="true" final="false" visibility="public"
  42483. deprecated="not deprecated">
  42484. <param name="log" type="org.apache.commons.logging.Log"/>
  42485. <param name="service" type="org.apache.hadoop.service.Service"/>
  42486. <doc>
  42487. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  42488. logged at warn level. (but not Throwables). This operation is intended to
  42489. be used in cleanup operations
  42490. @param log the log to warn at
  42491. @param service a service; may be null
  42492. @return any exception that was caught; null if none was.
  42493. @see ServiceOperations#stopQuietly(Service)]]>
  42494. </doc>
  42495. </method>
  42496. <doc>
  42497. <![CDATA[This class contains a set of methods to work with services, especially
  42498. to walk them through their lifecycle.]]>
  42499. </doc>
  42500. </class>
  42501. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  42502. <!-- start class org.apache.hadoop.service.ServiceOperations.ServiceListeners -->
  42503. <class name="ServiceOperations.ServiceListeners" extends="java.lang.Object"
  42504. abstract="false"
  42505. static="true" final="false" visibility="public"
  42506. deprecated="not deprecated">
  42507. <constructor name="ServiceListeners"
  42508. static="false" final="false" visibility="public"
  42509. deprecated="not deprecated">
  42510. </constructor>
  42511. <method name="add"
  42512. abstract="false" native="false" synchronized="true"
  42513. static="false" final="false" visibility="public"
  42514. deprecated="not deprecated">
  42515. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  42516. <doc>
  42517. <![CDATA[Thread-safe addition of a new listener to the end of a list.
  42518. Attempts to re-register a listener that is already registered
  42519. will be ignored.
  42520. @param l listener]]>
  42521. </doc>
  42522. </method>
  42523. <method name="remove" return="boolean"
  42524. abstract="false" native="false" synchronized="true"
  42525. static="false" final="false" visibility="public"
  42526. deprecated="not deprecated">
  42527. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  42528. <doc>
  42529. <![CDATA[Remove any registration of a listener from the listener list.
  42530. @param l listener
  42531. @return true if the listener was found (and then removed)]]>
  42532. </doc>
  42533. </method>
  42534. <method name="reset"
  42535. abstract="false" native="false" synchronized="true"
  42536. static="false" final="false" visibility="public"
  42537. deprecated="not deprecated">
  42538. <doc>
  42539. <![CDATA[Reset the listener list]]>
  42540. </doc>
  42541. </method>
  42542. <method name="notifyListeners"
  42543. abstract="false" native="false" synchronized="false"
  42544. static="false" final="false" visibility="public"
  42545. deprecated="not deprecated">
  42546. <param name="service" type="org.apache.hadoop.service.Service"/>
  42547. <doc>
  42548. <![CDATA[Change to a new state and notify all listeners.
  42549. This method will block until all notifications have been issued.
  42550. It caches the list of listeners before the notification begins,
  42551. so additions or removal of listeners will not be visible.
  42552. @param service the service that has changed state]]>
  42553. </doc>
  42554. </method>
  42555. <doc>
  42556. <![CDATA[Class to manage a list of {@link ServiceStateChangeListener} instances,
  42557. including a notification loop that is robust against changes to the list
  42558. during the notification process.]]>
  42559. </doc>
  42560. </class>
  42561. <!-- end class org.apache.hadoop.service.ServiceOperations.ServiceListeners -->
  42562. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  42563. <interface name="ServiceStateChangeListener" abstract="true"
  42564. static="false" final="false" visibility="public"
  42565. deprecated="not deprecated">
  42566. <method name="stateChanged"
  42567. abstract="true" native="false" synchronized="false"
  42568. static="false" final="false" visibility="public"
  42569. deprecated="not deprecated">
  42570. <param name="service" type="org.apache.hadoop.service.Service"/>
  42571. <doc>
  42572. <![CDATA[Callback to notify of a state change. The service will already
  42573. have changed state before this callback is invoked.
  42574. This operation is invoked on the thread that initiated the state change,
  42575. while the service itself in in a sychronized section.
  42576. <ol>
  42577. <li>Any long-lived operation here will prevent the service state
  42578. change from completing in a timely manner.</li>
  42579. <li>If another thread is somehow invoked from the listener, and
  42580. that thread invokes the methods of the service (including
  42581. subclass-specific methods), there is a risk of a deadlock.</li>
  42582. </ol>
  42583. @param service the service that has changed.]]>
  42584. </doc>
  42585. </method>
  42586. <doc>
  42587. <![CDATA[Interface to notify state changes of a service.]]>
  42588. </doc>
  42589. </interface>
  42590. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  42591. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  42592. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  42593. abstract="false"
  42594. static="false" final="false" visibility="public"
  42595. deprecated="not deprecated">
  42596. <constructor name="ServiceStateException" type="java.lang.String"
  42597. static="false" final="false" visibility="public"
  42598. deprecated="not deprecated">
  42599. </constructor>
  42600. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  42601. static="false" final="false" visibility="public"
  42602. deprecated="not deprecated">
  42603. </constructor>
  42604. <constructor name="ServiceStateException" type="java.lang.Throwable"
  42605. static="false" final="false" visibility="public"
  42606. deprecated="not deprecated">
  42607. </constructor>
  42608. <method name="convert" return="java.lang.RuntimeException"
  42609. abstract="false" native="false" synchronized="false"
  42610. static="true" final="false" visibility="public"
  42611. deprecated="not deprecated">
  42612. <param name="fault" type="java.lang.Throwable"/>
  42613. <doc>
  42614. <![CDATA[Convert any exception into a {@link RuntimeException}.
  42615. If the caught exception is already of that type, it is typecast to a
  42616. {@link RuntimeException} and returned.
  42617. All other exception types are wrapped in a new instance of
  42618. ServiceStateException
  42619. @param fault exception or throwable
  42620. @return a ServiceStateException to rethrow]]>
  42621. </doc>
  42622. </method>
  42623. <method name="convert" return="java.lang.RuntimeException"
  42624. abstract="false" native="false" synchronized="false"
  42625. static="true" final="false" visibility="public"
  42626. deprecated="not deprecated">
  42627. <param name="text" type="java.lang.String"/>
  42628. <param name="fault" type="java.lang.Throwable"/>
  42629. <doc>
  42630. <![CDATA[Convert any exception into a {@link RuntimeException}.
  42631. If the caught exception is already of that type, it is typecast to a
  42632. {@link RuntimeException} and returned.
  42633. All other exception types are wrapped in a new instance of
  42634. ServiceStateException
  42635. @param text text to use if a new exception is created
  42636. @param fault exception or throwable
  42637. @return a ServiceStateException to rethrow]]>
  42638. </doc>
  42639. </method>
  42640. <doc>
  42641. <![CDATA[Exception that is raised on state change operations.]]>
  42642. </doc>
  42643. </class>
  42644. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  42645. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  42646. <class name="ServiceStateModel" extends="java.lang.Object"
  42647. abstract="false"
  42648. static="false" final="false" visibility="public"
  42649. deprecated="not deprecated">
  42650. <constructor name="ServiceStateModel" type="java.lang.String"
  42651. static="false" final="false" visibility="public"
  42652. deprecated="not deprecated">
  42653. <doc>
  42654. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  42655. state.]]>
  42656. </doc>
  42657. </constructor>
  42658. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  42659. static="false" final="false" visibility="public"
  42660. deprecated="not deprecated">
  42661. <doc>
  42662. <![CDATA[Create a service state model instance in the chosen state
  42663. @param state the starting state]]>
  42664. </doc>
  42665. </constructor>
  42666. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  42667. abstract="false" native="false" synchronized="false"
  42668. static="false" final="false" visibility="public"
  42669. deprecated="not deprecated">
  42670. <doc>
  42671. <![CDATA[Query the service state. This is a non-blocking operation.
  42672. @return the state]]>
  42673. </doc>
  42674. </method>
  42675. <method name="isInState" return="boolean"
  42676. abstract="false" native="false" synchronized="false"
  42677. static="false" final="false" visibility="public"
  42678. deprecated="not deprecated">
  42679. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  42680. <doc>
  42681. <![CDATA[Query that the state is in a specific state
  42682. @param proposed proposed new state
  42683. @return the state]]>
  42684. </doc>
  42685. </method>
  42686. <method name="ensureCurrentState"
  42687. abstract="false" native="false" synchronized="false"
  42688. static="false" final="false" visibility="public"
  42689. deprecated="not deprecated">
  42690. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  42691. <doc>
  42692. <![CDATA[Verify that that a service is in a given state.
  42693. @param expectedState the desired state
  42694. @throws ServiceStateException if the service state is different from
  42695. the desired state]]>
  42696. </doc>
  42697. </method>
  42698. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  42699. abstract="false" native="false" synchronized="true"
  42700. static="false" final="false" visibility="public"
  42701. deprecated="not deprecated">
  42702. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  42703. <doc>
  42704. <![CDATA[Enter a state -thread safe.
  42705. @param proposed proposed new state
  42706. @return the original state
  42707. @throws ServiceStateException if the transition is not permitted]]>
  42708. </doc>
  42709. </method>
  42710. <method name="checkStateTransition"
  42711. abstract="false" native="false" synchronized="false"
  42712. static="true" final="false" visibility="public"
  42713. deprecated="not deprecated">
  42714. <param name="name" type="java.lang.String"/>
  42715. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  42716. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  42717. <doc>
  42718. <![CDATA[Check that a state tansition is valid and
  42719. throw an exception if not
  42720. @param name name of the service (can be null)
  42721. @param state current state
  42722. @param proposed proposed new state]]>
  42723. </doc>
  42724. </method>
  42725. <method name="isValidStateTransition" return="boolean"
  42726. abstract="false" native="false" synchronized="false"
  42727. static="true" final="false" visibility="public"
  42728. deprecated="not deprecated">
  42729. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  42730. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  42731. <doc>
  42732. <![CDATA[Is a state transition valid?
  42733. There are no checks for current==proposed
  42734. as that is considered a non-transition.
  42735. using an array kills off all branch misprediction costs, at the expense
  42736. of cache line misses.
  42737. @param current current state
  42738. @param proposed proposed new state
  42739. @return true if the transition to a new state is valid]]>
  42740. </doc>
  42741. </method>
  42742. <method name="toString" return="java.lang.String"
  42743. abstract="false" native="false" synchronized="false"
  42744. static="false" final="false" visibility="public"
  42745. deprecated="not deprecated">
  42746. <doc>
  42747. <![CDATA[return the state text as the toString() value
  42748. @return the current state's description]]>
  42749. </doc>
  42750. </method>
  42751. <doc>
  42752. <![CDATA[Implements the service state model.]]>
  42753. </doc>
  42754. </class>
  42755. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  42756. </package>
  42757. <package name="org.apache.hadoop.tools.protocolPB">
  42758. <!-- start class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolClientSideTranslatorPB -->
  42759. <class name="GetUserMappingsProtocolClientSideTranslatorPB" extends="java.lang.Object"
  42760. abstract="false"
  42761. static="false" final="false" visibility="public"
  42762. deprecated="not deprecated">
  42763. <implements name="org.apache.hadoop.ipc.ProtocolMetaInterface"/>
  42764. <implements name="org.apache.hadoop.tools.GetUserMappingsProtocol"/>
  42765. <implements name="java.io.Closeable"/>
  42766. <constructor name="GetUserMappingsProtocolClientSideTranslatorPB" type="org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB"
  42767. static="false" final="false" visibility="public"
  42768. deprecated="not deprecated">
  42769. </constructor>
  42770. <method name="close"
  42771. abstract="false" native="false" synchronized="false"
  42772. static="false" final="false" visibility="public"
  42773. deprecated="not deprecated">
  42774. <exception name="IOException" type="java.io.IOException"/>
  42775. </method>
  42776. <method name="getGroupsForUser" return="java.lang.String[]"
  42777. abstract="false" native="false" synchronized="false"
  42778. static="false" final="false" visibility="public"
  42779. deprecated="not deprecated">
  42780. <param name="user" type="java.lang.String"/>
  42781. <exception name="IOException" type="java.io.IOException"/>
  42782. </method>
  42783. <method name="isMethodSupported" return="boolean"
  42784. abstract="false" native="false" synchronized="false"
  42785. static="false" final="false" visibility="public"
  42786. deprecated="not deprecated">
  42787. <param name="methodName" type="java.lang.String"/>
  42788. <exception name="IOException" type="java.io.IOException"/>
  42789. </method>
  42790. </class>
  42791. <!-- end class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolClientSideTranslatorPB -->
  42792. <!-- start class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolServerSideTranslatorPB -->
  42793. <class name="GetUserMappingsProtocolServerSideTranslatorPB" extends="java.lang.Object"
  42794. abstract="false"
  42795. static="false" final="false" visibility="public"
  42796. deprecated="not deprecated">
  42797. <implements name="org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolPB"/>
  42798. <constructor name="GetUserMappingsProtocolServerSideTranslatorPB" type="org.apache.hadoop.tools.GetUserMappingsProtocol"
  42799. static="false" final="false" visibility="public"
  42800. deprecated="not deprecated">
  42801. </constructor>
  42802. <method name="getGroupsForUser" return="org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserResponseProto"
  42803. abstract="false" native="false" synchronized="false"
  42804. static="false" final="false" visibility="public"
  42805. deprecated="not deprecated">
  42806. <param name="controller" type="com.google.protobuf.RpcController"/>
  42807. <param name="request" type="org.apache.hadoop.tools.proto.GetUserMappingsProtocolProtos.GetGroupsForUserRequestProto"/>
  42808. <exception name="ServiceException" type="com.google.protobuf.ServiceException"/>
  42809. </method>
  42810. </class>
  42811. <!-- end class org.apache.hadoop.tools.protocolPB.GetUserMappingsProtocolServerSideTranslatorPB -->
  42812. </package>
  42813. <package name="org.apache.hadoop.tracing">
  42814. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  42815. <class name="SpanReceiverInfo" extends="java.lang.Object"
  42816. abstract="false"
  42817. static="false" final="false" visibility="public"
  42818. deprecated="not deprecated">
  42819. <method name="getId" return="long"
  42820. abstract="false" native="false" synchronized="false"
  42821. static="false" final="false" visibility="public"
  42822. deprecated="not deprecated">
  42823. </method>
  42824. <method name="getClassName" return="java.lang.String"
  42825. abstract="false" native="false" synchronized="false"
  42826. static="false" final="false" visibility="public"
  42827. deprecated="not deprecated">
  42828. </method>
  42829. </class>
  42830. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  42831. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  42832. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  42833. abstract="false"
  42834. static="false" final="false" visibility="public"
  42835. deprecated="not deprecated">
  42836. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  42837. static="false" final="false" visibility="public"
  42838. deprecated="not deprecated">
  42839. </constructor>
  42840. <method name="addConfigurationPair"
  42841. abstract="false" native="false" synchronized="false"
  42842. static="false" final="false" visibility="public"
  42843. deprecated="not deprecated">
  42844. <param name="key" type="java.lang.String"/>
  42845. <param name="value" type="java.lang.String"/>
  42846. </method>
  42847. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  42848. abstract="false" native="false" synchronized="false"
  42849. static="false" final="false" visibility="public"
  42850. deprecated="not deprecated">
  42851. </method>
  42852. </class>
  42853. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  42854. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  42855. <interface name="TraceAdminProtocol" abstract="true"
  42856. static="false" final="false" visibility="public"
  42857. deprecated="not deprecated">
  42858. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  42859. abstract="true" native="false" synchronized="false"
  42860. static="false" final="false" visibility="public"
  42861. deprecated="not deprecated">
  42862. <exception name="IOException" type="java.io.IOException"/>
  42863. <doc>
  42864. <![CDATA[List the currently active trace span receivers.
  42865. @throws IOException On error.]]>
  42866. </doc>
  42867. </method>
  42868. <method name="addSpanReceiver" return="long"
  42869. abstract="true" native="false" synchronized="false"
  42870. static="false" final="false" visibility="public"
  42871. deprecated="not deprecated">
  42872. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  42873. <exception name="IOException" type="java.io.IOException"/>
  42874. <doc>
  42875. <![CDATA[Add a new trace span receiver.
  42876. @param desc The span receiver description.
  42877. @return The ID of the new trace span receiver.
  42878. @throws IOException On error.]]>
  42879. </doc>
  42880. </method>
  42881. <method name="removeSpanReceiver"
  42882. abstract="true" native="false" synchronized="false"
  42883. static="false" final="false" visibility="public"
  42884. deprecated="not deprecated">
  42885. <param name="spanReceiverId" type="long"/>
  42886. <exception name="IOException" type="java.io.IOException"/>
  42887. <doc>
  42888. <![CDATA[Remove a trace span receiver.
  42889. @param spanReceiverId The id of the span receiver to remove.
  42890. @throws IOException On error.]]>
  42891. </doc>
  42892. </method>
  42893. <field name="versionID" type="long"
  42894. transient="false" volatile="false"
  42895. static="true" final="true" visibility="public"
  42896. deprecated="not deprecated">
  42897. </field>
  42898. <doc>
  42899. <![CDATA[Protocol interface that provides tracing.]]>
  42900. </doc>
  42901. </interface>
  42902. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  42903. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  42904. <interface name="TraceAdminProtocolPB" abstract="true"
  42905. static="false" final="false" visibility="public"
  42906. deprecated="not deprecated">
  42907. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  42908. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  42909. </interface>
  42910. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  42911. </package>
  42912. <package name="org.apache.hadoop.util">
  42913. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  42914. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  42915. abstract="false"
  42916. static="false" final="false" visibility="public"
  42917. deprecated="not deprecated">
  42918. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  42919. static="false" final="false" visibility="public"
  42920. deprecated="not deprecated">
  42921. </constructor>
  42922. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  42923. static="false" final="false" visibility="public"
  42924. deprecated="not deprecated">
  42925. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  42926. </constructor>
  42927. <method name="getResource" return="java.net.URL"
  42928. abstract="false" native="false" synchronized="false"
  42929. static="false" final="false" visibility="public"
  42930. deprecated="not deprecated">
  42931. <param name="name" type="java.lang.String"/>
  42932. </method>
  42933. <method name="loadClass" return="java.lang.Class"
  42934. abstract="false" native="false" synchronized="false"
  42935. static="false" final="false" visibility="public"
  42936. deprecated="not deprecated">
  42937. <param name="name" type="java.lang.String"/>
  42938. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  42939. </method>
  42940. <method name="loadClass" return="java.lang.Class"
  42941. abstract="false" native="false" synchronized="true"
  42942. static="false" final="false" visibility="protected"
  42943. deprecated="not deprecated">
  42944. <param name="name" type="java.lang.String"/>
  42945. <param name="resolve" type="boolean"/>
  42946. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  42947. </method>
  42948. <method name="isSystemClass" return="boolean"
  42949. abstract="false" native="false" synchronized="false"
  42950. static="true" final="false" visibility="public"
  42951. deprecated="not deprecated">
  42952. <param name="name" type="java.lang.String"/>
  42953. <param name="systemClasses" type="java.util.List"/>
  42954. <doc>
  42955. <![CDATA[Checks if a class should be included as a system class.
  42956. A class is a system class if and only if it matches one of the positive
  42957. patterns and none of the negative ones.
  42958. @param name the class name to check
  42959. @param systemClasses a list of system class configurations.
  42960. @return true if the class is a system class]]>
  42961. </doc>
  42962. </method>
  42963. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  42964. transient="false" volatile="false"
  42965. static="true" final="true" visibility="public"
  42966. deprecated="not deprecated">
  42967. <doc>
  42968. <![CDATA[Default value of the system classes if the user did not override them.
  42969. JDK classes, hadoop classes and resources, and some select third-party
  42970. classes are considered system classes, and are not loaded by the
  42971. application classloader.]]>
  42972. </doc>
  42973. </field>
  42974. <doc>
  42975. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  42976. application JARs are loaded in preference to the parent loader.]]>
  42977. </doc>
  42978. </class>
  42979. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  42980. <!-- start class org.apache.hadoop.util.CacheableIPList -->
  42981. <class name="CacheableIPList" extends="java.lang.Object"
  42982. abstract="false"
  42983. static="false" final="false" visibility="public"
  42984. deprecated="not deprecated">
  42985. <implements name="org.apache.hadoop.util.IPList"/>
  42986. <constructor name="CacheableIPList" type="org.apache.hadoop.util.FileBasedIPList, long"
  42987. static="false" final="false" visibility="public"
  42988. deprecated="not deprecated">
  42989. </constructor>
  42990. <method name="refresh"
  42991. abstract="false" native="false" synchronized="false"
  42992. static="false" final="false" visibility="public"
  42993. deprecated="not deprecated">
  42994. <doc>
  42995. <![CDATA[Refreshes the ip list]]>
  42996. </doc>
  42997. </method>
  42998. <method name="isIn" return="boolean"
  42999. abstract="false" native="false" synchronized="false"
  43000. static="false" final="false" visibility="public"
  43001. deprecated="not deprecated">
  43002. <param name="ipAddress" type="java.lang.String"/>
  43003. </method>
  43004. <doc>
  43005. <![CDATA[CacheableIPList loads a list of subnets from a file.
  43006. The list is cached and the cache can be refreshed by specifying cache timeout.
  43007. A negative value of cache timeout disables any caching.
  43008. Thread safe.]]>
  43009. </doc>
  43010. </class>
  43011. <!-- end class org.apache.hadoop.util.CacheableIPList -->
  43012. <!-- start class org.apache.hadoop.util.CloseableReferenceCount -->
  43013. <class name="CloseableReferenceCount" extends="java.lang.Object"
  43014. abstract="false"
  43015. static="false" final="false" visibility="public"
  43016. deprecated="not deprecated">
  43017. <constructor name="CloseableReferenceCount"
  43018. static="false" final="false" visibility="public"
  43019. deprecated="not deprecated">
  43020. </constructor>
  43021. <method name="reference"
  43022. abstract="false" native="false" synchronized="false"
  43023. static="false" final="false" visibility="public"
  43024. deprecated="not deprecated">
  43025. <exception name="ClosedChannelException" type="java.nio.channels.ClosedChannelException"/>
  43026. <doc>
  43027. <![CDATA[Increment the reference count.
  43028. @throws ClosedChannelException If the status is closed.]]>
  43029. </doc>
  43030. </method>
  43031. <method name="unreference" return="boolean"
  43032. abstract="false" native="false" synchronized="false"
  43033. static="false" final="false" visibility="public"
  43034. deprecated="not deprecated">
  43035. <doc>
  43036. <![CDATA[Decrement the reference count.
  43037. @return True if the object is closed and has no outstanding
  43038. references.]]>
  43039. </doc>
  43040. </method>
  43041. <method name="unreferenceCheckClosed"
  43042. abstract="false" native="false" synchronized="false"
  43043. static="false" final="false" visibility="public"
  43044. deprecated="not deprecated">
  43045. <exception name="ClosedChannelException" type="java.nio.channels.ClosedChannelException"/>
  43046. <doc>
  43047. <![CDATA[Decrement the reference count, checking to make sure that the
  43048. CloseableReferenceCount is not closed.
  43049. @throws AsynchronousCloseException If the status is closed.]]>
  43050. </doc>
  43051. </method>
  43052. <method name="isOpen" return="boolean"
  43053. abstract="false" native="false" synchronized="false"
  43054. static="false" final="false" visibility="public"
  43055. deprecated="not deprecated">
  43056. <doc>
  43057. <![CDATA[Return true if the status is currently open.
  43058. @return True if the status is currently open.]]>
  43059. </doc>
  43060. </method>
  43061. <method name="setClosed" return="int"
  43062. abstract="false" native="false" synchronized="false"
  43063. static="false" final="false" visibility="public"
  43064. deprecated="not deprecated">
  43065. <exception name="ClosedChannelException" type="java.nio.channels.ClosedChannelException"/>
  43066. <doc>
  43067. <![CDATA[Mark the status as closed.
  43068. Once the status is closed, it cannot be reopened.
  43069. @return The current reference count.
  43070. @throws ClosedChannelException If someone else closes the object
  43071. before we do.]]>
  43072. </doc>
  43073. </method>
  43074. <method name="getReferenceCount" return="int"
  43075. abstract="false" native="false" synchronized="false"
  43076. static="false" final="false" visibility="public"
  43077. deprecated="not deprecated">
  43078. <doc>
  43079. <![CDATA[Get the current reference count.
  43080. @return The current reference count.]]>
  43081. </doc>
  43082. </method>
  43083. <doc>
  43084. <![CDATA[A closeable object that maintains a reference count.
  43085. Once the object is closed, attempting to take a new reference will throw
  43086. ClosedChannelException.]]>
  43087. </doc>
  43088. </class>
  43089. <!-- end class org.apache.hadoop.util.CloseableReferenceCount -->
  43090. <!-- start class org.apache.hadoop.util.CombinedIPWhiteList -->
  43091. <class name="CombinedIPWhiteList" extends="java.lang.Object"
  43092. abstract="false"
  43093. static="false" final="false" visibility="public"
  43094. deprecated="not deprecated">
  43095. <implements name="org.apache.hadoop.util.IPList"/>
  43096. <constructor name="CombinedIPWhiteList" type="java.lang.String, java.lang.String, long"
  43097. static="false" final="false" visibility="public"
  43098. deprecated="not deprecated">
  43099. </constructor>
  43100. <method name="isIn" return="boolean"
  43101. abstract="false" native="false" synchronized="false"
  43102. static="false" final="false" visibility="public"
  43103. deprecated="not deprecated">
  43104. <param name="ipAddress" type="java.lang.String"/>
  43105. </method>
  43106. <field name="LOG" type="org.apache.commons.logging.Log"
  43107. transient="false" volatile="false"
  43108. static="true" final="true" visibility="public"
  43109. deprecated="not deprecated">
  43110. </field>
  43111. </class>
  43112. <!-- end class org.apache.hadoop.util.CombinedIPWhiteList -->
  43113. <!-- start class org.apache.hadoop.util.ComparableVersion -->
  43114. <class name="ComparableVersion" extends="java.lang.Object"
  43115. abstract="false"
  43116. static="false" final="false" visibility="public"
  43117. deprecated="not deprecated">
  43118. <implements name="java.lang.Comparable"/>
  43119. <constructor name="ComparableVersion" type="java.lang.String"
  43120. static="false" final="false" visibility="public"
  43121. deprecated="not deprecated">
  43122. </constructor>
  43123. <method name="parseVersion"
  43124. abstract="false" native="false" synchronized="false"
  43125. static="false" final="true" visibility="public"
  43126. deprecated="not deprecated">
  43127. <param name="version" type="java.lang.String"/>
  43128. </method>
  43129. <method name="compareTo" return="int"
  43130. abstract="false" native="false" synchronized="false"
  43131. static="false" final="false" visibility="public"
  43132. deprecated="not deprecated">
  43133. <param name="o" type="org.apache.hadoop.util.ComparableVersion"/>
  43134. </method>
  43135. <method name="toString" return="java.lang.String"
  43136. abstract="false" native="false" synchronized="false"
  43137. static="false" final="false" visibility="public"
  43138. deprecated="not deprecated">
  43139. </method>
  43140. <method name="equals" return="boolean"
  43141. abstract="false" native="false" synchronized="false"
  43142. static="false" final="false" visibility="public"
  43143. deprecated="not deprecated">
  43144. <param name="o" type="java.lang.Object"/>
  43145. </method>
  43146. <method name="hashCode" return="int"
  43147. abstract="false" native="false" synchronized="false"
  43148. static="false" final="false" visibility="public"
  43149. deprecated="not deprecated">
  43150. </method>
  43151. <doc>
  43152. <![CDATA[Generic implementation of version comparison.
  43153. <p>Features:
  43154. <ul>
  43155. <li>mixing of '<code>-</code>' (dash) and '<code>.</code>' (dot) separators,</li>
  43156. <li>transition between characters and digits also constitutes a separator:
  43157. <code>1.0alpha1 =&gt; [1, 0, alpha, 1]</code></li>
  43158. <li>unlimited number of version components,</li>
  43159. <li>version components in the text can be digits or strings,</li>
  43160. <li>strings are checked for well-known qualifiers and the qualifier ordering is used for version ordering.
  43161. Well-known qualifiers (case insensitive) are:<ul>
  43162. <li><code>alpha</code> or <code>a</code></li>
  43163. <li><code>beta</code> or <code>b</code></li>
  43164. <li><code>milestone</code> or <code>m</code></li>
  43165. <li><code>rc</code> or <code>cr</code></li>
  43166. <li><code>snapshot</code></li>
  43167. <li><code>(the empty string)</code> or <code>ga</code> or <code>final</code></li>
  43168. <li><code>sp</code></li>
  43169. </ul>
  43170. Unknown qualifiers are considered after known qualifiers, with lexical order (always case insensitive),
  43171. </li>
  43172. <li>a dash usually precedes a qualifier, and is always less important than something preceded with a dot.</li>
  43173. </ul></p>
  43174. @see <a href="https://cwiki.apache.org/confluence/display/MAVENOLD/Versioning">"Versioning" on Maven Wiki</a>]]>
  43175. </doc>
  43176. </class>
  43177. <!-- end class org.apache.hadoop.util.ComparableVersion -->
  43178. <!-- start class org.apache.hadoop.util.DataChecksum.Type -->
  43179. <class name="DataChecksum.Type" extends="java.lang.Enum"
  43180. abstract="false"
  43181. static="true" final="true" visibility="public"
  43182. deprecated="not deprecated">
  43183. <method name="values" return="org.apache.hadoop.util.DataChecksum.Type[]"
  43184. abstract="false" native="false" synchronized="false"
  43185. static="true" final="false" visibility="public"
  43186. deprecated="not deprecated">
  43187. </method>
  43188. <method name="valueOf" return="org.apache.hadoop.util.DataChecksum.Type"
  43189. abstract="false" native="false" synchronized="false"
  43190. static="true" final="false" visibility="public"
  43191. deprecated="not deprecated">
  43192. <param name="name" type="java.lang.String"/>
  43193. </method>
  43194. <method name="valueOf" return="org.apache.hadoop.util.DataChecksum.Type"
  43195. abstract="false" native="false" synchronized="false"
  43196. static="true" final="false" visibility="public"
  43197. deprecated="not deprecated">
  43198. <param name="id" type="int"/>
  43199. <doc>
  43200. <![CDATA[@return the type corresponding to the id.]]>
  43201. </doc>
  43202. </method>
  43203. <field name="id" type="int"
  43204. transient="false" volatile="false"
  43205. static="false" final="true" visibility="public"
  43206. deprecated="not deprecated">
  43207. </field>
  43208. <field name="size" type="int"
  43209. transient="false" volatile="false"
  43210. static="false" final="true" visibility="public"
  43211. deprecated="not deprecated">
  43212. </field>
  43213. <doc>
  43214. <![CDATA[The checksum types]]>
  43215. </doc>
  43216. </class>
  43217. <!-- end class org.apache.hadoop.util.DataChecksum.Type -->
  43218. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  43219. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  43220. abstract="false"
  43221. static="true" final="false" visibility="public"
  43222. deprecated="not deprecated">
  43223. <constructor name="DiskErrorException" type="java.lang.String"
  43224. static="false" final="false" visibility="public"
  43225. deprecated="not deprecated">
  43226. </constructor>
  43227. <constructor name="DiskErrorException" type="java.lang.String, java.lang.Throwable"
  43228. static="false" final="false" visibility="public"
  43229. deprecated="not deprecated">
  43230. </constructor>
  43231. </class>
  43232. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  43233. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  43234. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  43235. abstract="false"
  43236. static="true" final="false" visibility="public"
  43237. deprecated="not deprecated">
  43238. <constructor name="DiskOutOfSpaceException" type="java.lang.String"
  43239. static="false" final="false" visibility="public"
  43240. deprecated="not deprecated">
  43241. </constructor>
  43242. </class>
  43243. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  43244. <!-- start class org.apache.hadoop.util.ExitUtil.ExitException -->
  43245. <class name="ExitUtil.ExitException" extends="java.lang.RuntimeException"
  43246. abstract="false"
  43247. static="true" final="false" visibility="public"
  43248. deprecated="not deprecated">
  43249. <constructor name="ExitException" type="int, java.lang.String"
  43250. static="false" final="false" visibility="public"
  43251. deprecated="not deprecated">
  43252. </constructor>
  43253. <field name="status" type="int"
  43254. transient="false" volatile="false"
  43255. static="false" final="true" visibility="public"
  43256. deprecated="not deprecated">
  43257. </field>
  43258. </class>
  43259. <!-- end class org.apache.hadoop.util.ExitUtil.ExitException -->
  43260. <!-- start class org.apache.hadoop.util.ExitUtil.HaltException -->
  43261. <class name="ExitUtil.HaltException" extends="java.lang.RuntimeException"
  43262. abstract="false"
  43263. static="true" final="false" visibility="public"
  43264. deprecated="not deprecated">
  43265. <constructor name="HaltException" type="int, java.lang.String"
  43266. static="false" final="false" visibility="public"
  43267. deprecated="not deprecated">
  43268. </constructor>
  43269. <field name="status" type="int"
  43270. transient="false" volatile="false"
  43271. static="false" final="true" visibility="public"
  43272. deprecated="not deprecated">
  43273. </field>
  43274. </class>
  43275. <!-- end class org.apache.hadoop.util.ExitUtil.HaltException -->
  43276. <!-- start class org.apache.hadoop.util.FileBasedIPList -->
  43277. <class name="FileBasedIPList" extends="java.lang.Object"
  43278. abstract="false"
  43279. static="false" final="false" visibility="public"
  43280. deprecated="not deprecated">
  43281. <implements name="org.apache.hadoop.util.IPList"/>
  43282. <constructor name="FileBasedIPList" type="java.lang.String"
  43283. static="false" final="false" visibility="public"
  43284. deprecated="not deprecated">
  43285. </constructor>
  43286. <method name="reload" return="org.apache.hadoop.util.FileBasedIPList"
  43287. abstract="false" native="false" synchronized="false"
  43288. static="false" final="false" visibility="public"
  43289. deprecated="not deprecated">
  43290. </method>
  43291. <method name="isIn" return="boolean"
  43292. abstract="false" native="false" synchronized="false"
  43293. static="false" final="false" visibility="public"
  43294. deprecated="not deprecated">
  43295. <param name="ipAddress" type="java.lang.String"/>
  43296. </method>
  43297. <doc>
  43298. <![CDATA[FileBasedIPList loads a list of subnets in CIDR format and ip addresses from
  43299. a file.
  43300. Given an ip address, isIn method returns true if ip belongs to one of the
  43301. subnets.
  43302. Thread safe.]]>
  43303. </doc>
  43304. </class>
  43305. <!-- end class org.apache.hadoop.util.FileBasedIPList -->
  43306. <!-- start interface org.apache.hadoop.util.IdentityHashStore.Visitor -->
  43307. <interface name="IdentityHashStore.Visitor" abstract="true"
  43308. static="true" final="false" visibility="public"
  43309. deprecated="not deprecated">
  43310. <method name="accept"
  43311. abstract="true" native="false" synchronized="false"
  43312. static="false" final="false" visibility="public"
  43313. deprecated="not deprecated">
  43314. <param name="k" type="K"/>
  43315. <param name="v" type="V"/>
  43316. </method>
  43317. </interface>
  43318. <!-- end interface org.apache.hadoop.util.IdentityHashStore.Visitor -->
  43319. <!-- start class org.apache.hadoop.util.IntrusiveCollection.IntrusiveIterator -->
  43320. <class name="IntrusiveCollection.IntrusiveIterator" extends="java.lang.Object"
  43321. abstract="false"
  43322. static="false" final="false" visibility="public"
  43323. deprecated="not deprecated">
  43324. <implements name="java.util.Iterator"/>
  43325. <method name="hasNext" return="boolean"
  43326. abstract="false" native="false" synchronized="false"
  43327. static="false" final="false" visibility="public"
  43328. deprecated="not deprecated">
  43329. </method>
  43330. <method name="next" return="E"
  43331. abstract="false" native="false" synchronized="false"
  43332. static="false" final="false" visibility="public"
  43333. deprecated="not deprecated">
  43334. </method>
  43335. <method name="remove"
  43336. abstract="false" native="false" synchronized="false"
  43337. static="false" final="false" visibility="public"
  43338. deprecated="not deprecated">
  43339. </method>
  43340. <doc>
  43341. <![CDATA[An iterator over the intrusive collection.
  43342. Currently, you can remove elements from the list using
  43343. #{IntrusiveIterator#remove()}, but modifying the collection in other
  43344. ways during the iteration is not supported.]]>
  43345. </doc>
  43346. </class>
  43347. <!-- end class org.apache.hadoop.util.IntrusiveCollection.IntrusiveIterator -->
  43348. <!-- start interface org.apache.hadoop.util.IPList -->
  43349. <interface name="IPList" abstract="true"
  43350. static="false" final="false" visibility="public"
  43351. deprecated="not deprecated">
  43352. <method name="isIn" return="boolean"
  43353. abstract="true" native="false" synchronized="false"
  43354. static="false" final="false" visibility="public"
  43355. deprecated="not deprecated">
  43356. <param name="ipAddress" type="java.lang.String"/>
  43357. <doc>
  43358. <![CDATA[returns true if the ipAddress is in the IPList.
  43359. @param ipAddress
  43360. @return boolean value indicating whether the ipAddress is in the IPList]]>
  43361. </doc>
  43362. </method>
  43363. </interface>
  43364. <!-- end interface org.apache.hadoop.util.IPList -->
  43365. <!-- start interface org.apache.hadoop.util.LightWeightCache.Entry -->
  43366. <interface name="LightWeightCache.Entry" abstract="true"
  43367. static="true" final="false" visibility="public"
  43368. deprecated="not deprecated">
  43369. <implements name="org.apache.hadoop.util.LightWeightGSet.LinkedElement"/>
  43370. <method name="setExpirationTime"
  43371. abstract="true" native="false" synchronized="false"
  43372. static="false" final="false" visibility="public"
  43373. deprecated="not deprecated">
  43374. <param name="timeNano" type="long"/>
  43375. <doc>
  43376. <![CDATA[Set the expiration time.]]>
  43377. </doc>
  43378. </method>
  43379. <method name="getExpirationTime" return="long"
  43380. abstract="true" native="false" synchronized="false"
  43381. static="false" final="false" visibility="public"
  43382. deprecated="not deprecated">
  43383. <doc>
  43384. <![CDATA[Get the expiration time.]]>
  43385. </doc>
  43386. </method>
  43387. <doc>
  43388. <![CDATA[Entries of {@link LightWeightCache}.]]>
  43389. </doc>
  43390. </interface>
  43391. <!-- end interface org.apache.hadoop.util.LightWeightCache.Entry -->
  43392. <!-- start interface org.apache.hadoop.util.LightWeightGSet.LinkedElement -->
  43393. <interface name="LightWeightGSet.LinkedElement" abstract="true"
  43394. static="true" final="false" visibility="public"
  43395. deprecated="not deprecated">
  43396. <method name="setNext"
  43397. abstract="true" native="false" synchronized="false"
  43398. static="false" final="false" visibility="public"
  43399. deprecated="not deprecated">
  43400. <param name="next" type="org.apache.hadoop.util.LightWeightGSet.LinkedElement"/>
  43401. <doc>
  43402. <![CDATA[Set the next element.]]>
  43403. </doc>
  43404. </method>
  43405. <method name="getNext" return="org.apache.hadoop.util.LightWeightGSet.LinkedElement"
  43406. abstract="true" native="false" synchronized="false"
  43407. static="false" final="false" visibility="public"
  43408. deprecated="not deprecated">
  43409. <doc>
  43410. <![CDATA[Get the next element.]]>
  43411. </doc>
  43412. </method>
  43413. <doc>
  43414. <![CDATA[Elements of {@link LightWeightGSet}.]]>
  43415. </doc>
  43416. </interface>
  43417. <!-- end interface org.apache.hadoop.util.LightWeightGSet.LinkedElement -->
  43418. <!-- start class org.apache.hadoop.util.LightWeightGSet.SetIterator -->
  43419. <class name="LightWeightGSet.SetIterator" extends="java.lang.Object"
  43420. abstract="false"
  43421. static="false" final="false" visibility="public"
  43422. deprecated="not deprecated">
  43423. <implements name="java.util.Iterator"/>
  43424. <constructor name="SetIterator"
  43425. static="false" final="false" visibility="public"
  43426. deprecated="not deprecated">
  43427. </constructor>
  43428. <method name="hasNext" return="boolean"
  43429. abstract="false" native="false" synchronized="false"
  43430. static="false" final="false" visibility="public"
  43431. deprecated="not deprecated">
  43432. </method>
  43433. <method name="next" return="E"
  43434. abstract="false" native="false" synchronized="false"
  43435. static="false" final="false" visibility="public"
  43436. deprecated="not deprecated">
  43437. </method>
  43438. <method name="remove"
  43439. abstract="false" native="false" synchronized="false"
  43440. static="false" final="false" visibility="public"
  43441. deprecated="not deprecated">
  43442. </method>
  43443. <method name="setTrackModification"
  43444. abstract="false" native="false" synchronized="false"
  43445. static="false" final="false" visibility="public"
  43446. deprecated="not deprecated">
  43447. <param name="trackModification" type="boolean"/>
  43448. </method>
  43449. </class>
  43450. <!-- end class org.apache.hadoop.util.LightWeightGSet.SetIterator -->
  43451. <!-- start class org.apache.hadoop.util.LimitInputStream -->
  43452. <class name="LimitInputStream" extends="java.io.FilterInputStream"
  43453. abstract="false"
  43454. static="false" final="true" visibility="public"
  43455. deprecated="not deprecated">
  43456. <constructor name="LimitInputStream" type="java.io.InputStream, long"
  43457. static="false" final="false" visibility="public"
  43458. deprecated="not deprecated">
  43459. </constructor>
  43460. <method name="available" return="int"
  43461. abstract="false" native="false" synchronized="false"
  43462. static="false" final="false" visibility="public"
  43463. deprecated="not deprecated">
  43464. <exception name="IOException" type="java.io.IOException"/>
  43465. </method>
  43466. <method name="mark"
  43467. abstract="false" native="false" synchronized="true"
  43468. static="false" final="false" visibility="public"
  43469. deprecated="not deprecated">
  43470. <param name="readLimit" type="int"/>
  43471. </method>
  43472. <method name="read" return="int"
  43473. abstract="false" native="false" synchronized="false"
  43474. static="false" final="false" visibility="public"
  43475. deprecated="not deprecated">
  43476. <exception name="IOException" type="java.io.IOException"/>
  43477. </method>
  43478. <method name="read" return="int"
  43479. abstract="false" native="false" synchronized="false"
  43480. static="false" final="false" visibility="public"
  43481. deprecated="not deprecated">
  43482. <param name="b" type="byte[]"/>
  43483. <param name="off" type="int"/>
  43484. <param name="len" type="int"/>
  43485. <exception name="IOException" type="java.io.IOException"/>
  43486. </method>
  43487. <method name="reset"
  43488. abstract="false" native="false" synchronized="true"
  43489. static="false" final="false" visibility="public"
  43490. deprecated="not deprecated">
  43491. <exception name="IOException" type="java.io.IOException"/>
  43492. </method>
  43493. <method name="skip" return="long"
  43494. abstract="false" native="false" synchronized="false"
  43495. static="false" final="false" visibility="public"
  43496. deprecated="not deprecated">
  43497. <param name="n" type="long"/>
  43498. <exception name="IOException" type="java.io.IOException"/>
  43499. </method>
  43500. <doc>
  43501. <![CDATA[Copied from guava source code v15 (LimitedInputStream)
  43502. Guava deprecated LimitInputStream in v14 and removed it in v15. Copying this class here
  43503. allows to be compatible with guava 11 to 15+.
  43504. Originally: org.apache.hadoop.hbase.io.LimitInputStream]]>
  43505. </doc>
  43506. </class>
  43507. <!-- end class org.apache.hadoop.util.LimitInputStream -->
  43508. <!-- start class org.apache.hadoop.util.MachineList -->
  43509. <class name="MachineList" extends="java.lang.Object"
  43510. abstract="false"
  43511. static="false" final="false" visibility="public"
  43512. deprecated="not deprecated">
  43513. <constructor name="MachineList" type="java.lang.String"
  43514. static="false" final="false" visibility="public"
  43515. deprecated="not deprecated">
  43516. <doc>
  43517. <![CDATA[@param hostEntries comma separated ip/cidr/host addresses]]>
  43518. </doc>
  43519. </constructor>
  43520. <constructor name="MachineList" type="java.util.Collection"
  43521. static="false" final="false" visibility="public"
  43522. deprecated="not deprecated">
  43523. <doc>
  43524. <![CDATA[@param hostEntries collection of separated ip/cidr/host addresses]]>
  43525. </doc>
  43526. </constructor>
  43527. <constructor name="MachineList" type="java.util.Collection, org.apache.hadoop.util.MachineList.InetAddressFactory"
  43528. static="false" final="false" visibility="public"
  43529. deprecated="not deprecated">
  43530. <doc>
  43531. <![CDATA[Accepts a collection of ip/cidr/host addresses
  43532. @param hostEntries
  43533. @param addressFactory addressFactory to convert host to InetAddress]]>
  43534. </doc>
  43535. </constructor>
  43536. <method name="includes" return="boolean"
  43537. abstract="false" native="false" synchronized="false"
  43538. static="false" final="false" visibility="public"
  43539. deprecated="not deprecated">
  43540. <param name="ipAddress" type="java.lang.String"/>
  43541. <doc>
  43542. <![CDATA[Accepts an ip address and return true if ipAddress is in the list
  43543. @param ipAddress
  43544. @return true if ipAddress is part of the list]]>
  43545. </doc>
  43546. </method>
  43547. <method name="getCollection" return="java.util.Collection"
  43548. abstract="false" native="false" synchronized="false"
  43549. static="false" final="false" visibility="public"
  43550. deprecated="not deprecated">
  43551. <doc>
  43552. <![CDATA[returns the contents of the MachineList as a Collection<String>
  43553. This can be used for testing
  43554. @return contents of the MachineList]]>
  43555. </doc>
  43556. </method>
  43557. <field name="LOG" type="org.apache.commons.logging.Log"
  43558. transient="false" volatile="false"
  43559. static="true" final="true" visibility="public"
  43560. deprecated="not deprecated">
  43561. </field>
  43562. <field name="WILDCARD_VALUE" type="java.lang.String"
  43563. transient="false" volatile="false"
  43564. static="true" final="true" visibility="public"
  43565. deprecated="not deprecated">
  43566. </field>
  43567. <doc>
  43568. <![CDATA[Container class which holds a list of ip/host addresses and
  43569. answers membership queries.
  43570. Accepts list of ip addresses, ip addreses in CIDR format and/or
  43571. host addresses.]]>
  43572. </doc>
  43573. </class>
  43574. <!-- end class org.apache.hadoop.util.MachineList -->
  43575. <!-- start class org.apache.hadoop.util.MachineList.InetAddressFactory -->
  43576. <class name="MachineList.InetAddressFactory" extends="java.lang.Object"
  43577. abstract="false"
  43578. static="true" final="false" visibility="public"
  43579. deprecated="not deprecated">
  43580. <constructor name="InetAddressFactory"
  43581. static="false" final="false" visibility="public"
  43582. deprecated="not deprecated">
  43583. </constructor>
  43584. <method name="getByName" return="java.net.InetAddress"
  43585. abstract="false" native="false" synchronized="false"
  43586. static="false" final="false" visibility="public"
  43587. deprecated="not deprecated">
  43588. <param name="host" type="java.lang.String"/>
  43589. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  43590. </method>
  43591. <doc>
  43592. <![CDATA[InetAddressFactory is used to obtain InetAddress from host.
  43593. This class makes it easy to simulate host to ip mappings during testing.]]>
  43594. </doc>
  43595. </class>
  43596. <!-- end class org.apache.hadoop.util.MachineList.InetAddressFactory -->
  43597. <!-- start class org.apache.hadoop.util.Options -->
  43598. <class name="Options" extends="java.lang.Object"
  43599. abstract="false"
  43600. static="false" final="false" visibility="public"
  43601. deprecated="not deprecated">
  43602. <constructor name="Options"
  43603. static="false" final="false" visibility="public"
  43604. deprecated="not deprecated">
  43605. </constructor>
  43606. <method name="getOption" return="T"
  43607. abstract="false" native="false" synchronized="false"
  43608. static="true" final="false" visibility="public"
  43609. deprecated="not deprecated">
  43610. <param name="cls" type="java.lang.Class"/>
  43611. <param name="opts" type="base[]"/>
  43612. <exception name="IOException" type="java.io.IOException"/>
  43613. <doc>
  43614. <![CDATA[Find the first option of the required class.
  43615. @param <T> the static class to find
  43616. @param <base> the parent class of the array
  43617. @param cls the dynamic class to find
  43618. @param opts the list of options to look through
  43619. @return the first option that matches
  43620. @throws IOException]]>
  43621. </doc>
  43622. </method>
  43623. <method name="prependOptions" return="T[]"
  43624. abstract="false" native="false" synchronized="false"
  43625. static="true" final="false" visibility="public"
  43626. deprecated="not deprecated">
  43627. <param name="oldOpts" type="T[]"/>
  43628. <param name="newOpts" type="T[]"/>
  43629. <doc>
  43630. <![CDATA[Prepend some new options to the old options
  43631. @param <T> the type of options
  43632. @param oldOpts the old options
  43633. @param newOpts the new options
  43634. @return a new array of options]]>
  43635. </doc>
  43636. </method>
  43637. <doc>
  43638. <![CDATA[This class allows generic access to variable length type-safe parameter
  43639. lists.]]>
  43640. </doc>
  43641. </class>
  43642. <!-- end class org.apache.hadoop.util.Options -->
  43643. <!-- start class org.apache.hadoop.util.Options.BooleanOption -->
  43644. <class name="Options.BooleanOption" extends="java.lang.Object"
  43645. abstract="true"
  43646. static="true" final="false" visibility="public"
  43647. deprecated="not deprecated">
  43648. <constructor name="BooleanOption" type="boolean"
  43649. static="false" final="false" visibility="protected"
  43650. deprecated="not deprecated">
  43651. </constructor>
  43652. <method name="getValue" return="boolean"
  43653. abstract="false" native="false" synchronized="false"
  43654. static="false" final="false" visibility="public"
  43655. deprecated="not deprecated">
  43656. </method>
  43657. </class>
  43658. <!-- end class org.apache.hadoop.util.Options.BooleanOption -->
  43659. <!-- start class org.apache.hadoop.util.Options.ClassOption -->
  43660. <class name="Options.ClassOption" extends="java.lang.Object"
  43661. abstract="true"
  43662. static="true" final="false" visibility="public"
  43663. deprecated="not deprecated">
  43664. <constructor name="ClassOption" type="java.lang.Class"
  43665. static="false" final="false" visibility="protected"
  43666. deprecated="not deprecated">
  43667. </constructor>
  43668. <method name="getValue" return="java.lang.Class"
  43669. abstract="false" native="false" synchronized="false"
  43670. static="false" final="false" visibility="public"
  43671. deprecated="not deprecated">
  43672. </method>
  43673. </class>
  43674. <!-- end class org.apache.hadoop.util.Options.ClassOption -->
  43675. <!-- start class org.apache.hadoop.util.Options.FSDataInputStreamOption -->
  43676. <class name="Options.FSDataInputStreamOption" extends="java.lang.Object"
  43677. abstract="true"
  43678. static="true" final="false" visibility="public"
  43679. deprecated="not deprecated">
  43680. <constructor name="FSDataInputStreamOption" type="org.apache.hadoop.fs.FSDataInputStream"
  43681. static="false" final="false" visibility="protected"
  43682. deprecated="not deprecated">
  43683. </constructor>
  43684. <method name="getValue" return="org.apache.hadoop.fs.FSDataInputStream"
  43685. abstract="false" native="false" synchronized="false"
  43686. static="false" final="false" visibility="public"
  43687. deprecated="not deprecated">
  43688. </method>
  43689. </class>
  43690. <!-- end class org.apache.hadoop.util.Options.FSDataInputStreamOption -->
  43691. <!-- start class org.apache.hadoop.util.Options.FSDataOutputStreamOption -->
  43692. <class name="Options.FSDataOutputStreamOption" extends="java.lang.Object"
  43693. abstract="true"
  43694. static="true" final="false" visibility="public"
  43695. deprecated="not deprecated">
  43696. <constructor name="FSDataOutputStreamOption" type="org.apache.hadoop.fs.FSDataOutputStream"
  43697. static="false" final="false" visibility="protected"
  43698. deprecated="not deprecated">
  43699. </constructor>
  43700. <method name="getValue" return="org.apache.hadoop.fs.FSDataOutputStream"
  43701. abstract="false" native="false" synchronized="false"
  43702. static="false" final="false" visibility="public"
  43703. deprecated="not deprecated">
  43704. </method>
  43705. </class>
  43706. <!-- end class org.apache.hadoop.util.Options.FSDataOutputStreamOption -->
  43707. <!-- start class org.apache.hadoop.util.Options.IntegerOption -->
  43708. <class name="Options.IntegerOption" extends="java.lang.Object"
  43709. abstract="true"
  43710. static="true" final="false" visibility="public"
  43711. deprecated="not deprecated">
  43712. <constructor name="IntegerOption" type="int"
  43713. static="false" final="false" visibility="protected"
  43714. deprecated="not deprecated">
  43715. </constructor>
  43716. <method name="getValue" return="int"
  43717. abstract="false" native="false" synchronized="false"
  43718. static="false" final="false" visibility="public"
  43719. deprecated="not deprecated">
  43720. </method>
  43721. </class>
  43722. <!-- end class org.apache.hadoop.util.Options.IntegerOption -->
  43723. <!-- start class org.apache.hadoop.util.Options.LongOption -->
  43724. <class name="Options.LongOption" extends="java.lang.Object"
  43725. abstract="true"
  43726. static="true" final="false" visibility="public"
  43727. deprecated="not deprecated">
  43728. <constructor name="LongOption" type="long"
  43729. static="false" final="false" visibility="protected"
  43730. deprecated="not deprecated">
  43731. </constructor>
  43732. <method name="getValue" return="long"
  43733. abstract="false" native="false" synchronized="false"
  43734. static="false" final="false" visibility="public"
  43735. deprecated="not deprecated">
  43736. </method>
  43737. </class>
  43738. <!-- end class org.apache.hadoop.util.Options.LongOption -->
  43739. <!-- start class org.apache.hadoop.util.Options.PathOption -->
  43740. <class name="Options.PathOption" extends="java.lang.Object"
  43741. abstract="true"
  43742. static="true" final="false" visibility="public"
  43743. deprecated="not deprecated">
  43744. <constructor name="PathOption" type="org.apache.hadoop.fs.Path"
  43745. static="false" final="false" visibility="protected"
  43746. deprecated="not deprecated">
  43747. </constructor>
  43748. <method name="getValue" return="org.apache.hadoop.fs.Path"
  43749. abstract="false" native="false" synchronized="false"
  43750. static="false" final="false" visibility="public"
  43751. deprecated="not deprecated">
  43752. </method>
  43753. </class>
  43754. <!-- end class org.apache.hadoop.util.Options.PathOption -->
  43755. <!-- start class org.apache.hadoop.util.Options.ProgressableOption -->
  43756. <class name="Options.ProgressableOption" extends="java.lang.Object"
  43757. abstract="true"
  43758. static="true" final="false" visibility="public"
  43759. deprecated="not deprecated">
  43760. <constructor name="ProgressableOption" type="org.apache.hadoop.util.Progressable"
  43761. static="false" final="false" visibility="protected"
  43762. deprecated="not deprecated">
  43763. </constructor>
  43764. <method name="getValue" return="org.apache.hadoop.util.Progressable"
  43765. abstract="false" native="false" synchronized="false"
  43766. static="false" final="false" visibility="public"
  43767. deprecated="not deprecated">
  43768. </method>
  43769. </class>
  43770. <!-- end class org.apache.hadoop.util.Options.ProgressableOption -->
  43771. <!-- start class org.apache.hadoop.util.Options.StringOption -->
  43772. <class name="Options.StringOption" extends="java.lang.Object"
  43773. abstract="true"
  43774. static="true" final="false" visibility="public"
  43775. deprecated="not deprecated">
  43776. <constructor name="StringOption" type="java.lang.String"
  43777. static="false" final="false" visibility="protected"
  43778. deprecated="not deprecated">
  43779. </constructor>
  43780. <method name="getValue" return="java.lang.String"
  43781. abstract="false" native="false" synchronized="false"
  43782. static="false" final="false" visibility="public"
  43783. deprecated="not deprecated">
  43784. </method>
  43785. </class>
  43786. <!-- end class org.apache.hadoop.util.Options.StringOption -->
  43787. <!-- start class org.apache.hadoop.util.PerformanceAdvisory -->
  43788. <class name="PerformanceAdvisory" extends="java.lang.Object"
  43789. abstract="false"
  43790. static="false" final="false" visibility="public"
  43791. deprecated="not deprecated">
  43792. <constructor name="PerformanceAdvisory"
  43793. static="false" final="false" visibility="public"
  43794. deprecated="not deprecated">
  43795. </constructor>
  43796. <field name="LOG" type="org.slf4j.Logger"
  43797. transient="false" volatile="false"
  43798. static="true" final="true" visibility="public"
  43799. deprecated="not deprecated">
  43800. </field>
  43801. </class>
  43802. <!-- end class org.apache.hadoop.util.PerformanceAdvisory -->
  43803. <!-- start interface org.apache.hadoop.util.Progressable -->
  43804. <interface name="Progressable" abstract="true"
  43805. static="false" final="false" visibility="public"
  43806. deprecated="not deprecated">
  43807. <method name="progress"
  43808. abstract="true" native="false" synchronized="false"
  43809. static="false" final="false" visibility="public"
  43810. deprecated="not deprecated">
  43811. <doc>
  43812. <![CDATA[Report progress to the Hadoop framework.]]>
  43813. </doc>
  43814. </method>
  43815. <doc>
  43816. <![CDATA[A facility for reporting progress.
  43817. <p>Clients and/or applications can use the provided <code>Progressable</code>
  43818. to explicitly report progress to the Hadoop framework. This is especially
  43819. important for operations which take significant amount of time since,
  43820. in-lieu of the reported progress, the framework has to assume that an error
  43821. has occured and time-out the operation.</p>]]>
  43822. </doc>
  43823. </interface>
  43824. <!-- end interface org.apache.hadoop.util.Progressable -->
  43825. <!-- start class org.apache.hadoop.util.ProtoUtil -->
  43826. <class name="ProtoUtil" extends="java.lang.Object"
  43827. abstract="true"
  43828. static="false" final="false" visibility="public"
  43829. deprecated="not deprecated">
  43830. <constructor name="ProtoUtil"
  43831. static="false" final="false" visibility="public"
  43832. deprecated="not deprecated">
  43833. </constructor>
  43834. <method name="readRawVarint32" return="int"
  43835. abstract="false" native="false" synchronized="false"
  43836. static="true" final="false" visibility="public"
  43837. deprecated="not deprecated">
  43838. <param name="in" type="java.io.DataInput"/>
  43839. <exception name="IOException" type="java.io.IOException"/>
  43840. <doc>
  43841. <![CDATA[Read a variable length integer in the same format that ProtoBufs encodes.
  43842. @param in the input stream to read from
  43843. @return the integer
  43844. @throws IOException if it is malformed or EOF.]]>
  43845. </doc>
  43846. </method>
  43847. <method name="makeIpcConnectionContext" return="org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto"
  43848. abstract="false" native="false" synchronized="false"
  43849. static="true" final="false" visibility="public"
  43850. deprecated="not deprecated">
  43851. <param name="protocol" type="java.lang.String"/>
  43852. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  43853. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  43854. <doc>
  43855. <![CDATA[This method creates the connection context using exactly the same logic
  43856. as the old connection context as was done for writable where
  43857. the effective and real users are set based on the auth method.]]>
  43858. </doc>
  43859. </method>
  43860. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  43861. abstract="false" native="false" synchronized="false"
  43862. static="true" final="false" visibility="public"
  43863. deprecated="not deprecated">
  43864. <param name="context" type="org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto"/>
  43865. </method>
  43866. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  43867. abstract="false" native="false" synchronized="false"
  43868. static="true" final="false" visibility="public"
  43869. deprecated="not deprecated">
  43870. <param name="userInfo" type="org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto"/>
  43871. </method>
  43872. <method name="convert" return="org.apache.hadoop.ipc.RPC.RpcKind"
  43873. abstract="false" native="false" synchronized="false"
  43874. static="true" final="false" visibility="public"
  43875. deprecated="not deprecated">
  43876. <param name="kind" type="org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcKindProto"/>
  43877. </method>
  43878. <method name="makeRpcRequestHeader" return="org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto"
  43879. abstract="false" native="false" synchronized="false"
  43880. static="true" final="false" visibility="public"
  43881. deprecated="not deprecated">
  43882. <param name="rpcKind" type="org.apache.hadoop.ipc.RPC.RpcKind"/>
  43883. <param name="operation" type="org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto.OperationProto"/>
  43884. <param name="callId" type="int"/>
  43885. <param name="retryCount" type="int"/>
  43886. <param name="uuid" type="byte[]"/>
  43887. </method>
  43888. </class>
  43889. <!-- end class org.apache.hadoop.util.ProtoUtil -->
  43890. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  43891. <class name="PureJavaCrc32" extends="java.lang.Object"
  43892. abstract="false"
  43893. static="false" final="false" visibility="public"
  43894. deprecated="not deprecated">
  43895. <implements name="java.util.zip.Checksum"/>
  43896. <constructor name="PureJavaCrc32"
  43897. static="false" final="false" visibility="public"
  43898. deprecated="not deprecated">
  43899. <doc>
  43900. <![CDATA[Create a new PureJavaCrc32 object.]]>
  43901. </doc>
  43902. </constructor>
  43903. <method name="getValue" return="long"
  43904. abstract="false" native="false" synchronized="false"
  43905. static="false" final="false" visibility="public"
  43906. deprecated="not deprecated">
  43907. </method>
  43908. <method name="reset"
  43909. abstract="false" native="false" synchronized="false"
  43910. static="false" final="false" visibility="public"
  43911. deprecated="not deprecated">
  43912. </method>
  43913. <method name="update"
  43914. abstract="false" native="false" synchronized="false"
  43915. static="false" final="false" visibility="public"
  43916. deprecated="not deprecated">
  43917. <param name="b" type="byte[]"/>
  43918. <param name="offset" type="int"/>
  43919. <param name="len" type="int"/>
  43920. </method>
  43921. <method name="update"
  43922. abstract="false" native="false" synchronized="false"
  43923. static="false" final="true" visibility="public"
  43924. deprecated="not deprecated">
  43925. <param name="b" type="int"/>
  43926. </method>
  43927. <doc>
  43928. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  43929. the same polynomial as the built-in native CRC32.
  43930. This is to avoid the JNI overhead for certain uses of Checksumming
  43931. where many small pieces of data are checksummed in succession.
  43932. The current version is ~10x to 1.8x as fast as Sun's native
  43933. java.util.zip.CRC32 in Java 1.6
  43934. @see java.util.zip.CRC32]]>
  43935. </doc>
  43936. </class>
  43937. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  43938. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  43939. <class name="PureJavaCrc32C" extends="java.lang.Object"
  43940. abstract="false"
  43941. static="false" final="false" visibility="public"
  43942. deprecated="not deprecated">
  43943. <implements name="java.util.zip.Checksum"/>
  43944. <constructor name="PureJavaCrc32C"
  43945. static="false" final="false" visibility="public"
  43946. deprecated="not deprecated">
  43947. <doc>
  43948. <![CDATA[Create a new PureJavaCrc32 object.]]>
  43949. </doc>
  43950. </constructor>
  43951. <method name="getValue" return="long"
  43952. abstract="false" native="false" synchronized="false"
  43953. static="false" final="false" visibility="public"
  43954. deprecated="not deprecated">
  43955. </method>
  43956. <method name="reset"
  43957. abstract="false" native="false" synchronized="false"
  43958. static="false" final="false" visibility="public"
  43959. deprecated="not deprecated">
  43960. </method>
  43961. <method name="update"
  43962. abstract="false" native="false" synchronized="false"
  43963. static="false" final="false" visibility="public"
  43964. deprecated="not deprecated">
  43965. <param name="b" type="byte[]"/>
  43966. <param name="off" type="int"/>
  43967. <param name="len" type="int"/>
  43968. </method>
  43969. <method name="update"
  43970. abstract="false" native="false" synchronized="false"
  43971. static="false" final="true" visibility="public"
  43972. deprecated="not deprecated">
  43973. <param name="b" type="int"/>
  43974. </method>
  43975. <doc>
  43976. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  43977. the CRC32-C polynomial, the same polynomial used by iSCSI
  43978. and implemented on many Intel chipsets supporting SSE4.2.]]>
  43979. </doc>
  43980. </class>
  43981. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  43982. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  43983. <class name="ReflectionUtils" extends="java.lang.Object"
  43984. abstract="false"
  43985. static="false" final="false" visibility="public"
  43986. deprecated="not deprecated">
  43987. <constructor name="ReflectionUtils"
  43988. static="false" final="false" visibility="public"
  43989. deprecated="not deprecated">
  43990. </constructor>
  43991. <method name="setConf"
  43992. abstract="false" native="false" synchronized="false"
  43993. static="true" final="false" visibility="public"
  43994. deprecated="not deprecated">
  43995. <param name="theObject" type="java.lang.Object"/>
  43996. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43997. <doc>
  43998. <![CDATA[Check and set 'configuration' if necessary.
  43999. @param theObject object for which to set configuration
  44000. @param conf Configuration]]>
  44001. </doc>
  44002. </method>
  44003. <method name="newInstance" return="T"
  44004. abstract="false" native="false" synchronized="false"
  44005. static="true" final="false" visibility="public"
  44006. deprecated="not deprecated">
  44007. <param name="theClass" type="java.lang.Class"/>
  44008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44009. <doc>
  44010. <![CDATA[Create an object for the given class and initialize it from conf
  44011. @param theClass class of which an object is created
  44012. @param conf Configuration
  44013. @return a new object]]>
  44014. </doc>
  44015. </method>
  44016. <method name="setContentionTracing"
  44017. abstract="false" native="false" synchronized="false"
  44018. static="true" final="false" visibility="public"
  44019. deprecated="not deprecated">
  44020. <param name="val" type="boolean"/>
  44021. </method>
  44022. <method name="printThreadInfo"
  44023. abstract="false" native="false" synchronized="true"
  44024. static="true" final="false" visibility="public"
  44025. deprecated="not deprecated">
  44026. <param name="stream" type="java.io.PrintStream"/>
  44027. <param name="title" type="java.lang.String"/>
  44028. <doc>
  44029. <![CDATA[Print all of the thread's information and stack traces.
  44030. @param stream the stream to
  44031. @param title a string title for the stack trace]]>
  44032. </doc>
  44033. </method>
  44034. <method name="logThreadInfo"
  44035. abstract="false" native="false" synchronized="false"
  44036. static="true" final="false" visibility="public"
  44037. deprecated="not deprecated">
  44038. <param name="log" type="org.apache.commons.logging.Log"/>
  44039. <param name="title" type="java.lang.String"/>
  44040. <param name="minInterval" type="long"/>
  44041. <doc>
  44042. <![CDATA[Log the current thread stacks at INFO level.
  44043. @param log the logger that logs the stack trace
  44044. @param title a descriptive title for the call stacks
  44045. @param minInterval the minimum time from the last]]>
  44046. </doc>
  44047. </method>
  44048. <method name="getClass" return="java.lang.Class"
  44049. abstract="false" native="false" synchronized="false"
  44050. static="true" final="false" visibility="public"
  44051. deprecated="not deprecated">
  44052. <param name="o" type="T"/>
  44053. <doc>
  44054. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  44055. @param o object whose correctly-typed <code>Class</code> is to be obtained
  44056. @return the correctly typed <code>Class</code> of the given object.]]>
  44057. </doc>
  44058. </method>
  44059. <method name="copy" return="T"
  44060. abstract="false" native="false" synchronized="false"
  44061. static="true" final="false" visibility="public"
  44062. deprecated="not deprecated">
  44063. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44064. <param name="src" type="T"/>
  44065. <param name="dst" type="T"/>
  44066. <exception name="IOException" type="java.io.IOException"/>
  44067. <doc>
  44068. <![CDATA[Make a copy of the writable object using serialization to a buffer
  44069. @param src the object to copy from
  44070. @param dst the object to copy into, which is destroyed
  44071. @return dst param (the copy)
  44072. @throws IOException]]>
  44073. </doc>
  44074. </method>
  44075. <method name="cloneWritableInto"
  44076. abstract="false" native="false" synchronized="false"
  44077. static="true" final="false" visibility="public"
  44078. deprecated="not deprecated">
  44079. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  44080. <param name="src" type="org.apache.hadoop.io.Writable"/>
  44081. <exception name="IOException" type="java.io.IOException"/>
  44082. </method>
  44083. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  44084. abstract="false" native="false" synchronized="false"
  44085. static="true" final="false" visibility="public"
  44086. deprecated="not deprecated">
  44087. <param name="clazz" type="java.lang.Class"/>
  44088. <doc>
  44089. <![CDATA[Gets all the declared fields of a class including fields declared in
  44090. superclasses.]]>
  44091. </doc>
  44092. </method>
  44093. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  44094. abstract="false" native="false" synchronized="false"
  44095. static="true" final="false" visibility="public"
  44096. deprecated="not deprecated">
  44097. <param name="clazz" type="java.lang.Class"/>
  44098. <doc>
  44099. <![CDATA[Gets all the declared methods of a class including methods declared in
  44100. superclasses.]]>
  44101. </doc>
  44102. </method>
  44103. <doc>
  44104. <![CDATA[General reflection utils]]>
  44105. </doc>
  44106. </class>
  44107. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  44108. <!-- start interface org.apache.hadoop.util.Shell.CommandExecutor -->
  44109. <interface name="Shell.CommandExecutor" abstract="true"
  44110. static="true" final="false" visibility="public"
  44111. deprecated="not deprecated">
  44112. <method name="execute"
  44113. abstract="true" native="false" synchronized="false"
  44114. static="false" final="false" visibility="public"
  44115. deprecated="not deprecated">
  44116. <exception name="IOException" type="java.io.IOException"/>
  44117. </method>
  44118. <method name="getExitCode" return="int"
  44119. abstract="true" native="false" synchronized="false"
  44120. static="false" final="false" visibility="public"
  44121. deprecated="not deprecated">
  44122. <exception name="IOException" type="java.io.IOException"/>
  44123. </method>
  44124. <method name="getOutput" return="java.lang.String"
  44125. abstract="true" native="false" synchronized="false"
  44126. static="false" final="false" visibility="public"
  44127. deprecated="not deprecated">
  44128. <exception name="IOException" type="java.io.IOException"/>
  44129. </method>
  44130. <method name="close"
  44131. abstract="true" native="false" synchronized="false"
  44132. static="false" final="false" visibility="public"
  44133. deprecated="not deprecated">
  44134. </method>
  44135. </interface>
  44136. <!-- end interface org.apache.hadoop.util.Shell.CommandExecutor -->
  44137. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  44138. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  44139. abstract="false"
  44140. static="true" final="false" visibility="public"
  44141. deprecated="not deprecated">
  44142. <constructor name="ExitCodeException" type="int, java.lang.String"
  44143. static="false" final="false" visibility="public"
  44144. deprecated="not deprecated">
  44145. </constructor>
  44146. <method name="getExitCode" return="int"
  44147. abstract="false" native="false" synchronized="false"
  44148. static="false" final="false" visibility="public"
  44149. deprecated="not deprecated">
  44150. </method>
  44151. <method name="toString" return="java.lang.String"
  44152. abstract="false" native="false" synchronized="false"
  44153. static="false" final="false" visibility="public"
  44154. deprecated="not deprecated">
  44155. </method>
  44156. <doc>
  44157. <![CDATA[This is an IOException with exit code added.]]>
  44158. </doc>
  44159. </class>
  44160. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  44161. <!-- start class org.apache.hadoop.util.Shell.OSType -->
  44162. <class name="Shell.OSType" extends="java.lang.Enum"
  44163. abstract="false"
  44164. static="true" final="true" visibility="public"
  44165. deprecated="not deprecated">
  44166. <method name="values" return="org.apache.hadoop.util.Shell.OSType[]"
  44167. abstract="false" native="false" synchronized="false"
  44168. static="true" final="false" visibility="public"
  44169. deprecated="not deprecated">
  44170. </method>
  44171. <method name="valueOf" return="org.apache.hadoop.util.Shell.OSType"
  44172. abstract="false" native="false" synchronized="false"
  44173. static="true" final="false" visibility="public"
  44174. deprecated="not deprecated">
  44175. <param name="name" type="java.lang.String"/>
  44176. </method>
  44177. </class>
  44178. <!-- end class org.apache.hadoop.util.Shell.OSType -->
  44179. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  44180. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  44181. abstract="false"
  44182. static="true" final="false" visibility="public"
  44183. deprecated="not deprecated">
  44184. <implements name="org.apache.hadoop.util.Shell.CommandExecutor"/>
  44185. <constructor name="ShellCommandExecutor" type="java.lang.String[]"
  44186. static="false" final="false" visibility="public"
  44187. deprecated="not deprecated">
  44188. </constructor>
  44189. <constructor name="ShellCommandExecutor" type="java.lang.String[], java.io.File"
  44190. static="false" final="false" visibility="public"
  44191. deprecated="not deprecated">
  44192. </constructor>
  44193. <constructor name="ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  44194. static="false" final="false" visibility="public"
  44195. deprecated="not deprecated">
  44196. </constructor>
  44197. <constructor name="ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  44198. static="false" final="false" visibility="public"
  44199. deprecated="not deprecated">
  44200. <doc>
  44201. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  44202. @param execString The command to execute with arguments
  44203. @param dir If not-null, specifies the directory which should be set
  44204. as the current working directory for the command.
  44205. If null, the current working directory is not modified.
  44206. @param env If not-null, environment of the command will include the
  44207. key-value pairs specified in the map. If null, the current
  44208. environment is not modified.
  44209. @param timeout Specifies the time in milliseconds, after which the
  44210. command will be killed and the status marked as timedout.
  44211. If 0, the command will not be timed out.]]>
  44212. </doc>
  44213. </constructor>
  44214. <method name="execute"
  44215. abstract="false" native="false" synchronized="false"
  44216. static="false" final="false" visibility="public"
  44217. deprecated="not deprecated">
  44218. <exception name="IOException" type="java.io.IOException"/>
  44219. <doc>
  44220. <![CDATA[Execute the shell command.]]>
  44221. </doc>
  44222. </method>
  44223. <method name="getExecString" return="java.lang.String[]"
  44224. abstract="false" native="false" synchronized="false"
  44225. static="false" final="false" visibility="public"
  44226. deprecated="not deprecated">
  44227. </method>
  44228. <method name="parseExecResult"
  44229. abstract="false" native="false" synchronized="false"
  44230. static="false" final="false" visibility="protected"
  44231. deprecated="not deprecated">
  44232. <param name="lines" type="java.io.BufferedReader"/>
  44233. <exception name="IOException" type="java.io.IOException"/>
  44234. </method>
  44235. <method name="getOutput" return="java.lang.String"
  44236. abstract="false" native="false" synchronized="false"
  44237. static="false" final="false" visibility="public"
  44238. deprecated="not deprecated">
  44239. <doc>
  44240. <![CDATA[Get the output of the shell command.]]>
  44241. </doc>
  44242. </method>
  44243. <method name="toString" return="java.lang.String"
  44244. abstract="false" native="false" synchronized="false"
  44245. static="false" final="false" visibility="public"
  44246. deprecated="not deprecated">
  44247. <doc>
  44248. <![CDATA[Returns the commands of this instance.
  44249. Arguments with spaces in are presented with quotes round; other
  44250. arguments are presented raw
  44251. @return a string representation of the object.]]>
  44252. </doc>
  44253. </method>
  44254. <method name="close"
  44255. abstract="false" native="false" synchronized="false"
  44256. static="false" final="false" visibility="public"
  44257. deprecated="not deprecated">
  44258. </method>
  44259. <doc>
  44260. <![CDATA[A simple shell command executor.
  44261. <code>ShellCommandExecutor</code>should be used in cases where the output
  44262. of the command needs no explicit parsing and where the command, working
  44263. directory and the environment remains unchanged. The output of the command
  44264. is stored as-is and is expected to be small.]]>
  44265. </doc>
  44266. </class>
  44267. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  44268. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  44269. <class name="ShutdownHookManager" extends="java.lang.Object"
  44270. abstract="false"
  44271. static="false" final="false" visibility="public"
  44272. deprecated="not deprecated">
  44273. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  44274. abstract="false" native="false" synchronized="false"
  44275. static="true" final="false" visibility="public"
  44276. deprecated="not deprecated">
  44277. <doc>
  44278. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  44279. @return <code>ShutdownHookManager</code> singleton.]]>
  44280. </doc>
  44281. </method>
  44282. <method name="addShutdownHook"
  44283. abstract="false" native="false" synchronized="false"
  44284. static="false" final="false" visibility="public"
  44285. deprecated="not deprecated">
  44286. <param name="shutdownHook" type="java.lang.Runnable"/>
  44287. <param name="priority" type="int"/>
  44288. <doc>
  44289. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  44290. the earlier will run. ShutdownHooks with same priority run
  44291. in a non-deterministic order.
  44292. @param shutdownHook shutdownHook <code>Runnable</code>
  44293. @param priority priority of the shutdownHook.]]>
  44294. </doc>
  44295. </method>
  44296. <method name="removeShutdownHook" return="boolean"
  44297. abstract="false" native="false" synchronized="false"
  44298. static="false" final="false" visibility="public"
  44299. deprecated="not deprecated">
  44300. <param name="shutdownHook" type="java.lang.Runnable"/>
  44301. <doc>
  44302. <![CDATA[Removes a shutdownHook.
  44303. @param shutdownHook shutdownHook to remove.
  44304. @return TRUE if the shutdownHook was registered and removed,
  44305. FALSE otherwise.]]>
  44306. </doc>
  44307. </method>
  44308. <method name="hasShutdownHook" return="boolean"
  44309. abstract="false" native="false" synchronized="false"
  44310. static="false" final="false" visibility="public"
  44311. deprecated="not deprecated">
  44312. <param name="shutdownHook" type="java.lang.Runnable"/>
  44313. <doc>
  44314. <![CDATA[Indicates if a shutdownHook is registered or not.
  44315. @param shutdownHook shutdownHook to check if registered.
  44316. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  44317. </doc>
  44318. </method>
  44319. <method name="isShutdownInProgress" return="boolean"
  44320. abstract="false" native="false" synchronized="false"
  44321. static="false" final="false" visibility="public"
  44322. deprecated="not deprecated">
  44323. <doc>
  44324. <![CDATA[Indicates if shutdown is in progress or not.
  44325. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  44326. </doc>
  44327. </method>
  44328. <doc>
  44329. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  44330. in a deterministic order, higher priority first.
  44331. <p/>
  44332. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  44333. This class registers a single JVM shutdownHook and run all the
  44334. shutdownHooks registered to it (to this class) in order based on their
  44335. priority.]]>
  44336. </doc>
  44337. </class>
  44338. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  44339. <!-- start class org.apache.hadoop.util.ShutdownThreadsHelper -->
  44340. <class name="ShutdownThreadsHelper" extends="java.lang.Object"
  44341. abstract="false"
  44342. static="false" final="false" visibility="public"
  44343. deprecated="not deprecated">
  44344. <constructor name="ShutdownThreadsHelper"
  44345. static="false" final="false" visibility="public"
  44346. deprecated="not deprecated">
  44347. </constructor>
  44348. <method name="shutdownThread" return="boolean"
  44349. abstract="false" native="false" synchronized="false"
  44350. static="true" final="false" visibility="public"
  44351. deprecated="not deprecated">
  44352. <param name="thread" type="java.lang.Thread"/>
  44353. <doc>
  44354. <![CDATA[@param thread {@link Thread to be shutdown}
  44355. @return <tt>true</tt> if the thread is successfully interrupted,
  44356. <tt>false</tt> otherwise
  44357. @throws InterruptedException]]>
  44358. </doc>
  44359. </method>
  44360. <method name="shutdownThread" return="boolean"
  44361. abstract="false" native="false" synchronized="false"
  44362. static="true" final="false" visibility="public"
  44363. deprecated="not deprecated">
  44364. <param name="thread" type="java.lang.Thread"/>
  44365. <param name="timeoutInMilliSeconds" type="long"/>
  44366. <doc>
  44367. <![CDATA[@param thread {@link Thread to be shutdown}
  44368. @param timeoutInMilliSeconds time to wait for thread to join after being
  44369. interrupted
  44370. @return <tt>true</tt> if the thread is successfully interrupted,
  44371. <tt>false</tt> otherwise
  44372. @throws InterruptedException]]>
  44373. </doc>
  44374. </method>
  44375. <method name="shutdownExecutorService" return="boolean"
  44376. abstract="false" native="false" synchronized="false"
  44377. static="true" final="false" visibility="public"
  44378. deprecated="not deprecated">
  44379. <param name="service" type="java.util.concurrent.ExecutorService"/>
  44380. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44381. <doc>
  44382. <![CDATA[@param service {@link ExecutorService to be shutdown}
  44383. @return <tt>true</tt> if the service is terminated,
  44384. <tt>false</tt> otherwise
  44385. @throws InterruptedException]]>
  44386. </doc>
  44387. </method>
  44388. <method name="shutdownExecutorService" return="boolean"
  44389. abstract="false" native="false" synchronized="false"
  44390. static="true" final="false" visibility="public"
  44391. deprecated="not deprecated">
  44392. <param name="service" type="java.util.concurrent.ExecutorService"/>
  44393. <param name="timeoutInMs" type="long"/>
  44394. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44395. <doc>
  44396. <![CDATA[@param service {@link ExecutorService to be shutdown}
  44397. @param timeoutInMs time to wait for {@link
  44398. ExecutorService#awaitTermination(long, java.util.concurrent.TimeUnit)}
  44399. calls in milli seconds.
  44400. @return <tt>true</tt> if the service is terminated,
  44401. <tt>false</tt> otherwise
  44402. @throws InterruptedException]]>
  44403. </doc>
  44404. </method>
  44405. <doc>
  44406. <![CDATA[Helper class to shutdown {@link Thread}s and {@link ExecutorService}s.]]>
  44407. </doc>
  44408. </class>
  44409. <!-- end class org.apache.hadoop.util.ShutdownThreadsHelper -->
  44410. <!-- start class org.apache.hadoop.util.StopWatch -->
  44411. <class name="StopWatch" extends="java.lang.Object"
  44412. abstract="false"
  44413. static="false" final="false" visibility="public"
  44414. deprecated="not deprecated">
  44415. <implements name="java.io.Closeable"/>
  44416. <constructor name="StopWatch"
  44417. static="false" final="false" visibility="public"
  44418. deprecated="not deprecated">
  44419. </constructor>
  44420. <method name="isRunning" return="boolean"
  44421. abstract="false" native="false" synchronized="false"
  44422. static="false" final="false" visibility="public"
  44423. deprecated="not deprecated">
  44424. <doc>
  44425. <![CDATA[The method is used to find out if the StopWatch is started.
  44426. @return boolean If the StopWatch is started.]]>
  44427. </doc>
  44428. </method>
  44429. <method name="start" return="org.apache.hadoop.util.StopWatch"
  44430. abstract="false" native="false" synchronized="false"
  44431. static="false" final="false" visibility="public"
  44432. deprecated="not deprecated">
  44433. <doc>
  44434. <![CDATA[Start to measure times and make the state of stopwatch running.
  44435. @return this instance of StopWatch.]]>
  44436. </doc>
  44437. </method>
  44438. <method name="stop" return="org.apache.hadoop.util.StopWatch"
  44439. abstract="false" native="false" synchronized="false"
  44440. static="false" final="false" visibility="public"
  44441. deprecated="not deprecated">
  44442. <doc>
  44443. <![CDATA[Stop elapsed time and make the state of stopwatch stop.
  44444. @return this instance of StopWatch.]]>
  44445. </doc>
  44446. </method>
  44447. <method name="reset" return="org.apache.hadoop.util.StopWatch"
  44448. abstract="false" native="false" synchronized="false"
  44449. static="false" final="false" visibility="public"
  44450. deprecated="not deprecated">
  44451. <doc>
  44452. <![CDATA[Reset elapsed time to zero and make the state of stopwatch stop.
  44453. @return this instance of StopWatch.]]>
  44454. </doc>
  44455. </method>
  44456. <method name="now" return="long"
  44457. abstract="false" native="false" synchronized="false"
  44458. static="false" final="false" visibility="public"
  44459. deprecated="not deprecated">
  44460. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  44461. <doc>
  44462. <![CDATA[@return current elapsed time in specified timeunit.]]>
  44463. </doc>
  44464. </method>
  44465. <method name="now" return="long"
  44466. abstract="false" native="false" synchronized="false"
  44467. static="false" final="false" visibility="public"
  44468. deprecated="not deprecated">
  44469. <doc>
  44470. <![CDATA[@return current elapsed time in nanosecond.]]>
  44471. </doc>
  44472. </method>
  44473. <method name="toString" return="java.lang.String"
  44474. abstract="false" native="false" synchronized="false"
  44475. static="false" final="false" visibility="public"
  44476. deprecated="not deprecated">
  44477. </method>
  44478. <method name="close"
  44479. abstract="false" native="false" synchronized="false"
  44480. static="false" final="false" visibility="public"
  44481. deprecated="not deprecated">
  44482. </method>
  44483. <doc>
  44484. <![CDATA[A simplified StopWatch implementation which can measure times in nanoseconds.]]>
  44485. </doc>
  44486. </class>
  44487. <!-- end class org.apache.hadoop.util.StopWatch -->
  44488. <!-- start class org.apache.hadoop.util.StringInterner -->
  44489. <class name="StringInterner" extends="java.lang.Object"
  44490. abstract="false"
  44491. static="false" final="false" visibility="public"
  44492. deprecated="not deprecated">
  44493. <constructor name="StringInterner"
  44494. static="false" final="false" visibility="public"
  44495. deprecated="not deprecated">
  44496. </constructor>
  44497. <method name="strongIntern" return="java.lang.String"
  44498. abstract="false" native="false" synchronized="false"
  44499. static="true" final="false" visibility="public"
  44500. deprecated="not deprecated">
  44501. <param name="sample" type="java.lang.String"/>
  44502. <doc>
  44503. <![CDATA[Interns and returns a reference to the representative instance
  44504. for any of a collection of string instances that are equal to each other.
  44505. Retains strong reference to the instance,
  44506. thus preventing it from being garbage-collected.
  44507. @param sample string instance to be interned
  44508. @return strong reference to interned string instance]]>
  44509. </doc>
  44510. </method>
  44511. <method name="weakIntern" return="java.lang.String"
  44512. abstract="false" native="false" synchronized="false"
  44513. static="true" final="false" visibility="public"
  44514. deprecated="not deprecated">
  44515. <param name="sample" type="java.lang.String"/>
  44516. <doc>
  44517. <![CDATA[Interns and returns a reference to the representative instance
  44518. for any of a collection of string instances that are equal to each other.
  44519. Retains weak reference to the instance,
  44520. and so does not prevent it from being garbage-collected.
  44521. @param sample string instance to be interned
  44522. @return weak reference to interned string instance]]>
  44523. </doc>
  44524. </method>
  44525. <doc>
  44526. <![CDATA[Provides equivalent behavior to String.intern() to optimize performance,
  44527. whereby does not consume memory in the permanent generation.]]>
  44528. </doc>
  44529. </class>
  44530. <!-- end class org.apache.hadoop.util.StringInterner -->
  44531. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  44532. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  44533. abstract="false"
  44534. static="true" final="true" visibility="public"
  44535. deprecated="not deprecated">
  44536. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  44537. abstract="false" native="false" synchronized="false"
  44538. static="true" final="false" visibility="public"
  44539. deprecated="not deprecated">
  44540. </method>
  44541. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  44542. abstract="false" native="false" synchronized="false"
  44543. static="true" final="false" visibility="public"
  44544. deprecated="not deprecated">
  44545. <param name="name" type="java.lang.String"/>
  44546. </method>
  44547. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  44548. abstract="false" native="false" synchronized="false"
  44549. static="true" final="false" visibility="public"
  44550. deprecated="not deprecated">
  44551. <param name="symbol" type="char"/>
  44552. <doc>
  44553. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  44554. </doc>
  44555. </method>
  44556. <method name="string2long" return="long"
  44557. abstract="false" native="false" synchronized="false"
  44558. static="true" final="false" visibility="public"
  44559. deprecated="not deprecated">
  44560. <param name="s" type="java.lang.String"/>
  44561. <doc>
  44562. <![CDATA[Convert a string to long.
  44563. The input string is first be trimmed
  44564. and then it is parsed with traditional binary prefix.
  44565. For example,
  44566. "-1230k" will be converted to -1230 * 1024 = -1259520;
  44567. "891g" will be converted to 891 * 1024^3 = 956703965184;
  44568. @param s input string
  44569. @return a long value represented by the input string.]]>
  44570. </doc>
  44571. </method>
  44572. <method name="long2String" return="java.lang.String"
  44573. abstract="false" native="false" synchronized="false"
  44574. static="true" final="false" visibility="public"
  44575. deprecated="not deprecated">
  44576. <param name="n" type="long"/>
  44577. <param name="unit" type="java.lang.String"/>
  44578. <param name="decimalPlaces" type="int"/>
  44579. <doc>
  44580. <![CDATA[Convert a long integer to a string with traditional binary prefix.
  44581. @param n the value to be converted
  44582. @param unit The unit, e.g. "B" for bytes.
  44583. @param decimalPlaces The number of decimal places.
  44584. @return a string with traditional binary prefix.]]>
  44585. </doc>
  44586. </method>
  44587. <field name="value" type="long"
  44588. transient="false" volatile="false"
  44589. static="false" final="true" visibility="public"
  44590. deprecated="not deprecated">
  44591. </field>
  44592. <field name="symbol" type="char"
  44593. transient="false" volatile="false"
  44594. static="false" final="true" visibility="public"
  44595. deprecated="not deprecated">
  44596. </field>
  44597. <field name="bitShift" type="int"
  44598. transient="false" volatile="false"
  44599. static="false" final="true" visibility="public"
  44600. deprecated="not deprecated">
  44601. </field>
  44602. <field name="bitMask" type="long"
  44603. transient="false" volatile="false"
  44604. static="false" final="true" visibility="public"
  44605. deprecated="not deprecated">
  44606. </field>
  44607. <doc>
  44608. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  44609. which can be represented by a 64-bit integer.
  44610. TraditionalBinaryPrefix symbol are case insensitive.]]>
  44611. </doc>
  44612. </class>
  44613. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  44614. <!-- start class org.apache.hadoop.util.ThreadUtil -->
  44615. <class name="ThreadUtil" extends="java.lang.Object"
  44616. abstract="false"
  44617. static="false" final="false" visibility="public"
  44618. deprecated="not deprecated">
  44619. <constructor name="ThreadUtil"
  44620. static="false" final="false" visibility="public"
  44621. deprecated="not deprecated">
  44622. </constructor>
  44623. <method name="sleepAtLeastIgnoreInterrupts"
  44624. abstract="false" native="false" synchronized="false"
  44625. static="true" final="false" visibility="public"
  44626. deprecated="not deprecated">
  44627. <param name="millis" type="long"/>
  44628. <doc>
  44629. <![CDATA[Cause the current thread to sleep as close as possible to the provided
  44630. number of milliseconds. This method will log and ignore any
  44631. {@link InterruptedException} encountered.
  44632. @param millis the number of milliseconds for the current thread to sleep]]>
  44633. </doc>
  44634. </method>
  44635. </class>
  44636. <!-- end class org.apache.hadoop.util.ThreadUtil -->
  44637. <!-- start interface org.apache.hadoop.util.Tool -->
  44638. <interface name="Tool" abstract="true"
  44639. static="false" final="false" visibility="public"
  44640. deprecated="not deprecated">
  44641. <implements name="org.apache.hadoop.conf.Configurable"/>
  44642. <method name="run" return="int"
  44643. abstract="true" native="false" synchronized="false"
  44644. static="false" final="false" visibility="public"
  44645. deprecated="not deprecated">
  44646. <param name="args" type="java.lang.String[]"/>
  44647. <exception name="Exception" type="java.lang.Exception"/>
  44648. <doc>
  44649. <![CDATA[Execute the command with the given arguments.
  44650. @param args command specific arguments.
  44651. @return exit code.
  44652. @throws Exception]]>
  44653. </doc>
  44654. </method>
  44655. <doc>
  44656. <![CDATA[A tool interface that supports handling of generic command-line options.
  44657. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  44658. The tool/application should delegate the handling of
  44659. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  44660. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  44661. and only handle its custom arguments.</p>
  44662. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  44663. <p><blockquote><pre>
  44664. public class MyApp extends Configured implements Tool {
  44665. public int run(String[] args) throws Exception {
  44666. // <code>Configuration</code> processed by <code>ToolRunner</code>
  44667. Configuration conf = getConf();
  44668. // Create a JobConf using the processed <code>conf</code>
  44669. JobConf job = new JobConf(conf, MyApp.class);
  44670. // Process custom command-line options
  44671. Path in = new Path(args[1]);
  44672. Path out = new Path(args[2]);
  44673. // Specify various job-specific parameters
  44674. job.setJobName("my-app");
  44675. job.setInputPath(in);
  44676. job.setOutputPath(out);
  44677. job.setMapperClass(MyMapper.class);
  44678. job.setReducerClass(MyReducer.class);
  44679. // Submit the job, then poll for progress until the job is complete
  44680. JobClient.runJob(job);
  44681. return 0;
  44682. }
  44683. public static void main(String[] args) throws Exception {
  44684. // Let <code>ToolRunner</code> handle generic command-line options
  44685. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  44686. System.exit(res);
  44687. }
  44688. }
  44689. </pre></blockquote></p>
  44690. @see GenericOptionsParser
  44691. @see ToolRunner]]>
  44692. </doc>
  44693. </interface>
  44694. <!-- end interface org.apache.hadoop.util.Tool -->
  44695. <!-- start class org.apache.hadoop.util.ToolRunner -->
  44696. <class name="ToolRunner" extends="java.lang.Object"
  44697. abstract="false"
  44698. static="false" final="false" visibility="public"
  44699. deprecated="not deprecated">
  44700. <constructor name="ToolRunner"
  44701. static="false" final="false" visibility="public"
  44702. deprecated="not deprecated">
  44703. </constructor>
  44704. <method name="run" return="int"
  44705. abstract="false" native="false" synchronized="false"
  44706. static="true" final="false" visibility="public"
  44707. deprecated="not deprecated">
  44708. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44709. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  44710. <param name="args" type="java.lang.String[]"/>
  44711. <exception name="Exception" type="java.lang.Exception"/>
  44712. <doc>
  44713. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  44714. parsing with the given generic arguments. Uses the given
  44715. <code>Configuration</code>, or builds one if null.
  44716. Sets the <code>Tool</code>'s configuration with the possibly modified
  44717. version of the <code>conf</code>.
  44718. @param conf <code>Configuration</code> for the <code>Tool</code>.
  44719. @param tool <code>Tool</code> to run.
  44720. @param args command-line arguments to the tool.
  44721. @return exit code of the {@link Tool#run(String[])} method.]]>
  44722. </doc>
  44723. </method>
  44724. <method name="run" return="int"
  44725. abstract="false" native="false" synchronized="false"
  44726. static="true" final="false" visibility="public"
  44727. deprecated="not deprecated">
  44728. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  44729. <param name="args" type="java.lang.String[]"/>
  44730. <exception name="Exception" type="java.lang.Exception"/>
  44731. <doc>
  44732. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  44733. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  44734. @param tool <code>Tool</code> to run.
  44735. @param args command-line arguments to the tool.
  44736. @return exit code of the {@link Tool#run(String[])} method.]]>
  44737. </doc>
  44738. </method>
  44739. <method name="printGenericCommandUsage"
  44740. abstract="false" native="false" synchronized="false"
  44741. static="true" final="false" visibility="public"
  44742. deprecated="not deprecated">
  44743. <param name="out" type="java.io.PrintStream"/>
  44744. <doc>
  44745. <![CDATA[Prints generic command-line argurments and usage information.
  44746. @param out stream to write usage information to.]]>
  44747. </doc>
  44748. </method>
  44749. <method name="confirmPrompt" return="boolean"
  44750. abstract="false" native="false" synchronized="false"
  44751. static="true" final="false" visibility="public"
  44752. deprecated="not deprecated">
  44753. <param name="prompt" type="java.lang.String"/>
  44754. <exception name="IOException" type="java.io.IOException"/>
  44755. <doc>
  44756. <![CDATA[Print out a prompt to the user, and return true if the user
  44757. responds with "y" or "yes". (case insensitive)]]>
  44758. </doc>
  44759. </method>
  44760. <doc>
  44761. <![CDATA[A utility to help run {@link Tool}s.
  44762. <p><code>ToolRunner</code> can be used to run classes implementing
  44763. <code>Tool</code> interface. It works in conjunction with
  44764. {@link GenericOptionsParser} to parse the
  44765. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  44766. generic hadoop command line arguments</a> and modifies the
  44767. <code>Configuration</code> of the <code>Tool</code>. The
  44768. application-specific options are passed along without being modified.
  44769. </p>
  44770. @see Tool
  44771. @see GenericOptionsParser]]>
  44772. </doc>
  44773. </class>
  44774. <!-- end class org.apache.hadoop.util.ToolRunner -->
  44775. <!-- start class org.apache.hadoop.util.Waitable -->
  44776. <class name="Waitable" extends="java.lang.Object"
  44777. abstract="false"
  44778. static="false" final="false" visibility="public"
  44779. deprecated="not deprecated">
  44780. <constructor name="Waitable" type="java.util.concurrent.locks.Condition"
  44781. static="false" final="false" visibility="public"
  44782. deprecated="not deprecated">
  44783. </constructor>
  44784. <method name="await" return="T"
  44785. abstract="false" native="false" synchronized="false"
  44786. static="false" final="false" visibility="public"
  44787. deprecated="not deprecated">
  44788. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44789. </method>
  44790. <method name="provide"
  44791. abstract="false" native="false" synchronized="false"
  44792. static="false" final="false" visibility="public"
  44793. deprecated="not deprecated">
  44794. <param name="val" type="T"/>
  44795. </method>
  44796. <method name="hasVal" return="boolean"
  44797. abstract="false" native="false" synchronized="false"
  44798. static="false" final="false" visibility="public"
  44799. deprecated="not deprecated">
  44800. </method>
  44801. <method name="getVal" return="T"
  44802. abstract="false" native="false" synchronized="false"
  44803. static="false" final="false" visibility="public"
  44804. deprecated="not deprecated">
  44805. </method>
  44806. <doc>
  44807. <![CDATA[Represents an object that you can wait for.]]>
  44808. </doc>
  44809. </class>
  44810. <!-- end class org.apache.hadoop.util.Waitable -->
  44811. <doc>
  44812. <![CDATA[Common utilities.]]>
  44813. </doc>
  44814. </package>
  44815. <package name="org.apache.hadoop.util.bloom">
  44816. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  44817. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  44818. abstract="false"
  44819. static="false" final="false" visibility="public"
  44820. deprecated="not deprecated">
  44821. <constructor name="BloomFilter"
  44822. static="false" final="false" visibility="public"
  44823. deprecated="not deprecated">
  44824. <doc>
  44825. <![CDATA[Default constructor - use with readFields]]>
  44826. </doc>
  44827. </constructor>
  44828. <constructor name="BloomFilter" type="int, int, int"
  44829. static="false" final="false" visibility="public"
  44830. deprecated="not deprecated">
  44831. <doc>
  44832. <![CDATA[Constructor
  44833. @param vectorSize The vector size of <i>this</i> filter.
  44834. @param nbHash The number of hash function to consider.
  44835. @param hashType type of the hashing function (see
  44836. {@link org.apache.hadoop.util.hash.Hash}).]]>
  44837. </doc>
  44838. </constructor>
  44839. <method name="add"
  44840. abstract="false" native="false" synchronized="false"
  44841. static="false" final="false" visibility="public"
  44842. deprecated="not deprecated">
  44843. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44844. </method>
  44845. <method name="and"
  44846. abstract="false" native="false" synchronized="false"
  44847. static="false" final="false" visibility="public"
  44848. deprecated="not deprecated">
  44849. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  44850. </method>
  44851. <method name="membershipTest" return="boolean"
  44852. abstract="false" native="false" synchronized="false"
  44853. static="false" final="false" visibility="public"
  44854. deprecated="not deprecated">
  44855. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44856. </method>
  44857. <method name="not"
  44858. abstract="false" native="false" synchronized="false"
  44859. static="false" final="false" visibility="public"
  44860. deprecated="not deprecated">
  44861. </method>
  44862. <method name="or"
  44863. abstract="false" native="false" synchronized="false"
  44864. static="false" final="false" visibility="public"
  44865. deprecated="not deprecated">
  44866. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  44867. </method>
  44868. <method name="xor"
  44869. abstract="false" native="false" synchronized="false"
  44870. static="false" final="false" visibility="public"
  44871. deprecated="not deprecated">
  44872. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  44873. </method>
  44874. <method name="toString" return="java.lang.String"
  44875. abstract="false" native="false" synchronized="false"
  44876. static="false" final="false" visibility="public"
  44877. deprecated="not deprecated">
  44878. </method>
  44879. <method name="getVectorSize" return="int"
  44880. abstract="false" native="false" synchronized="false"
  44881. static="false" final="false" visibility="public"
  44882. deprecated="not deprecated">
  44883. <doc>
  44884. <![CDATA[@return size of the the bloomfilter]]>
  44885. </doc>
  44886. </method>
  44887. <method name="write"
  44888. abstract="false" native="false" synchronized="false"
  44889. static="false" final="false" visibility="public"
  44890. deprecated="not deprecated">
  44891. <param name="out" type="java.io.DataOutput"/>
  44892. <exception name="IOException" type="java.io.IOException"/>
  44893. </method>
  44894. <method name="readFields"
  44895. abstract="false" native="false" synchronized="false"
  44896. static="false" final="false" visibility="public"
  44897. deprecated="not deprecated">
  44898. <param name="in" type="java.io.DataInput"/>
  44899. <exception name="IOException" type="java.io.IOException"/>
  44900. </method>
  44901. <doc>
  44902. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  44903. <p>
  44904. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  44905. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  44906. offers for the transmission of set membership information between networked hosts. A sender encodes
  44907. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  44908. representation. Computation and space costs for construction are linear in the number of elements.
  44909. The receiver uses the filter to test whether various elements are members of the set. Though the
  44910. filter will occasionally return a false positive, it will never return a false negative. When creating
  44911. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  44912. <p>
  44913. Originally created by
  44914. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  44915. @see Filter The general behavior of a filter
  44916. @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>]]>
  44917. </doc>
  44918. </class>
  44919. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  44920. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  44921. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  44922. abstract="false"
  44923. static="false" final="true" visibility="public"
  44924. deprecated="not deprecated">
  44925. <constructor name="CountingBloomFilter"
  44926. static="false" final="false" visibility="public"
  44927. deprecated="not deprecated">
  44928. <doc>
  44929. <![CDATA[Default constructor - use with readFields]]>
  44930. </doc>
  44931. </constructor>
  44932. <constructor name="CountingBloomFilter" type="int, int, int"
  44933. static="false" final="false" visibility="public"
  44934. deprecated="not deprecated">
  44935. <doc>
  44936. <![CDATA[Constructor
  44937. @param vectorSize The vector size of <i>this</i> filter.
  44938. @param nbHash The number of hash function to consider.
  44939. @param hashType type of the hashing function (see
  44940. {@link org.apache.hadoop.util.hash.Hash}).]]>
  44941. </doc>
  44942. </constructor>
  44943. <method name="add"
  44944. abstract="false" native="false" synchronized="false"
  44945. static="false" final="false" visibility="public"
  44946. deprecated="not deprecated">
  44947. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44948. </method>
  44949. <method name="delete"
  44950. abstract="false" native="false" synchronized="false"
  44951. static="false" final="false" visibility="public"
  44952. deprecated="not deprecated">
  44953. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44954. <doc>
  44955. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  44956. <p>
  44957. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  44958. @param key The key to remove.]]>
  44959. </doc>
  44960. </method>
  44961. <method name="and"
  44962. abstract="false" native="false" synchronized="false"
  44963. static="false" final="false" visibility="public"
  44964. deprecated="not deprecated">
  44965. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  44966. </method>
  44967. <method name="membershipTest" return="boolean"
  44968. abstract="false" native="false" synchronized="false"
  44969. static="false" final="false" visibility="public"
  44970. deprecated="not deprecated">
  44971. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44972. </method>
  44973. <method name="approximateCount" return="int"
  44974. abstract="false" native="false" synchronized="false"
  44975. static="false" final="false" visibility="public"
  44976. deprecated="not deprecated">
  44977. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44978. <doc>
  44979. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  44980. times the key was added to the filter. This allows the filter to be
  44981. used as an approximate <code>key -&gt; count</code> map.
  44982. <p>NOTE: due to the bucket size of this filter, inserting the same
  44983. key more than 15 times will cause an overflow at all filter positions
  44984. associated with this key, and it will significantly increase the error
  44985. rate for this and other keys. For this reason the filter can only be
  44986. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  44987. @param key key to be tested
  44988. @return 0 if the key is not present. Otherwise, a positive value v will
  44989. be returned such that <code>v == count</code> with probability equal to the
  44990. error rate of this filter, and <code>v &gt; count</code> otherwise.
  44991. Additionally, if the filter experienced an underflow as a result of
  44992. {@link #delete(Key)} operation, the return value may be lower than the
  44993. <code>count</code> with the probability of the false negative rate of such
  44994. filter.]]>
  44995. </doc>
  44996. </method>
  44997. <method name="not"
  44998. abstract="false" native="false" synchronized="false"
  44999. static="false" final="false" visibility="public"
  45000. deprecated="not deprecated">
  45001. </method>
  45002. <method name="or"
  45003. abstract="false" native="false" synchronized="false"
  45004. static="false" final="false" visibility="public"
  45005. deprecated="not deprecated">
  45006. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  45007. </method>
  45008. <method name="xor"
  45009. abstract="false" native="false" synchronized="false"
  45010. static="false" final="false" visibility="public"
  45011. deprecated="not deprecated">
  45012. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  45013. </method>
  45014. <method name="toString" return="java.lang.String"
  45015. abstract="false" native="false" synchronized="false"
  45016. static="false" final="false" visibility="public"
  45017. deprecated="not deprecated">
  45018. </method>
  45019. <method name="write"
  45020. abstract="false" native="false" synchronized="false"
  45021. static="false" final="false" visibility="public"
  45022. deprecated="not deprecated">
  45023. <param name="out" type="java.io.DataOutput"/>
  45024. <exception name="IOException" type="java.io.IOException"/>
  45025. </method>
  45026. <method name="readFields"
  45027. abstract="false" native="false" synchronized="false"
  45028. static="false" final="false" visibility="public"
  45029. deprecated="not deprecated">
  45030. <param name="in" type="java.io.DataInput"/>
  45031. <exception name="IOException" type="java.io.IOException"/>
  45032. </method>
  45033. <doc>
  45034. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  45035. 2000 paper.
  45036. <p>
  45037. A counting Bloom filter is an improvement to standard a Bloom filter as it
  45038. allows dynamic additions and deletions of set membership information. This
  45039. is achieved through the use of a counting vector instead of a bit vector.
  45040. <p>
  45041. Originally created by
  45042. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  45043. @see Filter The general behavior of a filter
  45044. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  45045. </doc>
  45046. </class>
  45047. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  45048. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  45049. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  45050. abstract="false"
  45051. static="false" final="false" visibility="public"
  45052. deprecated="not deprecated">
  45053. <constructor name="DynamicBloomFilter"
  45054. static="false" final="false" visibility="public"
  45055. deprecated="not deprecated">
  45056. <doc>
  45057. <![CDATA[Zero-args constructor for the serialization.]]>
  45058. </doc>
  45059. </constructor>
  45060. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  45061. static="false" final="false" visibility="public"
  45062. deprecated="not deprecated">
  45063. <doc>
  45064. <![CDATA[Constructor.
  45065. <p>
  45066. Builds an empty Dynamic Bloom filter.
  45067. @param vectorSize The number of bits in the vector.
  45068. @param nbHash The number of hash function to consider.
  45069. @param hashType type of the hashing function (see
  45070. {@link org.apache.hadoop.util.hash.Hash}).
  45071. @param nr The threshold for the maximum number of keys to record in a
  45072. dynamic Bloom filter row.]]>
  45073. </doc>
  45074. </constructor>
  45075. <method name="add"
  45076. abstract="false" native="false" synchronized="false"
  45077. static="false" final="false" visibility="public"
  45078. deprecated="not deprecated">
  45079. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  45080. </method>
  45081. <method name="and"
  45082. abstract="false" native="false" synchronized="false"
  45083. static="false" final="false" visibility="public"
  45084. deprecated="not deprecated">
  45085. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  45086. </method>
  45087. <method name="membershipTest" return="boolean"
  45088. abstract="false" native="false" synchronized="false"
  45089. static="false" final="false" visibility="public"
  45090. deprecated="not deprecated">
  45091. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  45092. </method>
  45093. <method name="not"
  45094. abstract="false" native="false" synchronized="false"
  45095. static="false" final="false" visibility="public"
  45096. deprecated="not deprecated">
  45097. </method>
  45098. <method name="or"
  45099. abstract="false" native="false" synchronized="false"
  45100. static="false" final="false" visibility="public"
  45101. deprecated="not deprecated">
  45102. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  45103. </method>
  45104. <method name="xor"
  45105. abstract="false" native="false" synchronized="false"
  45106. static="false" final="false" visibility="public"
  45107. deprecated="not deprecated">
  45108. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  45109. </method>
  45110. <method name="toString" return="java.lang.String"
  45111. abstract="false" native="false" synchronized="false"
  45112. static="false" final="false" visibility="public"
  45113. deprecated="not deprecated">
  45114. </method>
  45115. <method name="write"
  45116. abstract="false" native="false" synchronized="false"
  45117. static="false" final="false" visibility="public"
  45118. deprecated="not deprecated">
  45119. <param name="out" type="java.io.DataOutput"/>
  45120. <exception name="IOException" type="java.io.IOException"/>
  45121. </method>
  45122. <method name="readFields"
  45123. abstract="false" native="false" synchronized="false"
  45124. static="false" final="false" visibility="public"
  45125. deprecated="not deprecated">
  45126. <param name="in" type="java.io.DataInput"/>
  45127. <exception name="IOException" type="java.io.IOException"/>
  45128. </method>
  45129. <doc>
  45130. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  45131. <p>
  45132. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  45133. each of the <code>s</code> rows is a standard Bloom filter. The creation
  45134. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  45135. bit matrix, i.e., it is composed of a single standard Bloom filter.
  45136. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  45137. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  45138. the cardinality of the set <code>A</code> to record in the filter).
  45139. <p>
  45140. As the size of <code>A</code> grows during the execution of the application,
  45141. several keys must be inserted in the DBF. When inserting a key into the DBF,
  45142. one must first get an active Bloom filter in the matrix. A Bloom filter is
  45143. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  45144. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  45145. If an active Bloom filter is found, the key is inserted and
  45146. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  45147. is no active Bloom filter, a new one is created (i.e., a new row is added to
  45148. the matrix) according to the current size of <code>A</code> and the element
  45149. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  45150. this new Bloom filter is set to one. A given key is said to belong to the
  45151. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  45152. <p>
  45153. Originally created by
  45154. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  45155. @see Filter The general behavior of a filter
  45156. @see BloomFilter A Bloom filter
  45157. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  45158. </doc>
  45159. </class>
  45160. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  45161. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  45162. <class name="HashFunction" extends="java.lang.Object"
  45163. abstract="false"
  45164. static="false" final="true" visibility="public"
  45165. deprecated="not deprecated">
  45166. <constructor name="HashFunction" type="int, int, int"
  45167. static="false" final="false" visibility="public"
  45168. deprecated="not deprecated">
  45169. <doc>
  45170. <![CDATA[Constructor.
  45171. <p>
  45172. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  45173. @param maxValue The maximum highest returned value.
  45174. @param nbHash The number of resulting hashed values.
  45175. @param hashType type of the hashing function (see {@link Hash}).]]>
  45176. </doc>
  45177. </constructor>
  45178. <method name="clear"
  45179. abstract="false" native="false" synchronized="false"
  45180. static="false" final="false" visibility="public"
  45181. deprecated="not deprecated">
  45182. <doc>
  45183. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  45184. </doc>
  45185. </method>
  45186. <method name="hash" return="int[]"
  45187. abstract="false" native="false" synchronized="false"
  45188. static="false" final="false" visibility="public"
  45189. deprecated="not deprecated">
  45190. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  45191. <doc>
  45192. <![CDATA[Hashes a specified key into several integers.
  45193. @param k The specified key.
  45194. @return The array of hashed values.]]>
  45195. </doc>
  45196. </method>
  45197. <doc>
  45198. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  45199. @see Key The general behavior of a key being stored in a filter
  45200. @see Filter The general behavior of a filter]]>
  45201. </doc>
  45202. </class>
  45203. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  45204. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  45205. <interface name="RemoveScheme" abstract="true"
  45206. static="false" final="false" visibility="public"
  45207. deprecated="not deprecated">
  45208. <field name="RANDOM" type="short"
  45209. transient="false" volatile="false"
  45210. static="true" final="true" visibility="public"
  45211. deprecated="not deprecated">
  45212. <doc>
  45213. <![CDATA[Random selection.
  45214. <p>
  45215. The idea is to randomly select a bit to reset.]]>
  45216. </doc>
  45217. </field>
  45218. <field name="MINIMUM_FN" type="short"
  45219. transient="false" volatile="false"
  45220. static="true" final="true" visibility="public"
  45221. deprecated="not deprecated">
  45222. <doc>
  45223. <![CDATA[MinimumFN Selection.
  45224. <p>
  45225. The idea is to select the bit to reset that will generate the minimum
  45226. number of false negative.]]>
  45227. </doc>
  45228. </field>
  45229. <field name="MAXIMUM_FP" type="short"
  45230. transient="false" volatile="false"
  45231. static="true" final="true" visibility="public"
  45232. deprecated="not deprecated">
  45233. <doc>
  45234. <![CDATA[MaximumFP Selection.
  45235. <p>
  45236. The idea is to select the bit to reset that will remove the maximum number
  45237. of false positive.]]>
  45238. </doc>
  45239. </field>
  45240. <field name="RATIO" type="short"
  45241. transient="false" volatile="false"
  45242. static="true" final="true" visibility="public"
  45243. deprecated="not deprecated">
  45244. <doc>
  45245. <![CDATA[Ratio Selection.
  45246. <p>
  45247. The idea is to select the bit to reset that will, at the same time, remove
  45248. the maximum number of false positve while minimizing the amount of false
  45249. negative generated.]]>
  45250. </doc>
  45251. </field>
  45252. <doc>
  45253. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  45254. <p>
  45255. Originally created by
  45256. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  45257. </doc>
  45258. </interface>
  45259. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  45260. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  45261. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  45262. abstract="false"
  45263. static="false" final="true" visibility="public"
  45264. deprecated="not deprecated">
  45265. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  45266. <constructor name="RetouchedBloomFilter"
  45267. static="false" final="false" visibility="public"
  45268. deprecated="not deprecated">
  45269. <doc>
  45270. <![CDATA[Default constructor - use with readFields]]>
  45271. </doc>
  45272. </constructor>
  45273. <constructor name="RetouchedBloomFilter" type="int, int, int"
  45274. static="false" final="false" visibility="public"
  45275. deprecated="not deprecated">
  45276. <doc>
  45277. <![CDATA[Constructor
  45278. @param vectorSize The vector size of <i>this</i> filter.
  45279. @param nbHash The number of hash function to consider.
  45280. @param hashType type of the hashing function (see
  45281. {@link org.apache.hadoop.util.hash.Hash}).]]>
  45282. </doc>
  45283. </constructor>
  45284. <method name="add"
  45285. abstract="false" native="false" synchronized="false"
  45286. static="false" final="false" visibility="public"
  45287. deprecated="not deprecated">
  45288. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  45289. </method>
  45290. <method name="addFalsePositive"
  45291. abstract="false" native="false" synchronized="false"
  45292. static="false" final="false" visibility="public"
  45293. deprecated="not deprecated">
  45294. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  45295. <doc>
  45296. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  45297. <p>
  45298. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  45299. @param key The false positive key to add.]]>
  45300. </doc>
  45301. </method>
  45302. <method name="addFalsePositive"
  45303. abstract="false" native="false" synchronized="false"
  45304. static="false" final="false" visibility="public"
  45305. deprecated="not deprecated">
  45306. <param name="coll" type="java.util.Collection"/>
  45307. <doc>
  45308. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  45309. @param coll The collection of false positive.]]>
  45310. </doc>
  45311. </method>
  45312. <method name="addFalsePositive"
  45313. abstract="false" native="false" synchronized="false"
  45314. static="false" final="false" visibility="public"
  45315. deprecated="not deprecated">
  45316. <param name="keys" type="java.util.List"/>
  45317. <doc>
  45318. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  45319. @param keys The list of false positive.]]>
  45320. </doc>
  45321. </method>
  45322. <method name="addFalsePositive"
  45323. abstract="false" native="false" synchronized="false"
  45324. static="false" final="false" visibility="public"
  45325. deprecated="not deprecated">
  45326. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  45327. <doc>
  45328. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  45329. @param keys The array of false positive.]]>
  45330. </doc>
  45331. </method>
  45332. <method name="selectiveClearing"
  45333. abstract="false" native="false" synchronized="false"
  45334. static="false" final="false" visibility="public"
  45335. deprecated="not deprecated">
  45336. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  45337. <param name="scheme" type="short"/>
  45338. <doc>
  45339. <![CDATA[Performs the selective clearing for a given key.
  45340. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  45341. @param scheme The selective clearing scheme to apply.]]>
  45342. </doc>
  45343. </method>
  45344. <method name="write"
  45345. abstract="false" native="false" synchronized="false"
  45346. static="false" final="false" visibility="public"
  45347. deprecated="not deprecated">
  45348. <param name="out" type="java.io.DataOutput"/>
  45349. <exception name="IOException" type="java.io.IOException"/>
  45350. </method>
  45351. <method name="readFields"
  45352. abstract="false" native="false" synchronized="false"
  45353. static="false" final="false" visibility="public"
  45354. deprecated="not deprecated">
  45355. <param name="in" type="java.io.DataInput"/>
  45356. <exception name="IOException" type="java.io.IOException"/>
  45357. </method>
  45358. <doc>
  45359. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  45360. <p>
  45361. It allows the removal of selected false positives at the cost of introducing
  45362. random false negatives, and with the benefit of eliminating some random false
  45363. positives at the same time.
  45364. <p>
  45365. Originally created by
  45366. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  45367. @see Filter The general behavior of a filter
  45368. @see BloomFilter A Bloom filter
  45369. @see RemoveScheme The different selective clearing algorithms
  45370. @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>]]>
  45371. </doc>
  45372. </class>
  45373. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  45374. </package>
  45375. <package name="org.apache.hadoop.util.curator">
  45376. </package>
  45377. <package name="org.apache.hadoop.util.hash">
  45378. </package>
  45379. </api>